1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00
planetblupi/src/jauge.h
Mathieu Schroeter 01c8b5a042 Cosmetic: change coding style with
astyle src/*.{cpp,h} -s4 -Y -m0 -p -xg -xd -H -k3 -W3 -y -xb -xj -O -c -xy -xC80 -U
2017-02-12 13:14:22 +01:00

45 lines
1.0 KiB
C++

// Jauge.h
#pragma once
class CPixmap;
class CDecor;
class CSound;
/////////////////////////////////////////////////////////////////////////////
class CJauge
{
public:
CJauge();
~CJauge();
bool Create (CPixmap *pPixmap, CSound *pSound,
POINT pos, Sint32 type, bool bMinimizeRedraw);
void Draw();
void Redraw();
void SetLevel (Sint32 level);
void SetType (Sint32 type);
bool GetHide();
void SetHide (bool bHide);
POINT GetPos();
void SetRedraw();
protected:
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;
bool m_bMinimizeRedraw;
bool m_bRedraw; // true -> doit être redessiné
};
/////////////////////////////////////////////////////////////////////////////