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 |
GtkSymbolicColor is a boxed type that represents a symbolic color. It is the result of parsing a [color expression][gtkcssprovider-symbolic-colors]. To obtain the color represented by a GtkSymbolicColor, it has to be resolved with gtk_symbolic_color_resolve(), which replaces all symbolic color references by the colors they refer to (in a given context) and evaluates mix, shade and other expressions, resulting in a #GdkRGBA value.
It is not normally necessary to deal directly with #GtkSymbolicColors, since they are mostly used behind the scenes by #GtkStyleContext and #GtkCssProvider.
#GtkSymbolicColor is deprecated. Symbolic colors are considered an implementation detail of GTK+.
- newtype SymbolicColor = SymbolicColor (ForeignPtr SymbolicColor)
- noSymbolicColor :: Maybe SymbolicColor
- symbolicColorNewAlpha :: MonadIO m => SymbolicColor -> Double -> m SymbolicColor
- symbolicColorNewLiteral :: MonadIO m => RGBA -> m SymbolicColor
- symbolicColorNewMix :: MonadIO m => SymbolicColor -> SymbolicColor -> Double -> m SymbolicColor
- symbolicColorNewName :: MonadIO m => Text -> m SymbolicColor
- symbolicColorNewShade :: MonadIO m => SymbolicColor -> Double -> m SymbolicColor
- symbolicColorNewWin32 :: MonadIO m => Text -> Int32 -> m SymbolicColor
- data SymbolicColorRefMethodInfo
- symbolicColorRef :: MonadIO m => SymbolicColor -> m SymbolicColor
- data SymbolicColorResolveMethodInfo
- symbolicColorResolve :: (MonadIO m, StylePropertiesK a) => SymbolicColor -> Maybe a -> m (Bool, RGBA)
- data SymbolicColorToStringMethodInfo
- symbolicColorToString :: MonadIO m => SymbolicColor -> m Text
- data SymbolicColorUnrefMethodInfo
- symbolicColorUnref :: MonadIO m => SymbolicColor -> m ()
Exported types
newtype SymbolicColor Source
BoxedObject SymbolicColor | |
((~) * signature (m ()), MonadIO m) => MethodInfo * SymbolicColorUnrefMethodInfo SymbolicColor signature | |
((~) * signature (m Text), MonadIO m) => MethodInfo * SymbolicColorToStringMethodInfo SymbolicColor signature | |
((~) * signature (Maybe a -> m (Bool, RGBA)), MonadIO m, StylePropertiesK a) => MethodInfo * SymbolicColorResolveMethodInfo SymbolicColor signature | |
((~) * signature (m SymbolicColor), MonadIO m) => MethodInfo * SymbolicColorRefMethodInfo SymbolicColor signature | |
((~) * info (ResolveSymbolicColorMethod t SymbolicColor), MethodInfo * info SymbolicColor p) => IsLabelProxy t (SymbolicColor -> p) | |
type AttributeList SymbolicColor |
Methods
symbolicColorNewAlpha
symbolicColorNewAlpha :: MonadIO m => SymbolicColor -> Double -> m SymbolicColor Source
Deprecated: (Since version 3.8)#GtkSymbolicColor is deprecated.
symbolicColorNewLiteral
symbolicColorNewLiteral :: MonadIO m => RGBA -> m SymbolicColor Source
Deprecated: (Since version 3.8)#GtkSymbolicColor is deprecated.
symbolicColorNewMix
symbolicColorNewMix :: MonadIO m => SymbolicColor -> SymbolicColor -> Double -> m SymbolicColor Source
Deprecated: (Since version 3.8)#GtkSymbolicColor is deprecated.
symbolicColorNewName
symbolicColorNewName :: MonadIO m => Text -> m SymbolicColor Source
Deprecated: (Since version 3.8)#GtkSymbolicColor is deprecated.
symbolicColorNewShade
symbolicColorNewShade :: MonadIO m => SymbolicColor -> Double -> m SymbolicColor Source
Deprecated: (Since version 3.8)#GtkSymbolicColor is deprecated.
symbolicColorNewWin32
symbolicColorNewWin32 :: MonadIO m => Text -> Int32 -> m SymbolicColor Source
Deprecated: (Since version 3.8)#GtkSymbolicColor is deprecated.
symbolicColorRef
data SymbolicColorRefMethodInfo Source
((~) * signature (m SymbolicColor), MonadIO m) => MethodInfo * SymbolicColorRefMethodInfo SymbolicColor signature |
symbolicColorRef :: MonadIO m => SymbolicColor -> m SymbolicColor Source
Deprecated: (Since version 3.8)#GtkSymbolicColor is deprecated.
symbolicColorResolve
data SymbolicColorResolveMethodInfo Source
((~) * signature (Maybe a -> m (Bool, RGBA)), MonadIO m, StylePropertiesK a) => MethodInfo * SymbolicColorResolveMethodInfo SymbolicColor signature |
symbolicColorResolve :: (MonadIO m, StylePropertiesK a) => SymbolicColor -> Maybe a -> m (Bool, RGBA) Source
Deprecated: (Since version 3.8)#GtkSymbolicColor is deprecated.
symbolicColorToString
data SymbolicColorToStringMethodInfo Source
((~) * signature (m Text), MonadIO m) => MethodInfo * SymbolicColorToStringMethodInfo SymbolicColor signature |
symbolicColorToString :: MonadIO m => SymbolicColor -> m Text Source
Deprecated: (Since version 3.8)#GtkSymbolicColor is deprecated.
symbolicColorUnref
data SymbolicColorUnrefMethodInfo Source
((~) * signature (m ()), MonadIO m) => MethodInfo * SymbolicColorUnrefMethodInfo SymbolicColor signature |
symbolicColorUnref :: MonadIO m => SymbolicColor -> m () Source
Deprecated: (Since version 3.8)#GtkSymbolicColor is deprecated.