Lines Matching refs:pointer

5pointer management provides the functions such as displaying or hiding the mouse pointer as well a…
10 import { pointer } from '@kit.InputKit';
15 …s for mouse pointer management. For details about the APIs, see [ohos.multimodalInput.pointer](../…
19 … AsyncCallback\<boolean>): void | Checks the visible status of the mouse pointer. …
20 …>): void | Sets the visible status of the mouse pointer. This setting takes effect for the mouse p…
21 …AsyncCallback\<void>): void | Sets the mouse pointer style. This setting takes effect for the mous…
22 …umber, callback: AsyncCallback\<PointerStyle>): void | Obtains the mouse pointer style. …
26 When watching a video in full-screen mode, a user can hide the mouse pointer for an improved user e…
31 2. Hide the mouse pointer.
33 4. Display the mouse pointer.
36 import { pointer } from '@kit.InputKit';
39 // 2. Hide the mouse pointer.
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…
53 // 4. Display the mouse pointer.
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`])}`);
69pointer switched to the color picker style during color pickup and then switched to the default st…
75 3. Set the mouse pointer to the color picker style.
77 5. Set the mouse pointer to the default style.
80 import { pointer } from '@kit.InputKit';
97 // 3. Set the mouse pointer to the color picker style.
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…
117 // 5. Set the mouse pointer to the default style.
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…