Gtk.ColumnViewRow¶
class — extends GObject.Object
Configures how rows are displayed in a ColumnView.
It is not used to set the widgets displayed in the individual cells. For that
see GtkColumnViewColumn.set_factory and GtkColumnViewCell.
Methods¶
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
ColumnViewRow.set_activatable.
get_focusable¶
Checks if a row item has been set to be focusable via
ColumnViewRow.set_focusable.
get_item¶
Gets the model item that associated with self.
If self is unbound, this function returns None.
get_position¶
Gets the position in the model that self currently displays.
If self is unbound, INVALID_LIST_POSITION is returned.
get_selectable¶
Checks if the row has been set to be selectable via
ColumnViewRow.set_selectable.
Do not confuse this function with 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¶
Sets the accessible description for the row, which may be used by e.g. screen readers.
Parameters:
description— the description
set_accessible_label¶
Sets the accessible label for the row, which may be used by e.g. screen readers.
Parameters:
label— the label
set_activatable¶
Sets self to be activatable.
If a row is activatable, double-clicking on the row, using
the Return key or calling Widget.activate will activate
the row. Activating instructs the containing columnview to
emit the ColumnView.activate signal.
By default, row are activatable.
Parameters:
activatable— if the row should be activatable
set_focusable¶
Sets self to be focusable.
If a row is focusable, it can be focused using the keyboard.
This works similar to 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.
Parameters:
focusable— if the row should be focusable
set_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.
Parameters:
selectable— if the row should be selectable
Properties¶
accessible_description¶
The accessible description to set on the row.
accessible_label¶
The accessible label to set on the row.
activatable¶
If the row can be activated by the user.
focusable¶
If the row can be focused with the keyboard.
item¶
The item for this row.
position¶
Position of the row.
selectable¶
If the row can be selected by the user.
selected¶
If the item in the row is currently selected.