gsk4/
conic_gradient_node.rs
1use crate::{ConicGradientNode, RenderNodeType};
4
5define_render_node!(
6 ConicGradientNode,
7 crate::ffi::GskConicGradientNode,
8 RenderNodeType::ConicGradientNode
9);
10
11impl std::fmt::Debug for ConicGradientNode {
12 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
13 #[cfg(feature = "v4_2")]
14 {
15 f.debug_struct("ConicGradientNode")
16 .field("angle", &self.angle())
17 .field("center", &self.center())
18 .field("color_stops", &self.color_stops())
19 .field("n_color_stops", &self.n_color_stops())
20 .field("rotation", &self.rotation())
21 .finish()
22 }
23 #[cfg(not(feature = "v4_2"))]
24 {
25 f.debug_struct("ConicGradientNode")
26 .field("center", &self.center())
27 .field("color_stops", &self.color_stops())
28 .field("n_color_stops", &self.n_color_stops())
29 .field("rotation", &self.rotation())
30 .finish()
31 }
32 }
33}