Struct godot::classes::CodeEdit

source ·
#[repr(C)]
pub struct CodeEdit { /* private fields */ }
Expand description

Godot class CodeEdit.

Inherits TextEdit.

Related symbols:

See also Godot docs for CodeEdit.

§Construction

This class is manually managed. You can create a new instance using CodeEdit::new_alloc().

Do not forget to call free() or hand over ownership to Godot.

Implementations§

source§

impl CodeEdit

source

pub fn set_indent_size(&mut self, size: i32)

source

pub fn get_indent_size(&self) -> i32

source

pub fn set_indent_using_spaces(&mut self, use_spaces: bool)

source

pub fn is_indent_using_spaces(&self) -> bool

source

pub fn set_auto_indent_enabled(&mut self, enable: bool)

source

pub fn is_auto_indent_enabled(&self) -> bool

source

pub fn set_auto_indent_prefixes(&mut self, prefixes: Array<GString>)

source

pub fn get_auto_indent_prefixes(&self) -> Array<GString>

source

pub fn do_indent(&mut self)

source

pub fn indent_lines(&mut self)

source

pub fn unindent_lines(&mut self)

source

pub fn convert_indent(&mut self)

source

pub fn convert_indent_ex(&mut self) -> ExConvertIndent<'_>

source

pub fn set_auto_brace_completion_enabled(&mut self, enable: bool)

source

pub fn is_auto_brace_completion_enabled(&self) -> bool

source

pub fn set_highlight_matching_braces_enabled(&mut self, enable: bool)

source

pub fn is_highlight_matching_braces_enabled(&self) -> bool

source

pub fn add_auto_brace_completion_pair( &mut self, start_key: GString, end_key: GString, )

source

pub fn set_auto_brace_completion_pairs(&mut self, pairs: Dictionary)

source

pub fn get_auto_brace_completion_pairs(&self) -> Dictionary

source

pub fn has_auto_brace_completion_open_key(&self, open_key: GString) -> bool

source

pub fn has_auto_brace_completion_close_key(&self, close_key: GString) -> bool

source

pub fn get_auto_brace_completion_close_key(&self, open_key: GString) -> GString

source

pub fn set_draw_breakpoints_gutter(&mut self, enable: bool)

source

pub fn is_drawing_breakpoints_gutter(&self) -> bool

source

pub fn set_draw_bookmarks_gutter(&mut self, enable: bool)

source

pub fn is_drawing_bookmarks_gutter(&self) -> bool

source

pub fn set_draw_executing_lines_gutter(&mut self, enable: bool)

source

pub fn is_drawing_executing_lines_gutter(&self) -> bool

source

pub fn set_line_as_breakpoint(&mut self, line: i32, breakpointed: bool)

source

pub fn is_line_breakpointed(&self, line: i32) -> bool

source

pub fn clear_breakpointed_lines(&mut self)

source

pub fn get_breakpointed_lines(&self) -> PackedInt32Array

source

pub fn set_line_as_bookmarked(&mut self, line: i32, bookmarked: bool)

source

pub fn is_line_bookmarked(&self, line: i32) -> bool

source

pub fn clear_bookmarked_lines(&mut self)

source

pub fn get_bookmarked_lines(&self) -> PackedInt32Array

source

pub fn set_line_as_executing(&mut self, line: i32, executing: bool)

source

pub fn is_line_executing(&self, line: i32) -> bool

source

pub fn clear_executing_lines(&mut self)

source

pub fn get_executing_lines(&self) -> PackedInt32Array

source

pub fn set_draw_line_numbers(&mut self, enable: bool)

source

pub fn is_draw_line_numbers_enabled(&self) -> bool

source

pub fn set_line_numbers_zero_padded(&mut self, enable: bool)

source

pub fn is_line_numbers_zero_padded(&self) -> bool

source

pub fn set_draw_fold_gutter(&mut self, enable: bool)

source

pub fn is_drawing_fold_gutter(&self) -> bool

source

pub fn set_line_folding_enabled(&mut self, enabled: bool)

source

pub fn is_line_folding_enabled(&self) -> bool

source

pub fn can_fold_line(&self, line: i32) -> bool

source

pub fn fold_line(&mut self, line: i32)

source

pub fn unfold_line(&mut self, line: i32)

source

pub fn fold_all_lines(&mut self)

source

pub fn unfold_all_lines(&mut self)

source

pub fn toggle_foldable_line(&mut self, line: i32)

source

pub fn is_line_folded(&self, line: i32) -> bool

source

pub fn get_folded_lines(&self) -> Array<i64>

source

pub fn create_code_region(&mut self)

source

pub fn get_code_region_start_tag(&self) -> GString

source

pub fn get_code_region_end_tag(&self) -> GString

source

pub fn set_code_region_tags(&mut self)

source

pub fn set_code_region_tags_ex(&mut self) -> ExSetCodeRegionTags<'_>

source

pub fn is_line_code_region_start(&self, line: i32) -> bool

source

pub fn is_line_code_region_end(&self, line: i32) -> bool

source

pub fn add_string_delimiter(&mut self, start_key: GString, end_key: GString)

source

pub fn add_string_delimiter_ex( &mut self, start_key: GString, end_key: GString, ) -> ExAddStringDelimiter<'_>

source

pub fn remove_string_delimiter(&mut self, start_key: GString)

source

pub fn has_string_delimiter(&self, start_key: GString) -> bool

source

pub fn set_string_delimiters(&mut self, string_delimiters: Array<GString>)

source

pub fn clear_string_delimiters(&mut self)

source

pub fn get_string_delimiters(&self) -> Array<GString>

source

pub fn is_in_string(&self, line: i32) -> i32

source

pub fn is_in_string_ex(&self, line: i32) -> ExIsInString<'_>

source

pub fn add_comment_delimiter(&mut self, start_key: GString, end_key: GString)

source

pub fn add_comment_delimiter_ex( &mut self, start_key: GString, end_key: GString, ) -> ExAddCommentDelimiter<'_>

source

pub fn remove_comment_delimiter(&mut self, start_key: GString)

source

pub fn has_comment_delimiter(&self, start_key: GString) -> bool

source

pub fn set_comment_delimiters(&mut self, comment_delimiters: Array<GString>)

source

pub fn clear_comment_delimiters(&mut self)

source

pub fn get_comment_delimiters(&self) -> Array<GString>

source

pub fn is_in_comment(&self, line: i32) -> i32

source

pub fn is_in_comment_ex(&self, line: i32) -> ExIsInComment<'_>

source

pub fn get_delimiter_start_key(&self, delimiter_index: i32) -> GString

source

pub fn get_delimiter_end_key(&self, delimiter_index: i32) -> GString

source

pub fn get_delimiter_start_position(&self, line: i32, column: i32) -> Vector2

source

pub fn get_delimiter_end_position(&self, line: i32, column: i32) -> Vector2

source

pub fn set_code_hint(&mut self, code_hint: GString)

source

pub fn set_code_hint_draw_below(&mut self, draw_below: bool)

source

pub fn get_text_for_code_completion(&self) -> GString

source

pub fn request_code_completion(&mut self)

source

pub fn request_code_completion_ex(&mut self) -> ExRequestCodeCompletion<'_>

source

pub fn add_code_completion_option( &mut self, type_: CodeCompletionKind, display_text: GString, insert_text: GString, )

source

pub fn add_code_completion_option_ex( &mut self, type_: CodeCompletionKind, display_text: GString, insert_text: GString, ) -> ExAddCodeCompletionOption<'_>

source

pub fn update_code_completion_options(&mut self, force: bool)

source

pub fn get_code_completion_options(&self) -> Array<Dictionary>

source

pub fn get_code_completion_option(&self, index: i32) -> Dictionary

source

pub fn get_code_completion_selected_index(&self) -> i32

source

pub fn set_code_completion_selected_index(&mut self, index: i32)

source

pub fn confirm_code_completion(&mut self)

source

pub fn confirm_code_completion_ex(&mut self) -> ExConfirmCodeCompletion<'_>

source

pub fn cancel_code_completion(&mut self)

source

pub fn set_code_completion_enabled(&mut self, enable: bool)

source

pub fn is_code_completion_enabled(&self) -> bool

source

pub fn set_code_completion_prefixes(&mut self, prefixes: Array<GString>)

source

pub fn get_code_completion_prefixes(&self) -> Array<GString>

source

pub fn set_line_length_guidelines(&mut self, guideline_columns: Array<i64>)

source

pub fn get_line_length_guidelines(&self) -> Array<i64>

