natiny_view_set_margin
void natiny_view_set_margin(NatinyView view, float left, float top,
float right, float bottom);
Sets the space a view keeps between itself and the edges of its cell.
Parameters
| Name | Type | Description |
|---|---|---|
view |
NatinyView |
View handle |
left, top, right, bottom |
float |
Margin on each side, in drawing units |
Example
NatinyView card = natiny_view_create(NATINY_LAYOUT_VERTICAL);
natiny_view_set_parent(card, grid);
natiny_view_set_margin(card, 4.0f, 4.0f, 4.0f, 4.0f);