Add ITfCandidateListUIElement to SDL_msctf.h for MinGW.
1.1 --- a/src/video/win32/SDL_msctf.h Fri Nov 19 21:51:33 2010 -0800
1.2 +++ b/src/video/win32/SDL_msctf.h Tue Nov 23 17:43:10 2010 -0500
1.3 @@ -22,6 +22,7 @@
1.4 typedef struct ITfUIElementMgr ITfUIElementMgr;
1.5 typedef struct IEnumTfUIElements IEnumTfUIElements;
1.6 typedef struct ITfThreadMgrEx ITfThreadMgrEx;
1.7 +typedef struct ITfCandidateListUIElement ITfCandidateListUIElement;
1.8 typedef struct ITfReadingInformationUIElement ITfReadingInformationUIElement;
1.9 typedef struct ITfInputProcessorProfileActivationSink ITfInputProcessorProfileActivationSink;
1.10 typedef struct ITfSource ITfSource;
1.11 @@ -127,6 +128,30 @@
1.12 const struct ITfUIElementMgrVtbl *lpVtbl;
1.13 };
1.14
1.15 +typedef struct ITfCandidateListUIElementVtbl
1.16 +{
1.17 + HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfCandidateListUIElement *, REFIID, void **);
1.18 + ULONG (STDMETHODCALLTYPE *AddRef)(ITfCandidateListUIElement *);
1.19 + ULONG (STDMETHODCALLTYPE *Release)(ITfCandidateListUIElement *);
1.20 + HRESULT (STDMETHODCALLTYPE *GetDescription)(ITfCandidateListUIElement *, BSTR *);
1.21 + HRESULT (STDMETHODCALLTYPE *GetGUID)(ITfCandidateListUIElement *, GUID *);
1.22 + HRESULT (STDMETHODCALLTYPE *Show)(ITfCandidateListUIElement *, BOOL);
1.23 + HRESULT (STDMETHODCALLTYPE *IsShown)(ITfCandidateListUIElement *, BOOL *);
1.24 + HRESULT (STDMETHODCALLTYPE *GetUpdatedFlags)(ITfCandidateListUIElement *, DWORD *);
1.25 + HRESULT (STDMETHODCALLTYPE *GetDocumentMgr)(ITfCandidateListUIElement *, ITfDocumentMgr **);
1.26 + HRESULT (STDMETHODCALLTYPE *GetCount)(ITfCandidateListUIElement *, UINT *);
1.27 + HRESULT (STDMETHODCALLTYPE *GetSelection)(ITfCandidateListUIElement *, UINT *);
1.28 + HRESULT (STDMETHODCALLTYPE *GetString)(ITfCandidateListUIElement *, UINT, BSTR *);
1.29 + HRESULT (STDMETHODCALLTYPE *GetPageIndex)(ITfCandidateListUIElement *, UINT *, UINT, UINT *);
1.30 + HRESULT (STDMETHODCALLTYPE *SetPageIndex)(ITfCandidateListUIElement *, UINT *, UINT);
1.31 + HRESULT (STDMETHODCALLTYPE *GetCurrentPage)(ITfCandidateListUIElement *, UINT *);
1.32 +} ITfCandidateListUIElementVtbl;
1.33 +
1.34 +struct ITfCandidateListUIElement
1.35 +{
1.36 + const struct ITfCandidateListUIElementVtbl *lpVtbl;
1.37 +};
1.38 +
1.39 typedef struct ITfReadingInformationUIElementVtbl
1.40 {
1.41 HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfReadingInformationUIElement *, REFIID, void **);