1# inputmethod_cursor_info_capi.h
2
3
4## Overview
5
6Provides methods for creating, destroying, reading, and writing cursor information objects.
7
8**Library**: libohinputmethod.so
9
10**System capability**: SystemCapability.MiscServices.InputMethodFramework
11
12**Since**: 12
13
14**Related module**: [InputMethod](_input_method.md)
15
16
17## Summary
18
19
20### Types
21
22| Name| Description|
23| -------- | -------- |
24| [InputMethod_CursorInfo](_input_method.md#inputmethod_cursorinfo) | Cursor information.|
25
26
27### Functions
28
29| Name| Description|
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) | Creates an [InputMethod_CursorInfo](_input_method.md#inputmethod_cursorinfo) instance.|
32| void [OH_CursorInfo_Destroy](_input_method.md#oh_cursorinfo_destroy) ([InputMethod_CursorInfo](_input_method.md#inputmethod_cursorinfo) \*cursorInfo) | Destroys an [InputMethod_CursorInfo](_input_method.md#inputmethod_cursorinfo) instance.|
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) | Sets the cursor information.|
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) | Obtains the cursor information.|
35