Skip to main content

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

ParameterTypeDescription
windowIdstringThe id or name of the window for which to change the size.
widthnumberThe new window width in pixels.
heightnumberThe 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

ParameterTypeDescription
changeSizeParamsChangeWindowSizeParamsContainer for the window settings.
callback?CallbackFunction<Result>A callback which is called when the size change is completed.

Returns

void