component.cpp

00001 /***************************************************************************
00002                           component.cpp  -  description
00003                              -------------------
00004     begin                : Thu Feb 19 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/component.h"
00019 
00020         void component::comp_init(DW _type,DW _id,DW _parent_id,DW _cnt_type,void *_cnt_ptr,DW _alias_id,DW _x,DW _y,DW _width,DW _height,DD _style)
00021         {
00022        type = _type;
00023        id = _id;
00024        parent_id = _parent_id;
00025        cnt_type = _cnt_type;
00026        cnt_ptr = _cnt_ptr;
00027        alias_id  = _alias_id;
00028        x = _x;
00029        y = _y;
00030        width = _width;
00031        height = _height;
00032        style = _style;
00033         }
00034 
00035 
00036         void component::deactivate()
00037         {
00038                 style |= DISABLED;
00039         }
00040         
00041         void component::activate()
00042         {
00043                 style &= DISABLED;
00044         }

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