pub struct SSAEvent {
pub layer: u32,
pub start: Time,
pub end: Time,
pub style: String,
pub name: String,
pub margin_l: f32,
pub margin_r: f32,
pub margin_v: f32,
pub effect: String,
pub text: String,
pub line_type: SSAEventLineType,
}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: u32Subtitles having different layer number will be ignored during the collusion detection. Higher numbered layers will be drawn over the lower numbered.
start: TimeStart time of the line being displayed.
end: TimeEnd 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.
margin_l: 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.
margin_r: 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.
margin_v: 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.
text: StringThe line’s text.
line_type: SSAEventLineType