Skip to main content

Module macros

Module macros 

Source

Macrosยง

beforeunload_event_handler ๐Ÿ”’
define_event_handler ๐Ÿ”’
These are used to generate a event handler which has no special case.
define_window_owned_event_handler ๐Ÿ”’
error_event_handler ๐Ÿ”’
event_handler ๐Ÿ”’
global_event_handlers ๐Ÿ”’
handle_potential_webgl_error ๐Ÿ”’
impl_performance_entry_struct ๐Ÿ”’
DOM struct implementation for simple interfaces inheriting from PerformanceEntry.
make_atomic_setter_inner ๐Ÿ”’
make_bool_setter_inner ๐Ÿ”’
make_enumerated_getter ๐Ÿ”’
Implements the To determine the state of an attribute steps from https://html.spec.whatwg.org/multipage/#keywords-and-enumerated-attributes
make_setter_inner ๐Ÿ”’
make_url_setter_inner ๐Ÿ”’
registered_event_handler ๐Ÿ”’
Similar to event_handler!, but also registers/unregisters a [ConstellationInterest] with the global scope when the handler is set or cleared. Use this macro for event handlers whose corresponding events are sent by the constellation only to interested pipelines.
unsafe_no_jsmanaged_fields ๐Ÿ”’
For use on non-jsmanaged types Use #[derive(JSTraceable)] on JS managed types
window_event_handlers ๐Ÿ”’
window_owned_beforeunload_event_handler ๐Ÿ”’
window_owned_event_handler ๐Ÿ”’