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

DualScrollBar.h

Go to the documentation of this file.
00001 /* DualScrollBar - a scrollbar with two independent thumbs. */ 00002 00003 #ifndef DUAL_SCROLLBAR_H 00004 #define DUAL_SCROLLBAR_H 00005 00006 #include "ActorFrame.h" 00007 #include "Sprite.h" 00008 #include "PlayerNumber.h" 00009 00010 class DualScrollBar: public ActorFrame 00011 { 00012 public: 00013 DualScrollBar(); 00014 00015 void Load(); 00016 void SetBarHeight( float fHeight ) { m_fBarHeight = fHeight; } 00017 void SetBarTime( float fTime ) { m_fBarTime = fTime; } 00018 void SetPercentage( PlayerNumber pn, float fPercent ); 00019 void EnablePlayer( PlayerNumber pn, bool on ); 00020 00021 private: 00022 float m_fBarHeight; 00023 float m_fBarTime; 00024 00025 Sprite m_sprScrollThumbOverHalf[NUM_PLAYERS]; 00026 Sprite m_sprScrollThumbUnderHalf[NUM_PLAYERS]; 00027 }; 00028 00029 #endif 00030 00031 /* 00032 * (c) 2001-2004 Glenn Maynard, Chris Danford 00033 * All rights reserved. 00034 * 00035 * Permission is hereby granted, free of charge, to any person obtaining a 00036 * copy of this software and associated documentation files (the 00037 * "Software"), to deal in the Software without restriction, including 00038 * without limitation the rights to use, copy, modify, merge, publish, 00039 * distribute, and/or sell copies of the Software, and to permit persons to 00040 * whom the Software is furnished to do so, provided that the above 00041 * copyright notice(s) and this permission notice appear in all copies of 00042 * the Software and that both the above copyright notice(s) and this 00043 * permission notice appear in supporting documentation. 00044 * 00045 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00046 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00047 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00048 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00049 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00050 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00051 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00052 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00053 * PERFORMANCE OF THIS SOFTWARE. 00054 */

Generated on Thu Jan 27 20:57:19 2005 for StepMania by doxygen 1.3.7