Store generic mouse regions on window that contain their event type id

This commit is contained in:
Nathan Sobo 2023-08-17 08:37:55 -06:00
parent 812d3f6af6
commit b95b2af3e0
8 changed files with 130 additions and 57 deletions

View file

@ -83,7 +83,7 @@ pub fn derive_element(input: TokenStream) -> TokenStream {
&mut self.metadata.style
}
fn handlers_mut(&mut self) -> &mut #crate_name::element::ElementHandlers<V> {
fn handlers_mut(&mut self) -> &mut Vec<#crate_name::element::EventHandler<V>> {
&mut self.metadata.handlers
}