Class: Handy::ActionRow

Inherits:
PreferencesRow show all
Defined in:
(unknown)

Direct Known Subclasses

ComboRow

Instance Method Summary collapse

Methods inherited from PreferencesRow

#title, #title=

Constructor Details

#initializeGtk::Widget

Creates a new HdyActionRow.

Instance Method Details

#activatable_widgetGtk::Widget

The activatable widget for this row.

The widget is activated, either by clicking on it, by calling [methodActionRow.activate], or via mnemonics in the title or the subtitle. See the [propertyActionRow:use-underline] property to enable mnemonics.

The target widget will be activated by emitting the [signalGtk.Widget::mnemonic-activate] signal on it.

Returns:

  • (Gtk::Widget)

    activatable-widget

#activatable_widget=(activatable_widget) ⇒ Gtk::Widget

The activatable widget for this row.

The widget is activated, either by clicking on it, by calling [methodActionRow.activate], or via mnemonics in the title or the subtitle. See the [propertyActionRow:use-underline] property to enable mnemonics.

The target widget will be activated by emitting the [signalGtk.Widget::mnemonic-activate] signal on it.

Parameters:

  • activatable_widget (Gtk::Widget)

Returns:

  • (Gtk::Widget)

    activatable-widget

  • (Gtk::Widget)

    activatable-widget

#activatenil

Activates self.

Returns:

  • (nil)

#add_prefix(widget) ⇒ nil

Adds a prefix widget to self.

Parameters:

  • widget (Gtk::Widget)

    the prefix widget

Returns:

  • (nil)

#icon_nameString

The icon name for this row.

Returns:

  • (String)

    icon-name

#icon_name=(icon_name) ⇒ String

The icon name for this row.

Parameters:

  • icon_name (String)

Returns:

  • (String)

    icon-name

  • (String)

    icon-name

#subtitleString

The subtitle for this row.

Returns:

  • (String)

    subtitle

#subtitle=(subtitle) ⇒ String

The subtitle for this row.

Parameters:

  • subtitle (String)

Returns:

  • (String)

    subtitle

  • (String)

    subtitle

#subtitle_linesInteger

The number of lines at the end of which the subtitle label will be ellipsized.

If the value is 0, the number of lines won't be limited.

Returns:

  • (Integer)

    subtitle-lines

#subtitle_lines=(subtitle_lines) ⇒ Integer

The number of lines at the end of which the subtitle label will be ellipsized.

If the value is 0, the number of lines won't be limited.

Parameters:

  • subtitle_lines (Integer)

Returns:

  • (Integer)

    subtitle-lines

  • (Integer)

    subtitle-lines

#title_linesInteger

The number of lines at the end of which the title label will be ellipsized.

If the value is 0, the number of lines won't be limited.

Returns:

  • (Integer)

    title-lines

#title_lines=(title_lines) ⇒ Integer

The number of lines at the end of which the title label will be ellipsized.

If the value is 0, the number of lines won't be limited.

Parameters:

  • title_lines (Integer)

Returns:

  • (Integer)

    title-lines

  • (Integer)

    title-lines

#use_underlineBoolean

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

Returns:

  • (Boolean)

    whether an embedded underline in the title or subtitle indicates a mnemonic

#use_underline=(use_underline) ⇒ Boolean

Whether embedded underlines in the title or subtitle indicates a mnemonic.

If true, an underline in the text of the title or subtitle labels indicates the next character should be used for the mnemonic accelerator key.

Parameters:

  • use_underline (Boolean)

Returns:

  • (Boolean)

    use-underline

  • (Boolean)

    use-underline

#use_underline?Boolean

Whether embedded underlines in the title or subtitle indicates a mnemonic.

If true, an underline in the text of the title or subtitle labels indicates the next character should be used for the mnemonic accelerator key.

Returns:

  • (Boolean)

    use-underline