// Code generated by cmd/cgo; DO NOT EDIT. //line /home/josie/.cache/paru/clone/wiiudownloader/src/pkg/mod/github.com/gotk3/gotk3@v0.6.5-0.20240618185848-ff349ae13f56/gdk/testing.go:1:1 package gdk // #include import _ "unsafe" // TestRenderSync retrieves a pixel from window to force the windowing system to carry out any pending rendering commands. // This function is intended to be used to synchronize with rendering pipelines, to benchmark windowing system rendering operations. // This is a wrapper around gdk_test_render_sync(). func TestRenderSync(window *Window) { func() { _cgo0 := /*line :10:25*/window.native(); _cgoCheckPointer(_cgo0, nil); /*line :10:41*/_Cfunc_gdk_test_render_sync(_cgo0); }() } // TestSimulateButton simulates a single mouse button event (press or release) at the given coordinates relative to the window. // Hint: a single click of a button requires this method to be called twice, once for pressed and once for released. // In most cases, gtk.TestWidgetClick() should be used. // // button: Mouse button number, starts with 0 // modifiers: Keyboard modifiers for the button event // buttonPressRelease: either GDK_BUTTON_PRESS or GDK_BUTTON_RELEASE // // This is a wrapper around gdk_test_simulate_button(). func TestSimulateButton(window *Window, x, y int, button Button, modifiers ModifierType, buttonPressRelease EventType) bool { return gobool(func() _Ctype_gboolean{ _cgo0 := /*line :23:43*/window.native(); var _cgo1 _Ctype_gint = _Ctype_gint /*line :23:66*/(x); var _cgo2 _Ctype_gint = _Ctype_gint /*line :23:77*/(y); var _cgo3 _Ctype_guint = _Ctype_guint /*line :23:89*/(button); var _cgo4 _Ctype_GdkModifierType = _Ctype_GdkModifierType /*line :23:116*/(modifiers); var _cgo5 _Ctype_GdkEventType = _Ctype_GdkEventType /*line :23:143*/(buttonPressRelease); _cgoCheckPointer(_cgo0, nil); return /*line :23:164*/_Cfunc_gdk_test_simulate_button(_cgo0, _cgo1, _cgo2, _cgo3, _cgo4, _cgo5); }()) } // TestSimulateButton simulates a keyboard event (press or release) at the given coordinates relative to the window. // If the coordinates (-1, -1) are used, the window origin is used instead. // Hint: a single key press requires this method to be called twice, once for pressed and once for released. // In most cases, gtk.TestWidgetSendKey() should be used. // // keyval: A GDK keyboard value (See KeyvalFromName(), UnicodeToKeyval(), ...) // modifiers: Keyboard modifiers for the key event // buttonPressRelease: either GDK_BUTTON_PRESS or GDK_BUTTON_RELEASE // // This is a wrapper around gdk_test_simulate_key(). func TestSimulateKey(window *Window, x, y int, keyval uint, modifiers ModifierType, buttonPressRelease EventType) bool { return gobool(func() _Ctype_gboolean{ _cgo0 := /*line :37:40*/window.native(); var _cgo1 _Ctype_gint = _Ctype_gint /*line :37:63*/(x); var _cgo2 _Ctype_gint = _Ctype_gint /*line :37:74*/(y); var _cgo3 _Ctype_guint = _Ctype_guint /*line :37:86*/(keyval); var _cgo4 _Ctype_GdkModifierType = _Ctype_GdkModifierType /*line :37:113*/(modifiers); var _cgo5 _Ctype_GdkEventType = _Ctype_GdkEventType /*line :37:140*/(buttonPressRelease); _cgoCheckPointer(_cgo0, nil); return /*line :37:161*/_Cfunc_gdk_test_simulate_key(_cgo0, _cgo1, _cgo2, _cgo3, _cgo4, _cgo5); }()) }