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

Method Command_GridSizeRight

Tools/LayoutEditor/WorkspaceControl.cpp:370–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368 }
369
370 void WorkspaceControl::Command_GridSizeRight(const MyGUI::UString& _commandName, bool& _result)
371 {
372 if (!checkCommand())
373 return;
374
375 if (!mMoveableWidget)
376 return;
377
378 mCoordValue.width =
379 GridManager::getInstance().toGrid(mCoordValue.right(), GridManager::Next) - mCoordValue.left;
380 updateFromCoordValue();
381
382 UndoManager::getInstance().addValue(PR_KEY_POSITION);
383
384 _result = true;
385 }
386
387 void WorkspaceControl::Command_GridSizeTop(const MyGUI::UString& _commandName, bool& _result)
388 {

Callers

nothing calls this directly

Calls 3

toGridMethod · 0.80
rightMethod · 0.80
addValueMethod · 0.80

Tested by

no test coverage detected