Class: Gdk::Pixbuf
Instance Method Summary collapse
-
#h ⇒ Float
get height.
-
#w ⇒ Float
get width.
-
#wh ⇒ Array
get width, height.
-
#wh=(wh) ⇒ Object
set width, height.
Instance Method Details
#h ⇒ Float
get height
16 |
# File 'lib/tagen/gdk_pixbuf2.rb', line 16 def h; wh[1] end |
#w ⇒ Float
get width
11 |
# File 'lib/tagen/gdk_pixbuf2.rb', line 11 def w; wh[0] end |
#wh ⇒ Array
get width, height
6 |
# File 'lib/tagen/gdk_pixbuf2.rb', line 6 def wh; [width.to_f, height.to_f] end |
#wh=(wh) ⇒ Object
set width, height
21 |
# File 'lib/tagen/gdk_pixbuf2.rb', line 21 def wh=(wh) width=wh[0]; height=wh[1] end |