1use crate::schema::{DefaultPropVal, NodeTypeSchema, PropHint, PropSchema};
6
7pub static SCHEMA: NodeTypeSchema = NodeTypeSchema {
8 type_name: "Label",
9 description: "Draws text centered on its global position.",
10 inherits: Some("Control"),
11 abstract_class: false,
12 props: PROPS,
13};
14
15pub static PROPS: &[PropSchema] = &[PropSchema {
16 key: "text",
17 label: "Text",
18 doc: "The string to draw. Empty text draws nothing.",
19 default_value: DefaultPropVal::Str(""),
20 hint: PropHint::Text,
21 read_only: false,
22}];