VideoTools/third_party/gotk3/gtk/testing_since_3_10.go
Stu d4efa91ce1 Add vendored gotk3 GTK3 bindings for Go
Vendor gotk3 library to ensure consistent GTK3 bindings across
environments and simplify dependency management.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-15 05:40:43 -05:00

14 lines
581 B
Go

// +build !gtk_3_6,!gtk_3_8
package gtk
// #include <gtk/gtk.h>
import "C"
// TestWidgetWaitForDraw is a wrapper around gtk_test_widget_wait_for_draw().
// Enters the main loop and waits for widget to be “drawn”. In this context that means it waits for the frame clock of widget to have run a full styling, layout and drawing cycle.
// This function is intended to be used for syncing with actions that depend on widget relayouting or on interaction with the display server.
func TestWidgetWaitForDraw(widget IWidget) {
C.gtk_test_widget_wait_for_draw(widget.toWidget())
}