2 #include "cocoadisplay.h"
4 #include "display_private.h"
11 Display::Display(const std::string &):
14 static ErrorDialog err_dlg(0);
16 priv->display = create_display();
21 destroy_display(priv->display);
25 void Display::set_mode(const VideoMode &, bool)
27 throw runtime_error("video mode switching not supported");
30 bool Display::process_events()
33 if(!get_event(priv->display, &event.cevent))
36 map<WindowHandle, Window *>::iterator i = priv->windows.find(event.cevent.any.window);
37 if(i!=priv->windows.end())
38 i->second->event(event);
43 void Display::check_error()
47 } // namespace Graphics