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