Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A render node that can contain other render nodes.
Synopsis
- newtype ContainerNode = ContainerNode (ManagedPtr ContainerNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf ContainerNode o) => IsContainerNode o
- toContainerNode :: (MonadIO m, IsContainerNode o) => o -> m ContainerNode
- containerNodeGetChild :: (HasCallStack, MonadIO m, IsContainerNode a) => a -> Word32 -> m RenderNode
- containerNodeGetNChildren :: (HasCallStack, MonadIO m, IsContainerNode a) => a -> m Word32
- containerNodeNew :: (HasCallStack, MonadIO m) => [RenderNode] -> m ContainerNode
Exported types
newtype ContainerNode Source #
Memory-managed wrapper type.
ContainerNode (ManagedPtr ContainerNode) |
Instances
Eq ContainerNode Source # | |
Defined in GI.Gsk.Objects.ContainerNode (==) :: ContainerNode -> ContainerNode -> Bool # (/=) :: ContainerNode -> ContainerNode -> Bool # | |
BoxedPtr ContainerNode Source # | |
Defined in GI.Gsk.Objects.ContainerNode boxedPtrCopy :: ContainerNode -> IO ContainerNode boxedPtrFree :: ContainerNode -> IO () | |
ManagedPtrNewtype ContainerNode Source # | |
Defined in GI.Gsk.Objects.ContainerNode toManagedPtr :: ContainerNode -> ManagedPtr ContainerNode | |
TypedObject ContainerNode Source # | |
Defined in GI.Gsk.Objects.ContainerNode | |
HasParentTypes ContainerNode Source # | |
Defined in GI.Gsk.Objects.ContainerNode | |
type ParentTypes ContainerNode Source # | |
Defined in GI.Gsk.Objects.ContainerNode |
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
(BoxedPtr o, TypedObject o, IsDescendantOf ContainerNode o) => IsContainerNode o Source # | |
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
Methods
draw, ref, serialize, unref, writeToFile.
Getters
getBounds, getChild, getNChildren, getNodeType.
Setters
None.
getChild
containerNodeGetChild Source #
:: (HasCallStack, MonadIO m, IsContainerNode a) | |
=> a |
|
-> Word32 |
|
-> m RenderNode | Returns: the |
Gets one of the children of container
.
getNChildren
containerNodeGetNChildren Source #
:: (HasCallStack, MonadIO m, IsContainerNode a) | |
=> a |
|
-> m Word32 | Returns: the number of children of the |
Retrieves the number of direct children of node
.
new
:: (HasCallStack, MonadIO m) | |
=> [RenderNode] |
|
-> m ContainerNode | Returns: the new |
Creates a new GskRenderNode
instance for holding the given children
.
The new node will acquire a reference to each of the children.