2011-05-09 22:38:01 +02:00
|
|
|
#ifndef UIANCHORLAYOUT_H
|
|
|
|
#define UIANCHORLAYOUT_H
|
|
|
|
|
2011-08-14 04:09:11 +02:00
|
|
|
#include "uilayout.h"
|
|
|
|
#include "uianchor.h"
|
2011-05-09 22:38:01 +02:00
|
|
|
|
|
|
|
class UIAnchorLayout : public UILayout
|
|
|
|
{
|
|
|
|
public:
|
2011-08-14 04:09:11 +02:00
|
|
|
bool addAnchor(const UIWidgetPtr& anchoredWidget, AnchorPoint anchoredEdge, const AnchorLine& anchorLine);
|
|
|
|
void updateWidget(const UIWidgetPtr& widget);
|
|
|
|
void updateWidgetChildren(const UIWidgetPtr& parent);
|
2011-05-09 22:38:01 +02:00
|
|
|
|
2011-08-14 04:09:11 +02:00
|
|
|
bool hasWidgetInAnchorTree(const UIWidgetPtr& widget, const UIWidgetPtr& treeAnchor);
|
2011-05-09 22:38:01 +02:00
|
|
|
|
|
|
|
private:
|
2011-08-14 04:09:11 +02:00
|
|
|
std::list<UIAnchor> m_anchors;
|
2011-05-09 22:38:01 +02:00
|
|
|
};
|
|
|
|
|
2011-08-14 04:09:11 +02:00
|
|
|
#endif
|