00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __CONTAINER_H
00019 #define __CONTAINER_H
00020
00021 #include "gui/server/gui.h"
00022 #include "gui/components/component.h"
00023
00024 #define MAX_COMPONENT 40
00025 #define MAX_CONTAINER 10
00026
00027
00028 class container
00029 {
00030 public:
00031 DW id, parent_id;
00032
00033 DW x, y, width, height;
00034
00035 component *comp_focus;
00036
00037 DW num_comps;
00038 component *comp[MAX_COMPONENT];
00039
00040 DW num_conts;
00041 container *cont[MAX_CONTAINER];
00042
00043 void cntr_init(DW _id, DW _parent_id, DW _x, DW _y, DW _width, DW _height);
00044 void attachComponent(component *cmp);
00045 };
00046
00047
00048 #endif