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 () Source

Change the canvas cursor to the specified URL or keyword.

Examples

cursor $ url "image.png" default_
cursor crosshair

class CanvasCursor a where Source

A data type that can represent a browser cursor.

Methods

jsCanvasCursor :: a -> Builder Source

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

data Cursor Source

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 Source

Shorthand for Auto.

default_ :: Cursor Source

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

none :: Cursor Source

Shorthand for None.

help :: Cursor Source

Shorthand for Help.

pointer :: Cursor Source

Shorthand for Pointer.

progress :: Cursor Source

Shorthand for Progress.

wait :: Cursor Source

Shorthand for Wait.

cell :: Cursor Source

Shorthand for Cell.

crosshair :: Cursor Source

Shorthand for Crosshair.

text :: Cursor Source

Shorthand for Text.

alias :: Cursor Source

Shorthand for Alias.

copy :: Cursor Source

Shorthand for Copy.

move :: Cursor Source

Shorthand for Move.

noDrop :: Cursor Source

Shorthand for NoDrop.

allScroll :: Cursor Source

Shorthand for AllScroll.

colResize :: Cursor Source

Shorthand for ColResize.

rowResize :: Cursor Source

Shorthand for RowResize.

nResize :: Cursor Source

Shorthand for NResize.

eResize :: Cursor Source

Shorthand for EResize.

sResize :: Cursor Source

Shorthand for SResize.

wResize :: Cursor Source

Shorthand for WResize.

neResize :: Cursor Source

Shorthand for NEResize.

nwResize :: Cursor Source

Shorthand for NWResize.

seResize :: Cursor Source

Shorthand for SEResize.

swResize :: Cursor Source

Shorthand for SWResize.

ewResize :: Cursor Source

Shorthand for EWResize.

nsResize :: Cursor Source

Shorthand for NSResize.

zoomIn :: Cursor Source

Shorthand for ZoomIn.

zoomOut :: Cursor Source

Shorthand for ZoomOut.

grab :: Cursor Source

Shorthand for Grab.

grabbing :: Cursor Source

Shorthand for Grabbing.

url :: Text -> Cursor -> Cursor Source

Shorthand for URL.