// Package adw was automatically generated by github.com/bnema/puregotk DO NOT EDIT package adw import ( "structs" "unsafe" "github.com/ebitengine/purego" "github.com/bnema/puregotk/pkg/core" "github.com/bnema/puregotk/v4/gobject" "github.com/bnema/puregotk/v4/gobject/types" "github.com/bnema/puregotk/v4/gtk" ) type NavigationSplitViewClass struct { _ structs.HostLayout ParentClass gtk.WidgetClass } func (x *NavigationSplitViewClass) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } // A widget presenting sidebar and content side by side or as a navigation view. // // <picture> // // <source srcset="navigation-split-view-dark.png" media="(prefers-color-scheme: dark)"> // <img src="navigation-split-view.png" alt="navigation-split-view"> // // </picture> // <picture> // // <source srcset="navigation-split-view-collapsed-dark.png" media="(prefers-color-scheme: dark)"> // <img src="navigation-split-view-collapsed.png" alt="navigation-split-view-collapsed"> // // </picture> // // `AdwNavigationSplitView` has two [class@NavigationPage] children: sidebar and // content, and displays them side by side. // // When [property@NavigationSplitView:collapsed] is set to `TRUE`, it instead // puts both children inside an [class@NavigationView]. The // [property@NavigationSplitView:show-content] controls which child is visible // while collapsed. // // See also [class@OverlaySplitView]. // // `AdwNavigationSplitView` is typically used together with an [class@Breakpoint] // setting the `collapsed` property to `TRUE` on small widths, as follows: // // ```xml // <object class="AdwWindow"> // // <property name="width-request">280</property> // <property name="height-request">200</property> // <property name="default-width">800</property> // <property name="default-height">800</property> // <child> // <object class="AdwBreakpoint"> // <condition>max-width: 400sp</condition> // <setter object="split_view" property="collapsed">True</setter> // </object> // </child> // <property name="content"> // <object class="AdwNavigationSplitView" id="split_view"> // <property name="sidebar"> // <object class="AdwNavigationPage"> // <property name="title" translatable="yes">Sidebar</property> // <property name="child"> // <!-- ... --> // </property> // </object> // </property> // <property name="content"> // <object class="AdwNavigationPage"> // <property name="title" translatable="yes">Content</property> // <property name="child"> // <!-- ... --> // </property> // </object> // </property> // </object> // </property> // // </object> // ``` // // ## Sizing // // When not collapsed, `AdwNavigationSplitView` changes the sidebar width // depending on its own width. // // If possible, it tries to allocate a fraction of the total width, controlled // with the [property@NavigationSplitView:sidebar-width-fraction] property. // // The sidebar also has minimum and maximum sizes, controlled with the // [property@NavigationSplitView:min-sidebar-width] and // [property@NavigationSplitView:max-sidebar-width] properties. // // The minimum and maximum sizes are using the length unit specified with the // [property@NavigationSplitView:sidebar-width-unit]. // // By default, sidebar is using 25% of the total width, with 180sp as the // minimum size and 280sp as the maximum size. // // ## Header Bar Integration // // When used inside `AdwNavigationSplitView`, [class@HeaderBar] will // automatically hide the window buttons in the middle. // // When collapsed, it also displays a back button for the content widget, as // well as the page titles. See [class@NavigationView] documentation for details. // // ## Actions // // `AdwNavigationSplitView` defines the same actions as `AdwNavigationView`, but // they can be used even when the split view is not collapsed: // // - `navigation.push` takes a string parameter specifying the tag of the page // to push. If it matches the tag of the content widget, it sets // [property@NavigationSplitView:show-content] to `TRUE`. // // - `navigation.pop` doesn't take any parameters and sets // [property@NavigationSplitView:show-content] to `FALSE`. // // ## `AdwNavigationSplitView` as `GtkBuildable` // // The `AdwNavigationSplitView` implementation of the [iface@Gtk.Buildable] // interface supports setting the sidebar widget by specifying “sidebar” as the // “type” attribute of a `<child>` element, Specifying “content” child type or // omitting it results in setting the content widget. // // ## CSS nodes // // `AdwNavigationSplitView` has a single CSS node with the name // `navigation-split-view`. // // When collapsed, it contains a child node with the name `navigation-view` // containing both children. // // ``` // navigation-split-view // ╰── navigation-view // // ├── [sidebar child] // ╰── [content child] // // ``` // // When not collapsed, it contains two nodes with the name `widget`, one with // the `.sidebar-pane` style class, the other one with `.content-view` style // class, containing the sidebar and content children respectively. // // ``` // navigation-split-view // ├── widget.sidebar-pane // │ ╰── [sidebar child] // ╰── widget.content-pane // // ╰── [content child] // // ``` // // ## Accessibility // // `AdwNavigationSplitView` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role. type NavigationSplitView struct { gtk.Widget } var xNavigationSplitViewGLibType func() types.GType func NavigationSplitViewGLibType() types.GType { return xNavigationSplitViewGLibType() } func NavigationSplitViewNewFromInternalPtr(ptr uintptr) *NavigationSplitView { cls := &NavigationSplitView{} cls.Ptr = ptr return cls } var xNewNavigationSplitView func() uintptr // Creates a new `AdwNavigationSplitView`. func NewNavigationSplitView() *NavigationSplitView { var cls *NavigationSplitView cret := xNewNavigationSplitView() if cret == 0 { return nil } gobject.IncreaseRef(cret) cls = &NavigationSplitView{} cls.Ptr = cret return cls } var xNavigationSplitViewGetCollapsed func(uintptr) bool // Gets whether @self is collapsed. func (x *NavigationSplitView) GetCollapsed() bool { cret := xNavigationSplitViewGetCollapsed(x.GoPointer()) return cret } var xNavigationSplitViewGetContent func(uintptr) uintptr // Sets the content widget for @self. func (x *NavigationSplitView) GetContent() *NavigationPage { var cls *NavigationPage cret := xNavigationSplitViewGetContent(x.GoPointer()) if cret == 0 { return nil } gobject.IncreaseRef(cret) cls = &NavigationPage{} cls.Ptr = cret return cls } var xNavigationSplitViewGetMaxSidebarWidth func(uintptr) float64 // Gets the maximum sidebar width for @self. func (x *NavigationSplitView) GetMaxSidebarWidth() float64 { cret := xNavigationSplitViewGetMaxSidebarWidth(x.GoPointer()) return cret } var xNavigationSplitViewGetMinSidebarWidth func(uintptr) float64 // Gets the minimum sidebar width for @self. func (x *NavigationSplitView) GetMinSidebarWidth() float64 { cret := xNavigationSplitViewGetMinSidebarWidth(x.GoPointer()) return cret } var xNavigationSplitViewGetShowContent func(uintptr) bool // Gets which page is visible when @self is collapsed. func (x *NavigationSplitView) GetShowContent() bool { cret := xNavigationSplitViewGetShowContent(x.GoPointer()) return cret } var xNavigationSplitViewGetSidebar func(uintptr) uintptr // Gets the sidebar widget for @self. func (x *NavigationSplitView) GetSidebar() *NavigationPage { var cls *NavigationPage cret := xNavigationSplitViewGetSidebar(x.GoPointer()) if cret == 0 { return nil } gobject.IncreaseRef(cret) cls = &NavigationPage{} cls.Ptr = cret return cls } var xNavigationSplitViewGetSidebarPosition func(uintptr) gtk.PackType // Gets the sidebar position for @self. func (x *NavigationSplitView) GetSidebarPosition() gtk.PackType { cret := xNavigationSplitViewGetSidebarPosition(x.GoPointer()) return cret } var xNavigationSplitViewGetSidebarWidthFraction func(uintptr) float64 // Gets the preferred sidebar width fraction for @self. func (x *NavigationSplitView) GetSidebarWidthFraction() float64 { cret := xNavigationSplitViewGetSidebarWidthFraction(x.GoPointer()) return cret } var xNavigationSplitViewGetSidebarWidthUnit func(uintptr) LengthUnit // Gets the length unit for minimum and maximum sidebar widths. func (x *NavigationSplitView) GetSidebarWidthUnit() LengthUnit { cret := xNavigationSplitViewGetSidebarWidthUnit(x.GoPointer()) return cret } var xNavigationSplitViewSetCollapsed func(uintptr, bool) // Sets whether @self is collapsed. // // When collapsed, the children are put inside an [class@NavigationView], // otherwise they are displayed side by side. // // The [property@NavigationSplitView:show-content] controls which child is // visible while collapsed. func (x *NavigationSplitView) SetCollapsed(CollapsedVar bool) { xNavigationSplitViewSetCollapsed(x.GoPointer(), CollapsedVar) } var xNavigationSplitViewSetContent func(uintptr, uintptr) // Sets the content widget for @self. func (x *NavigationSplitView) SetContent(ContentVar *NavigationPage) { xNavigationSplitViewSetContent(x.GoPointer(), ContentVar.GoPointer()) } var xNavigationSplitViewSetMaxSidebarWidth func(uintptr, float64) // Sets the maximum sidebar width for @self. // // Maximum width is affected by // [property@NavigationSplitView:sidebar-width-unit]. // // The sidebar widget can still be allocated with larger width if its own // minimum width exceeds it. func (x *NavigationSplitView) SetMaxSidebarWidth(WidthVar float64) { xNavigationSplitViewSetMaxSidebarWidth(x.GoPointer(), WidthVar) } var xNavigationSplitViewSetMinSidebarWidth func(uintptr, float64) // Sets the minimum sidebar width for @self. // // Minimum width is affected by // [property@NavigationSplitView:sidebar-width-unit]. // // The sidebar widget can still be allocated with larger width if its own // minimum width exceeds it. func (x *NavigationSplitView) SetMinSidebarWidth(WidthVar float64) { xNavigationSplitViewSetMinSidebarWidth(x.GoPointer(), WidthVar) } var xNavigationSplitViewSetShowContent func(uintptr, bool) // Sets which page is visible when @self is collapsed. // // If set to `TRUE`, the content widget will be the visible page when // [property@NavigationSplitView:collapsed] is `TRUE`; otherwise the sidebar // widget will be visible. // // If the split view is already collapsed, the visible page changes immediately. func (x *NavigationSplitView) SetShowContent(ShowContentVar bool) { xNavigationSplitViewSetShowContent(x.GoPointer(), ShowContentVar) } var xNavigationSplitViewSetSidebar func(uintptr, uintptr) // Sets the sidebar widget for @self. func (x *NavigationSplitView) SetSidebar(SidebarVar *NavigationPage) { xNavigationSplitViewSetSidebar(x.GoPointer(), SidebarVar.GoPointer()) } var xNavigationSplitViewSetSidebarPosition func(uintptr, gtk.PackType) // Sets the sidebar position for @self. // // If set to `GTK_PACK_START`, the sidebar is displayed before the content, // and the sidebar will be the root page when collapsed. // // If set to `GTK_PACK_END`, the sidebar is displayed after the content, // and the content will be the root page. func (x *NavigationSplitView) SetSidebarPosition(PositionVar gtk.PackType) { xNavigationSplitViewSetSidebarPosition(x.GoPointer(), PositionVar) } var xNavigationSplitViewSetSidebarWidthFraction func(uintptr, float64) // Sets the preferred sidebar width as a fraction of the total width of @self. // // The preferred width is additionally limited by // [property@NavigationSplitView:min-sidebar-width] and // [property@NavigationSplitView:max-sidebar-width]. // // The sidebar widget can be allocated with larger width if its own minimum // width exceeds the preferred width. func (x *NavigationSplitView) SetSidebarWidthFraction(FractionVar float64) { xNavigationSplitViewSetSidebarWidthFraction(x.GoPointer(), FractionVar) } var xNavigationSplitViewSetSidebarWidthUnit func(uintptr, LengthUnit) // Sets the length unit for minimum and maximum sidebar widths. // // See [property@NavigationSplitView:min-sidebar-width] and // [property@NavigationSplitView:max-sidebar-width]. func (x *NavigationSplitView) SetSidebarWidthUnit(UnitVar LengthUnit) { xNavigationSplitViewSetSidebarWidthUnit(x.GoPointer(), UnitVar) } func (c *NavigationSplitView) GoPointer() uintptr { if c == nil { return 0 } return c.Ptr } func (c *NavigationSplitView) SetGoPointer(ptr uintptr) { c.Ptr = ptr } // SetPropertyCollapsed sets the "collapsed" property. // Whether the split view is collapsed. // // When collapsed, the children are put inside an [class@NavigationView], // otherwise they are displayed side by side. // // The [property@NavigationSplitView:show-content] controls which child is // visible while collapsed. func (x *NavigationSplitView) SetPropertyCollapsed(value bool) { var v gobject.Value v.Init(gobject.TypeBooleanVal) v.SetBoolean(value) x.SetProperty("collapsed", &v) } // GetPropertyCollapsed gets the "collapsed" property. // Whether the split view is collapsed. // // When collapsed, the children are put inside an [class@NavigationView], // otherwise they are displayed side by side. // // The [property@NavigationSplitView:show-content] controls which child is // visible while collapsed. func (x *NavigationSplitView) GetPropertyCollapsed() bool { var v gobject.Value x.GetProperty("collapsed", &v) return v.GetBoolean() } // SetPropertyMaxSidebarWidth sets the "max-sidebar-width" property. // The maximum sidebar width. // // Maximum width is affected by // [property@NavigationSplitView:sidebar-width-unit]. // // The sidebar widget can still be allocated with larger width if its own // minimum width exceeds it. func (x *NavigationSplitView) SetPropertyMaxSidebarWidth(value float64) { var v gobject.Value v.Init(gobject.TypeDoubleVal) v.SetDouble(value) x.SetProperty("max-sidebar-width", &v) } // GetPropertyMaxSidebarWidth gets the "max-sidebar-width" property. // The maximum sidebar width. // // Maximum width is affected by // [property@NavigationSplitView:sidebar-width-unit]. // // The sidebar widget can still be allocated with larger width if its own // minimum width exceeds it. func (x *NavigationSplitView) GetPropertyMaxSidebarWidth() float64 { var v gobject.Value x.GetProperty("max-sidebar-width", &v) return v.GetDouble() } // SetPropertyMinSidebarWidth sets the "min-sidebar-width" property. // The minimum sidebar width. // // Minimum width is affected by // [property@NavigationSplitView:sidebar-width-unit]. // // The sidebar widget can still be allocated with larger width if its own // minimum width exceeds it. func (x *NavigationSplitView) SetPropertyMinSidebarWidth(value float64) { var v gobject.Value v.Init(gobject.TypeDoubleVal) v.SetDouble(value) x.SetProperty("min-sidebar-width", &v) } // GetPropertyMinSidebarWidth gets the "min-sidebar-width" property. // The minimum sidebar width. // // Minimum width is affected by // [property@NavigationSplitView:sidebar-width-unit]. // // The sidebar widget can still be allocated with larger width if its own // minimum width exceeds it. func (x *NavigationSplitView) GetPropertyMinSidebarWidth() float64 { var v gobject.Value x.GetProperty("min-sidebar-width", &v) return v.GetDouble() } // SetPropertyShowContent sets the "show-content" property. // Determines the visible page when collapsed. // // If set to `TRUE`, the content widget will be the visible page when // [property@NavigationSplitView:collapsed] is `TRUE`; otherwise the sidebar // widget will be visible. // // If the split view is already collapsed, the visible page changes // immediately. func (x *NavigationSplitView) SetPropertyShowContent(value bool) { var v gobject.Value v.Init(gobject.TypeBooleanVal) v.SetBoolean(value) x.SetProperty("show-content", &v) } // GetPropertyShowContent gets the "show-content" property. // Determines the visible page when collapsed. // // If set to `TRUE`, the content widget will be the visible page when // [property@NavigationSplitView:collapsed] is `TRUE`; otherwise the sidebar // widget will be visible. // // If the split view is already collapsed, the visible page changes // immediately. func (x *NavigationSplitView) GetPropertyShowContent() bool { var v gobject.Value x.GetProperty("show-content", &v) return v.GetBoolean() } // SetPropertySidebarWidthFraction sets the "sidebar-width-fraction" property. // The preferred sidebar width as a fraction of the total width. // // The preferred width is additionally limited by // [property@NavigationSplitView:min-sidebar-width] and // [property@NavigationSplitView:max-sidebar-width]. // // The sidebar widget can be allocated with larger width if its own minimum // width exceeds the preferred width. func (x *NavigationSplitView) SetPropertySidebarWidthFraction(value float64) { var v gobject.Value v.Init(gobject.TypeDoubleVal) v.SetDouble(value) x.SetProperty("sidebar-width-fraction", &v) } // GetPropertySidebarWidthFraction gets the "sidebar-width-fraction" property. // The preferred sidebar width as a fraction of the total width. // // The preferred width is additionally limited by // [property@NavigationSplitView:min-sidebar-width] and // [property@NavigationSplitView:max-sidebar-width]. // // The sidebar widget can be allocated with larger width if its own minimum // width exceeds the preferred width. func (x *NavigationSplitView) GetPropertySidebarWidthFraction() float64 { var v gobject.Value x.GetProperty("sidebar-width-fraction", &v) return v.GetDouble() } // Requests the user's screen reader to announce the given message. // // This kind of notification is useful for messages that // either have only a visual representation or that are not // exposed visually at all, e.g. a notification about a // successful operation. // // Also, by using this API, you can ensure that the message // does not interrupts the user's current screen reader output. func (x *NavigationSplitView) Announce(MessageVar string, PriorityVar gtk.AccessibleAnnouncementPriority) { gtk.XGtkAccessibleAnnounce(x.GoPointer(), MessageVar, PriorityVar) } // Retrieves the accessible parent for an accessible object. // // This function returns `NULL` for top level widgets. func (x *NavigationSplitView) GetAccessibleParent() *gtk.AccessibleBase { var cls *gtk.AccessibleBase cret := gtk.XGtkAccessibleGetAccessibleParent(x.GoPointer()) if cret == 0 { return nil } cls = >k.AccessibleBase{} cls.Ptr = cret return cls } // Retrieves the accessible role of an accessible object. func (x *NavigationSplitView) GetAccessibleRole() gtk.AccessibleRole { cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer()) return cret } // Retrieves the implementation for the given accessible object. func (x *NavigationSplitView) GetAtContext() *gtk.ATContext { var cls *gtk.ATContext cret := gtk.XGtkAccessibleGetAtContext(x.GoPointer()) if cret == 0 { return nil } cls = >k.ATContext{} cls.Ptr = cret return cls } // Queries the coordinates and dimensions of this accessible // // This functionality can be overridden by `GtkAccessible` // implementations, e.g. to get the bounds from an ignored // child widget. func (x *NavigationSplitView) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool { cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar) return cret } // Retrieves the first accessible child of an accessible object. func (x *NavigationSplitView) GetFirstAccessibleChild() *gtk.AccessibleBase { var cls *gtk.AccessibleBase cret := gtk.XGtkAccessibleGetFirstAccessibleChild(x.GoPointer()) if cret == 0 { return nil } cls = >k.AccessibleBase{} cls.Ptr = cret return cls } // Retrieves the next accessible sibling of an accessible object func (x *NavigationSplitView) GetNextAccessibleSibling() *gtk.AccessibleBase { var cls *gtk.AccessibleBase cret := gtk.XGtkAccessibleGetNextAccessibleSibling(x.GoPointer()) if cret == 0 { return nil } cls = >k.AccessibleBase{} cls.Ptr = cret return cls } // Queries a platform state, such as focus. // // This functionality can be overridden by `GtkAccessible` // implementations, e.g. to get platform state from an ignored // child widget, as is the case for `GtkText` wrappers. func (x *NavigationSplitView) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool { cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar) return cret } // Resets the accessible property to its default value. func (x *NavigationSplitView) ResetProperty(PropertyVar gtk.AccessibleProperty) { gtk.XGtkAccessibleResetProperty(x.GoPointer(), PropertyVar) } // Resets the accessible relation to its default value. func (x *NavigationSplitView) ResetRelation(RelationVar gtk.AccessibleRelation) { gtk.XGtkAccessibleResetRelation(x.GoPointer(), RelationVar) } // Resets the accessible state to its default value. func (x *NavigationSplitView) ResetState(StateVar gtk.AccessibleState) { gtk.XGtkAccessibleResetState(x.GoPointer(), StateVar) } // Sets the parent and sibling of an accessible object. // // This function is meant to be used by accessible implementations that are // not part of the widget hierarchy, and but act as a logical bridge between // widgets. For instance, if a widget creates an object that holds metadata // for each child, and you want that object to implement the `GtkAccessible` // interface, you will use this function to ensure that the parent of each // child widget is the metadata object, and the parent of each metadata // object is the container widget. func (x *NavigationSplitView) SetAccessibleParent(ParentVar gtk.Accessible, NextSiblingVar gtk.Accessible) { gtk.XGtkAccessibleSetAccessibleParent(x.GoPointer(), ParentVar.GoPointer(), NextSiblingVar.GoPointer()) } // Updates the next accessible sibling. // // That might be useful when a new child of a custom accessible // is created, and it needs to be linked to a previous child. func (x *NavigationSplitView) UpdateNextAccessibleSibling(NewSiblingVar gtk.Accessible) { gtk.XGtkAccessibleUpdateNextAccessibleSibling(x.GoPointer(), NewSiblingVar.GoPointer()) } // Informs ATs that the platform state has changed. // // This function should be used by `GtkAccessible` implementations that // have a platform state but are not widgets. Widgets handle platform // states automatically. func (x *NavigationSplitView) UpdatePlatformState(StateVar gtk.AccessiblePlatformState) { gtk.XGtkAccessibleUpdatePlatformState(x.GoPointer(), StateVar) } // Updates a list of accessible properties. // // See the [enum@Gtk.AccessibleProperty] documentation for the // value types of accessible properties. // // This function should be called by `GtkWidget` types whenever // an accessible property change must be communicated to assistive // technologies. // // Example: // ```c // value = gtk_adjustment_get_value (adjustment); // gtk_accessible_update_property (GTK_ACCESSIBLE (spin_button), // // GTK_ACCESSIBLE_PROPERTY_VALUE_NOW, value, // -1); // // ``` func (x *NavigationSplitView) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArgs ...interface{}) { gtk.XGtkAccessibleUpdateProperty(x.GoPointer(), FirstPropertyVar, varArgs...) } // Updates an array of accessible properties. // // This function should be called by `GtkWidget` types whenever an accessible // property change must be communicated to assistive technologies. // // This function is meant to be used by language bindings. func (x *NavigationSplitView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) { gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar) } // Updates a list of accessible relations. // // This function should be called by `GtkWidget` types whenever an accessible // relation change must be communicated to assistive technologies. // // If the [enum@Gtk.AccessibleRelation] requires a list of references, // you should pass each reference individually, followed by `NULL`, e.g. // // ```c // gtk_accessible_update_relation (accessible, // // GTK_ACCESSIBLE_RELATION_CONTROLS, // ref1, NULL, // GTK_ACCESSIBLE_RELATION_LABELLED_BY, // ref1, ref2, ref3, NULL, // -1); // // ``` func (x *NavigationSplitView) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArgs ...interface{}) { gtk.XGtkAccessibleUpdateRelation(x.GoPointer(), FirstRelationVar, varArgs...) } // Updates an array of accessible relations. // // This function should be called by `GtkWidget` types whenever an accessible // relation change must be communicated to assistive technologies. // // This function is meant to be used by language bindings. func (x *NavigationSplitView) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) { gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar) } // Updates a list of accessible states. // // See the [enum@Gtk.AccessibleState] documentation for the // value types of accessible states. // // This function should be called by `GtkWidget` types whenever // an accessible state change must be communicated to assistive // technologies. // // Example: // // ```c // value = GTK_ACCESSIBLE_TRISTATE_MIXED; // gtk_accessible_update_state (GTK_ACCESSIBLE (check_button), // // GTK_ACCESSIBLE_STATE_CHECKED, value, // -1); // // ``` func (x *NavigationSplitView) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...interface{}) { gtk.XGtkAccessibleUpdateState(x.GoPointer(), FirstStateVar, varArgs...) } // Updates an array of accessible states. // // This function should be called by `GtkWidget` types whenever an accessible // state change must be communicated to assistive technologies. // // This function is meant to be used by language bindings. func (x *NavigationSplitView) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) { gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar) } // Gets the ID of the @buildable object. // // `GtkBuilder` sets the name based on the ID attribute // of the `<object>` tag used to construct the @buildable. func (x *NavigationSplitView) GetBuildableId() string { cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer()) 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(&xNavigationSplitViewGLibType, libs, "adw_navigation_split_view_get_type") core.PuregoSafeRegister(&xNewNavigationSplitView, libs, "adw_navigation_split_view_new") core.PuregoSafeRegister(&xNavigationSplitViewGetCollapsed, libs, "adw_navigation_split_view_get_collapsed") core.PuregoSafeRegister(&xNavigationSplitViewGetContent, libs, "adw_navigation_split_view_get_content") core.PuregoSafeRegister(&xNavigationSplitViewGetMaxSidebarWidth, libs, "adw_navigation_split_view_get_max_sidebar_width") core.PuregoSafeRegister(&xNavigationSplitViewGetMinSidebarWidth, libs, "adw_navigation_split_view_get_min_sidebar_width") core.PuregoSafeRegister(&xNavigationSplitViewGetShowContent, libs, "adw_navigation_split_view_get_show_content") core.PuregoSafeRegister(&xNavigationSplitViewGetSidebar, libs, "adw_navigation_split_view_get_sidebar") core.PuregoSafeRegister(&xNavigationSplitViewGetSidebarPosition, libs, "adw_navigation_split_view_get_sidebar_position") core.PuregoSafeRegister(&xNavigationSplitViewGetSidebarWidthFraction, libs, "adw_navigation_split_view_get_sidebar_width_fraction") core.PuregoSafeRegister(&xNavigationSplitViewGetSidebarWidthUnit, libs, "adw_navigation_split_view_get_sidebar_width_unit") core.PuregoSafeRegister(&xNavigationSplitViewSetCollapsed, libs, "adw_navigation_split_view_set_collapsed") core.PuregoSafeRegister(&xNavigationSplitViewSetContent, libs, "adw_navigation_split_view_set_content") core.PuregoSafeRegister(&xNavigationSplitViewSetMaxSidebarWidth, libs, "adw_navigation_split_view_set_max_sidebar_width") core.PuregoSafeRegister(&xNavigationSplitViewSetMinSidebarWidth, libs, "adw_navigation_split_view_set_min_sidebar_width") core.PuregoSafeRegister(&xNavigationSplitViewSetShowContent, libs, "adw_navigation_split_view_set_show_content") core.PuregoSafeRegister(&xNavigationSplitViewSetSidebar, libs, "adw_navigation_split_view_set_sidebar") core.PuregoSafeRegister(&xNavigationSplitViewSetSidebarPosition, libs, "adw_navigation_split_view_set_sidebar_position") core.PuregoSafeRegister(&xNavigationSplitViewSetSidebarWidthFraction, libs, "adw_navigation_split_view_set_sidebar_width_fraction") core.PuregoSafeRegister(&xNavigationSplitViewSetSidebarWidthUnit, libs, "adw_navigation_split_view_set_sidebar_width_unit") }