1# inputmethod_cursor_info_capi.h
2
3
4## 概述
5
6提供光标信息对象的创建、销毁与读写方法。
7
8**库:** libohinputmethod.so
9
10**系统能力:** SystemCapability.MiscServices.InputMethodFramework
11
12**起始版本:** 12
13
14**相关模块:**[InputMethod](_input_method.md)
15
16
17## 汇总
18
19
20### 类型定义
21
22| 名称 | 描述 |
23| -------- | -------- |
24| [InputMethod_CursorInfo](_input_method.md#inputmethod_cursorinfo) | 光标信息。 |
25
26
27### 函数
28
29| 名称 | 描述 |
30| -------- | -------- |
31| [InputMethod_CursorInfo](_input_method.md#inputmethod_cursorinfo) \* [OH_CursorInfo_Create](_input_method.md#oh_cursorinfo_create) (double left, double top, double width, double height) | 创建一个新的[InputMethod_CursorInfo](_input_method.md#inputmethod_cursorinfo)实例。 |
32| void [OH_CursorInfo_Destroy](_input_method.md#oh_cursorinfo_destroy) ([InputMethod_CursorInfo](_input_method.md#inputmethod_cursorinfo) \*cursorInfo) | 销毁一个[InputMethod_CursorInfo](_input_method.md#inputmethod_cursorinfo)实例。 |
33| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_CursorInfo_SetRect](_input_method.md#oh_cursorinfo_setrect) ([InputMethod_CursorInfo](_input_method.md#inputmethod_cursorinfo) \*cursorInfo, double left, double top, double width, double height) | 设置光标信息内容。 |
34| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_CursorInfo_GetRect](_input_method.md#oh_cursorinfo_getrect) ([InputMethod_CursorInfo](_input_method.md#inputmethod_cursorinfo) \*cursorInfo, double \*left, double \*top, double \*width, double \*height) | 获取光标信息内容。 |
35