Register a property to be exposed to javascript. All properties exposed to javascript through JSAPISimple must use getter functions that match the FB::GetPropPtr type and setter functions that match the FB::SetPropPtr type. // read-only registerProperty( "valid", (GetPropPtr)&MySimpleAPI::getValid, NULL ); // -or- write-only registerProperty( "valid", NULL, (SetPropPtr)&MySimpleAPI::setValid ); // -or- read-write registerProperty( "valid", (GetPropPtr)&MySimpleAPI::getValid, (SetPropPtr)&MySimpleAPI::setValid); @code This matches the following definition: @code variant getValid(); void setValid(variant value);
Definition at line 85 of file JSAPISimple.cpp. |
Generated on 24 May 2013 for FireBreath by
1.6.1
Labels
