[][src]Enum pixel_widgets::stylesheet::StyleState

pub enum StyleState<S: AsRef<str>> {
    Hover,
    Pressed,
    Checked,
    Disabled,
    Open,
    Closed,
    Drag,
    Drop,
    Custom(S),
}

Widget states

Variants

Hover

When the mouse is over the widget

Pressed

When the mouse is clicking on the widget

Checked

When the widget is in a checked state (checkbox, radio button)

Disabled

When a widget is disabled

Open

When a widget in an expanded state

Closed

When a widget is in a collapsed state

Drag

When a drag widget is being dragged

Drop

When a drop widget accepts a dragged widget before it's dropped

Custom(S)

Custom state for custom widgets

Trait Implementations

impl<S: Clone + AsRef<str>> Clone for StyleState<S>[src]

impl<A: AsRef<str>, B: AsRef<str>> PartialEq<StyleState<B>> for StyleState<A>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for StyleState<S> where
    S: RefUnwindSafe
[src]

impl<S> Send for StyleState<S> where
    S: Send
[src]

impl<S> Sync for StyleState<S> where
    S: Sync
[src]

impl<S> Unpin for StyleState<S> where
    S: Unpin
[src]

impl<S> UnwindSafe for StyleState<S> where
    S: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.