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
Diff: Core/GraphicsContext.cpp
- Revision:
 - 12:63db16fea709
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Core/GraphicsContext.cpp	Sun May 08 14:42:08 2016 +0000
@@ -0,0 +1,29 @@
+#include "GraphicsContext.h"
+
+GraphicsContext::GraphicsContext(GraphicsDisplay* display, EventDispatcher* dispatcher, FontRenderer* fontRenderer, Font* defaultFont) :
+    _display(display), _dispatcher(dispatcher), _renderer(fontRenderer), _font(defaultFont)
+{
+}
+
+
+
+GraphicsDisplay* GraphicsContext::display()
+{
+    return _display;
+}
+
+EventDispatcher* GraphicsContext::eventDispatcher()
+{
+    return _dispatcher;
+}
+
+FontRenderer* GraphicsContext::fontRenderer()
+{
+    return _renderer;
+}
+
+Font* GraphicsContext::defaultFont()
+{
+    return _font;
+}
+    
\ No newline at end of file
    