DimensionObject.h

00001 /*
00002  * @(#)DimensionObject.h  0.2.0 / 2007-11-11
00003  *
00004  * Copyright (c) 2007, ETF and contributors. All rights reserved.
00005  *
00006  * This software is licensed under the LGPL, version 2.1, license.
00007  * A copy of the license is included in the file LICENSE-LGPL.txt.
00008  */
00009 #ifndef DIMENSIONOBJECT_H
00010 #define DIMENSIONOBJECT_H
00011 
00012 #include "JavaQxCore.h"
00013 
00014 /*^**************************************************************************^*/
00015 /*- DimensionObject Class.                                                   -*/
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   File History:
00047 
00048  - 2007-11-11 13:37:35 Slobodan
00049    Initial version
00050 
00051 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.