gi-gsk-4.0.2: Gsk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gsk.Objects.ColorMatrixNode

Description

No description available in the introspection data.

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

Overloaded methods

getChild

colorMatrixNodeGetChild Source #

Arguments

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

node: a color matrix RenderNode

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

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 RenderNode

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

node: a color matrix RenderNode

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

node: a color matrix RenderNode

-> m Vec4

Returns: a color vector

Retrieves the color offset used by the node.