32 hookedWidget = parentWidget;
47 if(hookedWidget == parentWidget)
53 point = hookedWidgetRect.
left();
56 point = hookedWidgetRect.
right();
59 point = hookedWidgetRect.
top();
62 point = hookedWidgetRect.
bottom();
76 if(hookedWidget == parentWidget) {
100 if(other->getAnchoredEdge() == anchor->getAnchoredEdge()) {
105 m_anchors.push_back(anchor);
121 anchorGroup->addAnchor(anchor);
168 if(first == widget) {
177 bool verticalMoved =
false;
178 bool horizontalMoved =
false;
181 for(
const UIAnchorPtr& anchor : anchorGroup->getAnchors()) {
187 UIWidgetPtr hookedWidget = anchor->getHookedWidget(widget, parentWidget);
198 if(!hookedAnchorGroup->isUpdated())
203 int point = anchor->getHookedPoint(hookedWidget, parentWidget);
205 switch(anchor->getAnchoredEdge()) {
208 horizontalMoved =
true;
211 if(!horizontalMoved) {
213 horizontalMoved =
true;
218 if(!horizontalMoved) {
220 horizontalMoved =
true;
226 verticalMoved =
true;
231 verticalMoved =
true;
238 verticalMoved =
true;
247 bool changed =
false;
250 anchorGroup->setUpdated(
true);
256 bool changed =
false;
261 anchorGroup->setUpdated(
false);
268 if(!anchorGroup->isUpdated()) {