20#ifndef INCLUDED_VCL_INC_SALUSEREVENTLIST_HXX
21#define INCLUDED_VCL_INC_SALUSEREVENTLIST_HXX
26#include <osl/thread.hxx>
53 return m_pFrame ==
aEvent.m_pFrame
55 && m_nEvent==
aEvent.m_nEvent;
71 inline bool HasUserEvents_NoLock()
const;
78 void insertFrame(
SalFrame* pFrame );
80 inline
bool isFrameAlive( const
SalFrame* pFrame ) const;
84 inline
bool HasUserEvents() const;
86 bool DispatchUserEvents(
bool bHandleAllCurrentEvents );
91 if ( m_aFrames.
empty() )
93 return *m_aFrames.
begin();
98 auto it = m_aFrames.
find(
const_cast<SalFrame*
>( pFrame ) );
99 return it != m_aFrames.
end();
104 std::unique_lock aGuard( m_aUserEventsMutex );
105 return HasUserEvents_NoLock();
110 return !(m_aUserEvents.empty() && m_aProcessingUserEvents.empty());
115 std::unique_lock aGuard( m_aUserEventsMutex );
117 m_bAllUserEventProcessedSignaled =
false;
118 TriggerUserEventProcessing();
A SalFrame is a system window (e.g. an X11 window).
bool isFrameAlive(const SalFrame *pFrame) const
virtual void ProcessEvent(SalUserEvent aEvent)=0
bool HasUserEvents_NoLock() const
std::list< SalUserEvent > m_aUserEvents
void PostEvent(SalFrame *pFrame, void *pData, SalEvent nEvent)
bool HasUserEvents() const
std::mutex m_aUserEventsMutex
virtual void TriggerUserEventProcessing()=0
const SalFrameSet & getFrames() const
oslThreadIdentifier m_aProcessingThread
std::list< SalUserEvent > m_aProcessingUserEvents
bool m_bAllUserEventProcessedSignaled
virtual void TriggerAllUserEventsProcessed()
const_iterator begin() const
const_iterator find(const Value &x) const
const_iterator end() const
#define VCL_PLUGIN_PUBLIC
std::unique_ptr< sal_Int32[]> pData
o3tl::sorted_vector< SalFrame * > SalFrameSet
bool operator==(const SalUserEvent &aEvent) const
SalUserEvent(SalFrame *pFrame, void *pData, SalEvent nEvent)