#include <guiHyperText.h>
Public Member Functions | |
| GUIHyperText (const wchar_t *text, gui::IGUIEnvironment *environment, gui::IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle, Client *client, ISimpleTextureSource *tsrc) | |
| constructor | |
| virtual | ~GUIHyperText () |
| destructor | |
| virtual void | draw () |
| draws the element and its children | |
| core::dimension2du | getTextDimension () |
| bool | OnEvent (const SEvent &event) |
Protected Member Functions | |
| ParsedText::Element * | getElementAt (s32 X, s32 Y) |
| void | checkHover (s32 X, s32 Y) |
Protected Attributes | |
| ISimpleTextureSource * | m_tsrc |
| GUIScrollBar * | m_vscrollbar |
| TextDrawer | m_drawer |
| u32 | m_scrollbar_width |
| core::rect< s32 > | m_display_text_rect |
| core::position2d< s32 > | m_text_scrollpos |
| GUIHyperText::GUIHyperText | ( | const wchar_t * | text, |
| gui::IGUIEnvironment * | environment, | ||
| gui::IGUIElement * | parent, | ||
| s32 | id, | ||
| const core::rect< s32 > & | rectangle, | ||
| Client * | client, | ||
| ISimpleTextureSource * | tsrc ) |
constructor
References m_drawer, m_scrollbar_width, m_text_scrollpos, m_tsrc, and m_vscrollbar.
|
virtual |
destructor
References m_vscrollbar.
|
protected |
References RenderingEngine::get_raw_device(), getElementAt(), m_drawer, and ParsedText::Element::tags.
Referenced by OnEvent().
|
virtual |
draws the element and its children
References m_display_text_rect, m_drawer, m_scrollbar_width, m_text_scrollpos, and m_vscrollbar.
|
protected |
References m_display_text_rect, m_drawer, and m_text_scrollpos.
Referenced by checkHover(), and OnEvent().
| core::dimension2du GUIHyperText::getTextDimension | ( | ) |
| bool GUIHyperText::OnEvent | ( | const SEvent & | event | ) |
References checkHover(), g_gamecallback, RenderingEngine::get_raw_device(), getElementAt(), m_display_text_rect, m_drawer, m_text_scrollpos, m_vscrollbar, porting::open_url(), and ParsedText::Element::tags.
|
protected |
Referenced by draw(), getElementAt(), and OnEvent().
|
protected |
Referenced by GUIHyperText(), checkHover(), draw(), getElementAt(), and OnEvent().
|
protected |
Referenced by GUIHyperText(), and draw().
|
protected |
Referenced by GUIHyperText(), draw(), getElementAt(), and OnEvent().
|
protected |
Referenced by GUIHyperText().
|
protected |
Referenced by GUIHyperText(), ~GUIHyperText(), draw(), and OnEvent().