38 explicit theme_list(
const std::vector<theme_info>& themes,
61 virtual const std::string&
window_id()
const override;
Abstract base class for all modal dialogs.
Dialog for selecting a GUI theme.
int selected_index() const
Returns the selected item index after displaying.
theme_list(const std::vector< theme_info > &themes, int selection=-1)
virtual void post_show(window &window) override
Actions to be taken after the window has been shown.
virtual const std::string & window_id() const override
The ID of the window to build.
void set_selected_index(int index)
Sets the initially selected item index (-1 by default).
std::vector< theme_info > themes_
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
base class of top level items, the only item which needs to store the final canvases to draw on.
std::size_t index(const std::string &str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.