taut’s documents

Overview: the front page.

The book

A tutorial in ten chapters.

  1. A first window: a window with a button, and what happens inside.
  2. Boxes and layout: rows, columns, grids, sizes, scrolling, layers.
  3. Parts and state: who keeps what, ids and keys, custom parts.
  4. A real small app: a to-do list kept in a file.
  5. Larger parts: tables, lists, trees, menus, dialogs, panels, docks, windows, tray, charts, drag and drop.
  6. Text and pictures: fonts, scripts, emoji, pictures, SVG, shapes, 3D scenes, PDF and printing.
  7. Everyone can use it: keyboard, screen readers, themes, sizes, contrast.
  8. Testing: driving a window with no screen in cargo test.
  9. Inside another program: as a texture, under Direct3D 11 or OpenGL, in a DLL, as a whole screen.
  10. Coming from egui or Dear ImGui: what differs, and the usual calls side by side.

Every Rust block in the book is compiled by cargo test. Each picture is drawn from the code above it by examples/book.rs (cargo run -p taut --features emoji --example book -- docs/pictures), on Windows 11.

Reference

Details

Project