Foundation classes for a basic GUI implementing simple widgets and events
Dependents: TouchScreenGUIDemo
Widgets/BitmapWidget.h
- Committer:
- duncanFrance
- Date:
- 2016-05-08
- Revision:
- 12:63db16fea709
- Parent:
- 9:616a9686d5db
- Child:
- 14:e6515b19f5a0
File content as of revision 12:63db16fea709:
#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* 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