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
|
|
|
|
2011-05-09 22:38:01 +02:00
|
|
|
class UIElement;
|
|
|
|
typedef boost::shared_ptr<UIElement> UIElementPtr;
|
2011-04-10 22:40:44 +02:00
|
|
|
|
|
|
|
class UILayout;
|
2011-04-11 23:22:01 +02:00
|
|
|
typedef boost::shared_ptr<UILayout> UILayoutPtr;
|
2011-04-10 22:40:44 +02:00
|
|
|
|
2011-05-09 22:38:01 +02:00
|
|
|
class UILayout : public boost::enable_shared_from_this<UILayout>
|
2011-04-10 22:40:44 +02:00
|
|
|
{
|
|
|
|
public:
|
2011-05-09 22:38:01 +02:00
|
|
|
UILayout() { }
|
2011-04-10 22:40:44 +02:00
|
|
|
|
2011-05-09 22:38:01 +02:00
|
|
|
virtual void recalculateElementLayout(const UIElementPtr& element) = 0;
|
|
|
|
virtual void recalculateChildrenLayout(const UIElementPtr& parent) = 0;
|
2011-04-10 22:40:44 +02:00
|
|
|
};
|
|
|
|
|
2011-05-09 22:38:01 +02:00
|
|
|
#endif // UILAYOUT_H
|