You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
511 B
21 lines
511 B
#ifndef UIANCHORLAYOUT_H
|
|
#define UIANCHORLAYOUT_H
|
|
|
|
#include "uilayout.h"
|
|
#include "uianchor.h"
|
|
|
|
class UIAnchorLayout : public UILayout
|
|
{
|
|
public:
|
|
bool addAnchor(const UIWidgetPtr& anchoredWidget, AnchorPoint anchoredEdge, const AnchorLine& anchorLine);
|
|
void updateWidget(const UIWidgetPtr& widget);
|
|
void updateWidgetChildren(const UIWidgetPtr& parent);
|
|
|
|
bool hasWidgetInAnchorTree(const UIWidgetPtr& widget, const UIWidgetPtr& treeAnchor);
|
|
|
|
private:
|
|
std::list<UIAnchor> m_anchors;
|
|
};
|
|
|
|
#endif
|