00001 /* 00002 * CDisplay.h 00003 * 00004 * Created on: 14.04.2010 00005 * Author: vdv 00006 */ 00007 00008 #ifndef LIBGUI_CDISPLAY_H_ 00009 #define LIBGUI_CDISPLAY_H_ 00010 00011 #include "integer.h" 00012 00013 class CGraphics; 00014 class CImage; 00015 00021 class CDisplay 00022 { 00023 public: 00027 CDisplay(); 00028 ~CDisplay(); 00034 BOOL Init(); 00045 void BacklightFlash(UINT32 duration); 00049 void Blank(); 00053 void UnBlank(); 00058 INT16 GetWidth(); 00063 INT16 GetHeight(); 00068 CGraphics* GetGraphics(); 00077 void Flush(); 00081 void Close(); 00082 private: 00086 CImage* m_image; 00091 int m_device_fd; 00092 BOOL m_blank; 00093 }; 00094 00095 #endif /* LIBGUI_CDISPLAY_H_ */