# {py:mod}`simvx.editor.panels.section_widgets` ```{py:module} simvx.editor.panels.section_widgets ``` ```{autodoc2-docstring} simvx.editor.panels.section_widgets :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`SectionHeader ` - ```{autodoc2-docstring} simvx.editor.panels.section_widgets.SectionHeader :summary: ``` * - {py:obj}`Section ` - ```{autodoc2-docstring} simvx.editor.panels.section_widgets.Section :summary: ``` ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`SECTION_BG ` - ```{autodoc2-docstring} simvx.editor.panels.section_widgets.SECTION_BG :summary: ``` * - {py:obj}`SECTION_HOVER_BG ` - ```{autodoc2-docstring} simvx.editor.panels.section_widgets.SECTION_HOVER_BG :summary: ``` * - {py:obj}`SECTION_LABEL_COLOR ` - ```{autodoc2-docstring} simvx.editor.panels.section_widgets.SECTION_LABEL_COLOR :summary: ``` * - {py:obj}`SEPARATOR_COLOR ` - ```{autodoc2-docstring} simvx.editor.panels.section_widgets.SEPARATOR_COLOR :summary: ``` * - {py:obj}`SECTION_HEADER_HEIGHT ` - ```{autodoc2-docstring} simvx.editor.panels.section_widgets.SECTION_HEADER_HEIGHT :summary: ``` * - {py:obj}`PADDING ` - ```{autodoc2-docstring} simvx.editor.panels.section_widgets.PADDING :summary: ``` * - {py:obj}`FONT_SIZE ` - ```{autodoc2-docstring} simvx.editor.panels.section_widgets.FONT_SIZE :summary: ``` ```` ### API ````{py:data} SECTION_BG :canonical: simvx.editor.panels.section_widgets.SECTION_BG :value: > (0.18, 0.18, 0.18, 1.0) ```{autodoc2-docstring} simvx.editor.panels.section_widgets.SECTION_BG ``` ```` ````{py:data} SECTION_HOVER_BG :canonical: simvx.editor.panels.section_widgets.SECTION_HOVER_BG :value: > (0.22, 0.22, 0.22, 1.0) ```{autodoc2-docstring} simvx.editor.panels.section_widgets.SECTION_HOVER_BG ``` ```` ````{py:data} SECTION_LABEL_COLOR :canonical: simvx.editor.panels.section_widgets.SECTION_LABEL_COLOR :value: > (0.85, 0.85, 0.85, 1.0) ```{autodoc2-docstring} simvx.editor.panels.section_widgets.SECTION_LABEL_COLOR ``` ```` ````{py:data} SEPARATOR_COLOR :canonical: simvx.editor.panels.section_widgets.SEPARATOR_COLOR :value: > (0.25, 0.25, 0.25, 1.0) ```{autodoc2-docstring} simvx.editor.panels.section_widgets.SEPARATOR_COLOR ``` ```` ````{py:data} SECTION_HEADER_HEIGHT :canonical: simvx.editor.panels.section_widgets.SECTION_HEADER_HEIGHT :value: > 26.0 ```{autodoc2-docstring} simvx.editor.panels.section_widgets.SECTION_HEADER_HEIGHT ``` ```` ````{py:data} PADDING :canonical: simvx.editor.panels.section_widgets.PADDING :value: > 6.0 ```{autodoc2-docstring} simvx.editor.panels.section_widgets.PADDING ``` ```` ````{py:data} FONT_SIZE :canonical: simvx.editor.panels.section_widgets.FONT_SIZE :value: > 12.0 ```{autodoc2-docstring} simvx.editor.panels.section_widgets.FONT_SIZE ``` ```` `````{py:class} SectionHeader(title: str, collapsed: bool = False, *, label_color: tuple[float, ...] = SECTION_LABEL_COLOR, bg_color: tuple[float, ...] = SECTION_BG, hover_bg_color: tuple[float, ...] = SECTION_HOVER_BG, separator_color: tuple[float, ...] = SEPARATOR_COLOR, **kwargs) :canonical: simvx.editor.panels.section_widgets.SectionHeader Bases: {py:obj}`simvx.core.Control` ```{autodoc2-docstring} simvx.editor.panels.section_widgets.SectionHeader ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.editor.panels.section_widgets.SectionHeader.__init__ ``` ````{py:method} draw(renderer) :canonical: simvx.editor.panels.section_widgets.SectionHeader.draw ```` ````{py:attribute} size_x :canonical: simvx.editor.panels.section_widgets.SectionHeader.size_x :value: > 'Property(...)' ```` ````{py:attribute} size_y :canonical: simvx.editor.panels.section_widgets.SectionHeader.size_y :value: > 'Property(...)' ```` ````{py:property} size :canonical: simvx.editor.panels.section_widgets.SectionHeader.size :type: simvx.core.math.types.Vec2 ```` ````{py:method} get_theme() -> simvx.core.ui.core.Theme :canonical: simvx.editor.panels.section_widgets.SectionHeader.get_theme ```` ````{py:method} get_rect() -> tuple[float, float, float, float] :canonical: simvx.editor.panels.section_widgets.SectionHeader.get_rect ```` ````{py:method} get_global_rect() -> tuple[float, float, float, float] :canonical: simvx.editor.panels.section_widgets.SectionHeader.get_global_rect ```` ````{py:method} is_point_inside(point) -> bool :canonical: simvx.editor.panels.section_widgets.SectionHeader.is_point_inside ```` ````{py:method} set_anchor_preset(preset: simvx.core.ui.core.AnchorPreset) :canonical: simvx.editor.panels.section_widgets.SectionHeader.set_anchor_preset ```` ````{py:method} set_focus() :canonical: simvx.editor.panels.section_widgets.SectionHeader.set_focus ```` ````{py:method} grab_focus() :canonical: simvx.editor.panels.section_widgets.SectionHeader.grab_focus ```` ````{py:method} release_focus() :canonical: simvx.editor.panels.section_widgets.SectionHeader.release_focus ```` ````{py:method} has_focus() -> bool :canonical: simvx.editor.panels.section_widgets.SectionHeader.has_focus ```` ````{py:method} focus_next_control() :canonical: simvx.editor.panels.section_widgets.SectionHeader.focus_next_control ```` ````{py:method} focus_previous_control() :canonical: simvx.editor.panels.section_widgets.SectionHeader.focus_previous_control ```` ````{py:method} grab_mouse() :canonical: simvx.editor.panels.section_widgets.SectionHeader.grab_mouse ```` ````{py:method} release_mouse() :canonical: simvx.editor.panels.section_widgets.SectionHeader.release_mouse ```` ````{py:method} set_drag_preview(control: simvx.core.ui.core.Control) :canonical: simvx.editor.panels.section_widgets.SectionHeader.set_drag_preview ```` ````{py:method} draw_popup(renderer) :canonical: simvx.editor.panels.section_widgets.SectionHeader.draw_popup ```` ````{py:method} is_popup_point_inside(point) -> bool :canonical: simvx.editor.panels.section_widgets.SectionHeader.is_popup_point_inside ```` ````{py:method} popup_input(event) :canonical: simvx.editor.panels.section_widgets.SectionHeader.popup_input ```` ````{py:method} dismiss_popup() :canonical: simvx.editor.panels.section_widgets.SectionHeader.dismiss_popup ```` ````{py:attribute} z_index :canonical: simvx.editor.panels.section_widgets.SectionHeader.z_index :value: > 'Property(...)' ```` ````{py:attribute} z_as_relative :canonical: simvx.editor.panels.section_widgets.SectionHeader.z_as_relative :value: > 'Property(...)' ```` ````{py:property} absolute_z_index :canonical: simvx.editor.panels.section_widgets.SectionHeader.absolute_z_index :type: int ```` ````{py:property} position :canonical: simvx.editor.panels.section_widgets.SectionHeader.position :type: simvx.core.math.types.Vec2 ```` ````{py:property} rotation :canonical: simvx.editor.panels.section_widgets.SectionHeader.rotation :type: float ```` ````{py:property} rotation_degrees :canonical: simvx.editor.panels.section_widgets.SectionHeader.rotation_degrees :type: float ```` ````{py:property} scale :canonical: simvx.editor.panels.section_widgets.SectionHeader.scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} global_position :canonical: simvx.editor.panels.section_widgets.SectionHeader.global_position :type: simvx.core.math.types.Vec2 ```` ````{py:property} global_rotation :canonical: simvx.editor.panels.section_widgets.SectionHeader.global_rotation :type: float ```` ````{py:property} global_scale :canonical: simvx.editor.panels.section_widgets.SectionHeader.global_scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} forward :canonical: simvx.editor.panels.section_widgets.SectionHeader.forward :type: simvx.core.math.types.Vec2 ```` ````{py:property} right :canonical: simvx.editor.panels.section_widgets.SectionHeader.right :type: simvx.core.math.types.Vec2 ```` ````{py:method} translate(offset: tuple[float, float] | numpy.ndarray) :canonical: simvx.editor.panels.section_widgets.SectionHeader.translate ```` ````{py:method} rotate(radians: float) :canonical: simvx.editor.panels.section_widgets.SectionHeader.rotate ```` ````{py:method} rotate_deg(degrees: float) :canonical: simvx.editor.panels.section_widgets.SectionHeader.rotate_deg ```` ````{py:method} look_at(target: tuple[float, float] | numpy.ndarray) :canonical: simvx.editor.panels.section_widgets.SectionHeader.look_at ```` ````{py:method} transform_points(points: list[simvx.core.math.types.Vec2]) -> list[simvx.core.math.types.Vec2] :canonical: simvx.editor.panels.section_widgets.SectionHeader.transform_points ```` ````{py:method} draw_polygon(renderer, points: list[simvx.core.math.types.Vec2], closed=True, color=None) :canonical: simvx.editor.panels.section_widgets.SectionHeader.draw_polygon ```` ````{py:method} wrap_screen(margin: float = 20) :canonical: simvx.editor.panels.section_widgets.SectionHeader.wrap_screen ```` ````{py:attribute} script_error_raised :canonical: simvx.editor.panels.section_widgets.SectionHeader.script_error_raised :value: > 'Signal(...)' ```` ````{py:method} __init_subclass__(**kwargs) :canonical: simvx.editor.panels.section_widgets.SectionHeader.__init_subclass__ :classmethod: ```` ````{py:property} name :canonical: simvx.editor.panels.section_widgets.SectionHeader.name :type: str ```` ````{py:property} process_mode :canonical: simvx.editor.panels.section_widgets.SectionHeader.process_mode :type: simvx.core.descriptors.ProcessMode ```` ````{py:method} reset_error() -> None :canonical: simvx.editor.panels.section_widgets.SectionHeader.reset_error ```` ````{py:method} add_child(node: simvx.core.node.Node) -> simvx.core.node.Node :canonical: simvx.editor.panels.section_widgets.SectionHeader.add_child ```` ````{py:method} remove_child(node: simvx.core.node.Node) :canonical: simvx.editor.panels.section_widgets.SectionHeader.remove_child ```` ````{py:method} reparent(new_parent: simvx.core.node.Node) :canonical: simvx.editor.panels.section_widgets.SectionHeader.reparent ```` ````{py:method} get_node(path: str) -> simvx.core.node.Node :canonical: simvx.editor.panels.section_widgets.SectionHeader.get_node ```` ````{py:method} find_child(name: str, recursive: bool = False) -> simvx.core.node.Node | None :canonical: simvx.editor.panels.section_widgets.SectionHeader.find_child ```` ````{py:method} find(node_type: type) -> simvx.core.node.Node | None :canonical: simvx.editor.panels.section_widgets.SectionHeader.find ```` ````{py:method} find_all(node_type: type, recursive: bool = True) -> list :canonical: simvx.editor.panels.section_widgets.SectionHeader.find_all ```` ````{py:property} path :canonical: simvx.editor.panels.section_widgets.SectionHeader.path :type: str ```` ````{py:method} add_to_group(group: str) :canonical: simvx.editor.panels.section_widgets.SectionHeader.add_to_group ```` ````{py:method} remove_from_group(group: str) :canonical: simvx.editor.panels.section_widgets.SectionHeader.remove_from_group ```` ````{py:method} is_in_group(group: str) -> bool :canonical: simvx.editor.panels.section_widgets.SectionHeader.is_in_group ```` ````{py:method} ready() -> None :canonical: simvx.editor.panels.section_widgets.SectionHeader.ready ```` ````{py:method} enter_tree() -> None :canonical: simvx.editor.panels.section_widgets.SectionHeader.enter_tree ```` ````{py:method} exit_tree() -> None :canonical: simvx.editor.panels.section_widgets.SectionHeader.exit_tree ```` ````{py:method} process(dt: float) -> None :canonical: simvx.editor.panels.section_widgets.SectionHeader.process ```` ````{py:method} physics_process(dt: float) -> None :canonical: simvx.editor.panels.section_widgets.SectionHeader.physics_process ```` ````{py:method} input_event(event: simvx.core.events.InputEvent) -> None :canonical: simvx.editor.panels.section_widgets.SectionHeader.input_event ```` ````{py:method} input(event: simvx.core.events.TreeInputEvent) -> None :canonical: simvx.editor.panels.section_widgets.SectionHeader.input ```` ````{py:method} unhandled_input(event: simvx.core.events.TreeInputEvent) -> None :canonical: simvx.editor.panels.section_widgets.SectionHeader.unhandled_input ```` ````{py:method} start_coroutine(gen: simvx.core.descriptors.Coroutine) -> simvx.core.descriptors.CoroutineHandle :canonical: simvx.editor.panels.section_widgets.SectionHeader.start_coroutine ```` ````{py:method} stop_coroutine(gen_or_handle) :canonical: simvx.editor.panels.section_widgets.SectionHeader.stop_coroutine ```` ````{py:method} destroy() :canonical: simvx.editor.panels.section_widgets.SectionHeader.destroy ```` ````{py:attribute} queue_free :canonical: simvx.editor.panels.section_widgets.SectionHeader.queue_free :value: > None ```` ````{py:property} tree :canonical: simvx.editor.panels.section_widgets.SectionHeader.tree :type: simvx.core.scene_tree.SceneTree ```` ````{py:method} get_tree() -> simvx.core.scene_tree.SceneTree :canonical: simvx.editor.panels.section_widgets.SectionHeader.get_tree ```` ````{py:method} __getitem__(key: str) :canonical: simvx.editor.panels.section_widgets.SectionHeader.__getitem__ ```` ````{py:method} get_properties() -> dict[str, simvx.core.descriptors.Property] :canonical: simvx.editor.panels.section_widgets.SectionHeader.get_properties :classmethod: ```` ````{py:attribute} get_settings :canonical: simvx.editor.panels.section_widgets.SectionHeader.get_settings :value: > None ```` ````{py:method} __repr__() :canonical: simvx.editor.panels.section_widgets.SectionHeader.__repr__ ```` ````` `````{py:class} Section(header: simvx.editor.panels.section_widgets.SectionHeader, rows: list[simvx.core.Control]) :canonical: simvx.editor.panels.section_widgets.Section ```{autodoc2-docstring} simvx.editor.panels.section_widgets.Section ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.editor.panels.section_widgets.Section.__init__ ``` ````{py:attribute} __slots__ :canonical: simvx.editor.panels.section_widgets.Section.__slots__ :value: > ('header', 'rows', 'collapsed') ```{autodoc2-docstring} simvx.editor.panels.section_widgets.Section.__slots__ ``` ```` ````{py:method} toggle(collapsed: bool) :canonical: simvx.editor.panels.section_widgets.Section.toggle ```{autodoc2-docstring} simvx.editor.panels.section_widgets.Section.toggle ``` ```` `````