pub struct DisplayFlags {
pub disable_auto_scale: bool,
pub use_movie_background_color: bool,
pub scroll_in: bool,
pub scroll_out: bool,
pub horizontal_scroll: bool,
pub reverse_scroll: bool,
pub continuous_scroll: bool,
pub drop_shadow: bool,
pub anti_alias: bool,
pub key_text: bool,
}Fields§
§disable_auto_scale: boolReflow the text instead of scaling when the track is scaled.
use_movie_background_color: boolIgnore the background color field in the text sample description and use the movie’s background color instead.
scroll_in: boolScroll the text until the last of the text is in view.
scroll_out: boolScroll the text until the last of the text is gone.
horizontal_scroll: boolScroll the text horizontally when set; otherwise, scroll the text vertically.
reverse_scroll: boolScroll down (if scrolling vertically) or backward (if scrolling horizontally)
Note: Horizontal scrolling also depends upon text justification.
continuous_scroll: boolDisplay new samples by scrolling out the old ones.
drop_shadow: boolDisplay the text with a drop shadow.
anti_alias: boolUse anti-aliasing when drawing text.
key_text: boolDo not display the background color, so that the text overlay background tracks.
Trait Implementations§
Source§impl Clone for DisplayFlags
impl Clone for DisplayFlags
Source§fn clone(&self) -> DisplayFlags
fn clone(&self) -> DisplayFlags
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 DisplayFlags
impl Debug for DisplayFlags
Source§impl Default for DisplayFlags
impl Default for DisplayFlags
Source§fn default() -> DisplayFlags
fn default() -> DisplayFlags
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DisplayFlags
impl RefUnwindSafe for DisplayFlags
impl Send for DisplayFlags
impl Sync for DisplayFlags
impl Unpin for DisplayFlags
impl UnsafeUnpin for DisplayFlags
impl UnwindSafe for DisplayFlags
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