tpInputMethod类
Utils
2025-07-05
基础信息
头文件: | include <tpInputMethod.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | |
派生类: |
Public 成员函数
tpInputMethod() | ||
---|---|---|
~tpInputMethod() | ||
inputKeySequence(const tpString &inputSequence) | 输入拼音字符;每次调用会追加字符;ex: 第一次输入z;第二次输入h;处理结果zh | |
tpString | keySequence() | 获取当前输入的拼音字符 |
clear() | 重置输入字符 | |
tpVector< tpString > | currentPageCandidates() | 获取当前页候选词列表 |
tpVector< tpString > | allCandidates() | 获取当前输入拼音的所有候选词 |
currentPage() | 获取当前页索引 | |
previousPage() | 上一页 | |
nextPage() | 下一页 | |
hasNext() | 是否还有下一页 |
成员函数说明
tpInputMethod::tpInputMethod()
暂无注释...
virtual
tpInputMethod::~tpInputMethod()
暂无注释...
void tpInputMethod::inputKeySequence(const tpString &inputSequence)
点击查看...
输入拼音字符;每次调用会追加字符;ex: 第一次输入z;第二次输入h;处理结果zh
tpString tpInputMethod::keySequence()
点击查看...
获取当前输入的拼音字符
返回值:
拼音字符串
void tpInputMethod::clear()
点击查看...
重置输入字符
tpVector< tpString > tpInputMethod::currentPageCandidates()
点击查看...
获取当前页候选词列表
返回值:
候选词列表
tpVector< tpString > tpInputMethod::allCandidates()
点击查看...
获取当前输入拼音的所有候选词
返回值:
候选词列表
int32_t tpInputMethod::currentPage()
点击查看...
获取当前页索引
返回值:
候选词列表
bool tpInputMethod::previousPage()
点击查看...
上一页
返回值:
执行结果
bool tpInputMethod::nextPage()
点击查看...
下一页
返回值:
执行结果
bool tpInputMethod::hasNext()
点击查看...
是否还有下一页
返回值:
还有下一页返回true否则返回false