[−][src]Struct egui::paint::PCursor
Paragraph Cursor
Fields
paragraph: usize
0 is first paragraph, and so on.
Note that a single paragraph can span multiple rows.
(a paragraph is text separated by \n
).
offset: usize
Character based (NOT bytes). It is fine if this points to something beyond the end of the current paragraph. When moving up/down it may again be within the next paragraph.
prefer_next_row: bool
If this cursors sits right at the border of a wrapped row break (NOT paragraph break) do we prefer the next row? This is almost always what you want, except for when explicitly clicking the end of a row or pressing the end key.
Trait Implementations
impl Clone for PCursor
[src]
impl Copy for PCursor
[src]
impl Debug for PCursor
[src]
impl Default for PCursor
[src]
impl PartialEq<PCursor> for PCursor
[src]
Two PCursor
s are considered equal if they refer to the same character boundary,
even if one prefers the start of the next row.
Auto Trait Implementations
impl RefUnwindSafe for PCursor
impl Send for PCursor
impl Sync for PCursor
impl Unpin for PCursor
impl UnwindSafe for PCursor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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.
pub fn to_owned(&self) -> T
[src]
pub 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 = Infallible
The type returned in the event of a conversion error.
pub 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>,