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 emits a debugging message when drawing its child node.
Synopsis
- newtype DebugNode = DebugNode (ManagedPtr DebugNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf DebugNode o) => IsDebugNode o
- toDebugNode :: (MonadIO m, IsDebugNode o) => o -> m DebugNode
- debugNodeGetChild :: (HasCallStack, MonadIO m, IsDebugNode a) => a -> m RenderNode
- debugNodeGetMessage :: (HasCallStack, MonadIO m, IsDebugNode a) => a -> m Text
- debugNodeNew :: (HasCallStack, MonadIO m, IsRenderNode a) => a -> Text -> m DebugNode
Exported types
Memory-managed wrapper type.
Instances
Eq DebugNode Source # | |
BoxedPtr DebugNode Source # | |
Defined in GI.Gsk.Objects.DebugNode boxedPtrCopy :: DebugNode -> IO DebugNode # boxedPtrFree :: DebugNode -> IO () # | |
ManagedPtrNewtype DebugNode Source # | |
Defined in GI.Gsk.Objects.DebugNode | |
TypedObject DebugNode Source # | |
Defined in GI.Gsk.Objects.DebugNode | |
HasParentTypes DebugNode Source # | |
Defined in GI.Gsk.Objects.DebugNode | |
type ParentTypes DebugNode Source # | |
Defined in GI.Gsk.Objects.DebugNode |
class (BoxedPtr o, TypedObject o, IsDescendantOf DebugNode o) => IsDebugNode o Source #
Type class for types which can be safely cast to DebugNode
, for instance with toDebugNode
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf DebugNode o) => IsDebugNode o Source # | |
Defined in GI.Gsk.Objects.DebugNode |
toDebugNode :: (MonadIO m, IsDebugNode o) => o -> m DebugNode Source #
Methods
Click to display all available methods, including inherited ones
Methods
draw, ref, serialize, unref, writeToFile.
Getters
getBounds, getChild, getMessage, getNodeType.
Setters
None.
getChild
:: (HasCallStack, MonadIO m, IsDebugNode a) | |
=> a |
|
-> m RenderNode | Returns: the child |
Gets the child node that is getting drawn by the given node
.
getMessage
:: (HasCallStack, MonadIO m, IsDebugNode a) | |
=> a |
|
-> m Text | Returns: The debug message |
Gets the debug message that was set on this node
new
:: (HasCallStack, MonadIO m, IsRenderNode a) | |
=> a |
|
-> Text |
|
-> m DebugNode | Returns: A new |
Creates a GskRenderNode
that will add debug information about
the given child
.
Adding this node has no visual effect.