Luanti 5.16.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 )

References GUIModalMenu::GUIModalMenu(), m_tsrc, and url.

Here is the call graph for this function:

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

Member Data Documentation

◆ m_tsrc

ISimpleTextureSource* GUIOpenURLMenu::m_tsrc
private

Referenced by GUIOpenURLMenu(), and regenerateGui().

◆ url

std::string GUIOpenURLMenu::url
private

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