Atlas - SDL_msctf.h

Home / ext / SDL / src / video / windows Lines: 1 | Size: 11585 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1/* 2 Simple DirectMedia Layer 3 Copyright (C) 1997-2025 Sam Lantinga <[email protected]> 4 5 This software is provided 'as-is', without any express or implied 6 warranty. In no event will the authors be held liable for any damages 7 arising from the use of this software. 8 9 Permission is granted to anyone to use this software for any purpose, 10 including commercial applications, and to alter it and redistribute it 11 freely, subject to the following restrictions: 12 13 1. The origin of this software must not be misrepresented; you must not 14 claim that you wrote the original software. If you use this software 15 in a product, an acknowledgment in the product documentation would be 16 appreciated but is not required. 17 2. Altered source versions must be plainly marked as such, and must not be 18 misrepresented as being the original software. 19 3. This notice may not be removed or altered from any source distribution. 20*/ 21 22#ifndef SDL_msctf_h_ 23#define SDL_msctf_h_ 24 25#include <unknwn.h> 26 27#define TF_INVALID_COOKIE (0xffffffff) 28#define TF_IPSINK_FLAG_ACTIVE 0x0001 29#define TF_TMAE_UIELEMENTENABLEDONLY 0x00000004 30 31/* *INDENT-OFF* */ // clang-format off 32 33typedef struct ITfThreadMgr ITfThreadMgr; 34typedef struct ITfDocumentMgr ITfDocumentMgr; 35typedef struct ITfClientId ITfClientId; 36 37typedef struct IEnumTfDocumentMgrs IEnumTfDocumentMgrs; 38typedef struct IEnumTfFunctionProviders IEnumTfFunctionProviders; 39typedef struct ITfFunctionProvider ITfFunctionProvider; 40typedef struct ITfCompartmentMgr ITfCompartmentMgr; 41typedef struct ITfContext ITfContext; 42typedef struct IEnumTfContexts IEnumTfContexts; 43typedef struct ITfUIElementSink ITfUIElementSink; 44typedef struct ITfUIElement ITfUIElement; 45typedef struct ITfUIElementMgr ITfUIElementMgr; 46typedef struct IEnumTfUIElements IEnumTfUIElements; 47typedef struct ITfThreadMgrEx ITfThreadMgrEx; 48typedef struct ITfCandidateListUIElement ITfCandidateListUIElement; 49typedef struct ITfReadingInformationUIElement ITfReadingInformationUIElement; 50typedef struct ITfInputProcessorProfileActivationSink ITfInputProcessorProfileActivationSink; 51typedef struct ITfSource ITfSource; 52 53typedef DWORD TfClientId; 54typedef DWORD TfEditCookie; 55 56typedef struct ITfThreadMgrVtbl 57{ 58 HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfThreadMgr *, REFIID, void **); 59 ULONG (STDMETHODCALLTYPE *AddRef)(ITfThreadMgr *); 60 ULONG (STDMETHODCALLTYPE *Release)(ITfThreadMgr *); 61 HRESULT (STDMETHODCALLTYPE *Activate)(ITfThreadMgr *, TfClientId *); 62 HRESULT (STDMETHODCALLTYPE *Deactivate)(ITfThreadMgr *); 63 HRESULT (STDMETHODCALLTYPE *CreateDocumentMgr)(ITfThreadMgr *); 64 HRESULT (STDMETHODCALLTYPE *EnumDocumentMgrs)(ITfThreadMgr *, IEnumTfDocumentMgrs **); 65 HRESULT (STDMETHODCALLTYPE *GetFocus)(ITfThreadMgr *, ITfDocumentMgr **); 66 HRESULT (STDMETHODCALLTYPE *SetFocus)(ITfThreadMgr *, ITfDocumentMgr *); 67 HRESULT (STDMETHODCALLTYPE *AssociateFocus)(ITfThreadMgr *, HWND, ITfDocumentMgr *, ITfDocumentMgr **); 68 HRESULT (STDMETHODCALLTYPE *IsThreadFocus)(ITfThreadMgr *, BOOL *); 69 HRESULT (STDMETHODCALLTYPE *GetFunctionProvider)(ITfThreadMgr *, REFCLSID, ITfFunctionProvider **); 70 HRESULT (STDMETHODCALLTYPE *EnumFunctionProviders)(ITfThreadMgr *, IEnumTfFunctionProviders **); 71 HRESULT (STDMETHODCALLTYPE *GetGlobalCompartment)(ITfThreadMgr *, ITfCompartmentMgr **); 72} ITfThreadMgrVtbl; 73 74struct ITfThreadMgr 75{ 76 const struct ITfThreadMgrVtbl *lpVtbl; 77}; 78 79typedef struct ITfThreadMgrExVtbl 80{ 81 HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfThreadMgrEx *, REFIID, void **); 82 ULONG (STDMETHODCALLTYPE *AddRef)(ITfThreadMgrEx *); 83 ULONG (STDMETHODCALLTYPE *Release)(ITfThreadMgrEx *); 84 HRESULT (STDMETHODCALLTYPE *Activate)(ITfThreadMgrEx *, TfClientId *); 85 HRESULT (STDMETHODCALLTYPE *Deactivate)(ITfThreadMgrEx *); 86 HRESULT (STDMETHODCALLTYPE *CreateDocumentMgr)(ITfThreadMgrEx *, ITfDocumentMgr **); 87 HRESULT (STDMETHODCALLTYPE *EnumDocumentMgrs)(ITfThreadMgrEx *, IEnumTfDocumentMgrs **); 88 HRESULT (STDMETHODCALLTYPE *GetFocus)(ITfThreadMgrEx *, ITfDocumentMgr **); 89 HRESULT (STDMETHODCALLTYPE *SetFocus)(ITfThreadMgrEx *, ITfDocumentMgr *); 90 HRESULT (STDMETHODCALLTYPE *AssociateFocus)(ITfThreadMgrEx *, ITfDocumentMgr *, ITfDocumentMgr **); 91 HRESULT (STDMETHODCALLTYPE *IsThreadFocus)(ITfThreadMgrEx *, BOOL *); 92 HRESULT (STDMETHODCALLTYPE *GetFunctionProvider)(ITfThreadMgrEx *, REFCLSID, ITfFunctionProvider **); 93 HRESULT (STDMETHODCALLTYPE *EnumFunctionProviders)(ITfThreadMgrEx *, IEnumTfFunctionProviders **); 94 HRESULT (STDMETHODCALLTYPE *GetGlobalCompartment)(ITfThreadMgrEx *, ITfCompartmentMgr **); 95 HRESULT (STDMETHODCALLTYPE *ActivateEx)(ITfThreadMgrEx *, TfClientId *, DWORD); 96 HRESULT (STDMETHODCALLTYPE *GetActiveFlags)(ITfThreadMgrEx *, DWORD *); 97} ITfThreadMgrExVtbl; 98 99struct ITfThreadMgrEx 100{ 101 const struct ITfThreadMgrExVtbl *lpVtbl; 102}; 103 104typedef struct ITfDocumentMgrVtbl 105{ 106 HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfDocumentMgr *, REFIID, void **); 107 ULONG (STDMETHODCALLTYPE *AddRef)(ITfDocumentMgr *); 108 ULONG (STDMETHODCALLTYPE *Release)(ITfDocumentMgr *); 109 HRESULT (STDMETHODCALLTYPE *CreateContext)(ITfDocumentMgr *, TfClientId, DWORD, IUnknown *, ITfContext **, TfEditCookie *); 110 HRESULT (STDMETHODCALLTYPE *Push)(ITfDocumentMgr *, ITfContext *); 111 HRESULT (STDMETHODCALLTYPE *Pop)(ITfDocumentMgr *); 112 HRESULT (STDMETHODCALLTYPE *GetTop)(ITfDocumentMgr *, ITfContext **); 113 HRESULT (STDMETHODCALLTYPE *GetBase)(ITfDocumentMgr *, ITfContext **); 114 HRESULT (STDMETHODCALLTYPE *EnumContexts)(ITfDocumentMgr *, IEnumTfContexts **); 115} ITfDocumentMgrVtbl; 116 117struct ITfDocumentMgr 118{ 119 const struct ITfDocumentMgrVtbl *lpVtbl; 120}; 121 122typedef struct ITfUIElementSinkVtbl 123{ 124 HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfUIElementSink *, REFIID, void **); 125 ULONG (STDMETHODCALLTYPE *AddRef)(ITfUIElementSink *); 126 ULONG (STDMETHODCALLTYPE *Release)(ITfUIElementSink *); 127 HRESULT (STDMETHODCALLTYPE *BeginUIElement)(ITfUIElementSink *, DWORD, BOOL *); 128 HRESULT (STDMETHODCALLTYPE *UpdateUIElement)(ITfUIElementSink *, DWORD); 129 HRESULT (STDMETHODCALLTYPE *EndUIElement)(ITfUIElementSink *, DWORD); 130} ITfUIElementSinkVtbl; 131 132struct ITfUIElementSink 133{ 134 const struct ITfUIElementSinkVtbl *lpVtbl; 135}; 136 137typedef struct ITfUIElementMgrVtbl 138{ 139 HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfUIElementMgr *, REFIID, void **); 140 ULONG (STDMETHODCALLTYPE *AddRef)(ITfUIElementMgr *); 141 ULONG (STDMETHODCALLTYPE *Release)(ITfUIElementMgr *); 142 HRESULT (STDMETHODCALLTYPE *BeginUIElement)(ITfUIElementMgr *, ITfUIElement *, BOOL *, DWORD *); 143 HRESULT (STDMETHODCALLTYPE *UpdateUIElement)(ITfUIElementMgr *, DWORD); 144 HRESULT (STDMETHODCALLTYPE *EndUIElement)(ITfUIElementMgr *, DWORD); 145 HRESULT (STDMETHODCALLTYPE *GetUIElement)(ITfUIElementMgr *, DWORD, ITfUIElement **); 146 HRESULT (STDMETHODCALLTYPE *EnumUIElements)(ITfUIElementMgr *, IEnumTfUIElements **); 147} ITfUIElementMgrVtbl; 148 149struct ITfUIElementMgr 150{ 151 const struct ITfUIElementMgrVtbl *lpVtbl; 152}; 153 154typedef struct ITfCandidateListUIElementVtbl 155{ 156 HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfCandidateListUIElement *, REFIID, void **); 157 ULONG (STDMETHODCALLTYPE *AddRef)(ITfCandidateListUIElement *); 158 ULONG (STDMETHODCALLTYPE *Release)(ITfCandidateListUIElement *); 159 HRESULT (STDMETHODCALLTYPE *GetDescription)(ITfCandidateListUIElement *, BSTR *); 160 HRESULT (STDMETHODCALLTYPE *GetGUID)(ITfCandidateListUIElement *, GUID *); 161 HRESULT (STDMETHODCALLTYPE *Show)(ITfCandidateListUIElement *, BOOL); 162 HRESULT (STDMETHODCALLTYPE *IsShown)(ITfCandidateListUIElement *, BOOL *); 163 HRESULT (STDMETHODCALLTYPE *GetUpdatedFlags)(ITfCandidateListUIElement *, DWORD *); 164 HRESULT (STDMETHODCALLTYPE *GetDocumentMgr)(ITfCandidateListUIElement *, ITfDocumentMgr **); 165 HRESULT (STDMETHODCALLTYPE *GetCount)(ITfCandidateListUIElement *, UINT *); 166 HRESULT (STDMETHODCALLTYPE *GetSelection)(ITfCandidateListUIElement *, UINT *); 167 HRESULT (STDMETHODCALLTYPE *GetString)(ITfCandidateListUIElement *, UINT, BSTR *); 168 HRESULT (STDMETHODCALLTYPE *GetPageIndex)(ITfCandidateListUIElement *, UINT *, UINT, UINT *); 169 HRESULT (STDMETHODCALLTYPE *SetPageIndex)(ITfCandidateListUIElement *, UINT *, UINT); 170 HRESULT (STDMETHODCALLTYPE *GetCurrentPage)(ITfCandidateListUIElement *, UINT *); 171} ITfCandidateListUIElementVtbl; 172 173struct ITfCandidateListUIElement 174{ 175 const struct ITfCandidateListUIElementVtbl *lpVtbl; 176}; 177 178typedef struct ITfReadingInformationUIElementVtbl 179{ 180 HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfReadingInformationUIElement *, REFIID, void **); 181 ULONG (STDMETHODCALLTYPE *AddRef)(ITfReadingInformationUIElement *); 182 ULONG (STDMETHODCALLTYPE *Release)(ITfReadingInformationUIElement *); 183 HRESULT (STDMETHODCALLTYPE *GetDescription)(ITfReadingInformationUIElement *, BSTR *); 184 HRESULT (STDMETHODCALLTYPE *GetGUID)(ITfReadingInformationUIElement *, GUID *); 185 HRESULT (STDMETHODCALLTYPE *Show)(ITfReadingInformationUIElement *, BOOL); 186 HRESULT (STDMETHODCALLTYPE *IsShown)(ITfReadingInformationUIElement *, BOOL *); 187 HRESULT (STDMETHODCALLTYPE *GetUpdatedFlags)(ITfReadingInformationUIElement *, DWORD *); 188 HRESULT (STDMETHODCALLTYPE *GetContext)(ITfReadingInformationUIElement *, ITfContext **); 189 HRESULT (STDMETHODCALLTYPE *GetString)(ITfReadingInformationUIElement *, BSTR *); 190 HRESULT (STDMETHODCALLTYPE *GetMaxReadingStringLength)(ITfReadingInformationUIElement *, UINT *); 191 HRESULT (STDMETHODCALLTYPE *GetErrorIndex)(ITfReadingInformationUIElement *, UINT *); 192 HRESULT (STDMETHODCALLTYPE *IsVerticalOrderPreferred)(ITfReadingInformationUIElement *, BOOL *); 193} ITfReadingInformationUIElementVtbl; 194 195struct ITfReadingInformationUIElement 196{ 197 const struct ITfReadingInformationUIElementVtbl *lpVtbl; 198}; 199 200typedef struct ITfUIElementVtbl 201{ 202 HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfUIElement *, REFIID, void **); 203 ULONG (STDMETHODCALLTYPE *AddRef)(ITfUIElement *); 204 ULONG (STDMETHODCALLTYPE *Release)(ITfUIElement *); 205 HRESULT (STDMETHODCALLTYPE *GetDescription)(ITfUIElement *, BSTR *); 206 HRESULT (STDMETHODCALLTYPE *GetGUID)(ITfUIElement *, GUID *); 207 HRESULT (STDMETHODCALLTYPE *Show)(ITfUIElement *, BOOL); 208 HRESULT (STDMETHODCALLTYPE *IsShown)(ITfUIElement *, BOOL *); 209} ITfUIElementVtbl; 210 211struct ITfUIElement 212{ 213 const struct ITfUIElementVtbl *lpVtbl; 214}; 215 216typedef struct ITfInputProcessorProfileActivationSinkVtbl 217{ 218 HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfInputProcessorProfileActivationSink *, REFIID, void **); 219 ULONG (STDMETHODCALLTYPE *AddRef)(ITfInputProcessorProfileActivationSink *); 220 ULONG (STDMETHODCALLTYPE *Release)(ITfInputProcessorProfileActivationSink *); 221 HRESULT (STDMETHODCALLTYPE *OnActivated)(ITfInputProcessorProfileActivationSink *, DWORD, LANGID, REFCLSID, REFGUID, REFGUID, HKL, DWORD); 222 223} ITfInputProcessorProfileActivationSinkVtbl; 224 225struct ITfInputProcessorProfileActivationSink 226{ 227 const struct ITfInputProcessorProfileActivationSinkVtbl *lpVtbl; 228}; 229 230typedef struct ITfSourceVtbl 231{ 232 HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfSource *, REFIID, void **); 233 ULONG (STDMETHODCALLTYPE *AddRef)(ITfSource *); 234 ULONG (STDMETHODCALLTYPE *Release)(ITfSource *); 235 HRESULT (STDMETHODCALLTYPE *AdviseSink)(ITfSource *, REFIID, IUnknown *, DWORD *); 236 HRESULT (STDMETHODCALLTYPE *UnadviseSink)(ITfSource *, DWORD); 237} ITfSourceVtbl; 238 239struct ITfSource 240{ 241 const struct ITfSourceVtbl *lpVtbl; 242}; 243 244/* *INDENT-ON* */ // clang-format on 245 246#endif // SDL_msctf_h_ 247
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.