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

Xfc::G::Signal0< R > Class Template Reference

A template for a signal passing no arguments and returning a value of type R. More...

#include <xfc/glib/signals.hh>

Inheritance diagram for Xfc::G::Signal0< R >:

Xfc::G::SignalBase List of all members.

Public Types

Public Member Functions

Detailed Description

template<class R>
class Xfc::G::Signal0< R >

A template for a signal passing no arguments and returning a value of type R.

Constructor & Destructor Documentation

template<class R>
Xfc::G::Signal0< R >::Signal0 ( const char *  name,
GCallback  callback 
) [inline]

Constructs a new signal.

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

Member Function Documentation

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

Connect a slot to the signal.

instance The object instance containing the signal.
slot A slot of type sigc::slot<R>.
detail The detail string to append to the signal name, or null.
after Set true to call the user-defined slot after the signal, or false to let the signal's default behavior preside.
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 4.3