Gtk.ListHeader¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/en |
|||
r/en |
|||
r/en |
|||
r/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.ListHeader(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GtkListHeader
is used by list widgets to represent the headers they display.GtkListHeader
objects are managed just like [class`Gtk`.ListItem] objects via their factory, but provide a different set of properties suitable for managing the header instead of individual items.New in version 4.12.
- get_child()[source]¶
- Returns:
The child
- Return type:
Gtk.Widget
orNone
Gets the child previously set via
Gtk.ListHeader.set_child
() orNone
if none was set.New in version 4.12.
- get_end()[source]¶
- Returns:
The end position of the section
- Return type:
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.New in version 4.12.
- get_item()[source]¶
- Returns:
The item displayed
- Return type:
Gets the model item at the start of the section. This is the item that occupies the list model at position [property`Gtk`.ListHeader:start].
If self is unbound, this function returns
None
.New in version 4.12.
- get_n_items()[source]¶
- Returns:
The number of items in the section
- Return type:
Gets the the number of items in the section.
If self is unbound, 0 is returned.
New in version 4.12.
- get_start()[source]¶
- Returns:
The start position of the section
- Return type:
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.New in version 4.12.
- set_child(child)[source]¶
- Parameters:
child (
Gtk.Widget
orNone
) – The list item’s child orNone
to unset
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.
New in version 4.12.
Property Details¶
- Gtk.ListHeader.props.child¶
- Name:
child
- Type:
- Default Value:
- Flags:
Widget used for display.
New in version 4.12.
- Gtk.ListHeader.props.end¶
- Name:
end
- Type:
- Default Value:
4294967295
- Flags:
The first position no longer part of this section.
New in version 4.12.
- Gtk.ListHeader.props.item¶
- Name:
item
- Type:
- Default Value:
- Flags:
The item at the start of the section.
New in version 4.12.
- Gtk.ListHeader.props.n_items¶
- Name:
n-items
- Type:
- Default Value:
0
- Flags:
Number of items in this section.
New in version 4.12.
- Gtk.ListHeader.props.start¶
- Name:
start
- Type:
- Default Value:
4294967295
- Flags:
First position of items in this section.
New in version 4.12.