Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype Cursor = Cursor (ForeignPtr Cursor)
- class GObject o => CursorK o
- toCursor :: CursorK o => o -> IO Cursor
- noCursor :: Maybe Cursor
- cursorGetCursorType :: (MonadIO m, CursorK a) => a -> m CursorType
- cursorGetDisplay :: (MonadIO m, CursorK a) => a -> m Display
- cursorGetImage :: (MonadIO m, CursorK a) => a -> m Pixbuf
- cursorGetSurface :: (MonadIO m, CursorK a) => a -> m (Surface, Double, Double)
- cursorNew :: MonadIO m => CursorType -> m Cursor
- cursorNewForDisplay :: (MonadIO m, DisplayK a) => a -> CursorType -> m Cursor
- cursorNewFromName :: (MonadIO m, DisplayK a) => a -> Text -> m Cursor
- cursorNewFromPixbuf :: (MonadIO m, DisplayK a, PixbufK b) => a -> b -> Int32 -> Int32 -> m Cursor
- cursorNewFromSurface :: (MonadIO m, DisplayK a) => a -> Surface -> Double -> Double -> m Cursor
- cursorRef :: (MonadIO m, CursorK a) => a -> m Cursor
- cursorUnref :: (MonadIO m, CursorK a) => a -> m ()
- data CursorCursorTypePropertyInfo
- constructCursorCursorType :: CursorType -> IO ([Char], GValue)
- getCursorCursorType :: (MonadIO m, CursorK o) => o -> m CursorType
- data CursorDisplayPropertyInfo
- constructCursorDisplay :: DisplayK a => a -> IO ([Char], GValue)
- getCursorDisplay :: (MonadIO m, CursorK o) => o -> m Display
Exported types
GObject Cursor | |
type ParentTypes Cursor | |
type AttributeList Cursor | |
type SignalList Cursor |
Methods
cursorGetCursorType
cursorGetCursorType :: (MonadIO m, CursorK a) => a -> m CursorType Source
cursorGetDisplay
cursorGetDisplay :: (MonadIO m, CursorK a) => a -> m Display Source
cursorGetImage
cursorGetImage :: (MonadIO m, CursorK a) => a -> m Pixbuf Source
cursorGetSurface
cursorNew
cursorNew :: MonadIO m => CursorType -> m Cursor Source
Deprecated: (Since version 3.16)Use gdk_cursor_new_for_display() instead.
cursorNewForDisplay
cursorNewForDisplay :: (MonadIO m, DisplayK a) => a -> CursorType -> m Cursor Source
cursorNewFromName
cursorNewFromPixbuf
cursorNewFromPixbuf :: (MonadIO m, DisplayK a, PixbufK b) => a -> b -> Int32 -> Int32 -> m Cursor Source
cursorNewFromSurface
cursorNewFromSurface :: (MonadIO m, DisplayK a) => a -> Surface -> Double -> Double -> m Cursor Source
cursorRef
cursorRef :: (MonadIO m, CursorK a) => a -> m Cursor Source
Deprecated: (Since version 3.0)Use g_object_ref() instead
cursorUnref
cursorUnref :: (MonadIO m, CursorK a) => a -> m () Source
Deprecated: (Since version 3.0)Use g_object_unref() instead
Properties
CursorType
data CursorCursorTypePropertyInfo Source
AttrInfo CursorCursorTypePropertyInfo | |
type AttrLabel CursorCursorTypePropertyInfo = "Cursor::cursor-type" | |
type AttrGetType CursorCursorTypePropertyInfo = CursorType | |
type AttrBaseTypeConstraint CursorCursorTypePropertyInfo = CursorK | |
type AttrSetTypeConstraint CursorCursorTypePropertyInfo = * ~ CursorType | |
type AttrAllowedOps CursorCursorTypePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
constructCursorCursorType :: CursorType -> IO ([Char], GValue) Source
getCursorCursorType :: (MonadIO m, CursorK o) => o -> m CursorType Source
Display
data CursorDisplayPropertyInfo Source
AttrInfo CursorDisplayPropertyInfo | |
type AttrLabel CursorDisplayPropertyInfo = "Cursor::display" | |
type AttrGetType CursorDisplayPropertyInfo = Display | |
type AttrBaseTypeConstraint CursorDisplayPropertyInfo = CursorK | |
type AttrSetTypeConstraint CursorDisplayPropertyInfo = DisplayK | |
type AttrAllowedOps CursorDisplayPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
getCursorDisplay :: (MonadIO m, CursorK o) => o -> m Display Source