diff options
author | Sebastian Geerken <devnull@localhost> | 2012-09-24 21:47:19 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2012-09-24 21:47:19 +0200 |
commit | b1ea92cce6ef995c429236f34e6164ead811ad9b (patch) | |
tree | 320da65ed9ed3cc7e8c01b4ac09b8f5ecf18ca98 /dw/types.hh | |
parent | b38df648b637a221bd6d9107de433cbe8107c276 (diff) |
Split up content type WIDGET; removed FLOAT_REF.
Diffstat (limited to 'dw/types.hh')
-rw-r--r-- | dw/types.hh | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/dw/types.hh b/dw/types.hh index abed38e6..61136673 100644 --- a/dw/types.hh +++ b/dw/types.hh @@ -188,12 +188,27 @@ struct Content START = 1 << 0, END = 1 << 1, TEXT = 1 << 2, - WIDGET = 1 << 3, - BREAK = 1 << 4, - FLOAT_REF = 1 << 6, /** \todo A bit ugly. */ + + /** \brief widget in normal flow, so that _this_ widget + (containing this content) is both container (parent) and + generator */ + WIDGET_IN_FLOW = 1 << 3, + + /** \brief widget out of flow (OOF); _this_ widget (containing + this content) is only the container (parent), but _not_ + generator */ + WIDGET_OOF_CONT, + + /** \brief reference to a widget out of flow (OOF); _this_ + widget (containing this content) is only the generator + (parent), but _not_ container */ + WIDGET_OOF_REF = 1 << 4, + + BREAK = 1 << 5, ALL = 0xff, - REAL_CONTENT = 0xff ^ (START | END | FLOAT_REF), - SELECTION_CONTENT = TEXT | WIDGET | BREAK + REAL_CONTENT = 0xff ^ (START | END), + SELECTION_CONTENT = TEXT | BREAK, // WIDGET_* must be set additionally + ANY_WIDGET = WIDGET_IN_FLOW | WIDGET_OOF_CONT | WIDGET_OOF_REF, }; /* Content is embedded in struct Word therefore we |