Minetest 5.9.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 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

ISimpleTextureSourcem_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
 

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(), 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().

+ 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: