render do main menu

This commit is contained in:
Eduardo Bart
2011-04-08 06:50:26 -03:00
parent 4c6d1269a0
commit 6e8df399c9
21 changed files with 243 additions and 61 deletions

View File

@@ -36,10 +36,10 @@ typedef std::shared_ptr<UIContainer> UIContainerPtr;
class UIElement;
typedef std::shared_ptr<UIElement> UIElementPtr;
class UIElement
class UIElement : public std::enable_shared_from_this<UIElement>
{
public:
UIElement(UIContainerPtr parent);
UIElement() { }
virtual ~UIElement() { }
virtual void render() { }
@@ -63,7 +63,7 @@ public:
virtual UI::ControlType getControlType() const { return UI::Element; }
UIElementPtr asUIElement() { return UIElementPtr(this); }
UIElementPtr asUIElement() { return shared_from_this(); }
protected:
UI::ControlType m_type;