Foundation classes for a basic GUI implementing simple widgets and events
Dependents: TouchScreenGUIDemo
Diff: Widgets/BitmapWidget.h
- Revision:
- 16:e9a771ecfdbe
- Parent:
- 14:e6515b19f5a0
--- a/Widgets/BitmapWidget.h Sat May 21 18:02:20 2016 +0000 +++ b/Widgets/BitmapWidget.h Sun May 22 14:40:29 2016 +0000 @@ -16,6 +16,9 @@ // Set to draw the bitmap in monochrome void setMonochrome(bool enabled); bool isMonochrome(); + + // Override to accommodate auto-resizing (yes, yes. sorry) + virtual void setBorder(int width, uint16_t color); protected: @@ -23,6 +26,7 @@ unsigned char* _bitmap; bool _monochrome; + int _bitmapWidth, _bitmapHeight; }; #endif \ No newline at end of file