# {py:mod}`simvx.editor.panels.code_editor` ```{py:module} simvx.editor.panels.code_editor ``` ```{autodoc2-docstring} simvx.editor.panels.code_editor :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`CodeEditorPanel ` - ```{autodoc2-docstring} simvx.editor.panels.code_editor.CodeEditorPanel :summary: ``` ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`__all__ ` - ```{autodoc2-docstring} simvx.editor.panels.code_editor.__all__ :summary: ``` ```` ### API ````{py:data} __all__ :canonical: simvx.editor.panels.code_editor.__all__ :value: > ['CodeEditorPanel'] ```{autodoc2-docstring} simvx.editor.panels.code_editor.__all__ ``` ```` `````{py:class} CodeEditorPanel(**kwargs) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel Bases: {py:obj}`simvx.core.Control` ```{autodoc2-docstring} simvx.editor.panels.code_editor.CodeEditorPanel ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.editor.panels.code_editor.CodeEditorPanel.__init__ ``` ````{py:method} open_file(path: str) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.open_file ```{autodoc2-docstring} simvx.editor.panels.code_editor.CodeEditorPanel.open_file ``` ```` ````{py:method} save_file(path: str | None = None) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.save_file ```{autodoc2-docstring} simvx.editor.panels.code_editor.CodeEditorPanel.save_file ``` ```` ````{py:method} close_file(path: str | None = None) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.close_file ```{autodoc2-docstring} simvx.editor.panels.code_editor.CodeEditorPanel.close_file ``` ```` ````{py:property} current_file :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.current_file :type: str | None ```{autodoc2-docstring} simvx.editor.panels.code_editor.CodeEditorPanel.current_file ``` ```` ````{py:property} is_modified :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.is_modified :type: bool ```{autodoc2-docstring} simvx.editor.panels.code_editor.CodeEditorPanel.is_modified ``` ```` ````{py:method} get_open_files() -> list[str] :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.get_open_files ```{autodoc2-docstring} simvx.editor.panels.code_editor.CodeEditorPanel.get_open_files ``` ```` ````{py:method} draw(renderer) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.draw ```` ````{py:attribute} size_x :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.size_x :value: > 'Property(...)' ```` ````{py:attribute} size_y :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.size_y :value: > 'Property(...)' ```` ````{py:property} size :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.size :type: simvx.core.math.types.Vec2 ```` ````{py:method} get_theme() -> simvx.core.ui.core.Theme :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.get_theme ```` ````{py:method} get_rect() -> tuple[float, float, float, float] :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.get_rect ```` ````{py:method} get_global_rect() -> tuple[float, float, float, float] :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.get_global_rect ```` ````{py:method} is_point_inside(point) -> bool :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.is_point_inside ```` ````{py:method} set_anchor_preset(preset: simvx.core.ui.core.AnchorPreset) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.set_anchor_preset ```` ````{py:method} set_focus() :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.set_focus ```` ````{py:method} grab_focus() :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.grab_focus ```` ````{py:method} release_focus() :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.release_focus ```` ````{py:method} has_focus() -> bool :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.has_focus ```` ````{py:method} focus_next_control() :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.focus_next_control ```` ````{py:method} focus_previous_control() :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.focus_previous_control ```` ````{py:method} grab_mouse() :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.grab_mouse ```` ````{py:method} release_mouse() :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.release_mouse ```` ````{py:method} set_drag_preview(control: simvx.core.ui.core.Control) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.set_drag_preview ```` ````{py:method} draw_popup(renderer) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.draw_popup ```` ````{py:method} is_popup_point_inside(point) -> bool :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.is_popup_point_inside ```` ````{py:method} popup_input(event) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.popup_input ```` ````{py:method} dismiss_popup() :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.dismiss_popup ```` ````{py:attribute} z_index :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.z_index :value: > 'Property(...)' ```` ````{py:attribute} z_as_relative :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.z_as_relative :value: > 'Property(...)' ```` ````{py:property} absolute_z_index :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.absolute_z_index :type: int ```` ````{py:property} rotation_rad :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.rotation_rad :type: float ```` ````{py:property} global_position :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.global_position :type: simvx.core.math.types.Vec2 ```` ````{py:property} global_rotation :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.global_rotation :type: float ```` ````{py:property} global_rotation_rad :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.global_rotation_rad :type: float ```` ````{py:property} global_scale :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.global_scale :type: simvx.core.math.types.Vec2 ```` ````{py:property} forward :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.forward :type: simvx.core.math.types.Vec2 ```` ````{py:property} right :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.right :type: simvx.core.math.types.Vec2 ```` ````{py:method} translate(offset: tuple[float, float] | numpy.ndarray) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.translate ```` ````{py:method} rotate_deg(degrees: float) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.rotate_deg ```` ````{py:method} look_at(target: tuple[float, float] | numpy.ndarray) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.look_at ```` ````{py:method} transform_points(points: list[simvx.core.math.types.Vec2]) -> list[simvx.core.math.types.Vec2] :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.transform_points ```` ````{py:method} draw_polygon(renderer, points: list[simvx.core.math.types.Vec2], closed=True, color=None) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.draw_polygon ```` ````{py:method} wrap_screen(margin: float = 20) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.wrap_screen ```` ````{py:attribute} script_error_raised :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.script_error_raised :value: > 'Signal(...)' ```` ````{py:method} __init_subclass__(**kwargs) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.__init_subclass__ :classmethod: ```` ````{py:property} name :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.name :type: str ```` ````{py:method} reset_error() -> None :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.reset_error ```` ````{py:method} add_child(node: simvx.core.engine.Node) -> simvx.core.engine.Node :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.add_child ```` ````{py:method} remove_child(node: simvx.core.engine.Node) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.remove_child ```` ````{py:method} reparent(new_parent: simvx.core.engine.Node) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.reparent ```` ````{py:method} get_node(path: str) -> simvx.core.engine.Node :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.get_node ```` ````{py:method} find(node_type: type) -> simvx.core.engine.Node | None :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.find ```` ````{py:method} find_all(node_type: type, recursive: bool = True) -> list :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.find_all ```` ````{py:property} path :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.path :type: str ```` ````{py:method} add_to_group(group: str) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.add_to_group ```` ````{py:method} remove_from_group(group: str) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.remove_from_group ```` ````{py:method} is_in_group(group: str) -> bool :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.is_in_group ```` ````{py:method} ready() -> None :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.ready ```` ````{py:method} enter_tree() -> None :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.enter_tree ```` ````{py:method} exit_tree() -> None :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.exit_tree ```` ````{py:method} process(dt: float) -> None :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.process ```` ````{py:method} physics_process(dt: float) -> None :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.physics_process ```` ````{py:method} input_event(event: simvx.core.engine.InputEvent) -> None :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.input_event ```` ````{py:method} input(event: simvx.core.engine.TreeInputEvent) -> None :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.input ```` ````{py:method} unhandled_input(event: simvx.core.engine.TreeInputEvent) -> None :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.unhandled_input ```` ````{py:method} start_coroutine(gen: simvx.core.engine.Coroutine) -> simvx.core.engine.CoroutineHandle :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.start_coroutine ```` ````{py:method} stop_coroutine(gen_or_handle) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.stop_coroutine ```` ````{py:method} destroy() :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.destroy ```` ````{py:attribute} queue_free :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.queue_free :value: > None ```` ````{py:property} tree :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.tree :type: simvx.core.engine.SceneTree ```` ````{py:method} get_tree() -> simvx.core.engine.SceneTree :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.get_tree ```` ````{py:method} __getitem__(key: str) :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.__getitem__ ```` ````{py:method} get_properties() -> dict[str, simvx.core.engine.Property] :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.get_properties :classmethod: ```` ````{py:attribute} get_settings :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.get_settings :value: > None ```` ````{py:method} __repr__() :canonical: simvx.editor.panels.code_editor.CodeEditorPanel.__repr__ ```` `````