| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #ifndef ABSOLUTELAYOUT_H_
- #define ABSOLUTELAYOUT_H_
- #include "Layout.h"
- namespace gameplay
- {
- /**
- * Defines a Layout for forms and containers that requires the user
- * to specify absolute positions for all contained controls.
- */
- class AbsoluteLayout : public Layout
- {
- friend class Form;
- friend class Container;
- public:
- /**
- * Get the type of this Layout.
- *
- * @return Layout::LAYOUT_ABSOLUTE
- */
- Layout::Type getType();
- protected:
- /**
- * Create an AbsoluteLayout.
- *
- * @return An AbsoluteLayout object.
- */
- static AbsoluteLayout* create();
- /**
- * Update the controls contained by the specified container.
- *
- * An AbsoluteLayout does nothing to modify the layout of controls.
- * It simply calls update() on any control that is dirty.
- *
- * @param container The container to update.
- */
- void update(const Container* container, const Vector2& offset);
- private:
-
- /*
- * Constructor.
- */
- AbsoluteLayout();
-
- /*
- * Constructor.
- */
- AbsoluteLayout(const AbsoluteLayout& copy);
-
- /*
- * Destructor.
- */
- virtual ~AbsoluteLayout();
- };
- }
- #endif
|