|
OpenTTD Source 20251117-master-g7398d2e290
|
Base for the GUIs that have an edit box in them. More...
Go to the source code of this file.
Data Structures | |
| struct | QueryString |
| Data stored about a string that can be modified in the GUI. More... | |
Functions | |
| void | ShowOnScreenKeyboard (Window *parent, WidgetID button) |
| Show the on-screen keyboard (osk) associated with a given textbox. | |
| void | UpdateOSKOriginalText (const Window *parent, WidgetID button) |
| Updates the original text of the OSK so when the 'parent' changes the original and you press on cancel you won't get the 'old' original text but the updated one. | |
| bool | IsOSKOpenedFor (const Window *w, WidgetID button) |
| Check whether the OSK is opened for a specific editbox. | |
Base for the GUIs that have an edit box in them.
Definition in file querystring_gui.h.
Check whether the OSK is opened for a specific editbox.
| w | Window to check for |
| button | Editbox of w to check for |
Definition at line 422 of file osk_gui.cpp.
References FindWindowById(), Window::parent, OskWindow::text_btn, and WC_OSK.
Show the on-screen keyboard (osk) associated with a given textbox.
| parent | pointer to the Window where this keyboard originated from |
| button | widget number of parent's textbox |
Definition at line 391 of file osk_gui.cpp.
References CloseWindowById(), GetKeyboardLayout(), and WC_OSK.
Updates the original text of the OSK so when the 'parent' changes the original and you press on cancel you won't get the 'old' original text but the updated one.
| parent | window that just updated its original text |
| button | widget number of parent's textbox to update |
Definition at line 406 of file osk_gui.cpp.
References FindWindowById(), Textbuf::GetText(), OskWindow::orig_str, Window::parent, OskWindow::qs, Window::SetDirty(), OskWindow::text_btn, and WC_OSK.