00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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 }