pub trait StyleMisc {
// Provided methods
fn swatch_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32) { ... }
fn swatch(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn color_preview(&self, _ui: &mut Ui, _argb: u32, _r: [i32; 4]) { ... }
fn color_marker(&self, _ui: &mut Ui, _x_fx: i32, _y_fx: i32) { ... }
fn color_wheel(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn box_deco(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn window_bg(&self, _ui: &mut Ui, _w: i32, _h: i32) { ... }
}Expand description
swatches, colour picker parts, box decorations, window background (misc.s)
Provided Methods§
Sourcefn swatch_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
fn swatch_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
value colour, value2 1 = selected, ev
fn swatch(&self, _ui: &mut Ui, _sp: &Sp<'_>)
fn color_preview(&self, _ui: &mut Ui, _argb: u32, _r: [i32; 4])
Sourcefn color_marker(&self, _ui: &mut Ui, _x_fx: i32, _y_fx: i32)
fn color_marker(&self, _ui: &mut Ui, _x_fx: i32, _y_fx: i32)
marker at 24.8 px
Sourcefn color_wheel(&self, _ui: &mut Ui, _sp: &Sp<'_>)
fn color_wheel(&self, _ui: &mut Ui, _sp: &Sp<'_>)
rect = the wheel’s square, s[0] radius px, value hue (tenths of a degree), value2 saturation 0..1000, s[1] 1 = focus visual
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".