gtkmm 4.16.0
|
Gtk::ColumnViewRow is used by Gtk::ColumnView to allow configuring how rows are displayed. More...
#include <gtkmm/columnviewrow.h>
Public Member Functions | |
ColumnViewRow (ColumnViewRow &&src) noexcept | |
ColumnViewRow & | operator= (ColumnViewRow &&src) noexcept |
~ColumnViewRow () noexcept override | |
GtkColumnViewRow * | gobj () |
Provides access to the underlying C GObject. | |
const GtkColumnViewRow * | gobj () const |
Provides access to the underlying C GObject. | |
GtkColumnViewRow * | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
Glib::RefPtr< Glib::ObjectBase > | get_item () |
Gets the model item that associated with self. | |
Glib::RefPtr< const Glib::ObjectBase > | get_item () const |
Gets the model item that associated with self. | |
guint | get_position () const |
Gets the position in the model that self currently displays. | |
bool | get_selected () const |
Checks if the item is selected that this row corresponds to. | |
bool | get_selectable () const |
Checks if the row has been set to be selectable via set_selectable(). | |
void | set_selectable (bool selectable=true) |
Sets self to be selectable. | |
bool | get_activatable () const |
Checks if the row has been set to be activatable via set_activatable(). | |
void | set_activatable (bool activatable=true) |
Sets self to be activatable. | |
bool | get_focusable () const |
Checks if a row item has been set to be focusable via set_focusable(). | |
void | set_focusable (bool focusable=true) |
Sets self to be focusable. | |
Glib::ustring | get_accessible_description () const |
Gets the accessible description of self. | |
void | gtk_set_accessible_description (const Glib::ustring & description) |
Sets the accessible description for the row, which may be used by e.g. screen readers. | |
Glib::ustring | get_accessible_label () const |
Gets the accessible label of self. | |
void | gtk_set_accessible_label (const Glib::ustring &label) |
Sets the accessible label for the row, which may be used by e.g. screen readers. | |
Glib::PropertyProxy< Glib::ustring > | property_accessible_description () |
The accessible description to set on the row. | |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_accessible_description () const |
The accessible description to set on the row. | |
Glib::PropertyProxy< Glib::ustring > | property_accessible_label () |
The accessible label to set on the row. | |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_accessible_label () const |
The accessible label to set on the row. | |
Glib::PropertyProxy< bool > | property_activatable () |
If the row can be activated by the user. | |
Glib::PropertyProxy_ReadOnly< bool > | property_activatable () const |
If the row can be activated by the user. | |
Glib::PropertyProxy< bool > | property_focusable () |
If the row can be focused with the keyboard. | |
Glib::PropertyProxy_ReadOnly< bool > | property_focusable () const |
If the row can be focused with the keyboard. | |
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Glib::ObjectBase > > | property_item () const |
The item for this row. | |
Glib::PropertyProxy_ReadOnly< guint > | property_position () const |
Position of the row. | |
Glib::PropertyProxy< bool > | property_selectable () |
If the row can be selected by the user. | |
Glib::PropertyProxy_ReadOnly< bool > | property_selectable () const |
If the row can be selected by the user. | |
Glib::PropertyProxy_ReadOnly< bool > | property_selected () const |
If the item in the row is currently selected. | |
Static Public Member Functions | |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. | |
Related Symbols | |
(Note that these are not member symbols.) | |
Glib::RefPtr< Gtk::ColumnViewRow > | wrap (GtkColumnViewRow *object, bool take_copy=false) |
A Glib::wrap() method for this object. | |
Gtk::ColumnViewRow is used by Gtk::ColumnView to allow configuring how rows are displayed.
It is not used to set the widgets displayed in the individual cells. For that see Gtk::ColumnViewColumn::set_factory() and Gtk::ColumnViewCell.
|
noexcept |
|
overridenoexcept |
Glib::ustring Gtk::ColumnViewRow::get_accessible_description | ( | ) | const |
Glib::ustring Gtk::ColumnViewRow::get_accessible_label | ( | ) | const |
bool Gtk::ColumnViewRow::get_activatable | ( | ) | const |
Checks if the row has been set to be activatable via set_activatable().
true
if the row is activatable. bool Gtk::ColumnViewRow::get_focusable | ( | ) | const |
Checks if a row item has been set to be focusable via set_focusable().
true
if the row is focusable. Glib::RefPtr< Glib::ObjectBase > Gtk::ColumnViewRow::get_item | ( | ) |
Gets the model item that associated with self.
If self is unbound, this function returns nullptr
.
Glib::RefPtr< const Glib::ObjectBase > Gtk::ColumnViewRow::get_item | ( | ) | const |
Gets the model item that associated with self.
If self is unbound, this function returns nullptr
.
guint Gtk::ColumnViewRow::get_position | ( | ) | const |
Gets the position in the model that self currently displays.
If self is unbound, GTK_INVALID_LIST_POSITION is returned.
bool Gtk::ColumnViewRow::get_selectable | ( | ) | const |
Checks if the row has been set to be selectable via set_selectable().
Do not confuse this function with get_selected().
true
if the row is selectable. bool Gtk::ColumnViewRow::get_selected | ( | ) | const |
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.
true
if the item is selected.
|
static |
Get the GType for this class, for use with the underlying GObject type system.
|
inline |
Provides access to the underlying C GObject.
|
inline |
Provides access to the underlying C GObject.
GtkColumnViewRow * Gtk::ColumnViewRow::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Sets the accessible description for the row, which may be used by e.g. screen readers.
description | The description. |
Sets the accessible label for the row, which may be used by e.g. screen readers.
label | The label. |
|
noexcept |
Glib::PropertyProxy< Glib::ustring > Gtk::ColumnViewRow::property_accessible_description | ( | ) |
The accessible description to set on the row.
Default value: ""
Glib::PropertyProxy_ReadOnly< Glib::ustring > Gtk::ColumnViewRow::property_accessible_description | ( | ) | const |
The accessible description to set on the row.
Default value: ""
Glib::PropertyProxy< Glib::ustring > Gtk::ColumnViewRow::property_accessible_label | ( | ) |
The accessible label to set on the row.
Default value: ""
Glib::PropertyProxy_ReadOnly< Glib::ustring > Gtk::ColumnViewRow::property_accessible_label | ( | ) | const |
The accessible label to set on the row.
Default value: ""
Glib::PropertyProxy< bool > Gtk::ColumnViewRow::property_activatable | ( | ) |
If the row can be activated by the user.
Default value: true
Glib::PropertyProxy_ReadOnly< bool > Gtk::ColumnViewRow::property_activatable | ( | ) | const |
If the row can be activated by the user.
Default value: true
Glib::PropertyProxy< bool > Gtk::ColumnViewRow::property_focusable | ( | ) |
If the row can be focused with the keyboard.
Default value: true
Glib::PropertyProxy_ReadOnly< bool > Gtk::ColumnViewRow::property_focusable | ( | ) | const |
If the row can be focused with the keyboard.
Default value: true
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Glib::ObjectBase > > Gtk::ColumnViewRow::property_item | ( | ) | const |
The item for this row.
Glib::PropertyProxy_ReadOnly< guint > Gtk::ColumnViewRow::property_position | ( | ) | const |
Position of the row.
Default value: 4294967295
Glib::PropertyProxy< bool > Gtk::ColumnViewRow::property_selectable | ( | ) |
If the row can be selected by the user.
Default value: true
Glib::PropertyProxy_ReadOnly< bool > Gtk::ColumnViewRow::property_selectable | ( | ) | const |
If the row can be selected by the user.
Default value: true
Glib::PropertyProxy_ReadOnly< bool > Gtk::ColumnViewRow::property_selected | ( | ) | const |
If the item in the row is currently selected.
Default value: false
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 Gtk::ColumnView::signal_activate() signal.
By default, row are activatable.
activatable | If the row should be activatable. |
Sets self to be focusable.
If a row is focusable, it can be focused using the keyboard. This works similar to 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.
focusable | If the row should be focusable. |
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.
selectable | If the row should be selectable. |
|
related |
A Glib::wrap() method for this object.
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |