Logo Search packages:      
Sourcecode: widelands version File versions  Download package

UI::Signal Class Reference

#include <ui_signal.h>

Inheritance diagram for UI::Signal:


List of all members.

Detailed Description

Provides a hook for callback function. This is exactly what register_func used to provide but for Panel member functions and with better type checking.

Use as: Signal signal; Signal1<int> signal1;

foo->signal.set(this, &MyClass::Handler); signal.call(); signal1.call(some_int);

Definition at line 39 of file ui_signal.h.

Public Member Functions

void call ()
template<class T>
void set (Object *p, void(T::*f)())
void unset ()

Private Types

typedef void(Object::* fnT )()

Private Attributes

fnT _fn

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

Generated by  Doxygen 1.6.0   Back to index