space.anubis 1019 Bytes

                                  The Anubis Project. 
   
                              A Widget System (4th version). 
                                   The 'space' widget.
   
                             Copyright (c) Alain Proute' 2005. 
   
   
   Authors: Alain Proute'

   
read widget.anubis   
   
public define Widget   
   space
     (
       Word32    width,
       Word32    height, 
       RGB      color
     ).
   
   
   
   --- That's all for the public part ! --------------------------------------------------
   
public define Widget
   space
     (
       Word32    width,
       Word32    height,
       RGB      color
     ) =
   with sc = stretch_cap(width,height,width,height), 
   create_widget
     (
       (One u) |-> sc, 
       (Word32 w, Word32 h) |-> unique, 
       (One u) |-> (width,height), 
       (WidgetDrawToolBox dtb) |-> draw(dtb)(rect(0,0,width,height),color),
       (WidgetEventToolBox etb, WidgetEvent e) |-> ignored,
       (One u) |-> []
     ).