All Classes |Grouped Classes |Index

Class CL_SlotContainer

Slot Generic Container. More...

Derived from:

None

Derived by:

None

Group:

Signals (Core)

#include <ClanLib/core.h>

Class Members:

Operations:

slots

connect

Connect a slot to a CL_Signal_v0 signal.

connect_functor

Connect a functor slot to a signal.

Detailed description:

Convience signal/slot connector class.

The slot container class is a convience class. It simplifies the connection between signals and slots by keeping all connections made until the entire class is destroyed. This saves the developer from having to keep a CL_Slot reference around for each connection needed.

In order to use this class, simply make it a member variable and call connect_signal() for each function you want hooked up.

See the login_view.cpp/h in the CTalk example for an example of how to use this class.