pub enum Stock {
Button,
ComboBox,
Field,
ToggleButton,
ScrollBar,
}Expand description
The egui widgets a kit restyles in a scope, each through a component
of the kit (the scoped mapping of its boxes).
Variants§
Button
egui’s Button (and the widgets drawn as one: DragValue, a
CollapsingHeader’s header, a menu button), from button, by
tone: rest, hover, active, and selected for an open menu, are
egui’s inactive, hovered, active and open states.
ComboBox
The box of egui’s ComboBox, from combo-box: as Button,
selected while its list is open.
Field
egui’s TextEdit, from field, by tone: its background is the
resting fill, its outline the rest and hover borders, and while
it has the keyboard the focus border (egui’s selection stroke).
ToggleButton
egui’s button shown on or off (Button::selected,
selectable_label), from toggle-button: as Button, plus its
selected fill and text while on (egui’s selection colours).
ScrollBar
The bars of egui’s ScrollArea, from scroll-bar: the thumb’s
rest, hover and active fills are egui’s inactive, hovered
and active foreground colours, its radius their corners, and
track-fill egui’s extreme_bg_color. Only the bars: the
content is drawn in the style outside the scope
(UiPop::scroll_area).
Implementations§
Trait Implementations§
impl Copy for Stock
impl Eq for Stock
impl StructuralPartialEq for Stock
Auto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more