summaryrefslogtreecommitdiff
path: root/glcddrivers/simlcd.h
blob: 12f819c1a8f637d3e6d0147337dcfdec712e68ba (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
/*
 * GraphLCD driver library
 *
 * simlcd.h  -  SimLCD driver class
 *              Output goes to a file instead of lcd.
 *              Use SimLCD tool to view this file.
 *
 * This file is released under the GNU General Public License. Refer
 * to the COPYING file distributed with this package.
 *
 * (c) 2001-2004 Carsten Siebholz <c.siebholz AT t-online.de>
 * (c) 2011      Dirk Heiser
 * (c) 2011      Wolfgang Astleitner <mrwastl AT users.sourceforge.net>
 */

#ifndef _GLCDDRIVERS_SIMLCD_H_
#define _GLCDDRIVERS_SIMLCD_H_

#include "driver.h"


namespace GLCD
{

class cDriverConfig;

class cDriverSimLCD : public cDriver
{
private:
    uint32_t ** LCD;
    int CheckSetup();

public:
    cDriverSimLCD(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);
    virtual uint32_t GetBackgroundColor(void);
    virtual bool GetDriverFeature  (const std::string & Feature, int & value);
};

} // end of namespace

#endif