Пример #1
0
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);
}
Пример #2
0
void wxIFMFloatingWindowBase::AddPendingUpdate()
{
    if( m_window->IsShown() )
    {
        wxIFMUpdateComponentEvent updevt(m_component, m_component->m_rect);
        GetIP()->AddPendingPluginEvent(updevt);
    }
}
Пример #3
0
void wxIFMFloatingWindowBase::Update(bool force)
{
    if( m_window->IsShown() || force )
    {
        wxIFMUpdateComponentEvent updevt(m_component, m_component->m_rect);
        GetIP()->ProcessPluginEvent(updevt);
    }
}
Пример #4
0
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);
}