| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #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);
- private:
- AbsoluteLayout();
- AbsoluteLayout(const AbsoluteLayout& copy);
- virtual ~AbsoluteLayout();
- };
- }
- #endif
|