// 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/window_x11.go:1:1 // +build linux // +build !no_x11 package gdk // #include // #include import _ "unsafe" import ( "unsafe" "github.com/gotk3/gotk3/glib" ) // MoveToCurrentDesktop is a wrapper around gdk_x11_window_move_to_current_desktop(). // It only works on GDK versions compiled with X11 support - its return value can't be used if WorkspaceControlSupported returns false func (v *Window) MoveToCurrentDesktop() { func() { _cgo0 := /*line :18:43*/v.native(); _cgoCheckPointer(_cgo0, nil); /*line :18:54*/_Cfunc_gdk_x11_window_move_to_current_desktop(_cgo0); }() } // GetDesktop is a wrapper around gdk_x11_window_get_desktop(). // It only works on GDK versions compiled with X11 support - its return value can't be used if WorkspaceControlSupported returns false func (v *Window) GetDesktop() uint32 { return uint32(func() _Ctype_guint32{ _cgo0 := /*line :24:45*/v.native(); _cgoCheckPointer(_cgo0, nil); return /*line :24:56*/_Cfunc_gdk_x11_window_get_desktop(_cgo0); }()) } // MoveToDesktop is a wrapper around gdk_x11_window_move_to_desktop(). // It only works on GDK versions compiled with X11 support - its return value can't be used if WorkspaceControlSupported returns false func (v *Window) MoveToDesktop(d uint32) { func() { _cgo0 := /*line :30:35*/v.native(); var _cgo1 _Ctype_guint32 = _Ctype_guint32 /*line :30:56*/(d); _cgoCheckPointer(_cgo0, nil); /*line :30:60*/_Cfunc_gdk_x11_window_move_to_desktop(_cgo0, _cgo1); }() } // GetXID is a wrapper around gdk_x11_window_get_xid(). // It only works on GDK versions compiled with X11 support - its return value can't be used if WorkspaceControlSupported returns false func (v *Window) GetXID() uint32 { return uint32(func() _Ctype_Window{ _cgo0 := /*line :36:41*/v.native(); _cgoCheckPointer(_cgo0, nil); return /*line :36:52*/_Cfunc_gdk_x11_window_get_xid(_cgo0); }()) } //ForeignNewForDisplay is a wrapper around gdk_x11_window_foreign_new_for_display() // It only works on GDK versions compiled with X11 support - its return value can't be used if WorkspaceControlSupported returns false func (v *Display) ForeignNewForDisplay(xid uint32) (*Window, error) { c := func() *_Ctype_struct__GdkWindow{ _cgo0 := /*line :42:48*/v.native(); var _cgo1 _Ctype_Window = _Ctype_Window /*line :42:68*/(xid); _cgoCheckPointer(_cgo0, nil); return /*line :42:74*/_Cfunc_gdk_x11_window_foreign_new_for_display(_cgo0, _cgo1); }() if c == nil { return nil, nilPtrErr } return &Window{glib.Take(unsafe.Pointer(c))}, nil }