Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype LinearGradientNode = LinearGradientNode (ManagedPtr LinearGradientNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf LinearGradientNode o) => IsLinearGradientNode o
- toLinearGradientNode :: (MonadIO m, IsLinearGradientNode o) => o -> m LinearGradientNode
- linearGradientNodeGetNColorStops :: (HasCallStack, MonadIO m, IsLinearGradientNode a) => a -> m Word64
- linearGradientNodeNew :: (HasCallStack, MonadIO m) => Rect -> Point -> Point -> [ColorStop] -> m LinearGradientNode
- linearGradientNodePeekColorStops :: (HasCallStack, MonadIO m, IsLinearGradientNode a) => a -> m [ColorStop]
- linearGradientNodePeekEnd :: (HasCallStack, MonadIO m, IsLinearGradientNode a) => a -> m Point
- linearGradientNodePeekStart :: (HasCallStack, MonadIO m, IsLinearGradientNode a) => a -> m Point
Exported types
newtype LinearGradientNode Source #
Memory-managed wrapper type.
Instances
Eq LinearGradientNode Source # | |
Defined in GI.Gsk.Objects.LinearGradientNode (==) :: LinearGradientNode -> LinearGradientNode -> Bool # (/=) :: LinearGradientNode -> LinearGradientNode -> Bool # | |
ManagedPtrNewtype LinearGradientNode Source # | |
BoxedPtr LinearGradientNode Source # | |
Defined in GI.Gsk.Objects.LinearGradientNode boxedPtrCopy :: LinearGradientNode -> IO LinearGradientNode # boxedPtrFree :: LinearGradientNode -> IO () # | |
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
Overloaded methods
getNColorStops
linearGradientNodeGetNColorStops Source #
:: (HasCallStack, MonadIO m, IsLinearGradientNode a) | |
=> a |
|
-> m Word64 | Returns: the number of color stops |
Retrieves the number of color stops in the gradient.
new
linearGradientNodeNew Source #
:: (HasCallStack, MonadIO m) | |
=> Rect |
|
-> Point |
|
-> Point |
|
-> [ColorStop] |
|
-> m LinearGradientNode | Returns: A new |
Creates a RenderNode
that will create a linear gradient from the given
points and color stops, and render that into the area given by bounds
.
peekColorStops
linearGradientNodePeekColorStops Source #
:: (HasCallStack, MonadIO m, IsLinearGradientNode a) | |
=> a |
|
-> m [ColorStop] | Returns: the color stops in the gradient |
Retrievs the color stops in the gradient.
peekEnd
linearGradientNodePeekEnd Source #
:: (HasCallStack, MonadIO m, IsLinearGradientNode a) | |
=> a |
|
-> m Point | Returns: the final point |
Retrieves the final point of the linear gradient.
peekStart
linearGradientNodePeekStart Source #
:: (HasCallStack, MonadIO m, IsLinearGradientNode a) | |
=> a |
|
-> m Point | Returns: the initial point |
Retrieves the initial point of the linear gradient.