src/video/windows/SDL_msctf.h
author Sam Lantinga <slouken@libsdl.org>
Sat, 02 Mar 2013 20:44:16 -0800
changeset 6950 1ddb72193079
parent 5245 329d435f97f4
child 8616 ec011c16e2fd
permissions -rw-r--r--
Added a mouse ID to the mouse events, which set to the special value SDL_TOUCH_MOUSEID for mouse events simulated by touch input.
slouken@5245
     1
#ifndef _SDL_msctf_h
slouken@5245
     2
#define _SDL_msctf_h
slouken@5245
     3
slouken@5245
     4
#include <unknwn.h>
slouken@5245
     5
slouken@5245
     6
#define     TF_INVALID_COOKIE               (0xffffffff)
slouken@5245
     7
#define     TF_IPSINK_FLAG_ACTIVE           0x0001
slouken@5245
     8
#define     TF_TMAE_UIELEMENTENABLEDONLY    0x00000004
slouken@5245
     9
slouken@5245
    10
typedef struct ITfThreadMgr ITfThreadMgr;
slouken@5245
    11
typedef struct ITfDocumentMgr ITfDocumentMgr;
slouken@5245
    12
typedef struct ITfClientId ITfClientId;
slouken@5245
    13
slouken@5245
    14
typedef struct IEnumTfDocumentMgrs IEnumTfDocumentMgrs;
slouken@5245
    15
typedef struct IEnumTfFunctionProviders IEnumTfFunctionProviders;
slouken@5245
    16
typedef struct ITfFunctionProvider ITfFunctionProvider;
slouken@5245
    17
typedef struct ITfCompartmentMgr ITfCompartmentMgr;
slouken@5245
    18
typedef struct ITfContext ITfContext;
slouken@5245
    19
typedef struct IEnumTfContexts IEnumTfContexts;
slouken@5245
    20
typedef struct ITfUIElementSink ITfUIElementSink;
slouken@5245
    21
typedef struct ITfUIElement ITfUIElement;
slouken@5245
    22
typedef struct ITfUIElementMgr ITfUIElementMgr;
slouken@5245
    23
typedef struct IEnumTfUIElements IEnumTfUIElements;
slouken@5245
    24
typedef struct ITfThreadMgrEx ITfThreadMgrEx;
slouken@5245
    25
typedef struct ITfCandidateListUIElement ITfCandidateListUIElement;
slouken@5245
    26
typedef struct ITfReadingInformationUIElement ITfReadingInformationUIElement;
slouken@5245
    27
typedef struct ITfInputProcessorProfileActivationSink ITfInputProcessorProfileActivationSink;
slouken@5245
    28
typedef struct ITfSource ITfSource;
slouken@5245
    29
slouken@5245
    30
typedef DWORD TfClientId;
slouken@5245
    31
typedef DWORD TfEditCookie;
slouken@5245
    32
slouken@5245
    33
typedef struct ITfThreadMgrVtbl
slouken@5245
    34
{
slouken@5245
    35
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfThreadMgr *, REFIID, void **);
slouken@5245
    36
    ULONG (STDMETHODCALLTYPE *AddRef)(ITfThreadMgr *);
slouken@5245
    37
    ULONG (STDMETHODCALLTYPE *Release)(ITfThreadMgr *);
slouken@5245
    38
    HRESULT (STDMETHODCALLTYPE *Activate)(ITfThreadMgr *, TfClientId *);
slouken@5245
    39
    HRESULT (STDMETHODCALLTYPE *Deactivate)(ITfThreadMgr *);
slouken@5245
    40
    HRESULT (STDMETHODCALLTYPE *CreateDocumentMgr)(ITfThreadMgr *);
slouken@5245
    41
    HRESULT (STDMETHODCALLTYPE *EnumDocumentMgrs)(ITfThreadMgr *, IEnumTfDocumentMgrs **);
slouken@5245
    42
    HRESULT (STDMETHODCALLTYPE *GetFocus)(ITfThreadMgr *, ITfDocumentMgr **);
slouken@5245
    43
    HRESULT (STDMETHODCALLTYPE *SetFocus)(ITfThreadMgr *, ITfDocumentMgr *);
