Foundation classes for a basic GUI implementing simple widgets and events. (Fork for custom changes.)
Fork of SimpleGUI by
Widgets/TextWidget.h
- Committer:
- duncanFrance
- Date:
- 2016-03-25
- Revision:
- 2:bb9183379488
- Parent:
- 1:48796b602c86
- Child:
- 3:cb004f59b715
File content as of revision 2:bb9183379488:
#ifndef SIMPLEGUI_TEXT_WIDGET_H #define SIMPLEGUI_TEXT_WIDGET_H #include "Widget.h" #include "Font.h" class TextWidget : public Widget { public: TextWidget(GraphicsDisplay* display); // Ccncrete methods for this class virtual void setFont(Font* font); virtual void setText(char* text); // Implementation to account for whether the event's coordinates intersect this widget virtual bool isEventTarget(Event e); virtual void draw(); protected: char *_text; Font* _font; }; #endif