aboutsummaryrefslogtreecommitdiff
path: root/src/stylesheet.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-09-25 19:29:11 +0200
committerThomas White <taw@bitwiz.org.uk>2011-09-25 19:29:11 +0200
commit1dbcef5a7428a7132b746653af671b3a15fc7951 (patch)
tree4b902092d0c011739017f26989779d2538c37d57 /src/stylesheet.h
parente26dcd2049ae065f5a821f087abd736ba553dcad (diff)
First part of new concept for styles and layout elements
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r--src/stylesheet.h27
1 files changed, 7 insertions, 20 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h
index 8f9733e..4b7f7fb 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -28,15 +28,6 @@
#endif
-struct text_style
-{
- char *name;
- char *font;
- char *colour;
- double alpha;
-};
-
-
enum justify
{
J_LEFT = 0,
@@ -53,10 +44,9 @@ enum vert_pos
};
-struct layout_element
+struct style
{
char *name;
- struct text_style *text_style;
double margin_left;
double margin_right;
@@ -70,22 +60,19 @@ struct layout_element
double offset_x;
double offset_y;
+
+ char *font;
+ char *colour;
+ double alpha;
};
struct _stylesheet
{
- /* Slide layout */
- struct layout_element **layout_elements;
- int n_layout_elements;
-
- /* Normal text styles */
- struct text_style **text_styles;
- int n_text_styles;
+ struct style **styles;
+ int n_styles;
/* Background stuff */
-
- /* Image styles */
};