summaryrefslogtreecommitdiff
path: root/rsvg-paint-server.h
diff options
context:
space:
mode:
authorCaleb Michael Moore <cmoore@src.gnome.org>2004-03-29 22:30:44 +0000
committerCaleb Michael Moore <cmoore@src.gnome.org>2004-03-29 22:30:44 +0000
commit70b787d5f0d85326ec04f08812b5b137aa9346d5 (patch)
tree9ae75250d4abababe1ac7564e259ad80af4782d3 /rsvg-paint-server.h
parentcd40d44ff9616e37af0d76610d963d87d19f641f (diff)
downloadlibrsvg-70b787d5f0d85326ec04f08812b5b137aa9346d5.tar.gz
currentColor fix
Diffstat (limited to 'rsvg-paint-server.h')
-rw-r--r--rsvg-paint-server.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/rsvg-paint-server.h b/rsvg-paint-server.h
index 18986639..0f627a32 100644
--- a/rsvg-paint-server.h
+++ b/rsvg-paint-server.h
@@ -47,23 +47,13 @@ struct _RsvgPSCtx {
int x1;
int y1;
+ guint32 color;
double affine[6];
- /* todo: we need to take in some context information, including:
-
- 1. The global affine transformation.
-
- 2. User coordinates at time of reference (to implement
- gradientUnits = "userSpaceOnUse").
-
- 3. Object bounding box (to implement gradientUnits =
- "objectBoundingBox").
-
- Maybe signal for lazy evaluation of object bbox.
- */
};
struct _RsvgGradientStop {
double offset;
+ gboolean is_current_color;
guint32 rgba;
};
@@ -80,6 +70,8 @@ struct _RsvgLinearGradient {
ArtGradientSpread spread;
double x1, y1;
double x2, y2;
+ guint32 current_color;
+ gboolean has_current_color;
};
struct _RsvgRadialGradient {
@@ -91,6 +83,8 @@ struct _RsvgRadialGradient {
double cx, cy;
double r;
double fx, fy;
+ guint32 current_color;
+ gboolean has_current_color;
};
/* Create a new paint server based on a specification string. */