#include <guiHyperText.h>
◆ TextDrawer()
| TextDrawer::TextDrawer |
( |
const wchar_t * | text, |
|
|
Client * | client, |
|
|
gui::IGUIEnvironment * | environment, |
|
|
ISimpleTextureSource * | tsrc, |
|
|
video::SColor | default_background_color, |
|
|
video::SColor | default_color ) |
◆ applyStyleSpecToText()
| void TextDrawer::applyStyleSpecToText |
( |
const StyleSpec & | style | ) |
|
References ParsedText::background_color, ParsedText::background_image, ParsedText::background_middle, ParsedText::background_type, StyleSpec::BGCOLOR, StyleSpec::BGIMG, StyleSpec::BGIMG_MIDDLE, StyleSpec::BORDER, ParsedText::border, StyleSpec::getBool(), StyleSpec::getColor(), StyleSpec::getRect(), StyleSpec::getTexture(), StyleSpec::isNotDefault(), m_default_background_color, m_text, and m_tsrc.
Referenced by GUIHyperText::setStyles().
◆ draw()
| void TextDrawer::draw |
( |
const core::rect< s32 > & | clip_rect, |
|
|
const core::position2d< s32 > & | dest_offset ) |
References ParsedText::BACKGROUND_COLOR, ParsedText::background_color, ParsedText::background_image, ParsedText::background_type, ParsedText::border, ItemStack::deSerialize(), drawBackgroundImage(), 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, and m_voffset.
Referenced by GUIHyperText::draw(), and GUIHyperText::OnEvent().
◆ drawBackgroundImage()
| void TextDrawer::drawBackgroundImage |
( |
video::IVideoDriver * | driver, |
|
|
const core::rect< s32 > & | clip_rect ) |
◆ getElementAt()
◆ getHeight()
| s32 TextDrawer::getHeight |
( |
| ) |
|
|
inline |
◆ place()
| 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, TextDrawer::RectWithMargin::rect, ParsedText::valign, ParsedText::VALIGN_BOTTOM, ParsedText::VALIGN_MIDDLE, ParsedText::VALIGN_TOP, x, and y.
Referenced by GUIHyperText::draw().
◆ m_client
◆ m_default_background_color
| video::SColor TextDrawer::m_default_background_color |
|
protected |
◆ m_floating
◆ m_guienv
| gui::IGUIEnvironment* TextDrawer::m_guienv |
|
protected |
◆ m_height
| s32 TextDrawer::m_height = 0 |
|
protected |
◆ m_hovertag
◆ m_text
◆ m_tsrc
◆ m_voffset
| s32 TextDrawer::m_voffset |
|
protected |
The documentation for this class was generated from the following files: