FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
FB::variant IDispatchAPI::GetProperty ( int  idx)

Gets the value of an indexed property.

This can be used for providing array-style access on your object. For example, the following will result in a call to GetProperty with idx = 12:

var i = document.getElementById("plugin")[12];
idxZero-based index of the property to get the value of.
The property value.

Implements FB::JSAPI.

Definition at line 402 of file IDispatchAPI.cpp.

References FB::variant::convert_cast().

403 {
404  FB::variant sIdx(idx);
405  return GetProperty(sIdx.convert_cast<std::string>());
406 }
Accepts any datatype, used in all interactions with javascript. Provides tools for getting back out t...
Definition: variant.h:198
FB::variant GetProperty(const std::string &propertyName)
Gets a property value.

Here is the call graph for this function: