ListHeader

open class ListHeader(pointer: <Error class: unknown class><<Error class: unknown class>>)

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.

Since

4.12

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open var child: Widget?

Widget used for display.

Link copied to clipboard
open val end: <Error class: unknown class>

The first position no longer part of this section.

Link copied to clipboard
val gtkListHeaderPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val item: <Error class: unknown class>?

The item at the start of the section.

Link copied to clipboard
open val nItems: <Error class: unknown class>

Number of items in this section.

Link copied to clipboard
open val start: <Error class: unknown class>

First position of items in this section.

Functions

Link copied to clipboard
open fun getChild(): Widget?

Gets the child previously set via gtk_list_header_set_child() or null if none was set.

Link copied to clipboard
open fun getEnd(): <Error class: unknown class>

Gets the end position in the model of the section that @self is currently the header for.

Link copied to clipboard
open fun getItem(): <Error class: unknown class>?

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.

Link copied to clipboard
open fun getNItems(): <Error class: unknown class>

Gets the the number of items in the section.

Link copied to clipboard
open fun getStart(): <Error class: unknown class>

Gets the start position in the model of the section that @self is currently the header for.

Link copied to clipboard
open fun setChild(child: Widget? = null)

Sets the child to be used for this listitem.