KJS-API
kjsprototype.h
Go to the documentation of this file.
A class representing a global object of an execution environment.
Definition kjsobject.h:281
KJSObject constructObject(KJSContext *ctx, void *internalValue=0)
Construct an object with this prototype and the specified internal value.
Definition kjsprototype.cpp:263
void defineProperty(KJSContext *ctx, const QString &name, PropertyGetter getter, PropertySetter setter=0)
Defines a property of this prototype with C++ callback functions for getting and setting the property...
Definition kjsprototype.cpp:286
void(* PropertySetter)(KJSContext *context, void *object, KJSObject value)
Function signature for a property setter function.
Definition kjsprototype.h:75
KJSPrototype()
Constructs a prototype object with its own prototype property set to the Object prototype.
Definition kjsprototype.cpp:226
KJSObject(* FunctionCall)(KJSContext *context, void *object, const KJSArguments &arguments)
Signature for function call callback function.
Definition kjsprototype.h:92
KJSObject(* PropertyGetter)(KJSContext *context, void *object)
Function signature for a property getter function.
Definition kjsprototype.h:70
void defineConstant(const QString &name, double value)
Add a read-only numerical property to this object.
Definition kjsprototype.cpp:239
KJSGlobalObject constructGlobalObject(void *internalValue=0)
Similar to constructObject() but specialized on the construction of global objects.
Definition kjsprototype.cpp:278
void defineFunction(KJSContext *ctx, const QString &name, FunctionCall callback)
Define a function.
Definition kjsprototype.cpp:299
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.