// 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" "github.com/bnema/puregotk/v4/gobject/types" ) type ColumnViewRowClass struct { _ structs.HostLayout } func (x *ColumnViewRowClass) GoPointer() uintptr { return uintptr(unsafe.Pointer(x)) } // Configures how rows are displayed in a [class@Gtk.ColumnView]. // // It is not used to set the widgets displayed in the individual cells. For that // see [method@GtkColumnViewColumn.set_factory] and [class@GtkColumnViewCell]. type ColumnViewRow struct { gobject.Object } var xColumnViewRowGLibType func() types.GType func ColumnViewRowGLibType() types.GType { return xColumnViewRowGLibType() } func ColumnViewRowNewFromInternalPtr(ptr uintptr) *ColumnViewRow { cls := &ColumnViewRow{} cls.Ptr = ptr return cls } var xColumnViewRowGetAccessibleDescription func(uintptr) string // Gets the accessible description of @self. func (x *ColumnViewRow) GetAccessibleDescription() string { cret := xColumnViewRowGetAccessibleDescription(x.GoPointer()) return cret } var xColumnViewRowGetAccessibleLabel func(uintptr) string // Gets the accessible label of @self. func (x *ColumnViewRow) GetAccessibleLabel() string { cret := xColumnViewRowGetAccessibleLabel(x.GoPointer()) return cret } var xColumnViewRowGetActivatable func(uintptr) bool // Checks if the row has been set to be activatable via // gtk_column_view_row_set_activatable(). func (x *ColumnViewRow) GetActivatable() bool { cret := xColumnViewRowGetActivatable(x.GoPointer()) return cret } var xColumnViewRowGetFocusable func(uintptr) bool // Checks if a row item has been set to be focusable via // gtk_column_view_row_set_focusable(). func (x *ColumnViewRow) GetFocusable() bool { cret := xColumnViewRowGetFocusable(x.GoPointer()) return cret } var xColumnViewRowGetItem func(uintptr) uintptr // Gets the model item that associated with @self. // // If @self is unbound, this function returns %NULL. func (x *ColumnViewRow) GetItem() *gobject.Object { var cls *gobject.Object cret := xColumnViewRowGetItem(x.GoPointer()) if cret == 0 { return nil } gobject.IncreaseRef(cret) cls = &gobject.Object{} cls.Ptr = cret return cls } var xColumnViewRowGetPosition func(uintptr) uint // Gets the position in the model that @self currently displays. // // If @self is unbound, %GTK_INVALID_LIST_POSITION is returned. func (x *ColumnViewRow) GetPosition() uint { cret := xColumnViewRowGetPosition(x.GoPointer()) return cret } var xColumnViewRowGetSelectable func(uintptr) bool // Checks if the row has been set to be selectable via // gtk_column_view_row_set_selectable(). // // Do not confuse this function with [method@Gtk.ColumnViewRow.get_selected]. func (x *ColumnViewRow) GetSelectable() bool { cret := xColumnViewRowGetSelectable(x.GoPointer()) return cret } var xColumnViewRowGetSelected func(uintptr) bool // Checks if the item is selected that this row corresponds to. // // The selected state is maintained by the list widget and its model // and cannot be set otherwise. func (x *ColumnViewRow) GetSelected() bool { cret := xColumnViewRowGetSelected(x.GoPointer()) return cret } var xColumnViewRowSetAccessibleDescription func(uintptr, string) // Sets the accessible description for the row, // which may be used by e.g. screen readers. func (x *ColumnViewRow) SetAccessibleDescription(DescriptionVar string) { xColumnViewRowSetAccessibleDescription(x.GoPointer(), DescriptionVar) } var xColumnViewRowSetAccessibleLabel func(uintptr, string) // Sets the accessible label for the row, // which may be used by e.g. screen readers. func (x *ColumnViewRow) SetAccessibleLabel(LabelVar string) { xColumnViewRowSetAccessibleLabel(x.GoPointer(), LabelVar) } var xColumnViewRowSetActivatable func(uintptr, bool) // Sets @self to be activatable. // // If a row is activatable, double-clicking on the row, using // the Return key or calling gtk_widget_activate() will activate // the row. Activating instructs the containing columnview to // emit the [signal@Gtk.ColumnView::activate] signal. // // By default, row are activatable. func (x *ColumnViewRow) SetActivatable(ActivatableVar bool) { xColumnViewRowSetActivatable(x.GoPointer(), ActivatableVar) } var xColumnViewRowSetFocusable func(uintptr, bool) // Sets @self to be focusable. // // If a row is focusable, it can be focused using the keyboard. // This works similar to [method@Gtk.Widget.set_focusable]. // // Note that if row are not focusable, the contents of cells can still be focused if // they are focusable. // // By default, rows are focusable. func (x *ColumnViewRow) SetFocusable(FocusableVar bool) { xColumnViewRowSetFocusable(x.GoPointer(), FocusableVar) } var xColumnViewRowSetSelectable func(uintptr, bool) // Sets @self to be selectable. // // If a row is selectable, clicking on the row or using the keyboard // will try to select or unselect the row. Whether this succeeds is up to // the model to determine, as it is managing the selected state. // // Note that this means that making a row non-selectable has no // influence on the selected state at all. A non-selectable row // may still be selected. // // By default, rows are selectable. func (x *ColumnViewRow) SetSelectable(SelectableVar bool) { xColumnViewRowSetSelectable(x.GoPointer(), SelectableVar) } func (c *ColumnViewRow) GoPointer() uintptr { if c == nil { return 0 } return c.Ptr } func (c *ColumnViewRow) SetGoPointer(ptr uintptr) { c.Ptr = ptr } // SetPropertyAccessibleDescription sets the "accessible-description" property. // The accessible description to set on the row. func (x *ColumnViewRow) SetPropertyAccessibleDescription(value string) { var v gobject.Value v.Init(gobject.TypeStringVal) v.SetString(&value) x.SetProperty("accessible-description", &v) } // GetPropertyAccessibleDescription gets the "accessible-description" property. // The accessible description to set on the row. func (x *ColumnViewRow) GetPropertyAccessibleDescription() string { var v gobject.Value x.GetProperty("accessible-description", &v) return v.GetString() } // SetPropertyAccessibleLabel sets the "accessible-label" property. // The accessible label to set on the row. func (x *ColumnViewRow) SetPropertyAccessibleLabel(value string) { var v gobject.Value v.Init(gobject.TypeStringVal) v.SetString(&value) x.SetProperty("accessible-label", &v) } // GetPropertyAccessibleLabel gets the "accessible-label" property. // The accessible label to set on the row. func (x *ColumnViewRow) GetPropertyAccessibleLabel() string { var v gobject.Value x.GetProperty("accessible-label", &v) return v.GetString() } // SetPropertyActivatable sets the "activatable" property. // If the row can be activated by the user. func (x *ColumnViewRow) SetPropertyActivatable(value bool) { var v gobject.Value v.Init(gobject.TypeBooleanVal) v.SetBoolean(value) x.SetProperty("activatable", &v) } // GetPropertyActivatable gets the "activatable" property. // If the row can be activated by the user. func (x *ColumnViewRow) GetPropertyActivatable() bool { var v gobject.Value x.GetProperty("activatable", &v) return v.GetBoolean() } // SetPropertyFocusable sets the "focusable" property. // If the row can be focused with the keyboard. func (x *ColumnViewRow) SetPropertyFocusable(value bool) { var v gobject.Value v.Init(gobject.TypeBooleanVal) v.SetBoolean(value) x.SetProperty("focusable", &v) } // GetPropertyFocusable gets the "focusable" property. // If the row can be focused with the keyboard. func (x *ColumnViewRow) GetPropertyFocusable() bool { var v gobject.Value x.GetProperty("focusable", &v) return v.GetBoolean() } // GetPropertyPosition gets the "position" property. // Position of the row. func (x *ColumnViewRow) GetPropertyPosition() uint { var v gobject.Value x.GetProperty("position", &v) return v.GetUint() } // SetPropertySelectable sets the "selectable" property. // If the row can be selected by the user. func (x *ColumnViewRow) SetPropertySelectable(value bool) { var v gobject.Value v.Init(gobject.TypeBooleanVal) v.SetBoolean(value) x.SetProperty("selectable", &v) } // GetPropertySelectable gets the "selectable" property. // If the row can be selected by the user. func (x *ColumnViewRow) GetPropertySelectable() bool { var v gobject.Value x.GetProperty("selectable", &v) return v.GetBoolean() } // GetPropertySelected gets the "selected" property. // If the item in the row is currently selected. func (x *ColumnViewRow) GetPropertySelected() bool { var v gobject.Value x.GetProperty("selected", &v) return v.GetBoolean() } 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(&xColumnViewRowGLibType, libs, "gtk_column_view_row_get_type") core.PuregoSafeRegister(&xColumnViewRowGetAccessibleDescription, libs, "gtk_column_view_row_get_accessible_description") core.PuregoSafeRegister(&xColumnViewRowGetAccessibleLabel, libs, "gtk_column_view_row_get_accessible_label") core.PuregoSafeRegister(&xColumnViewRowGetActivatable, libs, "gtk_column_view_row_get_activatable") core.PuregoSafeRegister(&xColumnViewRowGetFocusable, libs, "gtk_column_view_row_get_focusable") core.PuregoSafeRegister(&xColumnViewRowGetItem, libs, "gtk_column_view_row_get_item") core.PuregoSafeRegister(&xColumnViewRowGetPosition, libs, "gtk_column_view_row_get_position") core.PuregoSafeRegister(&xColumnViewRowGetSelectable, libs, "gtk_column_view_row_get_selectable") core.PuregoSafeRegister(&xColumnViewRowGetSelected, libs, "gtk_column_view_row_get_selected") core.PuregoSafeRegister(&xColumnViewRowSetAccessibleDescription, libs, "gtk_column_view_row_set_accessible_description") core.PuregoSafeRegister(&xColumnViewRowSetAccessibleLabel, libs, "gtk_column_view_row_set_accessible_label") core.PuregoSafeRegister(&xColumnViewRowSetActivatable, libs, "gtk_column_view_row_set_activatable") core.PuregoSafeRegister(&xColumnViewRowSetFocusable, libs, "gtk_column_view_row_set_focusable") core.PuregoSafeRegister(&xColumnViewRowSetSelectable, libs, "gtk_column_view_row_set_selectable") }