2017-01-21 17:27:46 +01:00
|
|
|
|
2017-01-21 23:44:30 +01:00
|
|
|
#pragma once
|
2017-01-21 17:27:46 +01:00
|
|
|
|
2017-02-04 17:59:07 +01:00
|
|
|
class CPixmap;
|
|
|
|
class CDecor;
|
|
|
|
class CSound;
|
|
|
|
|
2017-01-21 17:27:46 +01:00
|
|
|
class CJauge
|
|
|
|
{
|
|
|
|
public:
|
2017-02-12 13:14:22 +01:00
|
|
|
CJauge();
|
|
|
|
~CJauge();
|
2017-01-21 17:27:46 +01:00
|
|
|
|
2017-02-12 13:14:22 +01:00
|
|
|
bool Create (CPixmap *pPixmap, CSound *pSound,
|
2017-02-13 22:07:09 +01:00
|
|
|
POINT pos, Sint32 type);
|
2017-02-12 13:14:22 +01:00
|
|
|
void Draw();
|
2017-01-21 17:27:46 +01:00
|
|
|
|
2017-02-12 13:14:22 +01:00
|
|
|
void SetLevel (Sint32 level);
|
|
|
|
void SetType (Sint32 type);
|
2017-01-21 17:27:46 +01:00
|
|
|
|
2017-02-12 13:14:22 +01:00
|
|
|
bool GetHide();
|
|
|
|
void SetHide (bool bHide);
|
|
|
|
|
|
|
|
POINT GetPos();
|
2017-01-21 17:27:46 +01:00
|
|
|
|
|
|
|
protected:
|
2017-02-12 13:14:22 +01:00
|
|
|
CPixmap *m_pPixmap;
|
|
|
|
CDecor *m_pDecor;
|
|
|
|
CSound *m_pSound;
|
|
|
|
bool m_bHide; // true si bouton caché
|
|
|
|
POINT m_pos; // coin sup/gauche
|
|
|
|
POINT m_dim; // dimensions
|
|
|
|
Sint32 m_type;
|
|
|
|
Sint32 m_level;
|
2017-01-21 17:27:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|