pub struct Stock;Expand description
the stock data-view and shell painters (Style::data / Style::shell default)
Trait Implementations§
Source§impl StyleData for Stock
impl StyleData for Stock
Source§fn grid_metrics(&self, _ui: &Ui) -> (i32, i32, i32)
fn grid_metrics(&self, _ui: &Ui) -> (i32, i32, i32)
(header strip height, row height, cell padding) in DIP
Source§fn grid_header_bg(&self, ui: &mut Ui, sp: &Sp<'_>)
fn grid_header_bg(&self, ui: &mut Ui, sp: &Sp<'_>)
the header strip behind the header cells (rect = the strip)
Source§fn grid_header(&self, ui: &mut Ui, sp: &Sp<'_>)
fn grid_header(&self, ui: &mut Ui, sp: &Sp<'_>)
header cell: label, ev, flags GH_*; s[0] = the label inset (px)
Source§fn grid_row(&self, ui: &mut Ui, sp: &Sp<'_>)
fn grid_row(&self, ui: &mut Ui, sp: &Sp<'_>)
row background: ev, value 1 = selected, value2 = row index, flags GR_*
Source§fn tree_twisty(&self, ui: &mut Ui, sp: &Sp<'_>)
fn tree_twisty(&self, ui: &mut Ui, sp: &Sp<'_>)
tree expander glyph: value 1 = expanded, ev
Source§fn badge_size(&self, ui: &mut Ui, sp: &mut Sp<'_>) -> (i32, i32)
fn badge_size(&self, ui: &mut Ui, sp: &mut Sp<'_>) -> (i32, i32)
badge: flags BADGE_*, label; size -> (w, h)
fn badge(&self, ui: &mut Ui, sp: &Sp<'_>)
Source§fn status_dot(&self, ui: &mut Ui, sp: &Sp<'_>)
fn status_dot(&self, ui: &mut Ui, sp: &Sp<'_>)
status dot: flags BADGE_*
Source§impl StyleShell for Stock
impl StyleShell for Stock
the navigation pane’s surface (rect = the pane), flags 1 = compact
navigation item: ev, value 1 = selected, icon, label, label2 = badge text, flags
NAV_*; size -> (w, h)
section header of the navigation pane: label, flags NAV_COMPACT (then a divider)
Source§fn command_bar(&self, ui: &mut Ui, sp: &Sp<'_>)
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<'_>)
fn split_grip(&self, ui: &mut Ui, sp: &Sp<'_>)
splitter grip: ev, flags 1 = vertical split (a horizontal grip)
breadcrumb separator (rect = its place)
Source§fn segment(&self, ui: &mut Ui, sp: &Sp<'_>)
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<'_>)
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<'_>)
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<'_>)
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<'_>)
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<'_>)
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<'_>)
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<'_>)
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)
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)
fn dock_tab(&self, ui: &mut Ui, sp: &Sp<'_>)
Source§fn dock_rail(&self, ui: &mut Ui, sp: &Sp<'_>)
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<'_>)
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<'_>)
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<'_>)
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<'_>)
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<'_>)
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)
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<'_>)
fn desk_snap(&self, ui: &mut Ui, sp: &Sp<'_>)
where a dragged window snaps when it is released now (rect), value 1 = maximised
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)
Auto Trait Implementations§
impl Forget for Stock
impl Freeze for Stock
impl RefUnwindSafe for Stock
impl Send for Stock
impl Sync for Stock
impl Unpin for Stock
impl UnsafeUnpin for Stock
impl UnwindSafe for Stock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more