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 SimpleGUI by
GraphicsContext.h
00001 #ifndef SIMPLEGUI_GRAPHICSCONTEXT_H 00002 #define SIMPLEGUI_GRAPHICSCONTEXT_H 00003 00004 #include "GraphicsDisplay.h" 00005 #include "Events/EventDispatcher.h" 00006 #include "Font/Font.h" 00007 #include "Font/FontRenderer.h" 00008 00009 /** 00010 * The GraphicsContext holds the core class needed to handle drawing and events 00011 **/ 00012 class GraphicsContext 00013 { 00014 00015 public: 00016 00017 GraphicsContext(GraphicsDisplay* display, EventDispatcher* dispatcher, FontRenderer* fontRenderer, Font* defaultFont); 00018 00019 GraphicsDisplay* display(); 00020 EventDispatcher* eventDispatcher(); 00021 FontRenderer* fontRenderer(); 00022 Font* defaultFont(); 00023 00024 private: 00025 GraphicsDisplay* _display; 00026 EventDispatcher* _dispatcher; 00027 FontRenderer* _renderer; 00028 Font* _font; 00029 }; 00030 00031 #endif
Generated on Tue Jul 12 2022 22:27:14 by
