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: 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>
Implementations§
Source§impl DrawCursors
impl DrawCursors
pub fn new() -> DrawCursors
pub fn term(&mut self, cursors: &Vec<TextCursor>)
pub fn set_next(&mut self, cursors: &Vec<TextCursor>) -> bool
pub fn emit_cursor(&mut self, x: f32, y: f32, h: f32, z: f32)
pub fn emit_selection(&mut self)
pub fn emit_selection_new_line(&mut self)
pub fn process_cursor( &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)
pub fn process_newline(&mut self)
pub fn mark_text_select_only( &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
Trait Implementations§
Source§impl Clone for DrawCursors
impl Clone for DrawCursors
Source§fn clone(&self) -> DrawCursors
fn clone(&self) -> DrawCursors
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DrawCursors
impl RefUnwindSafe for DrawCursors
impl Send for DrawCursors
impl Sync for DrawCursors
impl Unpin for DrawCursors
impl UnwindSafe for DrawCursors
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more