[−][src]Struct widgetry::Style
Fields
outline_thickness: f64
outline_color: Color
panel_bg: Color
hotkey_color: Color
hovering_color: Color
loading_tips: Text
btn_solid_dark: ButtonStyle
btn_outline_dark: ButtonStyle
btn_solid_light: ButtonStyle
btn_outline_light: ButtonStyle
btn_solid_destructive: ButtonStyle
btn_outline_destructive: ButtonStyle
Implementations
impl<'a> Style
[src]
fn btn_plain(&self, button_style: &ButtonStyle) -> ButtonBuilder<'a>
[src]
fn btn_solid(&self, button_style: &ButtonStyle) -> ButtonBuilder<'a>
[src]
fn btn_outline(&self, button_style: &ButtonStyle) -> ButtonBuilder<'a>
[src]
fn btn_hotkey(
&self,
button_style: &ButtonStyle,
label: &str,
key: Key
) -> ButtonBuilder<'a>
[src]
&self,
button_style: &ButtonStyle,
label: &str,
key: Key
) -> ButtonBuilder<'a>
impl Style
[src]
Trait Implementations
impl Clone for Style
[src]
impl<'a> StyledButtons<'a> for Style
[src]
fn btn_solid_dark(&self) -> ButtonBuilder<'a>
[src]
fn btn_outline_dark(&self) -> ButtonBuilder<'a>
[src]
fn btn_plain_dark(&self) -> ButtonBuilder<'a>
[src]
fn btn_solid_light(&self) -> ButtonBuilder<'a>
[src]
fn btn_outline_light(&self) -> ButtonBuilder<'a>
[src]
fn btn_plain_light(&self) -> ButtonBuilder<'a>
[src]
fn btn_plain_destructive(&self) -> ButtonBuilder<'a>
[src]
fn btn_solid_destructive(&self) -> ButtonBuilder<'a>
[src]
fn btn_outline_destructive(&self) -> ButtonBuilder<'a>
[src]
fn btn_solid_light_hotkey(&self, label: &str, key: Key) -> ButtonBuilder<'a>
[src]
fn btn_solid_dark_hotkey(&self, label: &str, key: Key) -> ButtonBuilder<'a>
[src]
fn btn_solid_dark_text(&self, text: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_solid_dark_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_solid_dark_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
[src]
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_outline_dark_text(&self, text: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_outline_dark_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_outline_dark_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
[src]
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_solid_light_text(&self, text: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_solid_light_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_solid_light_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
[src]
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_outline_light_text(&self, text: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_outline_light_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_outline_light_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
[src]
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_plain_dark_text(&self, text: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_plain_dark_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_plain_dark_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
[src]
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_plain_light_text(&self, text: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_plain_light_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_plain_light_icon_bytes(
&self,
labeled_bytes: (&'a str, &'a [u8])
) -> ButtonBuilder<'a>
[src]
&self,
labeled_bytes: (&'a str, &'a [u8])
) -> ButtonBuilder<'a>
fn btn_plain_light_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
[src]
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_plain_destructive_text(&self, text: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_plain_destructive_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_solid_destructive_text(&self, text: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_solid_destructive_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_solid_destructive_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
[src]
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_outline_destructive_text(&self, text: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_outline_destructive_icon(&self, image_path: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_outline_destructive_icon_text(
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
[src]
&self,
image_path: &'a str,
text: &'a str
) -> ButtonBuilder<'a>
fn btn_light_back(&self, title: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_dark_back(&self, title: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_solid_light_dropdown(&self) -> ButtonBuilder<'a>
[src]
fn btn_outline_light_dropdown(&self) -> ButtonBuilder<'a>
[src]
fn btn_solid_dark_dropdown(&self) -> ButtonBuilder<'a>
[src]
fn btn_outline_dark_dropdown(&self) -> ButtonBuilder<'a>
[src]
fn btn_outline_light_popup(&self, text: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_outline_dark_popup(&self, text: &'a str) -> ButtonBuilder<'a>
[src]
fn btn_next(&self) -> ButtonBuilder<'a>
[src]
fn btn_prev(&self) -> ButtonBuilder<'a>
[src]
fn btn_close(&self) -> ButtonBuilder<'a>
[src]
fn btn_close_widget(&self, ctx: &EventCtx<'_>) -> Widget
[src]
Auto Trait Implementations
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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>,