diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-11-10 20:59:48 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2011-11-10 20:59:48 +0100 |
commit | b3dba22613de912b01ae27ba30c73dfe4c05a340 (patch) | |
tree | d6abe26a8f1189211474ca363adbd5e0b2f1a98d /src/stylesheet.h | |
parent | ba31102d1786095ab0e05e6eae6ccce413451d6a (diff) |
Basic background object rendering
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r-- | src/stylesheet.h | 36 |
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 */ }; |