FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
NodePtr FB::DOM::Node::getNode ( const int  idx) const

Gets a child node of the specified name by index.

idxthe index of the child node to fetch
child node

Definition at line 31 of file ScriptingCore/DOM/Node.cpp.

References create().

32 {
33  FB::JSObjectPtr api = getProperty<JSObjectPtr>(idx);
34  return Node::create(api);
35 }
static NodePtr create(const FB::JSObjectPtr &api)
Creates a FB::DOM::Node object from a JSObjectPtr representing a DOM node. This will probably throw a...
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

Here is the call graph for this function: