Skip to end of metadata
Go to start of metadata

FB::DOM::Element Class Reference

DOM Element wrapper. More...

#include <Element.h>

Inheritance diagram for FB::DOM::Element:
Inheritance graph
Collaboration diagram for FB::DOM::Element:
Collaboration graph

List of all members.

Public Member Functions

ElementPtr element ()
 Gets a FB::DOM::ElementPtr pointing to the current object.
virtual std::string getInnerHTML () const
 Gets the inner html for the element.
virtual void setInnerHTML (const std::string &html) const
 Sets an inner html for the element.
virtual int getWidth () const
 Gets the width property of the element.
virtual void setWidth (const int width) const
 Sets the width property of the element.
virtual int getScrollWidth () const
 Gets the scroll width property (read-only) of the element.
virtual int getHeight () const
 Gets the height property of the element.
virtual void setHeight (const int height) const
 Sets the height property of the element.
virtual int getScrollHeight () const
 Gets the scroll height property (read-only) of the element.
virtual int getChildNodeCount () const
 Gets a child node count.
virtual ElementPtr getChildNode (const int idx) const
 Gets a child node.
virtual ElementPtr getParentNode () const
 Gets the parent node of the current Element.
virtual ElementPtr getElement (const std::string &name) const
 Gets a child element of the specified name.
virtual ElementPtr getElement (const int idx) const
 Gets a child element of the specified name.
virtual ElementPtr getElementById (const std::string &elem_id) const
 Gets an element from the DOM with the specified id.
virtual std::vector< ElementPtrgetElementsByTagName (const std::string &tagName) const
 Gets a list of all elements in the document with the specified tag name.
virtual std::vector< ElementPtrgetElementsByTagName (const std::wstring &tagName) const

Static Public Member Functions

static ElementPtr create (const FB::JSObjectPtr &api)
 Creates a FB::DOM::Element object from a JSObjectPtr representing a DOM object. This will probably throw an exception and definitely not work right if the DOM object represented is not a Element.

Detailed Description

DOM Element wrapper.

This class should not be created directly; instead, use the Element::create method

Definition at line 35 of file ScriptingCore/DOM/Element.h.


The documentation for this class was generated from the following files:

Generated on 20 Jun 2013 for FireBreath by  doxygen 1.6.1
Labels
  • None