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// Qt-Security score:significant reason:default
4
5#ifndef QQNXBUFFER_H
6#define QQNXBUFFER_H
7
8#include <QtGui/QImage>
9#include <QtCore/QLoggingCategory>
10
11#include <screen/screen.h>
12
14
15Q_DECLARE_LOGGING_CATEGORY(lcQpaScreenBuffer);
16
18{
19public:
20 QQnxBuffer();
21 QQnxBuffer(screen_buffer_t buffer);
22 QQnxBuffer(const QQnxBuffer &other);
23 virtual ~QQnxBuffer();
24
25 screen_buffer_t nativeBuffer() const { return m_buffer; }
26 const QImage *image() const { return (m_buffer != nullptr) ? &m_image : nullptr; }
27 QImage *image() { return (m_buffer != nullptr) ? &m_image : nullptr; }
28
29 QRect rect() const { return m_image.rect(); }
30
31 void invalidateInCache();
32
33private:
34 screen_buffer_t m_buffer;
35 QImage m_image;
36};
37
38QT_END_NAMESPACE
39
40#endif // QQNXBUFFER_H
virtual ~QQnxBuffer()
QImage * image()
Definition qqnxbuffer.h:27
void invalidateInCache()
QQnxBuffer(const QQnxBuffer &other)
QQnxBuffer(screen_buffer_t buffer)
const QImage * image() const
Definition qqnxbuffer.h:26
screen_buffer_t nativeBuffer() const
Definition qqnxbuffer.h:25
QRect rect() const
Definition qqnxbuffer.h:29
Combined button and popup list for selecting options.
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
#define Q_SCREEN_CRITICALERROR(x, message)
Definition qqnxglobal.h:20
void qScreenCheckError(int rc, const char *funcInfo, const char *message, bool critical)
#define Q_SCREEN_CHECKERROR(x, message)
Definition qqnxglobal.h:17