Skip to content

cf_app_set_size

Category: app
GitHub: cute_app.h


Sets the size of the window in points.

void cf_app_set_size(int w, int h);
Parameters Description
w The width of the window in points (a point is a pixel unless the OS clusters pixels; see cf_app_get_pixel_scale).
h The height of the window in points.

Remarks

The app canvas and the default 2d projection follow automatically: the canvas is recreated at w * cf_app_get_pixel_scale() by h * cf_app_get_pixel_scale() pixels and the projection spans w by h points.

cf_app_get_size
cf_app_get_position
cf_app_set_position