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

Description

A render node that emits a debugging message when drawing its child node.

Synopsis

Exported types

newtype DebugNode Source #

Memory-managed wrapper type.

Instances

Instances details
Eq DebugNode Source # 
Instance details

Defined in GI.Gsk.Objects.DebugNode

BoxedPtr DebugNode Source # 
Instance details

Defined in GI.Gsk.Objects.DebugNode

ManagedPtrNewtype DebugNode Source # 
Instance details

Defined in GI.Gsk.Objects.DebugNode

TypedObject DebugNode Source # 
Instance details

Defined in GI.Gsk.Objects.DebugNode

Methods

glibType :: IO GType #

HasParentTypes DebugNode Source # 
Instance details

Defined in GI.Gsk.Objects.DebugNode

type ParentTypes DebugNode Source # 
Instance details

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

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf DebugNode o) => IsDebugNode o Source # 
Instance details

Defined in GI.Gsk.Objects.DebugNode

toDebugNode :: (MonadIO m, IsDebugNode o) => o -> m DebugNode Source #

Cast to DebugNode, 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, getMessage, getNodeType.

Setters

None.

getChild

debugNodeGetChild Source #

Arguments

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

node: a debug GskRenderNode

-> m RenderNode

Returns: the child GskRenderNode

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

getMessage

debugNodeGetMessage Source #

Arguments

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

node: a debug GskRenderNode

-> m Text

Returns: The debug message

Gets the debug message that was set on this node

new

debugNodeNew Source #

Arguments

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

child: The child to add debug info for

-> Text

message: The debug message

-> m DebugNode

Returns: A new GskRenderNode

Creates a GskRenderNode that will add debug information about the given child.

Adding this node has no visual effect.