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

Description

A render node that can contain other render nodes.

Synopsis

Exported types

class (BoxedPtr o, TypedObject o, IsDescendantOf ContainerNode o) => IsContainerNode o Source #

Type class for types which can be safely cast to ContainerNode, for instance with toContainerNode.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf ContainerNode o) => IsContainerNode o Source # 
Instance details

Defined in GI.Gsk.Objects.ContainerNode

toContainerNode :: (MonadIO m, IsContainerNode o) => o -> m ContainerNode Source #

Cast to ContainerNode, 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, getNChildren, getNodeType.

Setters

None.

getChild

containerNodeGetChild Source #

Arguments

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

node: a container GskRenderNode

-> Word32

idx: the position of the child to get

-> m RenderNode

Returns: the idx'th child of container

Gets one of the children of container.

getNChildren

containerNodeGetNChildren Source #

Arguments

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

node: a container GskRenderNode

-> m Word32

Returns: the number of children of the GskRenderNode

Retrieves the number of direct children of node.

new

containerNodeNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> [RenderNode]

children: The children of the node

-> m ContainerNode

Returns: the new GskRenderNode

Creates a new GskRenderNode instance for holding the given children.

The new node will acquire a reference to each of the children.