Skip to main content

StyleShell

Trait StyleShell 

Source
pub trait StyleShell {
Show 29 methods // Provided methods fn nav_pane(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn nav_item_size(&self, ui: &mut Ui, sp: &mut Sp<'_>) -> (i32, i32) { ... } fn nav_item(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn nav_section_size(&self, ui: &mut Ui, sp: &mut Sp<'_>) -> (i32, i32) { ... } fn nav_section(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn command_bar(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn split_grip(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn breadcrumb_sep(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn segment(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn wizard_step(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn toast(&self, ui: &mut Ui, sp: &mut Sp<'_>) { ... } fn spinner(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn progress_indeterminate(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn calendar_day(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn dock_group(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn dock_header(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn dock_tab_size(&self, ui: &mut Ui, sp: &mut Sp<'_>) -> (i32, i32) { ... } fn dock_tab(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn dock_rail(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn dock_marker(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn dock_preview(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn desk_bg(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn desk_window(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn desk_titlebar(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn desk_button(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn desk_snap(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn taskbar(&self, ui: &mut Ui, sp: &Sp<'_>) { ... } fn taskbar_button_size(&self, ui: &mut Ui, sp: &mut Sp<'_>) -> (i32, i32) { ... } fn taskbar_button(&self, ui: &mut Ui, sp: &Sp<'_>) { ... }
}
Expand description

app shell parts: navigation pane and items, command bar, splitter grip, breadcrumb, segmented control, wizard steps, toasts, spinner, indeterminate progress, calendar cells (shell.rs, notify.rs, datepick.rs). Token-based defaults in stock.rs.

Provided Methods§

Source

fn nav_pane(&self, ui: &mut Ui, sp: &Sp<'_>)

the navigation pane’s surface (rect = the pane), flags 1 = compact

Source

fn nav_item_size(&self, ui: &mut Ui, sp: &mut Sp<'_>) -> (i32, i32)

navigation item: ev, value 1 = selected, icon, label, label2 = badge text, flags NAV_*; size -> (w, h)

Source

fn nav_item(&self, ui: &mut Ui, sp: &Sp<'_>)

Source

fn nav_section_size(&self, ui: &mut Ui, sp: &mut Sp<'_>) -> (i32, i32)

section header of the navigation pane: label, flags NAV_COMPACT (then a divider)

Source

fn nav_section(&self, ui: &mut Ui, sp: &Sp<'_>)

Source

fn command_bar(&self, ui: &mut Ui, sp: &Sp<'_>)

the bar behind a command bar (rect = the bar)

Source

fn split_grip(&self, ui: &mut Ui, sp: &Sp<'_>)

splitter grip: ev, flags 1 = vertical split (a horizontal grip)

Source

fn breadcrumb_sep(&self, ui: &mut Ui, sp: &Sp<'_>)

breadcrumb separator (rect = its place)

Source

fn segment(&self, ui: &mut Ui, sp: &Sp<'_>)

segmented control item: ev, value 1 = selected, label, flags SEG_FIRST / SEG_LAST

Source

fn wizard_step(&self, ui: &mut Ui, sp: &Sp<'_>)

wizard step row: value step number (from 1), value2 WS_* state, label, ev

Source

fn toast(&self, ui: &mut Ui, sp: &mut Sp<'_>)

toast card: flags IB_* severity, label title, label2 message; s[0] = close button x, s[1] its size (set by the painter, hence &mut)

Source

fn spinner(&self, ui: &mut Ui, sp: &Sp<'_>)

spinner: value phase 0 .. 1023 (one turn), rect = its square

Source

fn progress_indeterminate(&self, ui: &mut Ui, sp: &Sp<'_>)

indeterminate progress bar: value phase 0 .. 1023

Source

fn calendar_day(&self, ui: &mut Ui, sp: &Sp<'_>)

day cell of a calendar: label, value 1 = selected, value2 1 = today, flags 1 = other month, ev

Source

fn dock_group(&self, ui: &mut Ui, sp: &Sp<'_>)

a dock group’s surface (rect = tab strip and content; dock.rs), value 1 = the keyboard focus is in the group

Source

fn dock_header(&self, ui: &mut Ui, sp: &Sp<'_>)

the tab strip of a dock group (rect = the strip, SM_DOCK_HDR high), value as dock_group

Source

fn dock_tab_size(&self, ui: &mut Ui, sp: &mut Sp<'_>) -> (i32, i32)

a tab of a dock group: label, icon, ev, value 1 = the shown panel, value2 1 = the focus is in the group, flags DOCK_TAB_HOLD = held long enough to be dragged (show it through the tokens); size -> (w, h), the core takes w (a tab is as high as the strip)

Source

fn dock_tab(&self, ui: &mut Ui, sp: &Sp<'_>)

Source

fn dock_rail(&self, ui: &mut Ui, sp: &Sp<'_>)

the rail of a collapsed dock side (rect), flags DOCK_LEFT / DOCK_RIGHT / DOCK_BOTTOM

Source

fn dock_marker(&self, ui: &mut Ui, sp: &Sp<'_>)

a drop marker while a panel is dragged: value DOCK_MK_* (the part of the place it fills), ev EV_HOVER while the pointer is over it

Source

fn dock_preview(&self, ui: &mut Ui, sp: &Sp<'_>)

where the dragged panel would go (rect), value 1 = a floating window there

Source

fn desk_bg(&self, ui: &mut Ui, sp: &Sp<'_>)

(L7) the background of a window area (desk.rs; rect = the area)

Source

fn desk_window(&self, ui: &mut Ui, sp: &Sp<'_>)

a window inside an area: shadow, surface and frame (rect = the window), value 1 = the active window, flags 1 = maximised (it fills the area: no shadow, square)

Source

fn desk_titlebar(&self, ui: &mut Ui, sp: &Sp<'_>)

its title bar (rect = the bar over the whole width, the buttons are drawn after it): value 1 = active, icon, label = the title; s[0], s[1] = x and width of the icon and title (px)

Source

fn desk_button(&self, ui: &mut Ui, sp: &Sp<'_>)

a button of its title bar: ev, flags HB_MIN / HB_MAX / HB_CLOSE, icon IC_CHROME_*, value 1 = the window is active; default: the style’s caption_button

Source

fn desk_snap(&self, ui: &mut Ui, sp: &Sp<'_>)

where a dragged window snaps when it is released now (rect), value 1 = maximised

Source

fn taskbar(&self, ui: &mut Ui, sp: &Sp<'_>)

the bar behind a taskbar (rect)

Source

fn taskbar_button_size(&self, ui: &mut Ui, sp: &mut Sp<'_>) -> (i32, i32)

a window’s button in a taskbar: label, icon, ev, value 1 = the active window, value2 1 = minimised, flags DTB_ICONS (icons only); size -> (w, h), the core takes w (a button is as high as the bar)

Source

fn taskbar_button(&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§