natiny.view.set_padding

Lua
natiny.view.set_padding(view, left, top, right, bottom)

Sets the space between a view's edges and the box its children are placed in.

Parameters

Name Type Description
view number View handle
left, top, right, bottom number Padding on each side, in drawing units

Example

Lua
natiny.view.set_padding(panel, 16, 16, 16, 16)
natiny.view.set_padding(button, 12, 6, 12, 6)