platform::timeline
This commit is contained in:
parent
c0de520811
commit
6e85b7fa35
16 changed files with 157 additions and 217 deletions
|
@ -1 +1,25 @@
|
|||
use moonlight::*;
|
||||
|
||||
pub mod wellen_helpers;
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[serde(crate = "serde")]
|
||||
pub struct Timeline {
|
||||
pub blocks: Vec<TimelineBlock>
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[serde(crate = "serde")]
|
||||
pub struct TimelineBlock {
|
||||
pub x: u32,
|
||||
pub width: u32,
|
||||
pub label: Option<TimeLineBlockLabel>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[serde(crate = "serde")]
|
||||
pub struct TimeLineBlockLabel {
|
||||
pub text: String,
|
||||
pub x: u32,
|
||||
pub y: u32,
|
||||
}
|
||||
|
|
Reference in a new issue