Get the primary monitor's resolution before displaying the window. #1414
-
I want to have access to the primary monitor's resolution at this position so that I can set the initial window position to be at the very right bottom using this information. // here 👈
let win_options = NativeOptions {
initial_window_pos: // Calculate the position based on the info above 👆,
..Default::default()
};
run_native(Box::new(app), win_options); I know this feature is available in Winit in this example, but this example instantiates a new window and a new event loop which is not good cause Egui is already instantiating both, so is there a proper way to get this information? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
No, not at the moment. If you want fine control over running egui natively I suggest you use |
Beta Was this translation helpful? Give feedback.
No, not at the moment.
eframe
is meant as an abstraction over web and native, so it is difficult to expose everything from both targets.If you want fine control over running egui natively I suggest you use
egui_glow
directly, like so: https://github.com/emilk/egui/blob/master/egui_glow/examples/pure_glow.rs