Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

/home/pete/Work/TSE3.svn/tse3/src/tse3/app/PartDisplay.h

Go to the documentation of this file.
00001 /*
00002  * @(#)app/PartDisplay.h 1.00 18 June 2000
00003  *
00004  * Copyright (c) 2000 Pete Goodliffe (pete@cthree.org)
00005  *
00006  * This file is part of TSE3 - the Trax Sequencer Engine version 3.00.
00007  *
00008  * This library is modifiable/redistributable under the terms of the GNU
00009  * General Public License.
00010  *
00011  * You should have received a copy of the GNU General Public License along
00012  * with this program; see the file COPYING. If not, write to the Free Software
00013  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00014  *
00015  */
00016 
00017 #ifndef TSE3_APP_PARTDISPLAY_H
00018 #define TSE3_APP_PARTDISPLAY_H
00019 
00020 namespace TSE3
00021 {
00022     class Part;
00023     class PresetColours;
00024 
00025     namespace App
00026     {
00045         class PartDisplay
00046         {
00047             public:
00048 
00056                 PartDisplay(TSE3::Part *part, TSE3::PresetColours *pc = 0);
00057 
00061                 bool useColour();
00062 
00066                 void colour(int &r, int &g, int &b);
00067 
00068             private:
00069 
00070                 void calculate();
00071 
00072                 TSE3::Part          *p;
00073                 TSE3::PresetColours *preset;
00074                 int                  _calculated;
00075                 bool                 _useColour;
00076                 int                  _r, _g, _b;
00077         };
00078     }
00079 }
00080 
00081 #endif

Generated on Wed May 25 14:45:04 2005 for TSE3 by doxygen 1.3.2