Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: ColumnViewCell

[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.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • ColumnViewCell (Handle = null)

    Creates a new ColumnViewCell by wrapping a native handle or another wrapper.

    • @p 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 exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asListItem ()

    Wraps this handle as ListItem.

    • @r 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.

    • @p Value is the new property value.
    • @r None.
  • setFocusable (bool Value)

    If the item can be focused with the keyboard.

    • @p Value is the new property value.
    • @r 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.

    • @p child is The list item's child or %NULL to unset.
    • @r 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.

    • @p focusable is if the item should be focusable.
    • @r None.

class: ColumnViewCellMeta

[232:14] static extends: object

Generated metadata helpers for ColumnViewCell class surfaces.

Methods

  • properties ()

    Returns property metadata for ColumnViewCell.

    • @r A list.