Class: Gdk::Pixbuf

Inherits:
Object show all
Defined in:
lib/tagen/gdk_pixbuf2.rb

Instance Method Summary collapse

Instance Method Details

#hFloat

get height

Returns:

  • (Float)

    height



16
# File 'lib/tagen/gdk_pixbuf2.rb', line 16

def h; wh[1] end

#wFloat

get width

Returns:

  • (Float)

    width



11
# File 'lib/tagen/gdk_pixbuf2.rb', line 11

def w; wh[0] end

#whArray

get width, height

Returns:

  • (Array)
    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

Parameters:

  • wh (Array)
    width, height


21
# File 'lib/tagen/gdk_pixbuf2.rb', line 21

def wh=(wh) width=wh[0]; height=wh[1] end