FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
ElementPtr FB::DOM::Document::getBody ( ) const
virtual

Gets a DOM::ElementPtr for the document's body.

Returns
The document's body.

Definition at line 44 of file ScriptingCore/DOM/Document.cpp.

45 {
46  JSObjectPtr api = getProperty<FB::JSObjectPtr>("body");
47  return Element::create(api);
48 }
boost::shared_ptr< FB::JSObject > JSObjectPtr
Defines an alias representing a JSObject shared_ptr (you should never use a JSObject* directly) ...
Definition: APITypes.h:109
static ElementPtr create(const FB::JSObjectPtr &api)
Creates a FB::DOM::Element object from a JSObjectPtr representing a DOM object. This will probably th...