wanspring / IngameIME_Sharp

A C# Wrapper for Windows IME APIs. Supports IMM32 and TSF. (it's good)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IngameIME_Sharp

A C# wrapper for Windows IME APIs. Its goal is to support both IMM32 and TSF. using https://github.com/Windmill-City/IngameIME

Introduction

Using IngameIME_Sharp

//get a control first
//For win7 or below, use IMM
//For Win8 above should use TSF
private BaseIME_Sharp api;
//api = new IMM();
api = new TSF();

initialize

api.Initialize(Handle);
//Composition
api.m_compositionHandler.eventComposition += M_compositionHandler_eventComposition; ;
api.m_compositionHandler.eventGetTextExt += M_compositionHandler_eventGetTextExt; ;

//CandidateList
api.m_candidateListWrapper.eventCandidateList += M_candidateListWrapper_eventCandidateList;

//AlphaMode
api.eventAlphaMode += Api_eventAlphaMode;

*Set IME State and FullScreen Mode

api.setState(true);
api.setFullScreen(true);

MS Docs

About

A C# Wrapper for Windows IME APIs. Supports IMM32 and TSF. (it's good)

License:GNU Lesser General Public License v2.1


Languages

Language:C++ 47.2%Language:C# 45.3%Language:C 7.6%