Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Public Types | Public Member Functions
Xfc::G::Signal3< R, P1, P2, P3 > Class Template Reference

A template for a signal passing three arguments of type P1, P2 and P3, and returning a value of type R. More...

#include <xfc/glib/signals.hh>

Inheritance diagram for Xfc::G::Signal3< R, P1, P2, P3 >:
Xfc::G::SignalBase

List of all members.

Public Types

Public Member Functions


Detailed Description

template<typename R, typename P1, typename P2, typename P3>
class Xfc::G::Signal3< R, P1, P2, P3 >

A template for a signal passing three arguments of type P1, P2 and P3, and returning a value of type R.


Member Typedef Documentation

template<typename R , typename P1 , typename P2 , typename P3 >
typedef sigc::slot<R, P1, P2, P3> Xfc::G::Signal3< R, P1, P2, P3 >::SlotType

The slot signature for slots connecting to this signal is a function taking three arguments (P1, P2 and P3) and returning type R.


Constructor & Destructor Documentation

template<typename R , typename P1 , typename P2 , typename P3 >
Xfc::G::Signal3< R, P1, P2, P3 >::Signal3 ( const char *  name,
GCallback  callback 
) [inline]

Constructs a new signal.

Parameters:
nameThe GTK+ name for the signal.
callbackThe callback function to translate GObject signal emissions into sigc::slot calls.

Member Function Documentation

template<typename R , typename P1 , typename P2 , typename P3 >
sigc::connection Xfc::G::Signal3< R, P1, P2, P3 >::connect ( TypeInstance instance,
const SlotType slot,
const char *  detail = 0,
bool  after = false 
) const [inline]

Connect a slot to the signal.

Parameters:
instanceThe object instance containing the signal.
slotA slot of type sigc::slot<R, P1, P2, P3>.
detailThe detail string to append to the signal name, or null.
afterSet true to call the user-defined slot after the signal, or false to let the signal's default behavior preside.
Returns:
A sigc::connection object.

The connection object can be used to control the signal connection, either by calling block(), unblock() or disconnect(). You don't need to call discconnect() unless you have good reason to. GTK+ signals are automatically disconnected when an object gets destroyed.


The documentation for this class was generated from the following file:
Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC