1 <!-- Copyleft 2004 - see COPYING for details [LGPL] -->
3 <ibex xmlns:lib="ibex.lib">
6 // TODO: move these boxes into static so they're shared amongst text
7 // widgets. as the gains from this are minimal and the static
8 // selection stuff will require quite a bit of fancy footwork,
9 // this is put off until Nitrogen core is *at least* as fast as
11 <ui:box id="cur" packed="false" width="1" x="0" y="0" pos="0" fill="black" align="topleft" />
12 <ui:box id="sel" packed="false" shrink="true" pos1="0" pos2="0" fill="blue" textcolor="white" align="topleft" />
17 font ++= function(v) { $sel.font = v; }
18 fontsize ++= function(v) { $sel.fontsize = v; }
20 // TODO: move to static (later); see above note
21 ibex.thread = function() {while (true) { if (focused) cur.visible = !cur.visible; ibex.thread.sleep(800); } }