00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef RECTANGLEOBJECT_H
00010 #define RECTANGLEOBJECT_H
00011
00012 #include "JavaQxCore.h"
00013
00014
00015
00016
00017
00024 class JAVAQX_EXPORT RectangleObject : public GlobalJObject
00025 {
00026 public:
00027 RectangleObject(JNIEnv *env, jobject obj);
00028 public:
00029 bool getX(jint &result);
00030 bool getX(JNIEnv *env, jint &result);
00031 bool getY(jint &result);
00032 bool getY(JNIEnv *env, jint &result);
00033 bool getWidth(jint &result);
00034 bool getWidth(JNIEnv *env, jint &result);
00035 bool getHeight(jint &result);
00036 bool getHeight(JNIEnv *env, jint &result);
00037 public:
00038 static void initialize(JNIEnv *env, jclass cls);
00039 static jobject newObject(jint x, jint y, jint width, jint height);
00040 private:
00041 static jclass sm_rectangleClass;
00042 static jmethodID sm_constructorMID;
00043 static jmethodID sm_getXMID;
00044 static jmethodID sm_getYMID;
00045 static jmethodID sm_getWidthMID;
00046 static jmethodID sm_getHeightMID;
00047 };
00048
00049 #endif // RECTANGLEOBJECT_H
00050
00051
00052
00053
00054
00055
00056
00057