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


Xfc::G::SignalBase Class Reference

Base class for the GTK+ C++ signal interface. More...

#include <xfc/glib/signals.hh>

Inheritance diagram for Xfc::G::SignalBase:

Xfc::G::Signal0< R > Xfc::G::Signal1< R, P1 > Xfc::G::Signal2< R, P1, P2 > Xfc::G::Signal3< R, P1, P2, P3 > Xfc::G::Signal4< R, P1, P2, P3, P4 > Xfc::G::Signal5< R, P1, P2, P3, P4, P5 > Xfc::G::Signal6< R, P1, P2, P3, P4, P5, P6 > Xfc::G::Signal7< R, P1, P2, P3, P4, P5, P6, P7 > List of all members.

Public Member Functions

Protected Types

Protected Member Functions


Detailed Description

Base class for the GTK+ C++ signal interface.


Constructor & Destructor Documentation

Xfc::G::SignalBase::SignalBase ( const char *  name,
GCallback  callback 
) [protected]

Constructor.

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


Member Function Documentation

void Xfc::G::SignalBase::connect ( TypeInstance instance,
const SlotBase slot,
const char *  detail,
bool  after 
) const [protected]

Connects slot to this signal through the callback specified in the constructor.

Parameters:
instance The object instance containing the signal.
slot The sigc::slot to connect to the signal.
detail The detail string to append to the signal name.
after Set true to call the user-defined slot after the signal, or false to let the signal's default behavior preside.

void Xfc::G::SignalBase::stop_emission ( TypeInstance instance  ) 

Stops the signal's current emission.

Parameters:
instance The object whose signal handlers you wish to stop.
This will prevent the default method from running, if the signal was G_SIGNAL_RUN_LAST and you connected normally (i.e. without the "after" flag). Prints a warning if used on a signal which isn't being emitted.


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