source

pub fn set_symbol_lookup_on_click_enabled(&mut self, enable: bool)

source

pub fn is_symbol_lookup_on_click_enabled(&self) -> bool

source

pub fn get_text_for_symbol_lookup(&self) -> GString

source

pub fn get_text_with_cursor_char(&self, line: i32, column: i32) -> GString

source

pub fn set_symbol_lookup_word_as_valid(&mut self, valid: bool)

source

pub fn duplicate_lines(&mut self)

Methods from Deref<Target = TextEdit>§

source

pub fn has_ime_text(&self) -> bool

source

pub fn set_editable(&mut self, enabled: bool)

source

pub fn is_editable(&self) -> bool

source

pub fn set_text_direction(&mut self, direction: TextDirection)

source

pub fn get_text_direction(&self) -> TextDirection

source

pub fn set_language(&mut self, language: GString)

source

pub fn get_language(&self) -> GString

source

pub fn set_structured_text_bidi_override( &mut self, parser: StructuredTextParser, )

source

pub fn get_structured_text_bidi_override(&self) -> StructuredTextParser

source

pub fn set_structured_text_bidi_override_options( &mut self, args: Array<Variant>, )

source

pub fn get_structured_text_bidi_override_options(&self) -> Array<Variant>

source

pub fn set_tab_size(&mut self, size: i32)

source

pub fn get_tab_size(&self) -> i32

source

pub fn set_overtype_mode_enabled(&mut self, enabled: bool)

source

pub fn is_overtype_mode_enabled(&self) -> bool

source

pub fn set_context_menu_enabled(&mut self, enabled: bool)

source

pub fn is_context_menu_enabled(&self) -> bool

source

pub fn set_shortcut_keys_enabled(&mut self, enabled: bool)

source

pub fn is_shortcut_keys_enabled(&self) -> bool

source

pub fn set_virtual_keyboard_enabled(&mut self, enabled: bool)

source

pub fn is_virtual_keyboard_enabled(&self) -> bool

source

pub fn set_middle_mouse_paste_enabled(&mut self, enabled: bool)

source

pub fn is_middle_mouse_paste_enabled(&self) -> bool

source

pub fn clear(&mut self)

source

pub fn set_text(&mut self, text: GString)

source

pub fn get_text(&self) -> GString

source

pub fn get_line_count(&self) -> i32

source

pub fn set_placeholder(&mut self, text: GString)

source

pub fn get_placeholder(&self) -> GString

source

pub fn set_line(&mut self, line: i32, new_text: GString)

source

pub fn get_line(&self, line: i32) -> GString

source

pub fn get_line_width(&self, line: i32) -> i32

source

pub fn get_line_width_ex(&self, line: i32) -> ExGetLineWidth<'_>

source

pub fn get_line_height(&self) -> i32

source

pub fn get_indent_level(&self, line: i32) -> i32

source

pub fn get_first_non_whitespace_column(&self, line: i32) -> i32

source

pub fn swap_lines(&mut self, from_line: i32, to_line: i32)

source

pub fn insert_line_at(&mut self, line: i32, text: GString)

source

pub fn insert_text_at_caret(&mut self, text: GString)

source

pub fn insert_text_at_caret_ex( &mut self, text: GString, ) -> ExInsertTextAtCaret<'_>

source

pub fn remove_text( &mut self, from_line: i32, from_column: i32, to_line: i32, to_column: i32, )

source

pub fn get_last_unhidden_line(&self) -> i32

source

pub fn get_next_visible_line_offset_from( &self, line: i32, visible_amount: i32, ) -> i32

source

pub fn get_next_visible_line_index_offset_from( &self, line: i32, wrap_index: i32, visible_amount: i32, ) -> Vector2i

source

pub fn backspace(&mut self)

source

pub fn backspace_ex(&mut self) -> ExBackspace<'_>

source

pub fn cut(&mut self)

source

pub fn cut_ex(&mut self) -> ExCut<'_>

source

pub fn copy(&mut self)

source

pub fn copy_ex(&mut self) -> ExCopy<'_>

source

pub fn paste(&mut self)

source

pub fn paste_ex(&mut self) -> ExPaste<'_>

source

pub fn paste_primary_clipboard(&mut self)

source

pub fn paste_primary_clipboard_ex(&mut self) -> ExPastePrimaryClipboard<'_>

source

pub fn start_action(&mut self, action: EditAction)

source

pub fn end_action(&mut self)

source

pub fn begin_complex_operation(&mut self)

source

pub fn end_complex_operation(&mut self)

source

pub fn has_undo(&self) -> bool

source

pub fn has_redo(&self) -> bool

source

pub fn undo(&mut self)

source

pub fn redo(&mut self)

source

pub fn clear_undo_history(&mut self)

source

pub fn tag_saved_version(&mut self)

source

pub fn get_version(&self) -> u32

source

pub fn get_saved_version(&self) -> u32

source

pub fn set_search_text(&mut self, search_text: GString)

source

pub fn set_search_flags(&mut self, flags: u32)

source

pub fn search( &self, text: GString, flags: u32, from_line: i32, from_colum: i32, ) -> Vector2i

source

pub fn set_tooltip_request_func(&mut self, callback: Callable)

source

pub fn get_local_mouse_pos(&self) -> Vector2

source

pub fn get_word_at_pos(&self, position: Vector2) -> GString

source

pub fn get_line_column_at_pos(&self, position: Vector2i) -> Vector2i

source

pub fn get_line_column_at_pos_ex( &self, position: Vector2i, ) -> ExGetLineColumnAtPos<'_>

source

pub fn get_pos_at_line_column(&self, line: i32, column: i32) -> Vector2i

source

pub fn get_rect_at_line_column(&self, line: i32, column: i32) -> Rect2i

source

pub fn get_minimap_line_at_pos(&self, position: Vector2i) -> i32

source

pub fn is_dragging_cursor(&self) -> bool

source

pub fn is_mouse_over_selection(&self, edges: bool) -> bool

source

pub fn is_mouse_over_selection_ex( &self, edges: bool, ) -> ExIsMouseOverSelection<'_>

source

pub fn set_caret_type(&mut self, type_: CaretType)

source

pub fn get_caret_type(&self) -> CaretType

source

pub fn set_draw_caret_when_editable_disabled(&mut self, enable: bool)

source

pub fn is_drawing_caret_when_editable_disabled(&self) -> bool

source

pub fn set_move_caret_on_right_click_enabled(&mut self, enable: bool)

source

pub fn is_move_caret_on_right_click_enabled(&self) -> bool

source

pub fn set_caret_mid_grapheme_enabled(&mut self, enabled: bool)

source

pub fn is_caret_mid_grapheme_enabled(&self) -> bool

source

pub fn set_multiple_carets_enabled(&mut self, enabled: bool)

source

pub fn is_multiple_carets_enabled(&self) -> bool

source

pub fn add_caret(&mut self, line: i32, col: i32) -> i32

source

pub fn remove_caret(&mut self, caret: i32)

source

pub fn remove_secondary_carets(&mut self)

source

pub fn merge_overlapping_carets(&mut self)

source

pub fn get_caret_count(&self) -> i32

source

pub fn add_caret_at_carets(&mut self, below: bool)

source

pub fn get_caret_index_edit_order(&mut self) -> PackedInt32Array

source

pub fn adjust_carets_after_edit( &mut self, caret: i32, from_line: i32, from_col: i32, to_line: i32, to_col: i32, )

source

pub fn is_caret_visible(&self) -> bool

source

pub fn is_caret_visible_ex(&self) -> ExIsCaretVisible<'_>

source

pub fn get_caret_draw_pos(&self) -> Vector2

source

pub fn get_caret_draw_pos_ex(&self) -> ExGetCaretDrawPos<'_>

source

pub fn set_caret_line(&mut self, line: i32)

source

pub fn set_caret_line_ex(&mut self, line: i32) -> ExSetCaretLine<'_>

source

pub fn get_caret_line(&self) -> i32

source

pub fn get_caret_line_ex(&self) -> ExGetCaretLine<'_>

source

pub fn set_caret_column(&mut self, column: i32)

source

pub fn set_caret_column_ex(&mut self, column: i32) -> ExSetCaretColumn<'_>

source

pub fn get_caret_column(&self) -> i32

source

pub fn get_caret_column_ex(&self) -> ExGetCaretColumn<'_>

source

pub fn get_caret_wrap_index(&self) -> i32

source

pub fn get_caret_wrap_index_ex(&self) -> ExGetCaretWrapIndex<'_>

