Represents items in a cell in [classGtk.ColumnView].
The GtkColumnViewCells are managed by the [classGtk.ColumnView] widget (with its factory) and cannot be created by applications, but they need to be populated by application code. This is done by calling [methodGtk.ColumnViewCell.set_child].
GtkColumnViewCells exist in 2 stages:
The unbound stage where the listitem is not currently connected to an
item in the list. In that case, the [propertyGtk.ColumnViewCell:item] property is set to null.
The bound stage where the listitem references an item from the list.
The [propertyGtk.ColumnViewCell:item] property is not null.
Child_Property : constant Glib.Properties.Property_Object;
Type: Gtk.Widget.Gtk_Widget Widget used for display.
Focusable_Property : constant Glib.Properties.Property_Boolean;
If the item can be focused with the keyboard.
function Get_Child
(Self : not null access Gtk_Column_View_Cell_Record)
return Gtk.Widget.Gtk_Widget
Gets the child previously set via Gtk.Column_View_Cell.Set_Child or null if none was set. Since: gtk+ 4.12
The child. Has transfer-ownership='none'.
function Get_Focusable
(Self : not null access Gtk_Column_View_Cell_Record) return Boolean
Checks if a list item has been set to be focusable via Gtk.Column_View_Cell.Set_Focusable. Since: gtk+ 4.12
True if the item is focusable
function Get_Item
(Self : not null access Gtk_Column_View_Cell_Record)
return Glib.Object.GObject
Gets the model item that associated with Self. If Self is unbound, this function returns null. Since: gtk+ 4.12
The item displayed
function Get_Position
(Self : not null access Gtk_Column_View_Cell_Record) return Guint
Gets the position in the model that Self currently displays. If Self is unbound, GTK_INVALID_LIST_POSITION is returned. Since: gtk+ 4.12
The position of this item
function Get_Selected
(Self : not null access Gtk_Column_View_Cell_Record) return Boolean
Checks if the item is displayed as selected. The selected state is maintained by the list widget and its model and cannot be set otherwise. Since: gtk+ 4.12
True if the item is selected.
function Get_Type return Glib.GType
type Gtk_Column_View_Cell is access all Gtk_Column_View_Cell_Record'Class;
type Gtk_Column_View_Cell_Record is new Gtk_List_Item_Record with null record;
Item_Property : constant Glib.Properties.Property_Object;
Type: Glib.Object.GObject Displayed item.
Position_Property : constant Glib.Properties.Property_Uint;
Position of the item.
Selected_Property : constant Glib.Properties.Property_Boolean;
If the item is currently selected.
procedure Set_Child
(Self : not null access Gtk_Column_View_Cell_Record;
Child : access Gtk.Widget.Gtk_Widget_Record'Class)
Sets the child to be used for this listitem. This function is typically called by applications when setting up a listitem so that the widget can be reused when binding it multiple times. Since: gtk+ 4.12
The list item's child or null to unset
procedure Set_Focusable
(Self : not null access Gtk_Column_View_Cell_Record;
Focusable : Boolean)
Sets Self to be focusable. If an item is focusable, it can be focused using the keyboard. This works similar to [methodGtk.Widget.set_focusable]. Note that if items are not focusable, the keyboard cannot be used to activate them and selecting only works if one of the listitem's children is focusable. By default, list items are focusable. Since: gtk+ 4.12
if the item should be focusable