Something went wrong. Try again.
Macros for egui LayoutJob and TextFormat [tangled.org mirror]
Something went wrong. Try again.
Files
- Rust 100%
README.md
egui_layout_job_macro #
As you can see, constructing a LayoutJob is currently a lot of work. It would be nice to have a helper macro for it! ~egui docs
Macros for egui LayoutJob and TextFormat
Installation #
cargo add egui_layout_job_macro
Macros are tested on the egui pinned in Cargo.toml, but it should theoretically work on any past and future releases.
Make sure egui is installed and available in your project
Usage #
use egui_layout_job_macro::layout_job;
layout_job!(@size[14](@white("Hello ") @mono(@black("World!"))));
See the documentation and example.rs for more examples.