Minetest  5.4.0
GUIVolumeChange Class Reference

#include <guiVolumeChange.h>

+ Inheritance diagram for GUIVolumeChange:
+ Collaboration diagram for GUIVolumeChange:

Public Member Functions

 GUIVolumeChange (gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, ISimpleTextureSource *tsrc)
 
 ~GUIVolumeChange ()
 
void removeChildren ()
 
void regenerateGui (v2u32 screensize)
 
void drawMenu ()
 
bool OnEvent (const SEvent &event)
 
bool pausesGame ()
 
- 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 ()
 
void removeChildren ()
 
virtual bool preprocessEvent (const SEvent &event)
 

Protected Member Functions

std::wstring getLabelByID (s32 id)
 
std::string getNameByID (s32 id)
 
- Protected Member Functions inherited from GUIModalMenu
bool DoubleClickDetection (const SEvent &event)
 check if event is part of a double click More...
 

Private Attributes

ISimpleTextureSourcem_tsrc
 

Additional Inherited Members

- Protected Attributes inherited from GUIModalMenu
v2s32 m_pointer
 
v2s32 m_old_pointer
 
v2u32 m_screensize_old
 
float m_gui_scale
 

Constructor & Destructor Documentation

◆ GUIVolumeChange()

GUIVolumeChange::GUIVolumeChange ( gui::IGUIEnvironment *  env,
gui::IGUIElement *  parent,
s32  id,
IMenuManager menumgr,
ISimpleTextureSource tsrc 
)

◆ ~GUIVolumeChange()

GUIVolumeChange::~GUIVolumeChange ( )

References removeChildren().

+ Here is the call graph for this function:

Member Function Documentation

◆ drawMenu()

void GUIVolumeChange::drawMenu ( )
virtual

Implements GUIModalMenu.

◆ getLabelByID()

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

Implements GUIModalMenu.

◆ getNameByID()

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

Implements GUIModalMenu.

◆ OnEvent()

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

Reimplemented from GUIModalMenu.

References GUIModalMenu::canTakeFocus(), g_settings, ID_soundExitButton, ID_soundMuteButton, ID_soundSlider, ID_soundText, infostream, GUIModalMenu::quitMenu(), Settings::setBool(), Settings::setFloat(), and wgettext().

+ Here is the call graph for this function:

◆ pausesGame()

bool GUIVolumeChange::pausesGame ( )
inlinevirtual

Reimplemented from GUIModalMenu.

◆ regenerateGui()

void GUIVolumeChange::regenerateGui ( v2u32  screensize)
virtual

Implements GUIModalMenu.

References GUIButton::addButton(), g_settings, Settings::getBool(), Settings::getFloat(), ID_soundExitButton, ID_soundMuteButton, ID_soundSlider, ID_soundText, GUIModalMenu::m_gui_scale, m_tsrc, removeChildren(), and wgettext().

+ Here is the call graph for this function:

◆ removeChildren()

void GUIVolumeChange::removeChildren ( )

References ID_soundExitButton, ID_soundMuteButton, ID_soundSlider, and ID_soundText.

Referenced by ~GUIVolumeChange(), and regenerateGui().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_tsrc

ISimpleTextureSource* GUIVolumeChange::m_tsrc
private

Referenced by regenerateGui().


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