| Line | |
|---|
| 1 | /*! |
|---|
| 2 | * @file glgui_fixedposition_box.h |
|---|
| 3 | * The gl_fixedposition_box widget of th openglGUi |
|---|
| 4 | */ |
|---|
| 5 | |
|---|
| 6 | #ifndef _GLGUI_FIXEDPOSITION_BOX_H |
|---|
| 7 | #define _GLGUI_FIXEDPOSITION_BOX_H |
|---|
| 8 | |
|---|
| 9 | #include "glgui_box.h" |
|---|
| 10 | #include "event_listener.h" |
|---|
| 11 | |
|---|
| 12 | namespace OrxGui |
|---|
| 13 | { |
|---|
| 14 | //! This is BOX part of the openglGUI class |
|---|
| 15 | /** |
|---|
| 16 | * |
|---|
| 17 | */ |
|---|
| 18 | class GLGuiFixedpositionBox : public OrxGui::GLGuiBox, EventListener |
|---|
| 19 | { |
|---|
| 20 | |
|---|
| 21 | public: |
|---|
| 22 | GLGuiFixedpositionBox(OrxGui::Position position = OrxGui::Center, OrxGui::Orientation orientation = OrxGui::Vertical); |
|---|
| 23 | |
|---|
| 24 | inline OrxGui::Position position() const { return this->_position; }; |
|---|
| 25 | void setPosition(OrxGui::Position position); |
|---|
| 26 | |
|---|
| 27 | protected: |
|---|
| 28 | virtual void resize(); |
|---|
| 29 | virtual void process(const Event& event); //!< from eventListener |
|---|
| 30 | |
|---|
| 31 | private: |
|---|
| 32 | OrxGui::Position _position; //!< The Fixed position of the Widget. |
|---|
| 33 | }; |
|---|
| 34 | } |
|---|
| 35 | #endif /* _GLGUI_FIXEDPOSITION_BOX_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.