diff options
Diffstat (limited to 'plugins/MirandaG15/src/CScreen.h')
-rw-r--r-- | plugins/MirandaG15/src/CScreen.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/plugins/MirandaG15/src/CScreen.h b/plugins/MirandaG15/src/CScreen.h new file mode 100644 index 0000000000..53b05a96e3 --- /dev/null +++ b/plugins/MirandaG15/src/CScreen.h @@ -0,0 +1,47 @@ +#ifndef _CSCREEN_H_
+#define _CSCREEN_H_
+
+#include "CLCDScreen.h"
+#include "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
\ No newline at end of file |