Class PreferencesRow

All Implemented Interfaces:
PointerInterface
Direct Known Subclasses:
ActionRow, EntryRow, ExpanderRow

public class PreferencesRow extends ListBoxRow
A [class@Gtk.ListBoxRow] used to present preferences.

The `AdwPreferencesRow` widget has a title that [class@PreferencesWindow]
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.

https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.PreferencesRow.html

  • Constructor Details

    • PreferencesRow

      public PreferencesRow(PointerContainer pointer)
    • PreferencesRow

      public PreferencesRow()
      Creates a new `AdwPreferencesRow`.
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getTitle

      public Str getTitle()
      Gets the title of the preference represented by @self.
      Returns:
      the title
    • getTitleSelectable

      public boolean getTitleSelectable()
      Gets whether the user can copy the title from the label
      Returns:
      whether the user can copy the title from the label
    • getUseMarkup

      public boolean getUseMarkup()
      Gets whether to use Pango markup for the title label.
      Returns:
      whether to use markup
    • getUseUnderline

      public boolean getUseUnderline()
      Gets whether an embedded underline in the title indicates a mnemonic.
      Returns:
      whether an embedded underline in the title indicates a mnemonic
    • setTitle

      public void setTitle(@Nonnull Str title)
      Sets the title of the preference represented by @self.

      The title is interpreted as Pango markup unless
      [property@PreferencesRow:use-markup] is set to `FALSE`.
      Parameters:
      title - the title
    • setTitle

      public void setTitle(String title)
      Sets the title of the preference represented by @self.

      The title is interpreted as Pango markup unless
      [property@PreferencesRow:use-markup] is set to `FALSE`.
      Parameters:
      title - the title
    • setTitleSelectable

      public void setTitleSelectable(boolean title_selectable)
      Sets whether the user can copy the title from the label

      See also [property@Gtk.Label:selectable].
      Parameters:
      title_selectable - `TRUE` if the user can copy the title from the label
    • setUseMarkup

      public void setUseMarkup(boolean use_markup)
      Sets whether to use Pango markup for the title label.

      Subclasses may also use it for other labels, such as subtitle.

      See also [func@Pango.parse_markup].
      Parameters:
      use_markup - whether to use markup
    • setUseUnderline

      public void setUseUnderline(boolean use_underline)
      Sets whether an embedded underline in the title indicates a mnemonic.
      Parameters:
      use_underline - `TRUE` if underlines in the text indicate mnemonics
    • asAccessible

      public Accessible asAccessible()
      Implements interface Accessible. Call this to get access to interface functions.
      Overrides:
      asAccessible in class ListBoxRow
      Returns:
      Accessible
    • asActionable

      public Actionable asActionable()
      Implements interface Actionable. Call this to get access to interface functions.
      Overrides:
      asActionable in class ListBoxRow
      Returns:
      Actionable
    • asBuildable

      public Buildable asBuildable()
      Implements interface Buildable. Call this to get access to interface functions.
      Overrides:
      asBuildable in class ListBoxRow
      Returns:
      Buildable
    • asConstraintTarget

      public ConstraintTarget asConstraintTarget()
      Implements interface ConstraintTarget. Call this to get access to interface functions.
      Overrides:
      asConstraintTarget in class ListBoxRow
      Returns:
      ConstraintTarget
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()