pub struct SSAEvent {
pub layer: i32,
pub line_start: Time,
pub line_end: Time,
pub style: String,
pub name: String,
pub lmargin: f32,
pub rmargin: f32,
pub vmargin: f32,
pub effect: String,
pub linetype: String,
pub line_text: String,
}Expand description
Describes each individual element of an Event line in the .ass format
Each element can be individually changed.
Because of its comma separated values in the event line, the timestamp looks like
00:00:20.00 and it can be represented using Time::to_ass_string
Fields§
§layer: i32Defaults to 0
line_start: TimeTime Value representing the start time of the line being displayed
line_end: TimeTime Value representing the end time of the line being displayed
style: StringString value relating to an SSAStyle
name: StringGenerally this is used for “speaker name”, in most cases it’s an unused field
lmargin: f32SSA/ASS documentation describes the l/r/v margins as being floats so…here goes
In practice it gets represented as 0020 and similar {:0>4} patterns.
rmargin: f32SSA/ASS documentation describes the l/r/v margins as being floats so…here goes
In practice it gets represented as 0020 and similar {:0>4} patterns.
vmargin: f32SSA/ASS documentation describes the l/r/v margins as being floats so…here goes
In practice it gets represented as 0020 and similar {:0>4} patterns.
effect: StringSSA Documentation describes it, it’s here, no idea what it does, but you can write it if you wish
linetype: StringSSA Documentation describes it, it’s here, no idea what it does, but you can write it if you wish
line_text: StringThe line’s text.