natiny.view.set_gap

Lua
natiny.view.set_gap(view, x, y)

Sets the space a view leaves between neighbouring children.

Parameters

Name Type Description
view number View handle
x number Space between children side by side, in drawing units
y number Space between children one above the other, in drawing units

Example

Lua
natiny.view.set_gap(toolbar, 8, 0)
natiny.view.set_gap(grid, 12, 4)