From 3519e5669313ae4fa28774e81168c142954034c1 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 18 Nov 2024 19:17:52 +0100 Subject: many more document elements --- server/protocol/src/lib.rs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'server/protocol/src') diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index ca6e7c8c..2ef07015 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -359,6 +359,10 @@ pub enum DocumentElement { background: Option, es: Vec, }, + /// Implicit element layouting + Container { + es: Vec, + }, List { /// Should only contain par or text elements es: Vec, @@ -387,4 +391,25 @@ pub enum DocumentElement { value: bool, e: Box, }, + /// Makes the child element clickable that jumps to the label with the same id + Ref { + id: String, + e: Box, + }, + /// Declares a label + Label { + id: String, + e: Box, + }, + Align { + dir: DocumentAlign, + e: Box, + }, +} + +#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)] +#[serde(rename_all = "snake_case")] +pub enum DocumentAlign { + FlowEnd, + Bottom, } -- cgit v1.2.3-70-g09d2