el h / SimpleGUI

Fork of SimpleGUI by Duncan McIntyre

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GUI.h Source File

GUI.h

00001 #ifndef SIMPLEGUI_GUI_H
00002 #define SIMPLEGUI_GUI_H
00003 
00004 class GUI;
00005 
00006 #include "GraphicsContext.h"
00007 #include "Window.h"
00008 
00009 /**
00010 * A singleton class to hold the framework components
00011 **/
00012 class GUI
00013 {
00014 
00015 public:
00016 
00017     GUI(GraphicsContext* context);
00018 
00019     GraphicsContext* getGraphicsContext();
00020     Window *rootWindow();
00021     
00022     void run();
00023     
00024 private:
00025 
00026     GraphicsContext* _context;
00027     Window _rootWindow;
00028 
00029 };
00030 #endif