The fn_widget is a macro that create a widget from a function widget from
a expression. Its syntax is extended from rust syntax, you can use @ and
$ in the expression, the @ is a short hand of rdl macro, and $name
use to expression a state reference of name.
Includes an SVG file as an Svg.
The file is located relative to the current crate (similar to the location
of your cargo.toml). The provided path is interpreted in a
platform-specific way at compile time. For example, a Windows path with
backslashes \ would not compile correctly on Unix.
This macro returns an expression of type Svg.
A macro use to declare an object. This macro will use ctx!() to access
the BuildCtx, so it can only use in a scope that has a BuildCtx named as
ctx!().
The watch! macro converts an expression into an Observable stream. Use
$ to mark the state reference, which automatically maps its modifications
to the expression value.
Macro attribute implement the Declare trait with that only build a
State<T> that not extend any built-in ability, and not support pipe! to
init the field.