Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqnxbuffer.h
Go to the documentation of this file.
1// Copyright (C) 2011 - 2012 Research In Motion
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQNXBUFFER_H
5#define QQNXBUFFER_H
6
7#include <QtGui/QImage>
8#include <QtCore/QLoggingCategory>
9
10#include <screen/screen.h>
11
13
14Q_DECLARE_LOGGING_CATEGORY(lcQpaScreenBuffer)
15
16class QQnxBuffer
17{
18public:
19 QQnxBuffer();
20 QQnxBuffer(screen_buffer_t buffer);
21 QQnxBuffer(const QQnxBuffer &other);
22 virtual ~QQnxBuffer();
23
24 screen_buffer_t nativeBuffer() const { return m_buffer; }
25 const QImage *image() const { return (m_buffer != nullptr) ? &m_image : nullptr; }
26 QImage *image() { return (m_buffer != nullptr) ? &m_image : nullptr; }
27
28 QRect rect() const { return m_image.rect(); }
29
30 void invalidateInCache();
31
32private:
33 screen_buffer_t m_buffer;
34 QImage m_image;
35};
36
37QT_END_NAMESPACE
38
39#endif // QQNXBUFFER_H
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
#define Q_SCREEN_CRITICALERROR(x, message)
Definition qqnxglobal.h:16
QT_BEGIN_NAMESPACE void qScreenCheckError(int rc, const char *funcInfo, const char *message, bool critical)
#define Q_SCREEN_CHECKERROR(x, message)
Definition qqnxglobal.h:13