source

pub fn get_word_under_caret(&self) -> GString

source

pub fn get_word_under_caret_ex(&self) -> ExGetWordUnderCaret<'_>

source

pub fn set_selecting_enabled(&mut self, enable: bool)

source

pub fn is_selecting_enabled(&self) -> bool

source

pub fn set_deselect_on_focus_loss_enabled(&mut self, enable: bool)

source

pub fn is_deselect_on_focus_loss_enabled(&self) -> bool

source

pub fn set_drag_and_drop_selection_enabled(&mut self, enable: bool)

source

pub fn is_drag_and_drop_selection_enabled(&self) -> bool

source

pub fn set_selection_mode(&mut self, mode: SelectionMode)

source

pub fn set_selection_mode_ex( &mut self, mode: SelectionMode, ) -> ExSetSelectionMode<'_>

source

pub fn get_selection_mode(&self) -> SelectionMode

source

pub fn select_all(&mut self)

source

pub fn select_word_under_caret(&mut self)

source

pub fn select_word_under_caret_ex(&mut self) -> ExSelectWordUnderCaret<'_>

source

pub fn add_selection_for_next_occurrence(&mut self)

source

pub fn select( &mut self, from_line: i32, from_column: i32, to_line: i32, to_column: i32, )

source

pub fn select_ex( &mut self, from_line: i32, from_column: i32, to_line: i32, to_column: i32, ) -> ExSelect<'_>

source

pub fn has_selection(&self) -> bool

source

pub fn has_selection_ex(&self) -> ExHasSelection<'_>

source

pub fn get_selected_text(&mut self) -> GString

source

pub fn get_selected_text_ex(&mut self) -> ExGetSelectedText<'_>

source

pub fn get_selection_line(&self) -> i32

source

pub fn get_selection_line_ex(&self) -> ExGetSelectionLine<'_>

source

pub fn get_selection_column(&self) -> i32

source

pub fn get_selection_column_ex(&self) -> ExGetSelectionColumn<'_>

source

pub fn get_selection_from_line(&self) -> i32

source

pub fn get_selection_from_line_ex(&self) -> ExGetSelectionFromLine<'_>

source

pub fn get_selection_from_column(&self) -> i32

source

pub fn get_selection_from_column_ex(&self) -> ExGetSelectionFromColumn<'_>

source

pub fn get_selection_to_line(&self) -> i32

source

pub fn get_selection_to_line_ex(&self) -> ExGetSelectionToLine<'_>

source

pub fn get_selection_to_column(&self) -> i32

source

pub fn get_selection_to_column_ex(&self) -> ExGetSelectionToColumn<'_>

source

pub fn deselect(&mut self)

source

pub fn deselect_ex(&mut self) -> ExDeselect<'_>

source

pub fn delete_selection(&mut self)

source

pub fn delete_selection_ex(&mut self) -> ExDeleteSelection<'_>

source

pub fn set_line_wrapping_mode(&mut self, mode: LineWrappingMode)

source

pub fn get_line_wrapping_mode(&self) -> LineWrappingMode

source

pub fn set_autowrap_mode(&mut self, autowrap_mode: AutowrapMode)

source

pub fn get_autowrap_mode(&self) -> AutowrapMode

source

pub fn is_line_wrapped(&self, line: i32) -> bool

source

pub fn get_line_wrap_count(&self, line: i32) -> i32

source

pub fn get_line_wrap_index_at_column(&self, line: i32, column: i32) -> i32

source

pub fn get_line_wrapped_text(&self, line: i32) -> PackedStringArray

source

pub fn set_smooth_scroll_enabled(&mut self, enable: bool)

source

pub fn is_smooth_scroll_enabled(&self) -> bool

source

pub fn get_v_scroll_bar(&self) -> Option<Gd<VScrollBar>>

source

pub fn get_h_scroll_bar(&self) -> Option<Gd<HScrollBar>>

source

pub fn set_v_scroll(&mut self, value: f64)

source

pub fn get_v_scroll(&self) -> f64

source

pub fn set_h_scroll(&mut self, value: i32)

source

pub fn get_h_scroll(&self) -> i32

source

pub fn set_scroll_past_end_of_file_enabled(&mut self, enable: bool)

source

pub fn is_scroll_past_end_of_file_enabled(&self) -> bool

source

pub fn set_v_scroll_speed(&mut self, speed: f32)

source

pub fn get_v_scroll_speed(&self) -> f32

source

pub fn set_fit_content_height_enabled(&mut self, enabled: bool)

source

pub fn is_fit_content_height_enabled(&self) -> bool

source

pub fn get_scroll_pos_for_line(&self, line: i32) -> f64

source

pub fn get_scroll_pos_for_line_ex(&self, line: i32) -> ExGetScrollPosForLine<'_>

source

pub fn set_line_as_first_visible(&mut self, line: i32)

source

pub fn set_line_as_first_visible_ex( &mut self, line: i32, ) -> ExSetLineAsFirstVisible<'_>

source

pub fn get_first_visible_line(&self) -> i32

source

pub fn set_line_as_center_visible(&mut self, line: i32)

source

pub fn set_line_as_center_visible_ex( &mut self, line: i32, ) -> ExSetLineAsCenterVisible<'_>

source

pub fn set_line_as_last_visible(&mut self, line: i32)

source

pub fn set_line_as_last_visible_ex( &mut self, line: i32, ) -> ExSetLineAsLastVisible<'_>

source

pub fn get_last_full_visible_line(&self) -> i32

source

pub fn get_last_full_visible_line_wrap_index(&self) -> i32

source

pub fn get_visible_line_count(&self) -> i32

source

pub fn get_visible_line_count_in_range( &self, from_line: i32, to_line: i32, ) -> i32

source

pub fn get_total_visible_line_count(&self) -> i32

source

pub fn adjust_viewport_to_caret(&mut self)

source

pub fn adjust_viewport_to_caret_ex(&mut self) -> ExAdjustViewportToCaret<'_>

source

pub fn center_viewport_to_caret(&mut self)

source

pub fn center_viewport_to_caret_ex(&mut self) -> ExCenterViewportToCaret<'_>

source

pub fn set_draw_minimap(&mut self, enabled: bool)

source

pub fn is_drawing_minimap(&self) -> bool

source

pub fn set_minimap_width(&mut self, width: i32)

source

pub fn get_minimap_width(&self) -> i32

source

pub fn get_minimap_visible_lines(&self) -> i32

source

pub fn add_gutter(&mut self)

source

pub fn add_gutter_ex(&mut self) -> ExAddGutter<'_>

source

pub fn remove_gutter(&mut self, gutter: i32)

source

pub fn get_gutter_count(&self) -> i32

source

pub fn set_gutter_name(&mut self, gutter: i32, name: GString)

source

pub fn get_gutter_name(&self, gutter: i32) -> GString

source

pub fn set_gutter_type(&mut self, gutter: i32, type_: GutterType)

source

pub fn get_gutter_type(&self, gutter: i32) -> GutterType

source

pub fn set_gutter_width(&mut self, gutter: i32, width: i32)

source

pub fn get_gutter_width(&self, gutter: i32) -> i32

source

pub fn set_gutter_draw(&mut self, gutter: i32, draw: bool)

source

pub fn is_gutter_drawn(&self, gutter: i32) -> bool

source

pub fn set_gutter_clickable(&mut self, gutter: i32, clickable: bool)

source

pub fn is_gutter_clickable(&self, gutter: i32) -> bool

source

pub fn set_gutter_overwritable(&mut self, gutter: i32, overwritable: bool)

source

pub fn is_gutter_overwritable(&self, gutter: i32) -> bool

source

pub fn merge_gutters(&mut self, from_line: i32, to_line: i32)

source

pub fn set_gutter_custom_draw(&mut self, column: i32, draw_callback: Callable)

source

pub fn get_total_gutter_width(&self) -> i32

source

pub fn set_line_gutter_metadata( &mut self, line: i32, gutter: i32, metadata: Variant, )

source

pub fn get_line_gutter_metadata(&self, line: i32, gutter: i32) -> Variant

source

pub fn set_line_gutter_text(&mut self, line: i32, gutter: i32, text: GString)

source

pub fn get_line_gutter_text(&self, line: i32, gutter: i32) -> GString

source

pub fn set_line_gutter_icon( &mut self, line: i32, gutter: i32, icon: Gd<Texture2D>, )

source

pub fn get_line_gutter_icon( &self, line: i32, gutter: i32, ) -> Option<Gd<Texture2D>>

