#include <RectangleObject.h>
Public Member Functions | |
RectangleObject (JNIEnv *env, jobject obj) | |
Constructs new RectangleObject object. | |
bool | getX (jint &result) |
Returns x coordinate of the rectangle. | |
bool | getX (JNIEnv *env, jint &result) |
Returns x coordinate of the rectangle. | |
bool | getY (jint &result) |
Returns y coordinate of the rectangle. | |
bool | getY (JNIEnv *env, jint &result) |
Returns y coordinate of the rectangle. | |
bool | getWidth (jint &result) |
Returns width of the rectangle. | |
bool | getWidth (JNIEnv *env, jint &result) |
Returns width of the rectangle. | |
bool | getHeight (jint &result) |
Returns height of the rectangle. | |
bool | getHeight (JNIEnv *env, jint &result) |
Returns height of the rectangle. | |
Static Public Member Functions | |
static void | initialize (JNIEnv *env, jclass cls) |
Initializes RectangleObject class. | |
static jobject | newObject (jint x, jint y, jint width, jint height) |
Creates new QSwing rectangle object. |
RectangleObject::RectangleObject | ( | JNIEnv * | env, | |
jobject | obj | |||
) |
Constructs new RectangleObject object.
env | the JNIEnv pointer | |
obj | the QSwing Rectangle object |
bool RectangleObject::getX | ( | jint & | result | ) |
Returns x coordinate of the rectangle.
result | the result |
true
if no exception is thrown bool RectangleObject::getX | ( | JNIEnv * | env, | |
jint & | result | |||
) |
Returns x coordinate of the rectangle.
env | the JNIEnv pointer | |
result | the result |
true
if no exception is thrown bool RectangleObject::getY | ( | jint & | result | ) |
Returns y coordinate of the rectangle.
result | the result |
true
if no exception is thrown bool RectangleObject::getY | ( | JNIEnv * | env, | |
jint & | result | |||
) |
Returns y coordinate of the rectangle.
env | the JNIEnv pointer | |
result | the result |
true
if no exception is thrown bool RectangleObject::getWidth | ( | jint & | result | ) |
Returns width of the rectangle.
result | the result |
true
if no exception is thrown bool RectangleObject::getWidth | ( | JNIEnv * | env, | |
jint & | result | |||
) |
Returns width of the rectangle.
env | the JNIEnv pointer | |
result | the result |
true
if no exception is thrown bool RectangleObject::getHeight | ( | jint & | result | ) |
Returns height of the rectangle.
result | the result |
true
if no exception is thrown bool RectangleObject::getHeight | ( | JNIEnv * | env, | |
jint & | result | |||
) |
Returns height of the rectangle.
env | the JNIEnv pointer | |
result | the result |
true
if no exception is thrown void RectangleObject::initialize | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Initializes RectangleObject class.
env | the JNIEnv pointer | |
cls | the QSwing Rectangle class |
FatalError | if failed |
jobject RectangleObject::newObject | ( | jint | x, | |
jint | y, | |||
jint | width, | |||
jint | height | |||
) | [static] |
Creates new QSwing rectangle object.
x | the x coordinate of the rectangle | |
y | the x coordinate of the rectangle | |
width | the width of the rectangle | |
height | the height of the rectangle |