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 |
The AttrColor
structure is used to represent attributes that
are colors.
Synopsis
- newtype AttrColor = AttrColor (ManagedPtr AttrColor)
- newZeroAttrColor :: MonadIO m => m AttrColor
- noAttrColor :: Maybe AttrColor
- getAttrColorAttr :: MonadIO m => AttrColor -> m Attribute
- getAttrColorColor :: MonadIO m => AttrColor -> m Color
Exported types
Memory-managed wrapper type.
Instances
WrappedPtr AttrColor Source # | |
Defined in GI.Pango.Structs.AttrColor | |
tag ~ AttrSet => Constructible AttrColor tag Source # | |
Defined in GI.Pango.Structs.AttrColor |
newZeroAttrColor :: MonadIO m => m AttrColor Source #
Construct a AttrColor
struct initialized to zero.
Properties
attr
the common portion of the attribute
getAttrColorAttr :: MonadIO m => AttrColor -> m Attribute Source #
Get the value of the “attr
” field.
When overloading is enabled, this is equivalent to
get
attrColor #attr
color
the Color
which is the value of the attribute
getAttrColorColor :: MonadIO m => AttrColor -> m Color Source #
Get the value of the “color
” field.
When overloading is enabled, this is equivalent to
get
attrColor #color