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

Method Command_GridMoveTop

Tools/LayoutEditor/WorkspaceControl.cpp:321–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319 }
320
321 void WorkspaceControl::Command_GridMoveTop(const MyGUI::UString& _commandName, bool& _result)
322 {
323 if (!checkCommand())
324 return;
325
326 if (!mMoveableWidget)
327 return;
328
329 mCoordValue.top = GridManager::getInstance().toGrid(mCoordValue.top, GridManager::Previous);
330 updateFromCoordValue();
331
332 UndoManager::getInstance().addValue(PR_KEY_POSITION);
333
334 _result = true;
335 }
336
337 void WorkspaceControl::Command_GridMoveBottom(const MyGUI::UString& _commandName, bool& _result)
338 {

Callers

nothing calls this directly

Calls 2

toGridMethod · 0.80
addValueMethod · 0.80

Tested by

no test coverage detected