10#ifndef DROPDOWN_FUNC_H
11#define DROPDOWN_FUNC_H
16void ShowDropDownMenu(
Window *w, std::span<const StringID> strings,
int selected,
WidgetID button, uint32_t disabled_mask, uint32_t hidden_mask, uint width = 0);
19std::unique_ptr<DropDownListItem> MakeDropDownListDividerItem();
20std::unique_ptr<DropDownListItem> MakeDropDownListStringItem(
StringID str,
int value,
bool masked =
false,
bool shaded =
false);
21std::unique_ptr<DropDownListItem> MakeDropDownListStringItem(
const std::string &str,
int value,
bool masked =
false,
bool shaded =
false);
22std::unique_ptr<DropDownListItem> MakeDropDownListIconItem(
SpriteID sprite,
PaletteID palette,
StringID str,
int value,
bool masked =
false,
bool shaded =
false);
23std::unique_ptr<DropDownListItem> MakeDropDownListIconItem(
const Dimension &dim,
SpriteID sprite,
PaletteID palette,
StringID str,
int value,
bool masked =
false,
bool shaded =
false);
24std::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.