/// <summary> /// /// </summary> /// <param name="target"></param> public GUIContext(IRenderTarget target) : base(target) { _rootWindow = null; _isDirty = false; d_defaultTooltipObject = null; d_weCreatedTooltipObject = false; d_defaultFont = null; d_surfaceSize = target.GetArea().Size; d_modalWindow = null; d_captureWindow = null; //d_areaChangedEventConnection(target.subscribeEvent(RenderTarget::EventAreaChanged,Event::Subscriber(&GUIContext::areaChangedHandler, this))); target.AreaChanged += AreaChangedHandler; //d_windowDestroyedEventConnection(WindowManager::getSingleton().subscribeEvent(WindowManager::EventWindowDestroyed,Event::Subscriber(&GUIContext::windowDestroyedHandler, this))); WindowManager.GetSingleton().WindowDestroyed += WindowDestroyedHandler; d_windowNavigator = null; ResetWindowContainingCursor(); InitializeSemanticEventHandlers(); }