PreferencesGroup


Object Hierarchy:

Adw.PreferencesGroup Adw.PreferencesGroup Adw.PreferencesGroup Gtk.Widget Gtk.Widget Gtk.Widget->Adw.PreferencesGroup GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Adw.PreferencesGroup Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Adw.PreferencesGroup Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Adw.PreferencesGroup Gtk.ConstraintTarget->Gtk.Widget

Description:

[ CCode ( type_id = "adw_preferences_group_get_type ()" ) ]
public class PreferencesGroup : Widget, Accessible, Buildable, ConstraintTarget

A group of preference rows.

<picture> <source srcset="preferences-group-dark.png" media="(prefers-color-scheme: dark)"> <img src="preferences-group.png" alt="preferences-group"> </picture>

An `AdwPreferencesGroup` represents a group or tightly related preferences, which in turn are represented by [class@PreferencesRow].

To summarize the role of the preferences it gathers, a group can have both a title and a description. The title will be used by [ class@PreferencesWindow] to let the user look for a preference.

AdwPreferencesGroup as GtkBuildable

The `AdwPreferencesGroup` implementation of the [iface@Gtk.Buildable] interface supports adding [class@PreferencesRow]s to the list by omitting "type". If "type" is omitted and the widget isn't a [class@PreferencesRow] the child is added to a box below the list.

When the "type" attribute of a child is `header-suffix`, the child is set as the suffix on the end of the title and description.

CSS nodes

`AdwPreferencesGroup` has a single CSS node with name `preferencesgroup`.

Accessibility

`AdwPreferencesGroup` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.


Namespace: Adw
Package: libadwaita-1

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget