Line | |
---|
1 | /*! |
---|
2 | * @file gui_element.h |
---|
3 | * Definition of ... |
---|
4 | |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _GUI_ELEMENT_H |
---|
8 | #define _GUI_ELEMENT_H |
---|
9 | |
---|
10 | #include "gui_saveable.h" |
---|
11 | |
---|
12 | namespace OrxGui |
---|
13 | { |
---|
14 | class Widget; |
---|
15 | |
---|
16 | //! A SuperClass for all the Different GuiElements |
---|
17 | class GuiElement : public SaveableGroup |
---|
18 | { |
---|
19 | |
---|
20 | public: |
---|
21 | GuiElement(const std::string& name); |
---|
22 | virtual ~GuiElement(); |
---|
23 | |
---|
24 | /** @returns the main Widget of this GuiElement. */ |
---|
25 | Widget* getWidget() const { return this->mainWidget; } |
---|
26 | protected: |
---|
27 | void setMainWidget(Widget* widget); |
---|
28 | |
---|
29 | private: |
---|
30 | Widget* mainWidget; |
---|
31 | }; |
---|
32 | } |
---|
33 | #endif /* _GUI_ELEMENT_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.