Class: Cairo::ScriptDevice

Inherits:
Device
  • Object
show all
Defined in:
ext/cairo/rb_cairo_device.c

Instance Method Summary collapse

Methods inherited from Device

#acquire, #destroy, #finish, #flush, #release, script_supported?, supported?, xml_supported?

Constructor Details

#initializeObject

Instance Method Details

#modeObject



371
372
373
374
375
# File 'ext/cairo/rb_cairo_device.c', line 371

static VALUE
cr_script_device_get_mode (VALUE self)
{
  return INT2NUM (cairo_script_get_mode (_SELF));
}

#replyObject



377
378
379
380
381
382
383
384
385
386
387
# File 'ext/cairo/rb_cairo_device.c', line 377

static VALUE
cr_script_device_reply (VALUE self, VALUE recording_surface)
{
  cairo_device_t *device;

  device = _SELF;
  cairo_script_from_recording_surface (device,
                                       RVAL2CRSURFACE (recording_surface));
  cr_device_check_status (device);
  return Qnil;
}

#set_modeObject



360
361
362
363
364
365
366
367
368
369
# File 'ext/cairo/rb_cairo_device.c', line 360

static VALUE
cr_script_device_set_mode (VALUE self, VALUE mode)
{
  cairo_device_t *device;

  device = _SELF;
  cairo_script_set_mode (device, RVAL2CRSCRIPTMODE (mode));
  cr_device_check_status (device);
  return Qnil;
}

#write_commentObject