#[non_exhaustive]pub struct AnimationFade {
pub fade_type: FadeType,
pub xy: Option<NormalizedCoordinate>,
pub start_time_offset: Option<Duration>,
pub end_time_offset: Option<Duration>,
/* private fields */
}
Expand description
Display overlay object with fade animation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.fade_type: FadeType
Required. Type of fade animation: FADE_IN
or FADE_OUT
.
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 the fade animation, in seconds. Default: 0
end_time_offset: Option<Duration>
The time to end the fade animation, in seconds. Default:
start_time_offset
+ 1s
Implementations§
Source§impl AnimationFade
impl AnimationFade
pub fn new() -> Self
Sourcepub fn set_fade_type<T: Into<FadeType>>(self, v: T) -> Self
pub fn set_fade_type<T: Into<FadeType>>(self, v: T) -> Self
Sets the value of fade_type.
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.
Sourcepub fn set_end_time_offset<T>(self, v: T) -> Self
pub fn set_end_time_offset<T>(self, v: T) -> Self
Sets the value of end_time_offset.
Sourcepub fn set_or_clear_end_time_offset<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time_offset<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time_offset.
Trait Implementations§
Source§impl Clone for AnimationFade
impl Clone for AnimationFade
Source§fn clone(&self) -> AnimationFade
fn clone(&self) -> AnimationFade
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more