diff options
author | Sebastian Geerken <devnull@localhost> | 2014-03-01 21:26:25 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-03-01 21:26:25 +0100 |
commit | 975ba73389d2de0cd2bb50183bd988eab6ba0e06 (patch) | |
tree | 67947a7e22dd049685dc034223c212e2ae14c902 /dw/style.hh | |
parent | 6369c18d186d52f0f3f5082ff6c9fdcf5c9285d1 (diff) | |
parent | 8818cda9ca4e4c19c4c5fcee68460d5ba0cd5ba2 (diff) |
Merge with main repo.
Diffstat (limited to 'dw/style.hh')
-rw-r--r-- | dw/style.hh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/dw/style.hh b/dw/style.hh index 3fe3b7c9..2cc258bf 100644 --- a/dw/style.hh +++ b/dw/style.hh @@ -8,6 +8,7 @@ #endif #include "../lout/signal.hh" +#include "../lout/debug.hh" namespace dw { namespace core { @@ -466,7 +467,7 @@ inline int multiplyWithRelLength(int x, Length l) { return x * relLengthVal(l); } - + enum { /** \brief Represents "auto" lengths. */ LENGTH_AUTO = 0 @@ -685,7 +686,10 @@ private: static Font *create0 (Layout *layout, FontAttrs *attrs, bool tryEverything); protected: - inline Font () { refCount = 0; } + inline Font () { + DBG_OBJ_CREATE ("dw::core::style::Font"); + refCount = 0; + } virtual ~Font (); void copyAttrs (FontAttrs *attrs); @@ -737,7 +741,9 @@ private: protected: inline Color (int color): ColorAttrs (color) { - refCount = 0; } + DBG_OBJ_CREATE ("dw::core::style::Color"); + refCount = 0; + } virtual ~Color (); public: @@ -832,7 +838,7 @@ public: { public: void getPaddingArea (int *x, int *y, int *width, int *height); - + StyleImage *getBackgroundImage (); BackgroundRepeat getBackgroundRepeat (); BackgroundAttachment getBackgroundAttachment (); |