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

Method first_toolbox_widget

src/laybasic/laybasic/layLayoutCanvas.cc:280–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280lay::EditorOptionsPage *
281LayoutCanvas::first_toolbox_widget ()
282{
283 auto pages = mp_view->editor_options_pages ();
284 if (! pages) {
285 return 0;
286 }
287
288 auto pv = pages->editor_options_pages ();
289 for (auto p = pv.begin (); p != pv.end (); ++p) {
290 if ((*p)->is_toolbox_widget () && (*p)->is_visible ()) {
291 return *p;
292 }
293 }
294 return 0;
295}
296
297void
298LayoutCanvas::set_image_cache_size (size_t sz)

Callers

nothing calls this directly

Calls 4

editor_options_pagesMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
is_visibleMethod · 0.45

Tested by

no test coverage detected