Class: Cairo::QuartzImageSurface
Instance Method Summary
collapse
Methods inherited from Surface
#clone, #content, #copy_page, #create_similar, #destroy, #device_offset, #dup, #fallback_resolution, #finish, #flush, #font_options, #mark_dirty, #set_device_offset, #set_fallback_resolution, #show_page, #write_to_png
Constructor Details
#initialize ⇒ Object
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
|
# File 'ext/cairo/rb_cairo_surface.c', line 1155
static VALUE
cr_quartz_image_surface_initialize (VALUE self, VALUE image_surface)
{
cairo_surface_t *surface;
surface = cairo_quartz_image_surface_create (RVAL2CRSURFACE (image_surface));
cr_surface_check_status (surface);
DATA_PTR (self) = surface;
if (rb_block_given_p ())
yield_and_finish (self);
return Qnil;
}
|
Instance Method Details
#image ⇒ Object
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
|
# File 'ext/cairo/rb_cairo_surface.c', line 1168
static VALUE
cr_quartz_image_surface_get_image (VALUE self)
{
cairo_surface_t *surface;
surface = cairo_quartz_image_surface_get_image (_SELF);
if (!surface)
return Qnil;
cr_surface_check_status (surface);
return CRSURFACE2RVAL (surface);
}
|