Create a SurfacePattern from a existing cairo_pattern_t*. SurfacePattern is a garbage collected class. It will call cairo_pattern_destroy when it gets collected by the GC or when dispose() is called.
Create a new SurfacePattern for the given surface.
Gets the Surface of a SurfacePattern.
Convenience property
Method for use in subclasses. Calls cairo_pattern_status(nativePointer) and throws an exception if the status isn't CAIRO_STATUS_SUCCESS
The createFromNative method for the Pattern classes. See https://github.com/jpf91/cairoD/wiki/Memory-Management#createFromNative for more information.
Sets the mode to be used for drawing outside the area of a pattern. See Extend for details on the semantics of each extend strategy. The default extend mode is CAIRO_EXTEND_NONE for surface patterns and CAIRO_EXTEND_PAD for gradient patterns.
Gets the current extend mode for a pattern. See Extend for details on the semantics of each extend strategy.
Sets the filter to be used for resizing when using this pattern. See Filter for details on each filter.
Gets the current filter for a pattern. See Filter for details on each filter.
Convenience property
Sets the pattern's transformation matrix to matrix. This matrix is a transformation from user space to pattern space.
Returns the pattern's transformation matrix.
Convenience property
This function returns the C type of a pattern. See PatternType for available types.
Convenience property
A surface pattern.
Use the $(this(Surface)) constructor to create an instance.