Crate egui_demo_lib

source ·
Expand description

Demo-code for showing how egui is used.

This library can be used to test 3rd party egui integrations (see for instance https://github.com/not-fl3/egui-miniquad/blob/master/examples/demo.rs).

The demo is also used in benchmarks and tests.

§Feature flags

  • serde — Allow serialization using serde.
  • syntect — Enable better syntax highlighting using syntect.

§Optional dependencies

  • document-features — Enable this when generating docs.

Modules§

Macros§

Structs§

  • A test for sanity-checking and diagnosing egui rendering backends.
  • A menu bar in which you can select different demo windows to show.
  • Shows off one example of each major type of widget.

Constants§

Functions§

  • Detect narrow screens. This is used to show a simpler UI on mobile devices, especially for the web demo at https://egui.rs.