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: i32
Defaults to 0
line_start: Time
Time Value representing the start time of the line being displayed
line_end: Time
Time Value representing the end time of the line being displayed
style: String
String value relating to an SSAStyle
name: String
Generally this is used for “speaker name”, in most cases it’s an unused field
lmargin: f32
SSA/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: f32
SSA/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: f32
SSA/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: String
SSA Documentation describes it, it’s here, no idea what it does, but you can write it if you wish
linetype: String
SSA Documentation describes it, it’s here, no idea what it does, but you can write it if you wish
line_text: String
The line’s text.