gi-gsk-4.0.5: 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.BlendNode

Description

A render node applying a blending function between its two child nodes.

Synopsis

Exported types

newtype BlendNode Source #

Memory-managed wrapper type.

Constructors

BlendNode (ManagedPtr BlendNode) 

Instances

Instances details
Eq BlendNode Source # 
Instance details

Defined in GI.Gsk.Objects.BlendNode

BoxedPtr BlendNode Source # 
Instance details

Defined in GI.Gsk.Objects.BlendNode

ManagedPtrNewtype BlendNode Source # 
Instance details

Defined in GI.Gsk.Objects.BlendNode

Methods

toManagedPtr :: BlendNode -> ManagedPtr BlendNode

TypedObject BlendNode Source # 
Instance details

Defined in GI.Gsk.Objects.BlendNode

Methods

glibType :: IO GType

HasParentTypes BlendNode Source # 
Instance details

Defined in GI.Gsk.Objects.BlendNode

type ParentTypes BlendNode Source # 
Instance details

Defined in GI.Gsk.Objects.BlendNode

type ParentTypes BlendNode = '[RenderNode]

class (BoxedPtr o, TypedObject o, IsDescendantOf BlendNode o) => IsBlendNode o Source #

Type class for types which can be safely cast to BlendNode, for instance with toBlendNode.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf BlendNode o) => IsBlendNode o Source # 
Instance details

Defined in GI.Gsk.Objects.BlendNode

toBlendNode :: (MonadIO m, IsBlendNode o) => o -> m BlendNode Source #

Cast to BlendNode, 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

getBlendMode, getBottomChild, getBounds, getNodeType, getTopChild.

Setters

None.

getBlendMode

blendNodeGetBlendMode Source #

Arguments

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

node: a blending GskRenderNode

-> m BlendMode

Returns: the blend mode

Retrieves the blend mode used by node.

getBottomChild

blendNodeGetBottomChild Source #

Arguments

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

node: a blending GskRenderNode

-> m RenderNode

Returns: the bottom child node

Retrieves the bottom GskRenderNode child of the node.

getTopChild

blendNodeGetTopChild Source #

Arguments

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

node: a blending GskRenderNode

-> m RenderNode

Returns: the top child node

Retrieves the top GskRenderNode child of the node.

new

blendNodeNew Source #

Arguments

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

bottom: The bottom node to be drawn

-> b

top: The node to be blended onto the bottom node

-> BlendMode

blendMode: The blend mode to use

-> m BlendNode

Returns: A new GskRenderNode

Creates a GskRenderNode that will use blendMode to blend the top node onto the bottom node.