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_;
684 const bool must_be_active);
688 const bool must_be_active)
const;
705 virtual widget*
find(
const std::string&
id,
const bool must_be_active);
708 virtual const widget*
find(
const std::string&
id,
709 const bool must_be_active)
const;
743 const std::string&
id,
744 const bool must_be_active,
745 const bool must_exist)
747 T* result =
dynamic_cast<T*
>(this->
find(
id, must_be_active));
755 const std::string&
id,
756 const bool must_be_active,
757 const bool must_exist)
const
759 T* result =
dynamic_cast<T*
>(this->
find(
id, must_be_active));
780 const std::string&
id,
781 const bool must_be_active =
false)
783 return *(this->find_widget<T>(
id, must_be_active,
true));
788 const std::string&
id,
789 const bool must_be_active =
false)
const
791 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.