Every button { ... on_event: ... } handler goyda knows about, defined
once per event via goyda_macros::define_listener with both an
android (JNI) and a web (DOM) implementation inline. The macro emits
a pub mod on_<name> per platform, each gated behind that platform’s
feature, so exactly one is compiled into any given build - see
crate::platform for how $crate::platform::active_listeners picks
whichever one is active.
Embeds a file from the crate’s assets/ directory into the binary at
compile time, producing an Asset. A
missing file is a compile error. Best for small-to-medium files (images,
fonts, icons); for large or rarely-used assets, use crate::asset_ref!
instead.
References a file in the crate’s assets/ directory without embedding
it into the binary, producing an Asset
that’s loaded at runtime. Use this for large or dynamic assets (video,
audio, big image sets) instead of asset!.
Declares a set of named theme variants and the colors that vary between
them. The first two variants should be a light and a dark equivalent, in
that order, so OS theme detection picks a sensible default.