1 /* 2 * DQt - D bindings for the Qt Toolkit 3 * 4 * GNU Lesser General Public License Usage 5 * This file may be used under the terms of the GNU Lesser 6 * General Public License version 3 as published by the Free Software 7 * Foundation and appearing in the file LICENSE.LGPL3 included in the 8 * packaging of this file. Please review the following information to 9 * ensure the GNU Lesser General Public License version 3 requirements 10 * will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 11 */ 12 module qt.gui.windowdefs_win; 13 extern(C++): 14 15 import core.stdc.config; 16 import qt.config; 17 import qt.helpers; 18 19 20 /+ #if !defined(Q_NOWINSTRICT) 21 #define Q_WINSTRICT 22 #endif 23 24 #if defined(Q_WINSTRICT) 25 26 #if !defined(STRICT) 27 #define STRICT 28 #endif 29 #undef NO_STRICT 30 #define Q_DECLARE_HANDLE(name) struct name##__; typedef struct name##__ *name 31 32 #else 33 34 #if !defined(NO_STRICT) 35 #define NO_STRICT 36 #endif 37 #undef STRICT 38 #define Q_DECLARE_HANDLE(name) typedef HANDLE name 39 40 #endif 41 42 #ifndef HINSTANCE +/ 43 struct HINSTANCE__; 44 /+ Q_DECLARE_HANDLE(HINSTANCE) +/alias HINSTANCE = HINSTANCE__*; 45 /+ #endif +/ 46 static if(!defined!"HMODULE") 47 { 48 alias HMODULE = HINSTANCE; 49 } 50 /+ #ifndef HDC +/ 51 struct HDC__; 52 /+ Q_DECLARE_HANDLE(HDC) +/alias HDC = HDC__*; 53 /+ #endif 54 #ifndef HWND +/ 55 struct HWND__; 56 /+ Q_DECLARE_HANDLE(HWND) +/alias HWND = HWND__*; 57 /+ #endif 58 #ifndef HFONT +/ 59 struct HFONT__; 60 /+ Q_DECLARE_HANDLE(HFONT) +/alias HFONT = HFONT__*; 61 /+ #endif 62 #ifndef HPEN +/ 63 struct HPEN__; 64 /+ Q_DECLARE_HANDLE(HPEN) +/alias HPEN = HPEN__*; 65 /+ #endif 66 #ifndef HBRUSH +/ 67 struct HBRUSH__; 68 /+ Q_DECLARE_HANDLE(HBRUSH) +/alias HBRUSH = HBRUSH__*; 69 /+ #endif 70 #ifndef HBITMAP +/ 71 struct HBITMAP__; 72 /+ Q_DECLARE_HANDLE(HBITMAP) +/alias HBITMAP = HBITMAP__*; 73 /+ #endif 74 #ifndef HICON +/ 75 struct HICON__; 76 /+ Q_DECLARE_HANDLE(HICON) +/alias HICON = HICON__*; 77 /+ #endif 78 #ifndef HCURSOR +/ 79 alias HCURSOR = HICON; 80 /+ #endif 81 #ifndef HPALETTE +/ 82 struct HPALETTE__; 83 /+ Q_DECLARE_HANDLE(HPALETTE) +/alias HPALETTE = HPALETTE__*; 84 /+ #endif 85 #ifndef HRGN +/ 86 struct HRGN__; 87 /+ Q_DECLARE_HANDLE(HRGN) +/alias HRGN = HRGN__*; 88 /+ #endif 89 #ifndef HMONITOR +/ 90 struct HMONITOR__; 91 /+ Q_DECLARE_HANDLE(HMONITOR) +/alias HMONITOR = HMONITOR__*; 92 /+ #endif +/ 93 static if(!defined!"HGLRC") 94 { 95 struct HGLRC__; 96 /+ Q_DECLARE_HANDLE(HGLRC) +/alias HGLRC = HGLRC__*; 97 } 98 /+ #ifndef _HRESULT_DEFINED +/ 99 alias HRESULT = cpp_long; 100 /+ #endif +/ 101