pub struct Style {
pub base: StyleProps,
pub hover: StyleProps,
pub pressed: StyleProps,
pub focused: StyleProps,
pub checked: StyleProps,
pub disabled: StyleProps,
}Expand description
Estilo de uma classe (ou variante): valores base e ajustes por estado.
Fields§
§base: StyleProps§hover: StyleProps§pressed: StyleProps§focused: StyleProps§checked: StyleProps§disabled: StylePropsImplementations§
Source§impl Style
impl Style
pub fn new(base: StyleProps) -> Self
pub fn hover(self, p: StyleProps) -> Self
pub fn pressed(self, p: StyleProps) -> Self
pub fn focused(self, p: StyleProps) -> Self
pub fn checked(self, p: StyleProps) -> Self
pub fn disabled(self, p: StyleProps) -> Self
Trait Implementations§
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Forget for Style
impl Freeze for Style
impl Move for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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