2 #include "cocoadisplay.h"
4 #include "display_private.h"
11 Display::Display(const string &):
16 static ErrorDialog err_dlg(0);
18 priv->display = create_display();
23 destroy_display(priv->display);
27 void Display::set_mode(const VideoMode &, bool)
29 throw runtime_error("video mode switching not supported");
32 bool Display::process_events()
35 if(!get_event(priv->display, &event.cevent))
38 auto i = priv->windows.find(event.cevent.any.window);
39 if(i!=priv->windows.end())
40 i->second->event(event);
45 void Display::check_error()
49 } // namespace Graphics