source

pub fn set_line_gutter_item_color( &mut self, line: i32, gutter: i32, color: Color, )

source

pub fn get_line_gutter_item_color(&self, line: i32, gutter: i32) -> Color

source

pub fn set_line_gutter_clickable( &mut self, line: i32, gutter: i32, clickable: bool, )

source

pub fn is_line_gutter_clickable(&self, line: i32, gutter: i32) -> bool

source

pub fn set_line_background_color(&mut self, line: i32, color: Color)

source

pub fn get_line_background_color(&self, line: i32) -> Color

source

pub fn set_syntax_highlighter( &mut self, syntax_highlighter: Gd<SyntaxHighlighter>, )

source

pub fn get_syntax_highlighter(&self) -> Option<Gd<SyntaxHighlighter>>

source

pub fn set_highlight_current_line(&mut self, enabled: bool)

source

pub fn is_highlight_current_line_enabled(&self) -> bool

source

pub fn set_highlight_all_occurrences(&mut self, enabled: bool)

source

pub fn is_highlight_all_occurrences_enabled(&self) -> bool

source

pub fn get_draw_control_chars(&self) -> bool

source

pub fn set_draw_control_chars(&mut self, enabled: bool)

source

pub fn set_draw_tabs(&mut self, enabled: bool)

source

pub fn is_drawing_tabs(&self) -> bool

source

pub fn set_draw_spaces(&mut self, enabled: bool)

source

pub fn is_drawing_spaces(&self) -> bool

source

pub fn get_menu(&self) -> Option<Gd<PopupMenu>>

source

pub fn is_menu_visible(&self) -> bool

source

pub fn menu_option(&mut self, option: i32)

Methods from Deref<Target = Control>§

source

pub fn accept_event(&mut self)

source

pub fn get_minimum_size(&self) -> Vector2

source

pub fn get_combined_minimum_size(&self) -> Vector2

source

pub fn set_anchors_preset(&mut self, preset: LayoutPreset)

source

pub fn set_anchors_preset_ex( &mut self, preset: LayoutPreset, ) -> ExSetAnchorsPreset<'_>

source

pub fn set_offsets_preset(&mut self, preset: LayoutPreset)

source

pub fn set_offsets_preset_ex( &mut self, preset: LayoutPreset, ) -> ExSetOffsetsPreset<'_>

source

pub fn set_anchors_and_offsets_preset(&mut self, preset: LayoutPreset)

source

pub fn set_anchors_and_offsets_preset_ex( &mut self, preset: LayoutPreset, ) -> ExSetAnchorsAndOffsetsPreset<'_>

source

pub fn set_anchor(&mut self, side: Side, anchor: f32)

source

pub fn set_anchor_ex(&mut self, side: Side, anchor: f32) -> ExSetAnchor<'_>

source

pub fn get_anchor(&self, side: Side) -> f32

source

pub fn set_offset(&mut self, side: Side, offset: f32)

source

pub fn get_offset(&self, offset: Side) -> f32

source

pub fn set_anchor_and_offset(&mut self, side: Side, anchor: f32, offset: f32)

source

pub fn set_anchor_and_offset_ex( &mut self, side: Side, anchor: f32, offset: f32, ) -> ExSetAnchorAndOffset<'_>

source

pub fn set_begin(&mut self, position: Vector2)

source

pub fn set_end(&mut self, position: Vector2)

source

pub fn set_position(&mut self, position: Vector2)

source

pub fn set_position_ex(&mut self, position: Vector2) -> ExSetPosition<'_>

source

pub fn set_size(&mut self, size: Vector2)

source

pub fn set_size_ex(&mut self, size: Vector2) -> ExSetSize<'_>

source

pub fn reset_size(&mut self)

source

pub fn set_custom_minimum_size(&mut self, size: Vector2)

source

pub fn set_global_position(&mut self, position: Vector2)

source

pub fn set_global_position_ex( &mut self, position: Vector2, ) -> ExSetGlobalPosition<'_>

source

pub fn set_rotation(&mut self, radians: f32)

source

pub fn set_rotation_degrees(&mut self, degrees: f32)

source

pub fn set_scale(&mut self, scale: Vector2)

source

pub fn set_pivot_offset(&mut self, pivot_offset: Vector2)

source

pub fn get_begin(&self) -> Vector2

source

pub fn get_end(&self) -> Vector2

source

pub fn get_position(&self) -> Vector2

source

pub fn get_size(&self) -> Vector2

source

pub fn get_rotation(&self) -> f32

source

pub fn get_rotation_degrees(&self) -> f32

source

pub fn get_scale(&self) -> Vector2

source

pub fn get_pivot_offset(&self) -> Vector2

source

pub fn get_custom_minimum_size(&self) -> Vector2

source

pub fn get_parent_area_size(&self) -> Vector2

source

pub fn get_global_position(&self) -> Vector2

source

pub fn get_screen_position(&self) -> Vector2

source

pub fn get_rect(&self) -> Rect2

source

pub fn get_global_rect(&self) -> Rect2

source

pub fn set_focus_mode(&mut self, mode: FocusMode)

source

pub fn get_focus_mode(&self) -> FocusMode

source

pub fn has_focus(&self) -> bool

source

pub fn grab_focus(&mut self)

source

pub fn release_focus(&mut self)

source

pub fn find_prev_valid_focus(&self) -> Option<Gd<Control>>

source

pub fn find_next_valid_focus(&self) -> Option<Gd<Control>>

source

pub fn find_valid_focus_neighbor(&self, side: Side) -> Option<Gd<Control>>

source

pub fn set_h_size_flags(&mut self, flags: SizeFlags)

source

pub fn get_h_size_flags(&self) -> SizeFlags

source

pub fn set_stretch_ratio(&mut self, ratio: f32)

source

pub fn get_stretch_ratio(&self) -> f32

source

pub fn set_v_size_flags(&mut self, flags: SizeFlags)

source

pub fn get_v_size_flags(&self) -> SizeFlags

source

pub fn set_theme(&mut self, theme: Gd<Theme>)

source

pub fn get_theme(&self) -> Option<Gd<Theme>>

source

pub fn set_theme_type_variation(&mut self, theme_type: StringName)

source

pub fn get_theme_type_variation(&self) -> StringName

source

pub fn begin_bulk_theme_override(&mut self)

source

pub fn end_bulk_theme_override(&mut self)

source

pub fn add_theme_icon_override( &mut self, name: StringName, texture: Gd<Texture2D>, )

source

pub fn add_theme_stylebox_override( &mut self, name: StringName, stylebox: Gd<StyleBox>, )

source

pub fn add_theme_font_override(&mut self, name: StringName, font: Gd<Font>)

source

pub fn add_theme_font_size_override(&mut self, name: StringName, font_size: i32)

source

pub fn add_theme_color_override(&mut self, name: StringName, color: Color)

source

pub fn add_theme_constant_override(&mut self, name: StringName, constant: i32)

source

pub fn remove_theme_icon_override(&mut self, name: StringName)

source

pub fn remove_theme_stylebox_override(&mut self, name: StringName)

source

pub fn remove_theme_font_override(&mut self, name: StringName)

source

pub fn remove_theme_font_size_override(&mut self, name: StringName)

source

pub fn remove_theme_color_override(&mut self, name: StringName)

source

pub fn remove_theme_constant_override(&mut self, name: StringName)

source

pub fn get_theme_icon(&self, name: StringName) -> Option<Gd<Texture2D>>

source

pub fn get_theme_icon_ex(&self, name: StringName) -> ExGetThemeIcon<'_>

source

pub fn get_theme_stylebox(&self, name: StringName) -> Option<Gd<StyleBox>>

source

pub fn get_theme_stylebox_ex(&self, name: StringName) -> ExGetThemeStylebox<'_>

source

pub fn get_theme_font(&self, name: StringName) -> Option<Gd<Font>>

source

pub fn get_theme_font_ex(&self, name: StringName) -> ExGetThemeFont<'_>

source

pub fn get_theme_font_size(&self, name: StringName) -> i32

source

pub fn get_theme_font_size_ex(&self, name: StringName) -> ExGetThemeFontSize<'_>

source

pub fn get_theme_color(&self, name: StringName) -> Color

source

pub fn get_theme_color_ex(&self, name: StringName) -> ExGetThemeColor<'_>

source

pub fn get_theme_constant(&self, name: StringName) -> i32

source

pub fn get_theme_constant_ex(&self, name: StringName) -> ExGetThemeConstant<'_>

source

