Basics
Guides
API Reference
Basics
Guides
API Reference
[21:7] extends: object
Represents items in a cell in [class@Gtk.ColumnView]. The
GtkColumnViewCells are managed by the [class@Gtk.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
[method@Gtk.ColumnViewCell.set_child]. GtkColumnViewCells exist in 2
stages: 1. The unbound stage where the listitem is not currently connected to
an item in the list. In that case, the [property@Gtk.ColumnViewCell:item]
property is set to %NULL. 2. The bound stage where the listitem references an
item from the list. The [property@Gtk.ColumnViewCell:item] property is not
%NULL.
ColumnViewCell (Handle = null)
Creates a new
ColumnViewCellby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asListItem ()
Wraps this handle as
ListItem.
A ListItem object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setChild (object Value)
Widget used for display.
Value is the new property value.None.setFocusable (bool Value)
If the item can be focused with the keyboard.
Value is the new property value.None.get_child ()
Gets the child previously set via gtk_column_view_cell_set_child() or %NULL if none was set.
get_focusable ()
Checks if a list item has been set to be focusable via gtk_column_view_cell_set_focusable().
get_item ()
Gets the model item that associated with @self. If @self is unbound, this function returns %NULL.
get_position ()
Gets the position in the model that @self currently displays. If @self is unbound, %GTK_INVALID_LIST_POSITION is returned.
get_selected ()
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.
set_child (object child)
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.
child is The list item's child or %NULL to unset.None.set_focusable (bool focusable)
Sets @self to be focusable. If an item is focusable, it can be focused using the keyboard. This works similar to [method@Gtk.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.
focusable is if the item should be focusable.None.[232:14] static extends: object
Generated metadata helpers for ColumnViewCell class surfaces.
properties ()
Returns property metadata for
ColumnViewCell.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.