Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
GUIOpenURLMenu Class Reference

#include <guiOpenURL.h>

+ Inheritance diagram for GUIOpenURLMenu:
+ Collaboration diagram for GUIOpenURLMenu:

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 bool preprocessEvent (const SEvent &event)
 
virtual bool pausesGame ()
 

Protected Member Functions

std::wstring getLabelByID (s32 id)
 
std::string getNameByID (s32 id)
 
- Protected Member Functions inherited from GUIModalMenu
ScalingInfo getScalingInfo (v2u32 screensize, v2u32 base_size)
 

Private Attributes

ISimpleTextureSourcem_tsrc
 
std::string url
 

Additional Inherited Members

- Protected Attributes inherited from GUIModalMenu
v2s32 m_pointer
 
v2s32 m_old_pointer
 
v2u32 m_screensize_old
 
float m_gui_scale
 
bool m_second_touch = false
 

Constructor & Destructor Documentation

◆ GUIOpenURLMenu()

GUIOpenURLMenu::GUIOpenURLMenu ( gui::IGUIEnvironment * env,
gui::IGUIElement * parent,
s32 id,
IMenuManager * menumgr,
ISimpleTextureSource * tsrc,
const std::string & url )

Member Function Documentation

◆ drawMenu()

void GUIOpenURLMenu::drawMenu ( )
virtual

Implements GUIModalMenu.

◆ getLabelByID()

std::wstring GUIOpenURLMenu::getLabelByID ( s32 id)
inlineprotectedvirtual

Implements GUIModalMenu.

◆ getNameByID()

std::string GUIOpenURLMenu::getNameByID ( s32 id)
inlineprotectedvirtual

Implements GUIModalMenu.

◆ OnEvent()

bool GUIOpenURLMenu::OnEvent ( const SEvent & event)
virtual

Reimplemented from GUIModalMenu.

References GUIModalMenu::canTakeFocus(), ID_cancel, infostream, porting::open_url(), GUIModalMenu::quitMenu(), and url.

+ Here is the call graph for this function:

◆ regenerateGui()

void GUIOpenURLMenu::regenerateGui ( v2u32 screensize)
virtual

Implements GUIModalMenu.

References irr::gui::StaticText::add(), GUIButton::addButton(), FM_Mono, FM_Standard, FONT_SIZE_UNSPECIFIED, g_fontengine, FontEngine::getFont(), GUIModalMenu::getScalingInfo(), ID_cancel, m_tsrc, maybe_colorize_url(), GUIModalMenu::ScalingInfo::rect, GUIModalMenu::ScalingInfo::scale, url, utf8_to_wide(), wrap_rows(), and wstrgettext().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_tsrc

ISimpleTextureSource* GUIOpenURLMenu::m_tsrc
private

Referenced by regenerateGui().

◆ url

std::string GUIOpenURLMenu::url
private

Referenced by OnEvent(), and regenerateGui().


The documentation for this class was generated from the following files: