#include <guiHyperText.h>
Collaboration diagram for TextDrawer:Classes | |
| struct | RectWithMargin |
Public Member Functions | |
| TextDrawer (const wchar_t *text, Client *client, gui::IGUIEnvironment *environment, ISimpleTextureSource *tsrc) | |
| void | place (const core::rect< s32 > &dest_rect) |
| s32 | getHeight () |
| void | draw (const core::rect< s32 > &clip_rect, const core::position2d< s32 > &dest_offset) |
| ParsedText::Element * | getElementAt (core::position2d< s32 > pos) |
Public Attributes | |
| ParsedText::Tag * | m_hovertag |
Protected Attributes | |
| ParsedText | m_text |
| Client * | m_client |
| null in the mainmenu | |
| ISimpleTextureSource * | m_tsrc |
| gui::IGUIEnvironment * | m_guienv |
| s32 | m_height |
| s32 | m_voffset |
| std::vector< RectWithMargin > | m_floating |
| TextDrawer::TextDrawer | ( | const wchar_t * | text, |
| Client * | client, | ||
| gui::IGUIEnvironment * | environment, | ||
| ISimpleTextureSource * | tsrc ) |
References ParsedText::ELEMENT_IMAGE, ParsedText::ELEMENT_ITEM, ParsedText::ELEMENT_SEPARATOR, ParsedText::ELEMENT_TEXT, irr::gui::CGUITTFont::getAscender(), ParsedText::m_paragraphs, m_text, m_tsrc, and p().
Here is the call graph for this function:| void TextDrawer::draw | ( | const core::rect< s32 > & | clip_rect, |
| const core::position2d< s32 > & | dest_offset ) |
References ParsedText::BACKGROUND_COLOR, ParsedText::background_color, ParsedText::background_type, ItemStack::deSerialize(), drawItemStack(), ParsedText::ELEMENT_IMAGE, ParsedText::ELEMENT_ITEM, ParsedText::ELEMENT_SEPARATOR, ParsedText::ELEMENT_TEXT, g_fontengine, FontEngine::getFont(), ISimpleTextureSource::getTexture(), IGameDef::idef(), IT_ROT_OTHER, m_client, m_guienv, m_hovertag, ParsedText::m_paragraphs, m_text, m_tsrc, m_voffset, and p().
Referenced by GUIHyperText::draw(), and GUIHyperText::OnEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| ParsedText::Element * TextDrawer::getElementAt | ( | core::position2d< s32 > | pos | ) |
References ParsedText::m_paragraphs, m_text, m_voffset, and p().
Referenced by GUIHyperText::getElementAt().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_height.
Referenced by GUIHyperText::draw().
Here is the caller graph for this function:| void TextDrawer::place | ( | const core::rect< s32 > & | dest_rect | ) |
References ParsedText::ELEMENT_IMAGE, ParsedText::ELEMENT_ITEM, ParsedText::ELEMENT_SEPARATOR, ParsedText::ELEMENT_TEXT, ParsedText::FLOAT_LEFT, ParsedText::FLOAT_NONE, ParsedText::FLOAT_RIGHT, ParsedText::HALIGN_CENTER, ParsedText::HALIGN_JUSTIFY, ParsedText::HALIGN_LEFT, ParsedText::HALIGN_RIGHT, m_floating, m_height, ParsedText::m_paragraphs, m_text, m_voffset, ParsedText::margin, TextDrawer::RectWithMargin::margin, p(), TextDrawer::RectWithMargin::rect, ParsedText::valign, ParsedText::VALIGN_BOTTOM, ParsedText::VALIGN_MIDDLE, ParsedText::VALIGN_TOP, x, and y.
Referenced by GUIHyperText::draw().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Referenced by place().
|
protected |
Referenced by draw().
|
protected |
Referenced by getHeight(), and place().
| ParsedText::Tag* TextDrawer::m_hovertag |
Referenced by GUIHyperText::checkHover(), draw(), and GUIHyperText::OnEvent().
|
protected |
Referenced by TextDrawer(), draw(), getElementAt(), and place().
|
protected |
Referenced by TextDrawer(), and draw().
|
protected |
Referenced by draw(), getElementAt(), and place().