From 394b051daacb63c661dba0a8c57ec04ad1ae73cf Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 1 Aug 2011 21:59:33 +0200 Subject: Finish plumbing --- src/stylesheet.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/stylesheet.h') diff --git a/src/stylesheet.h b/src/stylesheet.h index 8886283..b2640a7 100644 --- a/src/stylesheet.h +++ b/src/stylesheet.h @@ -39,17 +39,17 @@ struct text_style enum justify { - J_LEFT, - J_CENTER, - J_RIGHT, + J_LEFT = 0, + J_CENTER = 1, + J_RIGHT = 2, }; enum vert_pos { - V_TOP, - V_CENTER, - V_BOTTOM, + V_TOP = 0, + V_CENTER = 1, + V_BOTTOM = 2, }; @@ -62,6 +62,8 @@ struct layout_element double margin_right; double margin_top; double margin_bottom; + double max_width; + int use_max_width; enum justify halign; enum vert_pos valign; -- cgit v1.2.3