Skip to content

finite_window_size_set

void finite_window_size_set(FiniteShell *shell, int xPos, int yPos, int width, int height)

The finite_window_size_set function attempts to resize a window with a given FiniteShell.

TypeDescription
FiniteShell *shellThe FiniteShell to resize.
int xPosThe new x position.
int yPosThe new y position.
int widthThe new width.
int heightThe new height
FiniteWindowInfo *det = myShell->details;
int32_t true_width = det->width;
int32_t true_height = det->height;
finite_window_size_set(myShell, ((true_width * 20) / 100), ((true_height *25) / 100), ((true_width * 60) / 100), ((true_height *50) / 100));

In order to call this function you must call finite_window_init. To achieve this behavior with a layer-shell window, use finite_overlay_set_size_and_position and finite_overlay_set_margin.

This function is meant to be used to resize windows but in production, all Infinite applications must be the full size of the screen which they are by default.