aboutsummaryrefslogtreecommitdiff
path: root/dw/widget.hh
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2010-11-19 16:09:49 +0000
committercorvid <corvid@lavabit.com>2010-11-19 16:09:49 +0000
commitc5387459af97e2ba5007f20ffcbec0876a69e63f (patch)
treeb404d26b9d1efee5e83b6bf7c4c9226308b5925e /dw/widget.hh
parente41e07e71b157c2c1ff2b54743a6ff0fcc5a7745 (diff)
don't use text-indent when nesting blocks
Diffstat (limited to 'dw/widget.hh')
-rw-r--r--dw/widget.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/dw/widget.hh b/dw/widget.hh
index 79a34cd8..727aff05 100644
--- a/dw/widget.hh
+++ b/dw/widget.hh
@@ -67,6 +67,11 @@ protected:
* The dw::Image widget uses this flag, see dw::Image::setBuffer.
*/
WAS_ALLOCATED = 1 << 5,
+
+ /**
+ * \brief Set for block-level widgets (as opposed to inline widgets)
+ */
+ BLOCK_LEVEL = 1 << 6,
};
private:
@@ -238,6 +243,7 @@ public:
inline bool wasAllocated () { return flags & WAS_ALLOCATED; }
inline bool usesHints () { return flags & USES_HINTS; }
inline bool hasContents () { return flags & HAS_CONTENTS; }
+ inline bool blockLevel () { return flags & BLOCK_LEVEL; }
void setParent (Widget *parent);