summaryrefslogtreecommitdiff
path: root/src/gui/widgets/window.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-26 13:12:21 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-26 13:12:21 +0300
commit16b5831a6640bcd1f6f7f23c7b282544bea2b47d (patch)
tree62145775cec07b241ad7509eae91db1e00734aa2 /src/gui/widgets/window.h
parent2b681b167c1d307f550a8dc7b56a94d13886827e (diff)
downloadplus-16b5831a6640bcd1f6f7f23c7b282544bea2b47d.tar.gz
plus-16b5831a6640bcd1f6f7f23c7b282544bea2b47d.tar.bz2
plus-16b5831a6640bcd1f6f7f23c7b282544bea2b47d.tar.xz
plus-16b5831a6640bcd1f6f7f23c7b282544bea2b47d.zip
Use local TextChunk in windows for draw caption text.
Diffstat (limited to 'src/gui/widgets/window.h')
-rw-r--r--src/gui/widgets/window.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h
index 2c174aeae..102aedf73 100644
--- a/src/gui/widgets/window.h
+++ b/src/gui/widgets/window.h
@@ -71,6 +71,8 @@
#include "listeners/mouselistener.h"
#include "listeners/widgetlistener.h"
+#include "gui/fonts/textchunk.h"
+
#include "gui/widgets/basiccontainer2.h"
#include "resources/imagerect.h"
@@ -511,7 +513,7 @@ class Window notfinal : public BasicContainer2,
* @see getCaption
*/
void setCaption(const std::string& caption)
- { mCaption = caption; }
+ { mCaption = caption; mTextChanged = true; }
/**
* Gets the caption of the window.
@@ -669,6 +671,7 @@ class Window notfinal : public BasicContainer2,
Rect mCloseRect; /**< Close button rectangle */
Rect mStickyRect; /**< Sticky button rectangle */
Rect mGripRect; /**< Resize grip rectangle */
+ TextChunk mTextChunk;
std::string mWindowName; /**< Name of the window */
int mMinWinWidth; /**< Minimum window width */
int mMinWinHeight; /**< Minimum window height */
@@ -707,6 +710,7 @@ class Window notfinal : public BasicContainer2,
bool mStickyButtonLock; /**< Window locked if sticky enabled*/
bool mPlayVisibleSound;
bool mInit;
+ bool mTextChanged;
};
#endif // GUI_WIDGETS_WINDOW_H