Re-exports§
pub use crate::GraphicsError;
pub use crate::MouseData;
pub use crate::Options;
pub use crate::System;
pub use crate::WindowScaling;
pub use winit_29 as winit;
pub use crate::dialogs::*;
pub use crate::scenes::*;
pub use crate::utilities::virtual_key_codes::*;
pub use crate::window_prefs::*;
Modules§
- animated
- app_
prefs - changing
- collection
- color
- conversion
- coord
- error
- errors
- file
- font
- format
- image
- jasc_
palette - mutation
- palette
- polyline
- pos
- prelude
- rendering
- scaling
- wrapper
- wrapping
Macros§
Structs§
- Animated
Indexed Image - Series of images to play as an animation
- AppPrefs
- Usage
- Audio
Engine - The main struct of the crate.
- Circle
- Clip
- Clip has four modes:
- Color
- This represents an RGBA color
- Coord
- Represents a 2D point
- Custom
Letter - Only the letter sizes you’ll use need to be set
- Drawable
- Represents a shape that is made of points that can be drawn either as a outline or solid
- Ellipse
- Graphics
- IciTileset
- Image
- Images are a rectangle of pixels that can be manipulated and drawn on screen/saved to disk
- Indexed
Image - Jasc
Palette - Line
- MapExit
- MapPosition
- MapSize
- Polygon
- Shape with any number of points/line
- Polyline
- Preferences
- Rect
- Rectangle
- Renderable
Animated Image - Renderable
Indexed Image - Renderable
Shape Collection - Renderable
Wrapped Image - Shape
Collection - Sound
Effect - Sound effect (although it can also be used for music) You must call SoundEffect::update or SoundEffect::update_secs with accurate values and often otherwise playback may stutter or jump
- Stats
- Text
- Text
Format - Characters be drawn be at idx * char_width, idx * char_height
- Tile
Descriptor - Tilemap
- Tilemap
Data Descriptor - Tilemap
File - Tileset
- collection of named tiles
- Timer
- Used for single or repeated timed events, uses fractional seconds
- Timing
- Used to track time in games
- Triangle
- Window
- Represents a window.
Enums§
- Angle
Position - Draw
Type - File
Palette - How palette data is stored in an ICI file
- Flat
Side - Game
Util Error - Indexed
Image Error - Indexed
Wrapper - Store static or animated images in a generic way
- KeyCode
- Code representing the location of a physical key
- Line
Type - Mouse
Button - Describes a button of a mouse controller.
- Palette
Error - Parse
Issue - Pixel
Font - PixelFont is used to set the size and positioning in pixels of text
- Play
Type - Positioning
- Scaling
- Segment
- TextPos
- Triangle
Angle Type - Triangle
Side Type - Wrapping
Strategy - Use
PixelFont::px_to_cols
to convert pixels to columns
Constants§
- ASCII_
CENT - ASCII_
CHECK - ASCII_
CURRENCY - ASCII_
DEGREE - ASCII_
ELLIPSIS - ASCII_
EURO - ASCII_
POUND - ASCII_
YEN - BLACK
- BLUE
- BROWN
- CYAN
- DARKER_
GRAY - DARK_
GRAY - GB_0
- Gameboy DMG-01 Background/Lightest
- GB_1
- GB_2
- GB_3
- Gameboy DMG-01 Foreground/Darkest
- GREEN
- LIGHTER_
GRAY - LIGHT_
GRAY - MAGENTA
- MID_
GRAY - OFF_
BLACK - OFF_
WHITE - ORANGE
- PURPLE
- RED
- SUPPORTED_
SYMBOLS - TRANSPARENT
- WHITE
- YELLOW
Traits§
- Change
Colors - Color
Conversion - Converts to/from RGBA and ARGB
- Contains
Shape - A shape counts as contained if it is fully inside
- Coord
Into Text Pos - Create
Drawable - Insert
Drawable - Insert
Shape - Insert
Shape Box - Intersects
Contains - Intersects
Shape - Lerp
- NewSound
Effect - NewText
Pos - Opaque
Color Conversion - Converts to/from RGB
- Renderable
- Represents anything that Graphics can render
- Shape
- Tint
Functions§
- calc_
bounds - chr_
to_ code - fill
- flerp
- This method has to be separate and named differently because f32::lerp already exists but is unstable
- get_
pref_ dir - inv_
flerp - calculate the percent for
point
betweenself
andend
- measure_
text - Return size in pixels for text
Run
text
through wrapping strategy first - run
- Create and run a loop using Pixels and Winit
- stroke
Type Aliases§
- FxHash
Set - Type alias for a hash set that uses the Fx hashing algorithm.