[−][src]Module stdweb::web
A module with bindings to the Web APIs.
Modules
error | A module containing error types. |
event | A module containing JavaScript DOM events. |
html_element | A module containing HTML DOM elements. |
Structs
ArrayBuffer | The |
Blob | A reference to a JavaScript object which implements the IBlob interface. |
CanvasGradient | The CanvasGradient struct represents an opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). |
CanvasPattern | The CanvasPattern struct represents an opaque object describing a pattern, based on an image, a canvas or a video, created by the CanvasRenderingContext2D.createPattern() method. Intentionally blank, no non-experimental properties or methods. |
CanvasRenderingContext2d | Used for drawing rectangles, text, images and other objects onto the canvas element. |
Date | (JavaScript docs) https://www.ecma-international.org/ecma-262/6.0/#sec-date-constructor |
Document | The |
DocumentFragment | A reference to a JavaScript object DocumentFragment. |
Element | A reference to a JavaScript object which implements the IElement interface. |
EventListenerHandle | A handle to a particular event listener. |
EventTarget | A reference to a JavaScript object which implements the IEventTarget interface. |
File | The File interface provides information about files and allows JavaScript in a web page to access their content. |
FileList | An object of this type is returned by the files property of the HTML |
FileReader | The FileReader object lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. |
FormData | The |
Gamepad | An individual gamepad/controller. |
GamepadButton | The state of an individual button on a gamepad device. |
History | |
HtmlCollection | The |
HtmlElement | A reference to a JavaScript object which implements the IHtmlElement interface. |
ImageData | The ImageData struct represents the underlying pixel data of an area of a |
IntervalBuffered | The |
Location | The |
MutationObserver | Provides a way to receive notifications about changes to the DOM. |
MutationObserverHandle | A wrapper which ensures that memory is properly cleaned up when it's no longer needed. |
MutationObserverInit | Specifies which changes should be observed for the target. |
Node | A reference to a JavaScript object which implements the INode interface. |
NodeList |
|
Rect | Represents a rectangle. (JavaScript docs) |
RequestAnimationFrameHandle | A handle to a pending animation frame request. |
Selection | Represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.get_selection(). |
ShadowRoot | The |
SocketCloseCode | Wrapper type around a CloseEvent code, indicating why the WebSocket was closed |
Storage | The |
StringMap | Used by the |
TextMetrics | The TextMetrics struct represents the dimension of a text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. |
TextNode | The |
TimeoutHandle | A reference to a timeout object created by set_clearable_timeout |
TokenList | The |
Touch | The Touch interface represents a single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. |
TypedArray | JavaScript typed arrays are array-like objects and provide a mechanism for accessing raw binary data. |
Wait | |
WebSocket | The WebSocket object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. |
Window | The |
XmlHttpRequest | Use XmlHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. XmlHttpRequest is used heavily in Ajax programming. |
Enums
CanvasStyle | Certain style functions can return multiple types |
CloneKind | An enum which determines whenever the DOM Node's children will also be cloned or not. |
CompositeOperation | The type of compositing operation to apply when drawing new shapes |
CrossOriginSetting | Represents CORS (Cross Origin Resource Sharing) setting for an HTML element. |
FileReaderReadyState | A number indicating the state of the |
FileReaderResult | The result of a read operation performed with a FileReader. |
FillRule | The algorithm by which to determine if a point is inside a path or outside a path. |
FormDataEntry | Represents a type of data stores in FormData. |
GamepadMappingType | The set of known gamepad layout mappings. |
LineCap | How the end points of every line are drawn. |
LineJoin | determines how two connecting segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate segments with zero lengths, whose specified endpoints and control points are exactly at the same position, are skipped). |
MutationRecord | Contains information about an individual change to the DOM. |
NodeType | Determines the type of a |
Repetition | An enum indicating how to repeat the image. |
ShadowRootMode | The mode associated to a shadow root. Mainly used in IElement::attach_shadow and IShadowRoot::mode. |
SlotContentKind | An enum which determines whether SlotElement::assigned_nodes / SlotElement::assigned_elements will return the fallback content when nothing has been assigned to the slot. |
SocketBinaryType | The type of binary data being transmitted by the WebSocket connection. |
SocketReadyState | A number indicating the state of the |
TextAlign | Specifies text alignment |
TextBaseline | Text baseline being used when drawing text |
TouchType | An enumeration representing the different types of possible touch input. |
XhrReadyState | An enum indicating the state of the |
XhrResponseType | An enum describing the type of the response to |
Traits
IBlob | A blob object represents a file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. |
IChildNode | The |
IElement | The |
IEventTarget |
|
IHtmlElement | The |
INode |
|
INonElementParentNode | The |
IParentNode | The |
ISlotable | The Slotable mixin defines features that allow nodes to become the contents of
a |
IWindowOrWorker | The |
RenderingContext | Trait implemented by rendering contexts which can be obtained from a canvas. |
Functions
alert | An alias for window.alert. |
document | A global instance of Document. |
interval_buffered | Creates a |
set_timeout | An alias for window.set_timeout. |
wait | Creates a |
window | A global instance of Window. |