Module piston_window::prelude
source · Expand description
Exports all of the types exposed by this module, except for graphics
.
The graphics
module contains a module and function called image
,
which is very likely to conflict with the image
crate.
Using the name “prelude” also suppresses the wildcard import warning from clippy.
Modules§
- Back-end agnostic controller events.
- Event identifiers.
- A Piston event loop for games and interactive applications
- Trait for generic events
- A flexible structure for user interactions to be used in window frameworks and widgets libraries.
- Back-end agnostic keyboard keys.
- Back-end agnostic mouse buttons.
- Window storage and interfacing traits.
Structs§
- After render arguments.
- Stores graphics API version.
- Button arguments.
- Close arguments.
- Components of a controller axis move event. Not guaranteed consistent across backends.
- Components of a controller button event. Not guaranteed consistent across backends.
- Components of a controller hat move event (d-Pad).
- Stores event loop settings.
- An event loop iterator
- Idle arguments, such as expected idle time in seconds.
- A window without user interface, often used in server event loops.
- Contains everything required for controlling window, graphics, event loop.
- Structure to store the window position.
- Render arguments.
- Resize arguments.
- Structure to store the window size.
- Represents a texture.
- Context required to create and update textures.
- Texture creation parameters.
- Touch arguments
- An error for when a graphics API is unsupported.
- Update arguments, such as delta time in seconds.
- Settings structure for window behavior.
Enums§
- Models different kinds of buttons.
- Stores button state.
- Models all events.
- Models dragging and dropping files.
- Sampling filter
- Flip settings.
- Stores controller hat state.
- Models input events.
- Represent a keyboard key. Keycodes follows SDL http://wiki.libsdl.org/SDLKeycodeLookup
- Models loop events.
- Models different kinds of motion.
- Represent a mouse button.
- Stores the touch state.
Constants§
- The default maximum frames per second.
- The default updates per second.
- The default delayed updates reset.
Traits§
- Trait representing a window with the most features that are still generic.
- After rendering and buffers are swapped.
- Constructs a window from a
WindowSettings
object. - Changed button state.
- Window is closing.
- The position of a controller axis changed.
- When window gets or loses cursor.
- Methods implemented for changing event loop settings.
- When window gets or loses focus.
- Implemented by all events.
- When background tasks should be performed.
- The position of the mouse cursor.
- The relative movement of mouse cursor.
- The scroll of the mouse wheel.
- Trait for OpenGL specific operations on a window.
- The press of a button.
- The release of a button.
- When the next frame should be rendered.
- When the window is resized.
- When receiving text from user, such as typing a character.
- When a touch is started, moved, ended or cancelled.
- When the application state should be updated.
- Trait representing the minimum requirements for defining a window.
Type Aliases§
- 2D graphics.
- Texture type compatible with
G2d
. - Texture context.
- Actual device used by Gfx backend.
- Actual gfx::Stream implementation carried by the window.
- Actual factory used by Gfx backend.
- Glyph cache.
- The type of an OpenGL function address.
- The type of time stamp.