pub struct LabelLayout<'a> {
pub size: Size,
pub lines: Vec<LabelLine<'a>>,
}Expand description
The same line plan is used for intrinsic measurement and GPU painting.
Fields§
§size: Size§lines: Vec<LabelLine<'a>>Implementations§
Source§impl<'a> LabelLayout<'a>
impl<'a> LabelLayout<'a>
pub fn new( node: &'a Node, available: Size, advance: impl FnMut(&str) -> f32, ) -> Self
pub fn with_font_size( node: &'a Node, available: Size, size: f32, advance: impl FnMut(&str) -> f32, ) -> Self
pub fn in_direction( node: &'a Node, available: Size, size: f32, direction: Option<LayoutDirection>, advance: impl FnMut(&str) -> f32, ) -> Self
Auto Trait Implementations§
impl<'a> Forget for LabelLayout<'a>
impl<'a> Freeze for LabelLayout<'a>
impl<'a> Move for LabelLayout<'a>
impl<'a> RefUnwindSafe for LabelLayout<'a>
impl<'a> Send for LabelLayout<'a>
impl<'a> Sync for LabelLayout<'a>
impl<'a> Unpin for LabelLayout<'a>
impl<'a> UnsafeUnpin for LabelLayout<'a>
impl<'a> UnwindSafe for LabelLayout<'a>
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