00001
00013 #ifndef _COMPONENT_H_
00014 #define _COMPONENT_H_
00015
00016 #include "../jnilib.h"
00017 #include "../graphic/color.h"
00018
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022
00023 void setSize(jobject obj, jint width, jint height);
00024 jint getWidth(jobject obj);
00025 jint getHeight(jobject obj);
00026
00027 jint getX(jobject obj);
00028 jint getY(jobject obj);
00029 void setLocation(jobject obj, jint x, jint y);
00030
00031 void setForeground(jobject obj, const Color c);
00032 Color getForeground(jobject obj);
00033 void setBackground(jobject obj, const Color c);
00034 Color getBackground(jobject obj);
00035
00036 #ifdef __cplusplus
00037 }
00038 #endif
00039
00040 #endif
00041
00042