fn main() -> iced::Result {
let resolution = WScreen::new();
let (pos_x, pos_y) = resolution.coordinates_of(
ScreenLocations::Center,
Some(ApplicationSize {
width: 350.0,
height: 370.0,
..Default::default()
})
);
iced::application("MyApp", MyApp::update, MyApp::view)
.window(Settings {
min_size: Some(iced::Size::new(350.0, 370.0)),
max_size: Some(iced::Size::new(400.0, 900.0)),
size: iced::Size::new(350.0, 370.0),
position: window::Position::Specific(Point::new(pos_x, pos_y)),
..Settings::default()
})
.run()
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Window Positioning Helper Structure for the Iced GUI Library
License
f42h/wscreen
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Window Positioning Helper Structure for the Iced GUI Library