natiny_view_set_gap
void natiny_view_set_gap(NatinyView view, float x, float y);
Sets the space a view leaves between neighbouring children.
Parameters
| Name | Type | Description |
|---|---|---|
view |
NatinyView |
View handle |
x |
float |
Space between children side by side, in drawing units |
y |
float |
Space between children one above the other, in drawing units |
Example
natiny_view_set_gap(toolbar, 8.0f, 0.0f);
natiny_view_set_gap(grid, 12.0f, 4.0f);