[−][src]Struct makepad_widget::DrawCursors
Fields
head: usize
start: usize
end: usize
next_index: usize
left_top: Vec2
right_bottom: Vec2
last_w: f32
first: bool
empty: bool
cursors: 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]
&mut self,
last_cursor: usize,
offset: usize,
x: f32,
y: f32,
h: f32,
z: f32
)
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]
&mut self,
cursors: &Vec<TextCursor>,
offset: usize,
x: f32,
y: f32,
w: f32,
h: f32
)
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]
&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
Trait Implementations
impl Clone for DrawCursors
[src]
fn clone(&self) -> DrawCursors
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl Send for DrawCursors
impl Sync for DrawCursors
impl Unpin for DrawCursors
impl UnwindSafe for DrawCursors
impl RefUnwindSafe for DrawCursors
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,