Skip to main content

overwolf.windows.dragResize

Overwolf APIs / overwolf / overwolf / windows / dragResize

Call Signature

function dragResize(windowId: string, edge: WindowDragEdge): void;

Start resizing the window from a specific edge or corner.

Parameters

ParameterTypeDescription
windowIdstringThe id or name of the window to resize.
edgeWindowDragEdgeThe edge or corner from which to resize the window.

Returns

void

Call Signature

function dragResize(
windowId: string,
edge: WindowDragEdge,
contentRect: ODKRect,
): void;

Start resizing the window from a specific edge or corner.

Parameters

ParameterTypeDescription
windowIdstringThe id or name of the window to resize.
edgeWindowDragEdgeThe edge or corner from which to resize the window.
contentRectODKRectThe real content of the window (for the in-game drawing resizing white area)

Returns

void

Call Signature

function dragResize(
windowId: string,
edge: WindowDragEdge,
rect: ODKRect,
callback: CallbackFunction<DragResizeResult>,
): void;

Start resizing the window from a specific edge or corner.

Parameters

ParameterTypeDescription
windowIdstringThe id or name of the window to resize.
edgeWindowDragEdgeThe edge or corner from which to resize the window.
rectODKRect-
callbackCallbackFunction<DragResizeResult>Will be called when the resizing process is completed.

Returns

void