Class: Gtk::Misc

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

Instance Method Summary collapse

Instance Method Details

#get_alignment(xalign, yalign) ⇒ nil

Gets the X and Y alignment of the widget within its allocation. See gtk_misc_set_alignment().

Parameters:

  • xalign (Gtk::gfloat)

    location to store X alignment of misc, or nil

  • yalign (Gtk::gfloat)

    location to store Y alignment of misc, or nil

Returns:

  • (nil)

#get_padding(xpad, ypad) ⇒ nil

Gets the padding in the X and Y directions of the widget. See gtk_misc_set_padding().

Parameters:

  • xpad (Integer)

    location to store padding in the X direction, or nil

  • ypad (Integer)

    location to store padding in the Y direction, or nil

Returns:

  • (nil)

#set_alignment(xalign, yalign) ⇒ nil

Sets the alignment of the widget.

Parameters:

  • xalign (Gtk::gfloat)

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

  • yalign (Gtk::gfloat)

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

Returns:

  • (nil)

#set_padding(xpad, ypad) ⇒ nil

Sets the amount of space to add around the widget.

Parameters:

  • xpad (Integer)

    the amount of space to add on the left and right of the widget, in pixels.

  • ypad (Integer)

    the amount of space to add on the top and bottom of the widget, in pixels.

Returns:

  • (nil)

#xalignGtk::gfloat

The horizontal alignment. A value of 0.0 means left alignment (or right on RTL locales); a value of 1.0 means right alignment (or left on RTL locales).

Returns:

  • (Gtk::gfloat)

    xalign

#xalign=(xalign) ⇒ Gtk::gfloat

The horizontal alignment. A value of 0.0 means left alignment (or right on RTL locales); a value of 1.0 means right alignment (or left on RTL locales).

Parameters:

  • xalign (Gtk::gfloat)

Returns:

  • (Gtk::gfloat)

    xalign

  • (Gtk::gfloat)

    xalign

#xpadInteger

The amount of space to add on the left and right of the widget, in pixels.

Returns:

  • (Integer)

    xpad

#xpad=(xpad) ⇒ Integer

The amount of space to add on the left and right of the widget, in pixels.

Parameters:

  • xpad (Integer)

Returns:

  • (Integer)

    xpad

  • (Integer)

    xpad

#yalignGtk::gfloat

The vertical alignment. A value of 0.0 means top alignment; a value of 1.0 means bottom alignment.

Returns:

  • (Gtk::gfloat)

    yalign

#yalign=(yalign) ⇒ Gtk::gfloat

The vertical alignment. A value of 0.0 means top alignment; a value of 1.0 means bottom alignment.

Parameters:

  • yalign (Gtk::gfloat)

Returns:

  • (Gtk::gfloat)

    yalign

  • (Gtk::gfloat)

    yalign

#ypadInteger

The amount of space to add on the top and bottom of the widget, in pixels.

Returns:

  • (Integer)

    ypad

#ypad=(ypad) ⇒ Integer

The amount of space to add on the top and bottom of the widget, in pixels.

Parameters:

  • ypad (Integer)

Returns:

  • (Integer)

    ypad

  • (Integer)

    ypad