Skip to content

Commit 492e8e5

Browse files
Newsletter 13: Add a section about Egui (#245)
* Newsletter 13: Add a section about Egui * Add missing _ for correct italics Co-authored-by: Joe Clay <[email protected]> Co-authored-by: Joe Clay <[email protected]>
1 parent c9b2687 commit 492e8e5

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

content/posts/newsletter-013/egui.png

28.5 KB
Loading

content/posts/newsletter-013/index.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,37 @@ organized with one branch for each subsection.
153153

154154
## Library & Tooling Updates
155155

156+
### [Egui]
157+
158+
[Egui] is a highly portable immediate mode GUI library in pure Rust.
159+
Egui can be integrated anywhere you can paint textured triangles.
160+
You can compile Egui to WASM and render it on a web page using [egui_web]
161+
or compile and run natively using [egui_glium].
162+
163+
[Click to run Egui web demo](https://emilk.github.io/egui/index.html)
164+
165+
Example:
166+
167+
```rust
168+
Window::new("Debug").show(ui.ctx(), |ui| {
169+
ui.label(format!("Hello, world {}", 123));
170+
if ui.button("Save").clicked {
171+
my_save_function();
172+
}
173+
ui.text_edit(&mut my_string);
174+
ui.add(Slider::f32(&mut value, 0.0..=1.0).text("float"));
175+
});
176+
```
177+
178+
![Egui](egui.png)
179+
180+
_Discussions:
181+
[/r/rust](https://reddit.com/r/rust/comments/hzwvsk/emigui_deserves_more_love)_
182+
183+
[Egui]: https://github.com/emilk/egui/
184+
[egui_glium]: https://crates.io/crates/egui_glium
185+
[egui_web]: https://crates.io/crates/egui_web
186+
156187
### 🐦 [Puffin Profiler]
157188

158189
Pufin is a simple instrumentation profiler created by [Embark]

0 commit comments

Comments
 (0)