blank-canvas-0.6: HTML5 Canvas Graphics Library

Copyright(C) 2014-2015 The University of Kansas
LicenseBSD-style (see the file LICENSE)
MaintainerAndy Gill
StabilityBeta
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Graphics.Blank.Cursor

Contents

Description

This module exposes an overloaded version of the cursor function that can accept a Cursor ADT argument. This may be of interest if you desire stronger type safety than Text-based cursors provide.

Note that this module's cursor function conflicts with cursor from Graphics.Blank. Make sure to hide cursor from Graphics.Blank if you use cursor from this module.

Synopsis

Overloaded cursor

cursor :: CanvasCursor cursor => cursor -> Canvas () #

Change the canvas cursor to the specified URL or keyword.

Examples

cursor $ url "image.png" default_
cursor crosshair

class CanvasCursor a where #

A data type that can represent a browser cursor.

Minimal complete definition

jsCanvasCursor

Methods

jsCanvasCursor :: a -> Builder #

Convert a value into a JavaScript string representing a cursor value.

data Cursor #

Specified the mouse cursor's appearance in a web browser.

Images by the Mozilla Developer Network are licensed under CC-BY-SA 2.5.

auto :: Cursor #

Shorthand for Auto.

default_ :: Cursor #

Shorthand for Default, with an underscore to distinguish it from the Haskell keyword default.

none :: Cursor #

Shorthand for None.

contextMenu :: Cursor #

Shorthand for ContextMenu.

help :: Cursor #

Shorthand for Help.

pointer :: Cursor #

Shorthand for Pointer.

progress :: Cursor #

Shorthand for Progress.

wait :: Cursor #

Shorthand for Wait.

cell :: Cursor #

Shorthand for Cell.

crosshair :: Cursor #

Shorthand for Crosshair.

text :: Cursor #

Shorthand for Text.

alias :: Cursor #

Shorthand for Alias.

copy :: Cursor #

Shorthand for Copy.

move :: Cursor #

Shorthand for Move.

noDrop :: Cursor #

Shorthand for NoDrop.

notAllowed :: Cursor #

Shorthand for NotAllowed.

allScroll :: Cursor #

Shorthand for AllScroll.

colResize :: Cursor #

Shorthand for ColResize.

rowResize :: Cursor #

Shorthand for RowResize.

nResize :: Cursor #

Shorthand for NResize.

eResize :: Cursor #

Shorthand for EResize.

sResize :: Cursor #

Shorthand for SResize.

wResize :: Cursor #

Shorthand for WResize.

neResize :: Cursor #

Shorthand for NEResize.

nwResize :: Cursor #

Shorthand for NWResize.

seResize :: Cursor #

Shorthand for SEResize.

swResize :: Cursor #

Shorthand for SWResize.

ewResize :: Cursor #

Shorthand for EWResize.

nsResize :: Cursor #

Shorthand for NSResize.

neswResize :: Cursor #

Shorthand for NESWResize.

nwseResize :: Cursor #

Shorthand for NWSEResize.

zoomIn :: Cursor #

Shorthand for ZoomIn.

zoomOut :: Cursor #

Shorthand for ZoomOut.

grab :: Cursor #

Shorthand for Grab.

grabbing :: Cursor #

Shorthand for Grabbing.

url :: Text -> Cursor -> Cursor #

Shorthand for URL.