| InputMethod_TextConfig * OH_TextConfig_Create () |
创建一个新的InputMethod_TextConfig实例。 |
| void OH_TextConfig_Destroy (InputMethod_TextConfig *config) |
销毁一个InputMethod_TextConfig实例。 |
| InputMethod_ErrorCode OH_TextConfig_SetInputType (InputMethod_TextConfig *config, InputMethod_TextInputType inputType) |
设置InputMethod_TextConfig实例的输入框类型。 |
| InputMethod_ErrorCode OH_TextConfig_SetEnterKeyType (InputMethod_TextConfig *config, InputMethod_EnterKeyType enterKeyType) |
设置InputMethod_TextConfig实例的回车键功能类型。 |
| InputMethod_ErrorCode OH_TextConfig_SetPreviewTextSupport (InputMethod_TextConfig *config, bool supported) |
将预上屏支持情况设置到InputMethod_TextConfig实例。 |
| InputMethod_ErrorCode OH_TextConfig_SetSelection (InputMethod_TextConfig *config, int32_t start, int32_t end) |
设置InputMethod_TextConfig实例的选中文本范围。 |
| InputMethod_ErrorCode OH_TextConfig_SetWindowId (InputMethod_TextConfig *config, int32_t windowId) |
设置InputMethod_TextConfig实例的所属窗口的窗口id。 |
| InputMethod_ErrorCode OH_TextConfig_GetInputType (InputMethod_TextConfig *config, InputMethod_TextInputType *inputType) |
获取InputMethod_TextConfig实例的输入框类型。 |
| InputMethod_ErrorCode OH_TextConfig_GetEnterKeyType (InputMethod_TextConfig *config, InputMethod_EnterKeyType *enterKeyType) |
获取InputMethod_TextConfig实例的回车键功能类型。 |
| InputMethod_ErrorCode OH_TextConfig_IsPreviewTextSupported (InputMethod_TextConfig *config, bool *supported) |
获取InputMethod_TextConfig实例的是否支持预上屏。 |
| InputMethod_ErrorCode OH_TextConfig_GetCursorInfo (InputMethod_TextConfig *config, InputMethod_CursorInfo **cursorInfo) |
获取InputMethod_TextConfig实例的光标信息。 |
| InputMethod_ErrorCode OH_TextConfig_GetTextAvoidInfo (InputMethod_TextConfig *config, InputMethod_TextAvoidInfo **avoidInfo) |
获取InputMethod_TextConfig实例的避让信息。 |
| InputMethod_ErrorCode OH_TextConfig_GetSelection (InputMethod_TextConfig *config, int32_t *start, int32_t *end) |
获取InputMethod_TextConfig实例的选区范围信息。 |
| InputMethod_ErrorCode OH_TextConfig_GetWindowId (InputMethod_TextConfig *config, int32_t *windowId) |
获取InputMethod_TextConfig实例所属窗口的窗口id。 |