git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
another fix
[enigma2.git]
/
lib
/
gdi
/
lcd.h
diff --git
a/lib/gdi/lcd.h
b/lib/gdi/lcd.h
index aee1417d1bd088f5a043ea27f9a010e34a54808d..11749c64a2ec99ce35770120c650e086c1f73aa5 100644
(file)
--- a/
lib/gdi/lcd.h
+++ b/
lib/gdi/lcd.h
@@
-12,37
+12,49
@@
class eLCD
{
class eLCD
{
+#ifdef SWIG
+ eLCD(eSize size);
+ ~eLCD();
+#else
protected:
eSize res;
unsigned char *_buffer;
int lcdfd;
int _stride;
int locked;
protected:
eSize res;
unsigned char *_buffer;
int lcdfd;
int _stride;
int locked;
+#endif
public:
int lock();
void unlock();
int islocked() { return locked; }
public:
int lock();
void unlock();
int islocked() { return locked; }
-
+#ifndef SWIG
eLCD(eSize size);
virtual ~eLCD();
eLCD(eSize size);
virtual ~eLCD();
-
__u8 *buffer() { return (__u8*)_buffer; }
int stride() { return _stride; }
eSize size() { return res; }
virtual void update()=0;
__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;
};
class eDBoxLCD: public eLCD
{
static eDBoxLCD *instance;
unsigned char inverted;
+#ifdef SWIG
+ eDBoxLCD();
+ ~eDBoxLCD();
+#endif
public:
public:
- static eDBoxLCD *getInstance();
- int setLCDParameter(int brightness, int contrast);
- void setInverted( unsigned char );
+#ifndef SWIG
eDBoxLCD();
~eDBoxLCD();
eDBoxLCD();
~eDBoxLCD();
+#endif
+ static eDBoxLCD *getInstance();
+ int eDBoxLCD::setLCDContrast(int contrast);
+ int eDBoxLCD::setLCDBrightness(int brightness);
+ void setInverted( unsigned char );
void update();
};
void update();
};