gi-gtk-0.3.18.14: Gtk 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.Gtk.Structs.SymbolicColor

Contents

Description

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+.

Synopsis

Exported types

newtype SymbolicColor Source

Instances

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

symbolicColorRef :: MonadIO m => SymbolicColor -> m SymbolicColor Source

Deprecated: (Since version 3.8)#GtkSymbolicColor is deprecated.

symbolicColorResolve

symbolicColorResolve :: (MonadIO m, StylePropertiesK a) => SymbolicColor -> Maybe a -> m (Bool, RGBA) Source

Deprecated: (Since version 3.8)#GtkSymbolicColor is deprecated.

symbolicColorToString

symbolicColorToString :: MonadIO m => SymbolicColor -> m Text Source

Deprecated: (Since version 3.8)#GtkSymbolicColor is deprecated.

symbolicColorUnref

data SymbolicColorUnrefMethodInfo Source

Instances

((~) * signature (m ()), MonadIO m) => MethodInfo * SymbolicColorUnrefMethodInfo SymbolicColor signature 

symbolicColorUnref :: MonadIO m => SymbolicColor -> m () Source

Deprecated: (Since version 3.8)#GtkSymbolicColor is deprecated.