Gtk.ListHeader¶
class — extends GObject.Object
Used by list widgets to represent the headers they display.
GtkListHeader objects are managed just like ListItem
objects via their factory, but provide a different set of properties suitable
for managing the header instead of individual items.
Methods¶
get_child¶
Gets the child previously set via ListHeader.set_child or
None if none was set.
get_end¶
Gets the end position in the model of the section that self is
currently the header for.
If self is unbound, INVALID_LIST_POSITION is returned.
get_item¶
Gets the model item at the start of the section.
This is the item that occupies the list model at position
ListHeader.start.
If self is unbound, this function returns None.
get_n_items¶
Gets the the number of items in the section.
If self is unbound, 0 is returned.
get_start¶
Gets the start position in the model of the section that self is
currently the header for.
If self is unbound, INVALID_LIST_POSITION is returned.
set_child¶
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.
Parameters:
child— The list item's child orNoneto unset
Properties¶
child¶
Widget used for display.
end¶
The first position no longer part of this section.
item¶
The item at the start of the section.
n_items¶
Number of items in this section.
start¶
First position of items in this section.