目录

oh_pointer_style.h

Overview

Defines the mouse pointer styles.

File to include: <multimodalinput/oh_pointer_style.h>

Library: libohinput.so

System capability: SystemCapability.MultimodalInput.Input.Core

Since: 22

Related module: input

Summary

[h2]Enums

Name typedef Keyword Description
Input_PointerStyle Input_PointerStyle Pointer style.

Enum Description

[h2]Input_PointerStyle

enum Input_PointerStyle

Description

Enumerates the pointer styles.

Since: 22

Enum Item Description Legend
DEFAULT = 0 Cursor style displayed when the application does not set one.
EAST = 1 East arrow
WEST = 2 West arrow
SOUTH = 3 South arrow
NORTH = 4 North arrow
WEST_EAST = 5 West-east arrow
NORTH_SOUTH = 6 North-south arrow
NORTH_EAST = 7 North-east arrow
NORTH_WEST = 8 North-west arrow
SOUTH_EAST = 9 South-east arrow
SOUTH_WEST = 10 South-west arrow
NORTH_EAST_SOUTH_WEST = 11 North-east and south-west adjustment
NORTH_WEST_SOUTH_EAST = 12 North-west and south-east adjustment
CROSS = 13 Cross (accurate selection)
CURSOR_COPY = 14 Copy.
CURSOR_FORBID = 15 Forbid
COLOR_SUCKER = 16 Color picker
HAND_GRABBING = 17 Grabbing hand
HAND_OPEN = 18 Opening hand
HAND_POINTING = 19 Hand-shaped pointer
HELP = 20 Help
MOVE = 21 Move
RESIZE_LEFT_RIGHT = 22 Left and right resizing
RESIZE_UP_DOWN = 23 Up and down resizing
SCREENSHOT_CHOOSE = 24 Screenshot crosshair
SCREENSHOT_CURSOR = 25 Screenshot
TEXT_CURSOR = 26 Text selection
ZOOM_IN = 27 Zoom in
ZOOM_OUT = 28 Zoom out
MIDDLE_BTN_EAST = 29 Scrolling east
MIDDLE_BTN_WEST = 30 Scrolling west
MIDDLE_BTN_SOUTH = 31 Scrolling south
MIDDLE_BTN_NORTH = 32 Scrolling north
MIDDLE_BTN_NORTH_SOUTH = 33 Scrolling north-south
MIDDLE_BTN_NORTH_EAST = 34 Scrolling north-east
MIDDLE_BTN_NORTH_WEST = 35 Scrolling north-west
MIDDLE_BTN_SOUTH_EAST = 36 Scrolling south-east
MIDDLE_BTN_SOUTH_WEST = 37 Scrolling south-west
MIDDLE_BTN_NORTH_SOUTH_WEST_EAST = 38 Moving as a cone in four directions
HORIZONTAL_TEXT_CURSOR = 39 Horizontal text selection.
CURSOR_CROSS = 40 Cross
CURSOR_CIRCLE = 41 Circle
LOADING = 42 Loading
RUNNING = 43 Running in the background
MIDDLE_BTN_EAST_WEST = 44 Scrolling east-west
RUNNING_LEFT = 45 Animated cursor for background running (extension 1).
RUNNING_RIGHT = 46 Animated cursor for background running (extension 2).
AECH_DEVELOPER_DEFINED_ICON = 47 Custom circular pointer
SCREENRECORDER_CURSOR = 48 Screen recording
LASER_CURSOR = 49

Floating cursor. This cursor is used when the stylus enters air mouse mode and cannot be set directly.

In air mouse mode, the stylus can be rotated in the air to control the movement of the virtual cursor on the screen, and the buttons on the stylus body can be used to page up and down, for scenarios such as presenting PPTs and air operation.

LASER_CURSOR_DOT = 50

Click cursor. This cursor is used when the stylus enters air mouse mode and cannot be set directly.

In air mouse mode, the stylus can be rotated in the air to control the movement of the virtual cursor on the screen, and the buttons on the stylus body can be used to page up and down, for scenarios such as presenting PPTs and air operation.

LASER_CURSOR_DOT_RED = 51

Laser pointer cursor. This cursor is used when the stylus enters air mouse mode and cannot be set directly.

In air mouse mode, the stylus can be rotated in the air to control the movement of the virtual cursor on the screen, and the buttons on the stylus body can be used to page up and down, for scenarios such as presenting PPTs and air operation.

DEVELOPER_DEFINED_ICON = -100 Custom pointer. You can use the OH_Input_SetCustomCursor to set a custom pointer, but not the OH_Input_SetPointerStyle. You can customize pointers as needed via API.