X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/1e88da3ea994175689ab4d8edbc1fd809f1d6ad8..1213cbcff4f8b31aa77825325f102a134d246e0a:/lib/gdi/lcd.h diff --git a/lib/gdi/lcd.h b/lib/gdi/lcd.h index f2e707f0..11749c64 100644 --- a/lib/gdi/lcd.h +++ b/lib/gdi/lcd.h @@ -12,38 +12,49 @@ class eLCD { +#ifdef SWIG + eLCD(eSize size); + ~eLCD(); +#else protected: eSize res; unsigned char *_buffer; int lcdfd; int _stride; int locked; +#endif public: int lock(); void unlock(); int islocked() { return locked; } - +#ifndef SWIG eLCD(eSize size); virtual ~eLCD(); - __u8 *buffer() { return (__u8*)_buffer; } int stride() { return _stride; } eSize size() { return res; } virtual void update()=0; +#endif }; class eDBoxLCD: public eLCD { static eDBoxLCD *instance; unsigned char inverted; +#ifdef SWIG + eDBoxLCD(); + ~eDBoxLCD(); +#endif public: +#ifndef SWIG + eDBoxLCD(); + ~eDBoxLCD(); +#endif static eDBoxLCD *getInstance(); int eDBoxLCD::setLCDContrast(int contrast); int eDBoxLCD::setLCDBrightness(int brightness); void setInverted( unsigned char ); - eDBoxLCD(); - ~eDBoxLCD(); void update(); };