The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
gui2::event::ttrigger Class Reference

Helper struct to wrap the functor call. More...

Public Member Functions

void operator() (tsignal_function functor, tdispatcher &dispatcher, const tevent event, bool &handled, bool &halt)
 

Detailed Description

Helper struct to wrap the functor call.

The template function fire_event needs to call a functor with extra parameter. In order to facilitate this we send the parameter in the constructor of the class and let operator() call the functor with the default parameters and the stored parameters. This allows the core part of tdispatcher::fire to be generic.

Definition at line 131 of file dispatcher.cpp.

Member Function Documentation

void gui2::event::ttrigger::operator() ( tsignal_function  functor,
tdispatcher dispatcher,
const tevent  event,
bool &  handled,
bool &  halt 
)
inline

Definition at line 134 of file dispatcher.cpp.

References functor().


The documentation for this class was generated from the following file: