| 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 |
GI.Gsk.Objects.LinearGradientNode
Description
A render node for a linear gradient.
Synopsis
- newtype LinearGradientNode = LinearGradientNode (ManagedPtr LinearGradientNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf LinearGradientNode o) => IsLinearGradientNode o
- toLinearGradientNode :: (MonadIO m, IsLinearGradientNode o) => o -> m LinearGradientNode
- linearGradientNodeGetColorStops :: (HasCallStack, MonadIO m, IsLinearGradientNode a) => a -> m [ColorStop]
- linearGradientNodeGetEnd :: (HasCallStack, MonadIO m, IsLinearGradientNode a) => a -> m Point
- linearGradientNodeGetNColorStops :: (HasCallStack, MonadIO m, IsLinearGradientNode a) => a -> m CSize
- linearGradientNodeGetStart :: (HasCallStack, MonadIO m, IsLinearGradientNode a) => a -> m Point
- linearGradientNodeNew :: (HasCallStack, MonadIO m) => Rect -> Point -> Point -> [ColorStop] -> m LinearGradientNode
Exported types
newtype LinearGradientNode Source #
Memory-managed wrapper type.
Constructors
| LinearGradientNode (ManagedPtr LinearGradientNode) |
Instances
| Eq LinearGradientNode Source # | |
Defined in GI.Gsk.Objects.LinearGradientNode Methods (==) :: LinearGradientNode -> LinearGradientNode -> Bool # (/=) :: LinearGradientNode -> LinearGradientNode -> Bool # | |
| BoxedPtr LinearGradientNode Source # | |
Defined in GI.Gsk.Objects.LinearGradientNode Methods boxedPtrCopy :: LinearGradientNode -> IO LinearGradientNode boxedPtrFree :: LinearGradientNode -> IO () | |
| ManagedPtrNewtype LinearGradientNode Source # | |
Defined in GI.Gsk.Objects.LinearGradientNode Methods toManagedPtr :: LinearGradientNode -> ManagedPtr LinearGradientNode | |
| TypedObject LinearGradientNode Source # | |
Defined in GI.Gsk.Objects.LinearGradientNode | |
| HasParentTypes LinearGradientNode Source # | |
Defined in GI.Gsk.Objects.LinearGradientNode | |
| type ParentTypes LinearGradientNode Source # | |
Defined in GI.Gsk.Objects.LinearGradientNode | |
class (BoxedPtr o, TypedObject o, IsDescendantOf LinearGradientNode o) => IsLinearGradientNode o Source #
Type class for types which can be safely cast to LinearGradientNode, for instance with toLinearGradientNode.
Instances
| (BoxedPtr o, TypedObject o, IsDescendantOf LinearGradientNode o) => IsLinearGradientNode o Source # | |
Defined in GI.Gsk.Objects.LinearGradientNode | |
toLinearGradientNode :: (MonadIO m, IsLinearGradientNode o) => o -> m LinearGradientNode Source #
Cast to LinearGradientNode, 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, getColorStops, getEnd, getNColorStops, getNodeType, getStart.
Setters
None.
getColorStops
linearGradientNodeGetColorStops Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLinearGradientNode a) | |
| => a |
|
| -> m [ColorStop] | Returns: the color stops in the gradient |
Retrieves the color stops in the gradient.
getEnd
linearGradientNodeGetEnd Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLinearGradientNode a) | |
| => a |
|
| -> m Point | Returns: the final point |
Retrieves the final point of the linear gradient.
getNColorStops
linearGradientNodeGetNColorStops Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLinearGradientNode a) | |
| => a |
|
| -> m CSize | Returns: the number of color stops |
Retrieves the number of color stops in the gradient.
getStart
linearGradientNodeGetStart Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLinearGradientNode a) | |
| => a |
|
| -> m Point | Returns: the initial point |
Retrieves the initial point of the linear gradient.
new
linearGradientNodeNew Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Rect |
|
| -> Point |
|
| -> Point |
|
| -> [ColorStop] |
|
| -> m LinearGradientNode | Returns: A new |
Creates a GskRenderNode that will create a linear gradient from the given
points and color stops, and render that into the area given by bounds.