Foundation classes for a basic GUI implementing simple widgets and events
Dependents: TouchScreenGUIDemo
Widgets/BitmapWidget.h
- Committer:
- duncanFrance
- Date:
- 2016-04-11
- Revision:
- 8:a460cabc85ac
- Parent:
- 7:303850a4b30c
- Child:
- 9:616a9686d5db
File content as of revision 8:a460cabc85ac:
#ifndef SIMPLEGUI_BITMAP_WIDGET_H #define SIMPLEGUI_BITMAP_WIDGET_H #include "Widget.h" class BitmapWidget : public Widget { public: BitmapWidget(GUI* gui); // Ccncrete methods for this class void setBitmap(unsigned char* bitmap); // Set to draw the bitmap in monochrome void setMonochrome(bool enabled); bool isMonochrome(); protected: // Implementation to account for whether the event's coordinates intersect this widget virtual void _draw(); virtual void _clear(); unsigned char* _bitmap; bool _monochrome; }; #endif