// -*- c++ -*- #pragma once #ifndef __REFLEX_OSX_WINDOW_DATA_H__ #define __REFLEX_OSX_WINDOW_DATA_H__ #include #include #include #include #include #include @class NativeWindow; namespace Reflex { typedef std::map CapturingViews; struct Window::Data { NativeWindow* native; int hide_count; bool redraw; Painter painter; View::Ref root, focus; Rays::Point prev_position, prev_size; double prev_time_update, prev_time_draw, prev_fps; String title_tmp; CapturingViews capturing_views; Data () : native(nil), hide_count(1), redraw(true), root(create_root_view()), prev_fps(0) { prev_time_update = prev_time_draw = Xot::time(); } operator bool () const { return native; } bool operator ! () const { return !operator bool(); } static View* create_root_view () { View* v = new View; v->set_name("ROOT"); return v; } };// Window::Data }// Reflex #endif//EOH