Skip to main content

Stock

Struct Stock 

Source
pub struct Stock;
Expand description

the stock data-view and shell painters (Style::data / Style::shell default)

Trait Implementations§

Source§

impl StyleData for Stock

Source§

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<'_>)

the header strip behind the header cells (rect = the strip)
Source§

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<'_>)

row background: ev, value 1 = selected, value2 = row index, flags GR_*
Source§

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)

badge: flags BADGE_*, label; size -> (w, h)
Source§

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

Source§

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

status dot: flags BADGE_*
Source§

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

meter (capacity bar): value, value2 maximum, flags BADGE_* of the fill
Source§

fn chart_palette(&self, ui: &Ui) -> [u32; 8]

the categorical colours of charts (series 0 .. 7, 0xAARRGGBB)
Source§

impl StyleShell for Stock

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<'_>)

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.