|  | ManaPlus
    | 
#include <textchunk.h>
| Public Member Functions | |
| TextChunk () | |
| TextChunk (const std::string &text0, const Color &color0, const Color &color1, Font *const font) | |
| ~TextChunk () | |
| bool | operator== (const TextChunk &chunk) const | 
| void | generate (TTF_Font *const font, const float alpha) | 
| void | deleteImage () | 
| Data Fields | |
| Image * | img | 
| Font * | textFont | 
| std::string | text | 
| Color | color | 
| Color | color2 | 
| TextChunk * | prev | 
| TextChunk * | next | 
Definition at line 42 of file textchunk.h.
| TextChunk::TextChunk | ( | ) | 
Definition at line 52 of file textchunk.cpp.
| TextChunk::~TextChunk | ( | ) | 
Definition at line 83 of file textchunk.cpp.
| void TextChunk::deleteImage | ( | ) | 
Definition at line 193 of file textchunk.cpp.
References delete2, img, Font::insertChunk(), and textFont.
Referenced by Button::draw(), CheckBox::draw(), Label::draw(), ProgressBar::draw(), RadioButton::draw(), TextField::draw(), Window::draw(), Text::draw(), Button::safeDraw(), ProgressBar::safeDraw(), Window::safeDraw(), Button::widgetHidden(), CheckBox::widgetHidden(), Label::widgetHidden(), ProgressBar::widgetHidden(), RadioButton::widgetHidden(), TextField::widgetHidden(), Window::widgetHidden(), Button::~Button(), Label::~Label(), ProgressBar::~ProgressBar(), and TextField::~TextField().
| void TextChunk::generate | ( | TTF_Font *const | font, | 
| const float | alpha | ||
| ) | 
Definition at line 97 of file textchunk.cpp.
References Color::b, BLOCK_END, BLOCK_START, CAST_U8, color, color2, ImageHelper::create32BitSurface(), ImageHelper::createTextSurface(), Color::g, getSafeUtf8String(), imageHelper, img, MSDL_FreeSurface, MTTF_RenderUTF8_Blended, anonymous_namespace{textchunk.cpp}::OUTLINE_SIZE, Color::r, strBuf, and text.
Referenced by Font::drawString(), and Font::generate().
| bool TextChunk::operator== | ( | const TextChunk & | chunk | ) | const | 
| Color TextChunk::color | 
Definition at line 66 of file textchunk.h.
Referenced by Button::draw(), CheckBox::draw(), Label::draw(), ProgressBar::draw(), RadioButton::draw(), TextField::draw(), Window::draw(), Text::draw(), Font::generate(), generate(), Font::insertChunk(), operator==(), TextChunkList::removeBack(), Button::safeDraw(), ProgressBar::safeDraw(), and Window::safeDraw().
| Color TextChunk::color2 | 
Definition at line 67 of file textchunk.h.
Referenced by Button::draw(), CheckBox::draw(), Label::draw(), ProgressBar::draw(), RadioButton::draw(), TextField::draw(), Window::draw(), Text::draw(), Font::generate(), generate(), Font::insertChunk(), operator==(), TextChunkList::removeBack(), Button::safeDraw(), ProgressBar::safeDraw(), and Window::safeDraw().
| Image* TextChunk::img | 
Definition at line 63 of file textchunk.h.
Referenced by deleteImage(), Button::draw(), CheckBox::draw(), Label::draw(), ProgressBar::draw(), RadioButton::draw(), TextField::draw(), Window::draw(), Text::draw(), Font::drawString(), Font::generate(), generate(), Font::getWidth(), Font::insertChunk(), Button::safeDraw(), ProgressBar::safeDraw(), Window::safeDraw(), and ~TextChunk().
| TextChunk* TextChunk::next | 
Definition at line 69 of file textchunk.h.
Referenced by TextChunkList::insertFirst(), TextChunkList::moveToFirst(), and TextChunkList::removeBack().
| TextChunk* TextChunk::prev | 
Definition at line 68 of file textchunk.h.
Referenced by TextChunkList::insertFirst(), TextChunkList::moveToFirst(), TextChunkList::remove(), and TextChunkList::removeBack().
| std::string TextChunk::text | 
Definition at line 65 of file textchunk.h.
Referenced by Button::draw(), CheckBox::draw(), Label::draw(), ProgressBar::draw(), RadioButton::draw(), TextField::draw(), Window::draw(), Text::draw(), Font::generate(), generate(), Font::insertChunk(), operator==(), TextChunkList::removeBack(), Button::safeDraw(), ProgressBar::safeDraw(), and Window::safeDraw().
| Font* TextChunk::textFont | 
Definition at line 64 of file textchunk.h.
Referenced by deleteImage(), Button::draw(), CheckBox::draw(), Label::draw(), ProgressBar::draw(), RadioButton::draw(), TextField::draw(), Window::draw(), Text::draw(), Font::insertChunk(), Button::safeDraw(), ProgressBar::safeDraw(), and Window::safeDraw().