pub fn has_theme_icon_override(&self, name: StringName) -> bool

source

pub fn has_theme_stylebox_override(&self, name: StringName) -> bool

source

pub fn has_theme_font_override(&self, name: StringName) -> bool

source

pub fn has_theme_font_size_override(&self, name: StringName) -> bool

source

pub fn has_theme_color_override(&self, name: StringName) -> bool

source

pub fn has_theme_constant_override(&self, name: StringName) -> bool

source

pub fn has_theme_icon(&self, name: StringName) -> bool

source

pub fn has_theme_icon_ex(&self, name: StringName) -> ExHasThemeIcon<'_>

source

pub fn has_theme_stylebox(&self, name: StringName) -> bool

source

pub fn has_theme_stylebox_ex(&self, name: StringName) -> ExHasThemeStylebox<'_>

source

pub fn has_theme_font(&self, name: StringName) -> bool

source

pub fn has_theme_font_ex(&self, name: StringName) -> ExHasThemeFont<'_>

source

pub fn has_theme_font_size(&self, name: StringName) -> bool

source

pub fn has_theme_font_size_ex(&self, name: StringName) -> ExHasThemeFontSize<'_>

source

pub fn has_theme_color(&self, name: StringName) -> bool

source

pub fn has_theme_color_ex(&self, name: StringName) -> ExHasThemeColor<'_>

source

pub fn has_theme_constant(&self, name: StringName) -> bool

source

pub fn has_theme_constant_ex(&self, name: StringName) -> ExHasThemeConstant<'_>

source

pub fn get_theme_default_base_scale(&self) -> f32

source

pub fn get_theme_default_font(&self) -> Option<Gd<Font>>

source

pub fn get_theme_default_font_size(&self) -> i32

source

pub fn get_parent_control(&self) -> Option<Gd<Control>>

source

pub fn set_h_grow_direction(&mut self, direction: GrowDirection)

source

pub fn get_h_grow_direction(&self) -> GrowDirection

source

pub fn set_v_grow_direction(&mut self, direction: GrowDirection)

source

pub fn get_v_grow_direction(&self) -> GrowDirection

source

pub fn set_tooltip_text(&mut self, hint: GString)

source

pub fn get_tooltip_text(&self) -> GString

source

pub fn get_tooltip(&self) -> GString

source

pub fn get_tooltip_ex(&self) -> ExGetTooltip<'_>

source

pub fn set_default_cursor_shape(&mut self, shape: CursorShape)

source

pub fn get_default_cursor_shape(&self) -> CursorShape

source

pub fn get_cursor_shape(&self) -> CursorShape

source

pub fn get_cursor_shape_ex(&self) -> ExGetCursorShape<'_>

source

pub fn set_focus_neighbor(&mut self, side: Side, neighbor: NodePath)

source

pub fn get_focus_neighbor(&self, side: Side) -> NodePath

source

pub fn set_focus_next(&mut self, next: NodePath)

source

pub fn get_focus_next(&self) -> NodePath

source

pub fn set_focus_previous(&mut self, previous: NodePath)

source

pub fn get_focus_previous(&self) -> NodePath

source

pub fn force_drag(&mut self, data: Variant, preview: Gd<Control>)

source

pub fn set_mouse_filter(&mut self, filter: MouseFilter)

source

pub fn get_mouse_filter(&self) -> MouseFilter

source

pub fn set_force_pass_scroll_events(&mut self, force_pass_scroll_events: bool)

source

pub fn is_force_pass_scroll_events(&self) -> bool

source

pub fn set_clip_contents(&mut self, enable: bool)

source

pub fn is_clipping_contents(&mut self) -> bool

source

pub fn grab_click_focus(&mut self)

source

pub fn set_drag_forwarding( &mut self, drag_func: Callable, can_drop_func: Callable, drop_func: Callable, )

source

pub fn set_drag_preview(&mut self, control: Gd<Control>)

source

pub fn is_drag_successful(&self) -> bool

source

pub fn warp_mouse(&mut self, position: Vector2)

source

pub fn set_shortcut_context(&mut self, node: Gd<Node>)

source

pub fn get_shortcut_context(&self) -> Option<Gd<Node>>

source

pub fn update_minimum_size(&mut self)

source

pub fn set_layout_direction(&mut self, direction: LayoutDirection)

source

pub fn get_layout_direction(&self) -> LayoutDirection

source

pub fn is_layout_rtl(&self) -> bool

source

pub fn set_auto_translate(&mut self, enable: bool)

source

pub fn is_auto_translating(&self) -> bool

source

pub fn set_localize_numeral_system(&mut self, enable: bool)

source

pub fn is_localizing_numeral_system(&self) -> bool

source

pub fn notify(&mut self, what: ControlNotification)

⚠️ Sends a Godot notification to all classes inherited by the object.

Triggers calls to on_notification(), and depending on the notification, also to Godot’s lifecycle callbacks such as ready().

Starts from the highest ancestor (the Object class) and goes down the hierarchy. See also Godot docs for Object::notification().

§Panics

If you call this method on a user-defined object while holding a GdRef or GdMut guard on the instance, you will encounter a panic. The reason is that the receiving virtual method on_notification() acquires a GdMut lock dynamically, which must be exclusive.

source

pub fn notify_reversed(&mut self, what: ControlNotification)

⚠️ Like Self::notify(), but starts at the most-derived class and goes up the hierarchy.

See docs of that method, including the panics.

Methods from Deref<Target = CanvasItem>§

source

pub fn get_canvas_item(&self) -> Rid

source

pub fn set_visible(&mut self, visible: bool)

source

pub fn is_visible(&self) -> bool

source

pub fn is_visible_in_tree(&self) -> bool

source

pub fn show(&mut self)

source

pub fn hide(&mut self)

source

pub fn queue_redraw(&mut self)

source

pub fn move_to_front(&mut self)

source

pub fn set_as_top_level(&mut self, enable: bool)

source

pub fn is_set_as_top_level(&self) -> bool

source

pub fn set_light_mask(&mut self, light_mask: i32)

source

pub fn get_light_mask(&self) -> i32

source

pub fn set_modulate(&mut self, modulate: Color)

source

pub fn get_modulate(&self) -> Color

source

pub fn set_self_modulate(&mut self, self_modulate: Color)

source

pub fn get_self_modulate(&self) -> Color

source

pub fn set_z_index(&mut self, z_index: i32)

source

pub fn get_z_index(&self) -> i32

source

pub fn set_z_as_relative(&mut self, enable: bool)

source

pub fn is_z_relative(&self) -> bool

source

pub fn set_y_sort_enabled(&mut self, enabled: bool)

source

pub fn is_y_sort_enabled(&self) -> bool

source

pub fn set_draw_behind_parent(&mut self, enable: bool)

source

pub fn is_draw_behind_parent_enabled(&self) -> bool

source

pub fn draw_line(&mut self, from: Vector2, to: Vector2, color: Color)

source

pub fn draw_line_ex( &mut self, from: Vector2, to: Vector2, color: Color, ) -> ExDrawLine<'_>

source

pub fn draw_dashed_line(&mut self, from: Vector2, to: Vector2, color: Color)

source

pub fn draw_dashed_line_ex( &mut self, from: Vector2, to: Vector2, color: Color, ) -> ExDrawDashedLine<'_>

source

pub fn draw_polyline(&mut self, points: PackedVector2Array, color: Color)

source

pub fn draw_polyline_ex( &mut self, points: PackedVector2Array, color: Color, ) -> ExDrawPolyline<'_>

source

pub fn draw_polyline_colors( &mut self, points: PackedVector2Array, colors: PackedColorArray, )

source

pub fn draw_polyline_colors_ex( &mut self, points: PackedVector2Array, colors: PackedColorArray, ) -> ExDrawPolylineColors<'_>

source

pub fn draw_arc( &mut self, center: Vector2, radius: f32, start_angle: f32, end_angle: f32, point_count: i32, color: Color, )

source

pub fn draw_arc_ex( &mut self, center: Vector2, radius: f32, start_angle: f32, end_angle: f32, point_count: i32, color: Color, ) -> ExDrawArc<'_>

source

pub fn draw_multiline(&mut self, points: PackedVector2Array, color: Color)

source

pub fn draw_multiline_ex( &mut self, points: PackedVector2Array, color: Color, ) -> ExDrawMultiline<'_>

source

pub fn draw_multiline_colors( &mut self, points: PackedVector2Array, colors: PackedColorArray, )

source

