Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXGUISignal Class Reference

A GUI Signal is an object used by a worker thread to signal the user interface thread of some event; it wakes up the user interface thread from the blocking state and causes it to send the given message to the GUI Signal object's target. More...

#include <FXGUISignal.h>

Inheritance diagram for FX::FXGUISignal:

FX::FXObject List of all members.

Public Types

enum  {
  ID_IO_READ = 0,
  ID_LAST
}

Public Member Functions

 FXGUISignal (FXApp *a, FXObject *tgt=NULL, FXSelector sel=0, void *ptr=NULL)
FXAppgetApp () const
void setTarget (FXObject *t)
FXObjectgetTarget () const
void setSelector (FXSelector sel)
FXSelector getSelector () const
void setData (void *ptr)
void * getData () const
void signal ()
virtual ~FXGUISignal ()

Detailed Description

A GUI Signal is an object used by a worker thread to signal the user interface thread of some event; it wakes up the user interface thread from the blocking state and causes it to send the given message to the GUI Signal object's target.


Constructor & Destructor Documentation

FX::FXGUISignal::FXGUISignal FXApp a,
FXObject tgt = NULL,
FXSelector  sel = 0,
void *  ptr = NULL
 

Constructor.

virtual FX::FXGUISignal::~FXGUISignal  )  [virtual]
 

Destructor.


Member Function Documentation

FXApp* FX::FXGUISignal::getApp  )  const [inline]
 

Get application.

void FX::FXGUISignal::setTarget FXObject t  )  [inline]
 

Set the message target object.

FXObject* FX::FXGUISignal::getTarget  )  const [inline]
 

Get the message target object, if any.

void FX::FXGUISignal::setSelector FXSelector  sel  )  [inline]
 

Set the message identifier.

FXSelector FX::FXGUISignal::getSelector  )  const [inline]
 

Get the message identifier.

void FX::FXGUISignal::setData void *  ptr  )  [inline]
 

Set user data pointer.

void* FX::FXGUISignal::getData  )  const [inline]
 

Get user data pointer.

void FX::FXGUISignal::signal  ) 
 

Signal the event; this API may be called by the worker thread to send a message to the user-interface thread.

Copyright © 1997-2005 Jeroen van der Zijp