From dd7595a3475407a7fa96a97393bae8c5220e8762 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 4 Jan 2012 18:41:13 +1000 Subject: Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje. Note that embryo wont be used, but I'm not sure yet if you can build edje without it. --- libraries/edje/src/examples/box.edc | 142 ++++++++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 libraries/edje/src/examples/box.edc (limited to 'libraries/edje/src/examples/box.edc') diff --git a/libraries/edje/src/examples/box.edc b/libraries/edje/src/examples/box.edc new file mode 100644 index 0000000..79d04a8 --- /dev/null +++ b/libraries/edje/src/examples/box.edc @@ -0,0 +1,142 @@ +collections { + + group { + name: "example/group"; + + parts { + part { + name: "bg"; + type: RECT; + + description { + state: "default" 0.0; + color: 128 128 128 255; + rel1.offset: 20 20; + rel2.offset: -21 -21; + } + } + + part { + name: "example/title"; + type: TEXT; + + description { + state: "default" 0.0; + color: 0 0 0 255; + rel1 { + relative: 0.0 0.0; + offset: 0 0; + to: "bg"; + } + rel2 { + relative: 1.0 0.2; + offset: -1 -1; + to: "bg"; + } + text { + text: "Box Example"; + size: 16; + font: "sans"; + min: 1 1; + } + } + } + + part { + name: "example/box"; + type: BOX; + + description { + state: "default" 0.0; + + box { + layout: "horizontal_flow"; + padding: 2 2; + align: 0.5 0.5; + min: 1 1; + } + rel1 { + relative: 0.0 0.2; + offset: 0 0; + to: "bg"; + } + rel2 { + relative: 1.0 1.0; + offset: -1 -61; + to: "bg"; + } + } + } // example/box + } + } + + group { + name: "example/group2"; + + parts { + part { + name: "bg"; + type: RECT; + + description { + state: "default" 0.0; + color: 128 128 128 255; + rel1.offset: 20 20; + rel2.offset: -21 -21; + } + } + + part { + name: "example/title"; + type: TEXT; + + description { + state: "default" 0.0; + color: 0 0 0 255; + rel1 { + relative: 0.0 0.0; + offset: 0 0; + to: "bg"; + } + rel2 { + relative: 1.0 0.2; + offset: -1 -1; + to: "bg"; + } + text { + text: "Box Example 2"; + size: 16; + font: "sans"; + min: 1 1; + } + } + } + + part { + name: "example/box"; + type: BOX; + + description { + state: "default" 0.0; + + box { + layout: "custom_layout"; + padding: 2 2; + align: 0.5 0.5; + min: 1 1; + } + rel1 { + relative: 0.0 0.2; + offset: 0 0; + to: "bg"; + } + rel2 { + relative: 1.0 1.0; + offset: -1 -61; + to: "bg"; + } + } + } // example/box + } + } +} -- cgit v1.1