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

Method Command_GridSizeLeft

Tools/LayoutEditor/WorkspaceControl.cpp:353–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351 }
352
353 void WorkspaceControl::Command_GridSizeLeft(const MyGUI::UString& _commandName, bool& _result)
354 {
355 if (!checkCommand())
356 return;
357
358 if (!mMoveableWidget)
359 return;
360
361 mCoordValue.width =
362 GridManager::getInstance().toGrid(mCoordValue.right(), GridManager::Previous) - mCoordValue.left;
363 updateFromCoordValue();
364
365 UndoManager::getInstance().addValue(PR_KEY_POSITION);
366
367 _result = true;
368 }
369
370 void WorkspaceControl::Command_GridSizeRight(const MyGUI::UString& _commandName, bool& _result)
371 {

Callers

nothing calls this directly

Calls 3

toGridMethod · 0.80
rightMethod · 0.80
addValueMethod · 0.80

Tested by

no test coverage detected