pub fn new(
        color: CssColor,
        bad_color: CssColor,
        font: CssFont,
        name: String,
        pos: Pos,
    ) -> Self {
        let mut r = Self {
            pos,
            pso: Pso {
                fill_color: Some(color),
                font: Some(font),
            },
            bad_pso: Pso {
                fill_color: Some(bad_color),
                font: Some(font),
            },
            name,
            value: 0,
            label_buf: String::new(),
        };
        r.refresh_buffer();
        r
    }
/// Create new score with *color* for normal color, *bad_color* for negative scores with font, name and position.
Create new score with *color* for normal color, *bad_color* for negative scores with font, name and position.
Create new score with * color * for normal color * bad_color * for negative scores with font name and position .
pub fn new(
        color: CssColor,
        bad_color: CssColor,
        font: CssFont,
        name: String,
        pos: Pos,
    ) -> Self {
        let mut r = Self {
            pos,
            pso: Pso {
                fill_color: Some(color),
                font: Some(font),
            },
            bad_pso: Pso {
                fill_color: Some(bad_color),
                font: Some(font),
            },
            name,
            value: 0,
            label_buf: String::new(),
        };
        r.refresh_buffer();
        r
    }
pub fn new ( color : CssColor , bad_color : CssColor , font : CssFont , name : String , pos : Pos , ) -> Self { let mut r = Self { pos , pso : Pso { fill_color : Some ( color ) , font : Some ( font ) , } , bad_pso : Pso { fill_color : Some ( bad_color ) , font : Some ( font ) , } , name , value : 0 , label_buf : String :: new ( ) , } ; r . refresh_buffer ( ) ; r }
Create new score with *color* for normal color, *bad_color* for negative scores with font, name and position.
Create new score with * color * for normal color * bad_color * for negative scores with font name and position .
color
CssColor
bad_color
CssColor
font
CssFont
name
String
pos
Pos
color
CssColor
bad_color
CssColor
font
CssFont
name
String
pos
Pos