pub trait StyleList {
Show 14 methods
// Provided methods
fn focus_rect(&self, _ui: &mut Ui, _x: i32, _y: i32, _w: i32, _h: i32) { ... }
fn scrollbar_thickness(&self, _ui: &mut Ui) -> i32 { ... }
fn scrollbar_margin(&self, _ui: &mut Ui) -> i32 { ... }
fn scrollbar_min_thumb(&self, _ui: &mut Ui) -> i32 { ... }
fn scrollbar(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn list_drop_line(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn list_row(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn tab_metrics(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) { ... }
fn tab_font(&self, ui: &mut Ui, _selected: bool) { ... }
fn tab(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn tab_pill(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn expander_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32) { ... }
fn expander_header(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn expander_body(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
}Expand description
focus rectangles, scroll bars, list rows, tabs, expanders (list.s)
Provided Methods§
Sourcefn focus_rect(&self, _ui: &mut Ui, _x: i32, _y: i32, _w: i32, _h: i32)
fn focus_rect(&self, _ui: &mut Ui, _x: i32, _y: i32, _w: i32, _h: i32)
focus visual drawn ON a rectangle (rows, tabs, headers)
Sourcefn scrollbar_thickness(&self, _ui: &mut Ui) -> i32
fn scrollbar_thickness(&self, _ui: &mut Ui) -> i32
hover area, track margin at both ends, shortest thumb (px)
fn scrollbar_margin(&self, _ui: &mut Ui) -> i32
fn scrollbar_min_thumb(&self, _ui: &mut Ui) -> i32
Sourcefn scrollbar(&self, _ui: &mut Ui, _sp: &Sp<'_>)
fn scrollbar(&self, _ui: &mut Ui, _sp: &Sp<'_>)
flags 1 = vertical, value expansion 0..256, s[0] track start, s[1] thumb length, value2 thumb offset (px)
Sourcefn list_drop_line(&self, _ui: &mut Ui, _sp: &Sp<'_>)
fn list_drop_line(&self, _ui: &mut Ui, _sp: &Sp<'_>)
reorder marker centred on y across x .. + w
Sourcefn list_row(&self, _ui: &mut Ui, _sp: &Sp<'_>)
fn list_row(&self, _ui: &mut Ui, _sp: &Sp<'_>)
ev, value 1 = selected, value2 1 = disabled, flags 1 = dragged row, 2 = focus visual
Sourcefn tab_metrics(&self, _ui: &mut Ui, _sp: &mut Sp<'_>)
fn tab_metrics(&self, _ui: &mut Ui, _sp: &mut Sp<'_>)
sets s[0] label padding, s[1] height, s[2] pill width
Sourcefn tab_font(&self, ui: &mut Ui, _selected: bool)
fn tab_font(&self, ui: &mut Ui, _selected: bool)
Select the font used to measure or paint a tab; default preserves the body face.
Sourcefn tab(&self, _ui: &mut Ui, _sp: &Sp<'_>)
fn tab(&self, _ui: &mut Ui, _sp: &Sp<'_>)
tab: ev, value selected, value2 disabled, label; pill: strip rect, value pill x
fn tab_pill(&self, _ui: &mut Ui, _sp: &Sp<'_>)
Sourcefn expander_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
fn expander_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
header: ev, value open, value2 disabled, label; body: the content card’s rectangle
fn expander_header(&self, _ui: &mut Ui, _sp: &Sp<'_>)
fn expander_body(&self, _ui: &mut Ui, _sp: &Sp<'_>)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".