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: u32
Subtitles having different layer number will be ignored during the collusion detection. Higher numbered layers will be drawn over the lower numbered.
start: Time
Start time of the line being displayed.
end: Time
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.
margin_l: 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.
margin_r: 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.
margin_v: 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.
text: String
The line’s text.
line_type: SSAEventLineType