natiny_view_get_changed
bool natiny_view_get_changed(NatinyView view);
Returns whether a view's rectangle is different from the one it had in the render before.
Parameters
| Name | Type | Description |
|---|---|---|
view |
NatinyView |
View handle |
Returns
| Type | Description |
|---|---|
bool |
true when the position or the size changed, or this is the first render of the view; false for an invalid handle |
Example
if (natiny_view_get_changed(map)) {
rebuild_map_picture(map);
}