label

Macro label 

Source
macro_rules! label {
    ($text:expr) => { ... };
    ($text:expr, class: $class:expr) => { ... };
    ($text:expr, class: $class:expr, id: $id:expr) => { ... };
    ($text:expr, id: $id:expr) => { ... };
}
Expand description

Create a label with optional styling.

§Examples

use openkit::prelude::*;

let lbl = label!("Hello, World!");
let lbl = label!("Title", class: "heading");
let lbl = label!("Subtitle", class: "subtitle", id: "sub");