class Cairo::SVGSurface
SVG surface
Public Class Methods
version_to_string(version)
click to toggle source
# File lib/cairo.rb, line 116 def version_to_string(version) SVGVersion.name(version) end
versions()
click to toggle source
# File lib/cairo.rb, line 112 def versions SVGVersion.list end
versions_as_string()
click to toggle source
# File lib/cairo.rb, line 108 def versions_as_string SVGVersion.names end
Public Instance Methods
document_unit()
click to toggle source
static VALUE cr_svg_surface_get_document_unit (VALUE self) { cairo_svg_unit_t unit; unit = cairo_svg_surface_get_document_unit (_SELF); rb_cairo_surface_check_status (_SELF); return INT2NUM (unit); }
restrict_to_version(p1)
click to toggle source
static VALUE cr_svg_surface_restrict_to_version (VALUE self, VALUE version) { cairo_svg_surface_restrict_to_version (_SELF, RVAL2CRSVGVERSION (version)); rb_cairo_surface_check_status (_SELF); return Qnil; }
set_document_unit(p1)
click to toggle source
static VALUE cr_svg_surface_set_document_unit (VALUE self, VALUE rb_unit) { cairo_svg_unit_t unit; unit = RVAL2CRSVGUNIT (rb_unit); cairo_svg_surface_set_document_unit (_SELF, unit); rb_cairo_surface_check_status (_SELF); return Qnil; }