reorganized file layout (part 1: moves and renames)
[org.ibex.core.git] / src / org / ibex / core / builtin / bevel.ibex
diff --git a/src/org/ibex/core/builtin/bevel.ibex b/src/org/ibex/core/builtin/bevel.ibex
new file mode 100644 (file)
index 0000000..370f44f
--- /dev/null
@@ -0,0 +1,26 @@
+<!-- Copyright 2002 Adam Megacz, see the COPYING file for licensing [LGPL] -->
+<ibex>
+
+    <redirect target="self"/>
+    <template thickness="2" depth="up" hpad="2" vpad="2">
+
+        var bar = 5;
+
+        _depth = function(d) {
+            arguments.cascade(d);
+            sync();
+        }
+
+        var sync = function() {
+            if (thickness > hpad) hpad = thickness;
+            if (thickness > vpad) vpad = thickness;
+
+            if (depth == "up") border = "org.ibex.builtin.bevel_2_up";
+            else if (depth == "down") border = "org.ibex.builtin.bevel_2_down";
+            else if (depth == "flat") border = "org.ibex.builtin.bevel_2_flat";
+            else border = null;
+        }
+
+    </template>
+
+</ibex>