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 controlling the color matrix of its single child node.
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
- colorMatrixNodeGetColorMatrix :: (HasCallStack, MonadIO m, IsColorMatrixNode a) => a -> m Matrix
- colorMatrixNodeGetColorOffset :: (HasCallStack, MonadIO m, IsColorMatrixNode a) => a -> m Vec4
- colorMatrixNodeNew :: (HasCallStack, MonadIO m, IsRenderNode a) => a -> Matrix -> Vec4 -> m ColorMatrixNode
Exported types
newtype ColorMatrixNode Source #
Memory-managed wrapper type.
ColorMatrixNode (ManagedPtr ColorMatrixNode) |
Instances
Eq ColorMatrixNode Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode (==) :: ColorMatrixNode -> ColorMatrixNode -> Bool # (/=) :: ColorMatrixNode -> ColorMatrixNode -> Bool # | |
BoxedPtr ColorMatrixNode Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode boxedPtrCopy :: ColorMatrixNode -> IO ColorMatrixNode boxedPtrFree :: ColorMatrixNode -> IO () | |
ManagedPtrNewtype ColorMatrixNode Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode toManagedPtr :: ColorMatrixNode -> ManagedPtr ColorMatrixNode | |
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
Click to display all available methods, including inherited ones
Methods
draw, ref, serialize, unref, writeToFile.
Getters
getBounds, getChild, getColorMatrix, getColorOffset, getNodeType.
Setters
None.
getChild
colorMatrixNodeGetChild Source #
:: (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
.
getColorMatrix
colorMatrixNodeGetColorMatrix Source #
:: (HasCallStack, MonadIO m, IsColorMatrixNode a) | |
=> a |
|
-> m Matrix | Returns: a 4x4 color matrix |
Retrieves the color matrix used by the node
.
getColorOffset
colorMatrixNodeGetColorOffset Source #
:: (HasCallStack, MonadIO m, IsColorMatrixNode a) | |
=> a |
|
-> m Vec4 | Returns: a color vector |
Retrieves the color offset used by the node
.
new
:: (HasCallStack, MonadIO m, IsRenderNode a) | |
=> a |
|
-> Matrix |
|
-> Vec4 |
|
-> m ColorMatrixNode | Returns: A new |
Creates a GskRenderNode
that will drawn the child
with
colorMatrix
.
In particular, the node will transform the operation
pixel = color_matrix * pixel + color_offset
for every pixel.