overwolf.windows.changeSize
Overwolf APIs / overwolf / overwolf / windows / changeSize
Call Signature
function changeSize(
windowId: string,
width: number,
height: number,
callback?: CallbackFunction<Result>,
): void;
Changes the window size to the new width and height, in pixels.
Parameters
| Parameter | Type | Description |
|---|---|---|
windowId | string | The id or name of the window for which to change the size. |
width | number | The new window width in pixels. |
height | number | The new window height in pixels. |
callback? | CallbackFunction<Result> | A callback which is called when the size change is completed. |
Returns
void
Call Signature
function changeSize(
changeSizeParams: ChangeWindowSizeParams,
callback?: CallbackFunction<Result>,
): void;
Changes the window size to the new width and height, in pixels, including DPI scale when resizing.
Parameters
| Parameter | Type | Description |
|---|---|---|
changeSizeParams | ChangeWindowSizeParams | Container for the window settings. |
callback? | CallbackFunction<Result> | A callback which is called when the size change is completed. |
Returns
void