summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15/src/CScreen.h
blob: 7c3939861c65ef37cf15d4e59bf42467dff0180b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef _CSCREEN_H_
#define _CSCREEN_H_

#include "LCDFramework\CLCDScreen.h"
#include "LCDFramework\CLCDBitmap.h"
//#include "CLCDLabel.h"

class CScreen : public CLCDScreen
{
public:
	// Constructor
	CScreen();
	// Destructor
	~CScreen();

	// Initializes the screen 
	bool Initialize();
	// Shutdown the scren
	bool Shutdown();
	// Updates the screen
	bool Update();
	// Draws the screen
	bool Draw(CLCDGfx *pGfx);

	// Called when an event is received
	virtual void OnEventReceived(CEvent *pEvent);
	// Called when the configuration has changed
	virtual void OnConfigChanged();
	// Called when the screens size has changed
	virtual void OnSizeChanged();
protected:
	// Set the specified button label
	void SetButtonBitmap(int iButton, int iBitmap);
	// Hide/Show the buttons
	void ShowButtons(bool bShow);
private:
	//CLCDLabel	m_Clock;

	CLCDBitmap	m_aButtons[4];
	HBITMAP		m_ahBitmaps[4];
	bool		m_abShowButtons[4];
	bool		m_bHideButtons;

	void UpdateButtons();
};

#endif