X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d6f6602d7cea3a7899990fe79216af7d98d05917..164779f4a960754a7d18d5947c43df1e26963a89:/lib/gdi/lcd.h diff --git a/lib/gdi/lcd.h b/lib/gdi/lcd.h index 88e543f7..6ee4dbe7 100644 --- a/lib/gdi/lcd.h +++ b/lib/gdi/lcd.h @@ -1,5 +1,3 @@ -#ifndef DISABLE_LCD - #ifndef __lcd_h #define __lcd_h @@ -14,41 +12,50 @@ 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: - static eDBoxLCD *getInstance(); - int switchLCD(int state); - int setLCDParameter(int brightness, int contrast); - void setInverted( unsigned char ); +#ifndef SWIG eDBoxLCD(); ~eDBoxLCD(); +#endif + static eDBoxLCD *getInstance(); + int setLCDContrast(int contrast); + int setLCDBrightness(int brightness); + void setInverted( unsigned char ); void update(); }; #endif - -#endif //DISABLE_LCD