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

Method updateSelectionFromValue

Tools/LayoutEditor/WorkspaceControl.cpp:494–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492 }
493
494 void WorkspaceControl::updateSelectionFromValue()
495 {
496 // саму рамку отображаем в глобальных
497 if (mCurrentWidget != nullptr)
498 {
499 MyGUI::Widget* parent = mCurrentWidget->getParent();
500 if (parent != nullptr && !mCurrentWidget->isRootWidget())
501 mAreaSelectorControl->setCoord(mCoordValue + parent->getAbsolutePosition());
502 else
503 mAreaSelectorControl->setCoord(mCoordValue);
504 }
505 }
506
507 void WorkspaceControl::onMouseButtonClick(const MyGUI::IntPoint& _point)
508 {

Callers

nothing calls this directly

Calls 3

isRootWidgetMethod · 0.80
getParentMethod · 0.45
setCoordMethod · 0.45

Tested by

no test coverage detected