kstars
starpixmap.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef STARPIXMAP_H
00019 #define STARPIXMAP_H
00020
00021 #include <qpixmap.h>
00022
00032 class StarPixmap {
00033 public:
00039 StarPixmap (int colorMode=0, int colorIntensity = 4);
00040
00042 ~StarPixmap() {}
00043
00048 QPixmap* getPixmap (QChar *color, int s);
00049
00053 void setColorMode( int newMode );
00054
00058 void setIntensity ( int newIntensity );
00059
00061 int mode() const { return colorMode; }
00062
00064 int intensity() const { return colorIntensity; }
00065
00066 private:
00067
00068 QPixmap starPixmaps[10][26];
00069 int size, colorMode, colorIntensity;
00070
00072 void loadPixmaps ( int colorMode = 0, int colorIntensity = 4 );
00073 };
00074
00075 #endif