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

FXEventDispatcher.h
1 /********************************************************************************
2 * *
3 * E v e n t D i s p a t c h e r *
4 * *
5 *********************************************************************************
6 * Copyright (C) 2019,2022 by Jeroen van der Zijp. All Rights Reserved. *
7 ********************************************************************************/
8 #ifndef FXEVENTDISPATCHER_H
9 #define FXEVENTDISPATCHER_H
10 
11 #ifndef FXDISPATCHER_H
12 #include "FXDispatcher.h"
13 #endif
14 
15 namespace FX {
16 
17 
22 class FXAPI FXEventDispatcher : public FXDispatcher {
23 private:
24  FXptr display; // Display
25 private:
27  FXEventDispatcher &operator=(const FXEventDispatcher&);
28 public:
29 
32 
33 public:
34 
37 
39  virtual FXbool init(FXptr dpy);
40 
42  virtual FXbool init();
43 
45  FXptr getDisplay() const { return display; }
46 
50  virtual FXbool dispatch(FXTime blocking=forever,FXuint flags=DispatchAll);
51 
53  virtual FXbool dispatchEvent(FXRawEvent& event);
54 
56  virtual FXbool exit();
57 
59  virtual ~FXEventDispatcher();
60  };
61 
62 }
63 
64 #endif
Definition: FXCallback.h:30
A FXDispatcher watches a number of devices and signals for activity and dispatches to the proper func...
Definition: FXDispatcher.h:22
FXCallback< FXbool(FXEventDispatcher *, FXRawEvent &event)> EventCallback
Event callback when GUI has activity.
Definition: FXEventDispatcher.h:31
Definition: FX4Splitter.h:28
FXptr getDisplay() const
Return display pointer.
Definition: FXEventDispatcher.h:45
A FXEventDispatcher extends FXDispatcher, adding graphical user interface handling and other display-...
Definition: FXEventDispatcher.h:22

Copyright © 1997-2022 Jeroen van der Zijp