Class: Gtk::Alignment

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

Instance Method Summary collapse

Instance Method Details

#bottom_paddingInteger

The padding to insert at the bottom of the widget.

Returns:

  • (Integer)

    bottom-padding

#bottom_padding=(bottom_padding) ⇒ Integer

The padding to insert at the bottom of the widget.

Parameters:

  • bottom_padding (Integer)

Returns:

  • (Integer)

    bottom-padding

  • (Integer)

    bottom-padding

#get_padding(padding_top, padding_bottom, padding_left, padding_right) ⇒ nil

Gets the padding on the different sides of the widget. See gtk_alignment_set_padding ().

Parameters:

  • padding_top (Integer)

    location to store the padding for the top of the widget, or nil

  • padding_bottom (Integer)

    location to store the padding for the bottom of the widget, or nil

  • padding_left (Integer)

    location to store the padding for the left of the widget, or nil

  • padding_right (Integer)

    location to store the padding for the right of the widget, or nil

Returns:

  • (nil)

#left_paddingInteger

The padding to insert at the left of the widget.

Returns:

  • (Integer)

    left-padding

#left_padding=(left_padding) ⇒ Integer

The padding to insert at the left of the widget.

Parameters:

  • left_padding (Integer)

Returns:

  • (Integer)

    left-padding

  • (Integer)

    left-padding

#new(xalign, yalign, xscale, yscale) ⇒ Gtk::Widget

Creates a new Gtk::Alignment.

Parameters:

  • xalign (Gtk::gfloat)

    the horizontal alignment of the child widget, from 0 (left) to 1 (right).

  • yalign (Gtk::gfloat)

    the vertical alignment of the child widget, from 0 (top) to 1 (bottom).

  • xscale (Gtk::gfloat)

    the amount that the child widget expands horizontally to fill up unused space, from 0 to 1. A value of 0 indicates that the child widget should never expand. A value of 1 indicates that the child widget will expand to fill all of the space allocated for the Gtk::Alignment.

  • yscale (Gtk::gfloat)

    the amount that the child widget expands vertically to fill up unused space, from 0 to 1. The values are similar to xscale.

Returns:

#right_paddingInteger

The padding to insert at the right of the widget.

Returns:

  • (Integer)

    right-padding

#right_padding=(right_padding) ⇒ Integer

The padding to insert at the right of the widget.

Parameters:

  • right_padding (Integer)

Returns:

  • (Integer)

    right-padding

  • (Integer)

    right-padding

#set(xalign, yalign, xscale, yscale) ⇒ nil

Sets the Gtk::Alignment values.

Parameters:

  • xalign (Gtk::gfloat)

    the horizontal alignment of the child widget, from 0 (left) to 1 (right).

  • yalign (Gtk::gfloat)

    the vertical alignment of the child widget, from 0 (top) to 1 (bottom).

  • xscale (Gtk::gfloat)

    the amount that the child widget expands horizontally to fill up unused space, from 0 to 1. A value of 0 indicates that the child widget should never expand. A value of 1 indicates that the child widget will expand to fill all of the space allocated for the Gtk::Alignment.

  • yscale (Gtk::gfloat)

    the amount that the child widget expands vertically to fill up unused space, from 0 to 1. The values are similar to xscale.

Returns:

  • (nil)

#set_padding(padding_top, padding_bottom, padding_left, padding_right) ⇒ nil

Sets the padding on the different sides of the widget. The padding adds blank space to the sides of the widget. For instance, this can be used to indent the child widget towards the right by adding padding on the left.

Parameters:

  • padding_top (Integer)

    the padding at the top of the widget

  • padding_bottom (Integer)

    the padding at the bottom of the widget

  • padding_left (Integer)

    the padding at the left of the widget

  • padding_right (Integer)

    the padding at the right of the widget.

Returns:

  • (nil)

#top_paddingInteger

The padding to insert at the top of the widget.

Returns:

  • (Integer)

    top-padding

#top_padding=(top_padding) ⇒ Integer

The padding to insert at the top of the widget.

Parameters:

  • top_padding (Integer)

Returns:

  • (Integer)

    top-padding

  • (Integer)

    top-padding

#xalignGtk::gfloat

Horizontal position of child in available space. A value of 0.0 will flush the child left (or right, in RTL locales); a value of 1.0 will flush the child right (or left, in RTL locales).

Returns:

  • (Gtk::gfloat)

    xalign

#xalign=(xalign) ⇒ Gtk::gfloat

Horizontal position of child in available space. A value of 0.0 will flush the child left (or right, in RTL locales); a value of 1.0 will flush the child right (or left, in RTL locales).

Parameters:

  • xalign (Gtk::gfloat)

Returns:

  • (Gtk::gfloat)

    xalign

  • (Gtk::gfloat)

    xalign

#xscaleGtk::gfloat

If available horizontal space is bigger than needed, how much of it to use for the child. A value of 0.0 means none; a value of 1.0 means all.

Returns:

  • (Gtk::gfloat)

    xscale

#xscale=(xscale) ⇒ Gtk::gfloat

If available horizontal space is bigger than needed, how much of it to use for the child. A value of 0.0 means none; a value of 1.0 means all.

Parameters:

  • xscale (Gtk::gfloat)

Returns:

  • (Gtk::gfloat)

    xscale

  • (Gtk::gfloat)

    xscale

#yalignGtk::gfloat

Vertical position of child in available space. A value of 0.0 will flush the child to the top; a value of 1.0 will flush the child to the bottom.

Returns:

  • (Gtk::gfloat)

    yalign

#yalign=(yalign) ⇒ Gtk::gfloat

Vertical position of child in available space. A value of 0.0 will flush the child to the top; a value of 1.0 will flush the child to the bottom.

Parameters:

  • yalign (Gtk::gfloat)

Returns:

  • (Gtk::gfloat)

    yalign

  • (Gtk::gfloat)

    yalign

#yscaleGtk::gfloat

If available vertical space is bigger than needed, how much of it to use for the child. A value of 0.0 means none; a value of 1.0 means all.

Returns:

  • (Gtk::gfloat)

    yscale

#yscale=(yscale) ⇒ Gtk::gfloat

If available vertical space is bigger than needed, how much of it to use for the child. A value of 0.0 means none; a value of 1.0 means all.

Parameters:

  • yscale (Gtk::gfloat)

Returns:

  • (Gtk::gfloat)

    yscale

  • (Gtk::gfloat)

    yscale