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