Gtk2HsContentsIndex
Graphics.UI.Gtk.Gdk.Cursor
Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Description
Cursors | Standard and pixmap cursors.
Synopsis
newtype Cursor = Cursor (ForeignPtr Cursor)
cursorNewFromPixmap :: Pixmap -> Pixmap -> Color -> Color -> Int -> Int -> IO Cursor
Documentation
newtype Cursor
Constructors
Cursor (ForeignPtr Cursor)
cursorNewFromPixmap
:: Pixmapsource - the pixmap specifying the cursor.
-> Pixmapmask - the pixmap specifying the mask, which must be the same size as source.
-> Colorfg - the foreground color, used for the bits in the source which are 1. The color does not have to be allocated first.
-> Colorbg - the background color, used for the bits in the source which are 0. The color does not have to be allocated first.
-> Intx - the horizontal offset of the 'hotspot' of the cursor.
-> Inty - the vertical offset of the 'hotspot' of the cursor.
-> IO Cursor
Creates a new cursor from a given pixmap and mask. Both the pixmap and mask must have a depth of 1 (i.e. each pixel has only 2 values - on or off). The standard cursor size is 16 by 16 pixels.
Produced by Haddock version 0.8