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