SML Attributes

2008 Oct 04


NAME = string must be unique (default name given by system)

STATE = type:initial_value

TIME = CLOCK | EVENT sequential pickets of CLOCK time

LAYER = uchar 0 is front, 255 is back

HALIGN = LEFT | CENTER | RIGHT

VALIGN = TOP | CENTER | BOTTOM

STRETCH = FIXED | FIX_W | FIX_H | RATIO | FREE
   fixed : means size does not change (clips contents),
   fix_w : means width is constant but height stetches with contents,
   fix_h : means height is constant but width stetches with contents,
   ratio : means height width ratio is constant but stetches with contents,
   free : means stretches with contents (or by user or param mapper).

STRETCHFROM = STRETCH_FROM_VALUE
STRETCH_FROM_VALUE
Full Abreviations
BOTTOM BOT, B
BOTTOMLEFT BOTLT, BL
BOTTOMRIGHT BOTRT, BR
CENTER CTR, C
LEFT LT, L
RIGHT RT, R
TOP TOP, T
TOPLEFT TLT, TL
TOPRIGHT TRT, TR
      T
TL +--+--+ TR
   |     |
 L +  C  + R
   |     |
BL +--+--+ BR
      B
STRETCH_FROM_VALUE only applies if STRETCH is not FIXED
FILL
   WIDTH = uint (must be power of 2)
   HEIGHT = uint (must be power of 2)
   PATTERN = 
   PIX (W & H must be pow of 2)
BORDER (closed line without end objects)
SHADOW = YES | NO default
   COLOR = ...
   PATTERN = ...
   XOFF=int XUNITS = % | PIXELS
   YOFF=int YUNITS = % | PIXELS

   XOFF, YOFF shadow default is 10%
<VERTEX
   RADIUS = uint default is 0
   UNITS = % of min edge, default |
           PIXELS |
           IN |
           CM |
           FT |
           KM |
           any
   >
</VERTEX>
A vertex of radius 0 has straight lines meeting, anything else has curved corners.

2005-2008