summaryrefslogtreecommitdiff
path: root/src/gui/widgets/button.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/button.h')
-rw-r--r--src/gui/widgets/button.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h
index e568f8131..c97741548 100644
--- a/src/gui/widgets/button.h
+++ b/src/gui/widgets/button.h
@@ -66,6 +66,8 @@
#ifndef GUI_WIDGETS_BUTTON_H
#define GUI_WIDGETS_BUTTON_H
+#include "gui/fonts/textchunk.h"
+
#include "gui/widgets/widget.h"
#include "listeners/focuslistener.h"
@@ -204,7 +206,7 @@ class Button final : public Widget,
* @see getCaption, adjustSize
*/
void setCaption(const std::string& caption)
- { mCaption = caption; }
+ { mCaption = caption; mTextChanged = true;}
/**
* Gets the caption of the button.
@@ -273,6 +275,9 @@ class Button final : public Widget,
std::string mCaption;
std::string mDescription;
+
+ TextChunk mTextChunk;
+
ImageCollection *mVertexes2;
Color mEnabledColor;
Color mEnabledColor2;
@@ -320,6 +325,7 @@ class Button final : public Widget,
bool mStick;
bool mPressed;
+ bool mTextChanged;
};
#endif // GUI_WIDGETS_BUTTON_H