gtkmm 4.18.0
|
Gtk::ListHeader is used by list widgets to represent the headers they display. More...
#include <gtkmm/listheader.h>
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::ListHeader > | wrap (GtkListHeader *object, bool take_copy=false) |
A Glib::wrap() method for this object. | |
Additional Inherited Members | |
![]() | |
typedef void(*)(gpointer data | DestroyNotify) |
![]() | |
typedef internal::func_destroy_notify | func_destroy_notify |
![]() | |
typedef internal::func_destroy_notify | func_destroy_notify |
![]() | |
Object () | |
Object (const Glib::ConstructParams &construct_params) | |
Object (GObject *castitem) | |
~Object () noexcept override | |
![]() | |
ObjectBase () | |
ObjectBase (const char *custom_type_name) | |
ObjectBase (const std::type_info &custom_type_info) | |
ObjectBase (ObjectBase &&src) noexcept | |
ObjectBase & | operator= (ObjectBase &&src) noexcept |
virtual | ~ObjectBase () noexcept=0 |
void | initialize (GObject *castitem) |
void | initialize_move (GObject *castitem, Glib::ObjectBase *previous_wrapper) |
Gtk::ListHeader is used by list widgets to represent the headers they display.
The Gtk::ListHeaders are managed just like Gtk::ListItems via their factory, but provide a different set of properties suitable for managing the header instead of individual items.
|
noexcept |
|
overridenoexcept |
Widget * Gtk::ListHeader::get_child | ( | ) |
Gets the child previously set via set_child() or nullptr
if none was set.
Gets the child previously set via set_child() or nullptr
if none was set.
guint Gtk::ListHeader::get_end | ( | ) | const |
Gets the end position in the model of the section that self is currently the header for.
If self is unbound, GTK_INVALID_LIST_POSITION is returned.
Glib::RefPtr< Glib::ObjectBase > Gtk::ListHeader::get_item | ( | ) |
Gets the model item at the start of the section.
This is the item that occupies the list model at position property_start().
If self is unbound, this function returns nullptr
.
Glib::RefPtr< const Glib::ObjectBase > Gtk::ListHeader::get_item | ( | ) | const |
Gets the model item at the start of the section.
This is the item that occupies the list model at position property_start().
If self is unbound, this function returns nullptr
.
guint Gtk::ListHeader::get_n_items | ( | ) | const |
Gets the the number of items in the section.
If self is unbound, 0 is returned.
guint Gtk::ListHeader::get_start | ( | ) | const |
Gets the start position in the model of the section that self is currently the header for.
If self is unbound, GTK_INVALID_LIST_POSITION is returned.
|
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.
GtkListHeader * Gtk::ListHeader::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::PropertyProxy< Widget * > Gtk::ListHeader::property_child | ( | ) |
Widget used for display.
Glib::PropertyProxy_ReadOnly< Widget * > Gtk::ListHeader::property_child | ( | ) | const |
Widget used for display.
Glib::PropertyProxy_ReadOnly< guint > Gtk::ListHeader::property_end | ( | ) | const |
The first position no longer part of this section.
Default value: 4294967295
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Glib::ObjectBase > > Gtk::ListHeader::property_item | ( | ) | const |
The item at the start of the section.
Glib::PropertyProxy_ReadOnly< guint > Gtk::ListHeader::property_n_items | ( | ) | const |
Number of items in this section.
Default value: 0
Glib::PropertyProxy_ReadOnly< guint > Gtk::ListHeader::property_start | ( | ) | const |
First position of items in this section.
Default value: 4294967295
Sets the child to be used for this listitem.
This function is typically called by applications when setting up a header so that the widget can be reused when binding it multiple times.
child | The list item's child or nullptr to unset. |
void Gtk::ListHeader::unset_child | ( | ) |
|
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. |