Struct rsubs_lib::ssa::SSAStyle

source ·
pub struct SSAStyle {
Show 25 fields pub name: String, pub fontname: String, pub fontsize: f32, pub firstcolor: ColorType, pub secondcolor: ColorType, pub outlinecolor: ColorType, pub backgroundcolor: ColorType, pub bold: bool, pub italic: bool, pub unerline: bool, pub strikeout: bool, pub scalex: f32, pub scaley: f32, pub spacing: f32, pub angle: f32, pub borderstyle: i8, pub outline: f32, pub shadow: f32, pub alignment: Alignment, pub lmargin: i32, pub rmargin: i32, pub vmargin: i32, pub alpha: i32, pub encoding: i32, pub drawing: bool,
}
Expand description

SSAStyle describes each part of the Format: side of a .ssa or .ass subtitle.

It holds color::ColorType for handling colors and exposes parameters for every part of the SSA Style header.

Currently only supports .ass, more precisely ScriptType: V4.00+ and [V4+ Styles]

Fields§

§name: String§fontname: String§fontsize: f32§firstcolor: ColorType§secondcolor: ColorType§outlinecolor: ColorType§backgroundcolor: ColorType§bold: bool§italic: bool§unerline: bool§strikeout: bool§scalex: f32§scaley: f32§spacing: f32§angle: f32§borderstyle: i8§outline: f32§shadow: f32§alignment: Alignment§lmargin: i32§rmargin: i32§vmargin: i32§alpha: i32§encoding: i32§drawing: bool

Trait Implementations§

source§

impl Clone for SSAStyle

source§

fn clone(&self) -> SSAStyle

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SSAStyle

source§

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

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

impl Default for SSAStyle

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for SSAStyle

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for SSAStyle

source§

fn eq(&self, other: &SSAStyle) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for SSAStyle

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for SSAStyle

source§

impl StructuralPartialEq for SSAStyle

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,