summaryrefslogtreecommitdiff
path: root/src/gui/fonts/textchunk.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-18 20:26:49 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-18 21:45:18 +0300
commit031f32210799807411af4fb9a40793d4f26febe7 (patch)
treea9ad02433e05c3f004ce192f8e47572a3795fd48 /src/gui/fonts/textchunk.h
parentfbbf87a36f5f27851a2e2d17b95a0f17dd82624b (diff)
downloadmanaplus-031f32210799807411af4fb9a40793d4f26febe7.tar.gz
manaplus-031f32210799807411af4fb9a40793d4f26febe7.tar.bz2
manaplus-031f32210799807411af4fb9a40793d4f26febe7.tar.xz
manaplus-031f32210799807411af4fb9a40793d4f26febe7.zip
Add font field into textchunk class. For now unused.
Diffstat (limited to 'src/gui/fonts/textchunk.h')
-rw-r--r--src/gui/fonts/textchunk.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/fonts/textchunk.h b/src/gui/fonts/textchunk.h
index 9e9e36827..13187473d 100644
--- a/src/gui/fonts/textchunk.h
+++ b/src/gui/fonts/textchunk.h
@@ -32,6 +32,7 @@
#include "localconsts.h"
+class Font;
class Image;
class TextChunk final
@@ -39,7 +40,8 @@ class TextChunk final
public:
TextChunk(const std::string &text0,
const Color &color0,
- const Color &color1);
+ const Color &color1,
+ const Font *const font);
A_DELETE_COPY(TextChunk)
@@ -50,6 +52,7 @@ class TextChunk final
void generate(TTF_Font *const font, const float alpha);
Image *img;
+ const Font *textFont;
std::string text;
Color color;
Color color2;