* All Rights Reserved.
* -->
*
- * \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
*
* \brief Custom control for graphics LCD emulation (interface)
#ifndef DRV_LCD_GFX_QT_H
#define DRV_LCD_GFX_QT_H
+// uint8_t
+#include <gfx/gfx.h>
+#include <cfg/compiler.h>
+
#include <QtGui/QColor>
#include <QtGui/QFrame>
+#define LCD_WIDTH 128
+
// fwd decls
class QSizePolicy;
class QPaintEvent;
class QResizeEvent;
+#define CONFIG_EMULLCD_SCALE 1
class EmulLCD : public QFrame
{
// Base class overrides
protected:
- virtual QSizePolicy sizePolicy() const;
- virtual QSize sizeHint() const;
- virtual QSize minimumSizeHint() const;
virtual void paintEvent(QPaintEvent *event);
+ #if CONFIG_EMULLCD_SCALE
+ virtual int heightForWidth(int w) const;
+ #endif
+
// Operations
public:
void writeRaster(uint8_t *raster);
unsigned char raster[(WIDTH + 7 / 8) * HEIGHT];
};
+
+void lcd_gfx_qt_init(Bitmap *lcd_bitmap);
+void lcd_gfx_qt_blitBitmap(const Bitmap *bm);
+
#endif // DRV_LCD_GFX_QT_H