// Package gtk was automatically generated by github.com/bnema/puregotk DO NOT EDIT package gtk import ( "structs" "unsafe" "github.com/ebitengine/purego" "github.com/bnema/puregotk/pkg/core" "github.com/bnema/puregotk/v4/gobject/types" ) type BinLayoutClass struct { _ structs.HostLayout ParentClass LayoutManagerClass } func (x *BinLayoutClass) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } // A layout manager for widgets with a single child. // // `GtkBinLayout` will stack each child of a widget on top of each other, // using the [property@Gtk.Widget:hexpand], [property@Gtk.Widget:vexpand], // [property@Gtk.Widget:halign], and [property@Gtk.Widget:valign] properties // of each child to determine where they should be positioned. type BinLayout struct { LayoutManager } var xBinLayoutGLibType func() types.GType func BinLayoutGLibType() types.GType { return xBinLayoutGLibType() } func BinLayoutNewFromInternalPtr(ptr uintptr) *BinLayout { cls := &BinLayout{} cls.Ptr = ptr return cls } var xNewBinLayout func() uintptr // Creates a new `GtkBinLayout` instance. func NewBinLayout() *BinLayout { var cls *BinLayout cret := xNewBinLayout() if cret == 0 { return nil } cls = &BinLayout{} cls.Ptr = cret return cls } func (c *BinLayout) GoPointer() uintptr { if c == nil { return 0 } return c.Ptr } func (c *BinLayout) SetGoPointer(ptr uintptr) { c.Ptr = ptr } func init() { core.SetPackageName("GTK", "gtk4") core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1"}) var libs []uintptr for _, libPath := range core.GetPaths("GTK") { lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) if err != nil { panic(err) } libs = append(libs, lib) } core.PuregoSafeRegister(&xBinLayoutGLibType, libs, "gtk_bin_layout_get_type") core.PuregoSafeRegister(&xNewBinLayout, libs, "gtk_bin_layout_new") }