FlowLayout.h 900 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef FLOWLAYOUT_H_
  2. #define FLOWLAYOUT_H_
  3. #include "Layout.h"
  4. namespace gameplay
  5. {
  6. class FlowLayout : public Layout
  7. {
  8. friend class Form;
  9. friend class Container;
  10. public:
  11. /**
  12. * Get the type of this Layout.
  13. *
  14. * @return Layout::LAYOUT_FLOW
  15. */
  16. Layout::Type getType();
  17. protected:
  18. /**
  19. * Create a FlowLayout.
  20. *
  21. * @return A FlowLayout object.
  22. */
  23. static FlowLayout* create();
  24. /**
  25. * Update the controls contained by the specified container.
  26. *
  27. * @param container The container to update.
  28. */
  29. void update(const Container* container);
  30. private:
  31. /**
  32. * Constructor.
  33. */
  34. FlowLayout();
  35. /**
  36. * Constructor.
  37. */
  38. FlowLayout(const FlowLayout& copy);
  39. /**
  40. * Destructor.
  41. */
  42. virtual ~FlowLayout();
  43. };
  44. }
  45. #endif