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.

Create events Object

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

Contains the time it took for the last app update call for the component

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

A component has a view and can update itself. Optionally a component can return a succeeding Msg to be done on the next update iteration.

This trait is used in the DomUpdater to call the dispatch method when an event occured

A widget has the same capability to a Component. Paren component of a widget can listen to widget events.

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