Module Mouse.Cursor

Mouse cursors.

To be used with El.Style.cursor.

Mouse cursors

type t = Jstr.t

The type for specifying cusrors.

val url : ?⁠x:int -> ?⁠y:int -> string -> t

url ~x ~y u is an image cursor using URL u for the image with x,y identifiying the position of the hotspot in the image relative to the top-left corner (defaults to 0,0).

General purpose cursors

val auto : t

auto

val default : t

default

val none : t

none

val context_menu : t

context-menu

val help : t

help

val pointer : t

pointer

val progress : t

progress

val wait : t

wait

Selection cursors

val cell : t

cell

val crosshair : t

crosshair

val text : t

text

val vertical_text : t

vertical-text

Drag and drop cursors

val alias : t

alias

val copy : t

copy

val move : t

move

val no_drop : t

no-drop

val not_allowed : t

not-allowed

val grab : t

grab

val grabbing : t

grabbing

Resizing and scrolling cursors

val e_resize : t

e-resize

val n_resize : t

n-resize

val ne_resize : t

ne-resize

val nw_resize : t

nw-resize

val s_resize : t

s-resize

val se_resize : t

se-resize

val sw_resize : t

sw-resize

val w_resize : t

w-resize

val ew_resize : t

ew-resize

val ns_resize : t

ns-resize

val nesw_resize : t

nesw-resize

val nwse_resize : t

nwse-resize

val col_resize : t

col-resize

val row_resize : t

row-resize

val all_scroll : t

all-scroll

Zooming cursors

val zoom_in : t

zoom-in

val zoom_out : t

zoom-out