tibia-client/src/framework/ui/uilayout.h

21 lines
460 B
C
Raw Normal View History

2011-04-10 22:40:44 +02:00
#ifndef UILAYOUT_H
#define UILAYOUT_H
2011-07-13 23:12:36 +02:00
#include <global.h>
2011-04-10 22:40:44 +02:00
class UIElement;
typedef std::shared_ptr<UIElement> UIElementPtr;
2011-04-10 22:40:44 +02:00
class UILayout;
typedef std::shared_ptr<UILayout> UILayoutPtr;
2011-04-10 22:40:44 +02:00
class UILayout : public std::enable_shared_from_this<UILayout>
2011-04-10 22:40:44 +02:00
{
public:
UILayout() { }
2011-04-10 22:40:44 +02:00
virtual void recalculateElementLayout(const UIElementPtr& element) = 0;
virtual void recalculateChildrenLayout(const UIElementPtr& parent) = 0;
2011-04-10 22:40:44 +02:00
};
#endif // UILAYOUT_H