1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00
planetblupi/src/jauge.h

45 lines
848 B
C
Raw Normal View History

2017-01-21 17:27:46 +01:00
// Jauge.h
2017-01-21 23:44:30 +01:00
#pragma once
2017-01-21 17:27:46 +01:00
class CPixmap;
class CDecor;
class CSound;
2017-01-21 17:27:46 +01:00
/////////////////////////////////////////////////////////////////////////////
class CJauge
{
public:
CJauge();
~CJauge();
2017-02-05 09:15:08 +01:00
bool Create(CPixmap *pPixmap, CSound *pSound,
POINT pos, Sint32 type, bool bMinimizeRedraw);
2017-01-21 17:27:46 +01:00
void Draw();
void Redraw();
void SetLevel(Sint32 level);
void SetType(Sint32 type);
2017-01-21 17:27:46 +01:00
bool GetHide();
void SetHide(bool bHide);
2017-01-21 17:27:46 +01:00
POINT GetPos();
void SetRedraw();
protected:
CPixmap* m_pPixmap;
CDecor* m_pDecor;
CSound* m_pSound;
2017-02-12 00:44:46 +01:00
bool m_bHide; // true si bouton caché
2017-01-21 17:27:46 +01:00
POINT m_pos; // coin sup/gauche
POINT m_dim; // dimensions
Sint32 m_type;
Sint32 m_level;
bool m_bMinimizeRedraw;
2017-02-12 00:44:46 +01:00
bool m_bRedraw; // true -> doit être redessiné
2017-01-21 17:27:46 +01:00
};
/////////////////////////////////////////////////////////////////////////////