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.h	Sun May 08 14:42:08 2016 +0000
@@ -0,0 +1,31 @@
+#ifndef SIMPLEGUI_GRAPHICSCONTEXT_H
+#define SIMPLEGUI_GRAPHICSCONTEXT_H
+
+#include "GraphicsDisplay.h"
+#include "Events/EventDispatcher.h"
+#include "Font/Font.h"
+#include "Font/FontRenderer.h"
+
+/**
+* The GraphicsContext holds the core class needed to handle drawing and events
+**/
+class GraphicsContext
+{
+
+public:
+
+    GraphicsContext(GraphicsDisplay* display, EventDispatcher* dispatcher, FontRenderer* fontRenderer, Font* defaultFont);
+
+    GraphicsDisplay* display();
+    EventDispatcher* eventDispatcher();
+    FontRenderer* fontRenderer();
+    Font* defaultFont();
+
+private:
+    GraphicsDisplay* _display;
+    EventDispatcher* _dispatcher;
+    FontRenderer* _renderer;
+    Font* _font;
+};
+
+#endif
\ No newline at end of file