Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: ColumnViewRow

[14:7] extends: object

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

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • ColumnViewRow (Handle = null)

    Creates a new ColumnViewRow 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.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setAccessibledescription (string Value)

    The accessible description to set on the row.

    • @p Value is the new property value.
    • @r None.
  • setAccessiblelabel (string Value)

    The accessible label to set on the row.

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

    If the row can be activated by the user.

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

    If the row can be focused with the keyboard.

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

    If the row can be selected by the user.

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

    Gets the accessible description of @self.

  • get_accessible_label ()

    Gets the accessible label of @self.

  • get_activatable ()

    Checks if the row has been set to be activatable via gtk_column_view_row_set_activatable().

  • get_focusable ()

    Checks if a row item has been set to be focusable via gtk_column_view_row_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_selectable ()

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

  • get_selected ()

    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.

  • set_accessible_description (string description)

    Sets the accessible description for the row, which may be used by e.g. screen readers.

    • @p description is the description.
    • @r None.
  • set_accessible_label (string label)

    Sets the accessible label for the row, which may be used by e.g. screen readers.

    • @p label is the label.
    • @r None.
  • set_activatable (bool activatable)

    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.

    • @p activatable is if the row should be activatable.
    • @r None.
  • set_focusable (bool focusable)

    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.

    • @p focusable is if the row should be focusable.
    • @r None.
  • set_selectable (bool selectable)

    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.

    • @p selectable is if the row should be selectable.
    • @r None.

class: ColumnViewRowMeta

[341:14] static extends: object

Generated metadata helpers for ColumnViewRow class surfaces.

Methods

  • properties ()

    Returns property metadata for ColumnViewRow.

    • @r A list.