pub struct LayoutEvent {Show 19 fields
pub event_index: usize,
pub style_index: usize,
pub text: String,
pub font_family: String,
pub font: FontMatch,
pub alignment: i32,
pub justify: i32,
pub margin_l: i32,
pub margin_r: i32,
pub margin_v: i32,
pub position: Option<(i32, i32)>,
pub movement: Option<ParsedMovement>,
pub fade: Option<ParsedFade>,
pub clip_rect: Option<Rect>,
pub vector_clip: Option<ParsedVectorClip>,
pub inverse_clip: bool,
pub wrap_style: Option<i32>,
pub origin: Option<(i32, i32)>,
pub lines: Vec<LayoutLine>,
}Fields§
§event_index: usize§style_index: usize§text: String§font_family: String§font: FontMatch§alignment: i32§justify: i32§margin_l: i32§margin_r: i32§margin_v: i32§position: Option<(i32, i32)>§movement: Option<ParsedMovement>§fade: Option<ParsedFade>§clip_rect: Option<Rect>§vector_clip: Option<ParsedVectorClip>§inverse_clip: bool§wrap_style: Option<i32>§origin: Option<(i32, i32)>§lines: Vec<LayoutLine>Trait Implementations§
Source§impl Clone for LayoutEvent
impl Clone for LayoutEvent
Source§fn clone(&self) -> LayoutEvent
fn clone(&self) -> LayoutEvent
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 moreSource§impl Debug for LayoutEvent
impl Debug for LayoutEvent
Source§impl Default for LayoutEvent
impl Default for LayoutEvent
Source§fn default() -> LayoutEvent
fn default() -> LayoutEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for LayoutEvent
impl PartialEq for LayoutEvent
Source§fn eq(&self, other: &LayoutEvent) -> bool
fn eq(&self, other: &LayoutEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LayoutEvent
Auto Trait Implementations§
impl Freeze for LayoutEvent
impl RefUnwindSafe for LayoutEvent
impl Send for LayoutEvent
impl Sync for LayoutEvent
impl Unpin for LayoutEvent
impl UnsafeUnpin for LayoutEvent
impl UnwindSafe for LayoutEvent
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