163 void set_id(
const std::string&
id);
164 const std::string&
id()
const;
391 virtual void move(
const int x_offset,
const int y_offset);
496 #ifdef DEBUG_WINDOW_LAYOUT_GRAPHS
504 mutable point last_best_size_;
696 const bool must_be_active);
700 const bool must_be_active)
const;
717 virtual widget*
find(
const std::string_view
id,
const bool must_be_active);
720 virtual const widget*
find(
const std::string_view
id,
const bool must_be_active)
const;
754 const std::string_view
id,
755 const bool must_be_active,
756 const bool must_exist)
758 T* result =
dynamic_cast<T*
>(this->
find(
id, must_be_active));
766 const std::string_view
id,
767 const bool must_be_active,
768 const bool must_exist)
const
770 T* result =
dynamic_cast<T*
>(this->
find(
id, must_be_active));
791 const std::string_view
id,
792 const bool must_be_active =
false)
794 return *(this->find_widget<T>(
id, must_be_active,
true));
799 const std::string_view
id,
800 const bool must_be_active =
false)
const
802 return *(this->find_widget<T>(
id, must_be_active,
true));
Base class for event handling.
base class of top level items, the only item which needs to store the final canvases to draw on.
void point(int x, int y)
Draw a single point.
std::unique_ptr< class walker_base > walker_ptr
t_string missing_widget(const std::string &id)
Returns a default error message if a mandatory widget is omitted.
std::map< std::string, widget_item > widget_data
std::map< std::string, t_string > widget_item
map_location coordinate
Contains an x and y coordinate used for starting positions in maps.
std::size_t size(std::string_view str)
Length in characters of a UTF-8 string.
Contains the SDL_Rect helper code.
The basic class for representing 8-bit RGB or RGBA colour values.
An abstract description of a rectangle with integer coordinates.
Add a special kind of assert to validate whether the input from WML doesn't contain any problems that...
#define VALIDATE(cond, message)
The macro to use for the validation of WML.