macro_rules! impl_has_focus {
($cc:ident:$area:ident: $($n:ident),* for $ty:ty) => { ... };
($cc:ident: $($n:ident),* for $ty:ty) => { ... };
($($n:ident),* for $ty:ty) => { ... };
}Expand description
Create the implementation of HasFocus for the given list of struct members.
Create a container with no identity.
impl_has_focus!(field1, field2, field3 for MyState);Create a container with an identity.
impl_has_focus!(container: field1, field2, field3 for MyState);Create a container with an identity and an area that will react to mouse clicks.
impl_has_focus!(container:area: field1, field2, field3 for MyState);