28 explicit theme_list(
const std::vector<theme_info>& themes,
51 virtual const std::string&
window_id()
const override;
Abstract base class for all modal dialogs.
virtual void post_show() override
Actions to be taken after the window has been shown.
int selected_index() const
Returns the selected item index after displaying.
theme_list(const std::vector< theme_info > &themes, int selection=-1)
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).
virtual void pre_show() override
Actions to be taken before showing the window.
std::vector< theme_info > themes_
std::size_t index(std::string_view str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.