Rev | Line | |
---|
[4838] | 1 | /*! |
---|
[9546] | 2 | * @file glgui_fixedposition_box.h |
---|
| 3 | * The gl_fixedposition_box widget of th openglGUi |
---|
[5360] | 4 | */ |
---|
[1853] | 5 | |
---|
[9546] | 6 | #ifndef _GLGUI_FIXEDPOSITION_BOX_H |
---|
| 7 | #define _GLGUI_FIXEDPOSITION_BOX_H |
---|
[1853] | 8 | |
---|
[9547] | 9 | #include "glgui_box.h" |
---|
[9554] | 10 | #include "event_listener.h" |
---|
[1853] | 11 | |
---|
[7779] | 12 | namespace OrxGui |
---|
[5391] | 13 | { |
---|
[7779] | 14 | //! This is BOX part of the openglGUI class |
---|
| 15 | /** |
---|
[9607] | 16 | * The Box is always positioned at the designated position on the screen |
---|
[7779] | 17 | * |
---|
[9607] | 18 | * @note If you pack the box or move it with setRel/AbsCoor2D the |
---|
| 19 | * behaviour of positioning is not predictable! |
---|
[7779] | 20 | */ |
---|
[9554] | 21 | class GLGuiFixedpositionBox : public OrxGui::GLGuiBox, EventListener |
---|
[7779] | 22 | { |
---|
[9869] | 23 | ObjectListDeclaration(GLGuiFixedpositionBox); |
---|
[9549] | 24 | public: |
---|
| 25 | GLGuiFixedpositionBox(OrxGui::Position position = OrxGui::Center, OrxGui::Orientation orientation = OrxGui::Vertical); |
---|
[2036] | 26 | |
---|
[9549] | 27 | inline OrxGui::Position position() const { return this->_position; }; |
---|
| 28 | void setPosition(OrxGui::Position position); |
---|
[1853] | 29 | |
---|
[9549] | 30 | protected: |
---|
| 31 | virtual void resize(); |
---|
[9554] | 32 | virtual void process(const Event& event); //!< from eventListener |
---|
[8035] | 33 | |
---|
[9549] | 34 | private: |
---|
| 35 | OrxGui::Position _position; //!< The Fixed position of the Widget. |
---|
[7779] | 36 | }; |
---|
| 37 | } |
---|
[9546] | 38 | #endif /* _GLGUI_FIXEDPOSITION_BOX_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.