Foundation classes for a basic GUI implementing simple widgets and events

Dependents:   TouchScreenGUIDemo

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