natiny_view_set_min_size
void natiny_view_set_min_size(NatinyView view, float width, float height);
Sets the smallest size a view is given, whatever its content.
Parameters
| Name | Type | Description |
|---|---|---|
view |
NatinyView |
View handle |
width |
float |
Minimum width in drawing units; 0 for none |
height |
float |
Minimum height in drawing units; 0 for none |
Example
float w, h;
natiny_font_measure_text(font, "Settings", &w, &h);
natiny_view_set_min_size(label, w, h);