pub fn draw_multiline_colors_ex( &mut self, points: PackedVector2Array, colors: PackedColorArray, ) -> ExDrawMultilineColors<'_>

source

pub fn draw_rect(&mut self, rect: Rect2, color: Color)

source

pub fn draw_rect_ex(&mut self, rect: Rect2, color: Color) -> ExDrawRect<'_>

source

pub fn draw_circle(&mut self, position: Vector2, radius: f32, color: Color)

source

pub fn draw_texture(&mut self, texture: Gd<Texture2D>, position: Vector2)

source

pub fn draw_texture_ex( &mut self, texture: Gd<Texture2D>, position: Vector2, ) -> ExDrawTexture<'_>

source

pub fn draw_texture_rect( &mut self, texture: Gd<Texture2D>, rect: Rect2, tile: bool, )

source

pub fn draw_texture_rect_ex( &mut self, texture: Gd<Texture2D>, rect: Rect2, tile: bool, ) -> ExDrawTextureRect<'_>

source

pub fn draw_texture_rect_region( &mut self, texture: Gd<Texture2D>, rect: Rect2, src_rect: Rect2, )

source

pub fn draw_texture_rect_region_ex( &mut self, texture: Gd<Texture2D>, rect: Rect2, src_rect: Rect2, ) -> ExDrawTextureRectRegion<'_>

source

pub fn draw_msdf_texture_rect_region( &mut self, texture: Gd<Texture2D>, rect: Rect2, src_rect: Rect2, )

source

pub fn draw_msdf_texture_rect_region_ex( &mut self, texture: Gd<Texture2D>, rect: Rect2, src_rect: Rect2, ) -> ExDrawMsdfTextureRectRegion<'_>

source

pub fn draw_lcd_texture_rect_region( &mut self, texture: Gd<Texture2D>, rect: Rect2, src_rect: Rect2, )

source

pub fn draw_lcd_texture_rect_region_ex( &mut self, texture: Gd<Texture2D>, rect: Rect2, src_rect: Rect2, ) -> ExDrawLcdTextureRectRegion<'_>

source

pub fn draw_style_box(&mut self, style_box: Gd<StyleBox>, rect: Rect2)

source

pub fn draw_primitive( &mut self, points: PackedVector2Array, colors: PackedColorArray, uvs: PackedVector2Array, )

source

pub fn draw_primitive_ex( &mut self, points: PackedVector2Array, colors: PackedColorArray, uvs: PackedVector2Array, ) -> ExDrawPrimitive<'_>

source

pub fn draw_polygon( &mut self, points: PackedVector2Array, colors: PackedColorArray, )

source

pub fn draw_polygon_ex( &mut self, points: PackedVector2Array, colors: PackedColorArray, ) -> ExDrawPolygon<'_>

source

pub fn draw_colored_polygon(&mut self, points: PackedVector2Array, color: Color)

source

pub fn draw_colored_polygon_ex( &mut self, points: PackedVector2Array, color: Color, ) -> ExDrawColoredPolygon<'_>

source

pub fn draw_string(&self, font: Gd<Font>, pos: Vector2, text: GString)

source

pub fn draw_string_ex( &self, font: Gd<Font>, pos: Vector2, text: GString, ) -> ExDrawString<'_>

source

pub fn draw_multiline_string(&self, font: Gd<Font>, pos: Vector2, text: GString)

source

pub fn draw_multiline_string_ex( &self, font: Gd<Font>, pos: Vector2, text: GString, ) -> ExDrawMultilineString<'_>

source

pub fn draw_string_outline(&self, font: Gd<Font>, pos: Vector2, text: GString)

source

pub fn draw_string_outline_ex( &self, font: Gd<Font>, pos: Vector2, text: GString, ) -> ExDrawStringOutline<'_>

source

pub fn draw_multiline_string_outline( &self, font: Gd<Font>, pos: Vector2, text: GString, )

source

pub fn draw_multiline_string_outline_ex( &self, font: Gd<Font>, pos: Vector2, text: GString, ) -> ExDrawMultilineStringOutline<'_>

source

pub fn draw_char(&self, font: Gd<Font>, pos: Vector2, char: GString)

source

pub fn draw_char_ex( &self, font: Gd<Font>, pos: Vector2, char: GString, ) -> ExDrawChar<'_>

source

pub fn draw_char_outline(&self, font: Gd<Font>, pos: Vector2, char: GString)

source

pub fn draw_char_outline_ex( &self, font: Gd<Font>, pos: Vector2, char: GString, ) -> ExDrawCharOutline<'_>

source

pub fn draw_mesh(&mut self, mesh: Gd<Mesh>, texture: Gd<Texture2D>)

source

pub fn draw_mesh_ex( &mut self, mesh: Gd<Mesh>, texture: Gd<Texture2D>, ) -> ExDrawMesh<'_>

source

pub fn draw_multimesh( &mut self, multimesh: Gd<MultiMesh>, texture: Gd<Texture2D>, )

source

pub fn draw_set_transform(&mut self, position: Vector2)

source

pub fn draw_set_transform_ex( &mut self, position: Vector2, ) -> ExDrawSetTransform<'_>

source

pub fn draw_set_transform_matrix(&mut self, xform: Transform2D)

source

pub fn draw_animation_slice( &mut self, animation_length: f64, slice_begin: f64, slice_end: f64, )

source

pub fn draw_animation_slice_ex( &mut self, animation_length: f64, slice_begin: f64, slice_end: f64, ) -> ExDrawAnimationSlice<'_>

source

pub fn draw_end_animation(&mut self)

source

pub fn get_transform(&self) -> Transform2D

source

pub fn get_global_transform(&self) -> Transform2D

source

pub fn get_global_transform_with_canvas(&self) -> Transform2D

source

pub fn get_viewport_transform(&self) -> Transform2D

source

pub fn get_viewport_rect(&self) -> Rect2

source

pub fn get_canvas_transform(&self) -> Transform2D

source

pub fn get_screen_transform(&self) -> Transform2D

source

pub fn get_local_mouse_position(&self) -> Vector2

source

pub fn get_global_mouse_position(&self) -> Vector2

source

pub fn get_canvas(&self) -> Rid

source

pub fn get_world_2d(&self) -> Option<Gd<World2D>>

source

pub fn set_material(&mut self, material: Gd<Material>)

source

pub fn get_material(&self) -> Option<Gd<Material>>

source

pub fn set_use_parent_material(&mut self, enable: bool)

source

pub fn get_use_parent_material(&self) -> bool

source

pub fn set_notify_local_transform(&mut self, enable: bool)

source

pub fn is_local_transform_notification_enabled(&self) -> bool

source

pub fn set_notify_transform(&mut self, enable: bool)

source

pub fn is_transform_notification_enabled(&self) -> bool

source

pub fn force_update_transform(&mut self)

source

pub fn make_canvas_position_local(&self, screen_point: Vector2) -> Vector2

source

pub fn make_input_local(&self, event: Gd<InputEvent>) -> Option<Gd<InputEvent>>

source

pub fn set_visibility_layer(&mut self, layer: u32)

source

pub fn get_visibility_layer(&self) -> u32

source

pub fn set_visibility_layer_bit(&mut self, layer: u32, enabled: bool)

source

pub fn get_visibility_layer_bit(&self, layer: u32) -> bool

source

pub fn set_texture_filter(&mut self, mode: TextureFilter)

source

pub fn get_texture_filter(&self) -> TextureFilter

source

pub fn set_texture_repeat(&mut self, mode: TextureRepeat)

source

pub fn get_texture_repeat(&self) -> TextureRepeat

source

pub fn set_clip_children_mode(&mut self, mode: ClipChildrenMode)

source

pub fn get_clip_children_mode(&self) -> ClipChildrenMode

source

pub fn notify(&mut self, what: CanvasItemNotification)

⚠️ Sends a Godot notification to all classes inherited by the object.

Triggers calls to on_notification(), and depending on the notification, also to Godot’s lifecycle callbacks such as ready().

Starts from the highest ancestor (the Object class) and goes down the hierarchy. See also Godot docs for Object::notification().

§Panics

If you call this method on a user-defined object while holding a GdRef or GdMut guard on the instance, you will encounter a panic. The reason is that the receiving virtual method on_notification() acquires a GdMut lock dynamically, which must be exclusive.

source

pub fn notify_reversed(&mut self, what: CanvasItemNotification)

⚠️ Like Self::notify(), but starts at the most-derived class and goes up the hierarchy.

See docs of that method, including the panics.

Methods from Deref<Target = Node>§

source

