blob: e1d155d243e2ed6dbd6af571f11d4560b7174a49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
* GraphLCD driver library
*
* vncserver.h - vncserver device
* Output goes to a vncserver device
*
* This file is released under the GNU General Public License. Refer
* to the COPYING file distributed with this package.
*
* (c) 2013 Michael Heyer
*/
#ifndef _GLCDDRIVERS_VNCSERVER_H_
#define _GLCDDRIVERS_VNCSERVER_H_
#include "driver.h"
#include <rfb/rfb.h>
namespace GLCD
{
class cDriverConfig;
class cDriverVncServer : public cDriver
{
private:
char *offbuff;
rfbScreenInfoPtr server;
long int screensize;
int bbox[4];
int depth;
int CheckSetup();
void processDamage (void);
protected:
virtual bool GetDriverFeature (const std::string & Feature, int & value);
public:
cDriverVncServer(cDriverConfig * config);
virtual int Init();
virtual int DeInit();
virtual void Clear();
virtual void SetPixel(int x, int y, uint32_t data);
virtual void Refresh(bool refreshAll = false);
};
} // end of namespace
#endif
|