gi-gsk-4.0.4: Gsk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gsk.Objects.ColorMatrixNode

Description

A render node controlling the color matrix of its single child node.

Synopsis

Exported types

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

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf ColorMatrixNode o) => IsColorMatrixNode o Source # 
Instance details

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

Expand

Methods

draw, ref, serialize, unref, writeToFile.

Getters

getBounds, getChild, getColorMatrix, getColorOffset, getNodeType.

Setters

None.

getChild

colorMatrixNodeGetChild Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorMatrixNode a) 
=> a

node: a color matrix GskRenderNode

-> 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 #

Arguments

:: (HasCallStack, MonadIO m, IsColorMatrixNode a) 
=> a

node: a color matrix GskRenderNode

-> m Matrix

Returns: a 4x4 color matrix

Retrieves the color matrix used by the node.

getColorOffset

colorMatrixNodeGetColorOffset Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorMatrixNode a) 
=> a

node: a color matrix GskRenderNode

-> m Vec4

Returns: a color vector

Retrieves the color offset used by the node.

new

colorMatrixNodeNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsRenderNode a) 
=> a

child: The node to draw

-> Matrix

colorMatrix: The matrix to apply

-> Vec4

colorOffset: Values to add to the color

-> m ColorMatrixNode

Returns: A new GskRenderNode

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.