natiny_view_get_changed

C
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

C
if (natiny_view_get_changed(map)) {
    rebuild_map_picture(map);
}