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
qopenglpixeltransferoptions.h
Go to the documentation of this file.
1// Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
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 QOPENGLPIXELUPLOADOPTIONS_H
5#define QOPENGLPIXELUPLOADOPTIONS_H
6
7#include <QtOpenGL/qtopenglglobal.h>
8
9#if !defined(QT_NO_OPENGL)
10
11#include <QtCore/QSharedDataPointer>
12
14
16
17class Q_OPENGL_EXPORT QOpenGLPixelTransferOptions
18{
19public:
22 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QOpenGLPixelTransferOptions)
25
27 { data.swap(other.data); }
28
29 void setAlignment(int alignment);
30 int alignment() const;
31
32 void setSkipImages(int skipImages);
33 int skipImages() const;
34
35 void setSkipRows(int skipRows);
36 int skipRows() const;
37
38 void setSkipPixels(int skipPixels);
39 int skipPixels() const;
40
41 void setImageHeight(int imageHeight);
42 int imageHeight() const;
43
44 void setRowLength(int rowLength);
45 int rowLength() const;
46
47 void setLeastSignificantByteFirst(bool lsbFirst);
48 bool isLeastSignificantBitFirst() const;
49
50 void setSwapBytesEnabled(bool swapBytes);
51 bool isSwapBytesEnabled() const;
52
53private:
54 QSharedDataPointer<QOpenGLPixelTransferOptionsData> data;
55};
56
57Q_DECLARE_SHARED(QOpenGLPixelTransferOptions)
58
60
61#endif // QT_NO_OPENGL
62
63#endif // QOPENGLPIXELUPLOADOPTIONS_H
void swap(QOpenGLPixelTransferOptions &other) noexcept
uint alignment
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
label setAlignment(Qt::AlignLeft|Qt::AlignTop)
[0]
QSharedPointer< T > other(t)
[5]