Mouse Cursor

Cursor Styles

In originOS scripting, the cursor commands allow you to control the appearance and behavior of the cursor within the graphical user interface. The cursor can represent different states or styles, enhancing the user experience. Here are the available cursor commands:

Basic Cursor Styles

Name
Code
Use
Typical Appearance

Default

cursor "default"

Resets the cursor to its standard appearance.

An arrow

Pointer

cursor "pointer"

Ideal for UI elements like buttons or links.

A hand pointing

Move

cursor "move"

Useful when dragging elements within the interface.

A cross with the ends being arrows

Grah

cursor "grab"

Enhances the visual feedback during drag-and-drop interactions.

A hand about to grab something

Grabbing

cursor "grabbing"

Provides real-time feedback during dragging operations.

A grabbing hand

Text

cursor "text"

Indicates the cursor is ready for text input.

A capital I with 2 lines at the top and bottom

Vertical-Text

cursor "vertical-text"

Specifies the cursor style for vertical text entry.

Vertical version of Text

Wait

cursor "wait"

Provides feedback during loading or processing tasks.

An hourglass or spinning wheel

Progress

cursor "progress"

Conveys a sense of progress or loading.

A wait icon to the bottom right of the cursor

Extended Cursor Styles

Name
Code
Use
Typical Appearance

Help

cursor "help"

Suggests that additional information is accessible.

A question mark

Context Menu

cursor "context-menu"

Provides visual feedback for right-click or context menu interactions.

Shows a context menu is available

Zoom in

cursor "zoom-in"

Used for interfaces where zooming in is a supported action.

A magnifying glass with a +

Zoom out

cursor "zoom-in"

Used for interfaces where zooming out is a supported actio

A magnifying glass with a -

Crosshair

cursor "crosshair"

Provides a visual reference for precise actions.

A crosshair

Cell

cursor "cell"

Used in spreadsheet-like interfaces for cell selection.

Similar to a crosshair

Not Allowed

cursor "not-allowed"

Provides a visual cue that a particular action is restricted.

A red circle wih a line through it

Copy

cursor "copy"

Used in interfaces where copying content is a supported action.

Shows it can copy

Alias

cursor "alias"

Provides visual feedback for alias-related interactions.

Shows its an alias

No Drop

cursor "no-drop"

Visualizes that dropping an object in the current location is prohibited.

A grabbing hand with a not allowed icon

All Scroll

cursor "all-scroll"

Used in interfaces where vertical and horizontal scrolling is supported.

Similar to the move cursor

Resizing

cursor "row-resize"

Lock

  • Locks the cursor, preventing it from moving freely across the screen.

  • Use Case: Useful when you want to restrict cursor movement during specific UI interactions or gameplay elements.

cursor "lock"

Unlock

  • Unlocks the cursor, allowing it to move freely again.

  • Use Case: Used to release the cursor from a locked state.

cursor "unlock"

Hide

  • Hides the cursor from view.

  • Use Case: Often used during specific UI interactions where the cursor's visibility is not required.

cursor "hide"

Now you have a comprehensive set of cursor commands to enhance the visual feedback and user interactions in your originOS applications. Choose the appropriate cursor styles and commands based on the specific context and requirements of your interface or game.

Last updated

Was this helpful?