fastplotlib.ui.ImguiWindow#
- class ImguiWindow(update_call=None)[source]#
An imgui window drawn within a Figure. Subclass and implement
update()to draw imgui elements, or pass a callable asupdate_call(this is what theadd_imgui_window()decorator does). A bareImguiWindow()does neither and draws only what is appended to it withappend_imgui_window().Windows are not added directly, use
Figure.add_imgui_window()orSubplot.add_imgui_window()which provide the host and placement, i.e. location, size, window flags, etc., via_fpl_add_hook().- Parameters:
update_call (callable) – a callable that draws imgui elements, used instead of
update()when decorating, seeadd_imgui_window