4 * Copyright 2006 Develer S.r.l. (http://www.develer.com/)
10 * \author Bernardo Innocenti <bernie@develer.com>
12 * \brief Custom control for graphics LCD emulation (interface)
17 *#* Revision 1.1 2006/01/16 03:51:35 bernie
18 *#* Add LCD Qt emulator.
22 #ifndef DRV_LCD_GFX_QT_H
23 #define DRV_LCD_GFX_QT_H
34 class EmulLCD : public QFrame
40 enum { WIDTH = 128, HEIGHT = 64 };
43 EmulLCD(QWidget *parent = 0, const char *name = 0);
46 // Base class overrides
48 virtual QSizePolicy sizePolicy() const;
49 virtual QSize sizeHint() const;
50 // virtual void paintEvent(QPaintEvent *event);
51 virtual void drawContents(QPainter *p);
55 void writeRaster(uint8_t *raster);
63 QColor fg_color, bg_color;
66 unsigned char raster[(WIDTH * HEIGHT) / 8];
69 #endif // DRV_LCD_GFX_QT_H