[−][src]Struct widgetry::style::Style
Fields
panel_bg: Color
field_bg: Color
dropdown_border: Color
icon_fg: Color
primary_fg: Color
text_fg_color: Color
text_tooltip_color: Color
text_hotkey_color: Color
text_destructive_color: Color
loading_tips: Text
section_bg: Color
section_outline: OutlineStyle
btn_plain: ButtonStyle
btn_outline: ButtonStyle
btn_floating: ButtonStyle
btn_solid: ButtonStyle
btn_tab: ButtonStyle
btn_solid_destructive: ButtonStyle
btn_plain_destructive: ButtonStyle
btn_solid_primary: ButtonStyle
btn_plain_primary: ButtonStyle
Implementations
impl<'a, 'c> Style
[src]
pub fn btn_back(&self, title: &'a str) -> ButtonBuilder<'a, 'c>
[src]
title: name of previous screen, which you'll return to
pub fn btn_next(&self) -> ButtonBuilder<'a, 'c>
[src]
A right facing caret, like ">", suitable for paging to the "next" set of results
pub fn btn_prev(&self) -> ButtonBuilder<'a, 'c>
[src]
A left facing caret, like "<", suitable for paging to the "next" set of results
pub fn btn_close(&self) -> ButtonBuilder<'a, 'c>
[src]
An "X" button to close the current state. Bound to the escape key.
pub fn btn_close_widget(&self, ctx: &EventCtx<'_>) -> Widget
[src]
An "X" button to close the current state. Bound to the escape key and aligned to the right, usually after a title.
pub fn btn_popup_icon_text(
&self,
icon_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a, 'c>
[src]
&self,
icon_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a, 'c>
impl Style
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Style
[src]
impl Send for Style
[src]
impl Sync for Style
[src]
impl Unpin for Style
[src]
impl UnwindSafe for Style
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,