Class: Cairo::QuartzImageSurface
- Defined in:
- ext/cairo/rb_cairo_surface.c
Instance Method Summary collapse
- #image ⇒ Object
-
#initialize ⇒ Object
constructor
Quartz image surface functions.
Methods inherited from Surface
#clone, #content, #copy_page, #create_similar, #create_similar_image, #destroy, #device, #device_offset, #device_scale, #dup, #fallback_resolution, #finish, #flush, #font_options, #get_mime_data, gl_supported?, gl_texture_supported?, image_supported?, #map_to_image, #mark_dirty, pdf_supported?, ps_supported?, quartz_image_supported?, quartz_supported?, recording_supported?, #reference_count, script_supported?, #set_device_offset, #set_device_scale, #set_fallback_resolution, #set_mime_data, #show_page, #sub_rectangle_surface, supported?, #supported_mime_type?, svg_supported?, tee_supported?, #unmap_image, win32_printing_supported?, win32_supported?, #write_to_png, xml_supported?
Constructor Details
#initialize ⇒ Object
Quartz image surface functions
163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'ext/cairo/rb_cairo_quartz_surface.c', line 163
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));
rb_cairo_surface_check_status (surface);
DATA_PTR (self) = surface;
if (rb_block_given_p ())
rb_cairo__surface_yield_and_finish (self);
return Qnil;
}
|
Instance Method Details
#image ⇒ Object
176 177 178 179 180 181 182 183 184 185 186 |
# File 'ext/cairo/rb_cairo_quartz_surface.c', line 176
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;
rb_cairo_surface_check_status (surface);
return CRSURFACE2RVAL (surface);
}
|