kjsembed
color.cpp
Go to the documentation of this file.
static void publish(KJS::ExecState *exec, KJS::JSObject *object, const Method *methods)
Publishes an array of Methods to an object.
Definition: static_binding.cpp:60
value setAlpha(KJSEmbed::extractInt(exec, args, 0))
KJS::JSValue * createVariant(KJS::ExecState *exec, const KJS::UString &className, const T &value)
Can create any known KJSEmbed::VariantBinding object and set the value.
Definition: variant_binding.h:185
Definition: color.h:34
int KJSEMBED_EXPORT extractInt(KJS::ExecState *exec, const KJS::List &args, int idx, int defaultValue=0)
Extracts an integer from an argument list.
Definition: binding_support.cpp:72
ColorBinding(KJS::ExecState *exec, const QColor &value)
Definition: color.cpp:30
END_VARIANT_METHOD value setGreen(KJSEmbed::extractInt(exec, args, 0))
END_VARIANT_METHOD value setRgb(KJSEmbed::extractInt(exec, args, 0), KJSEmbed::extractInt(exec, args, 1), KJSEmbed::extractInt(exec, args, 2), KJSEmbed::extractInt(exec, args, 3, 255))
END_VARIANT_METHOD value setCmyk(KJSEmbed::extractInt(exec, args, 0), KJSEmbed::extractInt(exec, args, 1), KJSEmbed::extractInt(exec, args, 2), KJSEmbed::extractInt(exec, args, 3), KJSEmbed::extractInt(exec, args, 4, 255))
KJS::JSValue * createInt(KJS::ExecState *exec, int value)
Create a new KJS::JSValue with the value of the integer.
Definition: binding_support.cpp:94
END_VARIANT_METHOD value setHsv(KJSEmbed::extractInt(exec, args, 0), KJSEmbed::extractInt(exec, args, 1), KJSEmbed::extractInt(exec, args, 2), KJSEmbed::extractInt(exec, args, 3, 255))
END_VARIANT_METHOD value setRed(KJSEmbed::extractInt(exec, args, 0))
#define END_VARIANT_METHOD
End a variant method started by START_VARIANT_METHOD.
Definition: variant_binding.h:56
END_VARIANT_METHOD value setNamedColor(KJSEmbed::extractQString(exec, args, 0))
END_VARIANT_METHOD value setBlue(KJSEmbed::extractInt(exec, args, 0))
#define START_VARIANT_METHOD(METHODNAME, TYPE)
A simple variant syle method.
Definition: variant_binding.h:42
QString KJSEMBED_EXPORT extractQString(KJS::ExecState *exec, const KJS::List &args, int idx, const QString defaultValue=QString())
Extracts a QString from an argument list.
Definition: binding_support.cpp:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.