MCPcopy Create free account
hub / github.com/KLayout/klayout / function

Method function

src/laybasic/laybasic/layMove.cc:84–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void
85MoveService::function (const std::string &name, const std::string &value)
86{
87 if (name == move_function_name) {
88
89 try {
90
91 db::DVector s;
92 tl::from_string (value, s);
93
94 m_dragging = false;
95
96 show_toolbox (false);
97 ui ()->ungrab_mouse (this);
98
99 mp_editables->end_move (s, mp_transaction.release ());
100
101 if (m_dragging_transient) {
102 mp_editables->clear_selection ();
103 }
104
105 drag_cancel ();
106
107 } catch (...) {
108 }
109
110 }
111}
112
113bool
114MoveService::key_event (unsigned int key, unsigned int buttons)

Callers

nothing calls this directly

Calls 7

uiFunction · 0.70
drag_cancelFunction · 0.70
from_stringFunction · 0.50
ungrab_mouseMethod · 0.45
end_moveMethod · 0.45
releaseMethod · 0.45
clear_selectionMethod · 0.45

Tested by

no test coverage detected