Qt 4.8
Classes | Public Types | Static Public Functions | Static Public Variables | List of all members
QWindowSystemInterfacePrivate Class Reference

#include <qwindowsysteminterface_qpa_p.h>

Classes

class  ActivatedWindowEvent
 
class  CloseEvent
 
class  EnterEvent
 
class  GeometryChangeEvent
 
class  KeyEvent
 
class  LeaveEvent
 
class  LocaleChangeEvent
 
class  MouseEvent
 
class  PlatformPanelEvent
 
class  ScreenAvailableGeometryEvent
 
class  ScreenCountEvent
 
class  ScreenGeometryEvent
 
class  TouchEvent
 
class  UserEvent
 
class  WheelEvent
 
class  WindowStateChangedEvent
 
class  WindowSystemEvent
 

Public Types

enum  EventType {
  Close, GeometryChange, Enter, Leave,
  ActivatedWindow, WindowStateChanged, Mouse, Wheel,
  Key, Touch, ScreenGeometry, ScreenAvailableGeometry,
  ScreenCountChange, LocaleChange, PlatformPanel
}
 

Static Public Functions

static WindowSystemEventgetWindowSystemEvent ()
 
static void queueWindowSystemEvent (WindowSystemEvent *ev)
 
static int windowSystemEventsQueued ()
 

Static Public Variables

static QTime eventTime
 
static QMutex queueMutex
 
static QList< WindowSystemEvent * > windowSystemEventQueue
 

Detailed Description

Definition at line 50 of file qwindowsysteminterface_qpa_p.h.

Enumerations

◆ EventType

Enumerator
Close 
GeometryChange 
Enter 
Leave 
ActivatedWindow 
WindowStateChanged 
Mouse 
Wheel 
Key 
Touch 
ScreenGeometry 
ScreenAvailableGeometry 
ScreenCountChange 
LocaleChange 
PlatformPanel 

Definition at line 52 of file qwindowsysteminterface_qpa_p.h.

52  {
53  Close,
55  Enter,
56  Leave,
59  Mouse,
60  Wheel,
61  Key,
62  Touch,
68  };

Functions

◆ getWindowSystemEvent()

QWindowSystemInterfacePrivate::WindowSystemEvent * QWindowSystemInterfacePrivate::getWindowSystemEvent ( )
static

Definition at line 217 of file qwindowsysteminterface_qpa.cpp.

Referenced by QEventDispatcherQPA::processEvents(), sendWindowSystemEvents(), and userEventSourceDispatch().

218 {
219  queueMutex.lock();
221  if (windowSystemEventQueue.isEmpty())
222  ret = 0;
223  else
224  ret = windowSystemEventQueue.takeFirst();
225  queueMutex.unlock();
226  return ret;
227 }
void lock()
Locks the mutex.
Definition: qmutex.cpp:151
static QList< WindowSystemEvent * > windowSystemEventQueue
void unlock()
Unlocks the mutex.
Definition: qmutex.cpp:296

◆ queueWindowSystemEvent()

void QWindowSystemInterfacePrivate::queueWindowSystemEvent ( QWindowSystemInterfacePrivate::WindowSystemEvent ev)
static

Definition at line 229 of file qwindowsysteminterface_qpa.cpp.

Referenced by QWindowSystemInterface::handleCloseEvent(), QWindowSystemInterface::handleEnterEvent(), QWindowSystemInterface::handleExtendedKeyEvent(), QWindowSystemInterface::handleGeometryChange(), QWindowSystemInterface::handleKeyEvent(), QWindowSystemInterface::handleLeaveEvent(), QWindowSystemInterface::handleLocaleChange(), QWindowSystemInterface::handleMouseEvent(), QWindowSystemInterface::handlePlatformPanelEvent(), QWindowSystemInterface::handleScreenAvailableGeometryChange(), QWindowSystemInterface::handleScreenCountChange(), QWindowSystemInterface::handleScreenGeometryChange(), QWindowSystemInterface::handleTouchEvent(), QWindowSystemInterface::handleWheelEvent(), QWindowSystemInterface::handleWindowActivated(), and QWindowSystemInterface::handleWindowStateChanged().

230 {
231  queueMutex.lock();
232  windowSystemEventQueue.append(ev);
233  queueMutex.unlock();
234 
235  QAbstractEventDispatcher *dispatcher = QApplicationPrivate::qt_qpa_core_dispatcher();
236  if (dispatcher)
237  dispatcher->wakeUp();
238 }
void lock()
Locks the mutex.
Definition: qmutex.cpp:151
static QList< WindowSystemEvent * > windowSystemEventQueue
virtual void wakeUp()=0
Wakes up the event loop.
void unlock()
Unlocks the mutex.
Definition: qmutex.cpp:296
The QAbstractEventDispatcher class provides an interface to manage Qt&#39;s event queue.

◆ windowSystemEventsQueued()

int QWindowSystemInterfacePrivate::windowSystemEventsQueued ( )
static

Definition at line 209 of file qwindowsysteminterface_qpa.cpp.

Referenced by QEventDispatcherBlackberryQPA::hasPendingEvents(), QEventDispatcherQPA::hasPendingEvents(), QEventDispatcherQPA::processEvents(), sendWindowSystemEvents(), userEventSourceDispatch(), and userEventSourcePrepare().

210 {
211  queueMutex.lock();
212  int ret = windowSystemEventQueue.count();
213  queueMutex.unlock();
214  return ret;
215 }
void lock()
Locks the mutex.
Definition: qmutex.cpp:151
static QList< WindowSystemEvent * > windowSystemEventQueue
void unlock()
Unlocks the mutex.
Definition: qmutex.cpp:296

Properties

◆ eventTime

QTime QWindowSystemInterfacePrivate::eventTime
static

◆ queueMutex

QMutex QWindowSystemInterfacePrivate::queueMutex
static

Definition at line 223 of file qwindowsysteminterface_qpa_p.h.

◆ windowSystemEventQueue

QList< QWindowSystemInterfacePrivate::WindowSystemEvent * > QWindowSystemInterfacePrivate::windowSystemEventQueue
static

Definition at line 222 of file qwindowsysteminterface_qpa_p.h.

Referenced by qt_cleanup().


The documentation for this class was generated from the following files: