pub struct TextEditor {
Show 67 fields pub component_id: ComponentId, pub view: ScrollView, pub gutter_bg: Background, pub cursor: Cursor, pub cursor_row: Background, pub paren_pair: ColorBackground, pub indent_lines: IndentLines, pub message_marker: ColorBackground, pub search_marker: ColorBackground, pub cursors: TextCursorSet, pub text_area: Area, pub text_glyphs: Vec<TextIns>, pub current_font_scale: f32, pub open_font_scale: f32, pub folded_font_scale: f32, pub line_number_width: f32, pub line_number_click_margin: f32, pub draw_line_numbers: bool, pub top_padding: f32, pub cursor_blink_speed: f64, pub _undo_id: u64, pub highlight_area_on: bool, pub mark_unmatched_parens: bool, pub draw_cursor_row: bool, pub search_markers_bypass: Vec<TextCursor>, pub folding_depth: usize, pub colors: CodeEditorColors, pub read_only: bool, pub multiline: bool, pub line_number_offset: usize, pub _scroll_pos_on_load: Option<Vec2>, pub _set_key_focus_on_load: bool, pub _set_last_cursor: Option<((usize, usize), bool)>, pub _line_number_chunk: Vec<char>, pub _scroll_pos: Vec2, pub _last_pointer_move: Option<Vec2>, pub _paren_stack: Vec<ParenItem>, pub _indent_stack: Vec<(Vec4, f32)>, pub _indent_id_alloc: f32, pub _indent_line_inst: Area, pub _bg_inst: Option<InstanceRangeArea>, pub _last_indent_color: Vec4, pub _line_geometry: Vec<LineGeom>, pub _anim_select: Vec<AnimSelect>, pub _visible_lines: usize, pub _select_scroll: Option<SelectScroll>, pub _grid_select_corner: Option<TextPos>, pub _is_row_select: bool, pub _last_cursor_pos: TextPos, pub _anim_font_scale: f32, pub _line_largest_font: f32, pub _anim_folding: AnimFolding, pub _monospace_size: Vec2, pub _monospace_base: Vec2, pub _tokens_on_line: usize, pub _line_was_folded: bool, pub _final_fill_height: f32, pub _draw_cursors: DrawCursors, pub _draw_search: DrawCursors, pub _draw_messages: DrawCursors, pub _cursor_blink_timer: Timer, pub _cursor_blink_flipflop: f32, pub _highlight_visibility: f32, pub _last_tabs: usize, pub _newline_tabs: usize, pub _last_lag_mutation_id: u32, pub _line_number_glyphs: Vec<TextIns>,
}

Fields

component_id: ComponentIdview: ScrollViewgutter_bg: Backgroundcursor: Cursorcursor_row: Backgroundparen_pair: ColorBackgroundindent_lines: IndentLinesmessage_marker: ColorBackgroundsearch_marker: ColorBackgroundcursors: TextCursorSettext_area: Areatext_glyphs: Vec<TextIns>current_font_scale: f32open_font_scale: f32folded_font_scale: f32line_number_width: f32line_number_click_margin: f32draw_line_numbers: booltop_padding: f32cursor_blink_speed: f64_undo_id: u64highlight_area_on: boolmark_unmatched_parens: booldraw_cursor_row: boolsearch_markers_bypass: Vec<TextCursor>folding_depth: usizecolors: CodeEditorColorsread_only: boolmultiline: boolline_number_offset: usize_scroll_pos_on_load: Option<Vec2>_set_key_focus_on_load: bool_set_last_cursor: Option<((usize, usize), bool)>_line_number_chunk: Vec<char>_scroll_pos: Vec2_last_pointer_move: Option<Vec2>_paren_stack: Vec<ParenItem>_indent_stack: Vec<(Vec4, f32)>_indent_id_alloc: f32_indent_line_inst: Area_bg_inst: Option<InstanceRangeArea>_last_indent_color: Vec4_line_geometry: Vec<LineGeom>_anim_select: Vec<AnimSelect>_visible_lines: usize_select_scroll: Option<SelectScroll>_grid_select_corner: Option<TextPos>_is_row_select: bool_last_cursor_pos: TextPos_anim_font_scale: f32_line_largest_font: f32_anim_folding: AnimFolding_monospace_size: Vec2_monospace_base: Vec2_tokens_on_line: usize_line_was_folded: bool_final_fill_height: f32_draw_cursors: DrawCursors_draw_search: DrawCursors_draw_messages: DrawCursors_cursor_blink_timer: Timer_cursor_blink_flipflop: f32_highlight_visibility: f32_last_tabs: usize_newline_tabs: usize_last_lag_mutation_id: u32_line_number_glyphs: Vec<TextIns>

Implementations

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.