Struct carbide_controls::PlainButton[][src]

pub struct PlainButton<GS> where
    GS: GlobalState
{ /* fields omitted */ }

Implementations

impl<GS: GlobalState> PlainButton<GS>[src]

pub fn on_click(
    self,
    fire: fn(myself: &mut Self, env: &mut Environment<GS>, global_state: &mut GS)
) -> Box<Self>
[src]

pub fn hover(self, is_hovered: Box<dyn State<bool, GS>>) -> Box<Self>[src]

pub fn pressed(self, pressed: Box<dyn State<bool, GS>>) -> Box<Self>[src]

pub fn new(child: Box<dyn Widget<GS>>) -> Box<Self>[src]

Trait Implementations

impl<GS: GlobalState> ChildRender for PlainButton<GS>[src]

impl<GS: Clone> Clone for PlainButton<GS> where
    GS: GlobalState
[src]

impl<GS: GlobalState> CommonWidget<GS> for PlainButton<GS>[src]

impl<GS: GlobalState> Event<GS> for PlainButton<GS>[src]

impl<GS: GlobalState> Layout<GS> for PlainButton<GS>[src]

impl<GS: GlobalState> StateSync<GS> for PlainButton<GS>[src]

impl<GS: GlobalState> Widget<GS> for PlainButton<GS>[src]

impl<GS: GlobalState> WidgetExt<GS> for PlainButton<GS>[src]

Auto Trait Implementations

impl<GS> !RefUnwindSafe for PlainButton<GS>[src]

impl<GS> !Send for PlainButton<GS>[src]

impl<GS> !Sync for PlainButton<GS>[src]

impl<GS> Unpin for PlainButton<GS>[src]

impl<GS> !UnwindSafe for PlainButton<GS>[src]

Blanket Implementations

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

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

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

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

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, U> Render<U> for T where
    T: CommonWidget<U> + ChildRender,
    U: GlobalState
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,