frame.cpp

00001 /***************************************************************************
00002                           frame.cpp  -  description
00003                              -------------------
00004     begin                : Sat Jan 31 2004
00005     copyright            : (C) 2004 by Dynacube Team
00006     email                : 
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
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 

Generated on Thu Jul 27 23:52:26 2006 for Dynacube by  doxygen 1.4.7