Class: Gtk::Paned

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

Instance Method Summary collapse

Instance Method Details

#add1(child) ⇒ nil

Adds a child to the top or left pane with default parameters. This is equivalent to ‘gtk_paned_pack1 (paned, child, FALSE, TRUE)`.

Parameters:

Returns:

  • (nil)

#add2(child) ⇒ nil

Adds a child to the bottom or right pane with default parameters. This is equivalent to ‘gtk_paned_pack2 (paned, child, TRUE, TRUE)`.

Parameters:

Returns:

  • (nil)

#child1Gtk::Widget

Obtains the first child of the paned widget.

Returns:

  • (Gtk::Widget)

    first child, or nil if it is not set.

#child2Gtk::Widget

Obtains the second child of the paned widget.

Returns:

  • (Gtk::Widget)

    second child, or nil if it is not set.

#handle_windowGdk::Window

Returns the Gdk::Window of the handle. This function is useful when handling button or motion events because it enables the callback to distinguish between the window of the paned, a child and the handle.

Returns:

#max_positionInteger

The largest possible value for the position property. This property is derived from the size and shrinkability of the widget’s children.

Returns:

  • (Integer)

    max-position

#max_position=(max_position) ⇒ Integer

The largest possible value for the position property. This property is derived from the size and shrinkability of the widget’s children.

Parameters:

  • max_position (Integer)

Returns:

  • (Integer)

    max-position

  • (Integer)

    max-position

#min_positionInteger

The smallest possible value for the position property. This property is derived from the size and shrinkability of the widget’s children.

Returns:

  • (Integer)

    min-position

#min_position=(min_position) ⇒ Integer

The smallest possible value for the position property. This property is derived from the size and shrinkability of the widget’s children.

Parameters:

  • min_position (Integer)

Returns:

  • (Integer)

    min-position

  • (Integer)

    min-position

#new(orientation) ⇒ Gtk::Widget

Creates a new Gtk::Paned widget.

Parameters:

Returns:

#pack1(child, resize, shrink) ⇒ nil

Adds a child to the top or left pane.

Parameters:

  • child (Gtk::Widget)

    the child to add

  • resize (TrueClass)

    should this child expand when the paned widget is resized.

  • shrink (TrueClass)

    can this child be made smaller than its requisition.

Returns:

  • (nil)

#pack2(child, resize, shrink) ⇒ nil

Adds a child to the bottom or right pane.

Parameters:

  • child (Gtk::Widget)

    the child to add

  • resize (TrueClass)

    should this child expand when the paned widget is resized.

  • shrink (TrueClass)

    can this child be made smaller than its requisition.

Returns:

  • (nil)

#positionInteger

Returns position.

Returns:

  • (Integer)

    position

#position=(position) ⇒ Integer

Parameters:

  • position (Integer)

Returns:

  • (Integer)

    position

  • (Integer)

    position

#position_set=(position_set) ⇒ TrueClass

Parameters:

  • position_set (TrueClass)

Returns:

  • (TrueClass)

    position-set

  • (TrueClass)

    position-set

#position_set?TrueClass

Returns position-set.

Returns:

  • (TrueClass)

    position-set

#wide_handleTrueClass

Gets the Gtk::Paned:wide-handle property.

Returns:

  • (TrueClass)

    true if the paned should have a wide handle

#wide_handle=(wide_handle) ⇒ TrueClass

Setting this property to true indicates that the paned needs to provide stronger visual separation (e.g. because it separates between two notebooks, whose tab rows would otherwise merge visually).

Parameters:

  • wide_handle (TrueClass)

Returns:

  • (TrueClass)

    wide-handle

  • (TrueClass)

    wide-handle

#wide_handle?TrueClass

Setting this property to true indicates that the paned needs to provide stronger visual separation (e.g. because it separates between two notebooks, whose tab rows would otherwise merge visually).

Returns:

  • (TrueClass)

    wide-handle