Module sauron_core::dom [−][src]
Expand description
This module provides functionalities for manipulating the actual Document Object Model in the browser
Re-exports
pub use events::*;
Modules
provides functionalities related to patching the DOM in the browser.
provides functionalities for commands to be executed by the system, such as when the application starts or after the application updates.
https://developer.mozilla.org/en-US/docs/Web/Events
Structs
A node along with all of the closures that were created for that node’s events and all of it’s child node’s events.
Used for keeping a real DOM node up to date based on the current Node and a new incoming Node that represents our latest DOM state.
Provides functions for doing http network request
Holds the user App and the dom updater This is passed into the event listener and the dispatch program will be called after the event is triggered.
Provides access to the Browser window
Traits
The app should implement this trait for it to be handled by the Program
This trait is used in the DomUpdater to call the dispatch method when an event occured
Functions
provides access to the document body
provides access to the document element
request animation frame and execute function
utility function which returns the history api of the browser
return the instantaneous time
provides access to the window Performance api
utility function which executes the agument closure in a request animation frame
utility function which returns the Window element
Type Definitions
alias Cmd to use Program as the APP