March 28, 2024

Dynamic Windows Function [dw_flush]

Syntax

void dw_flush(void)

Description

Call this after drawing to the screen to make sure anything you have drawn is visible.

Remarks

Not necessary on all platforms or versions, but best to call it to be sure to ensure what you want is visible.

Since 3.2 on GTK4 and GTK3 with Wayland, dw_flush() after drawing will trigger an expose event on any "dirty" render widgets, because drawing is only possible during the callback.