Divider.h 788 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright 2009-2010, Pier Luigi Fiorini. All rights reserved.
  3. * Distributed under the terms of the MIT License.
  4. */
  5. #ifndef _DIVIDER_H
  6. #define _DIVIDER_H
  7. #include <View.h>
  8. class BMessage;
  9. class BMessenger;
  10. class Divider : public BView {
  11. public:
  12. Divider(const char* name, uint32 flags =
  13. B_FRAME_EVENTS | B_WILL_DRAW);
  14. virtual ~Divider();
  15. Divider(BMessage* archive);
  16. virtual void Draw(BRect updateRect);
  17. virtual void GetPreferredSize(float* width, float* height);
  18. status_t Archive(BMessage* archive, bool deep = true) const;
  19. static BArchivable* Instantiate(BMessage* archive);
  20. orientation Orientation();
  21. void Orientation(orientation orient);
  22. private:
  23. orientation fOrient;
  24. };
  25. #endif // _DIVIDER_H