Coder Social home page Coder Social logo

baidwwy / libtf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from windmill-city/ingameime_win32

0.0 0.0 0.0 1.92 MB

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

License: GNU Lesser General Public License v2.1

C++ 1.42% C 76.43% CMake 18.65% Shell 0.05% SCSS 0.21% HTML 0.03% Objective-C 3.20%

libtf's Introduction

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

libtf's People

Contributors

windmill-city avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.