Adds an opaque color stop to a gradient pattern. The offset specifies the location along the gradient's control vector. For example, a linear gradient's control vector is from (x0,y0) to (x1,y1) while a radial gradient's control vector is from any point on the start circle to the corresponding point on the end circle.
Adds a translucent color stop to a gradient pattern. The offset specifies the location along the gradient's control vector. For example, a linear gradient's control vector is from (x0,y0) to (x1,y1) while a radial gradient's control vector is from any point on the start circle to the corresponding point on the end circle.
Gets the number of color stops specified in the given gradient pattern.
Gets the color and offset information at the given index for a gradient pattern. Values of index range from 0 to n-1 where n is the number returned by cairo.pattern.Pattern.getColorStopCount.
Gets the current dithering mode, as set by cairo.pattern.Pattern.setDither.
Gets the current extend mode for a pattern. See #cairo_extend_t for details on the semantics of each extend strategy.
Gets the current filter for a pattern. See #cairo_filter_t for details on each filter.
Gets the gradient endpoints for a linear gradient.
Stores the pattern's transformation matrix into matrix.
Get the pattern's type. See #cairo_pattern_type_t for available types.
Gets the gradient endpoint circles for a radial gradient, each specified as a center coordinate and a radius.
Gets the solid color for a solid color pattern.
Gets the surface of a surface pattern. The reference returned in surface is owned by the pattern; the caller should call cairo.surface.Surface.reference if the surface is to be retained.
Return user data previously attached to pattern using the specified key. If no user data has been attached with the given key this function returns null.
Set the dithering mode of the rasterizer used for drawing shapes. This value is a hint, and a particular backend may or may not support a particular value. At the current time, only pixman is supported.
Sets the mode to be used for drawing outside the area of a pattern. See #cairo_extend_t for details on the semantics of each extend strategy.
Sets the filter to be used for resizing when using this pattern. See #cairo_filter_t for details on each filter.
Sets the pattern's transformation matrix to matrix. This matrix is a transformation from user space to pattern space.
Checks whether an error has previously occurred for this pattern.
Pointer to the C boxed value
Get the GType of this boxed type.
Boxed GType property.
Convenience method to return this cast to a type. For use in D with statements.
Make a copy of the wrapped C boxed data.
Copy a C boxed value using g_boxed_copy.
Free a C boxed value using g_boxed_free.
A #cairo_pattern_t represents a source when drawing onto a surface. There are different subtypes of #cairo_pattern_t, for different types of sources; for example, cairo.global.patternCreateRgb creates a pattern for a solid opaque color.
Other than various <function>cairo_pattern_create_<emphasis>type</emphasis>()</function> functions, some of the pattern types can be implicitly created using various <function>cairo_set_source_<emphasis>type</emphasis>()</function> functions; for example cairo.context.Context.setSourceRgb.
The type of a pattern can be queried with cairo.pattern.Pattern.getPatternType.
Memory management of #cairo_pattern_t is done with cairo.pattern.Pattern.reference and cairo.pattern.Pattern.destroy.