animate/runtime/lottie/model/
marker.rs1use crate::runtime::lottie::LottieComposition;
2
3pub struct Marker {
4 composition: LottieComposition,
5 name: String,
6 start_frame: f64,
7 duration_frames: f64,
8}
9
10impl Marker {
11 pub fn new(
12 composition: LottieComposition,
13 name: String,
14 start_frame: f64,
15 duration_frames: f64,
16 ) -> Self {
17 Self {
18 composition,
19 name,
20 start_frame,
21 duration_frames,
22 }
23 }
24
25 fn matches_name(&self, name: String) -> bool {
26 self.name.to_lowercase() == name.to_lowercase()
27 }
28
29 fn get_start(&self) -> f64 {
30 unimplemented!()
31 }
32
33 fn get_end(&self) -> f64 {
34 unimplemented!()
35 }
36}