-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfl:flex.json
48 lines (48 loc) · 1.51 KB
/
fl:flex.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"$schema": "../../commons/schemas/json-component.schema.json",
"description": "Flex container",
"exposed": true,
"type": "node",
"headers": ["FL/Fl_Flex.H"],
"extends": "fl:group",
"codegen": { "extends": "ui<Fl_Flex>" },
"fields": {
"layout.type": {
"type": "enum",
"subtype": "fl_flex_layout",
"description": "Set to `row` or `column` (default)",
"setter": "/*TODO*/"
},
"layout.gap": {
"type": "scalar-1",
"description": "Gap between elements in this flex",
"setter": "w.gap(computed[0]);"
},
"margin": {
"type": "scalar-4",
"description": "Margin left top right bottom",
"setter": "w.margin(computed[0],computed[1],computed[2],computed[3]);"
},
"margin.left": {
"type": "scalar-1",
"setter": "int tmp[4];w.margin(tmp,tmp+1,tmp+2,tmp+3);w.margin(computed[0],tmp[1],tmp[2],tmp[3]);"
},
"margin.top": {
"type": "scalar-1",
"setter": "int tmp[4];w.margin(tmp,tmp+1,tmp+2,tmp+3);w.margin(tmp[0],computed[0],tmp[2],tmp[3]);"
},
"margin.right": {
"type": "scalar-1",
"setter": "int tmp[4];w.margin(tmp,tmp+1,tmp+2,tmp+3);w.margin(tmp[0],tmp[1],computed[0],tmp[3]);"
},
"margin.bottom": {
"type": "scalar-1",
"setter": "int tmp[4];w.margin(tmp,tmp+1,tmp+2,tmp+3);w.margin(tmp[0],tmp[1],tmp[2],computed[0]);"
},
"layout.spacing": {
"type": "scalar-1",
"description": "Gap between elements in this flex",
"setter": "w.spacing(computed[0]);"
}
}
}