March 29, 2024

Dynamic Windows Function [dw_window_get_pos_size]

Syntax

void dw_window_get_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 or NULL.
long *y: Y location from the bottom left or NULL.
unsigned long *width: Width of the widget or NULL.
unsigned long *height: Height of the widget or NULL.

Description

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

Remarks

As of version 3.2, this function returns the screen dimensions on iOS and Android. GTK3/4 using Wayland only returns the window size.