natiny_view_set_padding

C
void natiny_view_set_padding(NatinyView view, float left, float top,
                               float right, float bottom);

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

Parameters

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

Example

C
natiny_view_set_padding(panel, 16.0f, 16.0f, 16.0f, 16.0f);
natiny_view_set_padding(button, 12.0f, 6.0f, 12.0f, 6.0f);