Mercurial > sdl-ios-xcode
annotate src/video/windows/SDL_windowsvideo.h @ 5246:189b1bdb7baf
Surfaces aren't in hardware memory anymore!
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 10 Feb 2011 05:10:05 -0800 |
parents | 572a73d71b5f |
children | 3a8a452b49f0 |
rev | line source |
---|---|
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
1 /* |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
2 SDL - Simple DirectMedia Layer |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
3 Copyright (C) 1997-2010 Sam Lantinga |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
4 |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
5 This library is free software; you can redistribute it and/or |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
6 modify it under the terms of the GNU Lesser General Public |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
7 License as published by the Free Software Foundation; either |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
8 version 2.1 of the License, or (at your option) any later version. |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
9 |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
10 This library is distributed in the hope that it will be useful, |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
13 Lesser General Public License for more details. |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
14 |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
15 You should have received a copy of the GNU Lesser General Public |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
16 License along with this library; if not, write to the Free Software |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
18 |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
19 Sam Lantinga |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
20 slouken@libsdl.org |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
21 */ |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
22 #include "SDL_config.h" |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
23 |
5062 | 24 #ifndef _SDL_windowsvideo_h |
25 #define _SDL_windowsvideo_h | |
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
26 |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
27 #include "../SDL_sysvideo.h" |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
28 |
5092
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5088
diff
changeset
|
29 #include "../../core/windows/SDL_windows.h" |
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
30 |
5088
c2539ff054c8
Fixed compiling on Windows Mobile SDK 5.0 with Visual Studio 2008
Sam Lantinga <slouken@libsdl.org>
parents:
5083
diff
changeset
|
31 #if defined(_MSC_VER) && !defined(_WIN32_WCE) |
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
32 #include <msctf.h> |
4893
b2e434e0553b
Fixed all MinGW problems (except libraries not added to build yet).
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4892
diff
changeset
|
33 #else |
b2e434e0553b
Fixed all MinGW problems (except libraries not added to build yet).
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4892
diff
changeset
|
34 #include "SDL_msctf.h" |
b2e434e0553b
Fixed all MinGW problems (except libraries not added to build yet).
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4892
diff
changeset
|
35 #endif |
b2e434e0553b
Fixed all MinGW problems (except libraries not added to build yet).
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4892
diff
changeset
|
36 |
4892
9e1f6d3fb870
Added imm.h include, will be needed on MinGW.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4868
diff
changeset
|
37 #include <imm.h> |
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
38 |
4912
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
39 #define MAX_CANDLIST 10 |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
40 #define MAX_CANDLENGTH 256 |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
41 |
5062 | 42 #include "SDL_windowsclipboard.h" |
43 #include "SDL_windowsevents.h" | |
44 #include "SDL_windowsgamma.h" | |
45 #include "SDL_windowskeyboard.h" | |
46 #include "SDL_windowsmodes.h" | |
47 #include "SDL_windowsmouse.h" | |
48 #include "SDL_windowsopengl.h" | |
49 #include "SDL_windowswindow.h" | |
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
50 #include "SDL_events.h" |
5092
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5088
diff
changeset
|
51 #include "SDL_loadso.h" |
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
52 |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
53 |
4919
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
54 #if WINVER < 0x0601 |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
55 /* Touch input definitions */ |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
56 #define TWF_FINETOUCH 1 |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
57 #define TWF_WANTPALM 2 |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
58 |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
59 #define TOUCHEVENTF_MOVE 0x0001 |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
60 #define TOUCHEVENTF_DOWN 0x0002 |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
61 #define TOUCHEVENTF_UP 0x0004 |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
62 |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
63 DECLARE_HANDLE(HTOUCHINPUT); |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
64 |
5038 | 65 typedef struct _TOUCHINPUT { |
66 LONG x; | |
67 LONG y; | |
68 HANDLE hSource; | |
69 DWORD dwID; | |
70 DWORD dwFlags; | |
71 DWORD dwMask; | |
72 DWORD dwTime; | |
73 ULONG_PTR dwExtraInfo; | |
74 DWORD cxContact; | |
75 DWORD cyContact; | |
4919
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
76 } TOUCHINPUT, *PTOUCHINPUT; |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
77 |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
78 #endif /* WINVER < 0x0601 */ |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
79 |
4569 | 80 typedef BOOL (*PFNSHFullScreen)(HWND, DWORD); |
81 typedef void (*PFCoordTransform)(SDL_Window*, POINT*); | |
82 | |
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
83 typedef struct |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
84 { |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
85 void **lpVtbl; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
86 int refcount; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
87 void *data; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
88 } TSFSink; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
89 |
4892
9e1f6d3fb870
Added imm.h include, will be needed on MinGW.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4868
diff
changeset
|
90 /* Definition from Win98DDK version of IMM.H */ |
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
91 typedef struct tagINPUTCONTEXT2 { |
4912
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
92 HWND hWnd; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
93 BOOL fOpen; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
94 POINT ptStatusWndPos; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
95 POINT ptSoftKbdPos; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
96 DWORD fdwConversion; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
97 DWORD fdwSentence; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
98 union { |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
99 LOGFONTA A; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
100 LOGFONTW W; |
4892
9e1f6d3fb870
Added imm.h include, will be needed on MinGW.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4868
diff
changeset
|
101 } lfFont; |
4912
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
102 COMPOSITIONFORM cfCompForm; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
103 CANDIDATEFORM cfCandForm[4]; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
104 HIMCC hCompStr; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
105 HIMCC hCandInfo; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
106 HIMCC hGuideLine; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
107 HIMCC hPrivate; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
108 DWORD dwNumMsgBuf; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
109 HIMCC hMsgBuf; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
110 DWORD fdwInit; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
111 DWORD dwReserve[3]; |
4892
9e1f6d3fb870
Added imm.h include, will be needed on MinGW.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4868
diff
changeset
|
112 } INPUTCONTEXT2, *PINPUTCONTEXT2, NEAR *NPINPUTCONTEXT2, FAR *LPINPUTCONTEXT2; |
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
113 |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
114 /* Private display data */ |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
115 |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
116 typedef struct SDL_VideoData |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
117 { |
4569 | 118 int render; |
119 | |
120 #ifdef _WIN32_WCE | |
5092
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5088
diff
changeset
|
121 void* hAygShell; |
4569 | 122 PFNSHFullScreen SHFullScreen; |
123 PFCoordTransform CoordTransform; | |
124 #endif | |
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
125 |
5223
572a73d71b5f
Sheena pointed out that "scancode" and "keysym" are single words and shouldn't be camel-cased.
Sam Lantinga <slouken@libsdl.org>
parents:
5157
diff
changeset
|
126 const SDL_Scancode *key_layout; |
4919
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
127 DWORD clipboard_count; |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
128 |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
129 /* Touch input functions */ |
5092
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5088
diff
changeset
|
130 void* userDLL; |
4919
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
131 BOOL (WINAPI *CloseTouchInputHandle)( HTOUCHINPUT ); |
716b2cbf4c9e
First pass at Windows multi-touch gesture support
Sam Lantinga <slouken@libsdl.org>
parents:
4912
diff
changeset
|
132 BOOL (WINAPI *GetTouchInputInfo)( HTOUCHINPUT, UINT, PTOUCHINPUT, int ); |
5038 | 133 BOOL (WINAPI *RegisterTouchWindow)( HWND, ULONG ); |
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
134 |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
135 SDL_bool ime_com_initialized; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
136 struct ITfThreadMgr *ime_threadmgr; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
137 SDL_bool ime_initialized; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
138 SDL_bool ime_enabled; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
139 SDL_bool ime_available; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
140 HWND ime_hwnd_main; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
141 HWND ime_hwnd_current; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
142 HIMC ime_himc; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
143 |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
144 WCHAR ime_composition[SDL_TEXTEDITINGEVENT_TEXT_SIZE]; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
145 WCHAR ime_readingstring[16]; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
146 int ime_cursor; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
147 |
4912
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
148 SDL_bool ime_candlist; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
149 WCHAR ime_candidates[MAX_CANDLIST][MAX_CANDLENGTH]; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
150 DWORD ime_candcount; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
151 DWORD ime_candref; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
152 DWORD ime_candsel; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
153 UINT ime_candpgsize; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
154 int ime_candlistindexbase; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
155 SDL_bool ime_candvertical; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
156 |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
157 SDL_bool ime_dirty; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
158 SDL_Rect ime_rect; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
159 SDL_Rect ime_candlistrect; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
160 int ime_winwidth; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
161 int ime_winheight; |
37576cdf6751
Add variables needed for win32 candidate list support.
Daniel Wyatt <Daniel.Wyatt@gmail.com>
parents:
4893
diff
changeset
|
162 |
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
163 HKL ime_hkl; |
5092
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5088
diff
changeset
|
164 void* ime_himm32; |
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
165 UINT (WINAPI *GetReadingString)(HIMC himc, UINT uReadingBufLen, LPWSTR lpwReadingBuf, PINT pnErrorIndex, BOOL *pfIsVertical, PUINT puMaxReadingLen); |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
166 BOOL (WINAPI *ShowReadingWindow)(HIMC himc, BOOL bShow); |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
167 LPINPUTCONTEXT2 (WINAPI *ImmLockIMC)(HIMC himc); |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
168 BOOL (WINAPI *ImmUnlockIMC)(HIMC himc); |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
169 LPVOID (WINAPI *ImmLockIMCC)(HIMCC himcc); |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
170 BOOL (WINAPI *ImmUnlockIMCC)(HIMCC himcc); |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
171 |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
172 SDL_bool ime_uiless; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
173 struct ITfThreadMgrEx *ime_threadmgrex; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
174 DWORD ime_uielemsinkcookie; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
175 DWORD ime_alpnsinkcookie; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
176 DWORD ime_openmodesinkcookie; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
177 DWORD ime_convmodesinkcookie; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
178 TSFSink *ime_uielemsink; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
179 TSFSink *ime_ippasink; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
180 } SDL_VideoData; |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
181 |
5062 | 182 #endif /* _SDL_windowsvideo_h */ |
4759
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
183 |
863ba7d1f029
Large commit with initial reading string support, TSF UILess code, etc.
dewyatt
parents:
4755
diff
changeset
|
184 /* vi: set ts=4 sw=4 expandtab: */ |