pub struct LayoutLine(/* private fields */);
Implementations§
Source§impl LayoutLine
impl LayoutLine
pub fn get_extents(&self) -> (Rectangle, Rectangle)
pub fn get_pixel_extents(&self) -> (Rectangle, Rectangle)
pub fn get_x_ranges(&self, start_index: i32, end_index: i32) -> Vec<i32>
pub fn index_to_x(&self, index_: i32, trailing: bool) -> i32
pub fn x_to_index(&self, x_pos: i32) -> Option<(i32, i32)>
Trait Implementations§
Source§impl Clone for LayoutLine
impl Clone for LayoutLine
Source§fn clone(&self) -> LayoutLine
fn clone(&self) -> LayoutLine
Returns a copy 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 moreSource§impl Debug for LayoutLine
impl Debug for LayoutLine
Source§impl Hash for LayoutLine
impl Hash for LayoutLine
Source§impl Ord for LayoutLine
impl Ord for LayoutLine
Source§fn cmp(&self, other: &LayoutLine) -> Ordering
fn cmp(&self, other: &LayoutLine) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LayoutLine
impl PartialEq for LayoutLine
Source§impl PartialOrd for LayoutLine
impl PartialOrd for LayoutLine
Source§impl StaticType for LayoutLine
impl StaticType for LayoutLine
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for LayoutLine
impl StructuralPartialEq for LayoutLine
Auto Trait Implementations§
impl Freeze for LayoutLine
impl RefUnwindSafe for LayoutLine
impl !Send for LayoutLine
impl !Sync for LayoutLine
impl Unpin for LayoutLine
impl UnwindSafe for LayoutLine
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