This can be used to register an action with the GPUI runtime when you want to manually implement
the Action trait. Typically you should use the Action derive macro or actions! macro
instead.
When added to a trait, #[derive_inspector_reflection] generates a module which provides
enumeration and lookup by name of all methods that have the shape fn method(self) -> Self.
This is used by the inspector so that it can use the builder methods in Styled and
StyledExt.
#[derive(AppContext)] is used to create a context out of anything that holds a &mut App
Note that a #[app] attribute is required to identify the variable holding the &mut App.
#[derive(VisualContext)] is used to create a visual context out of anything that holds a &mut Window and
implements AppContext
Note that a #[app] and a #[window] attribute are required to identify the variables holding the &mut App,
and &mut Window respectively.