Free Electron
WindowHandle.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __window_WindowHandle_h__
8 #define __window_WindowHandle_h__
9 
10 FE_ATTRIBUTE("evt:winHandle","Platform-specific WindowHandle added to events");
11 
12 #if FE_2DGL==FE_2D_X_GFX
13 
14 //* X Windows
15 #include <X11/Xlib.h>
16 #include <X11/Xutil.h>
17 #include <X11/Xatom.h>
18 #include <X11/keysym.h>
19 #include <X11/cursorfont.h>
20 #include <X11/extensions/Xrender.h>
21 
22 namespace fe
23 {
24 namespace ext
25 {
26 
27 typedef struct _FE_WINDOW_HANDLE
28 {
29  Display* m_pDisplay;
30  XVisualInfo* m_pVisualInfo;
31  Window m_window;
32 } FE_WINDOW_HANDLE;
33 
34 bool operator==(const FE_WINDOW_HANDLE& left,const FE_WINDOW_HANDLE& right);
35 
36 } /* namespace ext */
37 } /* namespace fe */
38 
39 #define FE_DISPLAY_HANDLE Display*
40 
41 #elif FE_2DGL==FE_2D_GDI
42 
43 //* Win32 GDI
44 #define FE_WINDOW_HANDLE HWND
45 #define FE_DISPLAY_HANDLE void*
46 
47 #elif FE_2DGL==FE_2D_OSX
48 
49 #define FE_WINDOW_HANDLE WindowRef
50 #define FE_DISPLAY_HANDLE void*
51 
52 #endif
53 
54 #endif /* __window_WindowHandle_h__ */
kernel
Definition: namespace.dox:3
BWORD operator==(const DualString &s1, const DualString &s2)
Compare two DualString&#39;s.
Definition: DualString.h:208