file: listbox.aus

class: GtkListBoxMovecursorCallback

[962:7] extends: object

Generated low-level callback wrapper for GIR callback move-cursor.

Members

Methods

class: GtkListBoxRowselectedCallback

[1106:7] extends: object

Generated low-level callback wrapper for GIR callback row-selected.

Members

Methods

class: GtkListBoxActivatecursorrowCallback

[892:7] extends: object

Generated low-level callback wrapper for GIR callback activate-cursor-row.

Members

Methods

class: GtkListBoxTogglecursorrowCallback

[1318:7] extends: object

Generated low-level callback wrapper for GIR callback toggle-cursor-row.

Members

Methods

class: GtkListBoxMeta

[1458:14] static extends: object

Generated metadata helpers for ListBox class surfaces.

Methods

class: GtkListBoxRowactivatedCallback

[1035:7] extends: object

Generated low-level callback wrapper for GIR callback row-activated.

Members

Methods

class: GtkListBoxUnselectallCallback

[1388:7] extends: object

Generated low-level callback wrapper for GIR callback unselect-all.

Members

Methods

class: GtkListBoxSelectedrowschangedCallback

[1248:7] extends: object

Generated low-level callback wrapper for GIR callback selected-rows-changed.

Members

Methods

class: GtkListBoxSelectallCallback

[1177:7] extends: object

Generated low-level callback wrapper for GIR callback select-all.

Members

Methods

class: GtkListBox

[48:7] extends: object

Shows a vertical list. An example GtkListBox A GtkListBox only contains GtkListBoxRow children. These rows can by dynamically sorted and filtered, and headers can be added dynamically depending on the row content. It also allows keyboard and mouse navigation and selection like a typical list. Using GtkListBox is often an alternative to GtkTreeView, especially when the list contents has a more complicated layout than what is allowed by a GtkCellRenderer, or when the contents is interactive (i.e. has a button in it). Although a GtkListBox must have only GtkListBoxRow children, you can add any kind of widget to it via [method@Gtk.ListBox.prepend], [method@Gtk.ListBox.append] and [method@Gtk.ListBox.insert] and a GtkListBoxRow widget will automatically be inserted between the list and the widget. GtkListBoxRows can be marked as activatable or selectable. If a row is activatable, [signal@Gtk.ListBox::row-activated] will be emitted for it when the user tries to activate it. If it is selectable, the row will be marked as selected when the user tries to select it. # GtkListBox as GtkBuildable The GtkListBox implementation of the GtkBuildable interface supports setting a child as the placeholder by specifying “placeholder” as the “type” attribute of a <child> element. See [method@Gtk.ListBox.set_placeholder] for info. # Shortcuts and Gestures The following signals have default keybindings: - [signal@Gtk.ListBox::move-cursor] - [signal@Gtk.ListBox::select-all] - [signal@Gtk.ListBox::toggle-cursor-row] - [signal@Gtk.ListBox::unselect-all] # CSS nodes list[.separators][.rich-list][.navigation-sidebar][.boxed-list] ╰── row[.activatable] GtkListBox uses a single CSS node named list. It may carry the .separators style class, when the [property@Gtk.ListBox:show-separators] property is set. Each GtkListBoxRow uses a single CSS node named row. The row nodes get the .activatable style class added when appropriate. It may also carry the .boxed-list style class. In this case, the list will be automatically surrounded by a frame and have separators. The main list node may also carry style classes to select the style of list presentation: .rich-list, .navigation-sidebar or .data-table. # Accessibility GtkListBox uses the [enum@Gtk.AccessibleRole.list] role and GtkListBoxRow uses the [enum@Gtk.AccessibleRole.list_item] role.

Members

Methods