OpenClonk
C4windowswrapper.h
Go to the documentation of this file.
1 /*
2  * OpenClonk, http://www.openclonk.org
3  *
4  * Copyright (c) 2010-2016, The OpenClonk Team and contributors
5  *
6  * Distributed under the terms of the ISC license; see accompanying file
7  * "COPYING" for details.
8  *
9  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
10  * See accompanying file "TRADEMARK" for details.
11  *
12  * To redistribute this file separately, substitute the full license texts
13  * for the above references.
14  */
15 
16 #ifndef INC_C4windowswrapper
17 #define INC_C4windowswrapper
18 
19 #include <windows.h>
20 #undef RGB
21 #undef GetRValue
22 #undef GetGValue
23 #undef GetBValue
24 #undef TextOut
25 #undef GetObject
26 #undef CreateFont
27 #undef LoadBitmap
28 #undef DrawText
29 
30 // implemented in StdBuf.cpp
31 StdStrBuf::wchar_t_holder GetWideChar(const char * utf8, bool double_null_terminate = false);
32 StdBuf GetWideCharBuf(const char * utf8);
33 
34 #define ADDL2(s) L##s
35 #define ADDL(s) ADDL2(s)
36 
37 #define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp))
38 #define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp))
39 
40 #endif // INC_C4windowswrapper
StdStrBuf::wchar_t_holder GetWideChar(const char *utf8, bool double_null_terminate=false)
StdBuf GetWideCharBuf(const char *utf8)
Definition: StdBuf.h:30