pub struct InlineTextLayout {
pub lines: Vec<InlineTextLine>,
}
Fields§
§lines: Vec<InlineTextLine>
Implementations§
Source§impl InlineTextLayout
impl InlineTextLayout
pub fn get_leading(&self) -> f32
pub fn get_trailing(&self) -> f32
pub const fn new(lines: Vec<InlineTextLine>) -> Self
pub fn get_bounds(&self) -> LayoutRect
pub fn get_children_horizontal_diff_to_right_edge( &self, parent: &LayoutRect, ) -> Vec<f32>
Sourcepub fn align_children_horizontal(
&mut self,
horizontal_alignment: StyleTextAlignmentHorz,
)
pub fn align_children_horizontal( &mut self, horizontal_alignment: StyleTextAlignmentHorz, )
Align the lines horizontal to their bounding box
Sourcepub fn align_children_vertical_in_parent_bounds(
&mut self,
parent_size: &LayoutSize,
vertical_alignment: StyleTextAlignmentVert,
)
pub fn align_children_vertical_in_parent_bounds( &mut self, parent_size: &LayoutSize, vertical_alignment: StyleTextAlignmentVert, )
Align the lines vertical to their parents container
Trait Implementations§
Source§impl Clone for InlineTextLayout
impl Clone for InlineTextLayout
Source§fn clone(&self) -> InlineTextLayout
fn clone(&self) -> InlineTextLayout
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 InlineTextLayout
impl Debug for InlineTextLayout
Source§impl PartialEq for InlineTextLayout
impl PartialEq for InlineTextLayout
Source§impl PartialOrd for InlineTextLayout
impl PartialOrd for InlineTextLayout
impl StructuralPartialEq for InlineTextLayout
Auto Trait Implementations§
impl Freeze for InlineTextLayout
impl RefUnwindSafe for InlineTextLayout
impl Send for InlineTextLayout
impl Sync for InlineTextLayout
impl Unpin for InlineTextLayout
impl UnwindSafe for InlineTextLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)