aboutsummaryrefslogtreecommitdiff
path: root/src/stylesheet.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-08-12 17:40:20 +0200
committerThomas White <taw@bitwiz.org.uk>2012-08-12 17:40:20 +0200
commit2fd37a95bd5fe109a62917eca483b36a18a74777 (patch)
tree0864a76938670d7b2740eaa9b8da281670ecd0d8 /src/stylesheet.h
parent6d0e78aadcf111cfd82cc8762ebd43c10c7923ae (diff)
The style mechanism
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r--src/stylesheet.h48
1 files changed, 6 insertions, 42 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h
index b4dbf9f..f2f72b2 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -28,21 +28,15 @@
#endif
-struct frame_class
+struct frame;
+#include "layout.h"
+
+
+struct style
{
char *name;
- /* Margins of this frame from the parent */
- double margin_l;
- double margin_r;
- double margin_t;
- double margin_b;
-
- /* Padding between this frame and any children */
- double pad_l;
- double pad_r;
- double pad_t;
- double pad_b;
+ struct layout_parameters lop;
/* Storycode prologue (run through the interpreter before the
* main storycode for the frame */
@@ -50,36 +44,6 @@ struct frame_class
};
-enum bgblocktype
-{
- BGBLOCK_SOLID,
- BGBLOCK_GRADIENT_X,
- BGBLOCK_GRADIENT_Y,
- BGBLOCK_GRADIENT_CIRCULAR,
- 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 slide_template
{
char *name;