gsk4/debug_node.rs
1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use crate::{DebugNode, RenderNodeType};
4
5define_render_node!(
6 DebugNode,
7 crate::ffi::GskDebugNode,
8 RenderNodeType::DebugNode
9);
10
11impl std::fmt::Debug for DebugNode {
12 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
13 f.debug_struct("DebugNode")
14 .field("child", &self.child())
15 .field("message", &self.message())
16 .finish()
17 }
18}