Class: Cairo::PDFSurface
- Defined in:
- lib/gir_ffi-cairo/pdf_surface.rb
Overview
Surface subclass for PDFs.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Surface
Class Method Details
.create(filename, width, height) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/gir_ffi-cairo/pdf_surface.rb', line 6 def self.create(filename, width, height) ptr = Lib.cairo_pdf_surface_create filename, width, height surface = wrap ptr if block_given? yield surface surface.finish end surface end |
Instance Method Details
#set_size(width, height) ⇒ Object
18 19 20 |
# File 'lib/gir_ffi-cairo/pdf_surface.rb', line 18 def set_size(width, height) Lib.cairo_pdf_surface_set_size(self, width, height) end |