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);
491 #ifdef DEBUG_WINDOW_LAYOUT_GRAPHS
499 mutable point last_best_size_;
679 const bool must_be_active);
683 const bool must_be_active)
const;
700 virtual widget*
find(
const std::string&
id,
const bool must_be_active);
703 virtual const widget*
find(
const std::string&
id,
704 const bool must_be_active)
const;
738 const std::string&
id,
739 const bool must_be_active,
740 const bool must_exist)
742 T* result =
dynamic_cast<T*
>(this->
find(
id, must_be_active));
750 const std::string&
id,
751 const bool must_be_active,
752 const bool must_exist)
const
754 T* result =
dynamic_cast<T*
>(this->
find(
id, must_be_active));
775 const std::string&
id,
776 const bool must_be_active =
false)
778 return *(this->find_widget<T>(
id, must_be_active,
true));
783 const std::string&
id,
784 const bool must_be_active =
false)
const
786 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(const std::string &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.