RectangleObject.h

00001 /*
00002  * @(#)RectangleObject.h  0.2.0 / 2007-12-24
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 RECTANGLEOBJECT_H
00010 #define RECTANGLEOBJECT_H
00011 
00012 #include "JavaQxCore.h"
00013 
00014 /*^**************************************************************************^*/
00015 /*- RectangleObject Class.                                                   -*/
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   File History:
00053 
00054  - 2007-12-24 22:45:57 Slobodan
00055    Initial version
00056 
00057 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.