Class: Cairo::PDFSurface

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

Instance Method Summary (collapse)

Constructor Details

- (PDFSurface) initialize(filename, width, height)

Returns a new instance of PDFSurface



104
105
106
107
# File 'lib/tagen/cairo.rb', line 104

def initialize(filename, width, height)
	initialize_(filename, width, height)
	@wh=[width.to_f, height.to_f]
end

Instance Method Details

- (Object) h

get height



114
# File 'lib/tagen/cairo.rb', line 114

def h; @wh[1] end

- (Object) initialize_



103
# File 'lib/tagen/cairo.rb', line 103

alias initialize_ initialize

- (Object) w

get width



112
# File 'lib/tagen/cairo.rb', line 112

def w; @wh[0] end

- (Object) wh

get width, height



110
# File 'lib/tagen/cairo.rb', line 110

def wh; @wh end