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§

easy_mark
Experimental markup language

Macros§

egui_github_link_file
Create a Hyperlink to this egui source code file on github.
egui_github_link_file_line
Create a Hyperlink to this egui source code file and line on github.

Structs§

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

Constants§

LOREM_IPSUM
LOREM_IPSUM_LONG

Traits§

Demo
Something to view
View
Something to view in the demo windows

Functions§

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