PreferencesRow

A gtk.list_box_row.ListBoxRow used to present preferences.

The adw.preferences_row.PreferencesRow widget has a title that class@PreferencesDialog will use to let the user look for a preference. It doesn't present the title in any way and lets you present the preference as you please.

class@ActionRow and its derivatives are convenient to use as preference rows as they take care of presenting the preference's title while letting you compose the inputs of the preference around it.

Constructors

this
this()

Creates a new adw.preferences_row.PreferencesRow.

Members

Functions

getTitle
string getTitle()

Gets the title of the preference represented by self.

getTitleSelectable
bool getTitleSelectable()

Gets whether the user can copy the title from the label

getUseMarkup
bool getUseMarkup()

Gets whether to use Pango markup for the title label.

getUseUnderline
bool getUseUnderline()

Gets whether an embedded underline in the title indicates a mnemonic.

setTitle
void setTitle(string title)

Sets the title of the preference represented by self.

setTitleSelectable
void setTitleSelectable(bool titleSelectable)

Sets whether the user can copy the title from the label

setUseMarkup
void setUseMarkup(bool useMarkup)

Sets whether to use Pango markup for the title label.

setUseUnderline
void setUseUnderline(bool useUnderline)

Sets whether an embedded underline in the title indicates a mnemonic.

Inherited Members

From ListBoxRow

changed
void changed()

Marks row as changed, causing any state that depends on this to be updated.

getActivatable
bool getActivatable()

Gets whether the row is activatable.

getChild
gtk.widget.Widget getChild()

Gets the child widget of row.

getHeader
gtk.widget.Widget getHeader()

Returns the current header of the row.

getIndex
int getIndex()

Gets the current index of the row in its gtk.list_box.ListBox container.

getSelectable
bool getSelectable()

Gets whether the row can be selected.

isSelected
bool isSelected()

Returns whether the child is currently selected in its gtk.list_box.ListBox container.

setActivatable
void setActivatable(bool activatable)

Set whether the row is activatable.

setChild
void setChild(gtk.widget.Widget child)

Sets the child widget of self.

setHeader
void setHeader(gtk.widget.Widget header)

Sets the current header of the row.

setSelectable
void setSelectable(bool selectable)

Set whether the row can be selected.

connectActivate
ulong connectActivate(T callback, Flag!"After" after)

Connect to Activate signal.