PreferencesDialog

open class PreferencesDialog(pointer: <Error class: unknown class><<Error class: unknown class>>) : Dialog

A dialog showing application's preferences.

preferences-dialog

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

CSS nodes

AdwPreferencesDialog has a main CSS node with the name dialog and the style class .preferences.

Skipped during bindings generation

  • method visible-page: Property TypeInfo of getter and setter do not match

  • method visible-page-name: Property TypeInfo of getter and setter do not match

Since

1.5

Constructors

Link copied to clipboard
constructor()

Creates a new AdwPreferencesDialog.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adwDialogPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val adwPreferencesDialogPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var canClose: Boolean

Whether the dialog can be closed.

Link copied to clipboard
open var child: <Error class: unknown class>?

The child widget of the AdwDialog.

Link copied to clipboard
open var contentHeight: Int

The height of the dialog's contents.

Link copied to clipboard
open var contentWidth: Int

The width of the dialog's contents.

Link copied to clipboard

The current breakpoint.

Link copied to clipboard
open var defaultWidget: <Error class: unknown class>?

The default widget.

Link copied to clipboard
open var focusWidget: <Error class: unknown class>?

The focus widget.

Link copied to clipboard

Whether to size content automatically.

Link copied to clipboard
open override val gtkAccessiblePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkBuildablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkConstraintTargetPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

The dialog's presentation mode.

Link copied to clipboard

Whether search is enabled.

Link copied to clipboard
open var title: String

The title of the dialog.

Functions

Link copied to clipboard
open fun add(page: PreferencesPage)

Adds a preferences page to @self.

Link copied to clipboard
open fun addBreakpoint(breakpoint: Breakpoint)

Adds @breakpoint to @self.

Link copied to clipboard
open fun addToast(toast: Toast)

Displays @toast.

Link copied to clipboard
open fun close(): Boolean

Attempts to close @self.

Link copied to clipboard
fun connectCloseAttempt(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the close button or shortcut is used, or method@Dialog.close is called while property@Dialog:can-close is set to FALSE.

Link copied to clipboard
fun connectClosed(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the dialog is successfully closed.

Link copied to clipboard
open fun forceClose()

Closes @self.

Link copied to clipboard
open fun getCanClose(): Boolean

Gets whether @self can be closed.

Link copied to clipboard
open fun getChild(): <Error class: unknown class>?

Gets the child widget of @self.

Link copied to clipboard
open fun getContentHeight(): Int

Gets the height of the dialog's contents.

Link copied to clipboard
open fun getContentWidth(): Int

Gets the width of the dialog's contents.

Link copied to clipboard

Gets the current breakpoint.

Link copied to clipboard
open fun getDefaultWidget(): <Error class: unknown class>?

Gets the default widget for @self.

Link copied to clipboard
open fun getFocus(): <Error class: unknown class>?

Gets the focus widget for @self.

Link copied to clipboard

Gets whether to size content of @self automatically.

Link copied to clipboard

Gets presentation mode for @self.

Link copied to clipboard

Gets whether search is enabled for @self.

Link copied to clipboard
open fun getTitle(): String

Gets the title of @self.

Link copied to clipboard

Gets the currently visible page of @self.

Link copied to clipboard

Gets the name of currently visible page of @self.

Link copied to clipboard
open fun popSubpage(): Boolean

Pop the visible page from the subpage stack of @self.

Link copied to clipboard
open fun present(parent: <Error class: unknown class>? = null)

Presents @self within @parent's window.

Link copied to clipboard
open fun pushSubpage(page: NavigationPage)

Pushes @page onto the subpage stack of @self.

Link copied to clipboard
open fun remove(page: PreferencesPage)

Removes a page from @self.

Link copied to clipboard
open fun setCanClose(canClose: Boolean)

Sets whether @self can be closed.

Link copied to clipboard
open fun setChild(child: <Error class: unknown class>? = null)

Sets the child widget of @self.

Link copied to clipboard
open fun setContentHeight(contentHeight: Int)

Sets the height of the dialog's contents.

Link copied to clipboard
open fun setContentWidth(contentWidth: Int)

Sets the width of the dialog's contents.

Link copied to clipboard
open fun setDefaultWidget(defaultWidget: <Error class: unknown class>? = null)

Sets the default widget for @self.

Link copied to clipboard
open fun setFocus(focus: <Error class: unknown class>? = null)

Sets the focus widget for @self.

Link copied to clipboard
open fun setFollowsContentSize(followsContentSize: Boolean)

Sets whether to size content of @self automatically.

Link copied to clipboard
open fun setPresentationMode(presentationMode: DialogPresentationMode)

Sets presentation mode for @self.

Link copied to clipboard
open fun setSearchEnabled(searchEnabled: Boolean)

Sets whether search is enabled for @self.

Link copied to clipboard
open fun setTitle(title: String)

Sets the title of @self.

Link copied to clipboard

Makes @page the visible page of @self.

Link copied to clipboard
open fun setVisiblePageName(name: String)

Makes the page with the given name visible.