5#ifndef QQNXSCREENTRAITS_H
6#define QQNXSCREENTRAITS_H
8#include <screen/screen.h>
23 static int destroy(screen_context_t context) {
return screen_destroy_context(context); }
27class screen_traits<screen_device_t>
30 typedef screen_device_t screen_type;
31 static const int propertyName = SCREEN_PROPERTY_DEVICE;
32 static int destroy(screen_device_t device) {
return screen_destroy_device(device); }
36class screen_traits<screen_display_t>
39 typedef screen_display_t screen_type;
40 static const int propertyName = SCREEN_PROPERTY_DISPLAY;
44class screen_traits<screen_group_t>
47 typedef screen_group_t screen_type;
48 static const int propertyName = SCREEN_PROPERTY_GROUP;
49 static int destroy(screen_group_t group) {
return screen_destroy_group(group); }
53class screen_traits<screen_pixmap_t>
56 typedef screen_pixmap_t screen_type;
57 static const int propertyName = SCREEN_PROPERTY_PIXMAP;
58 static int destroy(screen_pixmap_t pixmap) {
return screen_destroy_pixmap(pixmap); }
62class screen_traits<screen_session_t>
65 typedef screen_session_t screen_type;
66 static const int propertyName = SCREEN_PROPERTY_SESSION;
67 static int destroy(screen_session_t session) {
return screen_destroy_session(session); }
72class screen_traits<screen_stream_t>
75 typedef screen_stream_t screen_type;
76 static const int propertyName = SCREEN_PROPERTY_STREAM;
77 static int destroy(screen_stream_t stream) {
return screen_destroy_stream(stream); }
82class screen_traits<screen_window_t>
85 typedef screen_window_t screen_type;
86 static const int propertyName = SCREEN_PROPERTY_WINDOW;
87 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)
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
Combined button and popup list for selecting options.
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_SYM
const int SCREEN_PROPERTY_SCAN
const int SCREEN_PROPERTY_FOCUS
const int SCREEN_PROPERTY_MODIFIERS
#define _SCREEN_MAKE_VERSION(major, minor, patch)
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)