diff options
author | Sebastian Geerken <devnull@localhost> | 2014-09-15 13:45:37 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-09-15 13:45:37 +0200 |
commit | a4d92f6ec2a1bf92c1f0bc408a7060a774bd027d (patch) | |
tree | d573fadd93d460bb3c40fcc88931ac88b637b65a /dw/style.hh | |
parent | 0941ffb6ccfe4f44ff5add68dbb57626c8b18666 (diff) |
Extended CSS parser and dw::core::Style by 'z-index'.
Diffstat (limited to 'dw/style.hh')
-rw-r--r-- | dw/style.hh | 14 |
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; |