Class: Gtk::Misc
- Inherits:
-
Object
- Object
- Gtk::Misc
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#get_alignment(xalign, yalign) ⇒ nil
Gets the X and Y alignment of the widget within its allocation.
-
#get_padding(xpad, ypad) ⇒ nil
Gets the padding in the X and Y directions of the widget.
-
#set_alignment(xalign, yalign) ⇒ nil
Sets the alignment of the widget.
-
#set_padding(xpad, ypad) ⇒ nil
Sets the amount of space to add around the widget.
-
#xalign ⇒ Gtk::gfloat
The horizontal alignment.
-
#xalign=(xalign) ⇒ Gtk::gfloat
The horizontal alignment.
-
#xpad ⇒ Integer
The amount of space to add on the left and right of the widget, in pixels.
-
#xpad=(xpad) ⇒ Integer
The amount of space to add on the left and right of the widget, in pixels.
-
#yalign ⇒ Gtk::gfloat
The vertical alignment.
-
#yalign=(yalign) ⇒ Gtk::gfloat
The vertical alignment.
-
#ypad ⇒ Integer
The amount of space to add on the top and bottom of the widget, in pixels.
-
#ypad=(ypad) ⇒ Integer
The amount of space to add on the top and bottom of the widget, in pixels.
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().
#get_padding(xpad, ypad) ⇒ nil
Gets the padding in the X and Y directions of the widget. See gtk_misc_set_padding().
#set_alignment(xalign, yalign) ⇒ nil
Sets the alignment of the widget.
#set_padding(xpad, ypad) ⇒ nil
Sets the amount of space to add around the widget.
#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).
#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).
#xpad ⇒ Integer
The amount of space to add on the left and right of the widget, in pixels.
#xpad=(xpad) ⇒ Integer
The amount of space to add on the left and right of the widget, in pixels.
#yalign ⇒ Gtk::gfloat
The vertical alignment. A value of 0.0 means top alignment; a value of 1.0 means bottom alignment.
#yalign=(yalign) ⇒ Gtk::gfloat
The vertical alignment. A value of 0.0 means top alignment; a value of 1.0 means bottom alignment.
#ypad ⇒ Integer
The amount of space to add on the top and bottom of the widget, in pixels.
#ypad=(ypad) ⇒ Integer
The amount of space to add on the top and bottom of the widget, in pixels.