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