File indexing completed on 2024-12-08 12:23:08

0001 #ifndef QBRUSH_BIND_H
0002 #define QBRUSH_BIND_H
0003 
0004 #include <variant_binding.h>
0005 #include <static_binding.h>
0006 
0007 class QBrush;
0008 
0009 namespace KJSEmbed
0010 {
0011 class QBrushBinding : public VariantBinding
0012 {
0013 public:
0014     QBrushBinding(KJS::ExecState *exec, const QBrush &value);
0015     static const KJS::ClassInfo info;
0016     const KJS::ClassInfo *classInfo() const override
0017     {
0018         return &info;
0019     }
0020 };
0021 
0022 class QBrushData
0023 {
0024 public:
0025     static const KJSEmbed::Method p_methods[];
0026     static const KJSEmbed::Method p_statics[];
0027     static const KJSEmbed::Enumerator p_enums[];
0028     static const KJSEmbed::Constructor p_constructor;
0029     static KJS::JSObject *ctorMethod(KJS::ExecState *exec, const KJS::List &args);
0030     static const KJSEmbed::Enumerator *enums()
0031     {
0032         return p_enums;
0033     }
0034     static const KJSEmbed::Method *methods()
0035     {
0036         return p_methods;
0037     }
0038     static const KJSEmbed::Method *statics()
0039     {
0040         return p_statics;
0041     }
0042     static const KJSEmbed::Constructor *constructor()
0043     {
0044         return &p_constructor;
0045     }
0046     static const KJS::JSObject *construct(KJS::ExecState *exec, const KJS::List &args)
0047     {
0048         return (*p_constructor.construct)(exec, args);
0049     }
0050 };
0051 }
0052 
0053 #endif // QBRUSH_BIND_H