#include "touchscreenlayout.h"
#include "client/renderingengine.h"
#include "client/texturesource.h"
#include "convert_json.h"
#include "gettext.h"
#include "settings.h"
#include <json/json.h>
#include "IGUIFont.h"
#include "IGUIStaticText.h"
Functions | |
static touch_gui_button_id | button_name_to_id (const std::string &name) |
void | layout_button_grid (v2u32 screensize, ISimpleTextureSource *tsrc, const std::vector< touch_gui_button_id > &buttons, const std::function< void(touch_gui_button_id btn, v2s32 pos, core::recti rect)> &callback) |
void | make_button_grid_title (gui::IGUIStaticText *text, touch_gui_button_id btn, v2s32 pos, core::recti rect) |
Variables | |
const char * | button_names [] |
const char * | button_titles [] |
const char * | button_image_names [] |
|
static |
References button_names, and touch_gui_button_id_END.
Referenced by ButtonLayout::deserializeJson().
void layout_button_grid | ( | v2u32 | screensize, |
ISimpleTextureSource * | tsrc, | ||
const std::vector< touch_gui_button_id > & | buttons, | ||
const std::function< void(touch_gui_button_id btn, v2s32 pos, core::recti rect)> & | callback ) |
References ButtonLayout::getButtonSize(), and ButtonLayout::getTexture().
Referenced by TouchControls::applyLayout(), and GUITouchscreenLayout::regenerateGUIImagesAddMode().
void make_button_grid_title | ( | gui::IGUIStaticText * | text, |
touch_gui_button_id | btn, | ||
v2s32 | pos, | ||
core::recti | rect ) |
References button_titles, and wstrgettext().
Referenced by TouchControls::applyLayout(), and GUITouchscreenLayout::regenerateGUIImagesAddMode().
const char* button_image_names[] |
Referenced by TouchControls::applyLayout(), ButtonLayout::getTexture(), and TouchControls::makeButtonDirect().
const char* button_names[] |
Referenced by button_name_to_id(), and ButtonLayout::serializeJson().
const char* button_titles[] |
Referenced by make_button_grid_title().