00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "gui/server/paintcomp.h"
00019
00020 void paint_component(component *comp)
00021 {
00022 button *but;
00023 text *txt;
00024 textarea *txtarea;
00025 label *lbl;
00026 folderview *fv;
00027
00028 switch(comp->type)
00029 {
00030 case BUT_TYPE :
00031 but = (button *)comp;
00032 but->paint();
00033 break;
00034
00035 case TEXT_TYPE:
00036 txt = (text *)comp;
00037 txt->paint();
00038 break;
00039
00040 case TEXTAREA_TYPE:
00041 txtarea = (textarea *)comp;
00042 txtarea->paint();
00043 break;
00044
00045 case LABEL_TYPE:
00046 lbl = (label *)comp;
00047 lbl->paint();
00048 break;
00049
00050 case FOLDERVIEW_TYPE:
00051 fv = (folderview *)comp;
00052 fv->paint();
00053 break;
00054 }
00055 }