Class: Cairo::PDFSurface

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

Instance Method Summary collapse

Constructor Details

#initialize(filename, width, height) ⇒ PDFSurface

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

#hObject

get height



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

def h; @wh[1] end

#initialize_Object



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

alias initialize_ initialize

#wObject

get width



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

def w; @wh[0] end

#whObject

get width, height



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

def wh; @wh end