4#ifndef QQNXSCREENTRAITS_H
5#define QQNXSCREENTRAITS_H
7#include <screen/screen.h>
22 static int destroy(screen_context_t context) {
return screen_destroy_context(context); }
26class screen_traits<screen_device_t>
29 typedef screen_device_t screen_type;
30 static const int propertyName = SCREEN_PROPERTY_DEVICE;
31 static int destroy(screen_device_t device) {
return screen_destroy_device(device); }
35class screen_traits<screen_display_t>
38 typedef screen_display_t screen_type;
39 static const int propertyName = SCREEN_PROPERTY_DISPLAY;
43class screen_traits<screen_group_t>
46 typedef screen_group_t screen_type;
47 static const int propertyName = SCREEN_PROPERTY_GROUP;
48 static int destroy(screen_group_t group) {
return screen_destroy_group(group); }
52class screen_traits<screen_pixmap_t>
55 typedef screen_pixmap_t screen_type;
56 static const int propertyName = SCREEN_PROPERTY_PIXMAP;
57 static int destroy(screen_pixmap_t pixmap) {
return screen_destroy_pixmap(pixmap); }
61class screen_traits<screen_session_t>
64 typedef screen_session_t screen_type;
65 static const int propertyName = SCREEN_PROPERTY_SESSION;
66 static int destroy(screen_session_t session) {
return screen_destroy_session(session); }
71class screen_traits<screen_stream_t>
74 typedef screen_stream_t screen_type;
75 static const int propertyName = SCREEN_PROPERTY_STREAM;
76 static int destroy(screen_stream_t stream) {
return screen_destroy_stream(stream); }
81class screen_traits<screen_window_t>
84 typedef screen_window_t screen_type;
85 static const int propertyName = SCREEN_PROPERTY_WINDOW;
86 static int destroy(screen_window_t window) {
return screen_destroy_window(window); }
static QQnxIntegration * instance()
void removeDisplay(QQnxScreen *screen)
void removeScreenEventFilter(QQnxScreenEventFilter *filter)
void setScreenEventThread(QQnxScreenEventThread *eventThread)
void timerEvent(QTimerEvent *event) override
This event handler can be reimplemented in a subclass to receive timer events for the object.
bool handleEvent(screen_event_t event)
static void injectKeyboardEvent(int flags, int sym, int mod, int scan, int cap)
void addScreenEventFilter(QQnxScreenEventFilter *filter)
bool handleEvent(screen_event_t event, int qnxType)
void armEventsPending(int count)
bool isPrimaryScreen() const
The QQnxWindow is the base class of the various classes used as instances of QPlatformWindow in the Q...
void handleActivationEvent()
static int destroy(screen_context_t context)
static const int propertyName
screen_context_t screen_type
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
#define Q_SCREEN_CHECKERROR(x, message)
QString keyStringForPrivateUseQnxKey(int key)
bool isKeypadKey(int key)
QT_BEGIN_NAMESPACE int qtKeyForPrivateUseQnxKey(int key)
const int SCREEN_PROPERTY_FOCUS
#define _SCREEN_MAKE_VERSION(major, minor, patch)
Q_DECLARE_LOGGING_CATEGORY(lcQpaScreenEvents)
static int qtKey(int virtualKey, QChar::Category category)
static QString keyString(int sym, QChar::Category category)
static void finishCloseEvent(screen_event_t event)
static QString capKeyString(int cap, int modifiers, int key)
static void finishCloseEvent(screen_event_t event)