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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user