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