aboutsummaryrefslogtreecommitdiff
path: root/dw/style.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-15 13:45:37 +0200
committerSebastian Geerken <devnull@localhost>2014-09-15 13:45:37 +0200
commita4d92f6ec2a1bf92c1f0bc408a7060a774bd027d (patch)
treed573fadd93d460bb3c40fcc88931ac88b637b65a /dw/style.hh
parent0941ffb6ccfe4f44ff5add68dbb57626c8b18666 (diff)
Extended CSS parser and dw::core::Style by 'z-index'.
Diffstat (limited to 'dw/style.hh')
-rw-r--r--dw/style.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/dw/style.hh b/dw/style.hh
index bda567ce..9c6bedf1 100644
--- a/dw/style.hh
+++ b/dw/style.hh
@@ -7,6 +7,8 @@
# error Do not include this file directly, use "core.hh" instead.
#endif
+#include <limits.h>
+
#include "../lout/signal.hh"
#include "../lout/debug.hh"
@@ -367,6 +369,17 @@ enum ClearType {
CLEAR_NONE
};
+enum {
+ /**
+ * \brief 'z-index' is stored as int; use this for the value 'auto'.
+ *
+ * Only some random value, which has to be checked explicitly; do
+ * not compare this (less or greater) to integer values of
+ * 'z-index'.
+ */
+ Z_INDEX_AUTO = INT_MAX
+};
+
/**
* \brief Type for representing all lengths within dw::core::style.
*
@@ -544,6 +557,7 @@ public:
ListStylePosition listStylePosition;
ListStyleType listStyleType;
Cursor cursor;
+ int zIndex;
int x_link;
int x_img;