egui_layout_job_macro 0.1.0

Macros for egui LayoutJob and TextFormat
Documentation

egui_layout_job_macro

Crates.io Version Github Version Crates.io MSRV docs.rs GitHub License

GitHub code size GitHub repo size GitHub last commit (branch) GitHub commits since latest release (branch) GitHub Release Date Libraries.io dependency status for GitHub repo

Crates.io Downloads (recent) Crates.io Total Downloads

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.