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

GI.Gsk.Objects.CompositeNode

Description

A render node that uses Porter/Duff compositing operators to combine its child with the background.

Since: 4.22

Synopsis

Exported types

class (BoxedPtr o, TypedObject o, IsDescendantOf CompositeNode o) => IsCompositeNode o Source #

Type class for types which can be safely cast to CompositeNode, for instance with toCompositeNode.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf CompositeNode o) => IsCompositeNode o Source # 
Instance details

Defined in GI.Gsk.Objects.CompositeNode

toCompositeNode :: (MonadIO m, IsCompositeNode o) => o -> m CompositeNode Source #

Cast to CompositeNode, 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, getMask, getNodeType, getOpaqueRect, getOperator.

Setters

None.

getChild

compositeNodeGetChild Source #

Arguments

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

node: a composite GskRenderNode

-> m RenderNode

Returns: the child GskRenderNode

Gets the child node that is getting composited by the given node.

Since: 4.22

getMask

compositeNodeGetMask Source #

Arguments

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

node: a composite GskRenderNode

-> m RenderNode

Returns: the mask GskRenderNode

Gets the mask node that describes the region where the compositing applies.

Since: 4.22

getOperator

compositeNodeGetOperator Source #

Arguments

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

node: a composite GskRenderNode

-> m PorterDuff

Returns: The compositing operator

Gets the compositing operator used by this node.

Since: 4.22

new

compositeNodeNew Source #

Arguments

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

child: The child to composite

-> b

mask: The mask where the compositing will apply

-> PorterDuff

op: The compositing operator

-> m CompositeNode

Returns: A new GskRenderNode

Creates a GskRenderNode that will composite the child onto the background with the given operator wherever the mask is set.

Note that various operations can modify the background outside of the child's bounds, so the mask may cause visual changes outside of the child.

Since: 4.22