pub fn with_style_and_color_vars<F>(
        &self,
        style_vars: &[StyleVar],
        color_vars: &[(StyleColor, [f32; 4])],
        f: F,
    ) where
        F: FnOnce(),
    {
        self.with_style_vars(style_vars, || {
            self.with_color_vars(color_vars, f);
        });
    }
/// Runs a function after temporarily pushing an array of values to the
/// style and color stack.
Runs a function after temporarily pushing an array of values to the
style and color stack.
Runs a function after temporarily pushing an array of values to the style and color stack .
pub fn with_style_and_color_vars<F>(
        &self,
        style_vars: &[StyleVar],
        color_vars: &[(StyleColor, [f32; 4])],
        f: F,
    ) where
        F: FnOnce(),
    {
        self.with_style_vars(style_vars, || {
            self.with_color_vars(color_vars, f);
        });
    }
pub fn with_style_and_color_vars < F > ( & self , style_vars : & [ StyleVar ] , color_vars : & [ ( StyleColor , [ f32 ; 4 ] ) ] , f : F , ) where F : FnOnce ( ) , { self . with_style_vars ( style_vars , | | { self . with_color_vars ( color_vars , f ) ; } ) ; }
Runs a function after temporarily pushing an array of values to the
style and color stack.
Runs a function after temporarily pushing an array of values to the style and color stack .
&self
style_vars
&[StyleVar]
color_vars
&[(StyleColor, [f32; 4])]
f
F