Widget
Client
Server
Methods
Widget Set(table properties)
Widget WidgetByName(string name)
Properties
number cornerRound
0..1: rounds the glyph's sharp MSDF corners (1 = fully rounded, SDF-like).
number bevel
0..1: faux-3D bevel / emboss shading along the glyph edge.
number bevelLight
0..1: bevel light direction, mapped to a 0..2pi azimuth.
number melt
0..1: animated noise domain-warp ('melting') of the glyph.
number glitch
0..1: static horizontal scanline-displacement bands.
number bend
0..1: horizontal shear / slant of the glyph.
number twist
0..1: swirl warp, stronger toward the glyph edges.
number wave
0..1: animated sine ripple along the glyph.
number revealAmount
0..1: coverage-mask reveal amount (0 = solid, 1 = fully gone).
integer revealMask
Reveal mask kind: 0 off, 1 noise, 2 linear, 3 radial.
number revealParam
0..1: reveal mask scale (noise) or angle (linear).
number revealEdge
0..1: hue of the glowing reveal front edge; 0 = no edge.
number|table reveal
Write { amount=, mask='noise'|'linear'|'radial', param=, edge= } or a bare amount (noise mask); reads back the amount.
integer|table pattern
Procedural fill pattern. Write a kind (0 off, 1 halftone, 2 dither, 3 contour) or { kind=, scale=, angle= }; reads back the kind.
number patternScale
0..1: fill-pattern scale (dot/cell size, ring frequency, ...).
number patternAngle
0..1: fill-pattern rotation, mapped to 0..2pi.
string type
integer id
boolean destroyed
Widget parent
Window window
table children
integer childCount
boolean hasChildren
Widget next
Widget prev
boolean isWindow
boolean isContainer
boolean isSelected
string name
string tooltip
boolean visible
boolean enabled
Vec2 size
string sizing
string sizingX
string sizingY
Vec2 pos
string posType
Vec2 sizePx
Vec2 posPx
string overflow
boolean endLine
integer siblingIndex
Vec2 padding
string paddingMode
number rounding
string roundingMode
integer roundCorners
boolean glyphFade
Vec2 margin
string marginMode
Vec2 gap
Spacing between sibling widgets (x) and between wrapped flow lines (y).
string alignItems
Cross-axis alignment of child widgets: start/center/end/stretch.
string alignSelf
Overrides the parent's alignItems for this widget (auto inherits).
string justifyContent
Main-axis distribution of children: start/center/end/space-between/space-around.
Vec2 mp
boolean bgFrame
Color bgColor
Color borderColor
Color textColor
number fontSize
boolean fontBold
string fontName
Vec2 textAlign
table fx
table fill
Write-only 2-color fill gradient: { top=Color, bottom=Color, along='y'|'x' }.
table layers
Array of stacked text layers, each { d=dilate, soft=glow, off=Vec2 shadow offset, color=, colorBottom=, along='y'|'x' }. When set, the layer stack REPLACES the base fill/outline/shadow.