openharmony 鸿蒙 capi-oh-pointer-style-h

2026-08-25 浏览 (1)

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

Enums

Nametypedef KeywordDescription
Input_PointerStyleInput_PointerStylePointer style.

Enum Description

Input_PointerStyle

enum Input_PointerStyle

Description

Enumerates the pointer styles.

Since: 22

Enum ItemDescriptionLegend
DEFAULT = 0DefaultDefault.png
EAST = 1East arrowEast.png
WEST = 2West arrowWest.png
SOUTH = 3South arrowSouth.png
NORTH = 4North arrowNorth.png
WEST_EAST = 5West-east arrowWest_East.png
NORTH_SOUTH = 6North-south arrowNorth_South.png
NORTH_EAST = 7North-east arrowNorth_East.png
NORTH_WEST = 8North-west arrowNorth_West.png
SOUTH_EAST = 9South-east arrowSouth_East.png
SOUTH_WEST = 10South-west arrowSouth_West.png
NORTH_EAST_SOUTH_WEST = 11North-east and south-west adjustmentNorth_East_South_West.png
NORTH_WEST_SOUTH_EAST = 12North-west and south-east adjustmentNorth_West_South_East.png
CROSS = 13Cross (accurate selection)Cross.png
CURSOR_COPY = 14Copy.Copy.png
CURSOR_FORBID = 15ForbidForbid.png
COLOR_SUCKER = 16Color pickerColorsucker.png
HAND_GRABBING = 17Grabbing handHand_Grabbing.png
HAND_OPEN = 18Opening handHand_Open.png
HAND_POINTING = 19Hand-shaped pointerHand_Pointing.png
HELP = 20HelpHelp.png
MOVE = 21MoveMove.png
RESIZE_LEFT_RIGHT = 22Left and right resizingResize_Left_Right.png
RESIZE_UP_DOWN = 23Up and down resizingResize_Up_Down.png
SCREENSHOT_CHOOSE = 24Screenshot crosshairScreenshot_Cross.png
SCREENSHOT_CURSOR = 25ScreenshotScreenshot_Cursor.png
TEXT_CURSOR = 26Text selectionText_Cursor.png
ZOOM_IN = 27Zoom inZoom_In.png
ZOOM_OUT = 28Zoom outZoom_Out.png
MIDDLE_BTN_EAST = 29Scrolling eastMID_Btn_East.png
MIDDLE_BTN_WEST = 30Scrolling westMID_Btn_West.png
MIDDLE_BTN_SOUTH = 31Scrolling southMID_Btn_South.png
MIDDLE_BTN_NORTH = 32Scrolling northMID_Btn_North.png
MIDDLE_BTN_NORTH_SOUTH = 33Scrolling north-southMID_Btn_North_South.png
MIDDLE_BTN_NORTH_EAST = 34Scrolling north-eastMID_Btn_North_East.png
MIDDLE_BTN_NORTH_WEST = 35Scrolling north-westMID_Btn_North_West.png
MIDDLE_BTN_SOUTH_EAST = 36Scrolling south-eastMID_Btn_South_East.png
MIDDLE_BTN_SOUTH_WEST = 37Scrolling south-westMID_Btn_South_West.png
MIDDLE_BTN_NORTH_SOUTH_WEST_EAST = 38Moving as a cone in four directionsMID_Btn_North_South_West_East.png
HORIZONTAL_TEXT_CURSOR = 39Horizontal text selectionHorizontal_Text_Cursor.png
CURSOR_CROSS = 40CrossCursor_Cross.png
CURSOR_CIRCLE = 41CircleCursor_Circle.png
LOADING = 42LoadingLoading.png
RUNNING = 43Running in the backgroundRunning.png
MIDDLE_BTN_EAST_WEST = 44Scrolling east-westMID_Btn_East_West.png
RUNNING_LEFT = 45Running in the background (extension 1)Loading_Left.png
RUNNING_RIGHT = 46Running in the background (extension 2)Loading_Right.png
AECH_DEVELOPER_DEFINED_ICON = 47Custom circular pointerCustom_Cursor_Circle.png
SCREENRECORDER_CURSOR = 48Screen recordingScreenRecorder_Cursor.png
LASER_CURSOR = 49Floating This pointer can be used only when the stylus enters the air mouse mode and cannot be directly set.
In air mouse mode, you can rotate the stylus in the air to control the movement of the virtual pointer on the screen and press the button on the stylus to turn pages up or down. This mode is used PPT presentation and air gesture control.
Laser_Cursor.png
LASER_CURSOR_DOT = 50Click This pointer can be used only when the stylus enters the air mouse mode and cannot be directly set.
In air mouse mode, you can rotate the stylus in the air to control the movement of the virtual pointer on the screen and press the button on the stylus to turn pages up or down. This mode is used PPT presentation and air gesture control.
Laser_Cursor_Dot.png
LASER_CURSOR_DOT_RED = 51Laser pointer This pointer can be used only when the stylus enters the air mouse mode and cannot be directly set.
In air mouse mode, you can rotate the stylus in the air to control the movement of the virtual pointer on the screen and press the button on the stylus to turn pages up or down. This mode is used PPT presentation and air gesture control.
Laser_Cursor_Dot_Red.png
DEVELOPER_DEFINED_ICON = -100Custom 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.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-input-input-cursorinfo

openharmony 鸿蒙 js-apis-inputevent

openharmony 鸿蒙 js-apis-infraredemitter

openharmony 鸿蒙 js-apis-inputeventclient-sys

openharmony 鸿蒙 capi-input-input-keystate

openharmony 鸿蒙 js-apis-keycode

openharmony 鸿蒙 capi-input-input-axisevent

openharmony 鸿蒙 js-apis-pointer-sys

openharmony 鸿蒙 js-apis-inputmonitor-sys

openharmony 鸿蒙 capi-input-input-devicelistener

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/tiNU09D2