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

Method updateDropItems

MyGUIEngine/src/MyGUI_DDContainer.cpp:215–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213 }
214
215 void DDContainer::updateDropItems()
216 {
217 if (mDropItem == nullptr)
218 {
219 requestDragWidgetInfo(this, mDropItem, mDropDimension);
220 }
221
222 const IntPoint& point = InputManager::getInstance().getMousePositionByLayer();
223
224 if (mDropItem)
225 {
226 mDropItem->setCoord(
227 point.left - mClickInWidget.left + mDropDimension.left,
228 point.top - mClickInWidget.top + mDropDimension.top,
229 mDropDimension.width,
230 mDropDimension.height);
231 mDropItem->setVisible(true);
232 }
233 }
234
235 void DDContainer::updateDropItemsState(const DDWidgetState& _state)
236 {

Callers

nothing calls this directly

Calls 3

setCoordMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected