programming:azul

This is an old revision of the document!


Azul

A powerful library for building GUI in Rust.

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"))
  • programming/azul.1570295105.txt.gz
  • Last modified: 2020/06/01 16:36
  • (external edit)