|
| SectionModel (SectionModel &&src) noexcept |
|
SectionModel & | operator= (SectionModel &&src) noexcept |
|
| ~SectionModel () noexcept override |
|
GtkSectionModel * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GtkSectionModel * | gobj () const |
| Provides access to the underlying C GObject.
|
|
std::pair< guint, guint > | get_section (guint position) const |
| Query the section that covers the given position.
|
|
void | sections_changed (guint position, guint n_items) |
| This function emits the signal_sections_changed() signal to notify about changes to sections.
|
|
Glib::SignalProxy< void(guint, guint)> | signal_sections_changed () |
|
| Interface () |
|
| Interface (Interface &&src) noexcept |
|
Interface & | operator= (Interface &&src) noexcept |
|
| Interface (const Glib::Interface_Class &interface_class) |
|
| Interface (GObject *castitem) |
|
| ~Interface () noexcept override |
|
| Interface (const Interface &)=delete |
|
Interface & | operator= (const Interface &)=delete |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
|
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
|
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
|
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
|
PropertyType | get_property (const Glib::ustring &property_name) const |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void()> &slot) |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void()> &&slot) |
|
void | freeze_notify () |
|
void | thaw_notify () |
|
virtual void | reference () const |
|
virtual void | unreference () const |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
GObject * | gobj_copy () const |
|
| trackable () noexcept |
|
| trackable (const trackable &src) noexcept |
|
| trackable (trackable &&src) noexcept |
|
| ~trackable () |
|
void | add_destroy_notify_callback (notifiable *data, func_destroy_notify func) const |
|
void | notify_callbacks () |
|
trackable & | operator= (const trackable &src) |
|
trackable & | operator= (trackable &&src) noexcept |
|
void | remove_destroy_notify_callback (notifiable *data) const |
|
Interface that adds support for section to list models.
This support is then used by widgets using list models to be able to group their items into sections.
Many GTK list models support sections inherently, or they pass through the sections of a model they are wrapping.
A Gtk::SectionModel groups successive items into so-called sections. List widgets like Gtk::ListView then allow displaying section headers for these sections.
When the section groupings of a model changes, the model will emit signal_sections_changed() by calling the sections_changed() function. All sections in the given range now need to be queried again.
Gio::ListModel::signal_items_changed() has the same effect, all sections in that range are invalidated, too.
- See also
- Gio::ListModel, Gtk::ListView
- Since gtkmm 4.12:
void Gtk::SectionModel::sections_changed |
( |
guint |
position, |
|
|
guint |
n_items |
|
) |
| |
Glib::SignalProxy< void(guint, guint)> Gtk::SectionModel::signal_sections_changed |
( |
| ) |
|
- Slot Prototype:
void on_my_sections_changed(guint position, guint n_items)
Flags: Run Last
Emitted when the start-of-section state of some of the items in model changes.
Note that this signal does not specify the new section state of the items, they need to be queried manually. It is also not necessary for a model to change the section state of any of the items in the section model, though it would be rather useless to emit such a signal.
The Gio::ListModel::signal_items_changed() implies the effect of the signal_sections_changed() signal for all the items it covers.
- Since gtkmm 4.12:
- Parameters
-
position | The first item that may have changed. |
n_items | Number of items with changes. |