// Package gdk was automatically generated by github.com/bnema/puregotk DO NOT EDIT package gdk import ( "structs" "unsafe" "github.com/ebitengine/purego" "github.com/bnema/puregotk/pkg/core" "github.com/bnema/puregotk/v4/gobject/types" ) // The `GdkDragSurfaceInterface` implementation is private to GDK. type DragSurfaceInterface struct { _ structs.HostLayout } func (x *DragSurfaceInterface) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } // A surface that is used during DND. type DragSurface interface { GoPointer() uintptr SetGoPointer(uintptr) Present(WidthVar int, HeightVar int) bool } var xDragSurfaceGLibType func() types.GType func DragSurfaceGLibType() types.GType { return xDragSurfaceGLibType() } type DragSurfaceBase struct { Ptr uintptr } func (x *DragSurfaceBase) GoPointer() uintptr { if x == nil { return 0 } return x.Ptr } func (x *DragSurfaceBase) SetGoPointer(ptr uintptr) { x.Ptr = ptr } // Present @drag_surface. func (x *DragSurfaceBase) Present(WidthVar int, HeightVar int) bool { cret := XGdkDragSurfacePresent(x.GoPointer(), WidthVar, HeightVar) return cret } var XGdkDragSurfacePresent func(uintptr, int, int) bool func init() { core.SetPackageName("GDK", "gtk4") core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1"}) var libs []uintptr for _, libPath := range core.GetPaths("GDK") { lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) if err != nil { panic(err) } libs = append(libs, lib) } core.PuregoSafeRegister(&xDragSurfaceGLibType, libs, "gdk_drag_surface_get_type") core.PuregoSafeRegister(&XGdkDragSurfacePresent, libs, "gdk_drag_surface_present") }