[][src]Struct makepad_widget::DrawCursors

pub struct DrawCursors {
    pub head: usize,
    pub start: usize,
    pub end: usize,
    pub next_index: usize,
    pub left_top: Vec2,
    pub right_bottom: Vec2,
    pub last_w: f32,
    pub first: bool,
    pub empty: bool,
    pub cursors: Vec<CursorRect>,
    pub last_cursor: Option<usize>,
    pub selections: Vec<DrawSel>,
}

Fields

head: usizestart: usizeend: usizenext_index: usizeleft_top: Vec2right_bottom: Vec2last_w: f32first: boolempty: boolcursors: Vec<CursorRect>last_cursor: Option<usize>selections: Vec<DrawSel>

Methods

impl DrawCursors[src]

pub fn new() -> DrawCursors[src]

pub fn term(&mut self, cursors: &Vec<TextCursor>)[src]

pub fn set_next(&mut self, cursors: &Vec<TextCursor>) -> bool[src]

pub fn emit_cursor(&mut self, x: f32, y: f32, h: f32, z: f32)[src]

pub fn emit_selection(&mut self)[src]

pub fn emit_selection_new_line(&mut self)[src]

pub fn process_cursor(
    &mut self,
    last_cursor: usize,
    offset: usize,
    x: f32,
    y: f32,
    h: f32,
    z: f32
)
[src]

pub fn process_geom(&mut self, x: f32, y: f32, w: f32, h: f32)[src]

pub fn process_newline(&mut self)[src]

pub fn mark_text_select_only(
    &mut self,
    cursors: &Vec<TextCursor>,
    offset: usize,
    x: f32,
    y: f32,
    w: f32,
    h: f32
)
[src]

pub fn mark_text_with_cursor(
    &mut self,
    cursors: &Vec<TextCursor>,
    ch: char,
    offset: usize,
    x: f32,
    y: f32,
    w: f32,
    h: f32,
    z: f32,
    last_cursor: usize,
    mark_spaces: f32
) -> f32
[src]

Trait Implementations

impl Clone for DrawCursors[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]