# retroglyph-window > Shared winit windowing layer for retroglyph's windowed backends **Version:** 0.0.0 **Authors:** Matan Lurey **License:** MIT **Repository:** https://github.com/crates-lurey-io/retroglyph **Keywords:** roguelike, terminal, grid, gamedev Generated: 2026-08-05 20:21:10 UTC Created by: [cargo-llms-txt](https://github.com/masinc/cargo-llms-txt) ## Core Documentation - [Complete API Documentation](llms-full.txt): Full public API documentation with detailed descriptions - [README](README.md): Project overview and getting started guide - [Cargo.toml](Cargo.toml): Project configuration and dependencies ## Table of Contents ### src/backend.rs - pub struct WindowBackend - impl WindowBackend - impl Output for WindowBackend - impl Input for WindowBackend - impl Cursor for WindowBackend - impl Output for tests::NullPresenter - impl Presenter for tests::NullPresenter ### src/lib.rs - pub mod atlas - pub mod backend - pub mod clipboard - pub mod font - pub mod geometry - pub mod palette - pub mod presenter - pub mod sprite_cache - pub mod tileset - pub mod web - pub mod winit - pub use backend::WindowBackend - pub use clipboard::SystemClipboard - pub use clipboard::{Clipboard, ClipboardError} - pub use geometry::CellGeometry - pub use presenter::{GenericSurfaceError, Presenter, RecoverableError, WindowHandle, cell_art_glyph} - pub use raw_window_handle ### src/palette.rs - pub const DEFAULT_FG - pub const DEFAULT_BG ### src/sprite_cache.rs - pub struct Sprite - impl Sprite - pub struct SpriteCache - impl SpriteCache - impl Default for SpriteCache - pub struct SpriteTint - impl SpriteTint - pub fn warn_sprite_needs_span - pub fn warn_tint_needs_sprite ### src/geometry.rs - pub struct CellGeometry - impl CellGeometry ### src/web.rs - pub fn winit_canvas ### src/font.rs - pub struct BitmapFont - impl BitmapFont - impl PartialEq for BitmapFont - impl Eq for BitmapFont - pub struct ResolvedGlyph - impl ResolvedGlyph - pub struct FontChain - impl From for FontChain - impl FontChain - pub mod unscii16 - pub const unscii16::FONT - pub mod legacy_computing - pub mod legacy_computing::blocks - pub const legacy_computing::blocks::FONT - pub mod legacy_computing::braille - pub const legacy_computing::braille::FONT ### src/clipboard.rs - pub trait Clipboard - pub struct ClipboardError - impl ClipboardError - impl fmt::Display for ClipboardError - impl std::error::Error for ClipboardError - pub struct SystemClipboard - impl fmt::Debug for SystemClipboard - impl SystemClipboard - impl Clipboard for SystemClipboard - impl Clipboard for tests::FakeClipboard ### src/tileset.rs - pub enum SheetColor - pub enum SpriteAlign - impl SpriteAlign - pub enum TilesetError - impl fmt::Display for TilesetError - impl std::error::Error for TilesetError - pub enum Codepage - impl Codepage - pub const CP437_TO_UNICODE - pub struct TilesetOptions - impl TilesetOptions - pub struct TilesetBuilder - impl TilesetBuilder ### src/presenter.rs - pub trait WindowHandle - impl WindowHandle for T - pub trait RecoverableError - impl RecoverableError for core::convert::Infallible - pub enum GenericSurfaceError - impl fmt::Display for GenericSurfaceError - impl std::error::Error for GenericSurfaceError - impl RecoverableError for GenericSurfaceError - pub trait Presenter - pub fn cell_art_glyph ### src/atlas.rs - pub const ATLAS_COLS - pub const ATLAS_ROWS - pub const SLOTS_PER_LAYER - pub const MAX_SLOTS - pub fn addressable_glyphs - pub struct AtlasGeometry - impl AtlasGeometry - pub struct AtlasData - impl AtlasData - pub struct GlyphAtlas - impl GlyphAtlas ### src/winit/mod.rs - pub mod run - pub mod translate - pub use run::{EventProxy, EventProxyClosed, WindowConfig, run_app, run_app_with_proxy, run_app_with_typed_proxy, run_windowed, run_windowed_with_proxy, run_windowed_with_typed_proxy} ### src/winit/run.rs - pub struct EventProxy - impl Clone for EventProxy - impl fmt::Debug for EventProxy - impl EventProxy - pub struct EventProxyClosed - impl EventProxyClosed - impl fmt::Display for EventProxyClosed - impl std::error::Error for EventProxyClosed - pub struct WindowConfig - impl WindowConfig - pub fn run_windowed - pub fn run_windowed_with_proxy - pub fn run_windowed_with_typed_proxy - pub fn run_app - pub fn run_app_with_proxy - pub fn run_app_with_typed_proxy - impl From for WindowAttrs - impl Default for WindowAttrs - impl WindowApp - impl ApplicationHandler for WindowApp - impl WindowApp - impl Default for tests::MockPresenter - impl Output for tests::MockPresenter - impl Presenter for tests::MockPresenter - impl Output for tests::RecordingPresenter - impl Presenter for tests::RecordingPresenter - impl Output for tests::FailingPresenter - impl Presenter for tests::FailingPresenter - impl crate::presenter::RecoverableError for tests::Unknown - impl core::fmt::Display for tests::UnrecoverableError - impl crate::presenter::RecoverableError for tests::UnrecoverableError - impl Output for tests::FatalPresenter - impl Presenter for tests::FatalPresenter - impl Output for tests::GridRecordingPresenter - impl Presenter for tests::GridRecordingPresenter ### src/winit/translate.rs - pub fn translate_ime - pub fn translate_key - pub fn translate_key_location - pub fn translate_physical_pos - pub fn translate_pixel_to_cell - pub fn translate_mouse_button - pub fn translate_key_event_kind - pub fn translate_modifiers --- ## README.md ### retroglyph-window Shared winit windowing layer for retroglyph's windowed backends Part of the [retroglyph](https://github.com/crates-lurey-io/retroglyph) workspace. ## Cargo.toml ```toml [package] name = "retroglyph-window" version = "0.0.0" edition = "2024" description = "Shared winit windowing layer for retroglyph's windowed backends" license = "MIT" repository = "https://github.com/crates-lurey-io/retroglyph" keywords = ["roguelike","terminal","grid","gamedev"] categories = ["game-development","graphics"] authors = ["Matan Lurey "] ```