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