Class: Gtk::ListItem

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Direct Known Subclasses

ColumnViewCell

Instance Method Summary collapse

Instance Method Details

#accessible_descriptionString

The accessible description to set on the list item.

Returns:

  • (String)

    accessible-description

#accessible_description=(accessible_description) ⇒ String

The accessible description to set on the list item.

Parameters:

  • accessible_description (String)

Returns:

  • (String)

    accessible-description

  • (String)

    accessible-description

#accessible_labelString

The accessible label to set on the list item.

Returns:

  • (String)

    accessible-label

#accessible_label=(accessible_label) ⇒ String

The accessible label to set on the list item.

Parameters:

  • accessible_label (String)

Returns:

  • (String)

    accessible-label

  • (String)

    accessible-label

#activatableBoolean

Checks if a list item has been set to be activatable via gtk_list_item_set_activatable().

Returns:

  • (Boolean)

    true if the item is activatable

#activatable=(activatable) ⇒ Boolean

If the item can be activated by the user.

Parameters:

  • activatable (Boolean)

Returns:

  • (Boolean)

    activatable

  • (Boolean)

    activatable

#activatable?Boolean

If the item can be activated by the user.

Returns:

  • (Boolean)

    activatable

#childGtk::Widget

Widget used for display.

Returns:

#child=(child) ⇒ Gtk::Widget

Widget used for display.

Parameters:

Returns:

#focusableBoolean

Checks if a list item has been set to be focusable via gtk_list_item_set_focusable().

Returns:

  • (Boolean)

    true if the item is focusable

#focusable=(focusable) ⇒ Boolean

If the item can be focused with the keyboard.

Parameters:

  • focusable (Boolean)

Returns:

  • (Boolean)

    focusable

  • (Boolean)

    focusable

#focusable?Boolean

If the item can be focused with the keyboard.

Returns:

  • (Boolean)

    focusable

#itemGObject::Object

Displayed item.

Returns:

  • (GObject::Object)

    item

#item=(item) ⇒ GObject::Object

Displayed item.

Parameters:

  • item (GObject::Object)

Returns:

  • (GObject::Object)

    item

  • (GObject::Object)

    item

#positionInteger

Position of the item.

Returns:

  • (Integer)

    position

#position=(position) ⇒ Integer

Position of the item.

Parameters:

  • position (Integer)

Returns:

  • (Integer)

    position

  • (Integer)

    position

#selectableBoolean

Checks if a list item has been set to be selectable via gtk_list_item_set_selectable().

Do not confuse this function with [methodGtk.ListItem.get_selected].

Returns:

  • (Boolean)

    true if the item is selectable

#selectable=(selectable) ⇒ Boolean

If the item can be selected by the user.

Parameters:

  • selectable (Boolean)

Returns:

  • (Boolean)

    selectable

  • (Boolean)

    selectable

#selectable?Boolean

If the item can be selected by the user.

Returns:

  • (Boolean)

    selectable

#selectedBoolean

Checks if the item is displayed as selected.

The selected state is maintained by the liste widget and its model and cannot be set otherwise.

Returns:

  • (Boolean)

    true if the item is selected.

#selected=(selected) ⇒ Boolean

If the item is currently selected.

Parameters:

  • selected (Boolean)

Returns:

  • (Boolean)

    selected

  • (Boolean)

    selected

#selected?Boolean

If the item is currently selected.

Returns:

  • (Boolean)

    selected