[−][src]Module quicksilver::prelude
A collection of common imports for convenience
Re-exports
pub use crate::Result; |
pub use crate::geom::*; |
pub use crate::graphics::Background::*; |
pub use crate::sound::Sound; |
Structs
Asset | A structure to manage the loading and use of a future |
Color | An RGBA color represented by normalized floats |
Font | An in-memory TTF font that can render text on demand |
FontStyle | The way text should appear on the screen |
Image | An image that can be drawn to the screen |
Settings | A builder that constructs a Window |
Window | The window currently in use |
Enums
Background | The background to use for a given drawable |
ButtonState | The current state of a button |
Error | An error generated by some Quicksilver subsystem |
Event | An input event |
GamepadAxis | The axes a gamepad can report |
GamepadButton | A button on a gamepad |
Key | |
MouseButton | The different buttons a user can press on a mouse |
Traits
Future | Trait for types which are a placeholder of a value that may become available at some later point in time. |
State | The structure responsible for managing the game loop state |
Functions
join_all | Creates a future which represents a collection of the results of the futures given. |
load_file | Create a Future that loads a file into an owned Vec of bytes |
result | Creates a new "leaf future" which will resolve with the given result. |
run | Run the application's game loop |