# {py:mod}`simvx.editor.panels.play_controls` ```{py:module} simvx.editor.panels.play_controls ``` ```{autodoc2-docstring} simvx.editor.panels.play_controls :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`PlayControlBar ` - ```{autodoc2-docstring} simvx.editor.panels.play_controls.PlayControlBar :summary: ``` ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`log ` - ```{autodoc2-docstring} simvx.editor.panels.play_controls.log :summary: ``` ```` ### API ````{py:data} log :canonical: simvx.editor.panels.play_controls.log :value: > 'getLogger(...)' ```{autodoc2-docstring} simvx.editor.panels.play_controls.log ``` ```` `````{py:class} PlayControlBar(state: simvx.editor.state.State, play_mode: simvx.editor.play_mode.PlayMode, prefs: simvx.editor.config.Config, *, button_height: float = 24.0, **kwargs) :canonical: simvx.editor.panels.play_controls.PlayControlBar Bases: {py:obj}`simvx.core.HBoxContainer` ```{autodoc2-docstring} simvx.editor.panels.play_controls.PlayControlBar ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.editor.panels.play_controls.PlayControlBar.__init__ ``` ````{py:attribute} PLAY_ACTIVE_BG :canonical: simvx.editor.panels.play_controls.PlayControlBar.PLAY_ACTIVE_BG :value: > (0.15, 0.4, 0.15, 1.0) ```{autodoc2-docstring} simvx.editor.panels.play_controls.PlayControlBar.PLAY_ACTIVE_BG ``` ```` ````{py:attribute} PAUSE_ACTIVE_BG :canonical: simvx.editor.panels.play_controls.PlayControlBar.PAUSE_ACTIVE_BG :value: > (0.45, 0.35, 0.1, 1.0) ```{autodoc2-docstring} simvx.editor.panels.play_controls.PlayControlBar.PAUSE_ACTIVE_BG ``` ```` ````{py:attribute} HOT_RELOAD_ACTIVE_BG :canonical: simvx.editor.panels.play_controls.PlayControlBar.HOT_RELOAD_ACTIVE_BG :value: > (0.18, 0.32, 0.5, 1.0) ```{autodoc2-docstring} simvx.editor.panels.play_controls.PlayControlBar.HOT_RELOAD_ACTIVE_BG ``` ```` ````{py:attribute} alignment :canonical: simvx.editor.panels.play_controls.PlayControlBar.alignment :value: > 'Property(...)' ```` ````{py:method} get_minimum_size() -> simvx.core.math.types.Vec2 :canonical: simvx.editor.panels.play_controls.PlayControlBar.get_minimum_size ```` ````{py:attribute} separation :canonical: simvx.editor.panels.play_controls.PlayControlBar.separation :value: > 'Property(...)' ```` ````{py:method} ready() :canonical: simvx.editor.panels.play_controls.PlayControlBar.ready ```` ````{py:method} add_child(node) :canonical: simvx.editor.panels.play_controls.PlayControlBar.add_child ```` ````{py:method} remove_child(node) :canonical: simvx.editor.panels.play_controls.PlayControlBar.remove_child ```` ````{py:method} mark_layout_dirty() :canonical: simvx.editor.panels.play_controls.PlayControlBar.mark_layout_dirty ```` ````{py:method} process(dt: float) :canonical: simvx.editor.panels.play_controls.PlayControlBar.process ```` ````{py:attribute} size_x :canonical: simvx.editor.panels.play_controls.PlayControlBar.size_x :value: > 'Property(...)' ```` ````{py:attribute} size_y :canonical: simvx.editor.panels.play_controls.PlayControlBar.size_y :value: > 'Property(...)' ```` ````{py:attribute} anchor_left :canonical: simvx.editor.panels.play_controls.PlayControlBar.anchor_left :value: > 'Property(...)' ```` ````{py:attribute} anchor_top :canonical: simvx.editor.panels.play_controls.PlayControlBar.anchor_top :value: > 'Property(...)' ```` ````{py:attribute} anchor_right :canonical: simvx.editor.panels.play_controls.PlayControlBar.anchor_right :value: > 'Property(...)' ```` ````{py:attribute} anchor_bottom :canonical: simvx.editor.panels.play_controls.PlayControlBar.anchor_bottom :value: > 'Property(...)' ```` ````{py:attribute} margin_left :canonical: simvx.editor.panels.play_controls.PlayControlBar.margin_left :value: > 'Property(...)' ```` ````{py:attribute} margin_top :canonical: simvx.editor.panels.play_controls.PlayControlBar.margin_top :value: > 'Property(...)' ```` ````{py:attribute} margin_right :canonical: simvx.editor.panels.play_controls.PlayControlBar.margin_right :value: > 'Property(...)' ```` ````{py:attribute} margin_bottom :canonical: simvx.editor.panels.play_controls.PlayControlBar.margin_bottom :value: > 'Property(...)' ```` ````{py:property} size :canonical: simvx.editor.panels.play_controls.PlayControlBar.size :type: simvx.core.math.types.Vec2 ```` ````{py:attribute} touch_mode :canonical: simvx.editor.panels.play_controls.PlayControlBar.touch_mode :type: str :value: > 'mouse' ```` ````{py:property} theme :canonical: simvx.editor.panels.play_controls.PlayControlBar.theme :type: simvx.core.ui.types.Theme | None ```` ````{py:property} mouse_over :canonical: simvx.editor.panels.play_controls.PlayControlBar.mouse_over :type: bool ```` ````{py:property} focused :canonical: simvx.editor.panels.play_controls.PlayControlBar.focused :type: bool ```` ````{py:property} disabled :canonical: simvx.editor.panels.play_controls.PlayControlBar.disabled :type: bool ```` ````{py:method} get_theme() -> simvx.core.ui.types.Theme :canonical: simvx.editor.panels.play_controls.PlayControlBar.get_theme ```` ````{py:method} queue_redraw() :canonical: simvx.editor.panels.play_controls.PlayControlBar.queue_redraw ```` ````{py:method} get_rect() -> tuple[float, float, float, float] :canonical: simvx.editor.panels.play_controls.PlayControlBar.get_rect ```` ````{py:method} get_global_rect() -> tuple[float, float, float, float] :canonical: simvx.editor.panels.play_controls.PlayControlBar.get_global_rect ```` ````{py:method} is_point_inside(point) -> bool :canonical: simvx.editor.panels.play_controls.PlayControlBar.is_point_inside ```` ````{py:method} set_anchor_preset(preset: simvx.core.ui.enums.AnchorPreset) :canonical: simvx.editor.panels.play_controls.PlayControlBar.set_anchor_preset ```` ````{py:method} set_focus() :canonical: simvx.editor.panels.play_controls.PlayControlBar.set_focus ```` ````{py:method} grab_focus() :canonical: simvx.editor.panels.play_controls.PlayControlBar.grab_focus ```` ````{py:method} release_focus() :canonical: simvx.editor.panels.play_controls.PlayControlBar.release_focus ```` ````{py:method} has_focus() -> bool :canonical: simvx.editor.panels.play_controls.PlayControlBar.has_focus ```` ````{py:method} focus_next_control() :canonical: simvx.editor.panels.play_controls.PlayControlBar.focus_next_control ```` ````{py:method} focus_previous_control() :canonical: simvx.editor.panels.play_controls.PlayControlBar.focus_previous_control ```` ````{py:method} grab_mouse() :canonical: simvx.editor.panels.play_controls.PlayControlBar.grab_mouse ```` ````{py:method} release_mouse() :canonical: simvx.editor.panels.play_controls.PlayControlBar.release_mouse ```` ````{py:method} set_drag_preview(control: simvx.core.ui.core.Control) :canonical: simvx.editor.panels.play_controls.PlayControlBar.set_drag_preview ```` ````{py:method} draw_popup(renderer) :canonical: simvx.editor.panels.play_controls.PlayControlBar.draw_popup ```` ````{py:method} is_popup_point_inside(point) -> bool :canonical: simvx.editor.panels.play_controls.PlayControlBar.is_popup_point_inside ```` ````{py:method} popup_input(event) :canonical: simvx.editor.panels.play_controls.PlayControlBar.popup_input ```` ````{py:method} dismiss_popup() :canonical: simvx.editor.panels.play_controls.PlayControlBar.dismiss_popup ```` ````{py:attribute} z_index :canonical: simvx.editor.panels.play_controls.PlayControlBar.z_index :value: > 'Property(...)' ```` ````{py:attribute} z_as_relative :canonical: simvx.editor.panels.play_controls.PlayControlBar.z_as_relative :value: > 'Property(...)' ```` ````{py:attribute} render_layer :canonical: simvx.editor.panels.play_controls.PlayControlBar.render_layer :value: > 'Property(...)' ```` ````{py:method} set_render_layer(index: int, enabled: bool = True) -> None :canonical: simvx.editor.panels.play_controls.PlayControlBar.set_render_layer ```` ````{py:method} is_on_render_layer(index: int) -> bool :canonical: simvx.editor.panels.play_controls.PlayControlBar.is_on_render_layer ```` ````{py:property} absolute_z_index :canonical: simvx.editor.panels.play_controls.PlayControlBar.absolute_z_index :type: int ```` ````{py:property} position :canonical: simvx.editor.panels.play_controls.PlayControlBar.position :type: simvx.core.math.types.Vec2 ```` ````{py:property} rotation :canonical: simvx.editor.panels.play_controls.PlayControlBar.rotation :type: float ```` ````{py:property} rotation_degrees :canonical: simvx.editor.panels.play_controls.PlayControlBar.rotation_degrees :type: float ```` ````{py:property} scale :canonical: simvx.editor.panels.play_controls.PlayControlBar.scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} world_position :canonical: simvx.editor.panels.play_controls.PlayControlBar.world_position :type: simvx.core.math.types.Vec2 ```` ````{py:property} world_rotation :canonical: simvx.editor.panels.play_controls.PlayControlBar.world_rotation :type: float ```` ````{py:property} world_scale :canonical: simvx.editor.panels.play_controls.PlayControlBar.world_scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} forward :canonical: simvx.editor.panels.play_controls.PlayControlBar.forward :type: simvx.core.math.types.Vec2 ```` ````{py:property} right :canonical: simvx.editor.panels.play_controls.PlayControlBar.right :type: simvx.core.math.types.Vec2 ```` ````{py:method} translate(offset: tuple[float, float] | numpy.ndarray) :canonical: simvx.editor.panels.play_controls.PlayControlBar.translate ```` ````{py:method} rotate(radians: float) :canonical: simvx.editor.panels.play_controls.PlayControlBar.rotate ```` ````{py:method} rotate_deg(degrees: float) :canonical: simvx.editor.panels.play_controls.PlayControlBar.rotate_deg ```` ````{py:method} look_at(target: tuple[float, float] | numpy.ndarray) :canonical: simvx.editor.panels.play_controls.PlayControlBar.look_at ```` ````{py:method} transform_points(points: list[simvx.core.math.types.Vec2]) -> list[simvx.core.math.types.Vec2] :canonical: simvx.editor.panels.play_controls.PlayControlBar.transform_points ```` ````{py:method} draw_polygon(renderer, points: list[simvx.core.math.types.Vec2], closed=True, colour=None) :canonical: simvx.editor.panels.play_controls.PlayControlBar.draw_polygon ```` ````{py:method} wrap_screen(margin: float = 20) :canonical: simvx.editor.panels.play_controls.PlayControlBar.wrap_screen ```` ````{py:attribute} strict_errors :canonical: simvx.editor.panels.play_controls.PlayControlBar.strict_errors :type: typing.ClassVar[bool] :value: > True ```` ````{py:attribute} script_error_raised :canonical: simvx.editor.panels.play_controls.PlayControlBar.script_error_raised :value: > 'Signal(...)' ```` ````{py:method} __init_subclass__(**kwargs) :canonical: simvx.editor.panels.play_controls.PlayControlBar.__init_subclass__ :classmethod: ```` ````{py:property} name :canonical: simvx.editor.panels.play_controls.PlayControlBar.name :type: str ```` ````{py:property} process_mode :canonical: simvx.editor.panels.play_controls.PlayControlBar.process_mode :type: simvx.core.descriptors.ProcessMode ```` ````{py:property} visible :canonical: simvx.editor.panels.play_controls.PlayControlBar.visible :type: bool ```` ````{py:method} reset_error() -> None :canonical: simvx.editor.panels.play_controls.PlayControlBar.reset_error ```` ````{py:method} reparent(new_parent: simvx.core.node.Node) :canonical: simvx.editor.panels.play_controls.PlayControlBar.reparent ```` ````{py:method} get_node(path: str) -> simvx.core.node.Node :canonical: simvx.editor.panels.play_controls.PlayControlBar.get_node ```` ````{py:method} find_child(name: str, recursive: bool = False) -> simvx.core.node.Node | None :canonical: simvx.editor.panels.play_controls.PlayControlBar.find_child ```` ````{py:method} find(node_type: type, recursive: bool = True) -> simvx.core.node.Node | None :canonical: simvx.editor.panels.play_controls.PlayControlBar.find ```` ````{py:method} find_all(node_type: type, recursive: bool = True) -> list :canonical: simvx.editor.panels.play_controls.PlayControlBar.find_all ```` ````{py:method} walk(*, include_self: bool = True) -> collections.abc.Iterator[simvx.core.node.Node] :canonical: simvx.editor.panels.play_controls.PlayControlBar.walk ```` ````{py:property} path :canonical: simvx.editor.panels.play_controls.PlayControlBar.path :type: str ```` ````{py:method} add_to_group(group: str) :canonical: simvx.editor.panels.play_controls.PlayControlBar.add_to_group ```` ````{py:method} remove_from_group(group: str) :canonical: simvx.editor.panels.play_controls.PlayControlBar.remove_from_group ```` ````{py:method} is_in_group(group: str) -> bool :canonical: simvx.editor.panels.play_controls.PlayControlBar.is_in_group ```` ````{py:method} enter_tree() -> None :canonical: simvx.editor.panels.play_controls.PlayControlBar.enter_tree ```` ````{py:method} exit_tree() -> None :canonical: simvx.editor.panels.play_controls.PlayControlBar.exit_tree ```` ````{py:method} physics_process(dt: float) -> None :canonical: simvx.editor.panels.play_controls.PlayControlBar.physics_process ```` ````{py:method} draw(renderer) -> None :canonical: simvx.editor.panels.play_controls.PlayControlBar.draw ```` ````{py:method} picked(event: simvx.core.events.InputEvent) -> None :canonical: simvx.editor.panels.play_controls.PlayControlBar.picked ```` ````{py:method} handle_input(event: simvx.core.events.TreeInputEvent) -> None :canonical: simvx.editor.panels.play_controls.PlayControlBar.handle_input ```` ````{py:method} unhandled_input(event: simvx.core.events.TreeInputEvent) -> None :canonical: simvx.editor.panels.play_controls.PlayControlBar.unhandled_input ```` ````{py:method} start_coroutine(gen: simvx.core.descriptors.Coroutine) -> simvx.core.descriptors.CoroutineHandle :canonical: simvx.editor.panels.play_controls.PlayControlBar.start_coroutine ```` ````{py:method} stop_coroutine(gen_or_handle) :canonical: simvx.editor.panels.play_controls.PlayControlBar.stop_coroutine ```` ````{py:method} clear_children() :canonical: simvx.editor.panels.play_controls.PlayControlBar.clear_children ```` ````{py:method} destroy() :canonical: simvx.editor.panels.play_controls.PlayControlBar.destroy ```` ````{py:property} app :canonical: simvx.editor.panels.play_controls.PlayControlBar.app ```` ````{py:property} tree :canonical: simvx.editor.panels.play_controls.PlayControlBar.tree :type: simvx.core.scene_tree.SceneTree ```` ````{py:method} __getitem__(key: str) :canonical: simvx.editor.panels.play_controls.PlayControlBar.__getitem__ ```` ````{py:method} get_properties() -> dict[str, simvx.core.descriptors.Property] :canonical: simvx.editor.panels.play_controls.PlayControlBar.get_properties :classmethod: ```` ````{py:method} __repr__() :canonical: simvx.editor.panels.play_controls.PlayControlBar.__repr__ ```` `````