D:/Zythum/DinoKod/Interface/Slider.h

00001 //---------------------------------------------------------------------------------------------
00002 //      This file is a part of "DinoKod".
00003 //      Copyright © 2003 Dino Productions. All Rights Reserved.
00004 //      
00005 //      File                    : Slider.h
00006 //      Author                  : Cedric Stanus
00007 //      Date                    : 05/09/2003
00008 //      Modification    :
00009 //
00010 //---------------------------------------------------------------------------------------------
00011 #ifndef __SLIDER_H__
00012 #define __SLIDER_H__
00013 
00014 #include "Interface/InterfaceDll.h"
00015 #include "Interface/Win.h"
00016 #include "Interface/Button.h"
00017 
00018 //---------------------------------------------------------------------------------------------------------------------
00019 class INTERFACE_API KSlider : public KWin
00020 {
00021 protected:
00022         bool                    m_bHorizontal ;
00023         float                   m_fPosSlider ;
00024         float                   m_fAbsolutePosSlider ;
00025         KFPt                    m_SizeSliderBar ;
00026         bool                    m_bClicked;
00027         float                   m_fRangeMin;
00028         float                   m_fRangeMax;
00029         float                   m_fStep;
00030 
00031 public:
00032                                         KSlider( KWin* pFather, KFPt& Pos, KFPt& Size, KInterface* pInterface,bool bHorizontal,KFPt& SizeSliderBar);
00033         virtual                 ~KSlider();
00034 
00035         void                    SetPosSliderBar(float fPos) {m_fPosSlider = fPos ;}
00036         float                   GetPosSliderBar()                       {return m_fPosSlider ;}
00037         float                   GetAbsolutePosSliderBar()       {return m_fAbsolutePosSlider ;}
00038 
00039         void                    SetRange(float fRangeMin,float fRangeMax,float fStep) ;
00040 
00041         virtual bool    OnMouseEvent( KWMOUSEEVENT Event, u32 Param ) ;
00042         virtual void    Display();
00043         virtual void    Manage();
00044 
00045         // Load/Unload
00046         virtual void    Load();
00047         virtual void    Unload();
00048 };
00049 
00050 #endif  __SLIDER_H__

Generated on Sun Mar 25 20:02:12 2007 for Zythum Project by  doxygen 1.5.1-p1