Foundation classes for a basic GUI implementing simple widgets and events
Dependents: TouchScreenGUIDemo
Widgets/BitmapWidget.h
- Committer:
- duncanFrance
- Date:
- 2016-05-21
- Revision:
- 14:e6515b19f5a0
- Parent:
- 12:63db16fea709
- Child:
- 16:e9a771ecfdbe
File content as of revision 14:e6515b19f5a0:
#ifndef SIMPLEGUI_BITMAP_WIDGET_H #define SIMPLEGUI_BITMAP_WIDGET_H #include "Widget.h" class BitmapWidget : public Widget { public: BitmapWidget(GraphicsContext *context); BitmapWidget(GraphicsContext *context, bool monochrome); // Ccncrete methods for this class void setBitmap(unsigned char const * bitmap, int width, int height); // Set to draw the bitmap in monochrome void setMonochrome(bool enabled); bool isMonochrome(); protected: virtual void _draw(); unsigned char* _bitmap; bool _monochrome; }; #endif