// Package gtk was automatically generated by github.com/bnema/puregotk DO NOT EDIT package gtk import ( "github.com/ebitengine/purego" "github.com/bnema/puregotk/pkg/core" "github.com/bnema/puregotk/v4/gobject/types" ) // Flags to use with gtk_set_debug_flags(). // // Settings these flags causes GTK to print out different // types of debugging information. Some of these flags are // only available when GTK has been configured with `-Ddebug=true`. type DebugFlags int var xDebugFlagsGLibType func() types.GType func DebugFlagsGLibType() types.GType { return xDebugFlagsGLibType() } const ( // Information about GtkTextView DebugTextValue DebugFlags = 1 // Information about GtkTreeView DebugTreeValue DebugFlags = 2 // Information about keyboard shortcuts DebugKeybindingsValue DebugFlags = 4 // Information about modules and extensions DebugModulesValue DebugFlags = 8 // Information about size allocation DebugGeometryValue DebugFlags = 16 // Information about icon themes DebugIconthemeValue DebugFlags = 32 // Information about printing DebugPrintingValue DebugFlags = 64 // Trace GtkBuilder operation DebugBuilderTraceValue DebugFlags = 128 // Information about size requests DebugSizeRequestValue DebugFlags = 256 // Disable the style property cache DebugNoCssCacheValue DebugFlags = 512 // Open the GTK inspector DebugInteractiveValue DebugFlags = 1024 // Show touch UI elements for pointer events. DebugTouchscreenValue DebugFlags = 2048 // Information about actions and menu models DebugActionsValue DebugFlags = 4096 // Information from layout managers DebugLayoutValue DebugFlags = 8192 // Include debug render nodes in the generated snapshots DebugSnapshotValue DebugFlags = 16384 // Information from the constraints solver DebugConstraintsValue DebugFlags = 32768 // Log unused GtkBuilder objects DebugBuilderObjectsValue DebugFlags = 65536 // Information about accessibility state changes DebugA11yValue DebugFlags = 131072 // Information about icon fallback. DebugIconfallbackValue DebugFlags = 262144 // Inverts the default text-direction. DebugInvertTextDirValue DebugFlags = 524288 // Information about deprecated CSS features. DebugCssValue DebugFlags = 1048576 // Information about deprecated GtkBuilder features. DebugBuilderValue DebugFlags = 2097152 ) var xGetDebugFlags func() DebugFlags // Returns the GTK debug flags that are currently active. // // This function is intended for GTK modules that want // to adjust their debug output based on GTK debug flags. func GetDebugFlags() DebugFlags { cret := xGetDebugFlags() return cret } var xSetDebugFlags func(DebugFlags) // Sets the GTK debug flags. func SetDebugFlags(FlagsVar DebugFlags) { xSetDebugFlags(FlagsVar) } 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(&xDebugFlagsGLibType, libs, "gtk_debug_flags_get_type") core.PuregoSafeRegister(&xGetDebugFlags, libs, "gtk_get_debug_flags") core.PuregoSafeRegister(&xSetDebugFlags, libs, "gtk_set_debug_flags") }