gi-gdk-0.3.18.13: Gdk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Structs.Color

Contents

Description

A #GdkColor is used to describe a color, similar to the XColor struct used in the X11 drawing API.

Synopsis

Exported types

newtype Color Source

Constructors

Color (ForeignPtr Color) 

Instances

BoxedObject Color Source 

Methods

boxedType :: Color -> IO GType

((~) * info (ResolveColorMethod t Color), MethodInfo * info Color p) => IsLabel t (Color -> p) Source 

Methods

fromLabel :: Proxy# Symbol t -> Color -> p

((~) * info (ResolveColorMethod t Color), MethodInfo * info Color p) => IsLabelProxy t (Color -> p) Source 

Methods

fromLabelProxy :: Proxy Symbol t -> Color -> p

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

colorCopy :: MonadIO m => Color -> m Color Source

Deprecated: (Since version 3.14)Use #GdkRGBA

colorEqual

colorEqual :: MonadIO m => Color -> Color -> m Bool Source

Deprecated: (Since version 3.14)Use #GdkRGBA

colorFree

data ColorFreeMethodInfo Source

Instances

((~) (TYPE Lifted) signature (m ()), MonadIO m) => MethodInfo (TYPE Lifted) ColorFreeMethodInfo Color signature Source 

colorFree :: MonadIO m => Color -> m () Source

Deprecated: (Since version 3.14)Use #GdkRGBA

colorHash

colorHash :: MonadIO m => Color -> m Word32 Source

Deprecated: (Since version 3.14)Use #GdkRGBA

colorParse

colorParse :: MonadIO m => Text -> m (Bool, Color) Source

Deprecated: (Since version 3.14)Use #GdkRGBA

colorToString

colorToString :: MonadIO m => Color -> m Text Source

Deprecated: (Since version 3.14)Use #GdkRGBA

Properties

Blue

Green

Pixel

Red