10 #ifndef DROPDOWN_FUNC_H
11 #define DROPDOWN_FUNC_H
16 void ShowDropDownMenu(
Window *w, std::span<const StringID> strings,
int selected,
WidgetID button, uint32_t disabled_mask, uint32_t hidden_mask, uint width = 0);
19 std::unique_ptr<DropDownListItem> MakeDropDownListDividerItem();
20 std::unique_ptr<DropDownListItem> MakeDropDownListStringItem(
StringID str,
int value,
bool masked =
false,
bool shaded =
false);
21 std::unique_ptr<DropDownListItem> MakeDropDownListStringItem(
const std::string &str,
int value,
bool masked =
false,
bool shaded =
false);
22 std::unique_ptr<DropDownListItem> MakeDropDownListIconItem(
SpriteID sprite,
PaletteID palette,
StringID str,
int value,
bool masked =
false,
bool shaded =
false);
23 std::unique_ptr<DropDownListItem> MakeDropDownListIconItem(
const Dimension &dim,
SpriteID sprite,
PaletteID palette,
StringID str,
int value,
bool masked =
false,
bool shaded =
false);
24 std::unique_ptr<DropDownListItem> MakeDropDownListCheckedItem(
bool checked,
StringID str,
int value,
bool masked =
false,
bool shaded =
false);
void ShowDropDownMenu(Window *w, std::span< const StringID > strings, int selected, WidgetID button, uint32_t disabled_mask, uint32_t hidden_mask, uint width=0)
Show a dropdown menu window near a widget of the parent window.
uint32_t SpriteID
The number of a sprite, without mapping bits and colourtables.
uint32_t PaletteID
The number of the palette.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.
Dimensions (a width and height) of a rectangle in 2D.
Data structure for an opened window.
Functions, definitions and such used only by the GUI.