// 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" ) // Contains information that is useful to compute the size of a drag surface. type DragSurfaceSize struct { _ structs.HostLayout } var xDragSurfaceSizeGLibType func() types.GType func DragSurfaceSizeGLibType() types.GType { return xDragSurfaceSizeGLibType() } func (x *DragSurfaceSize) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } var xDragSurfaceSizeSetSize func(uintptr, int, int) // Sets the size the drag surface prefers to be resized to. func (x *DragSurfaceSize) SetSize(WidthVar int, HeightVar int) { xDragSurfaceSizeSetSize(x.GoPointer(), WidthVar, HeightVar) } 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(&xDragSurfaceSizeGLibType, libs, "gdk_drag_surface_size_get_type") core.PuregoSafeRegister(&xDragSurfaceSizeSetSize, libs, "gdk_drag_surface_size_set_size") }