widget
methods: ¶pointer to parent widget
pointer to actor
Widget name for debugging and searching
widget x coordinate
widget y coordinate
widget width
widget height above baseline
widget depth below baseline
gap between lines
minimun skip per line
add kerning
raise/lower box
surrounding border, all directions
vertical border offset
top border offset
left border offset
widget color index (into color map), if any
init draw
draw widget
split a widget into parts for typesetting paragraphs
fit last widget element in a box
calculate horizontal glue
calculate vertical glue below baseline
calculate vertical glue above baseline
cached variant of hglue
cached variant of dglue
cached variant of vglue
widget bounding box, starting at the top left corner
widget bounding box, starting at the left baseline point
resize a widget
let the widget self-determine its size
get rid of a widget
debugging: Print informations about the widget
split a paragraph by width rw
widget is resized
Components are composed using a boxes&glue model similar to LaTeX, including paragraph breaking. For the sake of simplicity and portability, MINOS2 only supports a single window, and uses OpenGL for rendering.
MINOS2 furthermore supports animations with the animation
class.
A color index texture is used for different color schemes, and
transition between neighboring schemes can also be animated.
create a new animation, calling xt with stack effect
( addr r0..1 -- )
repeatedly, until the rdelta timeout
expired; last call is always with argument 1e for the time.
You can create named color indexes and assign them color values for the currently active color scheme.
Create a (possibly shared) color index initialized with rgba
Create a unique color index initialized with rgba
Create a unique text color index initialized with rgba, the corresponding emoji color is set to white.
Create a unique text color index initialized with rgbatext, the corresponding emoji color is set to rgbaemoji.
Create a unique pair of text color index initialized with rgba1 and rgba2, the corresponding emoji color is set to white. By slowly shifting the index from one to the next index, the object will shift its color using a linear interpolation when redrawn.
Create a unique pair of text color index initialized with rgbatext1 and ~2, the corresponding emoji color pair is set to rgbaemoji1 to ~2. By slowly shifting the index from one to the next index, the object will shift its color using a linear interpolation when redrawn.
assign the named color index "name" in the current color scheme with the value rgba.
assign the named text color index "name" in the current color scheme with the value rgba.
assign the named text and emoji color index "name" in the current color scheme with the value rgbatext and rgbaemoji.
assign the named color index pair "name" in the current color scheme with the value rgba1 and rgba2.
assign the named color index pair "name" in the current color scheme with the value rgbatext1 and ~2 resp. rgbaemoji1 and ~2.
For a number of specific objects, there are early bound methods, that only work on these objects