aboutsummaryrefslogtreecommitdiff
path: root/dw/style.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-09-12 22:52:20 +0200
committerSebastian Geerken <devnull@localhost>2013-09-12 22:52:20 +0200
commit7ccdc7ac47628f347315e4fd84eb2854ff5e780c (patch)
tree7019feecf73fcfefaeb1db1380123f5f4e25658d /dw/style.hh
parent76a23c134dfd1d98923830b35a9ee630924b2250 (diff)
Remaning style attributes.
Diffstat (limited to 'dw/style.hh')
-rw-r--r--dw/style.hh16
1 files changed, 16 insertions, 0 deletions
diff --git a/dw/style.hh b/dw/style.hh
index 6c82be8d..c09a52f0 100644
--- a/dw/style.hh
+++ b/dw/style.hh
@@ -230,6 +230,18 @@ enum BorderStyle {
BORDER_OUTSET
};
+enum BackgroundRepeat {
+ BACKGROUND_REPEAT,
+ BACKGROUND_REPEAT_X,
+ BACKGROUND_REPEAT_Y,
+ BACKGROUND_NO_REPEAT
+};
+
+enum BackgroundAttachment {
+ BACKGROUND_ATTACHMENT_SCROLL,
+ BACKGROUND_ATTACHMENT_FIXED
+};
+
enum TextAlignType {
TEXT_ALIGN_LEFT,
TEXT_ALIGN_RIGHT,
@@ -449,6 +461,10 @@ public:
* TextDecoration <-> int */
Color *color, *backgroundColor;
StyleImage *backgroundImage;
+ BackgroundRepeat backgroundRepeat;
+ BackgroundAttachment backgroundAttachment;
+ Length backgroundPositionX; // "left" defiened by "0%" etc. (see CSS spec)
+ Length backgroundPositionY; // "top" defiened by "0%" etc. (see CSS spec)
TextAlignType textAlign;
VAlignType valign;