1.113 <GtkListHeader>

Class: <GtkListHeader>

It derives from <GObject>.

Used by list widgets to represent the headers they display.

<GtkListHeader> objects are managed just like <GtkListItem> objects via their factory, but provide a different set of properties suitable for managing the header instead of individual items.

Properties

Property: list-header:child self

Widget used for display.

Its value is a <GtkWidget>, or #f.

Set it with (set! (list-header:child self) value).

Property: list-header:end self

The first position no longer part of this section.

Its value is an unsigned 32-bit integer.

It is read only.

Property: list-header:item self

The item at the start of the section.

Its value is a <GObject>, or #f.

It is read only.

Property: list-header:n-items self

Number of items in this section.

Its value is an unsigned 32-bit integer.

It is read only.

Property: list-header:start self

First position of items in this section.

Its value is an unsigned 32-bit integer.

It is read only.

Procedures

Method: list-header:get-child self ⇒ %return
Method: get-child self ⇒ %return

Gets the child previously set via list-header:set-child or #f if none was set.

self

Passed: a <GtkListHeader>.

a <GtkListHeader>

%return

Returned: a <GtkWidget>, or #f.

The child

Method: list-header:get-end self ⇒ %return
Method: get-end self ⇒ %return

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.

self

Passed: a <GtkListHeader>.

a <GtkListHeader>

%return

Returned: an unsigned 32-bit integer.

The end position of the section

Method: list-header:get-item self ⇒ %return
Method: get-item self ⇒ %return

Gets the model item at the start of the section. This is the item that occupies the list model at position list-header:start.

If self is unbound, this function returns #f.

self

Passed: a <GtkListHeader>.

a <GtkListHeader>

%return

Returned: a <GObject>, or #f.

The item displayed

Method: list-header:get-n-items self ⇒ %return
Method: get-n-items self ⇒ %return

Gets the the number of items in the section.

If self is unbound, 0 is returned.

self

Passed: a <GtkListHeader>.

a <GtkListHeader>

%return

Returned: an unsigned 32-bit integer.

The number of items in the section

Method: list-header:get-start self ⇒ %return
Method: get-start self ⇒ %return

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.

self

Passed: a <GtkListHeader>.

a <GtkListHeader>

%return

Returned: an unsigned 32-bit integer.

The start position of the section

Method: list-header:set-child self [child]
Method: set-child self [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.

self

Passed: a <GtkListHeader>.

a <GtkListHeader>

child

Passed, or left out: a <GtkWidget>, or #f.

The list item’s child or #f to unset