pub trait StyleValue {
// Provided methods
fn value_slider_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32) { ... }
fn value_slider(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn value_slider_thumb(&self, _ui: &mut Ui) -> i32 { ... }
fn angle_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32) { ... }
fn angle(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn pan_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32) { ... }
fn pan(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
}Expand description
value sliders (gradient tracks), angle, pan (value.s)
Provided Methods§
Sourcefn value_slider_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
fn value_slider_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
flags RG_*, value t 0..65536 along the travel, track (gradient) or None; state held = 2
fn value_slider(&self, _ui: &mut Ui, _sp: &Sp<'_>)
Sourcefn value_slider_thumb(&self, _ui: &mut Ui) -> i32
fn value_slider_thumb(&self, _ui: &mut Ui) -> i32
thumb length px (travel = length - thumb)
Sourcefn angle_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
fn angle_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
f degrees, s[0] 1 = focus visual
fn angle(&self, _ui: &mut Ui, _sp: &Sp<'_>)
Sourcefn pan_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
fn pan_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
img thumbnail or None; paint: value, value2 = the point (px)
fn pan(&self, _ui: &mut Ui, _sp: &Sp<'_>)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".