pub struct AssStyle {
Show 23 fields pub name: String, pub fontname: String, pub fontsize: i64, pub primary_colour: String, pub secondary_colour: String, pub outline_colour: String, pub back_colour: String, pub bold: bool, pub italic: bool, pub underline: bool, pub strike_out: bool, pub scale_x: i64, pub scale_y: i64, pub spacing: i64, pub angle: f64, pub border_style: i64, pub outline: i64, pub shadow: i64, pub alignment: i64, pub margin_l: i64, pub margin_r: i64, pub margin_v: i64, pub encoding: i64,
}
Expand description

Style in a .ass file

Fields§

§name: String

Name of style

§fontname: String

Name of font used to display text

§fontsize: i64

Font size of text

§primary_colour: String

Colour that text will be rendered as

§secondary_colour: String

Colour that text will be rendered as in the case it is moved due to a collision

§outline_colour: String

Colour that text will be rendered as in the case it is moved due to a collision with text that appears in the secondary colour

§back_colour: String

Colour of text shadow or text outline

§bold: bool

Whether text is bolded

§italic: bool

Whether text is italicised

§underline: bool

Whether text is underlined

§strike_out: bool

Whether text is stricken out

§scale_x: i64

Width scale of text

§scale_y: i64

Height scale of text

§spacing: i64

Font spacing of text

§angle: f64

Number of degrees to rotate text by

§border_style: i64

Style of text border

§outline: i64

Width of text outline

§shadow: i64

Depth of text shadow

§alignment: i64

Alignment of text on screen

§margin_l: i64

Left margin in pixels

§margin_r: i64

Right margin in pixels

§margin_v: i64

Vertical margin in pixels

§encoding: i64

Encoding of text represented as a number

Trait Implementations§

source§

impl Debug for AssStyle

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for AssStyle

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.