pub fn get_node_as<T>(&self, path: impl Into<NodePath>) -> Gd<T>
where T: Inherits<Node>,

⚠️ Retrieves the node at path path, panicking if not found or bad type.

§Panics

If the node is not found, or if it does not have type T or inherited.

source

pub fn try_get_node_as<T>(&self, path: impl Into<NodePath>) -> Option<Gd<T>>
where T: Inherits<Node>,

Retrieves the node at path path (fallible).

If the node is not found, or if it does not have type T or inherited, None will be returned.

source

pub fn add_sibling(&mut self, sibling: Gd<Node>)

source

pub fn add_sibling_ex(&mut self, sibling: Gd<Node>) -> ExAddSibling<'_>

source

pub fn set_name(&mut self, name: GString)

source

pub fn get_name(&self) -> StringName

source

pub fn add_child(&mut self, node: Gd<Node>)

source

pub fn add_child_ex(&mut self, node: Gd<Node>) -> ExAddChild<'_>

source

pub fn remove_child(&mut self, node: Gd<Node>)

source

pub fn reparent(&mut self, new_parent: Gd<Node>)

source

pub fn reparent_ex(&mut self, new_parent: Gd<Node>) -> ExReparent<'_>

source

pub fn get_child_count(&self) -> i32

source

pub fn get_child_count_ex(&self) -> ExGetChildCount<'_>

source

pub fn get_children(&self) -> Array<Gd<Node>>

source

pub fn get_children_ex(&self) -> ExGetChildren<'_>

source

pub fn get_child(&self, idx: i32) -> Option<Gd<Node>>

source

pub fn get_child_ex(&self, idx: i32) -> ExGetChild<'_>

source

pub fn has_node(&self, path: NodePath) -> bool

source

pub fn get_node_or_null(&self, path: NodePath) -> Option<Gd<Node>>

source

pub fn get_parent(&self) -> Option<Gd<Node>>

source

pub fn find_child(&self, pattern: GString) -> Option<Gd<Node>>

source

pub fn find_child_ex(&self, pattern: GString) -> ExFindChild<'_>

source

pub fn find_children(&self, pattern: GString) -> Array<Gd<Node>>

source

pub fn find_children_ex(&self, pattern: GString) -> ExFindChildren<'_>

source

pub fn find_parent(&self, pattern: GString) -> Option<Gd<Node>>

source

pub fn has_node_and_resource(&self, path: NodePath) -> bool

source

pub fn get_node_and_resource(&mut self, path: NodePath) -> Array<Variant>

source

pub fn is_inside_tree(&self) -> bool

source

pub fn is_ancestor_of(&self, node: Gd<Node>) -> bool

source

pub fn is_greater_than(&self, node: Gd<Node>) -> bool

source

pub fn get_path(&self) -> NodePath

source

pub fn get_path_to(&self, node: Gd<Node>) -> NodePath

source

pub fn get_path_to_ex(&self, node: Gd<Node>) -> ExGetPathTo<'_>

source

pub fn add_to_group(&mut self, group: StringName)

source

pub fn add_to_group_ex(&mut self, group: StringName) -> ExAddToGroup<'_>

source

pub fn remove_from_group(&mut self, group: StringName)

source

pub fn is_in_group(&self, group: StringName) -> bool

source

pub fn move_child(&mut self, child_node: Gd<Node>, to_index: i32)

source

pub fn get_groups(&self) -> Array<StringName>

source

pub fn set_owner(&mut self, owner: Gd<Node>)

source

pub fn get_owner(&self) -> Option<Gd<Node>>

source

pub fn get_index(&self) -> i32

source

pub fn get_index_ex(&self) -> ExGetIndex<'_>

source

pub fn print_tree(&mut self)

source

pub fn print_tree_pretty(&mut self)

source

pub fn get_tree_string(&mut self) -> GString

source

pub fn get_tree_string_pretty(&mut self) -> GString

source

pub fn set_scene_file_path(&mut self, scene_file_path: GString)

source

pub fn get_scene_file_path(&self) -> GString

source

pub fn propagate_notification(&mut self, what: i32)

source

pub fn propagate_call(&mut self, method: StringName)

source

pub fn propagate_call_ex(&mut self, method: StringName) -> ExPropagateCall<'_>

source

pub fn set_physics_process(&mut self, enable: bool)

source

pub fn get_physics_process_delta_time(&self) -> f64

source

pub fn is_physics_processing(&self) -> bool

source

pub fn get_process_delta_time(&self) -> f64

source

pub fn set_process(&mut self, enable: bool)

source

pub fn set_process_priority(&mut self, priority: i32)

source

pub fn get_process_priority(&self) -> i32

source

pub fn set_physics_process_priority(&mut self, priority: i32)

source

pub fn get_physics_process_priority(&self) -> i32

source

pub fn is_processing(&self) -> bool

source

pub fn set_process_input(&mut self, enable: bool)

source

pub fn is_processing_input(&self) -> bool

source

pub fn set_process_shortcut_input(&mut self, enable: bool)

source

pub fn is_processing_shortcut_input(&self) -> bool

source

pub fn set_process_unhandled_input(&mut self, enable: bool)

source

pub fn is_processing_unhandled_input(&self) -> bool

source

pub fn set_process_unhandled_key_input(&mut self, enable: bool)

source

pub fn is_processing_unhandled_key_input(&self) -> bool

source

pub fn set_process_mode(&mut self, mode: ProcessMode)

source

pub fn get_process_mode(&self) -> ProcessMode

source

pub fn can_process(&self) -> bool

source

pub fn set_process_thread_group(&mut self, mode: ProcessThreadGroup)

source

pub fn get_process_thread_group(&self) -> ProcessThreadGroup

source

pub fn set_process_thread_messages(&mut self, flags: ProcessThreadMessages)

source

pub fn get_process_thread_messages(&self) -> ProcessThreadMessages

source

pub fn set_process_thread_group_order(&mut self, order: i32)

source

pub fn get_process_thread_group_order(&self) -> i32

source

pub fn set_display_folded(&mut self, fold: bool)

source

pub fn is_displayed_folded(&self) -> bool

source

pub fn set_process_internal(&mut self, enable: bool)

source

pub fn is_processing_internal(&self) -> bool

source

pub fn set_physics_process_internal(&mut self, enable: bool)

source

pub fn is_physics_processing_internal(&self) -> bool

source

pub fn get_window(&self) -> Option<Gd<Window>>

source

pub fn get_last_exclusive_window(&self) -> Option<Gd<Window>>

source

pub fn get_tree(&self) -> Option<Gd<SceneTree>>

source

pub fn create_tween(&mut self) -> Option<Gd<Tween>>

source

pub fn duplicate(&self) -> Option<Gd<Node>>

source

pub fn duplicate_ex(&self) -> ExDuplicate<'_>

source

pub fn replace_by(&mut self, node: Gd<Node>)

source

pub fn replace_by_ex(&mut self, node: Gd<Node>) -> ExReplaceBy<'_>

source

pub fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool)

source

pub fn get_scene_instance_load_placeholder(&self) -> bool

source

pub fn set_editable_instance(&mut self, node: Gd<Node>, is_editable: bool)

source

pub fn is_editable_instance(&self, node: Gd<Node>) -> bool

source

pub fn get_viewport(&self) -> Option<Gd<Viewport>>

source

pub fn queue_free(&mut self)

source

pub fn request_ready(&mut self)

source

pub fn is_node_ready(&self) -> bool

source

pub fn set_multiplayer_authority(&mut self, id: i32)

source

pub fn set_multiplayer_authority_ex( &mut self, id: i32, ) -> ExSetMultiplayerAuthority<'_>

source

pub fn get_multiplayer_authority(&self) -> i32

source

pub fn is_multiplayer_authority(&self) -> bool

source

pub fn get_multiplayer(&self) -> Option<Gd<MultiplayerApi>>

source

pub fn rpc_config(&mut self, method: StringName, config: Variant)

source

pub fn set_editor_description(&mut self, editor_description: GString)

source

pub fn get_editor_description(&self) -> GString

source

pub fn set_unique_name_in_owner(&mut self, enable: bool)

source

pub fn is_unique_name_in_owner(&self) -> bool

source

pub fn rpc(&mut self, method: StringName, varargs: &[Variant]) -> Error

§Panics

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will panic in such a case.

source

pub fn try_rpc( &mut self, method: StringName, varargs: &[Variant], ) -> Result<Error, CallError>

§Return type

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will return Err in such a case.

source

