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,2021 by Jeroen van der Zijp. All Rights Reserved. *
7 ********************************************************************************/
8 #ifndef EVENTDISPATCHER_H
9 #define EVENTDISPATCHER_H
10 
11 namespace FX {
12 
13 
18 class FXAPI FXEventDispatcher : public FXDispatcher {
19 private:
20  FXptr display; // Display
21 private:
23  FXEventDispatcher &operator=(const FXEventDispatcher&);
24 public:
25 
28 
29 public:
30 
33 
35  virtual FXbool init(FXptr dpy);
36 
38  virtual FXbool init();
39 
41  FXptr getDisplay() const { return display; }
42 
46  virtual FXbool dispatch(FXTime blocking=forever,FXuint flags=DispatchAll);
47 
49  virtual FXbool dispatchEvent(FXRawEvent& event);
50 
52  virtual FXbool exit();
53 
55  virtual ~FXEventDispatcher();
56  };
57 
58 }
59 
60 #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:17
FXCallback< FXbool(FXEventDispatcher *, FXRawEvent &event)> EventCallback
Event callback when GUI has activity.
Definition: FXEventDispatcher.h:27
Definition: FX4Splitter.h:28
FXptr getDisplay() const
Return display pointer.
Definition: FXEventDispatcher.h:41
A FXEventDispatcher extends FXDispatcher, adding graphical user interface handling and other display-...
Definition: FXEventDispatcher.h:18

Copyright © 1997-2020 Jeroen van der Zijp