pub struct LaidoutText {
pub text: Substr,
pub size_in_lpxs: Size<f32>,
pub rows: Vec<LaidoutRow>,
}Fields§
§text: Substr§size_in_lpxs: Size<f32>§rows: Vec<LaidoutRow>Implementations§
Source§impl LaidoutText
impl LaidoutText
pub fn cursor_to_position(&self, cursor: Cursor) -> CursorPosition
pub fn point_in_lpxs_to_cursor(&self, point_in_lpxs: Point<f32>) -> Cursor
pub fn position_to_cursor(&self, position: CursorPosition) -> Cursor
pub fn selection_rects_in_lpxs(&self, selection: Selection) -> Vec<Rect<f32>>
Trait Implementations§
Source§impl Clone for LaidoutText
impl Clone for LaidoutText
Source§fn clone(&self) -> LaidoutText
fn clone(&self) -> LaidoutText
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 LaidoutText
impl !RefUnwindSafe for LaidoutText
impl !Send for LaidoutText
impl !Sync for LaidoutText
impl Unpin for LaidoutText
impl !UnwindSafe for LaidoutText
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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