Skip to main content

ButtonStateTrait

Trait ButtonStateTrait 

Source
pub trait ButtonStateTrait: ButtonTrait {
    // Provided methods
    fn state(&self, state: GuiState) { ... }
    fn get_state(&self) -> GuiState { ... }
}
Expand description

The button state trait.

Provided Methods§

Source

fn state(&self, state: GuiState)

Set the button status.

§Remarks

Not applicable on push buttons button_push.

Source

fn get_state(&self) -> GuiState

Get button status.

§Remarks

Not applicable on push buttons button_push.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§