adw.preferences_dialog

Module for [PreferencesDialog] class

Types 3

A dialog showing application's preferences.

preferences-dialog

The adw.preferences_dialog.PreferencesDialog widget presents an application's preferences gathered into pages and groups. The preferences are searchable by the user.

CSS nodes

adw.preferences_dialog.PreferencesDialog has a main CSS node with the name dialog and the style class .preferences.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
PreferencesDialog self() nothrowReturns `this`, for use in `with` statements.
PreferencesDialogGidBuilder builder() static nothrowGet builder for [adw.preferences_dialog.PreferencesDialog] Returns: New builder object
bool searchEnabled() @property nothrowGet `searchEnabled` property. Returns: Whether search is enabled.
void searchEnabled(bool propval) @property nothrowSet `searchEnabled` property. Params: propval = Whether search is enabled.
gtk.widget.Widget visiblePage() @property nothrowGet `visiblePage` property. Returns: The currently visible page.
void visiblePage(gtk.widget.Widget propval) @property nothrowSet `visiblePage` property. Params: propval = The currently visible page.
string visiblePageName() @property nothrowGet `visiblePageName` property. Returns: The name of the currently visible page.
void visiblePageName(string propval) @property nothrowSet `visiblePageName` property. Params: propval = The name of the currently visible page.
void add(adw.preferences_page.PreferencesPage page) nothrowAdds a preferences page to self.
void addToast(adw.toast.Toast toast) nothrowDisplays toast.
bool getSearchEnabled() nothrowGets whether search is enabled for self. Returns: whether search is enabled for self.
adw.preferences_page.PreferencesPage getVisiblePage() nothrowGets the currently visible page of self. Returns: the visible page
string getVisiblePageName() nothrowGets the name of currently visible page of self. Returns: the name of the visible page
bool popSubpage() nothrowPop the visible page from the subpage stack of self. Returns: `TRUE` if a page has been popped
void pushSubpage(adw.navigation_page.NavigationPage page) nothrowPushes page onto the subpage stack of self.
void remove(adw.preferences_page.PreferencesPage page) nothrowRemoves a page from self.
void setSearchEnabled(bool searchEnabled) nothrowSets whether search is enabled for self.
void setVisiblePage(adw.preferences_page.PreferencesPage page) nothrowMakes page the visible page of self.
void setVisiblePageName(string name) nothrowMakes the page with the given name visible.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [adw.preferences_dialog.PreferencesDialog]. Returns: the newly created [adw.preferences_dialog.PreferencesDialog]

Fluent builder implementation template for adw.preferences_dialog.PreferencesDialog

Methods
T searchEnabled(bool propval) nothrowSet `searchEnabled` property. Params: propval = Whether search is enabled. Returns: Builder instance for fluent chaining
T visiblePage(gtk.widget.Widget propval) nothrowSet `visiblePage` property. Params: propval = The currently visible page. Returns: Builder instance for fluent chaining
T visiblePageName(string propval) nothrowSet `visiblePageName` property. Params: propval = The name of the currently visible page.