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/drag.edc | 89 ++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 libraries/edje/src/examples/drag.edc (limited to 'libraries/edje/src/examples/drag.edc') diff --git a/libraries/edje/src/examples/drag.edc b/libraries/edje/src/examples/drag.edc new file mode 100644 index 0000000..b9247ec --- /dev/null +++ b/libraries/edje/src/examples/drag.edc @@ -0,0 +1,89 @@ +collections { + group { + name: "example/group"; + + min: 160 160; + + parts { + part { + name: "bg"; + type: RECT; + + mouse_events: 0; + + description { + state: "default" 0.0; + } + } // bg + + part { + name: "title"; + type: TEXT; + mouse_events: 0; + + 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: "Drag Example"; + size: 16; + font: "sans"; + min: 1 1; + } + } + } + + part { + name: "drag_area"; + type: RECT; + + mouse_events: 0; + + description { + state: "default" 0.0; + color: 0 0 0 255; + rel1 { + relative: 0.5 0.3; + offset: -5 0; + } + + rel2 { + relative: 0.5 0.9; + offset: 4 0; + } + } + } // drag_area + + part { + name: "example/knob"; + type: RECT; + + mouse_events: 1; + + dragable { + confine: "drag_area"; + x: 0 0 0; + y: 1 1 0; + } + + description { + state: "default" 0.0; + + color: 255 0 0 200; + + } + } // example/knob + + } + } +} -- cgit v1.1