From c77821d0b4b3ae09e47ce6d6ca9d6b21dbb56d30 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Mon, 4 Nov 2013 08:59:15 +0000 Subject: LCDFramework project removed, integrated to MirandaG15 project git-svn-id: http://svn.miranda-ng.org/main/trunk@6767 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirandaG15/src/LCDFramework/CLCDObject.h | 52 ++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 plugins/MirandaG15/src/LCDFramework/CLCDObject.h (limited to 'plugins/MirandaG15/src/LCDFramework/CLCDObject.h') diff --git a/plugins/MirandaG15/src/LCDFramework/CLCDObject.h b/plugins/MirandaG15/src/LCDFramework/CLCDObject.h new file mode 100644 index 0000000000..13dbb5a101 --- /dev/null +++ b/plugins/MirandaG15/src/LCDFramework/CLCDObject.h @@ -0,0 +1,52 @@ +#ifndef _CLCDOBJECT_H_ +#define _CLCDOBJECT_H_ + +#include "CLCDGfx.h" + +class CLCDObject +{ +public: + // Constructor + CLCDObject(); + // Destructor + ~CLCDObject(); + + // Initialize the object + virtual bool Initialize(); + // Shutdown the object + virtual bool Shutdown(); + + // Set the origin of the object + void SetOrigin(int iX,int iY); + void SetOrigin(POINT p); + // Get the origin of the object + POINT GetOrigin(); + // Set the size of the object + void SetSize(int iWidth,int iHeight); + void SetSize(SIZE s); + // Get the size of the object + SIZE GetSize(); + int GetWidth(); + int GetHeight(); + + // Set the visibility + void Show(bool bShow); + // Check the visibility + bool IsVisible(); + + // Update the object + virtual bool Update(); + // Draw the object + virtual bool Draw(CLCDGfx *pGfx); + +protected: + // Called when the size of the object has changed + virtual void OnSizeChanged(SIZE OldSize); + +private: + POINT m_Origin; + SIZE m_Size; + bool m_bShow; +}; + +#endif \ No newline at end of file -- cgit v1.2.3