gtkmm 4.10.0
|
A listitem factory providing signals. More...
#include <gtkmm/signallistitemfactory.h>
Public Member Functions | |
SignalListItemFactory (SignalListItemFactory && src) noexcept | |
SignalListItemFactory & | operator= (SignalListItemFactory && src) noexcept |
~SignalListItemFactory () noexcept override | |
GtkSignalListItemFactory * | gobj () |
Provides access to the underlying C GObject. | |
const GtkSignalListItemFactory * | gobj () const |
Provides access to the underlying C GObject. | |
GtkSignalListItemFactory * | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
Glib::SignalProxy< void(const Glib::RefPtr< ListItem > &)> | signal_setup () |
Glib::SignalProxy< void(const Glib::RefPtr< ListItem > &)> | signal_bind () |
Glib::SignalProxy< void(const Glib::RefPtr< ListItem > &)> | signal_unbind () |
Glib::SignalProxy< void(const Glib::RefPtr< ListItem > &)> | signal_teardown () |
![]() | |
ListItemFactory (ListItemFactory && src) noexcept | |
ListItemFactory & | operator= (ListItemFactory && src) noexcept |
~ListItemFactory () noexcept override | |
GtkListItemFactory * | gobj () |
Provides access to the underlying C GObject. | |
const GtkListItemFactory * | gobj () const |
Provides access to the underlying C GObject. | |
GtkListItemFactory * | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
Static Public Member Functions | |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. | |
static Glib::RefPtr< SignalListItemFactory > | create () |
![]() | |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. | |
Protected Member Functions | |
SignalListItemFactory () | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Gtk::SignalListItemFactory > | wrap (GtkSignalListItemFactory * object, bool take_copy=false) |
A Glib::wrap() method for this object. | |
![]() | |
Glib::RefPtr< Gtk::ListItemFactory > | wrap (GtkListItemFactory * object, bool take_copy=false) |
A Glib::wrap() method for this object. | |
A listitem factory providing signals.
Gtk::SignalListItemFactory is a Gtk::ListItemFactory that provides signals that user code can connect to to manage listitems. Signals are emitted for every listitem in the same order:
signal_teardown() is emitted to allow undoing the effects of signal_setup(). After this signal was emitted on a listitem, the listitem will be destroyed and not be used again.
Note that during the signal emissions, changing properties on the Gtk::ListItems passed will not trigger notify signals as the listitem's notifications are frozen. See Glib::ObjectBase::freeze_notify() for details.
For tracking changes in other properties in the Gtk::ListItem, the Gtk::ListItem notify signal is recommended. The signal can be connected in the signal_setup() signal and removed again during signal_teardown().
|
noexcept |
|
overridenoexcept |
|
protected |
|
static |
|
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.
GtkSignalListItemFactory * Gtk::SignalListItemFactory::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
noexcept |
Glib::SignalProxy< void(const Glib::RefPtr< ListItem > &)> Gtk::SignalListItemFactory::signal_bind | ( | ) |
void on_my_bind(const Glib::RefPtr<ListItem>& list_item)
Flags: Run First
Emitted when an object has been bound, for example when a new Gtk::ListItem::property_item() has been set on a Gtk::ListItem
and should be bound for use.
After this signal was emitted, the object might be shown in a Gtk::ListView or other widget.
The signal_unbind() signal is the opposite of this signal and can be used to undo everything done in this signal.
list_item | The Glib::Object to bind. |
Glib::SignalProxy< void(const Glib::RefPtr< ListItem > &)> Gtk::SignalListItemFactory::signal_setup | ( | ) |
void on_my_setup(const Glib::RefPtr<ListItem>& list_item)
Flags: Run First
Emitted when a new listitem has been created and needs to be setup for use.
It is the first signal emitted for every listitem.
The signal_teardown() signal is the opposite of this signal and can be used to undo everything done in this signal.
list_item | The Glib::Object to set up. |
Glib::SignalProxy< void(const Glib::RefPtr< ListItem > &)> Gtk::SignalListItemFactory::signal_teardown | ( | ) |
void on_my_teardown(const Glib::RefPtr<ListItem>& list_item)
Flags: Run First
Emitted when an object is about to be destroyed.
It is the last signal ever emitted for this list_item.
This signal is the opposite of the signal_setup() signal and should be used to undo everything done in that signal.
list_item | The Glib::Object to tear down. |
Glib::SignalProxy< void(const Glib::RefPtr< ListItem > &)> Gtk::SignalListItemFactory::signal_unbind | ( | ) |
void on_my_unbind(const Glib::RefPtr<ListItem>& list_item)
Flags: Run First
Emitted when a object has been unbound from its item, for example when a listitem was removed from use in a list widget and its new Gtk::ListItem::property_item() is about to be unset.
This signal is the opposite of the signal_bind() signal and should be used to undo everything done in that signal.
list_item | The Glib::Object to unbind. |
|
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. |