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 |
A #GdkColor is used to describe a color, similar to the XColor struct used in the X11 drawing API.
- newtype Color = Color (ForeignPtr Color)
- newZeroColor :: MonadIO m => m Color
- noColor :: Maybe Color
- data ColorCopyMethodInfo
- colorCopy :: MonadIO m => Color -> m Color
- data ColorEqualMethodInfo
- colorEqual :: MonadIO m => Color -> Color -> m Bool
- data ColorFreeMethodInfo
- colorFree :: MonadIO m => Color -> m ()
- data ColorHashMethodInfo
- colorHash :: MonadIO m => Color -> m Word32
- colorParse :: MonadIO m => Text -> m (Bool, Color)
- data ColorToStringMethodInfo
- colorToString :: MonadIO m => Color -> m Text
- colorReadBlue :: Color -> IO Word16
- colorReadGreen :: Color -> IO Word16
- colorReadPixel :: Color -> IO Word32
- colorReadRed :: Color -> IO Word16
Exported types
BoxedObject Color Source | |
((~) * info (ResolveColorMethod t Color), MethodInfo * info Color p) => IsLabel t (Color -> p) Source | |
((~) * info (ResolveColorMethod t Color), MethodInfo * info Color p) => IsLabelProxy t (Color -> p) Source | |
((~) (TYPE Lifted) signature (m Text), MonadIO m) => MethodInfo (TYPE Lifted) ColorToStringMethodInfo Color signature Source | |
((~) (TYPE Lifted) signature (m Word32), MonadIO m) => MethodInfo (TYPE Lifted) ColorHashMethodInfo Color signature Source | |
((~) (TYPE Lifted) signature (m ()), MonadIO m) => MethodInfo (TYPE Lifted) ColorFreeMethodInfo Color signature Source | |
((~) (TYPE Lifted) signature (Color -> m Bool), MonadIO m) => MethodInfo (TYPE Lifted) ColorEqualMethodInfo Color signature Source | |
((~) (TYPE Lifted) signature (m Color), MonadIO m) => MethodInfo (TYPE Lifted) ColorCopyMethodInfo Color signature Source | |
newZeroColor :: MonadIO m => m Color Source
Construct a Color
struct initialized to zero.
Methods
colorCopy
data ColorCopyMethodInfo Source
((~) (TYPE Lifted) signature (m Color), MonadIO m) => MethodInfo (TYPE Lifted) ColorCopyMethodInfo Color signature Source | |
colorEqual
colorEqual :: MonadIO m => Color -> Color -> m Bool Source
Deprecated: (Since version 3.14)Use #GdkRGBA
colorFree
data ColorFreeMethodInfo Source
((~) (TYPE Lifted) signature (m ()), MonadIO m) => MethodInfo (TYPE Lifted) ColorFreeMethodInfo Color signature Source | |
colorHash
data ColorHashMethodInfo Source
((~) (TYPE Lifted) signature (m Word32), MonadIO m) => MethodInfo (TYPE Lifted) ColorHashMethodInfo Color signature Source | |
colorParse
colorParse :: MonadIO m => Text -> m (Bool, Color) Source
Deprecated: (Since version 3.14)Use #GdkRGBA
colorToString
data ColorToStringMethodInfo Source
((~) (TYPE Lifted) signature (m Text), MonadIO m) => MethodInfo (TYPE Lifted) ColorToStringMethodInfo Color signature Source | |
colorToString :: MonadIO m => Color -> m Text Source
Deprecated: (Since version 3.14)Use #GdkRGBA
Properties
Blue
colorReadBlue :: Color -> IO Word16 Source
Green
colorReadGreen :: Color -> IO Word16 Source
Pixel
colorReadPixel :: Color -> IO Word32 Source
Red
colorReadRed :: Color -> IO Word16 Source