Class: Gsk::DebugNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

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

Instance Method Summary collapse

Methods inherited from RenderNode

deserialize, #draw, #get_bounds, #node_type, #ref, #serialize, #unref, #write_to_file

Constructor Details

#initialize(child, message) ⇒ Gsk::DebugNode

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

Adding this node has no visual effect.

Parameters:

  • child (Gsk::RenderNode)

    The child to add debug info for

  • message (String)

    The debug message

Instance Method Details

#childGsk::RenderNode

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

Returns:

#messageString

Gets the debug message that was set on this node

Returns:

  • (String)

    The debug message