pub trait StyleChrome {
// Provided methods
fn navigation_surface(&self, ui: &Ui) -> u32 { ... }
fn metric(&self, _id: u32) -> i32 { ... }
fn dialog_smoke(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn dialog_frame(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn infobar_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32) { ... }
fn infobar(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) { ... }
fn infobar_close(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn statusbar(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn caption_button(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn window_titlebar(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn window_border(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
fn window_dialog_fill(&self, _ui: &mut Ui, _sp: &Sp<'_>) { ... }
}Expand description
layout metrics, dialogs, info bars, status / title bars, caption buttons, window frames (chrome.s)
Provided Methods§
Background for navigation placed on a branded accent surface.
fn dialog_smoke(&self, _ui: &mut Ui, _sp: &Sp<'_>)
Sourcefn dialog_frame(&self, _ui: &mut Ui, _sp: &Sp<'_>)
fn dialog_frame(&self, _ui: &mut Ui, _sp: &Sp<'_>)
dialog surface (value footer h)
Sourcefn infobar_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
fn infobar_size(&self, _ui: &mut Ui, _sp: &mut Sp<'_>) -> (i32, i32)
size: flags severity, label title, label2 message, sets s[0] / s[1] title / message width; paint sets s[2] / s[3] = close button x / size (hence &mut); close: ev
fn infobar(&self, _ui: &mut Ui, _sp: &mut Sp<'_>)
fn infobar_close(&self, _ui: &mut Ui, _sp: &Sp<'_>)
fn statusbar(&self, _ui: &mut Ui, _sp: &Sp<'_>)
ev, flags HB_* (HB_CLOSE), icon, value 1 = window active
Sourcefn window_titlebar(&self, _ui: &mut Ui, _sp: &Sp<'_>)
fn window_titlebar(&self, _ui: &mut Ui, _sp: &Sp<'_>)
background of a library title bar: rect = the bar, value 1 = active
Sourcefn window_border(&self, _ui: &mut Ui, _sp: &Sp<'_>)
fn window_border(&self, _ui: &mut Ui, _sp: &Sp<'_>)
value thickness px
fn window_dialog_fill(&self, _ui: &mut Ui, _sp: &Sp<'_>)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".