FX::FXEventLoop Class Reference

#include <FXApp.h>

Inheritance diagram for FX::FXEventLoop:

FX::FXLockable FX::FXObject List of all members.

Detailed Description

FOX event dispatch loop.

Definition at line 157 of file FXApp.h.

Public Types

 ID_ASYNCRECALC
 ID_LAST
enum  { ID_ASYNCRECALC, ID_LAST }

Public Member Functions

FXAppgetApp () const
FXRootWindowgetRootWindow () const
void setRootWindow (FXRootWindow *rt)
FXWindowgetFocusWindow () const
FXWindowgetCursorWindow () const
FXWindowgetActiveWindow () const
FXPopupgetPopupWindow () const
FXWindowfindWindowWithId (FXID xid) const
FXWindowfindWindowAt (FXint rx, FXint ry, FXID window=0) const
void addTimeout (FXObject *tgt, FXSelector sel, FXuint ms=1000, void *ptr=NULL)
void removeTimeout (FXObject *tgt, FXSelector sel)
bool hasTimeout (FXObject *tgt, FXSelector sel) const
FXuint remainingTimeout (FXObject *tgt, FXSelector sel)
void handleTimeouts ()
void addChore (FXObject *tgt, FXSelector sel, void *ptr=NULL)
void removeChore (FXObject *tgt, FXSelector sel)
bool hasChore (FXObject *tgt, FXSelector sel) const
void addSignal (FXint sig, FXObject *tgt, FXSelector sel, FXbool immediate=FALSE, FXuint flags=0)
void removeSignal (FXint sig)
bool addInput (FXInputHandle fd, FXuint mode, FXObject *tgt, FXSelector sel)
bool removeInput (FXInputHandle fd, FXuint mode)
bool getKeyState (FXuint keysym) const
bool peekEvent ()
bool runOneEvent (bool blocking=true)
FXint run ()
FXint runUntil (FXuint &condition)
FXint runWhileEvents ()
FXint runModalWhileEvents (FXWindow *window=NULL)
FXint runModal ()
FXint runModalFor (FXWindow *window)
FXint runModalWhileShown (FXWindow *window)
FXint runPopup (FXWindow *window)
bool isModal (FXWindow *window) const
FXWindowgetModalWindow () const
FXModality getModality () const
void stop (FXint value=0)
void stopModal (FXWindow *window, FXint value=0)
void stopModal (FXint value=0)
void forceRefresh ()
void refresh ()
void flush (bool sync=false)
void repaint ()
FXWindowgetDragWindow () const
virtual ~FXEventLoop ()
long onCmdAsyncRecalc (FXObject *, FXSelector, void *)
void postAsyncMessage (FXObject *tgt, FXuint message, void *ptr=NULL, FXObject *src=NULL)
virtual FXulong getThreadId () const
virtual void lock ()
virtual void unlock ()
virtual long onDefault (FXObject *, FXSelector, void *)
const FXchargetClassName () const
bool isMemberOf (const FXMetaClass *metaclass) const
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
QTransString tr (const char *text, const char *hint=0)
virtual void * getPythonObject () const
virtual void decouplePythonObject () const

Static Public Member Functions

static void postAsyncMessage (FXId *tgt, FXuint message, void *ptr=NULL, FXObject *src=NULL)
static void requestAsyncRecalc (FXWindow *what)

Protected Member Functions

 FXEventLoop (const FXEventLoop &)
FXEventLoopoperator= (const FXEventLoop &)
void setup ()
void leaveWindow (FXWindow *window, FXWindow *ancestor)
void enterWindow (FXWindow *window, FXWindow *ancestor)
void selectionSetData (const FXWindow *window, FXDragType type, FXuchar *data, FXuint size)
void selectionGetData (const FXWindow *window, FXDragType type, FXuchar *&data, FXuint &size)
void selectionGetTypes (const FXWindow *window, FXDragType *&types, FXuint &numtypes)
void clipboardSetData (const FXWindow *window, FXDragType type, FXuchar *data, FXuint size)
void clipboardGetData (const FXWindow *window, FXDragType type, FXuchar *&data, FXuint &size)
void clipboardGetTypes (const FXWindow *window, FXDragType *&types, FXuint &numtypes)
void dragdropSetData (const FXWindow *window, FXDragType type, FXuchar *data, FXuint size)
void dragdropGetData (const FXWindow *window, FXDragType type, FXuchar *&data, FXuint &size)
void dragdropGetTypes (const FXWindow *window, FXDragType *&types, FXuint &numtypes)
void addRepaint (FXID win, FXint x, FXint y, FXint w, FXint h, FXbool synth=0)
void removeRepaints (FXID win, FXint x, FXint y, FXint w, FXint h)
void scrollRepaints (FXID win, FXint dx, FXint dy)
 FXEventLoop (FXApp *app=NULL)
virtual bool getNextEvent (FXRawEvent &ev, bool blocking=true)
virtual bool dispatchEvent (FXRawEvent &ev)
virtual void latchLoop ()
virtual void resetLoopLatch ()
virtual bool getNextEventI (FXRawEvent &ev, bool blocking)
virtual bool peekEventI ()
virtual void * makeStaticPtr (void *val)
virtual void deleteStaticPtr (void *ref)
virtual void * getStaticPtr (const void *ref) const
virtual void setStaticPtr (void *ref, void *val)

Static Protected Member Functions

static void signalhandler (int sig)
static void immediatesignalhandler (int sig)

Protected Attributes

FXAppapp
FXHash hash
FXWindowactiveWindow
FXWindowcursorWindow
FXWindowmouseGrabWindow
FXWindowkeyboardGrabWindow
FXWindowkeyWindow
FXWindowselectionWindow
FXWindowclipboardWindow
FXWindowdropWindow
FXWindowdragWindow
FXWindowrefresher
FXWindowrefresherstop
FXPopuppopupWindow
FXRootWindowroot
FXTimer * timers
FXChore * chores
FXRepaint * repaints
FXTimer * timerrecs
FXChore * chorerecs
FXRepaint * repaintrecs
FXInvocation * invocation
FXSignal * signals
FXint nsignals
FXEvent event
FXInput * inputs
FXint ninputs
FXint maxinput
FXAsyncMsg * asyncmsgs
FXAsyncMsg * asyncmsgsrecs
bool & initialized
void *& display
void *& xim
void * r_fds
void * w_fds
void * e_fds
int latch [2]

Friends

class FXApp
class FXPopup
class FXWindow
class FXDockHandler
class FXEventLoop_Static


The documentation for this class was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:32:38 2009 for TnFOX by doxygen v1.4.7