#[non_exhaustive]pub struct AnimationStatic {
pub xy: Option<NormalizedCoordinate>,
pub start_time_offset: Option<Duration>,
/* private fields */
}
Expand description
Display static overlay object.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.xy: Option<NormalizedCoordinate>
Normalized coordinates based on output video resolution. Valid
values: 0.0
–1.0
. xy
is the upper-left coordinate of the overlay
object. For example, use the x and y coordinates {0,0} to position the
top-left corner of the overlay animation in the top-left corner of the
output video.
start_time_offset: Option<Duration>
The time to start displaying the overlay object, in seconds. Default: 0
Implementations§
Source§impl AnimationStatic
impl AnimationStatic
pub fn new() -> Self
Sourcepub fn set_xy<T>(self, v: T) -> Selfwhere
T: Into<NormalizedCoordinate>,
pub fn set_xy<T>(self, v: T) -> Selfwhere
T: Into<NormalizedCoordinate>,
Sets the value of xy.
Sourcepub fn set_or_clear_xy<T>(self, v: Option<T>) -> Selfwhere
T: Into<NormalizedCoordinate>,
pub fn set_or_clear_xy<T>(self, v: Option<T>) -> Selfwhere
T: Into<NormalizedCoordinate>,
Sets or clears the value of xy.
Sourcepub fn set_start_time_offset<T>(self, v: T) -> Self
pub fn set_start_time_offset<T>(self, v: T) -> Self
Sets the value of start_time_offset.
Sourcepub fn set_or_clear_start_time_offset<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time_offset<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time_offset.
Trait Implementations§
Source§impl Clone for AnimationStatic
impl Clone for AnimationStatic
Source§fn clone(&self) -> AnimationStatic
fn clone(&self) -> AnimationStatic
Returns a duplicate 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 AnimationStatic
impl Debug for AnimationStatic
Source§impl Default for AnimationStatic
impl Default for AnimationStatic
Source§fn default() -> AnimationStatic
fn default() -> AnimationStatic
Returns the “default value” for a type. Read more
Source§impl Message for AnimationStatic
impl Message for AnimationStatic
Source§impl PartialEq for AnimationStatic
impl PartialEq for AnimationStatic
impl StructuralPartialEq for AnimationStatic
Auto Trait Implementations§
impl Freeze for AnimationStatic
impl RefUnwindSafe for AnimationStatic
impl Send for AnimationStatic
impl Sync for AnimationStatic
impl Unpin for AnimationStatic
impl UnwindSafe for AnimationStatic
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