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

Description

A render node applying a GskTransform to its single child node.

Synopsis

Exported types

class (BoxedPtr o, TypedObject o, IsDescendantOf TransformNode o) => IsTransformNode o Source #

Type class for types which can be safely cast to TransformNode, for instance with toTransformNode.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf TransformNode o) => IsTransformNode o Source # 
Instance details

Defined in GI.Gsk.Objects.TransformNode

toTransformNode :: (MonadIO m, IsTransformNode o) => o -> m TransformNode Source #

Cast to TransformNode, 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, getNodeType, getTransform.

Setters

None.

getChild

transformNodeGetChild Source #

Arguments

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

node: a GskRenderNode for a transform

-> m RenderNode

Returns: The child that is getting transformed

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

getTransform

transformNodeGetTransform Source #

Arguments

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

node: a GskRenderNode for a transform

-> m Transform

Returns: a GskTransform

Retrieves the GskTransform used by the node.

new

transformNodeNew Source #

Arguments

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

child: The node to transform

-> Transform

transform: The transform to apply

-> m TransformNode

Returns: A new GskRenderNode

Creates a GskRenderNode that will transform the given child with the given transform.