zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_msctf.h
Go to the documentation of this file.
1 #ifndef _SDL_msctf_h
2 #define _SDL_msctf_h
3 
4 #include <unknwn.h>
5 
6 #define TF_INVALID_COOKIE (0xffffffff)
7 #define TF_IPSINK_FLAG_ACTIVE 0x0001
8 #define TF_TMAE_UIELEMENTENABLEDONLY 0x00000004
9 
10 typedef struct ITfThreadMgr ITfThreadMgr;
12 typedef struct ITfClientId ITfClientId;
13 
18 typedef struct ITfContext ITfContext;
21 typedef struct ITfUIElement ITfUIElement;
28 typedef struct ITfSource ITfSource;
29 
30 typedef DWORD TfClientId;
32 
33 typedef struct ITfThreadMgrVtbl
34 {
35  HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfThreadMgr *, REFIID, void **);
36  ULONG (STDMETHODCALLTYPE *AddRef)(ITfThreadMgr *);
37  ULONG (STDMETHODCALLTYPE *Release)(ITfThreadMgr *);
38  HRESULT (STDMETHODCALLTYPE *Activate)(ITfThreadMgr *, TfClientId *);
39  HRESULT (STDMETHODCALLTYPE *Deactivate)(ITfThreadMgr *);
40  HRESULT (STDMETHODCALLTYPE *CreateDocumentMgr)(ITfThreadMgr *);
41  HRESULT (STDMETHODCALLTYPE *EnumDocumentMgrs)(ITfThreadMgr *, IEnumTfDocumentMgrs **);
42  HRESULT (STDMETHODCALLTYPE *GetFocus)(ITfThreadMgr *, ITfDocumentMgr **);
43  HRESULT (STDMETHODCALLTYPE *SetFocus)(ITfThreadMgr *, ITfDocumentMgr *);
44  HRESULT (STDMETHODCALLTYPE *AssociateFocus)(ITfThreadMgr *, HWND, ITfDocumentMgr *, ITfDocumentMgr **);
45  HRESULT (STDMETHODCALLTYPE *IsThreadFocus)(ITfThreadMgr *, BOOL *);
46  HRESULT (STDMETHODCALLTYPE *GetFunctionProvider)(ITfThreadMgr *, REFCLSID, ITfFunctionProvider **);
47  HRESULT (STDMETHODCALLTYPE *EnumFunctionProviders)(ITfThreadMgr *, IEnumTfFunctionProviders **);
48  HRESULT (STDMETHODCALLTYPE *GetGlobalCompartment)(ITfThreadMgr *, ITfCompartmentMgr **);
50 
52 {
53  const struct ITfThreadMgrVtbl *lpVtbl;
54 };
55 
56 typedef struct ITfThreadMgrExVtbl
57 {
58  HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfThreadMgrEx *, REFIID, void **);
59  ULONG (STDMETHODCALLTYPE *AddRef)(ITfThreadMgrEx *);
60  ULONG (STDMETHODCALLTYPE *Release)(ITfThreadMgrEx *);
61  HRESULT (STDMETHODCALLTYPE *Activate)(ITfThreadMgrEx *, TfClientId *);
62  HRESULT (STDMETHODCALLTYPE *Deactivate)(ITfThreadMgrEx *);
63  HRESULT (STDMETHODCALLTYPE *CreateDocumentMgr)(ITfThreadMgrEx *, ITfDocumentMgr **);
64  HRESULT (STDMETHODCALLTYPE *EnumDocumentMgrs)(ITfThreadMgrEx *, IEnumTfDocumentMgrs **);
65  HRESULT (STDMETHODCALLTYPE *GetFocus)(ITfThreadMgrEx *, ITfDocumentMgr **);
66  HRESULT (STDMETHODCALLTYPE *SetFocus)(ITfThreadMgrEx *, ITfDocumentMgr *);
67  HRESULT (STDMETHODCALLTYPE *AssociateFocus)(ITfThreadMgrEx *, ITfDocumentMgr *, ITfDocumentMgr **);
68  HRESULT (STDMETHODCALLTYPE *IsThreadFocus)(ITfThreadMgrEx *, BOOL *);
69  HRESULT (STDMETHODCALLTYPE *GetFunctionProvider)(ITfThreadMgrEx *, REFCLSID, ITfFunctionProvider **);
70  HRESULT (STDMETHODCALLTYPE *EnumFunctionProviders)(ITfThreadMgrEx *, IEnumTfFunctionProviders **);
71  HRESULT (STDMETHODCALLTYPE *GetGlobalCompartment)(ITfThreadMgrEx *, ITfCompartmentMgr **);
72  HRESULT (STDMETHODCALLTYPE *ActivateEx)(ITfThreadMgrEx *, TfClientId *, DWORD);
73  HRESULT (STDMETHODCALLTYPE *GetActiveFlags)(ITfThreadMgrEx *, DWORD *);
75 
77 {
78  const struct ITfThreadMgrExVtbl *lpVtbl;
79 };
80 
81 typedef struct ITfDocumentMgrVtbl
82 {
83  HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfDocumentMgr *, REFIID, void **);
84  ULONG (STDMETHODCALLTYPE *AddRef)(ITfDocumentMgr *);
85  ULONG (STDMETHODCALLTYPE *Release)(ITfDocumentMgr *);
86  HRESULT (STDMETHODCALLTYPE *CreateContext)(ITfDocumentMgr *, TfClientId, DWORD, IUnknown *, ITfContext **, TfEditCookie *);
87  HRESULT (STDMETHODCALLTYPE *Push)(ITfDocumentMgr *, ITfContext *);
88  HRESULT (STDMETHODCALLTYPE *Pop)(ITfDocumentMgr *);
89  HRESULT (STDMETHODCALLTYPE *GetTop)(ITfDocumentMgr *, ITfContext **);
90  HRESULT (STDMETHODCALLTYPE *GetBase)(ITfDocumentMgr *, ITfContext **);
91  HRESULT (STDMETHODCALLTYPE *EnumContexts)(ITfDocumentMgr *, IEnumTfContexts **);
93 
95 {
96  const struct ITfDocumentMgrVtbl *lpVtbl;
97 };
98 
99 typedef struct ITfUIElementSinkVtbl
100 {
101  HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfUIElementSink *, REFIID, void **);
102  ULONG (STDMETHODCALLTYPE *AddRef)(ITfUIElementSink *);
103  ULONG (STDMETHODCALLTYPE *Release)(ITfUIElementSink *);
104  HRESULT (STDMETHODCALLTYPE *BeginUIElement)(ITfUIElementSink *, DWORD, BOOL *);
105  HRESULT (STDMETHODCALLTYPE *UpdateUIElement)(ITfUIElementSink *, DWORD);
106  HRESULT (STDMETHODCALLTYPE *EndUIElement)(ITfUIElementSink *, DWORD);
108 
110 {
112 };
113 
114 typedef struct ITfUIElementMgrVtbl
115 {
116  HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfUIElementMgr *, REFIID, void **);
117  ULONG (STDMETHODCALLTYPE *AddRef)(ITfUIElementMgr *);
118  ULONG (STDMETHODCALLTYPE *Release)(ITfUIElementMgr *);
119  HRESULT (STDMETHODCALLTYPE *BeginUIElement)(ITfUIElementMgr *, ITfUIElement *, BOOL *, DWORD *);
120  HRESULT (STDMETHODCALLTYPE *UpdateUIElement)(ITfUIElementMgr *, DWORD);
121  HRESULT (STDMETHODCALLTYPE *EndUIElement)(ITfUIElementMgr *, DWORD);
122  HRESULT (STDMETHODCALLTYPE *GetUIElement)(ITfUIElementMgr *, DWORD, ITfUIElement **);
123  HRESULT (STDMETHODCALLTYPE *EnumUIElements)(ITfUIElementMgr *, IEnumTfUIElements **);
125 
127 {
129 };
130 
132 {
133  HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfCandidateListUIElement *, REFIID, void **);
134  ULONG (STDMETHODCALLTYPE *AddRef)(ITfCandidateListUIElement *);
135  ULONG (STDMETHODCALLTYPE *Release)(ITfCandidateListUIElement *);
136  HRESULT (STDMETHODCALLTYPE *GetDescription)(ITfCandidateListUIElement *, BSTR *);
137  HRESULT (STDMETHODCALLTYPE *GetGUID)(ITfCandidateListUIElement *, GUID *);
138  HRESULT (STDMETHODCALLTYPE *Show)(ITfCandidateListUIElement *, BOOL);
139  HRESULT (STDMETHODCALLTYPE *IsShown)(ITfCandidateListUIElement *, BOOL *);
140  HRESULT (STDMETHODCALLTYPE *GetUpdatedFlags)(ITfCandidateListUIElement *, DWORD *);
141  HRESULT (STDMETHODCALLTYPE *GetDocumentMgr)(ITfCandidateListUIElement *, ITfDocumentMgr **);
142  HRESULT (STDMETHODCALLTYPE *GetCount)(ITfCandidateListUIElement *, UINT *);
143  HRESULT (STDMETHODCALLTYPE *GetSelection)(ITfCandidateListUIElement *, UINT *);
144  HRESULT (STDMETHODCALLTYPE *GetString)(ITfCandidateListUIElement *, UINT, BSTR *);
145  HRESULT (STDMETHODCALLTYPE *GetPageIndex)(ITfCandidateListUIElement *, UINT *, UINT, UINT *);
146  HRESULT (STDMETHODCALLTYPE *SetPageIndex)(ITfCandidateListUIElement *, UINT *, UINT);
147  HRESULT (STDMETHODCALLTYPE *GetCurrentPage)(ITfCandidateListUIElement *, UINT *);
149 
151 {
153 };
154 
156 {
157  HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfReadingInformationUIElement *, REFIID, void **);
158  ULONG (STDMETHODCALLTYPE *AddRef)(ITfReadingInformationUIElement *);
159  ULONG (STDMETHODCALLTYPE *Release)(ITfReadingInformationUIElement *);
160  HRESULT (STDMETHODCALLTYPE *GetDescription)(ITfReadingInformationUIElement *, BSTR *);
161  HRESULT (STDMETHODCALLTYPE *GetGUID)(ITfReadingInformationUIElement *, GUID *);
162  HRESULT (STDMETHODCALLTYPE *Show)(ITfReadingInformationUIElement *, BOOL);
163  HRESULT (STDMETHODCALLTYPE *IsShown)(ITfReadingInformationUIElement *, BOOL *);
164  HRESULT (STDMETHODCALLTYPE *GetUpdatedFlags)(ITfReadingInformationUIElement *, DWORD *);
165  HRESULT (STDMETHODCALLTYPE *GetContext)(ITfReadingInformationUIElement *, ITfContext **);
166  HRESULT (STDMETHODCALLTYPE *GetString)(ITfReadingInformationUIElement *, BSTR *);
167  HRESULT (STDMETHODCALLTYPE *GetMaxReadingStringLength)(ITfReadingInformationUIElement *, UINT *);
168  HRESULT (STDMETHODCALLTYPE *GetErrorIndex)(ITfReadingInformationUIElement *, UINT *);
169  HRESULT (STDMETHODCALLTYPE *IsVerticalOrderPreferred)(ITfReadingInformationUIElement *, BOOL *);
171 
173 {
175 };
176 
177 typedef struct ITfUIElementVtbl
178 {
179  HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfUIElement *, REFIID, void **);
180  ULONG (STDMETHODCALLTYPE *AddRef)(ITfUIElement *);
181  ULONG (STDMETHODCALLTYPE *Release)(ITfUIElement *);
182  HRESULT (STDMETHODCALLTYPE *GetDescription)(ITfUIElement *, BSTR *);
183  HRESULT (STDMETHODCALLTYPE *GetGUID)(ITfUIElement *, GUID *);
184  HRESULT (STDMETHODCALLTYPE *Show)(ITfUIElement *, BOOL);
185  HRESULT (STDMETHODCALLTYPE *IsShown)(ITfUIElement *, BOOL *);
187 
189 {
190  const struct ITfUIElementVtbl *lpVtbl;
191 };
192 
194 {
195  HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfInputProcessorProfileActivationSink *, REFIID, void **);
196  ULONG (STDMETHODCALLTYPE *AddRef)(ITfInputProcessorProfileActivationSink *);
197  ULONG (STDMETHODCALLTYPE *Release)(ITfInputProcessorProfileActivationSink *);
199 
201 
203 {
205 };
206 
207 typedef struct ITfSourceVtbl
208 {
209  HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfSource *, REFIID, void **);
210  ULONG (STDMETHODCALLTYPE *AddRef)(ITfSource *);
211  ULONG (STDMETHODCALLTYPE *Release)(ITfSource *);
212  HRESULT (STDMETHODCALLTYPE *AdviseSink)(ITfSource *, REFIID, IUnknown *, DWORD *);
213  HRESULT (STDMETHODCALLTYPE *UnadviseSink)(ITfSource *, DWORD);
214 } ITfSourceVtbl;
215 
216 struct ITfSource
217 {
218  const struct ITfSourceVtbl *lpVtbl;
219 };
220 
221 #endif /* _SDL_msctf_h */
ITfDocumentMgr IEnumTfDocumentMgrs ITfDocumentMgr ITfDocumentMgr ITfDocumentMgr ITfDocumentMgr BOOL REFCLSID
Definition: SDL_msctf.h:69
struct IEnumTfContexts IEnumTfContexts
Definition: SDL_msctf.h:19
HRESULT(STDMETHODCALLTYPE *QueryInterface)(ITfUIElementMgr *
BOOL DWORD ITfDocumentMgr UINT UINT BSTR UINT UINT
Definition: SDL_msctf.h:145
struct ITfFunctionProvider ITfFunctionProvider
Definition: SDL_msctf.h:16
BOOL DWORD ITfDocumentMgr UINT UINT BSTR UINT UINT UINT UINT
Definition: SDL_msctf.h:146
struct ITfUIElementSinkVtbl * lpVtbl
Definition: SDL_msctf.h:111
IEnumTfDocumentMgrs ITfDocumentMgr ITfDocumentMgr HWND
Definition: SDL_msctf.h:44
void ** ULONG(STDMETHODCALLTYPE *AddRef)(ITfThreadMgr *)
struct ITfCandidateListUIElementVtbl ITfCandidateListUIElementVtbl
HRESULT(STDMETHODCALLTYPE *QueryInterface)(ITfCandidateListUIElement *
HRESULT(STDMETHODCALLTYPE *QueryInterface)(ITfThreadMgrEx *
struct ITfThreadMgrVtbl ITfThreadMgrVtbl
void ** ULONG(STDMETHODCALLTYPE *AddRef)(ITfUIElementSink *)
struct ITfUIElementSinkVtbl ITfUIElementSinkVtbl
typedef UINT(WINAPI *PFNWGLGETCONTEXTGPUIDAMDPROC)(HGLRC hglrc)
DWORD TfEditCookie
Definition: SDL_msctf.h:31
IEnumTfDocumentMgrs ITfDocumentMgr ITfDocumentMgr ITfDocumentMgr ITfDocumentMgr BOOL REFCLSID
Definition: SDL_msctf.h:46
struct ITfUIElementVtbl ITfUIElementVtbl
struct ITfCompartmentMgr ITfCompartmentMgr
Definition: SDL_msctf.h:17
struct IEnumTfUIElements IEnumTfUIElements
Definition: SDL_msctf.h:23
struct ITfInputProcessorProfileActivationSinkVtbl ITfInputProcessorProfileActivationSinkVtbl
HRESULT(STDMETHODCALLTYPE *QueryInterface)(ITfDocumentMgr *
DWORD TfClientId
Definition: SDL_msctf.h:30
void ** ULONG(STDMETHODCALLTYPE *AddRef)(ITfSource *)
struct ITfReadingInformationUIElementVtbl ITfReadingInformationUIElementVtbl
HRESULT(STDMETHODCALLTYPE *QueryInterface)(ITfUIElement *
struct ITfUIElementMgrVtbl ITfUIElementMgrVtbl
void ** ULONG(STDMETHODCALLTYPE *AddRef)(ITfDocumentMgr *)
struct ITfUIElementMgrVtbl * lpVtbl
Definition: SDL_msctf.h:128
struct ITfThreadMgrExVtbl ITfThreadMgrExVtbl
void ** ULONG(STDMETHODCALLTYPE *AddRef)(ITfUIElementMgr *)
void ** ULONG(STDMETHODCALLTYPE *AddRef)(ITfUIElement *)
HRESULT(STDMETHODCALLTYPE *QueryInterface)(ITfUIElementSink *
HRESULT(STDMETHODCALLTYPE *QueryInterface)(ITfReadingInformationUIElement *
struct IEnumTfFunctionProviders IEnumTfFunctionProviders
Definition: SDL_msctf.h:15
BOOL DWORD ITfDocumentMgr UINT UINT UINT
Definition: SDL_msctf.h:144
struct ITfThreadMgrExVtbl * lpVtbl
Definition: SDL_msctf.h:78
HRESULT(STDMETHODCALLTYPE *QueryInterface)(ITfThreadMgr *
void ** ULONG(STDMETHODCALLTYPE *AddRef)(ITfCandidateListUIElement *)
struct ITfUIElementVtbl * lpVtbl
Definition: SDL_msctf.h:190
struct ITfClientId ITfClientId
Definition: SDL_msctf.h:12
struct ITfSourceVtbl * lpVtbl
Definition: SDL_msctf.h:218
IUnknown DWORD DWORD
Definition: SDL_msctf.h:213
struct ITfCandidateListUIElementVtbl * lpVtbl
Definition: SDL_msctf.h:152
ITfDocumentMgr IEnumTfDocumentMgrs ITfDocumentMgr ITfDocumentMgr ITfDocumentMgr ITfDocumentMgr BOOL ITfFunctionProvider IEnumTfFunctionProviders ITfCompartmentMgr TfClientId DWORD
Definition: SDL_msctf.h:72
void ** ULONG(STDMETHODCALLTYPE *AddRef)(ITfInputProcessorProfileActivationSink *)
typedef DWORD(WINAPI *XInputGetState_t)(DWORD dwUserIndex
struct ITfReadingInformationUIElementVtbl * lpVtbl
Definition: SDL_msctf.h:174
GLboolean CreateContext(GLContext *ctx)
Definition: visualinfo.c:1088
void ** ULONG(STDMETHODCALLTYPE *AddRef)(ITfReadingInformationUIElement *)
struct ITfThreadMgrVtbl * lpVtbl
Definition: SDL_msctf.h:53
HRESULT(STDMETHODCALLTYPE *QueryInterface)(ITfSource *
ITfUIElement BOOL DWORD DWORD
Definition: SDL_msctf.h:120
HRESULT(STDMETHODCALLTYPE *QueryInterface)(ITfInputProcessorProfileActivationSink *
BSTR GUID BOOL
Definition: SDL_msctf.h:184
struct ITfContext ITfContext
Definition: SDL_msctf.h:18
struct ITfInputProcessorProfileActivationSinkVtbl * lpVtbl
Definition: SDL_msctf.h:204
void ** ULONG(STDMETHODCALLTYPE *AddRef)(ITfThreadMgrEx *)
struct ITfDocumentMgrVtbl ITfDocumentMgrVtbl
struct IEnumTfDocumentMgrs IEnumTfDocumentMgrs
Definition: SDL_msctf.h:14
struct ITfSourceVtbl ITfSourceVtbl
typedef BOOL(WINAPI *PFNWGLSETSTEREOEMITTERSTATE3DLPROC)(HDC hDC
struct ITfDocumentMgrVtbl * lpVtbl
Definition: SDL_msctf.h:96