#include <guiOpenURL.h>
Public Member Functions | |
GUIOpenURLMenu (gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, ISimpleTextureSource *tsrc, const std::string &url) | |
void | regenerateGui (v2u32 screensize) |
void | drawMenu () |
bool | OnEvent (const SEvent &event) |
Public Member Functions inherited from GUIModalMenu | |
GUIModalMenu (gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, bool remap_dbl_click=true) | |
virtual | ~GUIModalMenu () |
void | allowFocusRemoval (bool allow) |
bool | canTakeFocus (gui::IGUIElement *e) |
void | draw () |
void | quitMenu () |
virtual void | regenerateGui (v2u32 screensize)=0 |
virtual void | drawMenu ()=0 |
virtual bool | preprocessEvent (const SEvent &event) |
virtual bool | OnEvent (const SEvent &event) |
virtual bool | pausesGame () |
PointerType | getPointerType () |
Protected Member Functions | |
std::wstring | getLabelByID (s32 id) |
std::string | getNameByID (s32 id) |
virtual std::wstring | getLabelByID (s32 id)=0 |
virtual std::string | getNameByID (s32 id)=0 |
Private Attributes | |
ISimpleTextureSource * | m_tsrc |
std::string | url |
Additional Inherited Members | |
Protected Attributes inherited from GUIModalMenu | |
PointerType | m_pointer_type = PointerType::Mouse |
v2s32 | m_pointer |
v2s32 | m_old_pointer |
v2u32 | m_screensize_old |
float | m_gui_scale |
bool | m_second_touch = false |
bool | m_simulated_mouse = false |
GUIOpenURLMenu::GUIOpenURLMenu | ( | gui::IGUIEnvironment * | env, |
gui::IGUIElement * | parent, | ||
s32 | id, | ||
IMenuManager * | menumgr, | ||
ISimpleTextureSource * | tsrc, | ||
const std::string & | url | ||
) |
|
virtual |
Implements GUIModalMenu.
|
inlineprotectedvirtual |
Implements GUIModalMenu.
|
inlineprotectedvirtual |
Implements GUIModalMenu.
|
virtual |
Reimplemented from GUIModalMenu.
References GUIModalMenu::canTakeFocus(), ID_cancel, infostream, porting::open_url(), GUIModalMenu::quitMenu(), and url.
|
virtual |
Implements GUIModalMenu.
References irr::gui::StaticText::add(), GUIButton::addButton(), colorize_url(), FM_Mono, FM_Standard, FONT_SIZE_UNSPECIFIED, g_fontengine, FontEngine::getFont(), ID_cancel, GUIModalMenu::m_gui_scale, m_tsrc, url, utf8_to_wide(), wrap_rows(), and wstrgettext().
|
private |
Referenced by regenerateGui().
|
private |
Referenced by OnEvent(), and regenerateGui().