pub struct WidgetStyle;Expand description
Anchor struct for the names of composite styles used by rat-widget’s.
Use as
let s: CheckboxStyle = theme.style(WidgetStyle::CHECKBOX);or more likely
Checkbox::new()
.styles(theme.style(WidgetStyle::CHECKBOX))
.render(area, buf, &mut state);Implementations§
Source§impl WidgetStyle
impl WidgetStyle
pub const BUTTON: &'static str = "button"
pub const CALENDAR: &'static str = "calendar"
pub const CHECKBOX: &'static str = "checkbox"
pub const CHOICE: &'static str = "choice"
pub const CLIPPER: &'static str = "clipper"
pub const COMBOBOX: &'static str = "combobox"
pub const DIALOG_FRAME: &'static str = "dialog-frame"
pub const FILE_DIALOG: &'static str = "file-dialog"
pub const FORM: &'static str = "form"
pub const LINE_NR: &'static str = "line-nr"
pub const LIST: &'static str = "list"
pub const MENU: &'static str = "menu"
pub const MONTH: &'static str = "month"
pub const MSG_DIALOG: &'static str = "msg-dialog"
pub const PARAGRAPH: &'static str = "paragraph"
pub const RADIO: &'static str = "radio"
pub const SCROLL: &'static str = "scroll"
pub const SCROLL_DIALOG: &'static str = "scroll.dialog"
pub const SCROLL_POPUP: &'static str = "scroll.popup"
pub const SHADOW: &'static str = "shadow"
pub const SLIDER: &'static str = "slider"
pub const SPLIT: &'static str = "split"
pub const STATUSLINE: &'static str = "statusline"
pub const TABBED: &'static str = "tabbed"
pub const TABLE: &'static str = "table"
pub const TEXT: &'static str = "text"
pub const TEXTAREA: &'static str = "textarea"
pub const TEXTVIEW: &'static str = "textview"
pub const TOOLBAR: &'static str = "toolbar"
pub const VIEW: &'static str = "view"
Auto Trait Implementations§
impl Freeze for WidgetStyle
impl RefUnwindSafe for WidgetStyle
impl Send for WidgetStyle
impl Sync for WidgetStyle
impl Unpin for WidgetStyle
impl UnsafeUnpin for WidgetStyle
impl UnwindSafe for WidgetStyle
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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