15 #ifndef GUI_DIALOGS_HELPER_HPP_INCLUDED
16 #define GUI_DIALOGS_HELPER_HPP_INCLUDED
30 template <
class D,
void (D::*fptr)(twindow&)>
33 D* dialog =
dynamic_cast<D*
>(caller.
dialog());
37 (dialog->*fptr)(*window);
51 dialog_member_func_type func)
void make_dialog_callback_helper(const dialog_member_func_type &t, twidget &caller)
std::function< void(twidget &)> make_dialog_callback(dialog_member_func_type func)
base class of top level items, the only item which needs to store the final canvases to draw on ...
A class inherited from ttext_box that displays its input as stars.
std::function< void(twindow &)> dialog_member_func_type
void dialog_callback(twidget &caller)
Template for dialog callbacks.