Class: Gtk::Layout

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

Instance Method Summary collapse

Instance Method Details

#bin_windowGdk::Window

Retrieve the bin window of the layout used for drawing operations.

Returns:

#get_size(width, height) ⇒ nil

Gets the size that has been set on the layout, and that determines the total extents of the layout’s scrollbar area. See gtk_layout_set_size ().

Parameters:

  • width (Integer)

    location to store the width set on layout, or nil

  • height (Integer)

    location to store the height set on layout, or nil

Returns:

  • (nil)

#hadjustmentGtk::Adjustment

This function should only be called after the layout has been placed in a Gtk::ScrolledWindow or otherwise configured for scrolling. It returns the Gtk::Adjustment used for communication between the horizontal scrollbar and layout.

See Gtk::ScrolledWindow, #GtkScrollbar, #GtkAdjustment for details.

Returns:

#hadjustment=(adjustment) ⇒ nil

Sets the horizontal scroll adjustment for the layout.

See Gtk::ScrolledWindow, #GtkScrollbar, #GtkAdjustment for details.

Parameters:

Returns:

  • (nil)

#heightInteger

Returns height.

Returns:

  • (Integer)

    height

#height=(height) ⇒ Integer

Parameters:

  • height (Integer)

Returns:

  • (Integer)

    height

  • (Integer)

    height

#move(child_widget, x, y) ⇒ nil

Moves a current child of layout to a new position.

Parameters:

  • child_widget (Gtk::Widget)

    a current child of layout

  • x (Integer)

    X position to move to

  • y (Integer)

    Y position to move to

Returns:

  • (nil)

#new(hadjustment, vadjustment) ⇒ Gtk::Widget

Creates a new Gtk::Layout. Unless you have a specific adjustment you’d like the layout to use for scrolling, pass nil for hadjustment and vadjustment.

Parameters:

Returns:

#put(child_widget, x, y) ⇒ nil

Adds child_widget to layout, at position (x,y). layout becomes the new parent container of child_widget.

Parameters:

  • child_widget (Gtk::Widget)

    child widget

  • x (Integer)

    X position of child widget

  • y (Integer)

    Y position of child widget

Returns:

  • (nil)

#set_size(width, height) ⇒ nil

Sets the size of the scrollable area of the layout.

Parameters:

  • width (Integer)

    width of entire scrollable area

  • height (Integer)

    height of entire scrollable area

Returns:

  • (nil)

#vadjustmentGtk::Adjustment

This function should only be called after the layout has been placed in a Gtk::ScrolledWindow or otherwise configured for scrolling. It returns the Gtk::Adjustment used for communication between the vertical scrollbar and layout.

See Gtk::ScrolledWindow, #GtkScrollbar, #GtkAdjustment for details.

Returns:

#vadjustment=(adjustment) ⇒ nil

Sets the vertical scroll adjustment for the layout.

See Gtk::ScrolledWindow, #GtkScrollbar, #GtkAdjustment for details.

Parameters:

Returns:

  • (nil)

#widthInteger

Returns width.

Returns:

  • (Integer)

    width

#width=(width) ⇒ Integer

Parameters:

  • width (Integer)

Returns:

  • (Integer)

    width

  • (Integer)

    width