Class: Gtk::ListBoxRow

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#activatableTrueClass

Gets the value of the Gtk::ListBoxRow:activatable property for this row.

Returns:

  • (TrueClass)

    true if the row is activatable

#activatable=(activatable) ⇒ TrueClass

The property determines whether the Gtk::ListBox::row-activated signal will be emitted for this row.

Parameters:

  • activatable (TrueClass)

Returns:

  • (TrueClass)

    activatable

  • (TrueClass)

    activatable

#activatable?TrueClass

The property determines whether the Gtk::ListBox::row-activated signal will be emitted for this row.

Returns:

  • (TrueClass)

    activatable

#changednil

Marks row as changed, causing any state that depends on this to be updated. This affects sorting, filtering and headers.

Note that calls to this method must be in sync with the data used for the row functions. For instance, if the list is mirroring some external data set, and two rows changed in the external data set then when you call gtk_list_box_row_changed() on the first row the sort function must only read the new data for the first of the two changed rows, otherwise the resorting of the rows will be wrong.

This generally means that if you don’t fully control the data model you have to duplicate the data that affects the listbox row functions into the row widgets themselves. Another alternative is to call gtk_list_box_invalidate_sort() on any model change, but that is more expensive.

Returns:

  • (nil)

#headerGtk::Widget

Returns the current header of the row. This can be used in a Gtk::ListBoxUpdateHeaderFunc to see if there is a header set already, and if so to update the state of it.

Returns:

#header=(header) ⇒ nil

Sets the current header of the row. This is only allowed to be called from a Gtk::ListBoxUpdateHeaderFunc. It will replace any existing header in the row, and be shown in front of the row in the listbox.

Parameters:

Returns:

  • (nil)

#indexInteger

Gets the current index of the row in its Gtk::ListBox container.

Returns:

  • (Integer)

    the index of the row, or -1 if the row is not in a listbox

#is_selectedTrueClass

Returns whether the child is currently selected in its Gtk::ListBox container.

Returns:

  • (TrueClass)

    true if row is selected

#newGtk::Widget

Creates a new Gtk::ListBoxRow, to be used as a child of a #GtkListBox.

Returns:

#selectableTrueClass

Gets the value of the Gtk::ListBoxRow:selectable property for this row.

Returns:

  • (TrueClass)

    true if the row is selectable

#selectable=(selectable) ⇒ TrueClass

The property determines whether this row can be selected.

Parameters:

  • selectable (TrueClass)

Returns:

  • (TrueClass)

    selectable

  • (TrueClass)

    selectable

#selectable?TrueClass

The property determines whether this row can be selected.

Returns:

  • (TrueClass)

    selectable