[−][src]Struct makepad_widget::TextEditor
Fields
view: ScrollView
view_layout: Layout
bg: Quad
gutter_bg: Quad
cursor: Quad
selection: Quad
token_highlight: Quad
cursor_row: Quad
paren_pair: Quad
indent_lines: Quad
shadow: ScrollShadow
message_marker: Quad
text: Text
line_number_text: Text
cursors: TextCursorSet
open_font_scale: f32
folded_font_scale: f32
line_number_width: f32
line_number_click_margin: f32
draw_line_numbers: bool
top_padding: f32
cursor_blink_speed: f64
_undo_id: u64
highlight_area_on: bool
mark_unmatched_parens: bool
draw_cursor_row: bool
folding_depth: usize
colors: CodeEditorColors
read_only: bool
multiline: bool
_scroll_pos_on_load: Option<Vec2>
_jump_to_offset: bool
_view_area: Area
_highlight_area: Area
_text_inst: Option<AlignedInstance>
_line_number_inst: Option<AlignedInstance>
_line_number_chunk: Vec<char>
_text_area: Area
_scroll_pos: Vec2
_last_finger_move: Option<Vec2>
_paren_stack: Vec<ParenItem>
_indent_stack: Vec<(Color, f32)>
_indent_id_alloc: f32
_indent_line_inst: Option<InstanceArea>
_bg_inst: Option<InstanceArea>
_last_indent_color: Color
_line_geometry: Vec<LineGeom>
_anim_select: Vec<AnimSelect>
_visible_lines: usize
_select_scroll: Option<SelectScroll>
_grid_select_corner: Option<TextPos>
_is_row_select: bool
_line_chunk: Vec<(f32, char)>
_highlight_selection: Vec<char>
_highlight_token: Vec<char>
_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
_cursor_area: Area
_highlight_visibility: f32
_last_tabs: usize
_newline_tabs: usize
_jump_to_offset_id: u64
_last_lag_mutation_id: u64
Methods
impl TextEditor
[src]
pub fn proto(cx: &mut Cx) -> Self
[src]
pub fn gutter_width() -> FloatId
[src]
pub fn padding_top() -> FloatId
[src]
pub fn shadow_size() -> FloatId
[src]
pub fn layout_bg() -> LayoutId
[src]
pub fn text_style_editor_text() -> TextStyleId
[src]
pub fn color_bg() -> ColorId
[src]
pub fn color_gutter_bg() -> ColorId
[src]
pub fn color_selection() -> ColorId
[src]
pub fn color_selection_defocus() -> ColorId
[src]
pub fn color_highlight() -> ColorId
[src]
pub fn color_cursor() -> ColorId
[src]
pub fn color_cursor_row() -> ColorId
[src]
pub fn color_indent_line_unknown() -> ColorId
[src]
pub fn color_indent_line_fn() -> ColorId
[src]
pub fn color_indent_line_typedef() -> ColorId
[src]
pub fn color_indent_line_looping() -> ColorId
[src]
pub fn color_indent_line_flow() -> ColorId
[src]
pub fn color_paren_pair_match() -> ColorId
[src]
pub fn color_paren_pair_fail() -> ColorId
[src]
pub fn color_marker_error() -> ColorId
[src]
pub fn color_marker_warning() -> ColorId
[src]
pub fn color_marker_log() -> ColorId
[src]
pub fn color_line_number_normal() -> ColorId
[src]
pub fn color_line_number_highlight() -> ColorId
[src]
pub fn color_whitespace() -> ColorId
[src]
pub fn color_keyword() -> ColorId
[src]
pub fn color_flow() -> ColorId
[src]
pub fn color_looping() -> ColorId
[src]
pub fn color_identifier() -> ColorId
[src]
pub fn color_call() -> ColorId
[src]
pub fn color_type_name() -> ColorId
[src]
pub fn color_theme_name() -> ColorId
[src]
pub fn color_string() -> ColorId
[src]
pub fn color_number() -> ColorId
[src]
pub fn color_comment() -> ColorId
[src]
pub fn color_doc_comment() -> ColorId
[src]
pub fn color_paren_d1() -> ColorId
[src]
pub fn color_paren_d2() -> ColorId
[src]
pub fn color_operator() -> ColorId
[src]
pub fn color_delimiter() -> ColorId
[src]
pub fn color_unexpected() -> ColorId
[src]
pub fn color_warning() -> ColorId
[src]
pub fn color_error() -> ColorId
[src]
pub fn color_defocus() -> ColorId
[src]
pub fn shader_bg() -> ShaderId
[src]
pub fn shader_indent_lines() -> ShaderId
[src]
pub fn shader_cursor() -> ShaderId
[src]
pub fn shader_selection() -> ShaderId
[src]
pub fn shader_paren_pair() -> ShaderId
[src]
pub fn shader_cursor_row() -> ShaderId
[src]
pub fn shader_token_highlight() -> ShaderId
[src]
pub fn shader_message_marker() -> ShaderId
[src]
pub fn instance_indent_id() -> InstanceFloat
[src]
pub fn uniform_indent_sel() -> UniformFloat
[src]
pub fn uniform_cursor_blink() -> UniformFloat
[src]
pub fn instance_select_prev_x() -> InstanceFloat
[src]
pub fn instance_select_prev_w() -> InstanceFloat
[src]
pub fn instance_select_next_x() -> InstanceFloat
[src]
pub fn instance_select_next_w() -> InstanceFloat
[src]
pub fn uniform_highlight_visible() -> UniformFloat
[src]
pub fn instance_shadow_dir() -> InstanceFloat
[src]
pub fn style(cx: &mut Cx, _opt: &StyleOptions)
[src]
pub fn apply_style(&mut self, cx: &mut Cx)
[src]
pub fn handle_text_editor(
&mut self,
cx: &mut Cx,
event: &mut Event,
text_buffer: &mut TextBuffer
) -> TextEditorEvent
[src]
&mut self,
cx: &mut Cx,
event: &mut Event,
text_buffer: &mut TextBuffer
) -> TextEditorEvent
pub fn has_key_focus(&self, cx: &Cx) -> bool
[src]
pub fn set_key_focus(&mut self, cx: &mut Cx)
[src]
pub fn begin_text_editor(
&mut self,
cx: &mut Cx,
text_buffer: &TextBuffer
) -> Result<(), ()>
[src]
&mut self,
cx: &mut Cx,
text_buffer: &TextBuffer
) -> Result<(), ()>
pub fn draw_chunk(
&mut self,
cx: &mut Cx,
token_chunks_index: usize,
flat_text: &Vec<char>,
token_chunk: &TokenChunk,
message_cursors: &Vec<TextCursor>
)
[src]
&mut self,
cx: &mut Cx,
token_chunks_index: usize,
flat_text: &Vec<char>,
token_chunk: &TokenChunk,
message_cursors: &Vec<TextCursor>
)
pub fn end_text_editor(&mut self, cx: &mut Cx, text_buffer: &TextBuffer)
[src]
Trait Implementations
impl Clone for TextEditor
[src]
fn clone(&self) -> TextEditor
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl Send for TextEditor
impl Sync for TextEditor
impl Unpin for TextEditor
impl UnwindSafe for TextEditor
impl RefUnwindSafe for TextEditor
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,