slouken@5245
    44
    HRESULT (STDMETHODCALLTYPE *AssociateFocus)(ITfThreadMgr *, HWND, ITfDocumentMgr *, ITfDocumentMgr **);
slouken@5245
    45
    HRESULT (STDMETHODCALLTYPE *IsThreadFocus)(ITfThreadMgr *, BOOL *);
slouken@5245
    46
    HRESULT (STDMETHODCALLTYPE *GetFunctionProvider)(ITfThreadMgr *, REFCLSID, ITfFunctionProvider **);
slouken@5245
    47
    HRESULT (STDMETHODCALLTYPE *EnumFunctionProviders)(ITfThreadMgr *, IEnumTfFunctionProviders **);
slouken@5245
    48
    HRESULT (STDMETHODCALLTYPE *GetGlobalCompartment)(ITfThreadMgr *, ITfCompartmentMgr **);
slouken@5245
    49
} ITfThreadMgrVtbl;
slouken@5245
    50
slouken@5245
    51
struct ITfThreadMgr
slouken@5245
    52
{
slouken@5245
    53
    const struct ITfThreadMgrVtbl *lpVtbl;
slouken@5245
    54
};
slouken@5245
    55
slouken@5245
    56
typedef struct ITfThreadMgrExVtbl
slouken@5245
    57
{
slouken@5245
    58
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfThreadMgrEx *, REFIID, void **);
slouken@5245
    59
    ULONG (STDMETHODCALLTYPE *AddRef)(ITfThreadMgrEx *);
slouken@5245
    60
    ULONG (STDMETHODCALLTYPE *Release)(ITfThreadMgrEx *);
slouken@5245
    61
    HRESULT (STDMETHODCALLTYPE *Activate)(ITfThreadMgrEx *, TfClientId *);
slouken@5245
    62
    HRESULT (STDMETHODCALLTYPE *Deactivate)(ITfThreadMgrEx *);
slouken@5245
    63
    HRESULT (STDMETHODCALLTYPE *CreateDocumentMgr)(ITfThreadMgrEx *, ITfDocumentMgr **);
slouken@5245
    64
    HRESULT (STDMETHODCALLTYPE *EnumDocumentMgrs)(ITfThreadMgrEx *, IEnumTfDocumentMgrs **);
slouken@5245
    65
    HRESULT (STDMETHODCALLTYPE *GetFocus)(ITfThreadMgrEx *, ITfDocumentMgr **);
slouken@5245
    66
    HRESULT (STDMETHODCALLTYPE *SetFocus)(ITfThreadMgrEx *, ITfDocumentMgr *);
slouken@5245
    67
    HRESULT (STDMETHODCALLTYPE *AssociateFocus)(ITfThreadMgrEx *, ITfDocumentMgr *, ITfDocumentMgr **);
slouken@5245
    68
    HRESULT (STDMETHODCALLTYPE *IsThreadFocus)(ITfThreadMgrEx *, BOOL *);
slouken@5245
    69
    HRESULT (STDMETHODCALLTYPE *GetFunctionProvider)(ITfThreadMgrEx *, REFCLSID, ITfFunctionProvider **);
slouken@5245
    70
    HRESULT (STDMETHODCALLTYPE *EnumFunctionProviders)(ITfThreadMgrEx *, IEnumTfFunctionProviders **);
slouken@5245
    71
    HRESULT (STDMETHODCALLTYPE *GetGlobalCompartment)(ITfThreadMgrEx *, ITfCompartmentMgr **);
slouken@5245
    72
    HRESULT (STDMETHODCALLTYPE *ActivateEx)(ITfThreadMgrEx *, TfClientId *, DWORD);
slouken@5245
    73
    HRESULT (STDMETHODCALLTYPE *GetActiveFlags)(ITfThreadMgrEx *, DWORD *);
slouken@5245
    74
} ITfThreadMgrExVtbl;
slouken@5245
    75
slouken@5245
    76
struct ITfThreadMgrEx
slouken@5245
    77
{
slouken@5245
    78
    const struct ITfThreadMgrExVtbl *lpVtbl;
slouken@5245
    79
};
slouken@5245
    80
slouken@5245
    81
