| 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.BlendNode
Description
A render node applying a blending function between its two child nodes.
Synopsis
- newtype BlendNode = BlendNode (ManagedPtr BlendNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf BlendNode o) => IsBlendNode o
- toBlendNode :: (MonadIO m, IsBlendNode o) => o -> m BlendNode
- blendNodeGetBlendMode :: (HasCallStack, MonadIO m, IsBlendNode a) => a -> m BlendMode
- blendNodeGetBottomChild :: (HasCallStack, MonadIO m, IsBlendNode a) => a -> m RenderNode
- blendNodeGetTopChild :: (HasCallStack, MonadIO m, IsBlendNode a) => a -> m RenderNode
- blendNodeNew :: (HasCallStack, MonadIO m, IsRenderNode a, IsRenderNode b) => a -> b -> BlendMode -> m BlendNode
Exported types
Memory-managed wrapper type.
Instances
| Eq BlendNode Source # | |
| BoxedPtr BlendNode Source # | |
Defined in GI.Gsk.Objects.BlendNode | |
| ManagedPtrNewtype BlendNode Source # | |
Defined in GI.Gsk.Objects.BlendNode Methods toManagedPtr :: BlendNode -> ManagedPtr BlendNode | |
| TypedObject BlendNode Source # | |
Defined in GI.Gsk.Objects.BlendNode | |
| HasParentTypes BlendNode Source # | |
Defined in GI.Gsk.Objects.BlendNode | |
| type ParentTypes BlendNode Source # | |
Defined in GI.Gsk.Objects.BlendNode | |
class (BoxedPtr o, TypedObject o, IsDescendantOf BlendNode o) => IsBlendNode o Source #
Type class for types which can be safely cast to BlendNode, for instance with toBlendNode.
Instances
| (BoxedPtr o, TypedObject o, IsDescendantOf BlendNode o) => IsBlendNode o Source # | |
Defined in GI.Gsk.Objects.BlendNode | |
toBlendNode :: (MonadIO m, IsBlendNode o) => o -> m BlendNode Source #
Methods
Click to display all available methods, including inherited ones
Methods
draw, ref, serialize, unref, writeToFile.
Getters
getBlendMode, getBottomChild, getBounds, getNodeType, getTopChild.
Setters
None.
getBlendMode
blendNodeGetBlendMode Source #
Arguments
| :: (HasCallStack, MonadIO m, IsBlendNode a) | |
| => a |
|
| -> m BlendMode | Returns: the blend mode |
Retrieves the blend mode used by node.
getBottomChild
blendNodeGetBottomChild Source #
Arguments
| :: (HasCallStack, MonadIO m, IsBlendNode a) | |
| => a |
|
| -> m RenderNode | Returns: the bottom child node |
Retrieves the bottom GskRenderNode child of the node.
getTopChild
Arguments
| :: (HasCallStack, MonadIO m, IsBlendNode a) | |
| => a |
|
| -> m RenderNode | Returns: the top child node |
Retrieves the top GskRenderNode child of the node.
new
Arguments
| :: (HasCallStack, MonadIO m, IsRenderNode a, IsRenderNode b) | |
| => a |
|
| -> b |
|
| -> BlendMode |
|
| -> m BlendNode | Returns: A new |
Creates a GskRenderNode that will use blendMode to blend the top
node onto the bottom node.