Learn R Programming

RGtk2 (version 2.20.1)

cairo-pattern: cairo_pattern_t

Description

Sources for drawing

Arguments

Methods and Functions

cairoPatternAddColorStopRgb(pattern, offset, red, green, blue) cairoPatternAddColorStopRgba(pattern, offset, red, green, blue, alpha) cairoPatternGetColorStopCount(pattern) cairoPatternGetColorStopRgba(pattern, index) cairoPatternCreateRgb(red, green, blue) cairoPatternCreateRgba(red, green, blue, alpha) cairoPatternGetRgba(pattern) cairoPatternCreateForSurface(surface) cairoPatternGetSurface(pattern) cairoPatternCreateLinear(x0, y0, x1, y1) cairoPatternGetLinearPoints(pattern) cairoPatternCreateRadial(cx0, cy0, radius0, cx1, cy1, radius1) cairoPatternGetRadialCircles(pattern) cairoPatternStatus(pattern) cairoPatternSetExtend(pattern, extend) cairoPatternGetExtend(pattern) cairoPatternSetFilter(pattern, filter) cairoPatternGetFilter(pattern) cairoPatternSetMatrix(pattern, matrix) cairoPatternGetMatrix(pattern, matrix) cairoPatternGetType(pattern) cairoPatternSetUserData(pattern, key, user.data) cairoPatternGetUserData(pattern, key) cairoPattern(red, green, blue, alpha, surface, x0, y0, x1, y1, cx0, cy0, radius0, cx1, cy1, radius1)

Detailed Description

CairoPattern is the paint with which cairo draws. The primary use of patterns is as the source for all cairo drawing operations, although they can also be used as masks, that is, as the brush too. A cairo pattern is created by using one of the many constructors, of the form cairo_pattern_create_type() or implicitly through cairo_set_source_type() functions.

Convenient Construction

cairoPattern is the result of collapsing the constructors of cairo_pattern_t (cairoPatternCreateRgb, cairoPatternCreateRgba, cairoPatternCreateForSurface, cairoPatternCreateLinear, cairoPatternCreateRadial) and accepts a subset of its arguments matching the required arguments of one of its delegate constructors.

References

http://www.cairographics.org/manual/cairo-pattern.html