[][src]Struct libass_sys::ASS_OverrideBits

#[repr(transparent)]
pub struct ASS_OverrideBits(pub u32);

\brief Style override options. See ass_set_selective_style_override_enabled() for details.

Methods

impl ASS_OverrideBits[src]

pub const ASS_OVERRIDE_DEFAULT: ASS_OverrideBits[src]

Default mode (with no other bits set). All selective override features as well as the style set with ass_set_selective_style_override() are disabled, but traditional overrides like ass_set_font_scale() are applied unconditionally.

impl ASS_OverrideBits[src]

pub const ASS_OVERRIDE_BIT_STYLE: ASS_OverrideBits[src]

Apply the style as set with ass_set_selective_style_override() on events which look like dialogue. Other style overrides are also applied this way, except ass_set_font_scale(). How ass_set_font_scale() is applied depends on the ASS_OVERRIDE_BIT_SELECTIVE_FONT_SCALE flag.

This is equivalent to setting all of the following bits:

ASS_OVERRIDE_BIT_FONT_NAME ASS_OVERRIDE_BIT_FONT_SIZE_FIELDS ASS_OVERRIDE_BIT_COLORS ASS_OVERRIDE_BIT_BORDER ASS_OVERRIDE_BIT_ATTRIBUTES

impl ASS_OverrideBits[src]

pub const ASS_OVERRIDE_BIT_SELECTIVE_FONT_SCALE: ASS_OverrideBits[src]

Apply ass_set_font_scale() only on events which look like dialogue. If not set, the font scale is applied to all events. (The behavior and name of this flag are unintuitive, but exist for compatibility)

impl ASS_OverrideBits[src]

pub const ASS_OVERRIDE_BIT_FONT_SIZE: ASS_OverrideBits[src]

Old alias for ASS_OVERRIDE_BIT_SELECTIVE_FONT_SCALE. Deprecated. Do not use.

impl ASS_OverrideBits[src]

pub const ASS_OVERRIDE_BIT_FONT_SIZE_FIELDS: ASS_OverrideBits[src]

On dialogue events override: FontSize, Spacing, Blur, ScaleX, ScaleY

impl ASS_OverrideBits[src]

pub const ASS_OVERRIDE_BIT_FONT_NAME: ASS_OverrideBits[src]

On dialogue events override: FontName, treat_fontname_as_pattern

impl ASS_OverrideBits[src]

pub const ASS_OVERRIDE_BIT_COLORS: ASS_OverrideBits[src]

On dialogue events override: PrimaryColour, SecondaryColour, OutlineColour, BackColour

impl ASS_OverrideBits[src]

pub const ASS_OVERRIDE_BIT_ATTRIBUTES: ASS_OverrideBits[src]

On dialogue events override: Bold, Italic, Underline, StrikeOut

impl ASS_OverrideBits[src]

pub const ASS_OVERRIDE_BIT_BORDER: ASS_OverrideBits[src]

On dialogue events override: BorderStyle, Outline, Shadow

impl ASS_OverrideBits[src]

pub const ASS_OVERRIDE_BIT_ALIGNMENT: ASS_OverrideBits[src]

On dialogue events override: Alignment

impl ASS_OverrideBits[src]

pub const ASS_OVERRIDE_BIT_MARGINS: ASS_OverrideBits[src]

On dialogue events override: MarginL, MarginR, MarginV

impl ASS_OverrideBits[src]

pub const ASS_OVERRIDE_FULL_STYLE: ASS_OverrideBits[src]

Unconditionally replace all fields of all styles with the one provided with ass_set_selective_style_override(). Does not apply ASS_OVERRIDE_BIT_SELECTIVE_FONT_SCALE. Add ASS_OVERRIDE_BIT_FONT_SIZE_FIELDS and ASS_OVERRIDE_BIT_BORDER if you want FontSize, Spacing, Outline, Shadow to be scaled to the script resolution given by the ASS_Track.

impl ASS_OverrideBits[src]

pub const ASS_OVERRIDE_BIT_JUSTIFY: ASS_OverrideBits[src]

On dialogue events override: Justify

Trait Implementations

impl PartialEq<ASS_OverrideBits> for ASS_OverrideBits[src]

impl Copy for ASS_OverrideBits[src]

impl Eq for ASS_OverrideBits[src]

impl Clone for ASS_OverrideBits[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Hash for ASS_OverrideBits[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl BitAnd<ASS_OverrideBits> for ASS_OverrideBits[src]

type Output = Self

The resulting type after applying the & operator.

impl BitOr<ASS_OverrideBits> for ASS_OverrideBits[src]

type Output = Self

The resulting type after applying the | operator.

impl BitAndAssign<ASS_OverrideBits> for ASS_OverrideBits[src]

impl BitOrAssign<ASS_OverrideBits> for ASS_OverrideBits[src]

impl Debug for ASS_OverrideBits[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]