el h / SimpleGUI

Fork of SimpleGUI by Duncan McIntyre

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GraphicsContext.h Source File

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