From 812db1fae6e3352a42bf77c16ab11eae016e76ed Mon Sep 17 00:00:00 2001 From: Daniel Wyatt Date: Tue, 23 Nov 2010 17:43:10 -0500 Subject: [PATCH] Add ITfCandidateListUIElement to SDL_msctf.h for MinGW. --- src/video/win32/SDL_msctf.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/video/win32/SDL_msctf.h b/src/video/win32/SDL_msctf.h index 8fe02d2b1..a338ddfb1 100644 --- a/src/video/win32/SDL_msctf.h +++ b/src/video/win32/SDL_msctf.h @@ -22,6 +22,7 @@ typedef struct ITfUIElement ITfUIElement; typedef struct ITfUIElementMgr ITfUIElementMgr; typedef struct IEnumTfUIElements IEnumTfUIElements; typedef struct ITfThreadMgrEx ITfThreadMgrEx; +typedef struct ITfCandidateListUIElement ITfCandidateListUIElement; typedef struct ITfReadingInformationUIElement ITfReadingInformationUIElement; typedef struct ITfInputProcessorProfileActivationSink ITfInputProcessorProfileActivationSink; typedef struct ITfSource ITfSource; @@ -127,6 +128,30 @@ struct ITfUIElementMgr const struct ITfUIElementMgrVtbl *lpVtbl; }; +typedef struct ITfCandidateListUIElementVtbl +{ + HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfCandidateListUIElement *, REFIID, void **); + ULONG (STDMETHODCALLTYPE *AddRef)(ITfCandidateListUIElement *); + ULONG (STDMETHODCALLTYPE *Release)(ITfCandidateListUIElement *); + HRESULT (STDMETHODCALLTYPE *GetDescription)(ITfCandidateListUIElement *, BSTR *); + HRESULT (STDMETHODCALLTYPE *GetGUID)(ITfCandidateListUIElement *, GUID *); + HRESULT (STDMETHODCALLTYPE *Show)(ITfCandidateListUIElement *, BOOL); + HRESULT (STDMETHODCALLTYPE *IsShown)(ITfCandidateListUIElement *, BOOL *); + HRESULT (STDMETHODCALLTYPE *GetUpdatedFlags)(ITfCandidateListUIElement *, DWORD *); + HRESULT (STDMETHODCALLTYPE *GetDocumentMgr)(ITfCandidateListUIElement *, ITfDocumentMgr **); + HRESULT (STDMETHODCALLTYPE *GetCount)(ITfCandidateListUIElement *, UINT *); + HRESULT (STDMETHODCALLTYPE *GetSelection)(ITfCandidateListUIElement *, UINT *); + HRESULT (STDMETHODCALLTYPE *GetString)(ITfCandidateListUIElement *, UINT, BSTR *); + HRESULT (STDMETHODCALLTYPE *GetPageIndex)(ITfCandidateListUIElement *, UINT *, UINT, UINT *); + HRESULT (STDMETHODCALLTYPE *SetPageIndex)(ITfCandidateListUIElement *, UINT *, UINT); + HRESULT (STDMETHODCALLTYPE *GetCurrentPage)(ITfCandidateListUIElement *, UINT *); +} ITfCandidateListUIElementVtbl; + +struct ITfCandidateListUIElement +{ + const struct ITfCandidateListUIElementVtbl *lpVtbl; +}; + typedef struct ITfReadingInformationUIElementVtbl { HRESULT (STDMETHODCALLTYPE *QueryInterface)(ITfReadingInformationUIElement *, REFIID, void **);