X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/b8e9b51fb1a75b1805cf3108ffdc22aff9f75cf2..1e9bbad0b92212ecf3d80186c2000d2f68f28fdb:/lib/gdi/lcd.h diff --git a/lib/gdi/lcd.h b/lib/gdi/lcd.h index aee1417d..e45d88b2 100644 --- a/lib/gdi/lcd.h +++ b/lib/gdi/lcd.h @@ -12,37 +12,51 @@ 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; + int is_oled; +#ifdef SWIG + eDBoxLCD(); + ~eDBoxLCD(); +#endif public: - static eDBoxLCD *getInstance(); - 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 ); + bool isOled() const { return !!is_oled; } void update(); };