// Package adw was automatically generated by github.com/bnema/puregotk DO NOT EDIT package adw import ( "github.com/ebitengine/purego" "github.com/bnema/puregotk/pkg/core" "github.com/bnema/puregotk/v4/gtk" ) var xGetEnableAnimations func(uintptr) bool // Checks whether animations are enabled for @widget. // // This should be used when implementing an animated widget to know whether to // animate it or not. func GetEnableAnimations(WidgetVar *gtk.Widget) bool { cret := xGetEnableAnimations(WidgetVar.GoPointer()) return cret } var xLerp func(float64, float64, float64) float64 // Computes the linear interpolation between @a and @b for @t. func Lerp(AVar float64, BVar float64, TVar float64) float64 { cret := xLerp(AVar, BVar, TVar) return cret } func init() { core.SetPackageName("ADW", "libadwaita-1") core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0"}) var libs []uintptr for _, libPath := range core.GetPaths("ADW") { lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) if err != nil { panic(err) } libs = append(libs, lib) } core.PuregoSafeRegister(&xGetEnableAnimations, libs, "adw_get_enable_animations") core.PuregoSafeRegister(&xLerp, libs, "adw_lerp") }