Class: Gdk::Pixbuf

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

Instance Method Summary (collapse)

Instance Method Details

- (Float) h

get height

Returns:

  • (Float)

    height



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

def h; wh[1] end

- (Float) w

get width

Returns:

  • (Float)

    width



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

def w; wh[0] end

- (Array) wh

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

- (Object) wh=(wh)

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