initial checkin
[org.ibex.widgets.git] / src / org / ibex / theme / base / border-img.t
1 <!-- Copyleft 2004 - see COPYING for details [LGPL] -->
2
3 <ibex>
4     <meta:doc>
5         Author: Charles Goodwin
6
7         TODO:
8             - make border accept values other than resources
9             - border-left/right/top/bottom
10             - take more than one argument to border like CSS
11     </meta:doc>
12
13     <ui:box rows="3" redirect="$content">
14
15         border ++= function(v) {
16             if (typeof(v) == "object") {
17                 $nw.fill = v["nw"];
18                 $nn.fill = v["nn"];
19                 $ne.fill = v["ne"];
20                 $ww.fill = v["ww"];
21                 $ee.fill = v["ee"];
22                 $sw.fill = v["sw"];
23                 $ss.fill = v["ss"];
24                 $se.fill = v["se"];
25             }
26             // border string
27             else {
28             }
29         }
30
31         // top row
32         <ui:box id="nw" shrink="true" />
33         <ui:box id="ww" hshrink="true" />
34         <ui:box id="sw" shrink="true" />
35
36         // middle row
37         <ui:box id="nn" vshrink="true" />
38         <ui:box id="content" />
39         <ui:box id="ss" vshrink="true" />
40
41         // bottom row
42         <ui:box id="ne" shrink="true" />
43         <ui:box id="ee" hshrink="true" />
44         <ui:box id="se" shrink="true" />
45         
46     </ui:box>
47 </ibex>