Class: Cairo::SVGSurface

Inherits:
Surface show all
Defined in:
lib/cairo.rb,
ext/cairo/rb_cairo_surface.c

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Surface

#clone, #content, #copy_page, #create_similar, #create_similar_image, #destroy, #device, #device_offset, #device_scale, #dup, #fallback_resolution, #finish, #flush, #font_options, #get_mime_data, gl_supported?, gl_texture_supported?, image_supported?, #map_to_image, #mark_dirty, pdf_supported?, ps_supported?, quartz_image_supported?, quartz_supported?, recording_supported?, #reference_count, script_supported?, #set_device_offset, #set_device_scale, #set_fallback_resolution, #set_mime_data, #show_page, #sub_rectangle_surface, supported?, #supported_mime_type?, svg_supported?, tee_supported?, #unmap_image, win32_printing_supported?, win32_supported?, #write_to_png, xml_supported?

Constructor Details

#initializeObject

Class Method Details

.version_to_string(version) ⇒ Object



110
111
112
# File 'lib/cairo.rb', line 110

def version_to_string(version)
  SVGVersion.name(version)
end

.versionsObject



106
107
108
# File 'lib/cairo.rb', line 106

def versions
  SVGVersion.list
end

.versions_as_stringObject



102
103
104
# File 'lib/cairo.rb', line 102

def versions_as_string
  SVGVersion.names
end

Instance Method Details

#restrict_to_versionObject