gsk4/
radial_gradient_node.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use crate::{RadialGradientNode, RenderNodeType};
4
5define_render_node!(
6    RadialGradientNode,
7    crate::ffi::GskRadialGradientNode,
8    RenderNodeType::RadialGradientNode
9);
10
11impl std::fmt::Debug for RadialGradientNode {
12    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
13        f.debug_struct("RadialGradientNode")
14            .field("center", &self.center())
15            .field("color_stops", &self.color_stops())
16            .field("end", &self.end())
17            .field("hradius", &self.hradius())
18            .field("n_color_stops", &self.n_color_stops())
19            .field("start", &self.start())
20            .field("vradius", &self.vradius())
21            .finish()
22    }
23}