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

Method Command_GridSizeTop

Tools/LayoutEditor/WorkspaceControl.cpp:387–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385 }
386
387 void WorkspaceControl::Command_GridSizeTop(const MyGUI::UString& _commandName, bool& _result)
388 {
389 if (!checkCommand())
390 return;
391
392 if (!mMoveableWidget)
393 return;
394
395 mCoordValue.height =
396 GridManager::getInstance().toGrid(mCoordValue.bottom(), GridManager::Previous) - mCoordValue.top;
397 updateFromCoordValue();
398
399 UndoManager::getInstance().addValue(PR_KEY_POSITION);
400
401 _result = true;
402 }
403
404 void WorkspaceControl::Command_GridSizeBottom(const MyGUI::UString& _commandName, bool& _result)
405 {

Callers

nothing calls this directly

Calls 3

toGridMethod · 0.80
bottomMethod · 0.80
addValueMethod · 0.80

Tested by

no test coverage detected