ruby-****@lists*****
ruby-****@lists*****
2003年 4月 3日 (木) 16:41:03 JST
------------------------- REMOTE_ADDR = 61.204.181.66 REMOTE_HOST = ------------------------- ------------------------- = class Gtk::Misc The Gtk:Misc widget is an abstract widget which is not useful itself, but is used to derive subclasses which have alignment and padding attributes. The horizontal and vertical padding attributes allows extra space to be added around the widget. The horizontal and vertical alignment attributes enable the widget to be positioned within its allocated area. Note that if the widget is added to a container in such a way that it expands automatically to fill its allocated area, the alignment settings will not alter the widgets position. == super class * Gtk::Widget == public instance methods --- alignment Gets the X and Y alignment of the widget within its allocation. * Returns: [xalign, yalign] --- set_alignment(xalign, yalign) Sets the alignment of the widget. * xalign: the horizontal alignment, from 0 (left) to 1 (right). * yalign: the vertical alignment, from 0 (top) to 1 (bottom). * Returns: self --- padding Gets the padding in the X and Y directions of the widget. * Returns: [xpad, ypad] --- set_padding(xpad, ypad) Sets the amount of space to add around the widget. * xpad: the amount of space to add on the left and right of the widget, in pixels. * ypad: the amount of space to add on the top and bottom of the widget, in pixels. --- xalign Gets the xalign. * Returns: xalign --- xalign=(xalign) Sets the xalign. * xalign: the horizontal alignment, from 0 (left) to 1 (right). * Returns: xalign --- set_xalign(xalign) Same as xalign=. * xalign: the horizontal alignment, from 0 (left) to 1 (right). * Returns: self --- yalign Gets the yalign. * Returns: yalign --- yalign=(yalign) Sets the yalign. * yalign: the horizontal alignment, from 0 (left) to 1 (right). * Returns: yalign --- set_yalign(yalign) Same as yalign=. * yalign: the horizontal alignment, from 0 (left) to 1 (right). * Returns: self --- xpad Gets the xpad. * Returns: xpad --- xpad=(xpad) Sets the xpad. * xpad: the amount of space to add on the left and right of the widget, in pixels. * Returns: xpad --- set_xpad(xpad) Same as xpad=. * xpad: the amount of space to add on the left and right of the widget, in pixels. * Returns: self --- ypad Gets the ypad. * Returns: ypad --- ypad=(ypad) Sets the ypad. * ypad: the amount of space to add on the top and bottom of the widget, in pixels. * Returns: ypad --- set_ypad(ypad) Same as ypad=. * ypad: the amount of space to add on the top and bottom of the widget, in pixels. * Returns: self - ((<Masao>))