Class: Cairo::SurfacePattern
Instance Method Summary
collapse
Methods inherited from Pattern
#extend, #filter, #matrix, #set_extend, #set_filter, #set_matrix
Constructor Details
#initialize ⇒ Object
190
191
192
193
194
195
196
197
198
199
|
# File 'ext/cairo/rb_cairo_pattern.c', line 190
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
359
360
361
362
363
364
365
366
|
# File 'ext/cairo/rb_cairo_pattern.c', line 359
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);
}
|