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.
Parameters
Section titled “Parameters”| Type | Description |
|---|---|
FiniteShell *shell | The FiniteShell to resize. |
int xPos | The new x position. |
int yPos | The new y position. |
int width | The new width. |
int height | The new height |
Code Example
Section titled “Code Example”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));Standard Usage
Section titled “Standard Usage”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.