QColorAdapter.h

00001 
00009 #ifndef QCOLORADAPTER_H
00010 #define QCOLORADAPTER_H
00011 
00012 #include "JavaQxCore.h"
00013 
00014 #include <QColor>
00015 
00016 /*^**************************************************************************^*/
00017 /*- QColorAdapter Class.                                                     -*/
00018 /*^**************************************************************************^*/
00019 
00026 class JAVAQX_EXPORT QColorAdapter : public QColor
00027 {
00028 public:
00029   QColorAdapter(jobject color);
00030   QColorAdapter(jint argb);
00031 public:
00032   static void initialize(JNIEnv *env, jclass cls);
00033   static jobject toJColor(JNIEnv *env, jclass colorClass, const QColor &color);
00034   static jobject toJColor(const QColor &color);
00035 private:
00036   static jclass sm_colorClass;
00037   static jmethodID sm_constructorMID;
00038   static jmethodID sm_getARGBMID;
00039 };
00040 
00041 #endif //QCOLORADAPTER_H
00042 
00043 /*^*****************************************************************************
00044   File History:
00045 
00046  - 2007-08-28 09:22:41 Slobodan
00047    Initial version
00048 
00049 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.