Macro font_receive

Source
macro_rules! font_receive {
    ( $callback:expr $(,)? ) => { ... };
}
Expand description

Macro to wrap a font receive callback.

Generates a RawFontReceive wrapper around the passed callback.

ยงUsage

let font_receive: RawFontReceive = font_receive!(|id, font| {
    use nexus::log::{log, LogLevel};
    log(LogLevel::Info, "My Addon", format!("font {id} received"));
});