April 25, 2024

Dynamic Windows Function [dw_window_set_pos_size]

Syntax

void dw_window_set_pos_size(HWND handle, long x, long y, unsigned long width, unsigned long height)

Parameters

HWND handle: Window (widget) handle.
long x: X location from the bottom left.
long y: Y location from the bottom left.
unsigned long width: Width of the widget or 0 to let the system decide.
unsigned long height: Height of the widget or 0 to let the system decide.

Description

Sets the position and size of a given window (widget).

Remarks

As of version 2.3 you can pass 0 as width or height to autodetect the required size of the window on OS/2, Windows, Mac and GTK.

As of version 3.2, this function does nothing on iOS and Android. GTK3/4 using Wayland only sets the size.