container.cpp

00001 /***************************************************************************
00002                           container.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/container.h"
00019  #include "gui/components/component.h"
00020  #include "gui/components/cursor.h"
00021  #include "gui/utility.h"
00022 
00023       void container::cntr_init(DW _id, DW _parent_id, DW _x, DW _y, DW _width, DW _height)
00024       {
00025        id = _id;
00026        parent_id = _parent_id;
00027        x = _x;
00028        y = _y;
00029        width = _width;
00030        height = _height;
00031        num_comps = 0;
00032        num_conts = 0;
00033       }
00034 
00035       void container::attachComponent(component *cmp)
00036       {
00037         comp[num_comps] = cmp;
00038         comp_focus = comp[num_comps];            
00039         num_comps++;
00040       }
00041 

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