Structs§
- Element
Events Id - Uniquely identifies an element so that we can store it’s events in
VirtualEvents. - Event
Attrib Fn - Box<dyn AsRef
>> is our js_sys::Closure. Stored this way to allow us to store any Closure regardless of the types of its arguments. - Event
Name - The name of the event with the
onprefix. - Events
- We need a custom implementation of fmt::Debug since JsValue doesn’t implement debug.
- Mouse
Event - A mouse event.
- Virtual
Event Element - A virtual event element node.
- Virtual
Event Node - A tree where each entry holds the events for the corresponding entry in a
crate::VirtualNodetree. - Virtual
Events - When we create a DOM node, we store all of it’s closures and all of it’s children’s closures in VirtualEvents.
Enums§
- Event
Handler - Event handlers such as the closure in
onclick = |event| {}.
Functions§
- insert_
non_ delegated_ event - Insert a non-delegated event