56 virtual void handle_event(
const SDL_Event& event)
override;
59 virtual void layout()
override;
const std::unique_ptr< empty_palette > empty_palette_
void scroll_up()
Scroll the editor-palette up one step if possible.
const std::unique_ptr< item_palette > item_palette_
sdl_handler_vector handler_members() override
void scroll_down()
Scroll the editor-palette down one step if possible.
void draw_contents() override
Draw the palette.
void set_group(std::size_t index)
const std::unique_ptr< terrain_palette > terrain_palette_
palette_manager(editor_display &gui, const game_config_view &cfg, editor_toolkit &toolkit)
const std::unique_ptr< unit_palette > unit_palette_
editor_toolkit & toolkit_
const std::unique_ptr< location_palette > location_palette_
virtual void layout() override
Called by draw_manager to validate layout before drawing.
common_palette & active_palette()
virtual void handle_event(const SDL_Event &event) override
A class grating read only view to a vector of config objects, viewed as one config with all children ...
std::vector< events::sdl_handler * > sdl_handler_vector
Manage the empty-palette in the editor.
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.