From 4d01f5f5096cb4d22c4a7ba17cc82977c7f5f19b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 29 Oct 2013 18:17:04 +0000 Subject: Adopted MirandaG15 plugin First compilable version and 32-bit only. git-svn-id: http://svn.miranda-ng.org/main/trunk@6681 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirandaG15/LCDFramework/src/CLCDScreen.h | 67 ++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 plugins/MirandaG15/LCDFramework/src/CLCDScreen.h (limited to 'plugins/MirandaG15/LCDFramework/src/CLCDScreen.h') diff --git a/plugins/MirandaG15/LCDFramework/src/CLCDScreen.h b/plugins/MirandaG15/LCDFramework/src/CLCDScreen.h new file mode 100644 index 0000000000..1f8b431a73 --- /dev/null +++ b/plugins/MirandaG15/LCDFramework/src/CLCDScreen.h @@ -0,0 +1,67 @@ +#ifndef _CLCDSCREEN_H_ +#define _CLCDSCREEN_H_ + +#include "CLCDGfx.h" +#include "CLCDObject.h" + +class CLCDScreen +{ +public: + // Constructor + CLCDScreen(); + // Destructor + ~CLCDScreen(); + + // Initializes the screen + virtual bool Initialize(); + // Shutdown the scren + virtual bool Shutdown(); + // Updates the screen + virtual bool Update(); + // Draws the screen + virtual bool Draw(CLCDGfx *pGfx); + + // Sets the screen's time until expiration + void SetExpiration(DWORD dwTime); + // Check if the screen has expired + bool HasExpired(); + + // Sets the alert status of the screen + void SetAlert(bool bAlert); + // gets the alert status of the scren + bool GetAlert(); + + // adds an object to the screen's object list + bool AddObject(CLCDObject *pObject); + // removes an object from the screen's object list + bool RemoveObject(CLCDObject *pObject); + + // get the screen's height + int GetHeight(); + // get the screen's width + int GetWidth(); + + // called when the screens size has changed + virtual void OnSizeChanged(); +public: + // Called when an LCD-button is pressed + virtual void OnLCDButtonDown(int iButton); + // Called when an LCD-button event is repeated + virtual void OnLCDButtonRepeated(int iButton); + // Called when an LCD-button is released + virtual void OnLCDButtonUp(int iButton); + // Called when the screen is activated + virtual void OnActivation(); + // Called when the screen is deactivated + virtual void OnDeactivation(); + // Called when the screen has expired + virtual void OnExpiration(); + +private: + SIZE m_Size; + vector m_Objects; + bool m_bAlert; + DWORD m_dwExpiration; +}; + +#endif \ No newline at end of file -- cgit v1.2.3