container.h

00001 /***************************************************************************
00002                           container.h  -  description
00003                              -------------------
00004     begin                : Wed Jan 28 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 #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 

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