Qt 6.x
The Qt SDK
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
9#include <screen/screen.h>
10
12
14{
15public:
16 QQnxBuffer();
17 QQnxBuffer(screen_buffer_t buffer);
19 virtual ~QQnxBuffer();
20
21 screen_buffer_t nativeBuffer() const { return m_buffer; }
22 const QImage *image() const { return (m_buffer != nullptr) ? &m_image : nullptr; }
23 QImage *image() { return (m_buffer != nullptr) ? &m_image : nullptr; }
24
25 QRect rect() const { return m_image.rect(); }
26
27 void invalidateInCache();
28
29private:
30 screen_buffer_t m_buffer;
31 QImage m_image;
32};
33
35
36#endif // QQNXBUFFER_H
\inmodule QtGui
Definition qimage.h:37
QRect rect() const
Returns the enclosing rectangle (0, 0, width(), height()) of the image.
virtual ~QQnxBuffer()
QImage * image()
Definition qqnxbuffer.h:23
void invalidateInCache()
const QImage * image() const
Definition qqnxbuffer.h:22
screen_buffer_t nativeBuffer() const
Definition qqnxbuffer.h:21
QRect rect() const
Definition qqnxbuffer.h:25
\inmodule QtCore\reentrant
Definition qrect.h:30
Combined button and popup list for selecting options.
GLenum GLuint buffer
QSharedPointer< T > other(t)
[5]