Skip to main content

StyleChrome

Trait StyleChrome 

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

Source

fn navigation_surface(&self, ui: &Ui) -> u32

Background for navigation placed on a branded accent surface.

Source

fn metric(&self, _id: u32) -> i32

layout value SM_* (sizes, gaps, box flags, text styles)

Source

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

Source

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

dialog surface (value footer h)

Source

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

Source

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

Source

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

Source

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

Source

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

ev, flags HB_* (HB_CLOSE), icon, value 1 = window active

Source

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

background of a library title bar: rect = the bar, value 1 = active

Source

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

value thickness px

Source

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

Implementors§