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

Method Command_GridMoveRight

Tools/LayoutEditor/WorkspaceControl.cpp:305–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303 }
304
305 void WorkspaceControl::Command_GridMoveRight(const MyGUI::UString& _commandName, bool& _result)
306 {
307 if (!checkCommand())
308 return;
309
310 if (!mMoveableWidget)
311 return;
312
313 mCoordValue.left = GridManager::getInstance().toGrid(mCoordValue.left, GridManager::Next);
314 updateFromCoordValue();
315
316 UndoManager::getInstance().addValue(PR_KEY_POSITION);
317
318 _result = true;
319 }
320
321 void WorkspaceControl::Command_GridMoveTop(const MyGUI::UString& _commandName, bool& _result)
322 {

Callers

nothing calls this directly

Calls 2

toGridMethod · 0.80
addValueMethod · 0.80

Tested by

no test coverage detected