void wxInterfaceManager::Update(wxRect rect, bool floating) { if(!bProcessEvents) return; //maks wxRect *_rect; // if the application gave us a rect to use, use it if( m_useUpdateRect ) _rect = &m_updateRect; else { if( rect == IFM_DEFAULT_RECT ) m_updateRect = m_parent->GetClientRect(); else { m_updateRect = rect; m_useUpdateRect = true; } _rect = &m_updateRect; } // generate update interface event wxIFMUpdateEvent updevt(m_content, *_rect, floating); GetActiveIP()->ProcessPluginEvent(updevt); }
void wxIFMFloatingWindowBase::AddPendingUpdate() { if( m_window->IsShown() ) { wxIFMUpdateComponentEvent updevt(m_component, m_component->m_rect); GetIP()->AddPendingPluginEvent(updevt); } }
void wxIFMFloatingWindowBase::Update(bool force) { if( m_window->IsShown() || force ) { wxIFMUpdateComponentEvent updevt(m_component, m_component->m_rect); GetIP()->ProcessPluginEvent(updevt); } }
void wxIFMDefaultPlugin::OnFloatingSize(wxIFMFloatingSizeEvent &event) { wxIFMFloatingWindowBase *base = event.GetWindow(); const wxRect &client_rect = base->GetWindow()->GetClientRect(); // set out root components desired size wxIFMRectEvent rectevt(wxEVT_IFM_SETDESIREDSIZE, base->GetComponent(), client_rect); GetIP()->ProcessPluginEvent(rectevt); // update our root component wxIFMUpdateComponentEvent updevt(base->GetComponent(), client_rect); GetIP()->ProcessPluginEvent(updevt); }