# {py:mod}`simvx.core.ui.popup_manager` ```{py:module} simvx.core.ui.popup_manager ``` ```{autodoc2-docstring} simvx.core.ui.popup_manager :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`Popup ` - ```{autodoc2-docstring} simvx.core.ui.popup_manager.Popup :summary: ``` * - {py:obj}`DrawCanvas ` - ```{autodoc2-docstring} simvx.core.ui.popup_manager.DrawCanvas :summary: ``` * - {py:obj}`PopupPanel ` - ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupPanel :summary: ``` * - {py:obj}`PopupManager ` - ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupManager :summary: ``` ```` ### Functions ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`check_menu_click ` - ```{autodoc2-docstring} simvx.core.ui.popup_manager.check_menu_click :summary: ``` ```` ### API `````{py:class} Popup() :canonical: simvx.core.ui.popup_manager.Popup ```{autodoc2-docstring} simvx.core.ui.popup_manager.Popup ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.core.ui.popup_manager.Popup.__init__ ``` ````{py:method} popup_input(dt: float) -> bool :canonical: simvx.core.ui.popup_manager.Popup.popup_input ```{autodoc2-docstring} simvx.core.ui.popup_manager.Popup.popup_input ``` ```` ````{py:method} popup_draw(renderer, screen_w: float, screen_h: float) -> None :canonical: simvx.core.ui.popup_manager.Popup.popup_draw ```{autodoc2-docstring} simvx.core.ui.popup_manager.Popup.popup_draw ``` ```` ````{py:method} popup_click(mx: float, my: float) -> bool | None :canonical: simvx.core.ui.popup_manager.Popup.popup_click ```{autodoc2-docstring} simvx.core.ui.popup_manager.Popup.popup_click ``` ```` ````{py:method} on_open() -> None :canonical: simvx.core.ui.popup_manager.Popup.on_open ```{autodoc2-docstring} simvx.core.ui.popup_manager.Popup.on_open ``` ```` ````{py:method} on_close() -> None :canonical: simvx.core.ui.popup_manager.Popup.on_close ```{autodoc2-docstring} simvx.core.ui.popup_manager.Popup.on_close ``` ```` ````` `````{py:class} DrawCanvas(content_size=(0.0, 0.0), **kwargs) :canonical: simvx.core.ui.popup_manager.DrawCanvas Bases: {py:obj}`simvx.core.ui.core.Control` ```{autodoc2-docstring} simvx.core.ui.popup_manager.DrawCanvas ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.core.ui.popup_manager.DrawCanvas.__init__ ``` ````{py:attribute} content_size :canonical: simvx.core.ui.popup_manager.DrawCanvas.content_size :value: > 'Property(...)' ```{autodoc2-docstring} simvx.core.ui.popup_manager.DrawCanvas.content_size ``` ```` ````{py:method} custom_draw(renderer) -> None :canonical: simvx.core.ui.popup_manager.DrawCanvas.custom_draw ```{autodoc2-docstring} simvx.core.ui.popup_manager.DrawCanvas.custom_draw ``` ```` ````{py:method} get_minimum_size() -> simvx.core.math.types.Vec2 :canonical: simvx.core.ui.popup_manager.DrawCanvas.get_minimum_size ```` ````{py:method} draw(renderer) :canonical: simvx.core.ui.popup_manager.DrawCanvas.draw ```` ````{py:attribute} size_x :canonical: simvx.core.ui.popup_manager.DrawCanvas.size_x :value: > 'Property(...)' ```` ````{py:attribute} size_y :canonical: simvx.core.ui.popup_manager.DrawCanvas.size_y :value: > 'Property(...)' ```` ````{py:property} size :canonical: simvx.core.ui.popup_manager.DrawCanvas.size :type: simvx.core.math.types.Vec2 ```` ````{py:attribute} touch_mode :canonical: simvx.core.ui.popup_manager.DrawCanvas.touch_mode :type: str :value: > 'mouse' ```` ````{py:property} theme :canonical: simvx.core.ui.popup_manager.DrawCanvas.theme :type: simvx.core.ui.types.Theme | None ```` ````{py:property} mouse_over :canonical: simvx.core.ui.popup_manager.DrawCanvas.mouse_over :type: bool ```` ````{py:property} focused :canonical: simvx.core.ui.popup_manager.DrawCanvas.focused :type: bool ```` ````{py:property} disabled :canonical: simvx.core.ui.popup_manager.DrawCanvas.disabled :type: bool ```` ````{py:method} get_theme() -> simvx.core.ui.types.Theme :canonical: simvx.core.ui.popup_manager.DrawCanvas.get_theme ```` ````{py:method} queue_redraw() :canonical: simvx.core.ui.popup_manager.DrawCanvas.queue_redraw ```` ````{py:method} get_rect() -> tuple[float, float, float, float] :canonical: simvx.core.ui.popup_manager.DrawCanvas.get_rect ```` ````{py:method} get_global_rect() -> tuple[float, float, float, float] :canonical: simvx.core.ui.popup_manager.DrawCanvas.get_global_rect ```` ````{py:method} is_point_inside(point) -> bool :canonical: simvx.core.ui.popup_manager.DrawCanvas.is_point_inside ```` ````{py:method} set_anchor_preset(preset: simvx.core.ui.enums.AnchorPreset) :canonical: simvx.core.ui.popup_manager.DrawCanvas.set_anchor_preset ```` ````{py:method} set_focus() :canonical: simvx.core.ui.popup_manager.DrawCanvas.set_focus ```` ````{py:method} grab_focus() :canonical: simvx.core.ui.popup_manager.DrawCanvas.grab_focus ```` ````{py:method} release_focus() :canonical: simvx.core.ui.popup_manager.DrawCanvas.release_focus ```` ````{py:method} has_focus() -> bool :canonical: simvx.core.ui.popup_manager.DrawCanvas.has_focus ```` ````{py:method} focus_next_control() :canonical: simvx.core.ui.popup_manager.DrawCanvas.focus_next_control ```` ````{py:method} focus_previous_control() :canonical: simvx.core.ui.popup_manager.DrawCanvas.focus_previous_control ```` ````{py:method} grab_mouse() :canonical: simvx.core.ui.popup_manager.DrawCanvas.grab_mouse ```` ````{py:method} release_mouse() :canonical: simvx.core.ui.popup_manager.DrawCanvas.release_mouse ```` ````{py:method} set_drag_preview(control: simvx.core.ui.core.Control) :canonical: simvx.core.ui.popup_manager.DrawCanvas.set_drag_preview ```` ````{py:method} draw_popup(renderer) :canonical: simvx.core.ui.popup_manager.DrawCanvas.draw_popup ```` ````{py:method} is_popup_point_inside(point) -> bool :canonical: simvx.core.ui.popup_manager.DrawCanvas.is_popup_point_inside ```` ````{py:method} popup_input(event) :canonical: simvx.core.ui.popup_manager.DrawCanvas.popup_input ```` ````{py:method} dismiss_popup() :canonical: simvx.core.ui.popup_manager.DrawCanvas.dismiss_popup ```` ````{py:attribute} z_index :canonical: simvx.core.ui.popup_manager.DrawCanvas.z_index :value: > 'Property(...)' ```` ````{py:attribute} z_as_relative :canonical: simvx.core.ui.popup_manager.DrawCanvas.z_as_relative :value: > 'Property(...)' ```` ````{py:attribute} render_layer :canonical: simvx.core.ui.popup_manager.DrawCanvas.render_layer :value: > 'Property(...)' ```` ````{py:method} set_render_layer(index: int, enabled: bool = True) -> None :canonical: simvx.core.ui.popup_manager.DrawCanvas.set_render_layer ```` ````{py:method} is_on_render_layer(index: int) -> bool :canonical: simvx.core.ui.popup_manager.DrawCanvas.is_on_render_layer ```` ````{py:property} absolute_z_index :canonical: simvx.core.ui.popup_manager.DrawCanvas.absolute_z_index :type: int ```` ````{py:property} position :canonical: simvx.core.ui.popup_manager.DrawCanvas.position :type: simvx.core.math.types.Vec2 ```` ````{py:property} rotation :canonical: simvx.core.ui.popup_manager.DrawCanvas.rotation :type: float ```` ````{py:property} rotation_degrees :canonical: simvx.core.ui.popup_manager.DrawCanvas.rotation_degrees :type: float ```` ````{py:property} scale :canonical: simvx.core.ui.popup_manager.DrawCanvas.scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} world_position :canonical: simvx.core.ui.popup_manager.DrawCanvas.world_position :type: simvx.core.math.types.Vec2 ```` ````{py:property} world_rotation :canonical: simvx.core.ui.popup_manager.DrawCanvas.world_rotation :type: float ```` ````{py:property} world_scale :canonical: simvx.core.ui.popup_manager.DrawCanvas.world_scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} forward :canonical: simvx.core.ui.popup_manager.DrawCanvas.forward :type: simvx.core.math.types.Vec2 ```` ````{py:property} right :canonical: simvx.core.ui.popup_manager.DrawCanvas.right :type: simvx.core.math.types.Vec2 ```` ````{py:method} translate(offset: tuple[float, float] | numpy.ndarray) :canonical: simvx.core.ui.popup_manager.DrawCanvas.translate ```` ````{py:method} rotate(radians: float) :canonical: simvx.core.ui.popup_manager.DrawCanvas.rotate ```` ````{py:method} rotate_deg(degrees: float) :canonical: simvx.core.ui.popup_manager.DrawCanvas.rotate_deg ```` ````{py:method} look_at(target: tuple[float, float] | numpy.ndarray) :canonical: simvx.core.ui.popup_manager.DrawCanvas.look_at ```` ````{py:method} transform_points(points: list[simvx.core.math.types.Vec2]) -> list[simvx.core.math.types.Vec2] :canonical: simvx.core.ui.popup_manager.DrawCanvas.transform_points ```` ````{py:method} draw_polygon(renderer, points: list[simvx.core.math.types.Vec2], closed=True, colour=None) :canonical: simvx.core.ui.popup_manager.DrawCanvas.draw_polygon ```` ````{py:method} wrap_screen(margin: float = 20) :canonical: simvx.core.ui.popup_manager.DrawCanvas.wrap_screen ```` ````{py:attribute} strict_errors :canonical: simvx.core.ui.popup_manager.DrawCanvas.strict_errors :type: typing.ClassVar[bool] :value: > True ```` ````{py:attribute} script_error_raised :canonical: simvx.core.ui.popup_manager.DrawCanvas.script_error_raised :value: > 'Signal(...)' ```` ````{py:method} __init_subclass__(**kwargs) :canonical: simvx.core.ui.popup_manager.DrawCanvas.__init_subclass__ :classmethod: ```` ````{py:property} name :canonical: simvx.core.ui.popup_manager.DrawCanvas.name :type: str ```` ````{py:property} process_mode :canonical: simvx.core.ui.popup_manager.DrawCanvas.process_mode :type: simvx.core.descriptors.ProcessMode ```` ````{py:method} reset_error() -> None :canonical: simvx.core.ui.popup_manager.DrawCanvas.reset_error ```` ````{py:method} add_child(node: simvx.core.node.Node) -> simvx.core.node.Node :canonical: simvx.core.ui.popup_manager.DrawCanvas.add_child ```` ````{py:method} remove_child(node: simvx.core.node.Node) :canonical: simvx.core.ui.popup_manager.DrawCanvas.remove_child ```` ````{py:method} reparent(new_parent: simvx.core.node.Node) :canonical: simvx.core.ui.popup_manager.DrawCanvas.reparent ```` ````{py:method} get_node(path: str) -> simvx.core.node.Node :canonical: simvx.core.ui.popup_manager.DrawCanvas.get_node ```` ````{py:method} find_child(name: str, recursive: bool = False) -> simvx.core.node.Node | None :canonical: simvx.core.ui.popup_manager.DrawCanvas.find_child ```` ````{py:method} find(node_type: type, recursive: bool = True) -> simvx.core.node.Node | None :canonical: simvx.core.ui.popup_manager.DrawCanvas.find ```` ````{py:method} find_all(node_type: type, recursive: bool = True) -> list :canonical: simvx.core.ui.popup_manager.DrawCanvas.find_all ```` ````{py:property} path :canonical: simvx.core.ui.popup_manager.DrawCanvas.path :type: str ```` ````{py:method} add_to_group(group: str) :canonical: simvx.core.ui.popup_manager.DrawCanvas.add_to_group ```` ````{py:method} remove_from_group(group: str) :canonical: simvx.core.ui.popup_manager.DrawCanvas.remove_from_group ```` ````{py:method} is_in_group(group: str) -> bool :canonical: simvx.core.ui.popup_manager.DrawCanvas.is_in_group ```` ````{py:method} ready() -> None :canonical: simvx.core.ui.popup_manager.DrawCanvas.ready ```` ````{py:method} enter_tree() -> None :canonical: simvx.core.ui.popup_manager.DrawCanvas.enter_tree ```` ````{py:method} exit_tree() -> None :canonical: simvx.core.ui.popup_manager.DrawCanvas.exit_tree ```` ````{py:method} process(dt: float) -> None :canonical: simvx.core.ui.popup_manager.DrawCanvas.process ```` ````{py:method} physics_process(dt: float) -> None :canonical: simvx.core.ui.popup_manager.DrawCanvas.physics_process ```` ````{py:method} input_event(event: simvx.core.events.InputEvent) -> None :canonical: simvx.core.ui.popup_manager.DrawCanvas.input_event ```` ````{py:method} input(event: simvx.core.events.TreeInputEvent) -> None :canonical: simvx.core.ui.popup_manager.DrawCanvas.input ```` ````{py:method} unhandled_input(event: simvx.core.events.TreeInputEvent) -> None :canonical: simvx.core.ui.popup_manager.DrawCanvas.unhandled_input ```` ````{py:method} start_coroutine(gen: simvx.core.descriptors.Coroutine) -> simvx.core.descriptors.CoroutineHandle :canonical: simvx.core.ui.popup_manager.DrawCanvas.start_coroutine ```` ````{py:method} stop_coroutine(gen_or_handle) :canonical: simvx.core.ui.popup_manager.DrawCanvas.stop_coroutine ```` ````{py:method} clear_children() :canonical: simvx.core.ui.popup_manager.DrawCanvas.clear_children ```` ````{py:method} destroy() :canonical: simvx.core.ui.popup_manager.DrawCanvas.destroy ```` ````{py:property} app :canonical: simvx.core.ui.popup_manager.DrawCanvas.app ```` ````{py:property} tree :canonical: simvx.core.ui.popup_manager.DrawCanvas.tree :type: simvx.core.scene_tree.SceneTree ```` ````{py:method} get_tree() -> simvx.core.scene_tree.SceneTree :canonical: simvx.core.ui.popup_manager.DrawCanvas.get_tree ```` ````{py:method} __getitem__(key: str) :canonical: simvx.core.ui.popup_manager.DrawCanvas.__getitem__ ```` ````{py:method} get_properties() -> dict[str, simvx.core.descriptors.Property] :canonical: simvx.core.ui.popup_manager.DrawCanvas.get_properties :classmethod: ```` ````{py:method} __repr__() :canonical: simvx.core.ui.popup_manager.DrawCanvas.__repr__ ```` ````` `````{py:class} PopupPanel(title='', panel_size=(400, 300), **kwargs) :canonical: simvx.core.ui.popup_manager.PopupPanel Bases: {py:obj}`simvx.core.ui.core.Control`, {py:obj}`simvx.core.ui.popup_manager.Popup` ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupPanel ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupPanel.__init__ ``` ````{py:attribute} title :canonical: simvx.core.ui.popup_manager.PopupPanel.title :value: > 'Property(...)' ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupPanel.title ``` ```` ````{py:attribute} panel_size :canonical: simvx.core.ui.popup_manager.PopupPanel.panel_size :value: > 'Property(...)' ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupPanel.panel_size ``` ```` ````{py:attribute} closable :canonical: simvx.core.ui.popup_manager.PopupPanel.closable :value: > 'Property(...)' ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupPanel.closable ``` ```` ````{py:attribute} dim_colour :canonical: simvx.core.ui.popup_manager.PopupPanel.dim_colour :value: > 'Property(...)' ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupPanel.dim_colour ``` ```` ````{py:method} add_content(widget: simvx.core.ui.core.Control) -> simvx.core.ui.core.Control :canonical: simvx.core.ui.popup_manager.PopupPanel.add_content ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupPanel.add_content ``` ```` ````{py:method} request_close() -> None :canonical: simvx.core.ui.popup_manager.PopupPanel.request_close ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupPanel.request_close ``` ```` ````{py:method} popup_draw(renderer, sw, sh) :canonical: simvx.core.ui.popup_manager.PopupPanel.popup_draw ```` ````{py:method} popup_click(mx, my) :canonical: simvx.core.ui.popup_manager.PopupPanel.popup_click ```` ````{py:method} popup_input(dt) :canonical: simvx.core.ui.popup_manager.PopupPanel.popup_input ```` ````{py:method} on_open() :canonical: simvx.core.ui.popup_manager.PopupPanel.on_open ```` ````{py:method} draw(renderer) :canonical: simvx.core.ui.popup_manager.PopupPanel.draw ```` ````{py:attribute} size_x :canonical: simvx.core.ui.popup_manager.PopupPanel.size_x :value: > 'Property(...)' ```` ````{py:attribute} size_y :canonical: simvx.core.ui.popup_manager.PopupPanel.size_y :value: > 'Property(...)' ```` ````{py:property} size :canonical: simvx.core.ui.popup_manager.PopupPanel.size :type: simvx.core.math.types.Vec2 ```` ````{py:attribute} touch_mode :canonical: simvx.core.ui.popup_manager.PopupPanel.touch_mode :type: str :value: > 'mouse' ```` ````{py:property} theme :canonical: simvx.core.ui.popup_manager.PopupPanel.theme :type: simvx.core.ui.types.Theme | None ```` ````{py:property} mouse_over :canonical: simvx.core.ui.popup_manager.PopupPanel.mouse_over :type: bool ```` ````{py:property} focused :canonical: simvx.core.ui.popup_manager.PopupPanel.focused :type: bool ```` ````{py:property} disabled :canonical: simvx.core.ui.popup_manager.PopupPanel.disabled :type: bool ```` ````{py:method} get_theme() -> simvx.core.ui.types.Theme :canonical: simvx.core.ui.popup_manager.PopupPanel.get_theme ```` ````{py:method} queue_redraw() :canonical: simvx.core.ui.popup_manager.PopupPanel.queue_redraw ```` ````{py:method} get_minimum_size() -> simvx.core.math.types.Vec2 :canonical: simvx.core.ui.popup_manager.PopupPanel.get_minimum_size ```` ````{py:method} get_rect() -> tuple[float, float, float, float] :canonical: simvx.core.ui.popup_manager.PopupPanel.get_rect ```` ````{py:method} get_global_rect() -> tuple[float, float, float, float] :canonical: simvx.core.ui.popup_manager.PopupPanel.get_global_rect ```` ````{py:method} is_point_inside(point) -> bool :canonical: simvx.core.ui.popup_manager.PopupPanel.is_point_inside ```` ````{py:method} set_anchor_preset(preset: simvx.core.ui.enums.AnchorPreset) :canonical: simvx.core.ui.popup_manager.PopupPanel.set_anchor_preset ```` ````{py:method} set_focus() :canonical: simvx.core.ui.popup_manager.PopupPanel.set_focus ```` ````{py:method} grab_focus() :canonical: simvx.core.ui.popup_manager.PopupPanel.grab_focus ```` ````{py:method} release_focus() :canonical: simvx.core.ui.popup_manager.PopupPanel.release_focus ```` ````{py:method} has_focus() -> bool :canonical: simvx.core.ui.popup_manager.PopupPanel.has_focus ```` ````{py:method} focus_next_control() :canonical: simvx.core.ui.popup_manager.PopupPanel.focus_next_control ```` ````{py:method} focus_previous_control() :canonical: simvx.core.ui.popup_manager.PopupPanel.focus_previous_control ```` ````{py:method} grab_mouse() :canonical: simvx.core.ui.popup_manager.PopupPanel.grab_mouse ```` ````{py:method} release_mouse() :canonical: simvx.core.ui.popup_manager.PopupPanel.release_mouse ```` ````{py:method} set_drag_preview(control: simvx.core.ui.core.Control) :canonical: simvx.core.ui.popup_manager.PopupPanel.set_drag_preview ```` ````{py:method} draw_popup(renderer) :canonical: simvx.core.ui.popup_manager.PopupPanel.draw_popup ```` ````{py:method} is_popup_point_inside(point) -> bool :canonical: simvx.core.ui.popup_manager.PopupPanel.is_popup_point_inside ```` ````{py:method} dismiss_popup() :canonical: simvx.core.ui.popup_manager.PopupPanel.dismiss_popup ```` ````{py:attribute} z_index :canonical: simvx.core.ui.popup_manager.PopupPanel.z_index :value: > 'Property(...)' ```` ````{py:attribute} z_as_relative :canonical: simvx.core.ui.popup_manager.PopupPanel.z_as_relative :value: > 'Property(...)' ```` ````{py:attribute} render_layer :canonical: simvx.core.ui.popup_manager.PopupPanel.render_layer :value: > 'Property(...)' ```` ````{py:method} set_render_layer(index: int, enabled: bool = True) -> None :canonical: simvx.core.ui.popup_manager.PopupPanel.set_render_layer ```` ````{py:method} is_on_render_layer(index: int) -> bool :canonical: simvx.core.ui.popup_manager.PopupPanel.is_on_render_layer ```` ````{py:property} absolute_z_index :canonical: simvx.core.ui.popup_manager.PopupPanel.absolute_z_index :type: int ```` ````{py:property} position :canonical: simvx.core.ui.popup_manager.PopupPanel.position :type: simvx.core.math.types.Vec2 ```` ````{py:property} rotation :canonical: simvx.core.ui.popup_manager.PopupPanel.rotation :type: float ```` ````{py:property} rotation_degrees :canonical: simvx.core.ui.popup_manager.PopupPanel.rotation_degrees :type: float ```` ````{py:property} scale :canonical: simvx.core.ui.popup_manager.PopupPanel.scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} world_position :canonical: simvx.core.ui.popup_manager.PopupPanel.world_position :type: simvx.core.math.types.Vec2 ```` ````{py:property} world_rotation :canonical: simvx.core.ui.popup_manager.PopupPanel.world_rotation :type: float ```` ````{py:property} world_scale :canonical: simvx.core.ui.popup_manager.PopupPanel.world_scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} forward :canonical: simvx.core.ui.popup_manager.PopupPanel.forward :type: simvx.core.math.types.Vec2 ```` ````{py:property} right :canonical: simvx.core.ui.popup_manager.PopupPanel.right :type: simvx.core.math.types.Vec2 ```` ````{py:method} translate(offset: tuple[float, float] | numpy.ndarray) :canonical: simvx.core.ui.popup_manager.PopupPanel.translate ```` ````{py:method} rotate(radians: float) :canonical: simvx.core.ui.popup_manager.PopupPanel.rotate ```` ````{py:method} rotate_deg(degrees: float) :canonical: simvx.core.ui.popup_manager.PopupPanel.rotate_deg ```` ````{py:method} look_at(target: tuple[float, float] | numpy.ndarray) :canonical: simvx.core.ui.popup_manager.PopupPanel.look_at ```` ````{py:method} transform_points(points: list[simvx.core.math.types.Vec2]) -> list[simvx.core.math.types.Vec2] :canonical: simvx.core.ui.popup_manager.PopupPanel.transform_points ```` ````{py:method} draw_polygon(renderer, points: list[simvx.core.math.types.Vec2], closed=True, colour=None) :canonical: simvx.core.ui.popup_manager.PopupPanel.draw_polygon ```` ````{py:method} wrap_screen(margin: float = 20) :canonical: simvx.core.ui.popup_manager.PopupPanel.wrap_screen ```` ````{py:attribute} strict_errors :canonical: simvx.core.ui.popup_manager.PopupPanel.strict_errors :type: typing.ClassVar[bool] :value: > True ```` ````{py:attribute} script_error_raised :canonical: simvx.core.ui.popup_manager.PopupPanel.script_error_raised :value: > 'Signal(...)' ```` ````{py:method} __init_subclass__(**kwargs) :canonical: simvx.core.ui.popup_manager.PopupPanel.__init_subclass__ :classmethod: ```` ````{py:property} name :canonical: simvx.core.ui.popup_manager.PopupPanel.name :type: str ```` ````{py:property} process_mode :canonical: simvx.core.ui.popup_manager.PopupPanel.process_mode :type: simvx.core.descriptors.ProcessMode ```` ````{py:method} reset_error() -> None :canonical: simvx.core.ui.popup_manager.PopupPanel.reset_error ```` ````{py:method} add_child(node: simvx.core.node.Node) -> simvx.core.node.Node :canonical: simvx.core.ui.popup_manager.PopupPanel.add_child ```` ````{py:method} remove_child(node: simvx.core.node.Node) :canonical: simvx.core.ui.popup_manager.PopupPanel.remove_child ```` ````{py:method} reparent(new_parent: simvx.core.node.Node) :canonical: simvx.core.ui.popup_manager.PopupPanel.reparent ```` ````{py:method} get_node(path: str) -> simvx.core.node.Node :canonical: simvx.core.ui.popup_manager.PopupPanel.get_node ```` ````{py:method} find_child(name: str, recursive: bool = False) -> simvx.core.node.Node | None :canonical: simvx.core.ui.popup_manager.PopupPanel.find_child ```` ````{py:method} find(node_type: type, recursive: bool = True) -> simvx.core.node.Node | None :canonical: simvx.core.ui.popup_manager.PopupPanel.find ```` ````{py:method} find_all(node_type: type, recursive: bool = True) -> list :canonical: simvx.core.ui.popup_manager.PopupPanel.find_all ```` ````{py:property} path :canonical: simvx.core.ui.popup_manager.PopupPanel.path :type: str ```` ````{py:method} add_to_group(group: str) :canonical: simvx.core.ui.popup_manager.PopupPanel.add_to_group ```` ````{py:method} remove_from_group(group: str) :canonical: simvx.core.ui.popup_manager.PopupPanel.remove_from_group ```` ````{py:method} is_in_group(group: str) -> bool :canonical: simvx.core.ui.popup_manager.PopupPanel.is_in_group ```` ````{py:method} ready() -> None :canonical: simvx.core.ui.popup_manager.PopupPanel.ready ```` ````{py:method} enter_tree() -> None :canonical: simvx.core.ui.popup_manager.PopupPanel.enter_tree ```` ````{py:method} exit_tree() -> None :canonical: simvx.core.ui.popup_manager.PopupPanel.exit_tree ```` ````{py:method} process(dt: float) -> None :canonical: simvx.core.ui.popup_manager.PopupPanel.process ```` ````{py:method} physics_process(dt: float) -> None :canonical: simvx.core.ui.popup_manager.PopupPanel.physics_process ```` ````{py:method} input_event(event: simvx.core.events.InputEvent) -> None :canonical: simvx.core.ui.popup_manager.PopupPanel.input_event ```` ````{py:method} input(event: simvx.core.events.TreeInputEvent) -> None :canonical: simvx.core.ui.popup_manager.PopupPanel.input ```` ````{py:method} unhandled_input(event: simvx.core.events.TreeInputEvent) -> None :canonical: simvx.core.ui.popup_manager.PopupPanel.unhandled_input ```` ````{py:method} start_coroutine(gen: simvx.core.descriptors.Coroutine) -> simvx.core.descriptors.CoroutineHandle :canonical: simvx.core.ui.popup_manager.PopupPanel.start_coroutine ```` ````{py:method} stop_coroutine(gen_or_handle) :canonical: simvx.core.ui.popup_manager.PopupPanel.stop_coroutine ```` ````{py:method} clear_children() :canonical: simvx.core.ui.popup_manager.PopupPanel.clear_children ```` ````{py:method} destroy() :canonical: simvx.core.ui.popup_manager.PopupPanel.destroy ```` ````{py:property} app :canonical: simvx.core.ui.popup_manager.PopupPanel.app ```` ````{py:property} tree :canonical: simvx.core.ui.popup_manager.PopupPanel.tree :type: simvx.core.scene_tree.SceneTree ```` ````{py:method} get_tree() -> simvx.core.scene_tree.SceneTree :canonical: simvx.core.ui.popup_manager.PopupPanel.get_tree ```` ````{py:method} __getitem__(key: str) :canonical: simvx.core.ui.popup_manager.PopupPanel.__getitem__ ```` ````{py:method} get_properties() -> dict[str, simvx.core.descriptors.Property] :canonical: simvx.core.ui.popup_manager.PopupPanel.get_properties :classmethod: ```` ````{py:method} __repr__() :canonical: simvx.core.ui.popup_manager.PopupPanel.__repr__ ```` ````{py:method} on_close() -> None :canonical: simvx.core.ui.popup_manager.PopupPanel.on_close ```` ````` `````{py:class} PopupManager(**kwargs) :canonical: simvx.core.ui.popup_manager.PopupManager Bases: {py:obj}`simvx.core.nodes_2d.node2d.Node2D` ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupManager ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupManager.__init__ ``` ````{py:attribute} pause_tree :canonical: simvx.core.ui.popup_manager.PopupManager.pause_tree :value: > 'Property(...)' ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupManager.pause_tree ``` ```` ````{py:attribute} input_skip_frames :canonical: simvx.core.ui.popup_manager.PopupManager.input_skip_frames :value: > 'Property(...)' ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupManager.input_skip_frames ``` ```` ````{py:attribute} on_opened :canonical: simvx.core.ui.popup_manager.PopupManager.on_opened :value: > 'Signal(...)' ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupManager.on_opened ``` ```` ````{py:attribute} on_closed :canonical: simvx.core.ui.popup_manager.PopupManager.on_closed :value: > 'Signal(...)' ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupManager.on_closed ``` ```` ````{py:property} is_open :canonical: simvx.core.ui.popup_manager.PopupManager.is_open :type: bool ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupManager.is_open ``` ```` ````{py:property} active :canonical: simvx.core.ui.popup_manager.PopupManager.active :type: simvx.core.ui.popup_manager.Popup | None ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupManager.active ``` ```` ````{py:method} open(popup: simvx.core.ui.popup_manager.Popup) -> None :canonical: simvx.core.ui.popup_manager.PopupManager.open ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupManager.open ``` ```` ````{py:method} close() -> None :canonical: simvx.core.ui.popup_manager.PopupManager.close ```{autodoc2-docstring} simvx.core.ui.popup_manager.PopupManager.close ``` ```` ````{py:method} process(dt: float) :canonical: simvx.core.ui.popup_manager.PopupManager.process ```` ````{py:method} draw(renderer) :canonical: simvx.core.ui.popup_manager.PopupManager.draw ```` ````{py:attribute} z_index :canonical: simvx.core.ui.popup_manager.PopupManager.z_index :value: > 'Property(...)' ```` ````{py:attribute} z_as_relative :canonical: simvx.core.ui.popup_manager.PopupManager.z_as_relative :value: > 'Property(...)' ```` ````{py:attribute} render_layer :canonical: simvx.core.ui.popup_manager.PopupManager.render_layer :value: > 'Property(...)' ```` ````{py:method} set_render_layer(index: int, enabled: bool = True) -> None :canonical: simvx.core.ui.popup_manager.PopupManager.set_render_layer ```` ````{py:method} is_on_render_layer(index: int) -> bool :canonical: simvx.core.ui.popup_manager.PopupManager.is_on_render_layer ```` ````{py:property} absolute_z_index :canonical: simvx.core.ui.popup_manager.PopupManager.absolute_z_index :type: int ```` ````{py:property} position :canonical: simvx.core.ui.popup_manager.PopupManager.position :type: simvx.core.math.types.Vec2 ```` ````{py:property} rotation :canonical: simvx.core.ui.popup_manager.PopupManager.rotation :type: float ```` ````{py:property} rotation_degrees :canonical: simvx.core.ui.popup_manager.PopupManager.rotation_degrees :type: float ```` ````{py:property} scale :canonical: simvx.core.ui.popup_manager.PopupManager.scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} world_position :canonical: simvx.core.ui.popup_manager.PopupManager.world_position :type: simvx.core.math.types.Vec2 ```` ````{py:property} world_rotation :canonical: simvx.core.ui.popup_manager.PopupManager.world_rotation :type: float ```` ````{py:property} world_scale :canonical: simvx.core.ui.popup_manager.PopupManager.world_scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} forward :canonical: simvx.core.ui.popup_manager.PopupManager.forward :type: simvx.core.math.types.Vec2 ```` ````{py:property} right :canonical: simvx.core.ui.popup_manager.PopupManager.right :type: simvx.core.math.types.Vec2 ```` ````{py:method} translate(offset: tuple[float, float] | numpy.ndarray) :canonical: simvx.core.ui.popup_manager.PopupManager.translate ```` ````{py:method} rotate(radians: float) :canonical: simvx.core.ui.popup_manager.PopupManager.rotate ```` ````{py:method} rotate_deg(degrees: float) :canonical: simvx.core.ui.popup_manager.PopupManager.rotate_deg ```` ````{py:method} look_at(target: tuple[float, float] | numpy.ndarray) :canonical: simvx.core.ui.popup_manager.PopupManager.look_at ```` ````{py:method} transform_points(points: list[simvx.core.math.types.Vec2]) -> list[simvx.core.math.types.Vec2] :canonical: simvx.core.ui.popup_manager.PopupManager.transform_points ```` ````{py:method} draw_polygon(renderer, points: list[simvx.core.math.types.Vec2], closed=True, colour=None) :canonical: simvx.core.ui.popup_manager.PopupManager.draw_polygon ```` ````{py:method} wrap_screen(margin: float = 20) :canonical: simvx.core.ui.popup_manager.PopupManager.wrap_screen ```` ````{py:attribute} strict_errors :canonical: simvx.core.ui.popup_manager.PopupManager.strict_errors :type: typing.ClassVar[bool] :value: > True ```` ````{py:attribute} script_error_raised :canonical: simvx.core.ui.popup_manager.PopupManager.script_error_raised :value: > 'Signal(...)' ```` ````{py:method} __init_subclass__(**kwargs) :canonical: simvx.core.ui.popup_manager.PopupManager.__init_subclass__ :classmethod: ```` ````{py:property} name :canonical: simvx.core.ui.popup_manager.PopupManager.name :type: str ```` ````{py:property} process_mode :canonical: simvx.core.ui.popup_manager.PopupManager.process_mode :type: simvx.core.descriptors.ProcessMode ```` ````{py:method} reset_error() -> None :canonical: simvx.core.ui.popup_manager.PopupManager.reset_error ```` ````{py:method} add_child(node: simvx.core.node.Node) -> simvx.core.node.Node :canonical: simvx.core.ui.popup_manager.PopupManager.add_child ```` ````{py:method} remove_child(node: simvx.core.node.Node) :canonical: simvx.core.ui.popup_manager.PopupManager.remove_child ```` ````{py:method} reparent(new_parent: simvx.core.node.Node) :canonical: simvx.core.ui.popup_manager.PopupManager.reparent ```` ````{py:method} get_node(path: str) -> simvx.core.node.Node :canonical: simvx.core.ui.popup_manager.PopupManager.get_node ```` ````{py:method} find_child(name: str, recursive: bool = False) -> simvx.core.node.Node | None :canonical: simvx.core.ui.popup_manager.PopupManager.find_child ```` ````{py:method} find(node_type: type, recursive: bool = True) -> simvx.core.node.Node | None :canonical: simvx.core.ui.popup_manager.PopupManager.find ```` ````{py:method} find_all(node_type: type, recursive: bool = True) -> list :canonical: simvx.core.ui.popup_manager.PopupManager.find_all ```` ````{py:property} path :canonical: simvx.core.ui.popup_manager.PopupManager.path :type: str ```` ````{py:method} add_to_group(group: str) :canonical: simvx.core.ui.popup_manager.PopupManager.add_to_group ```` ````{py:method} remove_from_group(group: str) :canonical: simvx.core.ui.popup_manager.PopupManager.remove_from_group ```` ````{py:method} is_in_group(group: str) -> bool :canonical: simvx.core.ui.popup_manager.PopupManager.is_in_group ```` ````{py:method} ready() -> None :canonical: simvx.core.ui.popup_manager.PopupManager.ready ```` ````{py:method} enter_tree() -> None :canonical: simvx.core.ui.popup_manager.PopupManager.enter_tree ```` ````{py:method} exit_tree() -> None :canonical: simvx.core.ui.popup_manager.PopupManager.exit_tree ```` ````{py:method} physics_process(dt: float) -> None :canonical: simvx.core.ui.popup_manager.PopupManager.physics_process ```` ````{py:method} input_event(event: simvx.core.events.InputEvent) -> None :canonical: simvx.core.ui.popup_manager.PopupManager.input_event ```` ````{py:method} input(event: simvx.core.events.TreeInputEvent) -> None :canonical: simvx.core.ui.popup_manager.PopupManager.input ```` ````{py:method} unhandled_input(event: simvx.core.events.TreeInputEvent) -> None :canonical: simvx.core.ui.popup_manager.PopupManager.unhandled_input ```` ````{py:method} start_coroutine(gen: simvx.core.descriptors.Coroutine) -> simvx.core.descriptors.CoroutineHandle :canonical: simvx.core.ui.popup_manager.PopupManager.start_coroutine ```` ````{py:method} stop_coroutine(gen_or_handle) :canonical: simvx.core.ui.popup_manager.PopupManager.stop_coroutine ```` ````{py:method} clear_children() :canonical: simvx.core.ui.popup_manager.PopupManager.clear_children ```` ````{py:method} destroy() :canonical: simvx.core.ui.popup_manager.PopupManager.destroy ```` ````{py:property} app :canonical: simvx.core.ui.popup_manager.PopupManager.app ```` ````{py:property} tree :canonical: simvx.core.ui.popup_manager.PopupManager.tree :type: simvx.core.scene_tree.SceneTree ```` ````{py:method} get_tree() -> simvx.core.scene_tree.SceneTree :canonical: simvx.core.ui.popup_manager.PopupManager.get_tree ```` ````{py:method} __getitem__(key: str) :canonical: simvx.core.ui.popup_manager.PopupManager.__getitem__ ```` ````{py:method} get_properties() -> dict[str, simvx.core.descriptors.Property] :canonical: simvx.core.ui.popup_manager.PopupManager.get_properties :classmethod: ```` ````{py:method} __repr__() :canonical: simvx.core.ui.popup_manager.PopupManager.__repr__ ```` ````` ````{py:function} check_menu_click(mx: float, my: float, count: int, origin_x: float, origin_y: float, item_w: float, item_h: float, spacing: float) -> int | None :canonical: simvx.core.ui.popup_manager.check_menu_click ```{autodoc2-docstring} simvx.core.ui.popup_manager.check_menu_click ``` ````