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

Method Command_GridSizeBottom

Tools/LayoutEditor/WorkspaceControl.cpp:404–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402 }
403
404 void WorkspaceControl::Command_GridSizeBottom(const MyGUI::UString& _commandName, bool& _result)
405 {
406 if (!checkCommand())
407 return;
408
409 if (!mMoveableWidget)
410 return;
411
412 mCoordValue.height =
413 GridManager::getInstance().toGrid(mCoordValue.bottom(), GridManager::Next) - mCoordValue.top;
414 updateFromCoordValue();
415
416 UndoManager::getInstance().addValue(PR_KEY_POSITION);
417
418 _result = true;
419 }
420
421 void WorkspaceControl::Command_SizeLeft(const MyGUI::UString& _commandName, bool& _result)
422 {

Callers

nothing calls this directly

Calls 3

toGridMethod · 0.80
bottomMethod · 0.80
addValueMethod · 0.80

Tested by

no test coverage detected