pub trait StyleName {
Show 17 associated constants and 0 method
const LABEL: &'static str = "label";
const INPUT: &'static str = "input";
const FOCUS: &'static str = "focus";
const SELECT: &'static str = "select";
const TEXT_FOCUS: &'static str = "text-focus";
const TEXT_SELECT: &'static str = "text-select";
const BUTTON_BASE: &'static str = "button-base";
const CONTAINER_BASE: &'static str = "container-base";
const CONTAINER_BORDER: &'static str = "container-border";
const CONTAINER_ARROWS: &'static str = "container-arrows";
const POPUP_BASE: &'static str = "popup-base";
const POPUP_BORDER: &'static str = "popup-border";
const POPUP_ARROW: &'static str = "popup-arrow";
const DIALOG_BASE: &'static str = "dialog-base";
const DIALOG_BORDER: &'static str = "dialog-border";
const DIALOG_ARROW: &'static str = "dialog-arrow";
const STATUS_BASE: &'static str = "status-base";
}Expand description
Extension trait for Style that defines some standard names used by rat-theme.
Use as
let s: Style = theme.style(Style::INPUT);Provided Associated Constants§
const LABEL: &'static str = "label"
const INPUT: &'static str = "input"
const FOCUS: &'static str = "focus"
const SELECT: &'static str = "select"
const TEXT_FOCUS: &'static str = "text-focus"
const TEXT_SELECT: &'static str = "text-select"
const BUTTON_BASE: &'static str = "button-base"
const CONTAINER_BASE: &'static str = "container-base"
const CONTAINER_BORDER: &'static str = "container-border"
const CONTAINER_ARROWS: &'static str = "container-arrows"
const POPUP_BASE: &'static str = "popup-base"
const POPUP_BORDER: &'static str = "popup-border"
const POPUP_ARROW: &'static str = "popup-arrow"
const DIALOG_BASE: &'static str = "dialog-base"
const DIALOG_BORDER: &'static str = "dialog-border"
const DIALOG_ARROW: &'static str = "dialog-arrow"
const STATUS_BASE: &'static str = "status-base"
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.