gi-gtk-3.0.9: 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.Gradient

Contents

Description

GtkGradient is a boxed type that represents a gradient. It is the result of parsing a [gradient expression][gtkcssprovider-gradients]. To obtain the gradient represented by a GtkGradient, it has to be resolved with gtk_gradient_resolve(), which replaces all symbolic color references by the colors they refer to (in a given context) and constructs a #cairo_pattern_t value.

It is not normally necessary to deal directly with #GtkGradients, since they are mostly used behind the scenes by #GtkStyleContext and #GtkCssProvider.

#GtkGradient is deprecated. It was used internally by GTK’s CSS engine to represent gradients. As its handling is not conforming to modern web standards, it is not used anymore. If you want to use gradients in your own code, please use Cairo directly.

Synopsis

Exported types

newtype Gradient Source #

Constructors

Gradient (ManagedPtr Gradient) 

Instances

BoxedObject Gradient Source # 

Methods

boxedType :: Gradient -> IO GType

((~) * info (ResolveGradientMethod t Gradient), MethodInfo * info Gradient p) => IsLabel t (Gradient -> p) Source # 

Methods

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

((~) * info (ResolveGradientMethod t Gradient), MethodInfo * info Gradient p) => IsLabelProxy t (Gradient -> p) Source # 

Methods

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

HasAttributeList * Gradient Source # 
((~) * signature (m ()), MonadIO m) => MethodInfo * GradientUnrefMethodInfo Gradient signature Source # 

Methods

overloadedMethod :: MethodProxy GradientUnrefMethodInfo Gradient -> signature -> s

((~) * signature (m Text), MonadIO m) => MethodInfo * GradientToStringMethodInfo Gradient signature Source # 

Methods

overloadedMethod :: MethodProxy GradientToStringMethodInfo Gradient -> signature -> s

((~) * signature (a -> m Pattern), MonadIO m, IsStyleContext a) => MethodInfo * GradientResolveForContextMethodInfo Gradient signature Source # 

Methods

overloadedMethod :: MethodProxy GradientResolveForContextMethodInfo Gradient -> signature -> s

((~) * signature (a -> m (Bool, Pattern)), MonadIO m, IsStyleProperties a) => MethodInfo * GradientResolveMethodInfo Gradient signature Source # 

Methods

overloadedMethod :: MethodProxy GradientResolveMethodInfo Gradient -> signature -> s

((~) * signature (m Gradient), MonadIO m) => MethodInfo * GradientRefMethodInfo Gradient signature Source # 

Methods

overloadedMethod :: MethodProxy GradientRefMethodInfo Gradient -> signature -> s

((~) * signature (Double -> SymbolicColor -> m ()), MonadIO m) => MethodInfo * GradientAddColorStopMethodInfo Gradient signature Source # 

Methods

overloadedMethod :: MethodProxy GradientAddColorStopMethodInfo Gradient -> signature -> s

type AttributeList Gradient Source # 
type AttributeList Gradient

Methods

addColorStop

data GradientAddColorStopMethodInfo Source #

Instances

((~) * signature (Double -> SymbolicColor -> m ()), MonadIO m) => MethodInfo * GradientAddColorStopMethodInfo Gradient signature Source # 

Methods

overloadedMethod :: MethodProxy GradientAddColorStopMethodInfo Gradient -> signature -> s

gradientAddColorStop :: MonadIO m => Gradient -> Double -> SymbolicColor -> m () Source #

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

newLinear

gradientNewLinear :: MonadIO m => Double -> Double -> Double -> Double -> m Gradient Source #

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

newRadial

gradientNewRadial :: MonadIO m => Double -> Double -> Double -> Double -> Double -> Double -> m Gradient Source #

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

ref

data GradientRefMethodInfo Source #

Instances

((~) * signature (m Gradient), MonadIO m) => MethodInfo * GradientRefMethodInfo Gradient signature Source # 

Methods

overloadedMethod :: MethodProxy GradientRefMethodInfo Gradient -> signature -> s

gradientRef :: MonadIO m => Gradient -> m Gradient Source #

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

resolve

data GradientResolveMethodInfo Source #

Instances

((~) * signature (a -> m (Bool, Pattern)), MonadIO m, IsStyleProperties a) => MethodInfo * GradientResolveMethodInfo Gradient signature Source # 

Methods

overloadedMethod :: MethodProxy GradientResolveMethodInfo Gradient -> signature -> s

gradientResolve :: (MonadIO m, IsStyleProperties a) => Gradient -> a -> m (Bool, Pattern) Source #

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

resolveForContext

data GradientResolveForContextMethodInfo Source #

Instances

((~) * signature (a -> m Pattern), MonadIO m, IsStyleContext a) => MethodInfo * GradientResolveForContextMethodInfo Gradient signature Source # 

Methods

overloadedMethod :: MethodProxy GradientResolveForContextMethodInfo Gradient -> signature -> s

toString

data GradientToStringMethodInfo Source #

Instances

((~) * signature (m Text), MonadIO m) => MethodInfo * GradientToStringMethodInfo Gradient signature Source # 

Methods

overloadedMethod :: MethodProxy GradientToStringMethodInfo Gradient -> signature -> s

gradientToString :: MonadIO m => Gradient -> m Text Source #

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

unref

data GradientUnrefMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m) => MethodInfo * GradientUnrefMethodInfo Gradient signature Source # 

Methods

overloadedMethod :: MethodProxy GradientUnrefMethodInfo Gradient -> signature -> s

gradientUnref :: MonadIO m => Gradient -> m () Source #

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