wplot/sys/stroke_brush/
change_color.rs

1/// Internal namespace.
2pub( crate ) mod private
3{
4  use crate::protected::*;
5
6  /// ChangerInterface of brush stroke.
7  #[ allow( dead_code ) ]
8  #[ derive( Debug, Clone ) ]
9  pub struct StrokeBrushChangeColor
10  {
11    pub( crate ) id : Id,
12    pub( crate ) val : Rgba< f32 >,
13  }
14
15  impl StrokeBrushChangeColor
16  {
17    /// Constructor.
18    pub fn new< Color >( id : Id, val : Color ) -> Self
19    where
20      Color : RgbaInterface< f32 >,
21    {
22      Self{ id, val : val.into_rgba() }
23    }
24  }
25
26  impl ChangeInterface for StrokeBrushChangeColor
27  {
28  }
29
30}
31
32crate::mod_interface!
33{
34  exposed use StrokeBrushChangeColor;
35}