aboutsummaryrefslogtreecommitdiff
path: root/src/stylesheet.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-11-10 20:59:48 +0100
committerThomas White <taw@bitwiz.org.uk>2011-11-10 20:59:48 +0100
commitb3dba22613de912b01ae27ba30c73dfe4c05a340 (patch)
treed6abe26a8f1189211474ca363adbd5e0b2f1a98d /src/stylesheet.h
parentba31102d1786095ab0e05e6eae6ccce413451d6a (diff)
Basic background object rendering
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r--src/stylesheet.h36
1 files changed, 34 insertions, 2 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h
index cde0bcc..bdbf97e 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -70,10 +70,42 @@ struct style
};
+enum bgblocktype
+{
+ BGBLOCK_SOLID,
+ BGBLOCK_GRADIENT_X,
+ BGBLOCK_GRADIENT_Y,
+ BGBLOCK_IMAGE,
+};
+
+
+struct bgblock
+{
+ enum bgblocktype type;
+ double min_x;
+ double max_x;
+ double min_y;
+ double max_y;
+
+ char *colour1;
+ double alpha1;
+ char *colour2;
+ double alpha2;
+
+ struct image *image;
+ GdkPixbuf *scaled_pb;
+ int scaled_w;
+ int scaled_h;
+};
+
+
struct _stylesheet
{
- struct style **styles;
- int n_styles;
+ struct style **styles;
+ int n_styles;
+
+ struct bgblock *bgblocks;
+ int n_bgblocks;
/* Background stuff */
};