FreeWRL / FreeX3D 4.3.0
BasePlugin Class Reference
Inheritance diagram for BasePlugin:
ScriptablePluginObjectBase NPObject

Public Member Functions

 BasePlugin (NPP npp)
 
virtual bool HasMethod (NPIdentifier name)
 
virtual bool HasProperty (NPIdentifier name)
 Returns true if the NPIdentifier passed is managed as a scriptable property.
 
virtual bool GetProperty (NPIdentifier name, NPVariant *result)
 Returns true if the scriptable property is managed and fills the NPVariant pointer with the value.
 
virtual bool Invoke (NPIdentifier name, const NPVariant *args, uint32_t argCount, NPVariant *result)
 returns true if the invoked method is managed and executes the appropriate code filling the NPVariant pointer with data if needed
 
virtual bool InvokeDefault (const NPVariant *args, uint32_t argCount, NPVariant *result)
 Manages the invocation of the default '()' method.
 
- Public Member Functions inherited from ScriptablePluginObjectBase
 ScriptablePluginObjectBase (NPP npp)
 
virtual void Invalidate ()
 
virtual bool SetProperty (NPIdentifier name, const NPVariant *value)
 
virtual bool RemoveProperty (NPIdentifier name)
 
virtual bool Enumerate (NPIdentifier **identifier, uint32_t *count)
 
virtual bool Construct (const NPVariant *args, uint32_t argCount, NPVariant *result)
 

Additional Inherited Members

- Static Public Member Functions inherited from ScriptablePluginObjectBase
static void _Deallocate (NPObject *npobj)
 
static void _Invalidate (NPObject *npobj)
 
static bool _HasMethod (NPObject *npobj, NPIdentifier name)
 
static bool _Invoke (NPObject *npobj, NPIdentifier name, const NPVariant *args, uint32_t argCount, NPVariant *result)
 
static bool _InvokeDefault (NPObject *npobj, const NPVariant *args, uint32_t argCount, NPVariant *result)
 
static bool _HasProperty (NPObject *npobj, NPIdentifier name)
 
static bool _GetProperty (NPObject *npobj, NPIdentifier name, NPVariant *result)
 
static bool _SetProperty (NPObject *npobj, NPIdentifier name, const NPVariant *value)
 
static bool _RemoveProperty (NPObject *npobj, NPIdentifier name)
 
static bool _Enumerate (NPObject *npobj, NPIdentifier **identifier, uint32_t *count)
 
static bool _Construct (NPObject *npobj, const NPVariant *args, uint32_t argCount, NPVariant *result)
 
- Data Fields inherited from NPObject
NPClass_class
 
uint32_t referenceCount
 
- Protected Attributes inherited from ScriptablePluginObjectBase
NPP mNpp
 

Detailed Description

Definition at line 62 of file BasePlugin.h.

Constructor & Destructor Documentation

◆ BasePlugin()

BasePlugin::BasePlugin ( NPP npp)
inline

Definition at line 65 of file BasePlugin.h.

Member Function Documentation

◆ GetProperty()

bool BasePlugin::GetProperty ( NPIdentifier name,
NPVariant * result )
virtual

Returns true if the scriptable property is managed and fills the NPVariant pointer with the value.

Reimplemented from ScriptablePluginObjectBase.

Definition at line 60 of file BasePlugin.cpp.

◆ HasMethod()

bool BasePlugin::HasMethod ( NPIdentifier name)
virtual

Reimplemented from ScriptablePluginObjectBase.

Definition at line 41 of file BasePlugin.cpp.

◆ HasProperty()

bool BasePlugin::HasProperty ( NPIdentifier name)
virtual

Returns true if the NPIdentifier passed is managed as a scriptable property.

Reimplemented from ScriptablePluginObjectBase.

Definition at line 51 of file BasePlugin.cpp.

◆ Invoke()

bool BasePlugin::Invoke ( NPIdentifier name,
const NPVariant * args,
uint32_t argCount,
NPVariant * result )
virtual

returns true if the invoked method is managed and executes the appropriate code filling the NPVariant pointer with data if needed

Reimplemented from ScriptablePluginObjectBase.

Definition at line 95 of file BasePlugin.cpp.

◆ InvokeDefault()

bool BasePlugin::InvokeDefault ( const NPVariant * args,
uint32_t argCount,
NPVariant * result )
virtual

Manages the invocation of the default '()' method.

Reimplemented from ScriptablePluginObjectBase.

Definition at line 103 of file BasePlugin.cpp.


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