15 #ifndef GUI_AUXILIARY_FIND_WIDGET_TPP_INCLUDED
16 #define GUI_AUXILIARY_FIND_WIDGET_TPP_INCLUDED
41 result =
dynamic_cast<T*
>(
w);
43 }
while(w && !result);
71 const bool must_be_active,
72 const bool must_exist)
74 T*
result =
dynamic_cast<T*
>(widget->find(
id, must_be_active));
98 const bool must_be_active)
100 return *find_widget<T>(widget,
id, must_be_active,
true);
T * find_widget(typename utils::tconst_clone< twidget, T >::pointer widget, const std::string &id, const bool must_be_active, const bool must_exist)
Gets a widget with the wanted id.
T & get_parent(twidget &widget)
Returns the first parent of a widget with a certain type.
Add a special kind of assert to validate whether the input from WML doesn't contain any problems that...
A class inherited from ttext_box that displays its input as stars.
#define VALIDATE(cond, message)
The macro to use for the validation of WML.
GLubyte GLubyte GLubyte GLubyte w
static size_t id
Ids for the timers.
D * pointer
A pointer to the destination type, possibly const qualified.
GLsizei const GLcharARB ** string
t_string missing_widget(const std::string &id)
Returns a default error message if a mandatory widget is omitted.