Struct immi::UiState [] [src]

pub struct UiState {
    pub active_widget: Option<WidgetId>,
}

Contains some persistent info about the UI.

Fields

active_widget: Option<WidgetId>

Identifier of the widget that is currently active.

For example if you maintain the left button of the mouse, the element under will be active. If you then move your mouse somewhere else, the active element doesn't change.

Trait Implementations

impl Eq for UiState
[src]

impl PartialEq for UiState
[src]

fn eq(&self, __arg_0: &UiState) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &UiState) -> bool

This method tests for !=.

impl Default for UiState
[src]

fn default() -> UiState

Returns the "default value" for a type. Read more

impl Clone for UiState
[src]

fn clone(&self) -> UiState

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more