| Copyright | (C) 2014-2015, The University of Kansas |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Andy Gill |
| Stability | Beta |
| Portability | GHC |
| Safe Haskell | None |
| Language | Haskell2010 |
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.
- cursor :: CanvasCursor cursor => cursor -> Canvas ()
- class CanvasCursor a where
- jsCanvasCursor :: a -> Builder
- data Cursor
- = Auto
- | Default
- | None
- | ContextMenu
- | Help
- | Pointer
- | Progress
- | Wait
- | Cell
- | Crosshair
- | Text
- | VerticalText
- | Alias
- | Copy
- | Move
- | NoDrop
- | NotAllowed
- | AllScroll
- | ColResize
- | RowResize
- | NResize
- | EResize
- | SResize
- | WResize
- | NEResize
- | NWResize
- | SEResize
- | SWResize
- | EWResize
- | NSResize
- | NESWResize
- | NWSEResize
- | ZoomIn
- | ZoomOut
- | Grab
- | Grabbing
- | URL Text Cursor
- auto :: Cursor
- default_ :: Cursor
- none :: Cursor
- contextMenu :: Cursor
- help :: Cursor
- pointer :: Cursor
- progress :: Cursor
- wait :: Cursor
- cell :: Cursor
- crosshair :: Cursor
- text :: Cursor
- verticalText :: Cursor
- alias :: Cursor
- copy :: Cursor
- move :: Cursor
- noDrop :: Cursor
- notAllowed :: Cursor
- allScroll :: Cursor
- colResize :: Cursor
- rowResize :: Cursor
- nResize :: Cursor
- eResize :: Cursor
- sResize :: Cursor
- wResize :: Cursor
- neResize :: Cursor
- nwResize :: Cursor
- seResize :: Cursor
- swResize :: Cursor
- ewResize :: Cursor
- nsResize :: Cursor
- neswResize :: Cursor
- nwseResize :: Cursor
- zoomIn :: Cursor
- zoomOut :: Cursor
- grab :: Cursor
- grabbing :: Cursor
- url :: Text -> Cursor -> Cursor
Overloaded cursor
cursor :: CanvasCursor cursor => cursor -> Canvas () Source
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.
Instances
Specified the mouse cursor's appearance in a web browser.
Images by the Mozilla Developer Network are licensed under CC-BY-SA 2.5.
Constructors
| Auto | The browser determines the cursor to display based on the current context. |
| Default |
|
| None | No cursor is rendered. |
| ContextMenu |
|
| Help |
|
| Pointer |
|
| Progress |
|
| Wait |
|
| Cell |
|
| Crosshair |
|
| Text |
|
| VerticalText |
|
| Alias |
|
| Copy |
|
| Move |
|
| NoDrop |
|
| NotAllowed |
|
| AllScroll |
|
| ColResize |
|
| RowResize |
|
| NResize |
|
| EResize |
|
| SResize |
|
| WResize |
|
| NEResize |
|
| NWResize |
|
| SEResize |
|
| SWResize |
|
| EWResize |
|
| NSResize |
|
| NESWResize |
|
| NWSEResize |
|
| ZoomIn |
|
| ZoomOut |
|
| Grab |
|
| Grabbing |
|
| URL Text Cursor | An image from a URL. Must be followed by another |
Shorthand for Default, with an underscore to distinguish it from the
Haskell keyword default.
Shorthand for ContextMenu.
Shorthand for VerticalText.
Shorthand for NotAllowed.
Shorthand for NESWResize.
Shorthand for NWSEResize.

































