Skip to main content

Crate oxide_gui_core

Crate oxide_gui_core 

Source
Expand description

oxide-gui-core — no_std portable GUI core.

§Architecture

 Your app
   │
   ▼
 Canvas<B>          ← drawing helper; owns a &mut B
   │  uses
   ▼
 Backend (trait)    ← fill_rect / present / poll_event
   │  implemented by
   ├─ oxide-gui-linux :: MinifbBackend   (std, X11/Wayland via minifb)
   └─ oxide-gui-oxideos :: KernelBackend (no_std, OxideOS framebuffer)

oxide-gui-core itself has zero dependencies and is no_std compatible. Enable the alloc feature if your environment has a heap.

Re-exports§

pub use color::Color;
pub use event::Event;
pub use event::Key;
pub use event::MouseButton;
pub use backend::Backend;
pub use canvas::Canvas;

Modules§

backend
Backend — the single trait that every platform must implement.
canvas
Canvas<B> — high-level drawing helper built on top of a Backend.
color
Color type and helpers.
event
Input event types.
font
Embedded 8×16 bitmap font covering printable ASCII (0x20–0x7E).