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