00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "gui/components/frame.h"
00019
00020
00021 void frame::frm_init(DW _id, DW _parent_id, DW _alias_id, DW _x, DW _y, DW _width, DW _height, DD _style,char *_title)
00022 {
00023 this->cntr_init(_id,_parent_id,_x,_y,_width,_height);
00024
00025 this->style = _style;
00026 memcpy(this->title,_title,strlen(_title));
00027 }
00028
00029 void frame::paint()
00030 {
00031 }
00032
00033 void frame::freeAll()
00034 {
00035 DW i;
00036
00037 for(i = 0;i<num_comps;)
00038 {
00039 if(comp[i] != NULL)
00040 {
00041 free((void*)comp[i]);
00042 i++;
00043 }
00044 }
00045 for(i = 0;i<num_conts;)
00046 {
00047 if(cont[i] != NULL)
00048 {
00049 ((frame *)cont[i])->freeAll();
00050 free((void *)cont[i]);
00051 i++;
00052 }
00053 }
00054 }
00055