diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-17 19:25:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-17 19:25:52 +0300 |
commit | 821c0727d1b39ebd43a15fe1b0a680557d539365 (patch) | |
tree | c97175e5db65967c69e5cf68adffcc6f58c71a43 /src/gui/fonts/font.h | |
parent | a3eae284bfdb06ea5501230705f19e75e6a0173d (diff) | |
download | plus-821c0727d1b39ebd43a15fe1b0a680557d539365.tar.gz plus-821c0727d1b39ebd43a15fe1b0a680557d539365.tar.bz2 plus-821c0727d1b39ebd43a15fe1b0a680557d539365.tar.xz plus-821c0727d1b39ebd43a15fe1b0a680557d539365.zip |
Move textchunk into separate file.
Diffstat (limited to 'src/gui/fonts/font.h')
-rw-r--r-- | src/gui/fonts/font.h | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/gui/fonts/font.h b/src/gui/fonts/font.h index 551800bdb..7ed400ff4 100644 --- a/src/gui/fonts/font.h +++ b/src/gui/fonts/font.h @@ -81,33 +81,10 @@ class Color; class Graphics; class Image; +class TextChunk; const unsigned int CACHES_NUMBER = 256; -class TextChunk final -{ - public: - TextChunk(const std::string &text0, - const Color &color0, - const Color &color1); - - A_DELETE_COPY(TextChunk) - - ~TextChunk(); - - bool operator==(const TextChunk &chunk) const; - - void generate(TTF_Font *const font, const float alpha); - - Image *img; - std::string text; - Color color; - Color color2; - TextChunk *prev; - TextChunk *next; -}; - - class TextChunkList final { public: |