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

Method grab_mouse

src/laybasic/laybasic/layViewObject.cc:1172–1185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1170}
1171
1172void
1173ViewObjectUI::grab_mouse (ViewService *obj, bool a)
1174{
1175 obj->m_abs_grab = a; // not used currently
1176
1177 // only add to m_grabbed if not grabbed already
1178 std::list<ViewService *>::iterator g;
1179 for (g = m_grabbed.begin (); g != m_grabbed.end () && *g != obj; ++g) {
1180 ;
1181 }
1182 if (g == m_grabbed.end ()) {
1183 m_grabbed.push_front (obj);
1184 }
1185}
1186
1187void
1188ViewObjectUI::ungrab_mouse (ViewService *obj)

Callers 15

test_1Method · 0.45
set_modeMethod · 0.45
mouse_click_eventMethod · 0.45
mouse_press_eventMethod · 0.45
probe_button_pressedMethod · 0.45
mouse_click_eventMethod · 0.45
mouse_press_eventMethod · 0.45
begin_panMethod · 0.45
beginMethod · 0.45
beginMethod · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
push_frontMethod · 0.45

Tested by 1

test_1Method · 0.36