Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

/cygdrive/d/Eigene Dateien/!DProcs/code_gen/QColor.h

Go to the documentation of this file.
00001 // Class QColor 
00002 // Filename QColor.h 
00003 // FaPra 2003-2004, A5, Alexander Kramer
00004 
00005 #ifndef QColor_h 
00006 #define QColor_h 
00007 
00008 
00009 //! Pre-declaration of QColor
00010 class QColor;
00011 
00012 
00013 
00014 //! Color Class. The values of color components are in range [0..1]
00015 class QColor
00016 {
00017 protected:
00018 //! red
00019 float R;
00020 
00021 //! green
00022 float G;
00023 
00024 //! blue
00025 float B;
00026 
00027 //! alpha
00028 float A;
00029 
00030 public:
00031 //! sets the color as current for drawing context
00032  void setAsCurrent();
00033 
00034 //! sets the color
00035  const void set( float  r , float  g , float  b , float  a );
00036 
00037 //! getter method for R
00038 virtual float getR();
00039 
00040 //! setter method for R
00041 virtual void setR( float  newValue );
00042 
00043 //! getter method for G
00044 virtual float getG();
00045 
00046 //! setter method for G
00047 virtual void setG( float  newValue );
00048 
00049 //! getter method for B
00050 virtual float getB();
00051 
00052 //! setter method for B
00053 virtual void setB( float  newValue );
00054 
00055 //! getter method for A
00056 virtual float getA();
00057 
00058 //! setter method for A
00059 virtual void setA( float  newValue );
00060 
00061 //! copy itself from another instance
00062  void copyFrom( QColor*  from );
00063 
00064 //! prints itself to the cout
00065  void print();
00066 
00067 //! Constructor
00068   QColor(  );
00069 
00070 //! Destructor
00071 virtual  ~QColor();
00072 
00073 
00074 };
00075 #endif
00076 

Generated on Thu Mar 18 18:33:48 2004 for miniQT by doxygen1.2.18