• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

starpixmap.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           starpixmap.h  -  K Desktop Planetarium
00003                              -------------------
00004     begin                : Wed Sep 19 2001
00005     copyright            : (C) 2001 by Thomas Kabelmann
00006     email                : tk78@gmx.de
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 
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];    // the preloaded starpixmaps 10 colors/ 24 sizes
00069         int size, colorMode, colorIntensity;
00070 
00072         void loadPixmaps ( int colorMode = 0, int colorIntensity = 4 );
00073 };
00074 
00075 #endif

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal