Public Member Functions

gui2::event::ttrigger Class Reference

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

List of all members.

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 122 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 125 of file dispatcher.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:23:56 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs