pub struct LayoutOptions {
pub origin: FlowPoint,
pub line_height: i32,
pub spacing: TextSpacing,
pub width: Option<i32>,
pub alignment: Alignment,
pub direction: Direction,
pub max_lines: usize,
pub overflow: Overflow,
}Fields§
§origin: FlowPoint§line_height: i32§spacing: TextSpacing§width: Option<i32>§alignment: Alignment§direction: Direction§max_lines: usize§overflow: OverflowImplementations§
Source§impl LayoutOptions
impl LayoutOptions
pub const fn new(line_height: i32) -> Self
pub const fn with_origin(self, origin: FlowPoint) -> Self
pub const fn with_spacing(self, spacing: TextSpacing) -> Self
pub const fn with_width(self, width: i32) -> Self
pub const fn with_alignment(self, alignment: Alignment) -> Self
pub const fn with_direction(self, direction: Direction) -> Self
pub const fn with_max_lines(self, max_lines: usize) -> Self
pub const fn with_overflow(self, overflow: Overflow) -> Self
Trait Implementations§
Source§impl Clone for LayoutOptions
impl Clone for LayoutOptions
Source§fn clone(&self) -> LayoutOptions
fn clone(&self) -> LayoutOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LayoutOptions
Source§impl Debug for LayoutOptions
impl Debug for LayoutOptions
impl Eq for LayoutOptions
Source§impl PartialEq for LayoutOptions
impl PartialEq for LayoutOptions
impl StructuralPartialEq for LayoutOptions
Auto Trait Implementations§
impl Freeze for LayoutOptions
impl RefUnwindSafe for LayoutOptions
impl Send for LayoutOptions
impl Sync for LayoutOptions
impl Unpin for LayoutOptions
impl UnsafeUnpin for LayoutOptions
impl UnwindSafe for LayoutOptions
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