egui/egui_demo_lib
Emil Ernerfeldt 040553da78 impl<F> Widget for F where F: FnOnce(&mut Ui) -> Response
This enables functions that return `impl Widget`, so that you can
create a widget by just returning a lambda from a function.

For instance: `ui.add(toggle(bool))` (instead of `toggle(ui, bool)`)
2021-02-20 12:02:38 +01:00
..
benches Use explicit epaint over paint alias (re-export) 2021-02-14 10:53:39 +01:00
src impl<F> Widget for F where F: FnOnce(&mut Ui) -> Response 2021-02-20 12:02:38 +01:00
Cargo.toml Release 0.9.0 - light mode, right clicks and more 2021-02-07 17:06:51 +01:00
README.md Rename Egui to egui 2021-01-17 14:48:59 +01:00

egui demo library

this crate contains example code for egui.

it is in a separate crate for two reasons:

  • to ensure it only uses the public egui api.
  • to remove the amount of code in egui proper.