Struct stdweb::web::html_element::ImageElement [] [src]

pub struct ImageElement(_);

The HTML image element is used to manipulate the layout and presentation of <img> elements.

(JavaScript docs)

Methods

impl ImageElement
[src]

[src]

Constructs a new ImageElement.

(JavaScript docs)

[src]

Constructs a new ImageElement with the given width and height.

(JavaScript docs)

[src]

Returns the HTML alt attribute, representing the fallback context for the image.

(JavaScript docs)

[src]

Sets the HTML alt attribute, representing the fallback context for the image.

(JavaScript docs)

[src]

Returns true if the browser has finished fetching the image, whether successful or not. It also return true if the image has no src value.

(JavaScript docs)

[src]

Returns the Cross-Origin Resource Sharing (CORS) setting for the image.

(JavaScript docs)

[src]

Sets the Cross-Origin Resource Sharing (CORS) setting for the image.

(JavaScript docs)

[src]

Returns the the rendered height of the image in CSS pixels.

(JavaScript docs)

[src]

Sets the the rendered height of the image in CSS pixels.

(JavaScript docs)

[src]

Indicates whether the image is part of a server-side image map.

(JavaScript docs)

[src]

Sets whether the image is part of a server-side image map.

(JavaScript docs)

[src]

Returns the intrinsic height of the image in CSS pixels, if it is available.

(JavaScript docs)

[src]

Returns the intrinsic width of the image in CSS pixels, if it is available.

(JavaScript docs)

[src]

Returns the full URL of the image, including the base URI.

(JavaScript docs)

[src]

Sets the full URL of the image, including the base URI.

(JavaScript docs)

[src]

Returns the usemap HTML attribute, containing a partial URL of a map element.

(JavaScript docs)

[src]

Sets the usemap HTML attribute, containing a partial URL of a map element.

(JavaScript docs)

[src]

Returns the rendered width of the image in CSS pixels.

(JavaScript docs)

[src]

Sets the rendered width of the image in CSS pixels.

(JavaScript docs)

Trait Implementations

impl IEventTarget for ImageElement
[src]

[src]

Adds given event handler to the list the list of event listeners for the specified EventTarget on which it's called. Read more

[src]

Dispatches an Event at this EventTarget, invoking the affected event listeners in the appropriate order. (JavaScript docs) Read more

impl INode for ImageElement
[src]

[src]

Casts a reference to this object into a reference to a Node.

[src]

Adds a node to the end of the list of children of a specified parent node. Read more

[src]

Removes a child node from the DOM. Read more

[src]

Returns a duplicate of the node on which this method was called. Read more

[src]

Checks whenever a given node is a descendant of this one or not. Read more

[src]

Inserts the specified node before the reference node as a child of the current node. Read more

[src]

Replaces one hild node of the specified node with another. Read more

[src]

Returns the parent of this node in the DOM tree. Read more

[src]

Returns the node's first child in the tree, or None if the node is childless. Read more

[src]

Returns the node's last child in the tree, or None if the node is childless. Read more

[src]

Returns the node's next sibling in the tree, or None if there isn't such a node. Read more

[src]

Returns the name of the node. Read more

[src]

Returns the type of the node. Read more

[src]

Returns the value of the node. Read more

[src]

Sets the value of the node. Read more

[src]

Returns the Document that this node belongs to. Read more

[src]

Returns an Element that is the parent of this node. Returns null if the node has no parent or the parent is not an Element. Read more

[src]

Returns the node's previous sibling in the tree, or None if there isn't such a node. Read more

[src]

A property which represents the "rendered" text content of a node and its descendants. It approximates the text the user would get if they highlighted the contents of the element with the cursor and then copied to the clipboard. Read more

[src]

A property which represents the text content of a node and its descendants. Read more

[src]

Sets the text content of this node; calling thil removes all of node's children and replaces them with a single text node with the given value. Read more

[src]

Returns a live collection of child nodes of this node. Read more

[src]

Gets the base URL. Read more

[src]

Returns whether this node has children nodes. Read more

[src]

Determines whether the given namespace is the default namespace of this node. Read more

[src]

Tests whether this node is equal to another node. Two nodes are equal if they have the same type, defining characteristics, matching attributes, and so on. Read more

[src]

Test whether two Node references are the same. Read more

[src]

Returns the prefix for the given namespace URI, if present. Read more

[src]

Returns the namespace URI for the given prefix. Read more

[src]

Merges any adjacent text nodes and removes empty text nodes under this node. Read more

impl IElement for ImageElement
[src]

[src]

The Element.classList is a read-only property which returns a live TokenList collection of the class attributes of the element. Read more

[src]

Returns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors. Read more

[src]

Returns a non-live NodeList of all elements descended from the element on which it is invoked that matches the specified group of CSS selectors. Read more

impl IHtmlElement for ImageElement
[src]

[src]

Sets focus on the specified element, if it can be focused. Read more

[src]

Removes keyboard focus from the current element. Read more

[src]

Allows access, both in reading and writing, to all of the custom data attributes (data-*) set on the element, either in HTML or in the DOM. Read more

impl Debug for ImageElement
[src]

[src]

Formats the value using the given formatter.

impl Clone for ImageElement
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl AsRef<Reference> for ImageElement
[src]

[src]

Performs the conversion.

impl<R: TryInto<Reference>> TryFrom<R> for ImageElement where
    <R as TryInto<Reference>>::Error: Into<Box<Error>>, 
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.