mirror of
https://github.com/edubart/otclient.git
synced 2025-11-07 13:56:22 +01:00
remake widgets's anchor layouts
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user