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>,
}
Returns the “default value” for a type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,