Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
17{
18public:
19 QQnxBuffer();
20 QQnxBuffer(screen_buffer_t buffer);
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
38
39#endif // QQNXBUFFER_H
\inmodule QtGui
Definition qimage.h:37
QImage * image()
Definition qqnxbuffer.h:26
const QImage * image() const
Definition qqnxbuffer.h:25
screen_buffer_t nativeBuffer() const
Definition qqnxbuffer.h:24
QRect rect() const
Definition qqnxbuffer.h:28
\inmodule QtCore\reentrant
Definition qrect.h:30
Combined button and popup list for selecting options.
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLenum GLuint buffer
QSharedPointer< T > other(t)
[5]