pub fn rpc_id( &mut self, peer_id: i64, method: StringName, varargs: &[Variant], ) -> Error

§Panics

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will panic in such a case.

source

pub fn try_rpc_id( &mut self, peer_id: i64, method: StringName, varargs: &[Variant], ) -> Result<Error, CallError>

§Return type

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will return Err in such a case.

source

pub fn update_configuration_warnings(&mut self)

source

pub fn call_deferred_thread_group( &mut self, method: StringName, varargs: &[Variant], ) -> Variant

§Panics

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will panic in such a case.

source

pub fn try_call_deferred_thread_group( &mut self, method: StringName, varargs: &[Variant], ) -> Result<Variant, CallError>

§Return type

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will return Err in such a case.

source

pub fn set_deferred_thread_group( &mut self, property: StringName, value: Variant, )

source

pub fn notify_deferred_thread_group(&mut self, what: i32)

source

pub fn call_thread_safe( &mut self, method: StringName, varargs: &[Variant], ) -> Variant

§Panics

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will panic in such a case.

source

pub fn try_call_thread_safe( &mut self, method: StringName, varargs: &[Variant], ) -> Result<Variant, CallError>

§Return type

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will return Err in such a case.

source

pub fn set_thread_safe(&mut self, property: StringName, value: Variant)

source

pub fn notify_thread_safe(&mut self, what: i32)

source

pub fn notify(&mut self, what: NodeNotification)

⚠️ Sends a Godot notification to all classes inherited by the object.

Triggers calls to on_notification(), and depending on the notification, also to Godot’s lifecycle callbacks such as ready().

Starts from the highest ancestor (the Object class) and goes down the hierarchy. See also Godot docs for Object::notification().

§Panics

If you call this method on a user-defined object while holding a GdRef or GdMut guard on the instance, you will encounter a panic. The reason is that the receiving virtual method on_notification() acquires a GdMut lock dynamically, which must be exclusive.

source

pub fn notify_reversed(&mut self, what: NodeNotification)

⚠️ Like Self::notify(), but starts at the most-derived class and goes up the hierarchy.

See docs of that method, including the panics.

Methods from Deref<Target = Object>§

source

pub fn get_class(&self) -> GString

source

pub fn is_class(&self, class: GString) -> bool

source

pub fn set(&mut self, property: StringName, value: Variant)

source

pub fn get(&self, property: StringName) -> Variant

source

pub fn set_indexed(&mut self, property_path: NodePath, value: Variant)

source

pub fn get_indexed(&self, property_path: NodePath) -> Variant

source

pub fn get_property_list(&self) -> Array<Dictionary>

source

pub fn get_method_list(&self) -> Array<Dictionary>

source

pub fn property_can_revert(&self, property: StringName) -> bool

source

pub fn property_get_revert(&self, property: StringName) -> Variant

source

pub fn set_script(&mut self, script: Variant)

source

pub fn get_script(&self) -> Variant

source

pub fn set_meta(&mut self, name: StringName, value: Variant)

source

pub fn remove_meta(&mut self, name: StringName)

source

pub fn get_meta(&self, name: StringName) -> Variant

source

pub fn get_meta_ex(&self, name: StringName) -> ExGetMeta<'_>

source

pub fn has_meta(&self, name: StringName) -> bool

source

pub fn get_meta_list(&self) -> Array<StringName>

source

pub fn add_user_signal(&mut self, signal: GString)

source

pub fn add_user_signal_ex(&mut self, signal: GString) -> ExAddUserSignal<'_>

source

pub fn has_user_signal(&self, signal: StringName) -> bool

source

pub fn emit_signal(&mut self, signal: StringName, varargs: &[Variant]) -> Error

§Panics

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will panic in such a case.

source

pub fn try_emit_signal( &mut self, signal: StringName, varargs: &[Variant], ) -> Result<Error, CallError>

§Return type

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will return Err in such a case.

source

pub fn call(&mut self, method: StringName, varargs: &[Variant]) -> Variant

§Panics

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will panic in such a case.

source

pub fn try_call( &mut self, method: StringName, varargs: &[Variant], ) -> Result<Variant, CallError>

§Return type

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will return Err in such a case.

source

pub fn call_deferred( &mut self, method: StringName, varargs: &[Variant], ) -> Variant

§Panics

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will panic in such a case.

source

pub fn try_call_deferred( &mut self, method: StringName, varargs: &[Variant], ) -> Result<Variant, CallError>

§Return type

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will return Err in such a case.

source

pub fn set_deferred(&mut self, property: StringName, value: Variant)

source

pub fn callv( &mut self, method: StringName, arg_array: Array<Variant>, ) -> Variant

source

pub fn has_method(&self, method: StringName) -> bool

source

pub fn has_signal(&self, signal: StringName) -> bool

source

pub fn get_signal_list(&self) -> Array<Dictionary>

source

pub fn get_signal_connection_list( &self, signal: StringName, ) -> Array<Dictionary>

source

pub fn get_incoming_connections(&self) -> Array<Dictionary>

source

pub fn connect(&mut self, signal: StringName, callable: Callable) -> Error

source

pub fn connect_ex( &mut self, signal: StringName, callable: Callable, ) -> ExConnect<'_>

source

pub fn disconnect(&mut self, signal: StringName, callable: Callable)

source

pub fn is_connected(&self, signal: StringName, callable: Callable) -> bool

source

pub fn set_block_signals(&mut self, enable: bool)

source

pub fn is_blocking_signals(&self) -> bool

source

pub fn notify_property_list_changed(&mut self)

source

pub fn set_message_translation(&mut self, enable: bool)

source

pub fn can_translate_messages(&self) -> bool

source

pub fn tr(&self, message: StringName) -> GString

source

pub fn tr_ex(&self, message: StringName) -> ExTr<'_>

source

pub fn tr_n( &self, message: StringName, plural_message: StringName, n: i32, ) -> GString

source

pub fn tr_n_ex( &self, message: StringName, plural_message: StringName, n: i32, ) -> ExTrN<'_>

source

pub fn is_queued_for_deletion(&self) -> bool

source

pub fn cancel_free(&mut self)

source

pub fn notify(&mut self, what: ObjectNotification)

⚠️ Sends a Godot notification to all classes inherited by the object.

Triggers calls to on_notification(), and depending on the notification, also to Godot’s lifecycle callbacks such as ready().

Starts from the highest ancestor (the Object class) and goes down the hierarchy. See also Godot docs for Object::notification().

§Panics

If you call this method on a user-defined object while holding a GdRef or GdMut guard on the instance, you will encounter a panic. The reason is that the receiving virtual method on_notification() acquires a GdMut lock dynamically, which must be exclusive.

source

pub fn notify_reversed(&mut self, what: ObjectNotification)

⚠️ Like Self::notify(), but starts at the most-derived class and goes up the hierarchy.

See docs of that method, including the panics.

Trait Implementations§

source§

impl Bounds for CodeEdit

§

type Memory = MemManual

Defines the memory strategy of the static type.
§

type Declarer = DeclEngine

Whether this class is a core Godot class provided by the engine, or declared by the user as a Rust struct.
source§

impl Debug for CodeEdit

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Deref for CodeEdit

§

type Target = TextEdit

The resulting type after dereferencing.
source§

fn deref(&self) -> &<CodeEdit as Deref>::Target

Dereferences the value.
source§

impl DerefMut for CodeEdit

source§

fn deref_mut(&mut self) -> &mut <CodeEdit as Deref>::Target

Mutably dereferences the value.
source§

impl GodotClass for CodeEdit

§

type Base = TextEdit

The immediate superclass of T. This is always a Godot engine class.
source§

fn class_name() -> ClassName

The name of the class, under which it is registered in Godot. Read more
source§

const INIT_LEVEL: InitLevel = crate::init::InitLevel::Scene

Initialization level, during which this class should be initialized with Godot. Read more
source§

fn inherits<U>() -> bool
where U: GodotClass,

Returns whether Self inherits from U. Read more
source§

impl GodotDefault for CodeEdit

source§

impl Inherits<CanvasItem> for CodeEdit

source§

impl Inherits<Control> for CodeEdit

source§

impl Inherits<Node> for CodeEdit

source§

impl Inherits<Object> for CodeEdit

source§

impl Inherits<TextEdit> for CodeEdit

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> NewAlloc for T
where T: GodotDefault<Memory = MemManual> + Bounds,

source§

fn new_alloc() -> Gd<T>

Return a new, manually-managed Gd containing a default-constructed instance. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Inherits<T> for T
where T: GodotClass,