Class: Cairo::Context

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

Instance Method Summary collapse

Instance Method Details

#render_rsvg_handle(handle, options = {}) ⇒ Object Also known as: show_rsvg_handle


19
20
21
22
23
24
25
26
# File 'lib/rsvg2/cairo.rb', line 19

def render_rsvg_handle(handle, options={})
  id = options[:id]
  if id
    handle.render_cairo_sub(self, id)
  else
    handle.render_cairo(self)
  end
end