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

Constructor Details

#initializeObject

Instance Method Details

#modeObject



322
323
324
325
326
# File 'ext/cairo/rb_cairo_device.c', line 322

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

#replyObject



328
329
330
331
332
333
334
335
336
337
338
# File 'ext/cairo/rb_cairo_device.c', line 328

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



311
312
313
314
315
316
317
318
319
320
# File 'ext/cairo/rb_cairo_device.c', line 311

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