Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gsk.Objects.ColorMatrixNode
Description
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
- type family ResolveColorMatrixNodeMethod (t :: Symbol) o where ...
- data ColorMatrixNodeGetChildMethodInfo
- colorMatrixNodeGetChild :: (HasCallStack, MonadIO m, IsColorMatrixNode a) => a -> m RenderNode
- data ColorMatrixNodeGetColorMatrixMethodInfo
- colorMatrixNodeGetColorMatrix :: (HasCallStack, MonadIO m, IsColorMatrixNode a) => a -> m Matrix
- data ColorMatrixNodeGetColorOffsetMethodInfo
- 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.
Constructors
ColorMatrixNode (ManagedPtr ColorMatrixNode) |
Instances
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.
type family ResolveColorMatrixNodeMethod (t :: Symbol) o where ... Source #
Equations
ResolveColorMatrixNodeMethod "draw" o = RenderNodeDrawMethodInfo | |
ResolveColorMatrixNodeMethod "ref" o = RenderNodeRefMethodInfo | |
ResolveColorMatrixNodeMethod "serialize" o = RenderNodeSerializeMethodInfo | |
ResolveColorMatrixNodeMethod "unref" o = RenderNodeUnrefMethodInfo | |
ResolveColorMatrixNodeMethod "writeToFile" o = RenderNodeWriteToFileMethodInfo | |
ResolveColorMatrixNodeMethod "getBounds" o = RenderNodeGetBoundsMethodInfo | |
ResolveColorMatrixNodeMethod "getChild" o = ColorMatrixNodeGetChildMethodInfo | |
ResolveColorMatrixNodeMethod "getColorMatrix" o = ColorMatrixNodeGetColorMatrixMethodInfo | |
ResolveColorMatrixNodeMethod "getColorOffset" o = ColorMatrixNodeGetColorOffsetMethodInfo | |
ResolveColorMatrixNodeMethod "getNodeType" o = RenderNodeGetNodeTypeMethodInfo | |
ResolveColorMatrixNodeMethod l o = MethodResolutionFailed l o :: Type |
getChild
data ColorMatrixNodeGetChildMethodInfo Source #
Instances
(signature ~ m RenderNode, MonadIO m, IsColorMatrixNode a) => OverloadedMethod ColorMatrixNodeGetChildMethodInfo a signature Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo ColorMatrixNodeGetChildMethodInfo (a :: Type) Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode Methods |
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
.
getColorMatrix
data ColorMatrixNodeGetColorMatrixMethodInfo Source #
Instances
(signature ~ m Matrix, MonadIO m, IsColorMatrixNode a) => OverloadedMethod ColorMatrixNodeGetColorMatrixMethodInfo a signature Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo ColorMatrixNodeGetColorMatrixMethodInfo (a :: Type) Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode Methods |
colorMatrixNodeGetColorMatrix Source #
Arguments
:: (HasCallStack, MonadIO m, IsColorMatrixNode a) | |
=> a |
|
-> m Matrix | Returns: a 4x4 color matrix |
Retrieves the color matrix used by the node
.
getColorOffset
data ColorMatrixNodeGetColorOffsetMethodInfo Source #
Instances
(signature ~ m Vec4, MonadIO m, IsColorMatrixNode a) => OverloadedMethod ColorMatrixNodeGetColorOffsetMethodInfo a signature Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo ColorMatrixNodeGetColorOffsetMethodInfo (a :: Type) Source # | |
Defined in GI.Gsk.Objects.ColorMatrixNode Methods |
colorMatrixNodeGetColorOffset Source #
Arguments
:: (HasCallStack, MonadIO m, IsColorMatrixNode a) | |
=> a |
|
-> m Vec4 | Returns: a color vector |
Retrieves the color offset used by the node
.
new
Arguments
:: (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 colors by applying
pixel = transpose(color_matrix) * pixel + color_offset
for every pixel. The transformation operates on unpremultiplied colors, with color components ordered R, G, B, A.