| 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 |
GI.Gsk.Objects.ColorMatrixNode
Description
No description available in the introspection data.
Synopsis
- newtype ColorMatrixNode = ColorMatrixNode (ManagedPtr ColorMatrixNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf ColorMatrixNode o) => IsColorMatrixNode o
- toColorMatrixNode :: (MonadIO m, IsColorMatrixNode o) => o -> m ColorMatrixNode
- colorMatrixNodeGetChild :: (HasCallStack, MonadIO m, IsColorMatrixNode a) => a -> m RenderNode
- colorMatrixNodeNew :: (HasCallStack, MonadIO m, IsRenderNode a) => a -> Matrix -> Vec4 -> m ColorMatrixNode
- colorMatrixNodePeekColorMatrix :: (HasCallStack, MonadIO m, IsColorMatrixNode a) => a -> m Matrix
- colorMatrixNodePeekColorOffset :: (HasCallStack, MonadIO m, IsColorMatrixNode a) => a -> m Vec4
Exported types
newtype ColorMatrixNode Source #
Memory-managed wrapper type.
Constructors
| ColorMatrixNode (ManagedPtr ColorMatrixNode) |
Instances
| Eq ColorMatrixNode Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode Methods (==) :: ColorMatrixNode -> ColorMatrixNode -> Bool # (/=) :: ColorMatrixNode -> ColorMatrixNode -> Bool # | |
| ManagedPtrNewtype ColorMatrixNode Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode Methods toManagedPtr :: ColorMatrixNode -> ManagedPtr ColorMatrixNode # | |
| BoxedPtr ColorMatrixNode Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode Methods boxedPtrCopy :: ColorMatrixNode -> IO ColorMatrixNode # boxedPtrFree :: ColorMatrixNode -> IO () # | |
| TypedObject ColorMatrixNode Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode | |
| HasParentTypes ColorMatrixNode Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode | |
| type ParentTypes ColorMatrixNode Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode | |
class (BoxedPtr o, TypedObject o, IsDescendantOf ColorMatrixNode o) => IsColorMatrixNode o Source #
Type class for types which can be safely cast to ColorMatrixNode, for instance with toColorMatrixNode.
Instances
| (BoxedPtr o, TypedObject o, IsDescendantOf ColorMatrixNode o) => IsColorMatrixNode o Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode | |
toColorMatrixNode :: (MonadIO m, IsColorMatrixNode o) => o -> m ColorMatrixNode Source #
Cast to ColorMatrixNode, for types for which this is known to be safe. For general casts, use castTo.
Methods
Overloaded methods
getChild
colorMatrixNodeGetChild Source #
Arguments
| :: (HasCallStack, MonadIO m, IsColorMatrixNode a) | |
| => a |
|
| -> m RenderNode | Returns: The child that is getting its colors modified |
Gets the child node that is getting its colors modified by the given node.
new
Arguments
| :: (HasCallStack, MonadIO m, IsRenderNode a) | |
| => a |
|
| -> Matrix |
|
| -> Vec4 |
|
| -> m ColorMatrixNode | Returns: A new |
Creates a RenderNode that will drawn the child with reduced
colorMatrix.
In particular, the node will transform the operation
plain code
pixel = color_matrix * pixel + color_offset
for every pixel.
peekColorMatrix
colorMatrixNodePeekColorMatrix Source #
Arguments
| :: (HasCallStack, MonadIO m, IsColorMatrixNode a) | |
| => a |
|
| -> m Matrix | Returns: a 4x4 color matrix |
Retrieves the color matrix used by the node.
peekColorOffset
colorMatrixNodePeekColorOffset Source #
Arguments
| :: (HasCallStack, MonadIO m, IsColorMatrixNode a) | |
| => a |
|
| -> m Vec4 | Returns: a color vector |
Retrieves the color offset used by the node.