Foundation classes for a basic GUI implementing simple widgets and events
Dependents: TouchScreenGUIDemo
Font/UGFont/UGFontRenderer.h
- Committer:
- duncanFrance
- Date:
- 2016-05-28
- Revision:
- 18:d849f3ada858
- Parent:
- 8:a460cabc85ac
File content as of revision 18:d849f3ada858:
#ifndef SIMPLEGUI_UNIGRAPHIC_FONT_RENDERER_H #define SIMPLEGUI_UNIGRAPHIC_FONT_RENDERER_H #include "FontRenderer.h" #include "UGFont.h" #include "GraphicsDisplay.h" /** * Provides two means to render a font * - windowed: uses the same wrap-around algorithm as UniGraphic * - clipped: does not wrap. Only shows pixels within the clipping window **/ class UGFontRenderer : public FontRenderer { public: UGFontRenderer(); virtual void putc(const char c, GraphicsDisplay* display, Font* font); virtual void puts(const char* s, GraphicsDisplay* display, Font* font); //virtual void setFont(UGFont* font); private: UGFont* _font; }; #endif