10#include <unordered_set>
23#include <ICursorControl.h>
24#include <IGUIStaticText.h>
71 virtual void gotText(
const std::wstring &text) {}
81 virtual const std::string &
getForm()
const = 0;
83 virtual std::string
resolveText(
const std::string &str) {
return str; }
93 const std::string &a_listname):
107 FieldSpec(
const std::string &name,
const std::wstring &label,
108 const std::wstring &default_text, s32
id,
int priority = 0,
109 gui::ECURSOR_ICON cursor_icon = ECI_NORMAL) :
140 TooltipSpec(
const std::wstring &a_tooltip, irr::video::SColor a_bgcolor,
141 irr::video::SColor a_color):
155 gui::IGUIElement* parent, s32
id,
158 gui::IGUIEnvironment *
guienv,
163 const std::string &formspecPrepend,
164 bool remap_dbl_click =
true);
170 TextDest *txt_dest,
const std::string &formspecPrepend,
270 bool OnEvent(
const SEvent& event);
281 void getAndroidUIInput();
287 static double getImgsize(
v2u32 avail_screensize,
double screen_dpi,
double gui_scaling);
300 bool precheckElement(
const std::string &name,
const std::string &element,
301 size_t args_min,
size_t args_max, std::vector<std::string> &parts);
308 const std::string &name=
"",
const std::string &parent_type=
"");
309 std::array<StyleSpec, StyleSpec::NUM_STATES>
getStyleForElement(
const std::string &type,
310 const std::string &name=
"",
const std::string &parent_type=
"");
338 std::vector<std::pair<FieldSpec, GUITable *>>
m_tables;
343 std::vector<std::pair<FieldSpec, std::vector<std::string>>>
m_dropdowns;
459 core::rect<s32> &rect,
bool is_multiline);
462 const std::string &type);
488 bool parseMiddleRect(
const std::string &value, core::rect<s32> *parsed_rect);
492 void showTooltip(
const std::wstring &text,
const irr::video::SColor &color,
493 const irr::video::SColor &bgcolor);
std::vector< Option > TableOptions
Definition guiTable.h:63
std::vector< TableColumn > TableColumns
Definition guiTable.h:73
Definition texturesource.h:25
Definition inventorymanager.h:96
Definition joystick_controller.h:87
Definition StyleSpec.h:18
gui::IGUIEnvironment * guienv
Definition clientlauncher.cpp:34
core::vector2d< f32 > v2f32
Definition irr_v2d.h:15
core::vector2d< s32 > v2s32
Definition irr_v2d.h:13
core::vector2d< f32 > v2f
Definition irr_v2d.h:11
core::vector2d< u32 > v2u32
Definition irr_v2d.h:14
Definition activeobjectmgr.cpp:11
static void translate_string(std::wstring_view s, Translations *translations, const std::wstring &textdomain, size_t &i, std::wstring &res, bool use_plural, unsigned long int number)
Definition string.cpp:700
std::unordered_map< std::string, std::string > StringMap
Definition string.h:65
std::basic_string< T > unescape_enriched(const std::basic_string< T > &s)
Remove all escape sequences in s.
Definition string.h:581
Definition guiInventoryList.h:17
Definition guiInventoryList.h:46
Definition inventorymanager.h:18
Definition inventory.h:19
Definition guiFormSpecMenu.h:67
virtual void gotText(const std::wstring &text)
Definition guiFormSpecMenu.h:71
virtual void gotText(const StringMap &fields)=0
virtual ~TextDest()=default
std::string m_formname
Definition guiFormSpecMenu.h:74
static std::string p(std::string path)
Definition test_filesys.cpp:53