Lines Matching refs:pointer
10 import { pointer } from '@kit.InputKit';
15 鼠标光标控制常用接口如下表所示,接口详细介绍请参见[ohos.multimodalInput.pointer文档](../../reference/apis-input-kit/js-apis-po…
36 import { pointer } from '@kit.InputKit';
41 pointer.setPointerVisible(false, (error: Error) => {
43 … console.log(`Set pointer visible failed, error: ${JSON.stringify(error, [`code`, `message`])}`);
46 console.log(`Set pointer visible success.`);
49 …console.log(`The mouse pointer hide attributes is failed. ${JSON.stringify(error, [`code`, `messag…
55 pointer.setPointerVisible(true, (error: Error) => {
57 … console.log(`Set pointer visible failed, error: ${JSON.stringify(error, [`code`, `message`])}`);
60 console.log(`Set pointer visible success.`);
63 console.log(`Set pointer visible failed, ${JSON.stringify(error, [`code`, `message`])}`);
69 …内指定窗口的光标样式,总共可设置43种光标样式,具体参考[光标样式](../../reference/apis-input-kit/js-apis-pointer.md#pointerstyle)。
80 import { pointer } from '@kit.InputKit';
98 pointer.setPointerStyle(windowId, pointer.PointerStyle.COLOR_SUCKER).then(() => {
99 console.log(`Successfully set mouse pointer style`);
102 …console.log(`Failed to set the pointer style, error=${JSON.stringify(error)}, msg=${JSON.stringify…
118 pointer.setPointerStyle(windowId, pointer.PointerStyle.DEFAULT).then(() => {
119 console.log(`Successfully set mouse pointer style`);
122 …console.log(`Failed to set the pointer style, error=${JSON.stringify(error)}, msg=${JSON.stringify…