summaryrefslogtreecommitdiff
path: root/src/cairoint.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-01-22 16:19:31 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-01-22 23:01:51 +0000
commit29bedde904824098f73b978d73d36b3b5420ac32 (patch)
tree6802612ed1781127755aedf8f9e59c1192b50137 /src/cairoint.h
parent9eb98e1dc5af7eac896bf469e491063777e678be (diff)
pattern: Add convenience patterns for stock colours
By preallocating in our data segment a couple of solid patterns for the stock colours, it becomes more convenient when using those in surface operations, such as when clearing.
Diffstat (limited to 'src/cairoint.h')
-rw-r--r--src/cairoint.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairoint.h b/src/cairoint.h
index d791c8ca..401fac6f 100644
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -871,8 +871,9 @@ extern const cairo_private cairo_surface_backend_t _cairo_image_surface_backend;
#define CAIRO_EXTEND_GRADIENT_DEFAULT CAIRO_EXTEND_PAD
#define CAIRO_FILTER_DEFAULT CAIRO_FILTER_GOOD
+extern const cairo_private cairo_solid_pattern_t _cairo_pattern_clear;
extern const cairo_private cairo_solid_pattern_t _cairo_pattern_black;
-
+extern const cairo_private cairo_solid_pattern_t _cairo_pattern_white;
typedef struct _cairo_surface_attributes {
cairo_matrix_t matrix;