StyleName

Trait StyleName 

Source
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§

Source

const LABEL: &'static str = "label"

Source

const INPUT: &'static str = "input"

Source

const FOCUS: &'static str = "focus"

Source

const SELECT: &'static str = "select"

Source

const TEXT_FOCUS: &'static str = "text-focus"

Source

const TEXT_SELECT: &'static str = "text-select"

Source

const BUTTON_BASE: &'static str = "button-base"

Source

const CONTAINER_BASE: &'static str = "container-base"

Source

const CONTAINER_BORDER: &'static str = "container-border"

Source

const CONTAINER_ARROWS: &'static str = "container-arrows"

Source

const POPUP_BASE: &'static str = "popup-base"

Source

const POPUP_BORDER: &'static str = "popup-border"

Source

const POPUP_ARROW: &'static str = "popup-arrow"

Source

const DIALOG_BASE: &'static str = "dialog-base"

Source

const DIALOG_BORDER: &'static str = "dialog-border"

Source

const DIALOG_ARROW: &'static str = "dialog-arrow"

Source

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.

Implementations on Foreign Types§

Source§

impl StyleName for Style

Implementors§