1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 23:13:13 -04:00

Full screen canvas

This commit is contained in:
Emil Ernerfeldt
2018-12-28 00:51:40 +01:00
parent 1c6fd220b2
commit 702ec23372
4 changed files with 93 additions and 44 deletions

View File

@@ -31,6 +31,12 @@ impl Default for App {
impl GuiSettings for App {
fn show_gui(&mut self, gui: &mut Layout) {
gui.label(format!(
"Screen size: {} x {}",
gui.input().screen_size.x,
gui.input().screen_size.y,
));
gui.checkbox("checkbox", &mut self.checked);
if gui