Merged
补充setPointerStyle、getPointer、setCustomCursor等光标样式接口注释 #144158
yueyan233Add on May 13
补充setPointerStyle、getPointer、setCustomCursor等光标样式接口注释 #144158
Merged
Merged fromyueyan233/docs_01masterintoopenharmony/docsmaster
Total: 2 files changed+13-13
| @@ -4476,7 +4476,7 @@ Input_Result OH_Input_GetPointerStyle(int32_t windowId, int32_t *pointerStyle) | |||
| 4476 | 4476 | ||
| 4477 | **描述** | 4477 | **描述** |
| 4478 | 4478 | ||
| 4479 | -获取指定窗口的鼠标光标样式。 | 4479 | +获取指定窗口的鼠标光标样式。此接口仅支持获取本应用进程内窗口的鼠标光标样式。 |
| 4480 | 4480 | ||
| 4481 | **设备行为差异**:该接口在Wearable设备上调用无效果,在其他设备上可正常调用。 | 4481 | **设备行为差异**:该接口在Wearable设备上调用无效果,在其他设备上可正常调用。 |
| 4482 | 4482 | ||
| @@ -4504,7 +4504,7 @@ Input_Result OH_Input_SetPointerStyle(int32_t windowId, int32_t pointerStyle) | |||
| 4504 | 4504 | ||
| 4505 | **描述** | 4505 | **描述** |
| 4506 | 4506 | ||
| 4507 | -设置指定窗口的鼠标光标样式。 | 4507 | +设置指定窗口的鼠标光标样式。此接口仅支持设置本应用进程内窗口的鼠标光标样式。 |
| 4508 | 4508 | ||
| 4509 | **设备行为差异**:该接口在Wearable设备上调用无效果,在其他设备上可正常调用。 | 4509 | **设备行为差异**:该接口在Wearable设备上调用无效果,在其他设备上可正常调用。 |
| 4510 | 4510 | ||
| @@ -4702,7 +4702,7 @@ Input_Result OH_Input_SetCustomCursor(int32_t windowId, Input_CustomCursor* cust | |||
| 4702 | 4702 | ||
| 4703 | 设置自定义鼠标光标样式。 | 4703 | 设置自定义鼠标光标样式。 |
| 4704 | 4704 | ||
| 4705 | -应用窗口布局改变、热区切换、页面跳转、光标移出再回到窗口、光标在窗口不同区域移动,以上场景可能导致光标切换回系统样式,需要开发者重新设置光标样式。 | 4705 | +应用窗口布局改变、热区切换、页面跳转、光标移出再回到窗口、光标在窗口不同区域移动,以上场景可能导致光标切换回系统样式,需要开发者重新设置光标样式。此接口仅支持设置本应用进程内窗口的自定义鼠标光标样式。 |
| 4706 | 4706 | ||
| 4707 | **起始版本:** 22 | 4707 | **起始版本:** 22 |
| 4708 | 4708 | ||
| @@ -4798,7 +4798,7 @@ Input_Result OH_Input_CursorInfo_GetStyle(Input_CursorInfo* cursorInfo, Input_Po | |||
| 4798 | | 参数项 | 描述 | | 4798 | | 参数项 | 描述 | |
| 4799 | | -- | -- | | 4799 | | -- | -- | |
| 4800 | | [Input_CursorInfo](capi-input-input-cursorinfo.md)* cursorInfo | 指定鼠标光标信息对象。可以通过[OH_Input_GetMouseEventCursorInfo](#oh_input_getmouseeventcursorinfo)查询指定鼠标事件的鼠标光标信息、或通过[OH_Input_GetCursorInfo](#oh_input_getcursorinfo)接口查询当前的鼠标光标信息。| | 4800 | | [Input_CursorInfo](capi-input-input-cursorinfo.md)* cursorInfo | 指定鼠标光标信息对象。可以通过[OH_Input_GetMouseEventCursorInfo](#oh_input_getmouseeventcursorinfo)查询指定鼠标事件的鼠标光标信息、或通过[OH_Input_GetCursorInfo](#oh_input_getcursorinfo)接口查询当前的鼠标光标信息。| |
| 4801 | -| [Input_PointerStyle](capi-oh-pointer-style-h.md) | 鼠标光标信息的光标样式枚举,具体请参考[Input_PointerStyle](./capi-oh-pointer-style-h.md#input_pointerstyle)。| | 4801 | +| [Input_PointerStyle](./capi-oh-pointer-style-h.md#input_pointerstyle) | 鼠标光标信息的光标样式枚举,具体请参考[Input_PointerStyle](./capi-oh-pointer-style-h.md#input_pointerstyle)。| |
| 4802 | 4802 | ||
| 4803 | **返回:** | 4803 | **返回:** |
| 4804 | 4804 | ||
| @@ -317,7 +317,7 @@ struct Index { | |||
| 317 | 317 | ||
| 318 | getPointerStyle(windowId: number, callback: AsyncCallback<PointerStyle>): void | 318 | getPointerStyle(windowId: number, callback: AsyncCallback<PointerStyle>): void |
| 319 | 319 | ||
| 320 | -获取指定窗口的鼠标样式类型,使用callback异步回调。 | 320 | +获取指定窗口的鼠标样式类型,使用callback异步回调。此接口仅支持获取本应用进程内窗口的鼠标样式类型。 |
| 321 | 321 | ||
| 322 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer | 322 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer |
| 323 | 323 | ||
| @@ -380,7 +380,7 @@ struct Index { | |||
| 380 | 380 | ||
| 381 | getPointerStyle(windowId: number): Promise<PointerStyle> | 381 | getPointerStyle(windowId: number): Promise<PointerStyle> |
| 382 | 382 | ||
| 383 | -获取鼠标样式类型,使用Promise异步回调。 | 383 | +获取鼠标样式类型,使用Promise异步回调。此接口仅支持获取本应用进程内窗口的鼠标样式类型。 |
| 384 | 384 | ||
| 385 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer | 385 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer |
| 386 | 386 | ||
| @@ -450,7 +450,7 @@ struct Index { | |||
| 450 | 450 | ||
| 451 | getPointerStyleSync(windowId: number): PointerStyle | 451 | getPointerStyleSync(windowId: number): PointerStyle |
| 452 | 452 | ||
| 453 | -查询指定窗口的鼠标样式类型,如向东箭头、向西箭头、向南箭头、向北箭头等。 | 453 | +查询指定窗口的鼠标样式类型,如向东箭头、向西箭头、向南箭头、向北箭头等。此接口仅支持获取本应用进程内窗口的鼠标样式类型。 |
| 454 | 454 | ||
| 455 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer | 455 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer |
| 456 | 456 | ||
| @@ -503,7 +503,7 @@ struct Index { | |||
| 503 | 503 | ||
| 504 | setPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCallback<void>): void | 504 | setPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCallback<void>): void |
| 505 | 505 | ||
| 506 | -设置指定窗口的鼠标样式类型,使用callback异步回调。 | 506 | +设置指定窗口的鼠标样式类型,使用callback异步回调。此接口仅支持设置本应用进程内窗口的鼠标样式类型,如需通过UIExtensionAbility进程设置宿主窗口的鼠标样式类型,请参阅[setCursor](../apis-arkui/arkts-apis-uicontext-cursorcontroller.md#setcursor12)。 |
| 507 | 507 | ||
| 508 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer | 508 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer |
| 509 | 509 | ||
| @@ -566,7 +566,7 @@ struct Index { | |||
| 566 | 566 | ||
| 567 | setPointerStyle(windowId: number, pointerStyle: PointerStyle): Promise<void> | 567 | setPointerStyle(windowId: number, pointerStyle: PointerStyle): Promise<void> |
| 568 | 568 | ||
| 569 | -设置指定窗口的鼠标样式类型,使用Promise异步回调。 | 569 | +设置指定窗口的鼠标样式类型,使用Promise异步回调。此接口仅支持设置本应用进程内窗口的鼠标样式类型,如需通过UIExtensionAbility进程设置宿主窗口的鼠标样式类型,请参阅[setCursor](../apis-arkui/arkts-apis-uicontext-cursorcontroller.md#setcursor12)。 |
| 570 | 570 | ||
| 571 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer | 571 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer |
| 572 | 572 | ||
| @@ -637,7 +637,7 @@ struct Index { | |||
| 637 | 637 | ||
| 638 | setPointerStyleSync(windowId: number, pointerStyle: PointerStyle): void | 638 | setPointerStyleSync(windowId: number, pointerStyle: PointerStyle): void |
| 639 | 639 | ||
| 640 | -设置指定窗口的鼠标样式类型,使用同步方式返回结果。 | 640 | +设置指定窗口的鼠标样式类型,使用同步方式返回结果。此接口仅支持设置本应用进程内窗口的鼠标样式类型,如需通过UIExtensionAbility进程设置宿主窗口的鼠标样式类型,请参阅[setCursor](../apis-arkui/arkts-apis-uicontext-cursorcontroller.md#setcursor12)。 |
| 641 | 641 | ||
| 642 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer | 642 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer |
| 643 | 643 | ||
| @@ -785,7 +785,7 @@ struct Index { | |||
| 785 | 785 | ||
| 786 | setCustomCursor(windowId: number, pixelMap: image.PixelMap, focusX?: number, focusY?: number): Promise<void> | 786 | setCustomCursor(windowId: number, pixelMap: image.PixelMap, focusX?: number, focusY?: number): Promise<void> |
| 787 | 787 | ||
| 788 | -设置指定窗口的自定义光标样式,使用Promise异步回调。 | 788 | +设置指定窗口的自定义光标样式,使用Promise异步回调。此接口仅支持设置本应用进程内窗口的自定义光标样式,如需通过UIExtensionAbility进程设置宿主窗口的自定义光标样式,请参阅[setCustomCursor](../apis-arkui/arkts-apis-uicontext-cursorcontroller.md#setcustomcursor)。 |
| 789 | 789 | ||
| 790 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer | 790 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer |
| 791 | 791 | ||
| @@ -879,7 +879,7 @@ struct Index { | |||
| 879 | 879 | ||
| 880 | setCustomCursor(windowId: number, cursor: CustomCursor, config: CursorConfig): Promise<void> | 880 | setCustomCursor(windowId: number, cursor: CustomCursor, config: CursorConfig): Promise<void> |
| 881 | 881 | ||
| 882 | -设置指定窗口的自定义光标样式,使用Promise异步回调。 | 882 | +设置指定窗口的自定义光标样式,使用Promise异步回调。此接口仅支持设置本应用进程内窗口的自定义光标样式,如需通过UIExtensionAbility进程设置宿主窗口的自定义光标样式,请参阅[setCustomCursor](../apis-arkui/arkts-apis-uicontext-cursorcontroller.md#setcustomcursor)。 |
| 883 | 883 | ||
| 884 | 应用窗口布局改变、热区切换、页面跳转、光标移出再回到窗口、光标在窗口不同区域移动,以上场景可能导致光标切换回系统样式,需要开发者重新设置光标样式。 | 884 | 应用窗口布局改变、热区切换、页面跳转、光标移出再回到窗口、光标在窗口不同区域移动,以上场景可能导致光标切换回系统样式,需要开发者重新设置光标样式。 |
| 885 | 885 | ||
| @@ -958,7 +958,7 @@ struct Index { | |||
| 958 | 958 | ||
| 959 | setCustomCursorSync(windowId: number, pixelMap: image.PixelMap, focusX?: number, focusY?: number): void | 959 | setCustomCursorSync(windowId: number, pixelMap: image.PixelMap, focusX?: number, focusY?: number): void |
| 960 | 960 | ||
| 961 | -设置指定窗口的自定义光标样式,使用同步方式进行设置。 | 961 | +设置指定窗口的自定义光标样式,使用同步方式进行设置。此接口仅支持设置本应用进程内窗口的自定义光标样式,如需通过UIExtensionAbility进程设置宿主窗口的自定义光标样式,请参阅[setCustomCursor](../apis-arkui/arkts-apis-uicontext-cursorcontroller.md#setcustomcursor)。 |
| 962 | 962 | ||
| 963 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer | 963 | **系统能力**:SystemCapability.MultimodalInput.Input.Pointer |
| 964 | 964 | ||