natiny_view_set_offset

C
void natiny_view_set_offset(NatinyView view, float x, float y);

Moves a view and everything in it from where its parent placed it, without moving anything else.

Parameters

Name Type Description
view NatinyView View handle
x float Distance to the right, in drawing units; negative moves left
y float Distance down, in drawing units; negative moves up

Example

C
natiny_view_set_offset(toast, 0.0f, slide * -40.0f);