Module wasm_rgame::delegate_prelude [] [src]

The required types when implementing a delegate. You can glob import this to save time with: use wasm_rgame::delegate_prelude::*;

Structs

ApplicationContext
DelegateSpawner

Type used to spawn / spawn_root new delegates onto the Application

Graphics
KeyManager

The type managing the state of the keys. Use the key_code module for a list of KeyCodes to query for.

MouseState

The type that holds the state of the Mouse.

SpawnHandle
SpawnHandles

Helper type to compact holding onto multiple SpawnHandle<_>s with a single reference (at the cost of boxing). Given that spawning should be relatively not often, the allocation cost should be fine for the ergonomical trade-off.

Enums

MouseButton

Traits

Delegate

Trait for defining an interface for objects receiving updates from the application.

SpawnableDelegate

Trait for delegates that can be "spawned" on an DelegateManager. This trait defines the method of communciation with the spawned object as ownership is passed to the DelegateManager.