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

Description

No description available in the introspection data.

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

Overloaded methods

getChild

containerNodeGetChild Source #

Arguments

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

node: a container RenderNode

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

-> m Word32

Returns: the number of children of the RenderNode

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 RenderNode

Creates a new RenderNode instance for holding the given children. The new node will acquire a reference to each of the children.