Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A render node for a radial gradient.
Synopsis
- newtype RadialGradientNode = RadialGradientNode (ManagedPtr RadialGradientNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf RadialGradientNode o) => IsRadialGradientNode o
- toRadialGradientNode :: (MonadIO m, IsRadialGradientNode o) => o -> m RadialGradientNode
- radialGradientNodeGetCenter :: (HasCallStack, MonadIO m, IsRadialGradientNode a) => a -> m Point
- radialGradientNodeGetColorStops :: (HasCallStack, MonadIO m, IsRadialGradientNode a) => a -> m [ColorStop]
- radialGradientNodeGetEnd :: (HasCallStack, MonadIO m, IsRadialGradientNode a) => a -> m Float
- radialGradientNodeGetHradius :: (HasCallStack, MonadIO m, IsRadialGradientNode a) => a -> m Float
- radialGradientNodeGetNColorStops :: (HasCallStack, MonadIO m, IsRadialGradientNode a) => a -> m Word64
- radialGradientNodeGetStart :: (HasCallStack, MonadIO m, IsRadialGradientNode a) => a -> m Float
- radialGradientNodeGetVradius :: (HasCallStack, MonadIO m, IsRadialGradientNode a) => a -> m Float
- radialGradientNodeNew :: (HasCallStack, MonadIO m) => Rect -> Point -> Float -> Float -> Float -> Float -> [ColorStop] -> m RadialGradientNode
Exported types
newtype RadialGradientNode Source #
Memory-managed wrapper type.
RadialGradientNode (ManagedPtr RadialGradientNode) |
Instances
Eq RadialGradientNode Source # | |
Defined in GI.Gsk.Objects.RadialGradientNode (==) :: RadialGradientNode -> RadialGradientNode -> Bool # (/=) :: RadialGradientNode -> RadialGradientNode -> Bool # | |
BoxedPtr RadialGradientNode Source # | |
Defined in GI.Gsk.Objects.RadialGradientNode | |
ManagedPtrNewtype RadialGradientNode Source # | |
Defined in GI.Gsk.Objects.RadialGradientNode toManagedPtr :: RadialGradientNode -> ManagedPtr RadialGradientNode | |
TypedObject RadialGradientNode Source # | |
Defined in GI.Gsk.Objects.RadialGradientNode | |
HasParentTypes RadialGradientNode Source # | |
Defined in GI.Gsk.Objects.RadialGradientNode | |
type ParentTypes RadialGradientNode Source # | |
Defined in GI.Gsk.Objects.RadialGradientNode |
class (BoxedPtr o, TypedObject o, IsDescendantOf RadialGradientNode o) => IsRadialGradientNode o Source #
Type class for types which can be safely cast to RadialGradientNode
, for instance with toRadialGradientNode
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf RadialGradientNode o) => IsRadialGradientNode o Source # | |
Defined in GI.Gsk.Objects.RadialGradientNode |
toRadialGradientNode :: (MonadIO m, IsRadialGradientNode o) => o -> m RadialGradientNode Source #
Cast to RadialGradientNode
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
draw, ref, serialize, unref, writeToFile.
Getters
getBounds, getCenter, getColorStops, getEnd, getHradius, getNColorStops, getNodeType, getStart, getVradius.
Setters
None.
getCenter
radialGradientNodeGetCenter Source #
:: (HasCallStack, MonadIO m, IsRadialGradientNode a) | |
=> a |
|
-> m Point | Returns: the center point for the gradient |
Retrieves the center pointer for the gradient.
getColorStops
radialGradientNodeGetColorStops Source #
:: (HasCallStack, MonadIO m, IsRadialGradientNode a) | |
=> a |
|
-> m [ColorStop] | Returns: the color stops in the gradient |
Retrieves the color stops in the gradient.
getEnd
radialGradientNodeGetEnd Source #
:: (HasCallStack, MonadIO m, IsRadialGradientNode a) | |
=> a |
|
-> m Float | Returns: the end value for the gradient |
Retrieves the end value for the gradient.
getHradius
radialGradientNodeGetHradius Source #
:: (HasCallStack, MonadIO m, IsRadialGradientNode a) | |
=> a |
|
-> m Float | Returns: the horizontal radius for the gradient |
Retrieves the horizontal radius for the gradient.
getNColorStops
radialGradientNodeGetNColorStops Source #
:: (HasCallStack, MonadIO m, IsRadialGradientNode a) | |
=> a |
|
-> m Word64 | Returns: the number of color stops |
Retrieves the number of color stops in the gradient.
getStart
radialGradientNodeGetStart Source #
:: (HasCallStack, MonadIO m, IsRadialGradientNode a) | |
=> a |
|
-> m Float | Returns: the start value for the gradient |
Retrieves the start value for the gradient.
getVradius
radialGradientNodeGetVradius Source #
:: (HasCallStack, MonadIO m, IsRadialGradientNode a) | |
=> a |
|
-> m Float | Returns: the vertical radius for the gradient |
Retrieves the vertical radius for the gradient.
new
radialGradientNodeNew Source #
:: (HasCallStack, MonadIO m) | |
=> Rect |
|
-> Point |
|
-> Float |
|
-> Float |
|
-> Float |
|
-> Float |
|
-> [ColorStop] |
|
-> m RadialGradientNode | Returns: A new |
Creates a GskRenderNode
that draws a radial gradient.
The radial gradient
starts around center
. The size of the gradient is dictated by hradius
in horizontal orientation and by vradius
in vertical orientation.