typedef struct ITfDocumentMgrVtbl
slouken@5245
    82
{
slouken@5245
    83
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfDocumentMgr *, REFIID, void **);
slouken@5245
    84
    ULONG (STDMETHODCALLTYPE *AddRef)(ITfDocumentMgr *);
slouken@5245
    85
    ULONG (STDMETHODCALLTYPE *Release)(ITfDocumentMgr *);
slouken@5245
    86
    HRESULT (STDMETHODCALLTYPE *CreateContext)(ITfDocumentMgr *, TfClientId, DWORD, IUnknown *, ITfContext **, TfEditCookie *);
slouken@5245
    87
    HRESULT (STDMETHODCALLTYPE *Push)(ITfDocumentMgr *, ITfContext *);
slouken@5245
    88
    HRESULT (STDMETHODCALLTYPE *Pop)(ITfDocumentMgr *);
slouken@5245
    89
    HRESULT (STDMETHODCALLTYPE *GetTop)(ITfDocumentMgr *, ITfContext **);
slouken@5245
    90
    HRESULT (STDMETHODCALLTYPE *GetBase)(ITfDocumentMgr *, ITfContext **);
slouken@5245
    91
    HRESULT (STDMETHODCALLTYPE *EnumContexts)(ITfDocumentMgr *, IEnumTfContexts **);
slouken@5245
    92
} ITfDocumentMgrVtbl;
slouken@5245
    93
slouken@5245
    94
struct ITfDocumentMgr
slouken@5245
    95
{
slouken@5245
    96
    const struct ITfDocumentMgrVtbl *lpVtbl;
slouken@5245
    97
};
slouken@5245
    98
slouken@5245
    99
typedef struct ITfUIElementSinkVtbl
slouken@5245
   100
{
slouken@5245
   101
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfUIElementSink *, REFIID, void **);
slouken@5245
   102
    ULONG (STDMETHODCALLTYPE *AddRef)(ITfUIElementSink *);
slouken@5245
   103
    ULONG (STDMETHODCALLTYPE *Release)(ITfUIElementSink *);
slouken@5245
   104
    HRESULT (STDMETHODCALLTYPE *BeginUIElement)(ITfUIElementSink *, DWORD, BOOL *);
slouken@5245
   105
    HRESULT (STDMETHODCALLTYPE *UpdateUIElement)(ITfUIElementSink *, DWORD);
slouken@5245
   106
    HRESULT (STDMETHODCALLTYPE *EndUIElement)(ITfUIElementSink *, DWORD);
slouken@5245
   107
} ITfUIElementSinkVtbl;
slouken@5245
   108
slouken@5245
   109
struct ITfUIElementSink
slouken@5245
   110
{
slouken@5245
   111
    const struct ITfUIElementSinkVtbl *lpVtbl;
slouken@5245
   112
};
slouken@5245
   113
slouken@5245
   114
typedef struct ITfUIElementMgrVtbl
slouken@5245
   115
{
slouken@5245
   116
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfUIElementMgr *, REFIID, void **);
slouken@5245
   117
    ULONG (STDMETHODCALLTYPE *AddRef)(ITfUIElementMgr *);
slouken@5245
   118
    ULONG (STDMETHODCALLTYPE *Release)(ITfUIElementMgr *);
slouken@5245
   119
    HRESULT (STDMETHODCALLTYPE *BeginUIElement)(ITfUIElementMgr *, ITfUIElement *, BOOL *, DWORD *);
slouken@5245
   120
    HRESULT (STDMETHODCALLTYPE *UpdateUIElement)(ITfUIElementMgr *, DWORD);
slouken@5245
   121
    HRESULT (STDMETHODCALLTYPE *EndUIElement)(ITfUIElementMgr *, DWORD);
slouken@5245
   122
    HRESULT (STDMETHODCALLTYPE *GetUIElement)(ITfUIElementMgr *, DWORD, ITfUIElement **);
slouken@5245
   123
    HRESULT (STDMETHODCALLTYPE *EnumUIElements)(ITfUIElementMgr *, IEnumTfUIElements **);
slouken@5245
   124
} ITfUIElementMgrVtbl;
slouken@5245
   125
slouken@5245
   126
struct ITfUIElementMgr
slouken@5245
   127
{
slouken@5245
   128
    const struct ITfUIElementMgrVtbl *lpVtbl;
slouken@5245
   129
};
slouken@5245
   130
