kjsembed
QBrush_bind.h
Go to the documentation of this file.00001 #ifndef QBRUSH_BIND_H 00002 #define QBRUSH_BIND_H 00003 00004 #include <variant_binding.h> 00005 #include <static_binding.h> 00006 00007 class QBrush; 00008 00009 namespace KJSEmbed 00010 { 00011 class QBrushBinding : public VariantBinding 00012 { 00013 public: 00014 QBrushBinding( KJS::ExecState *exec, const QBrush &value ); 00015 static const KJS::ClassInfo info; 00016 virtual const KJS::ClassInfo* classInfo() const { return &info; } 00017 }; 00018 00019 class QBrushData 00020 { 00021 public: 00022 static const KJSEmbed::Method p_methods[]; 00023 static const KJSEmbed::Method p_statics[]; 00024 static const KJSEmbed::Enumerator p_enums[]; 00025 static const KJSEmbed::Constructor p_constructor; 00026 static KJS::JSObject *ctorMethod( KJS::ExecState *exec, const KJS::List &args ); 00027 static const KJSEmbed::Enumerator *enums() { return p_enums;} 00028 static const KJSEmbed::Method *methods() { return p_methods;} 00029 static const KJSEmbed::Method *statics() { return p_statics;} 00030 static const KJSEmbed::Constructor *constructor() { return &p_constructor;} 00031 static const KJS::JSObject *construct(KJS::ExecState *exec, const KJS::List &args) 00032 { return (*p_constructor.construct)(exec,args); } 00033 }; 00034 } 00035 00036 #endif // QBRUSH_BIND_H