label.h

00001 /***************************************************************************
00002                           label.h  -  description
00003                              -------------------
00004     begin                : Mon Mar 1 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  #ifndef __LABEL_H
00018  #define __LABEL_H
00019 
00020  #ifdef __cplusplus
00021    extern "C"
00022    {
00023      #include "common/ktypes.h"
00024      #include "common/stdlib.h"
00025      #include "gui/graphics.h"
00026      #include "common/string.h"
00027    }
00028  #else
00029       #include "common/ktypes.h"
00030       #include "common/stdlib.h"
00031       #include "gui/graphics.h"
00032       #include "common/string.h"
00033  #endif
00034 
00035  #include "gui/components/component.h"
00036  #include "gui/components/window.h"
00037  #include "gui/components/frame.h"
00038 
00039  #define MIN_LABEL_WIDTH 20
00040  #define MIN_LABEL_HEIGHT 10
00041 
00042  class label:public component
00043  {
00044    public :
00045    char lbl[15];
00046 
00047    void label_init(DW _id,DW _parent_id,DW _cnt_type,void *_cnt_ptr,DW _alias_id,DW _x,DW _y,DW _width,DW _height,DD _style,char *_label);
00048    void setLabel(char *text);
00049    char* getLabel();
00050    void paint();
00051  };
00052 
00053 
00054  #endif

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