Skip to main content

StyleList

Trait StyleList 

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

Source

fn focus_rect(&self, _ui: &mut Ui, _x: i32, _y: i32, _w: i32, _h: i32)

focus visual drawn ON a rectangle (rows, tabs, headers)

Source

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

hover area, track margin at both ends, shortest thumb (px)

Source

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

Source

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

Source

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)

Source

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

reorder marker centred on y across x .. + w

Source

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

ev, value 1 = selected, value2 1 = disabled, flags 1 = dragged row, 2 = focus visual

Source

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

sets s[0] label padding, s[1] height, s[2] pill width

Source

fn tab_font(&self, ui: &mut Ui, _selected: bool)

Select the font used to measure or paint a tab; default preserves the body face.

Source

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

tab: ev, value selected, value2 disabled, label; pill: strip rect, value pill x

Source

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

Source

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

Source

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

Source

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

Implementors§