00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __LABEL_H
00018 #define __LABEL_H
00019
00020 #ifdef __cplusplus
00021 extern "C"
00022 {
00023 #include "common/ktypes.h"
00024 #include "common/stdlib.h"
00025 #include "gui/graphics.h"
00026 #include "common/string.h"
00027 }
00028 #else
00029 #include "common/ktypes.h"
00030 #include "common/stdlib.h"
00031 #include "gui/graphics.h"
00032 #include "common/string.h"
00033 #endif
00034
00035 #include "gui/components/component.h"
00036 #include "gui/components/window.h"
00037 #include "gui/components/frame.h"
00038
00039 #define MIN_LABEL_WIDTH 20
00040 #define MIN_LABEL_HEIGHT 10
00041
00042 class label:public component
00043 {
00044 public :
00045 char lbl[15];
00046
00047 void label_init(DW _id,DW _parent_id,DW _cnt_type,void *_cnt_ptr,DW _alias_id,DW _x,DW _y,DW _width,DW _height,DD _style,char *_label);
00048 void setLabel(char *text);
00049 char* getLabel();
00050 void paint();
00051 };
00052
00053
00054 #endif