Skip to content

form.addTrim

since 1.6.3

Add a trim widget.

form.addTrim(line, rect, index, type)

Parameters

Name Type Required Description
line FormLine yes the line where the widget should be added
rect Rect yes the coordinates
index number yes the trim index
type string yes trim type, can take the values "horizontal" (default) or "vertical"

Returns

Nothing.

Examples

From the official Ethos documentation
form.addTrim(nil, {x=0, y=0}, 0, "vertical")