File: testing_since_3_10.go

package info (click to toggle)
golang-github-gotk3-gotk3 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,332 kB
  • sloc: ansic: 904; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 581 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
// +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())
}