We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Good evening,
I'm trying to build a "Hello World" program with azul. I came up with the following code (re-using some code i found on the wiki):
extern crate azul; use azul::{prelude::*, widgets::{label::Label}}; struct HelloWorld { } impl Layout for HelloWorld { fn layout(&self, _: LayoutInfo<Self>) -> Dom<Self> { let label = Label::new("Hello World").dom(); Dom::div() .with_child(label) } } fn main() { let mut app = App::new(HelloWorld { }, AppConfig::default()).unwrap(); let window = app.create_window(WindowCreateOptions::default(), css::native()).unwrap(); app.run(window).unwrap(); }
It compiles well. However, when I run it, I get an empty window; my label is not displayed :-(
I must be missing something obvious... You're help is welcome.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Good evening,
I'm trying to build a "Hello World" program with azul. I came up with the following code (re-using some code i found on the wiki):
It compiles well. However, when I run it, I get an empty window; my label is not displayed :-(
I must be missing something obvious... You're help is welcome.
The text was updated successfully, but these errors were encountered: