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
258
259
260
261
262
263
264
265
266
267
|
# File 'ext/cairo/rb_cairo_pattern.c', line 258
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);
DATA_PTR (self) = pattern;
return Qnil;
}
|
Instance Method Details
#surface ⇒ Object
427
428
429
430
431
432
433
434
|
# File 'ext/cairo/rb_cairo_pattern.c', line 427
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);
}
|