Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: object
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.
ListHeader (Handle = null)
Creates a new
ListHeaderby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
Object.
A Object object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setChild (object Value)
Widget used for display.
Value is the new property value.None.get_child ()
Gets the child previously set via gtk_list_header_set_child() or %NULL 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, %GTK_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 [property@Gtk.ListHeader:start]. If
is unbound, this function returns %NULL.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, %GTK_INVALID_LIST_POSITION is returned.
set_child (object 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.
child is The list item's child or %NULL to unset.None.[196:14] static extends: object
Generated metadata helpers for ListHeader class surfaces.
properties ()
Returns property metadata for
ListHeader.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.