December 21, 2024

Dynamic Windows Function [dw_render_redraw]

Syntax

void dw_render_redraw(HWND handle)

Parameters

HWND handle: A handle to a render widget to be redrawn.

Description

Invalidate the render widget triggering an expose event.

Remarks

This function was introduced in version 3.2.

Introduced to reduce unnecessary redrawing on GTK3 with Wayland and GTK4.

If attempting to draw to a render widget outside of an expose callback, instead call dw_render_redraw() on the widget to trigger the expose, and perform the drawing in the callback.