Class: Cairo::SurfacePattern
Instance Method Summary
collapse
Methods inherited from Pattern
#extend, #filter, gradient_supported?, linear_supported?, #matrix, mesh_supported?, radial_supported?, raster_source_supported?, #set_extend, #set_filter, #set_matrix, solid_supported?, supported?, surface_supported?
Constructor Details
#initialize ⇒ Object
266
267
268
269
270
271
272
273
274
275
|
# File 'ext/cairo/rb_cairo_pattern.c', line 266
static VALUE
cr_surface_pattern_initialize (VALUE self, VALUE surface)
{
cairo_pattern_t *pattern;
pattern = cairo_pattern_create_for_surface (RVAL2CRSURFACE (surface));
cr_pattern_check_status (pattern);
RTYPEDDATA_DATA (self) = pattern;
return Qnil;
}
|
Instance Method Details
#surface ⇒ Object
435
436
437
438
439
440
441
442
|
# File 'ext/cairo/rb_cairo_pattern.c', line 435
static VALUE
cr_surface_pattern_get_surface (VALUE self)
{
cairo_surface_t *surface;
rb_cairo_check_status (cairo_pattern_get_surface (_SELF (self), &surface));
return CRSURFACE2RVAL (surface);
}
|