GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::G::IdleSource Class Reference

A idle GSource C++ interface. More...

#include <gfc/glib/main.hh>

Inheritance diagram for GFC::G::IdleSource:

GFC::G::Source GFC::Trackable List of all members.

Public Types

Public Member Functions

Constructors
Methods

Detailed Description

A idle GSource C++ interface.

IdleSource is a source that's called whenever there are no higher priority events pending. If the IdleSlot returns false it is automatically removed from the list of event sources and will not be called again.


Member Typedef Documentation

typedef sigc::slot<bool> GFC::G::IdleSource::IdleSlot
 

Signature of the callback slot to passed to IdleSource.

Example: Method signature for IdleSlot.

             bool method();
             // return: The slot should return false if the source should be removed.


Constructor & Destructor Documentation

GFC::G::IdleSource::IdleSource  ) 
 

Constructs a new idle source that can be associated with any main context.

G::Source::attach() must be called to attach the source to a context. To set the callback slot call set_callback(). To override the default priority PRIORITY_DEFAULT_IDLE call set_priority().

GFC::G::IdleSource::IdleSource const IdleSlot slot  ) 
 

Constructs a new idle source that can be associated with any main context.

Parameters:
slot The callback slot, of type sigc::slot<bool>.

G::Source::attach() must be called to attach the source to a context. To override the default priority PRIORITY_DEFAULT_IDLE call set_priority().


Member Function Documentation

void GFC::G::IdleSource::set_callback const IdleSlot slot  ) 
 

Sets the callback slot for the idle source.

Parameters:
slot The callback slot, of type sigc::slot<bool>.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 00:04:57 2004 for GFC-Core by doxygen 1.3.8