Module Mouse.CursorSource

Mouse cursors.

To be used with Brr.El.Style.cursor.

Mouse cursors

Sourcetype t = Jstr.t

The type for specifying cusrors.

Sourceval url : ?x:int -> ?y:int -> Jstr.t -> 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

Sourceval auto : t
Sourceval default : t
Sourceval none : t

Selection cursors

Sourceval cell : t
Sourceval crosshair : t
Sourceval text : t
Sourceval vertical_text : t

Drag and drop cursors

Sourceval alias : t
Sourceval copy : t
Sourceval move : t
Sourceval no_drop : t
Sourceval not_allowed : t
Sourceval grab : t
Sourceval grabbing : t

Resizing and scrolling cursors

Sourceval e_resize : t
Sourceval n_resize : t
Sourceval ne_resize : t
Sourceval nw_resize : t
Sourceval s_resize : t
Sourceval se_resize : t
Sourceval sw_resize : t
Sourceval w_resize : t
Sourceval ew_resize : t
Sourceval ns_resize : t
Sourceval nesw_resize : t
Sourceval nwse_resize : t
Sourceval col_resize : t
Sourceval row_resize : t
Sourceval all_scroll : t

Zooming cursors

Sourceval zoom_in : t
Sourceval zoom_out : t