Crate mterm
Source - Builder
- Used to build the window to host the ASCII rendering.
- Char
- FontData
- Contains the font pixel data for custom fonts.
- Image
- KeyState
- Can provide information about a key press or release, and will maintain the
current state of shift modifiers at all time.
- MouseState
- Provides information about the position of the mouse pointer, its buttons
and scroll wheel.
- Point
- PresentInput
- Provides presentation information and contains the arrays that can be
mutated to update the window’s contents.
- RenderState
- TickInput
- Contains information for the tick method in
App
.
- Colour
- Basic colours for convenience.
- Error
- All the possible errors that can occur from mterm.
- PresentResult
- Provides feedback to
mterm
’s main loop instructing whether the images were
written to. - RenderError
- TickResult
- Provides feedback to
mterm
’s main loop instructing it whether to keep
ticking or to stop and exit the application.
- App
- Application trait for hooking into the main loop of
mterm
.
- colour
- Generate a u32 compatible with the presentation arrays from colour
components.
- load_font_image
- Load a font from a given image in a byte array and generate a FontData
structure.
- run
- Start the main loop.
- run_internal
- RenderResult
- Result
- A result that can possible return an
mterm::Error
.