Home | All Classes | Grouped Classes | Index | Search

Class CL_SlotContainer

Slot Generic Container More...

Derived from: none
Derived by: none
Group: Signal (System)

#include <ClanLib/signals.h>

Detailed description:

!group=Signal/System! !header=signals.h!

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.



Questions or comments, write to the
ClanLib mailing list.