slouken@5245
   131
typedef struct ITfCandidateListUIElementVtbl
slouken@5245
   132
{
slouken@5245
   133
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfCandidateListUIElement *, REFIID, void **);
slouken@5245
   134
    ULONG (STDMETHODCALLTYPE *AddRef)(ITfCandidateListUIElement *);
slouken@5245
   135
    ULONG (STDMETHODCALLTYPE *Release)(ITfCandidateListUIElement *);
slouken@5245
   136
    HRESULT (STDMETHODCALLTYPE *GetDescription)(ITfCandidateListUIElement *, BSTR *);
slouken@5245
   137
    HRESULT (STDMETHODCALLTYPE *GetGUID)(ITfCandidateListUIElement *, GUID *);
slouken@5245
   138
    HRESULT (STDMETHODCALLTYPE *Show)(ITfCandidateListUIElement *, BOOL);
slouken@5245
   139
    HRESULT (STDMETHODCALLTYPE *IsShown)(ITfCandidateListUIElement *, BOOL *);
slouken@5245
   140
    HRESULT (STDMETHODCALLTYPE *GetUpdatedFlags)(ITfCandidateListUIElement *, DWORD *);
slouken@5245
   141
    HRESULT (STDMETHODCALLTYPE *GetDocumentMgr)(ITfCandidateListUIElement *, ITfDocumentMgr **);
slouken@5245
   142
    HRESULT (STDMETHODCALLTYPE *GetCount)(ITfCandidateListUIElement *, UINT *);
slouken@5245
   143
    HRESULT (STDMETHODCALLTYPE *GetSelection)(ITfCandidateListUIElement *, UINT *);
slouken@5245
   144
    HRESULT (STDMETHODCALLTYPE *GetString)(ITfCandidateListUIElement *, UINT, BSTR *);
slouken@5245
   145
    HRESULT (STDMETHODCALLTYPE *GetPageIndex)(ITfCandidateListUIElement *, UINT *, UINT, UINT *);
slouken@5245
   146
    HRESULT (STDMETHODCALLTYPE *SetPageIndex)(ITfCandidateListUIElement *, UINT *, UINT);
slouken@5245
   147
    HRESULT (STDMETHODCALLTYPE *GetCurrentPage)(ITfCandidateListUIElement *, UINT *);
slouken@5245
   148
} ITfCandidateListUIElementVtbl;
slouken@5245
   149
slouken@5245
   150
struct ITfCandidateListUIElement
slouken@5245
   151
{
slouken@5245
   152
    const struct ITfCandidateListUIElementVtbl *lpVtbl;
slouken@5245
   153
};
slouken@5245
   154
slouken@5245
   155
typedef struct ITfReadingInformationUIElementVtbl
slouken@5245
   156
{
slouken@5245
   157
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfReadingInformationUIElement *, REFIID, void **);
slouken@5245
   158
    ULONG (STDMETHODCALLTYPE *AddRef)(ITfReadingInformationUIElement *);
slouken@5245
   159
    ULONG (STDMETHODCALLTYPE *Release)(ITfReadingInformationUIElement *);
slouken@5245
   160
    HRESULT (STDMETHODCALLTYPE *GetDescription)(ITfReadingInformationUIElement *, BSTR *);
slouken@5245
   161
    HRESULT (STDMETHODCALLTYPE *GetGUID)(ITfReadingInformationUIElement *, GUID *);
slouken@5245
   162
    HRESULT (STDMETHODCALLTYPE *Show)(ITfReadingInformationUIElement *, BOOL);
slouken@5245
   163
    HRESULT (STDMETHODCALLTYPE *IsShown)(ITfReadingInformationUIElement *, BOOL *);
slouken@5245
   164
    HRESULT (STDMETHODCALLTYPE *GetUpdatedFlags)(ITfReadingInformationUIElement *, DWORD *);
slouken@5245
   165
    HRESULT (STDMETHODCALLTYPE *GetContext)(ITfReadingInformationUIElement *, ITfContext **);
slouken@5245
   166
    HRESULT (STDMETHODCALLTYPE *GetString)(ITfReadingInformationUIElement *, BSTR *);
