el h / SimpleGUI

Fork of SimpleGUI by Duncan McIntyre

Core/GUI.h

Committer:
elh
Date:
2016-10-18
Revision:
20:ef07d42ea062
Parent:
18:d849f3ada858

File content as of revision 20:ef07d42ea062:

#ifndef SIMPLEGUI_GUI_H
#define SIMPLEGUI_GUI_H

class GUI;

#include "GraphicsContext.h"
#include "Window.h"

/**
* A singleton class to hold the framework components
**/
class GUI
{

public:

    GUI(GraphicsContext* context);

    GraphicsContext* getGraphicsContext();
    Window *rootWindow();
    
    void run();
    
private:

    GraphicsContext* _context;
    Window _rootWindow;

};
#endif