[−][src]Struct makepad_widget::TextCursor
Fields
head: usize
tail: usize
max: usize
Methods
impl TextCursor
[src]
pub fn has_selection(&self) -> bool
[src]
pub fn order(&self) -> (usize, usize)
[src]
pub fn clamp_range(&mut self, range: &Option<(usize, usize)>)
[src]
pub fn delta(&self, delta: isize) -> (usize, usize)
[src]
pub fn collapse(&mut self, start: usize, end: usize, new_len: usize) -> isize
[src]
pub fn calc_max(
&mut self,
text_buffer: &TextBuffer,
old: (TextPos, usize)
) -> (TextPos, usize)
[src]
&mut self,
text_buffer: &TextBuffer,
old: (TextPos, usize)
) -> (TextPos, usize)
pub fn move_home(&mut self, text_buffer: &TextBuffer)
[src]
pub fn move_end(&mut self, text_buffer: &TextBuffer)
[src]
pub fn move_left(&mut self, char_count: usize, _text_buffer: &TextBuffer)
[src]
pub fn move_right(
&mut self,
char_count: usize,
total_char_count: usize,
_text_buffer: &TextBuffer
)
[src]
&mut self,
char_count: usize,
total_char_count: usize,
_text_buffer: &TextBuffer
)
pub fn move_up(&mut self, line_count: usize, text_buffer: &TextBuffer)
[src]
pub fn move_down(
&mut self,
line_count: usize,
total_char_count: usize,
text_buffer: &TextBuffer
)
[src]
&mut self,
line_count: usize,
total_char_count: usize,
text_buffer: &TextBuffer
)
Trait Implementations
impl Clone for TextCursor
[src]
fn clone(&self) -> TextCursor
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<TextCursor> for TextCursor
[src]
fn eq(&self, other: &TextCursor) -> bool
[src]
fn ne(&self, other: &TextCursor) -> bool
[src]
impl Debug for TextCursor
[src]
impl StructuralPartialEq for TextCursor
[src]
Auto Trait Implementations
impl Send for TextCursor
impl Sync for TextCursor
impl Unpin for TextCursor
impl UnwindSafe for TextCursor
impl RefUnwindSafe for TextCursor
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,