#include <touchscreeneditor.h>
◆ Mode
Enumerator |
---|
Default | |
Dragging | |
Add | |
◆ GUITouchscreenLayout()
GUITouchscreenLayout::GUITouchscreenLayout |
( |
gui::IGUIEnvironment * | env, |
|
|
gui::IGUIElement * | parent, |
|
|
s32 | id, |
|
|
IMenuManager * | menumgr, |
|
|
ISimpleTextureSource * | tsrc ) |
References g_touchcontrols, TouchControls::getLayout(), grab_gui_element(), ButtonLayout::loadFromSettings(), m_gui_add_btn, m_gui_done_btn, m_gui_help_text, m_gui_remove_btn, m_gui_reset_btn, m_layout, and wstrgettext().
◆ ~GUITouchscreenLayout()
GUITouchscreenLayout::~GUITouchscreenLayout |
( |
| ) |
|
◆ clearGUIImages()
void GUITouchscreenLayout::clearGUIImages |
( |
| ) |
|
|
private |
◆ drawMenu()
void GUITouchscreenLayout::drawMenu |
( |
| ) |
|
|
virtual |
◆ getLabelByID()
std::wstring GUITouchscreenLayout::getLabelByID |
( |
s32 | id | ) |
|
|
inlineprotectedvirtual |
◆ getNameByID()
std::string GUITouchscreenLayout::getNameByID |
( |
s32 | id | ) |
|
|
inlineprotectedvirtual |
◆ interpolateGUIImages()
void GUITouchscreenLayout::interpolateGUIImages |
( |
| ) |
|
|
private |
◆ OnEvent()
bool GUITouchscreenLayout::OnEvent |
( |
const SEvent & | event | ) |
|
|
virtual |
Reimplemented from GUIModalMenu.
References Add, TouchControls::applyLayout(), Default, Dragging, g_settings, g_touchcontrols, ButtonLayout::layout, m_add_layout, m_error_rects, m_gui_add_btn, m_gui_done_btn, m_gui_images, m_gui_remove_btn, m_gui_reset_btn, m_last_good_layout, m_last_mouse_pos, m_layout, m_mode, m_mouse_down, m_selected_btn, ButtonLayout::predefined, GUIModalMenu::quitMenu(), regenerateGui(), ButtonLayout::serializeJson(), Settings::set(), touch_gui_button_id_END, and updateDragState().
◆ regenerateGui()
void GUITouchscreenLayout::regenerateGui |
( |
v2u32 | screensize | ) |
|
|
virtual |
Implements GUIModalMenu.
References Add, clearGUIImages(), ButtonLayout::getButtonSize(), ButtonLayout::layout, m_button_size, m_last_screensize, m_layout, m_mode, m_selected_btn, regenerateGUIImagesAddMode(), regenerateGUIImagesRegular(), regenerateMenu(), and touch_gui_button_id_END.
Referenced by OnEvent().
◆ regenerateGUIImagesAddMode()
void GUITouchscreenLayout::regenerateGUIImagesAddMode |
( |
v2u32 | screensize | ) |
|
|
private |
References Add, clearGUIImages(), ButtonLayout::getMissingButtons(), ButtonLayout::getTexture(), grab_gui_element(), ButtonLayout::layout, layout_button_grid(), m_add_button_titles, m_add_layout, m_button_size, m_gui_images, m_layout, m_mode, m_tsrc, make_button_grid_title(), and ButtonMeta::setPos().
Referenced by regenerateGui().
◆ regenerateGUIImagesRegular()
void GUITouchscreenLayout::regenerateGUIImagesRegular |
( |
v2u32 | screensize | ) |
|
|
private |
References Add, clearGUIImages(), ButtonLayout::getRect(), ButtonLayout::getTexture(), grab_gui_element(), ButtonLayout::layout, m_button_size, m_gui_images, m_gui_images_target_pos, m_layout, m_mode, and m_tsrc.
Referenced by regenerateGui().
◆ regenerateMenu()
void GUITouchscreenLayout::regenerateMenu |
( |
v2u32 | screensize | ) |
|
|
private |
References Add, ButtonLayout::getMissingButtons(), ButtonLayout::isButtonRequired(), layout_menu_row(), m_gui_add_btn, m_gui_done_btn, m_gui_help_text, m_gui_remove_btn, m_gui_reset_btn, m_layout, m_mode, m_selected_btn, touch_gui_button_id_END, and wstrgettext().
Referenced by regenerateGui().
◆ updateDragState()
void GUITouchscreenLayout::updateDragState |
( |
v2u32 | screensize, |
|
|
v2s32 | mouse_movement ) |
|
private |
References Dragging, ButtonLayout::getRect(), ButtonLayout::layout, m_button_size, m_error_rects, m_last_good_layout, m_layout, m_mode, m_selected_btn, m_tsrc, and ButtonMeta::setPos().
Referenced by OnEvent().
◆ m_add_button_titles
std::vector<std::shared_ptr<gui::IGUIStaticText> > GUITouchscreenLayout::m_add_button_titles |
|
private |
◆ m_add_layout
◆ m_button_size
s32 GUITouchscreenLayout::m_button_size |
|
private |
◆ m_error_rects
std::vector<core::recti> GUITouchscreenLayout::m_error_rects |
|
private |
◆ m_gui_add_btn
std::shared_ptr<gui::IGUIButton> GUITouchscreenLayout::m_gui_add_btn |
|
private |
◆ m_gui_done_btn
std::shared_ptr<gui::IGUIButton> GUITouchscreenLayout::m_gui_done_btn |
|
private |
◆ m_gui_help_text
std::shared_ptr<gui::IGUIStaticText> GUITouchscreenLayout::m_gui_help_text |
|
private |
◆ m_gui_images
std::unordered_map<touch_gui_button_id, std::shared_ptr<gui::IGUIImage> > GUITouchscreenLayout::m_gui_images |
|
private |
◆ m_gui_images_target_pos
◆ m_gui_remove_btn
std::shared_ptr<gui::IGUIButton> GUITouchscreenLayout::m_gui_remove_btn |
|
private |
◆ m_gui_reset_btn
std::shared_ptr<gui::IGUIButton> GUITouchscreenLayout::m_gui_reset_btn |
|
private |
◆ m_last_good_layout
◆ m_last_mouse_pos
v2s32 GUITouchscreenLayout::m_last_mouse_pos |
|
private |
◆ m_last_screensize
v2u32 GUITouchscreenLayout::m_last_screensize |
|
private |
◆ m_layout
◆ m_mode
◆ m_mouse_down
bool GUITouchscreenLayout::m_mouse_down = false |
|
private |
◆ m_selected_btn
◆ m_tsrc
The documentation for this class was generated from the following files: