baidwwy / libtf

A library for text service framework, enables input method in game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libtf

A library for Text Service Framework

Build

Environment

  • Visual Studio Community 2019 - 16.11.0
  • MSVC v142
  • C++ ATL v142
  • Windows SDK(10.0.19041.0)

Setup Project

cd <path-to-libtf-project>
cmake -S ./ -B ./build/build64-static-rt -DSTATIC_VC_RUNTIME=1 -G "Visual Studio 16 2019" -A x64
cmake -S ./ -B ./build/build32-static-rt -DSTATIC_VC_RUNTIME=1 -G "Visual Studio 16 2019" -A Win32
cmake -S ./ -B ./build/build64 -DSTATIC_VC_RUNTIME=0 -G "Visual Studio 16 2019" -A x64
cmake -S ./ -B ./build/build32 -DSTATIC_VC_RUNTIME=0 -G "Visual Studio 16 2019" -A Win32

Build

cmake --build ./build/build<64|32>[-static-rt] --config Release --target ALL_BUILD

How to use?

This is a library that can be used in a Pure C Environment

Only need to include two header files, libtf.h and libtfdef.h

What can you do with it?

  • Control open status of the Input Method

  • Obtain System available Input Methods as well as Keyboard Layouts,which also called Input Processor

  • Obtain the localized name of the Input Processor as well as the display name of the locale it associate to

  • Obtain or set the active Input Processor

  • Listen for status changes of Conversion Mode and Sentence Mode

  • Obtain the PreEdit text and the Candidate list of the Composition

  • Hide the Candidate Window of the Input Method and draw it yourself

About

A library for text service framework, enables input method in game.

License:GNU Lesser General Public License v2.1


Languages

Language:C 76.4%Language:CMake 18.6%Language:Objective-C 3.2%Language:C++ 1.4%Language:SCSS 0.2%Language:Shell 0.0%Language:HTML 0.0%