bindings: Initial commit of C & C++ bindings prototype
[sdk] / autoLayout / base.ec
1 import "autoLayout"
2
3 class Title : Element { maxSize = { 1430, 0 }, font = { "Verdana", 60, bold = true }, fgColor = textColor; };
4 class CCol  : Col { hAlignment = center, vAlignment = center; };
5 class BMBar : Bar { maxSize.h = 60; };
6 class MBar  : Bar { maxSize.h = 30; };
7 define textColor = 0xFF2F3A3E;
8 class Header : Element { font = { "Verdana", 50, bold = true }; fgColor = textColor; }
9 class SmallHeader : Element { font = { "Verdana", 30, bold = true }; fgColor = textColor; }
10 class Bullet : Element
11 {
12    fgColor = textColor;
13    property const String caption
14    {
15       set { text.caption = value; }
16       get { return text.caption; }
17    }
18    Element bullet { this, caption = "▪ ", fgColor = 0xFF104A4A; };
19    Col text { this, fgColor = textColor; };
20 }
21
22 class BaseSlide : CCol
23 {
24    bitmap = { "graphics/bg1.png" };
25    bitmapTint = { 41, white };
26    bgColor = 0x59C6D2E3;
27    font = { "Verdana", 32 };
28 }
29
30 class CodeBlock : CCol
31 {
32    selfHAlignment = center, selfVAlignment = center;
33    vAlignment = center;
34    maxSize = { };
35    //bgColor = { 180, 0x094B55 };
36    bgColor = { 220, black };
37    font = { "Consolas", 30 };
38
39    // Since we don't have padding yet
40    CCol text { this, fgColor = lime /*white*/; maxSize = { 1.0, 1.0 }; /*margin = { 20, 20, 20, 20 }*/ };
41    property const String caption
42    {
43       set { text.caption = value; }
44       get { return text.caption; }
45    }
46 }