summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15/src/CScreensaverScreen.h
blob: 403a0b6bcb82fe02a4fbe766363c5f425d3f6c94 (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
48
49
50
51
#ifndef _CSCREENSAVERSSCREEN_H_
#define _CSCREENSAVERSSCREEN_H_

#include "CScreen.h"
#include "LCDFramework/CLCDLabel.h"

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

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

	// Called when the configuration has changed
	void OnConfigChanged();
	// Called when the screen size has changed
	void OnSizeChanged();
	// Called when an LCD-button is pressed
	void OnLCDButtonDown(int iButton);
	// Called when an LCD-button event is repeated
	void OnLCDButtonRepeated(int iButton);
	// Called when an LCD-button is released
	void OnLCDButtonUp(int iButton);
	// Called when the screen is activated
	void OnActivation();
	// Called when the screen is deactivated
	void OnDeactivation();
	// Called when the screen has expired
	void OnExpiration();

	// Resets the credits screens state
	void Reset();
private:

	CLCDLabel m_Label, m_Label2;
	uint32_t m_dwActivation = 0;
	uint32_t m_dwDuration = 0;
	int m_iPosition = 0;
};

#endif