X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Flcd_gfx_qt.h;h=9840f24cd44817db4765c07619b514999eb62117;hb=41718ab2098bd5640da265c34f1ecb79a4123d39;hp=a5538f39299fcfc8dad995e4cda52dd8692e49de;hpb=27cabaafe176d72d9bd634f4bd7680d7337a3f69;p=bertos.git diff --git a/bertos/drv/lcd_gfx_qt.h b/bertos/drv/lcd_gfx_qt.h index a5538f39..9840f24c 100644 --- a/bertos/drv/lcd_gfx_qt.h +++ b/bertos/drv/lcd_gfx_qt.h @@ -30,7 +30,6 @@ * All Rights Reserved. * --> * - * \version $Id$ * \author Bernie Innocenti * * \brief Custom control for graphics LCD emulation (interface) @@ -39,14 +38,21 @@ #ifndef DRV_LCD_GFX_QT_H #define DRV_LCD_GFX_QT_H +// uint8_t +#include +#include + #include #include +#define LCD_WIDTH 128 + // fwd decls class QSizePolicy; class QPaintEvent; class QResizeEvent; +#define CONFIG_EMULLCD_SCALE 1 class EmulLCD : public QFrame { @@ -62,11 +68,12 @@ public: // 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); @@ -84,4 +91,8 @@ protected: 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