aboutsummaryrefslogtreecommitdiff
path: root/src/stylesheet.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-07-24 21:26:31 +0200
committerThomas White <taw@bitwiz.org.uk>2011-07-24 21:26:31 +0200
commita7c93728218e9b14f4ce82516cfc6b42d98abd17 (patch)
tree7bb9e9c892da9c42559ea80a4460eb4cc61f6cb2 /src/stylesheet.h
parent64445c72214d55ba7864342b84f4da4019253c2a (diff)
Style sheet plumbing
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r--src/stylesheet.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h
index 5c46d83..3e1c8be 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -28,6 +28,49 @@
#endif
+struct text_style
+{
+ char *name;
+ char *font;
+ char *colour;
+ double alpha;
+};
+
+
+enum justify
+{
+ J_LEFT,
+ J_CENTER,
+ J_RIGHT,
+};
+
+
+enum vert_pos
+{
+ V_TOP,
+ V_CENTER,
+ V_BOTTOM,
+};
+
+
+struct layout_element
+{
+ char *name;
+ struct text_style *text_style;
+
+ double margin_left;
+ double margin_right;
+ double margin_top;
+ double margin_bottom;
+
+ enum justify just;
+ enum vert_pos vert;
+
+ double offset_x;
+ double offset_y;
+};
+
+
typedef struct _stylesheetwindow StylesheetWindow;
typedef struct _stylesheet StyleSheet;
struct presentation;