#include <touchscreenlayout.h>
Collaboration diagram for ButtonLayout:Public Types | |
| using | ButtonMap = std::unordered_map<touch_gui_button_id, ButtonMeta> |
Public Member Functions | |
| core::recti | getRect (touch_gui_button_id btn, v2u32 screensize, s32 button_size, ISimpleTextureSource *tsrc) |
| std::vector< touch_gui_button_id > | getMissingButtons () |
| void | serializeJson (std::ostream &os) const |
Static Public Member Functions | |
| static bool | isButtonValid (touch_gui_button_id id) |
| static bool | isButtonAllowed (touch_gui_button_id id) |
| static bool | isButtonRequired (touch_gui_button_id id) |
| static s32 | getButtonSize (v2u32 screensize) |
| static ButtonLayout | loadDefault () |
| static ButtonLayout | loadFromSettings () |
| static video::ITexture * | getTexture (touch_gui_button_id btn, ISimpleTextureSource *tsrc) |
| static void | clearTextureCache () |
Public Attributes | |
| ButtonMap | layout |
| ButtonMap | preserved_disallowed |
Static Private Member Functions | |
| static ButtonMap | deserializeJson (std::istream &is) |
| static ButtonLayout | postProcessLoaded (const ButtonMap &map) |
Static Private Attributes | |
| static const ButtonMap | default_data |
| static std::unordered_map< touch_gui_button_id, irr_ptr< video::ITexture > > | texture_cache |
| using ButtonLayout::ButtonMap = std::unordered_map<touch_gui_button_id, ButtonMeta> |
|
static |
References texture_cache.
Referenced by GUITouchscreenLayout::~GUITouchscreenLayout().
Here is the caller graph for this function:
|
staticprivate |
References button_name_to_id(), default_data, dig_id, isButtonValid(), ButtonMeta::offset, place_id, and ButtonMeta::position.
Referenced by loadFromSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References g_settings, RenderingEngine::getDisplayDensity(), and Settings::getFloat().
Referenced by TouchControls::TouchControls(), layout_button_grid(), GUITouchscreenLayout::regenerateGui(), and TouchControls::step().
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< touch_gui_button_id > ButtonLayout::getMissingButtons | ( | ) |
References isButtonAllowed(), isButtonValid(), layout, and touch_gui_button_id_END.
Referenced by TouchControls::applyLayout(), GUITouchscreenLayout::regenerateGUIImagesAddMode(), and GUITouchscreenLayout::regenerateMenu().
Here is the call graph for this function:
Here is the caller graph for this function:| core::recti ButtonLayout::getRect | ( | touch_gui_button_id | btn, |
| v2u32 | screensize, | ||
| s32 | button_size, | ||
| ISimpleTextureSource * | tsrc ) |
References ButtonMeta::getPos(), getTexture(), and layout.
Referenced by TouchControls::applyLayout(), GUITouchscreenLayout::regenerateGUIImagesRegular(), and GUITouchscreenLayout::updateDragState().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References button_image_names, ISimpleTextureSource::getTexture(), porting::path_share, and texture_cache.
Referenced by getRect(), layout_button_grid(), GUITouchscreenLayout::regenerateGUIImagesAddMode(), and GUITouchscreenLayout::regenerateGUIImagesRegular().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References aux1_id, buttons_crosshair, dig_id, g_settings, Settings::get(), Settings::getBool(), and place_id.
Referenced by getMissingButtons(), TouchControls::mayAddButton(), and postProcessLoaded().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References overflow_id.
Referenced by GUITouchscreenLayout::regenerateMenu().
Here is the caller graph for this function:
|
static |
References joystick_bg_id, joystick_center_id, joystick_off_id, and touch_gui_button_id_END.
Referenced by deserializeJson(), getMissingButtons(), TouchControls::mayAddButton(), and postProcessLoaded().
Here is the caller graph for this function:
|
static |
References default_data, and postProcessLoaded().
Referenced by loadFromSettings(), and GUITouchscreenLayout::OnEvent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References deserializeJson(), g_settings, Settings::get(), loadDefault(), postProcessLoaded(), and warningstream.
Referenced by GUITouchscreenLayout::GUITouchscreenLayout(), and TouchControls::readSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
References isButtonAllowed(), isButtonValid(), and layout.
Referenced by loadDefault(), and loadFromSettings().
Here is the call graph for this function:
Here is the caller graph for this function:| void ButtonLayout::serializeJson | ( | std::ostream & | os | ) | const |
References button_names, fastWriteJson(), layout, and preserved_disallowed.
Referenced by GUITouchscreenLayout::OnEvent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Referenced by deserializeJson(), and loadDefault().
| ButtonMap ButtonLayout::layout |
Referenced by TouchControls::applyLayout(), GUITouchscreenLayout::clearGUIImages(), getMissingButtons(), getRect(), GUITouchscreenLayout::OnEvent(), postProcessLoaded(), GUITouchscreenLayout::regenerateGui(), GUITouchscreenLayout::regenerateGUIImagesAddMode(), GUITouchscreenLayout::regenerateGUIImagesRegular(), serializeJson(), and GUITouchscreenLayout::updateDragState().
| ButtonMap ButtonLayout::preserved_disallowed |
Referenced by serializeJson().
|
staticprivate |
Referenced by clearTextureCache(), and getTexture().