OpenTTD Source: src/widgets/dropdown_func.h Source File

OpenTTD Source 12.0-beta1

dropdown_func.h
Go to the documentation of this file.
1 /*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
7
10 #ifndef WIDGETS_DROPDOWN_FUNC_H
11 #define WIDGETS_DROPDOWN_FUNC_H
12
13 #include "../window_gui.h"
14
15 /* Show drop down menu containing a fixed list of strings */
16 void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int button, uint32 disabled_mask, uint32 hidden_mask, uint width = 0);
17
18 /* Hide drop down menu of a parent window */
19 int HideDropDownMenu(Window *pw);
20
21 #endif /* WIDGETS_DROPDOWN_FUNC_H */
HideDropDownMenu
int HideDropDownMenu(Window *pw)
Delete the drop-down menu from window pw.
Definition: dropdown.cpp:498
ShowDropDownMenu
void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int button, uint32 disabled_mask, uint32 hidden_mask, uint width=0)
Show a dropdown menu window near a widget of the parent window.
Definition: dropdown.cpp:480
StringID
uint32 StringID
Numeric value that represents a string, independent of the selected language.
Definition: strings_type.h:16
Window
Data structure for an opened window.
Definition: window_gui.h:279