MCPcopy Create free account
hub / github.com/MyGUI/mygui / setPosition

Method setPosition

MyGUIEngine/src/MyGUI_Widget.cpp:676–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674 }
675
676 void Widget::setPosition(const IntPoint& _point)
677 {
678 // обновляем абсолютные координаты
679 mAbsolutePosition += _point - mCoord.point();
680
681 for (auto& widget : mWidgetChild)
682 widget->_updateAbsolutePoint();
683 for (auto& widget : mWidgetChildSkin)
684 widget->_updateAbsolutePoint();
685
686 mCoord = _point;
687
688 _updateView();
689
690 eventChangeCoord(this);
691 }
692
693 void Widget::setSize(const IntSize& _size)
694 {

Calls 5

_updateViewFunction · 0.85
setPositionFunction · 0.85
_updateAbsolutePointMethod · 0.80
IntPointFunction · 0.50
pointMethod · 0.45

Tested by

no test coverage detected