gi-gdk-3.0.10: 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.RGBA

Contents

Description

A #GdkRGBA is used to represent a (possibly translucent) color, in a way that is compatible with cairos notion of color.

Synopsis

Exported types

newtype RGBA Source #

Constructors

RGBA (ManagedPtr RGBA) 

Instances

BoxedObject RGBA Source # 

Methods

boxedType :: RGBA -> IO GType

(~) AttrOpTag tag AttrSet => Constructible RGBA tag Source # 

Methods

new :: MonadIO m => (ManagedPtr RGBA -> RGBA) -> [AttrOp RGBA tag] -> m RGBA

((~) * info (ResolveRGBAMethod t RGBA), MethodInfo * info RGBA p) => IsLabel t (RGBA -> p) Source # 

Methods

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

((~) * info (ResolveRGBAMethod t RGBA), MethodInfo * info RGBA p) => IsLabelProxy t (RGBA -> p) Source # 

Methods

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

HasAttributeList * RGBA Source # 
((~) * signature (m Text), MonadIO m) => MethodInfo * RGBAToStringMethodInfo RGBA signature Source # 

Methods

overloadedMethod :: MethodProxy RGBAToStringMethodInfo RGBA -> signature -> s

((~) * signature (Text -> m Bool), MonadIO m) => MethodInfo * RGBAParseMethodInfo RGBA signature Source # 

Methods

overloadedMethod :: MethodProxy RGBAParseMethodInfo RGBA -> signature -> s

((~) * signature (m Word32), MonadIO m) => MethodInfo * RGBAHashMethodInfo RGBA signature Source # 

Methods

overloadedMethod :: MethodProxy RGBAHashMethodInfo RGBA -> signature -> s

((~) * signature (m ()), MonadIO m) => MethodInfo * RGBAFreeMethodInfo RGBA signature Source # 

Methods

overloadedMethod :: MethodProxy RGBAFreeMethodInfo RGBA -> signature -> s

((~) * signature (RGBA -> m Bool), MonadIO m) => MethodInfo * RGBAEqualMethodInfo RGBA signature Source # 

Methods

overloadedMethod :: MethodProxy RGBAEqualMethodInfo RGBA -> signature -> s

((~) * signature (m RGBA), MonadIO m) => MethodInfo * RGBACopyMethodInfo RGBA signature Source # 

Methods

overloadedMethod :: MethodProxy RGBACopyMethodInfo RGBA -> signature -> s

type AttributeList RGBA Source # 
type AttributeList RGBA

newZeroRGBA :: MonadIO m => m RGBA Source #

Construct a RGBA struct initialized to zero.

Methods

copy

data RGBACopyMethodInfo Source #

Instances

((~) * signature (m RGBA), MonadIO m) => MethodInfo * RGBACopyMethodInfo RGBA signature Source # 

Methods

overloadedMethod :: MethodProxy RGBACopyMethodInfo RGBA -> signature -> s

equal

data RGBAEqualMethodInfo Source #

Instances

((~) * signature (RGBA -> m Bool), MonadIO m) => MethodInfo * RGBAEqualMethodInfo RGBA signature Source # 

Methods

overloadedMethod :: MethodProxy RGBAEqualMethodInfo RGBA -> signature -> s

free

data RGBAFreeMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m) => MethodInfo * RGBAFreeMethodInfo RGBA signature Source # 

Methods

overloadedMethod :: MethodProxy RGBAFreeMethodInfo RGBA -> signature -> s

rGBAFree :: MonadIO m => RGBA -> m () Source #

hash

data RGBAHashMethodInfo Source #

Instances

((~) * signature (m Word32), MonadIO m) => MethodInfo * RGBAHashMethodInfo RGBA signature Source # 

Methods

overloadedMethod :: MethodProxy RGBAHashMethodInfo RGBA -> signature -> s

parse

data RGBAParseMethodInfo Source #

Instances

((~) * signature (Text -> m Bool), MonadIO m) => MethodInfo * RGBAParseMethodInfo RGBA signature Source # 

Methods

overloadedMethod :: MethodProxy RGBAParseMethodInfo RGBA -> signature -> s

rGBAParse :: MonadIO m => RGBA -> Text -> m Bool Source #

toString

data RGBAToStringMethodInfo Source #

Instances

((~) * signature (m Text), MonadIO m) => MethodInfo * RGBAToStringMethodInfo RGBA signature Source # 

Methods

overloadedMethod :: MethodProxy RGBAToStringMethodInfo RGBA -> signature -> s

rGBAToString :: MonadIO m => RGBA -> m Text Source #

Properties

alpha

rGBA_alpha :: AttrLabelProxy "alpha" Source #

setRGBAAlpha :: MonadIO m => RGBA -> Double -> m () Source #

blue

rGBA_blue :: AttrLabelProxy "blue" Source #

setRGBABlue :: MonadIO m => RGBA -> Double -> m () Source #

green

rGBA_green :: AttrLabelProxy "green" Source #

setRGBAGreen :: MonadIO m => RGBA -> Double -> m () Source #

red

rGBA_red :: AttrLabelProxy "red" Source #

setRGBARed :: MonadIO m => RGBA -> Double -> m () Source #