====== Azul ======
A powerful library for building GUI in Rust.
[[https://github.com/maps4print/azul/|GitHub Source]]
===== Styling with CSS =====
To call CSS you need to create a .css file somewhere in and point to it at the beginning of your app with a line like this one :
macro_rules! CSS_PATH {
() => {
concat!(env!("CARGO_MANIFEST_DIR"), "/src/style.css")
};
}
To give a class to an item you hand it over in the Layout Implementation of your app with a line such as :
Dom::div().with_child(label.with_class("labels"))
===== Current problems =====
=== Display Glitch ===
I am currently encountering a problem on my RBS while running the examples and even simple test programs I write with the redrawing. The content of the application disappears then reappears leaving a white blank page in between. I do not yet know where this comes from. For further investigation I will test the same examples and test programs on my main computer.
=== Text overflows the div ===
There seems to be a problem with divs and large text where some letters get cropped :
{{programming:azul_pb_1.png}}
=== Window overflow ===
Sometimes when running an example the program launches multiple identical windows (clones of the program in a way) perfectly stacked on top of each other. Moving the windows around reveals the glitch.
{{programming:azul_pb_2.png?500}}
=== Text disappears ===
Seems to affect only buttons and not labels but the text in the button sporadically disappears. It also seems like giving another window (other from the program) focus and coming back to the program makes the problem disappears.