Struct mterm::TickInput[][src]

pub struct TickInput {
    pub dt: Duration,
    pub width: u32,
    pub height: u32,
    pub key: KeyState,
    pub mouse: Option<MouseState>,
}
Expand description

Contains information for the tick method in App.

Fields

dt: Duration

This is the delta time since last time tick was called.

width: u32

Current width of the window in characters.

height: u32

Current height of the window in characters.

key: KeyState

May contain information on a key pressed or released, along with shift modifiers.

mouse: Option<MouseState>

May contain information on a mouse event such as a click or mouse movement.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.