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

Method Command_GridMoveLeft

Tools/LayoutEditor/WorkspaceControl.cpp:289–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287 }
288
289 void WorkspaceControl::Command_GridMoveLeft(const MyGUI::UString& _commandName, bool& _result)
290 {
291 if (!checkCommand())
292 return;
293
294 if (!mMoveableWidget)
295 return;
296
297 mCoordValue.left = GridManager::getInstance().toGrid(mCoordValue.left, GridManager::Previous);
298 updateFromCoordValue();
299
300 UndoManager::getInstance().addValue(PR_KEY_POSITION);
301
302 _result = true;
303 }
304
305 void WorkspaceControl::Command_GridMoveRight(const MyGUI::UString& _commandName, bool& _result)
306 {

Callers

nothing calls this directly

Calls 2

toGridMethod · 0.80
addValueMethod · 0.80

Tested by

no test coverage detected