Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of DMBasicGUI by
Diff: Application/Clickable.h
- Revision:
- 6:7917b0894655
- Parent:
- 2:efae611de184
- Child:
- 7:4ba7bd9d32ef
diff -r f4de114c31c3 -r 7917b0894655 Application/Clickable.h
--- a/Application/Clickable.h Sun Dec 21 13:53:07 2014 +0100
+++ b/Application/Clickable.h Thu Jan 08 11:14:56 2015 +0100
@@ -67,9 +67,10 @@
*/
bool handle(uint16_t x, uint16_t y, bool pressed);
- /** Draws the button
+ /** Draws the button (on a new framebuffer if one is specified)
+ * @param fb the frame buffer
*/
- virtual void draw() = 0;
+ virtual void draw(COLOR_T* fb = 0) = 0;
protected:
bool _enabled, _pressed;
