Class: Gtk::TreeListRow

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

Instance Method Summary collapse

Instance Method Details

#childrenGio::ListModel

The model holding the row's children.

Returns:

  • (Gio::ListModel)

    children

#children=(children) ⇒ Gio::ListModel

The model holding the row's children.

Parameters:

  • children (Gio::ListModel)

Returns:

  • (Gio::ListModel)

    children

  • (Gio::ListModel)

    children

#depthInteger

The depth in the tree of this row.

Returns:

  • (Integer)

    depth

#depth=(depth) ⇒ Integer

The depth in the tree of this row.

Parameters:

  • depth (Integer)

Returns:

  • (Integer)

    depth

  • (Integer)

    depth

#expandable=(expandable) ⇒ Boolean

If this row can ever be expanded.

Parameters:

  • expandable (Boolean)

Returns:

  • (Boolean)

    expandable

  • (Boolean)

    expandable

#expandable?Boolean

If this row can ever be expanded.

Returns:

  • (Boolean)

    expandable

#expandedBoolean

Gets if a row is currently expanded.

Returns:

  • (Boolean)

    true if the row is expanded

#expanded=(expanded) ⇒ Boolean

If this row is currently expanded.

Parameters:

  • expanded (Boolean)

Returns:

  • (Boolean)

    expanded

  • (Boolean)

    expanded

#expanded?Boolean

If this row is currently expanded.

Returns:

  • (Boolean)

    expanded

#get_child_row(position) ⇒ Gtk::TreeListRow

If self is not expanded or position is greater than the number of children, nil is returned.

Parameters:

  • position (Integer)

    position of the child to get

Returns:

#is_expandableBoolean

Checks if a row can be expanded.

This does not mean that the row is actually expanded, this can be checked with [methodGtk.TreeListRow.get_expanded].

If a row is expandable never changes until the row is removed from its model at which point it will forever return false.

Returns:

  • (Boolean)

    true if the row is expandable

#itemGObject::Object

The item held in this row.

Returns:

  • (GObject::Object)

    item

#item=(item) ⇒ GObject::Object

The item held in this row.

Parameters:

  • item (GObject::Object)

Returns:

  • (GObject::Object)

    item

  • (GObject::Object)

    item

#parentGtk::TreeListRow

Gets the row representing the parent for self.

That is the row that would need to be collapsed to make this row disappear.

If self is a row corresponding to the root model, nil is returned.

The value returned by this function never changes until the row is removed from its model at which point it will forever return nil.

Returns:

#positionInteger

Returns the position in the GtkTreeListModel that self occupies at the moment.

Returns:

  • (Integer)

    The position in the model