Basics
Guides
API Reference
Basics
Guides
API Reference
[36:7] extends: object
The abstract base class for GTK's list widgets. # Shortcuts and Gestures
GtkListBase supports the following keyboard shortcuts: -
Ctrl+A or Ctrl+/ selects all
items. - Ctrl+Shift+A or
Ctrl+\ unselects all items. The focused item is
controlled by the navigation keys below, combined with the Ctrl
modifier to prevent moving the selection, and the Shift modifier
to extend the current selection. - ←, →, ↑,
↓ move the focus on the next item in the designed direction. -
Home and End focus the first or last item. -
PgUp and PgDn move the focus one page up or down. List
item widgets support the following keyboard shortcuts: - Enter
activates the item. - ␣ selects the item, with the same
Ctrl and Shift modifiers combinations as the navigation
keys. # Actions GtkListBase defines a set of built-in actions: -
list.scroll-to-item moves the visible area to the item at given position
with the minimum amount of scrolling required. If the item is already
visible, nothing happens. - list.select-item changes the selection. -
list.select-all selects all items in the model, if the selection model
supports it. - list.unselect-all unselects all items in the model, if the
selection model supports it. List item widgets install the following actions:
listitem.select changes selection if the item is selectable. -
listitem.scroll-to moves the visible area of the list to this item with the
minimum amount of scrolling required.GtkListBase (Handle = null)
Creates a new
ListBaseby 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.asWidget ()
Wraps this handle as
GtkWidget.
A GtkWidget object.asAccessible ()
Wraps this handle as
GtkAccessible.
A GtkAccessible object.asBuildable ()
Wraps this handle as
GtkBuildable.
A GtkBuildable object.asConstraintTarget ()
Wraps this handle as
GtkConstraintTarget.
A GtkConstraintTarget object.asOrientable ()
Wraps this handle as
GtkOrientable.
A GtkOrientable object.asScrollable ()
Wraps this handle as
GtkScrollable.
A GtkScrollable object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setOrientation (string Value)
The orientation of the list. See GtkOrientable:orientation for details.
Value is the new property value.None.[189:14] static extends: object
Generated metadata helpers for ListBase class surfaces.
properties ()
Returns property metadata for
ListBase.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.