slouken@5245
   167
    HRESULT (STDMETHODCALLTYPE *GetMaxReadingStringLength)(ITfReadingInformationUIElement *, UINT *);
slouken@5245
   168
    HRESULT (STDMETHODCALLTYPE *GetErrorIndex)(ITfReadingInformationUIElement *, UINT *);
slouken@5245
   169
    HRESULT (STDMETHODCALLTYPE *IsVerticalOrderPreferred)(ITfReadingInformationUIElement *, BOOL *);
slouken@5245
   170
} ITfReadingInformationUIElementVtbl;
slouken@5245
   171
slouken@5245
   172
struct ITfReadingInformationUIElement
slouken@5245
   173
{
slouken@5245
   174
    const struct ITfReadingInformationUIElementVtbl *lpVtbl;
slouken@5245
   175
};
slouken@5245
   176
slouken@5245
   177
typedef struct ITfUIElementVtbl
slouken@5245
   178
{
slouken@5245
   179
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfUIElement *, REFIID, void **);
slouken@5245
   180
    ULONG (STDMETHODCALLTYPE *AddRef)(ITfUIElement *);
slouken@5245
   181
    ULONG (STDMETHODCALLTYPE *Release)(ITfUIElement *);
slouken@5245
   182
    HRESULT (STDMETHODCALLTYPE *GetDescription)(ITfUIElement *, BSTR *);
slouken@5245
   183
    HRESULT (STDMETHODCALLTYPE *GetGUID)(ITfUIElement *, GUID *);
slouken@5245
   184
    HRESULT (STDMETHODCALLTYPE *Show)(ITfUIElement *, BOOL);
slouken@5245
   185
    HRESULT (STDMETHODCALLTYPE *IsShown)(ITfUIElement *, BOOL *);
slouken@5245
   186
} ITfUIElementVtbl;
slouken@5245
   187
slouken@5245
   188
struct ITfUIElement
slouken@5245
   189
{
slouken@5245
   190
    const struct ITfUIElementVtbl *lpVtbl;
slouken@5245
   191
};
slouken@5245
   192
slouken@5245
   193
typedef struct ITfInputProcessorProfileActivationSinkVtbl
slouken@5245
   194
{
slouken@5245
   195
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfInputProcessorProfileActivationSink *, REFIID, void **);
slouken@5245
   196
    ULONG (STDMETHODCALLTYPE *AddRef)(ITfInputProcessorProfileActivationSink *);
slouken@5245
   197
    ULONG (STDMETHODCALLTYPE *Release)(ITfInputProcessorProfileActivationSink *);
slouken@5245
   198
    HRESULT (STDMETHODCALLTYPE *OnActivated)(ITfInputProcessorProfileActivationSink *, DWORD, LANGID, REFCLSID, REFGUID, REFGUID, HKL, DWORD);
slouken@5245
   199
slouken@5245
   200
} ITfInputProcessorProfileActivationSinkVtbl;
slouken@5245
   201
slouken@5245
   202
struct ITfInputProcessorProfileActivationSink
slouken@5245
   203
{
slouken@5245
   204
    const struct ITfInputProcessorProfileActivationSinkVtbl *lpVtbl;
slouken@5245
   205
};
slouken@5245
   206
slouken@5245
   207
typedef struct ITfSourceVtbl
slouken@5245
   208
{
slouken@5245
   209
    HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfSource *, REFIID, void **);
slouken@5245
   210
    ULONG (STDMETHODCALLTYPE *AddRef)(ITfSource *);
slouken@5245
   211
    ULONG (STDMETHODCALLTYPE *Release)(ITfSource *);
slouken@5245
   212
    HRESULT (STDMETHODCALLTYPE *AdviseSink)(ITfSource *, REFIID, IUnknown *, DWORD *);
slouken@5245
   213
    HRESULT (STDMETHODCALLTYPE *UnadviseSink)(ITfSource *, DWORD);
slouken@5245
   214
} ITfSourceVtbl;
slouken@5245
   215
slouken@5245
   216
struct ITfSource
slouken@5245
   217
{
slouken@5245
   218
    const struct ITfSourceVtbl *lpVtbl;
slouken@5245
   219
};
slouken@5245
   220
slouken@5245
   221
#endif /* _SDL_msctf_h */