Skip to main content

StyleValue

Trait StyleValue 

Source
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§

Source

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

Source

fn value_slider(&self, _ui: &mut Ui, _sp: &Sp<'_>)

Source

fn value_slider_thumb(&self, _ui: &mut Ui) -> i32

thumb length px (travel = length - thumb)

Source

fn angle_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)

f degrees, s[0] 1 = focus visual

Source

fn angle(&self, _ui: &mut Ui, _sp: &Sp<'_>)

Source

fn pan_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)

img thumbnail or None; paint: value, value2 = the point (px)

Source

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".

Implementors§