pub struct PositionedEvent {
pub bbox: BoundingBox,
pub layer: i32,
pub margin_v: i32,
pub margin_l: i32,
pub margin_r: i32,
pub alignment: u8,
pub priority: i32,
}Expand description
Positioned subtitle event
Fields§
§bbox: BoundingBoxBounding box of the event
layer: i32Layer number for z-order
margin_v: i32Vertical margin
margin_l: i32Left margin
margin_r: i32Right margin
alignment: u8Text alignment (1-9 numpad style)
priority: i32Priority for collision resolution (lower priority events can be moved)
Trait Implementations§
Source§impl Clone for PositionedEvent
impl Clone for PositionedEvent
Source§fn clone(&self) -> PositionedEvent
fn clone(&self) -> PositionedEvent
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 moreAuto Trait Implementations§
impl Freeze for PositionedEvent
impl RefUnwindSafe for PositionedEvent
impl Send for PositionedEvent
impl Sync for PositionedEvent
impl Unpin for PositionedEvent
impl UnsafeUnpin for PositionedEvent
impl UnwindSafe for PositionedEvent
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more