resize window to 800x600
This commit is contained in:
parent
4b7b02a3ae
commit
18d8766df1
1 changed files with 8 additions and 3 deletions
11
src/main.rs
11
src/main.rs
|
@ -2,7 +2,10 @@ use std::process::exit;
|
|||
|
||||
// This is very heavily based off the iced getting started thing
|
||||
// If you're reading this trying to learn how to use iced with this as an example, don't. Just read the docs.
|
||||
use iced::widget::{Column, button, column, text};
|
||||
use iced::{
|
||||
Size,
|
||||
widget::{Column, button, column, text},
|
||||
};
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
lazy_static! {
|
||||
|
@ -67,10 +70,12 @@ impl TextDisplay {
|
|||
}
|
||||
}
|
||||
|
||||
fn main() -> iced::Result {
|
||||
iced::run(
|
||||
fn main() {
|
||||
iced::application(
|
||||
"A thingy (definitely won't steal your cookies)",
|
||||
TextDisplay::update,
|
||||
TextDisplay::view,
|
||||
)
|
||||
.window_size(Size::new(800.0, 600.0))
|
||||
.run().unwrap();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue