#include <modalMenu.h>
Inheritance diagram for GUIModalMenu:
Collaboration diagram for GUIModalMenu:Classes | |
| struct | ScalingInfo |
Public Member Functions | |
| 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 () |
Protected Member Functions | |
| virtual std::wstring | getLabelByID (s32 id)=0 |
| virtual std::string | getNameByID (s32 id)=0 |
| ScalingInfo | getScalingInfo (v2u32 screensize, v2u32 base_size) |
Protected Attributes | |
| v2s32 | m_pointer |
| v2s32 | m_old_pointer |
| v2u32 | m_screensize_old |
| float | m_gui_scale |
| bool | m_second_touch = false |
Private Member Functions | |
| bool | remapClickOutside (const SEvent &event) |
| bool | simulateMouseEvent (ETOUCH_INPUT_EVENT touch_event, bool second_try=false) |
| void | enter (gui::IGUIElement *element) |
| void | leave () |
Private Attributes | |
| IMenuManager * | m_menumgr |
| bool | m_remap_click_outside |
| PointerAction | m_last_click_outside {} |
| bool | m_allow_focus_removal = false |
| irr_ptr< gui::IGUIElement > | m_touch_hovered |
| PointerAction | m_last_touch {} |
| GUIModalMenu::GUIModalMenu | ( | gui::IGUIEnvironment * | env, |
| gui::IGUIElement * | parent, | ||
| s32 | id, | ||
| IMenuManager * | menumgr, | ||
| bool | remap_dbl_click = true ) |
References IMenuManager::createdMenu(), g_settings, RenderingEngine::getDisplayDensity(), Settings::getFloat(), m_gui_scale, and m_menumgr.
Here is the call graph for this function:
|
virtual |
| void GUIModalMenu::allowFocusRemoval | ( | bool | allow | ) |
References m_allow_focus_removal.
Referenced by quitMenu().
Here is the caller graph for this function:| bool GUIModalMenu::canTakeFocus | ( | gui::IGUIElement * | e | ) |
References m_allow_focus_removal.
Referenced by GUIFormSpecMenu::OnEvent(), GUIKeyChangeMenu::OnEvent(), GUIOpenURLMenu::OnEvent(), GUIPasswordChange::OnEvent(), and GUIVolumeChange::OnEvent().
Here is the caller graph for this function:| void GUIModalMenu::draw | ( | ) |
References drawMenu(), m_screensize_old, and regenerateGui().
Here is the call graph for this function:
|
pure virtual |
Implemented in GUIFileSelectMenu, GUIFormSpecMenu, GUIKeyChangeMenu, GUIOpenURLMenu, GUIPasswordChange, GUITouchscreenLayout, and GUIVolumeChange.
Referenced by draw().
Here is the caller graph for this function:
|
private |
References m_touch_hovered, and sanity_check.
Referenced by preprocessEvent().
Here is the caller graph for this function:
|
protectedpure virtual |
Implemented in GUIFileSelectMenu, GUIFormSpecMenu, GUIKeyChangeMenu, GUIOpenURLMenu, GUIPasswordChange, GUITouchscreenLayout, and GUIVolumeChange.
|
protectedpure virtual |
Implemented in GUIFileSelectMenu, GUIFormSpecMenu, GUIKeyChangeMenu, GUIOpenURLMenu, GUIPasswordChange, GUITouchscreenLayout, and GUIVolumeChange.
Referenced by preprocessEvent().
Here is the caller graph for this function:
|
protected |
References m_gui_scale.
Referenced by GUIKeyChangeMenu::regenerateGui(), GUIOpenURLMenu::regenerateGui(), GUIPasswordChange::regenerateGui(), and GUIVolumeChange::regenerateGui().
Here is the caller graph for this function:
|
private |
References m_touch_hovered.
Referenced by preprocessEvent().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in GUIFileSelectMenu, GUIFormSpecMenu, GUIKeyChangeMenu, GUIOpenURLMenu, GUIPasswordChange, GUITouchscreenLayout, and GUIVolumeChange.
Referenced by remapClickOutside().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in GUIFormSpecMenu, GUIKeyChangeMenu, and GUIVolumeChange.
Referenced by MainMenuManager::pausesGame().
Here is the caller graph for this function:
|
virtual |
Reimplemented in GUIFormSpecMenu.
References enter(), PointerAction::fromEvent(), getNameByID(), porting::hasPhysicalKeyboardAndroid(), PointerAction::isRelated(), leave(), m_last_touch, m_pointer, m_second_touch, m_touch_hovered, remapClickOutside(), porting::showComboBoxDialog(), porting::showTextInputDialog(), simulateMouseEvent(), and wide_to_utf8().
Referenced by GUIFormSpecMenu::preprocessEvent(), MainMenuManager::preprocessEvent(), and simulateMouseEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| void GUIModalMenu::quitMenu | ( | ) |
References allowFocusRemoval(), IMenuManager::deletingMenu(), g_touchcontrols, m_menumgr, remove(), and TouchControls::show().
Referenced by GameFormSpec::~GameFormSpec(), GUIFileSelectMenu::acceptInput(), GameFormSpec::handleEmptyFormspec(), GUIFormSpecMenu::OnEvent(), GUIKeyChangeMenu::OnEvent(), GUIOpenURLMenu::OnEvent(), GUIPasswordChange::OnEvent(), GUITouchscreenLayout::OnEvent(), GUIVolumeChange::OnEvent(), GUIFormSpecMenu::preprocessEvent(), GUIFormSpecMenu::tryClose(), and GameFormSpec::update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtual |
Implemented in GUIFileSelectMenu, GUIFormSpecMenu, GUIKeyChangeMenu, GUIOpenURLMenu, GUIPasswordChange, GUITouchscreenLayout, and GUIVolumeChange.
Referenced by draw().
Here is the caller graph for this function:
|
private |
References PointerAction::fromEvent(), isChild(), PointerAction::isRelated(), m_last_click_outside, m_remap_click_outside, GUIInventoryList::OnEvent(), OnEvent(), and PointerAction::pos.
Referenced by preprocessEvent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References m_pointer, m_touch_hovered, preprocessEvent(), and simulateMouseEvent().
Referenced by preprocessEvent(), and simulateMouseEvent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Referenced by allowFocusRemoval(), and canTakeFocus().
|
protected |
Referenced by GUIModalMenu(), getScalingInfo(), and GUIFileSelectMenu::regenerateGui().
|
private |
Referenced by remapClickOutside().
|
private |
Referenced by preprocessEvent().
|
private |
Referenced by GUIModalMenu(), ~GUIModalMenu(), and quitMenu().
|
protected |
Referenced by GUIFormSpecMenu::OnEvent().
|
protected |
|
private |
Referenced by remapClickOutside().
|
protected |
Referenced by draw(), GUIFormSpecMenu::drawMenu(), and GUIFormSpecMenu::setFormSpec().
|
protected |
Referenced by GUIFormSpecMenu::OnEvent(), and preprocessEvent().
|
private |
Referenced by enter(), leave(), preprocessEvent(), and simulateMouseEvent().