qopenglpixeltransferoptions.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/opengl/qopenglpixeltransferoptions.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3class QOpenGLPixelTransferOptionsData : public QSharedData-
4{-
5public:-
6 QOpenGLPixelTransferOptionsData()-
7 : alignment(4)-
8 , skipImages(0)-
9 , skipRows(0)-
10 , skipPixels(0)-
11 , imageHeight(0)-
12 , rowLength(0)-
13 , lsbFirst(false)-
14 , swapBytes(false)-
15 {}
never executed: end of block
0
16-
17 int alignment;-
18 int skipImages;-
19 int skipRows;-
20 int skipPixels;-
21 int imageHeight;-
22 int rowLength;-
23 bool lsbFirst;-
24 bool swapBytes;-
25};-
26-
27-
28-
29-
30QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions()-
31 : data(new QOpenGLPixelTransferOptionsData)-
32{-
33}
never executed: end of block
0
34-
35-
36-
37-
38QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions(const QOpenGLPixelTransferOptions &rhs)-
39 : data(rhs.data)-
40{-
41}
never executed: end of block
0
42-
43-
44-
45-
46QOpenGLPixelTransferOptions &QOpenGLPixelTransferOptions::operator=(const QOpenGLPixelTransferOptions &rhs)-
47{-
48 if (this != &rhs
this != &rhsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
49 data.operator=(rhs.data);
never executed: data.operator=(rhs.data);
0
50 return
never executed: return *this;
*this;
never executed: return *this;
0
51}-
52-
53-
54-
55-
56QOpenGLPixelTransferOptions::~QOpenGLPixelTransferOptions()-
57{-
58}-
59-
60-
61-
62-
63-
64void QOpenGLPixelTransferOptions::setAlignment(int alignment)-
65{-
66 data->alignment = alignment;-
67}
never executed: end of block
0
68-
69-
70-
71-
72int QOpenGLPixelTransferOptions::alignment() const-
73{-
74 return
never executed: return data->alignment;
data->alignment;
never executed: return data->alignment;
0
75}-
76-
77-
78-
79-
80-
81-
82void QOpenGLPixelTransferOptions::setSkipImages(int skipImages)-
83{-
84 data->skipImages = skipImages;-
85}
never executed: end of block
0
86-
87-
88-
89-
90int QOpenGLPixelTransferOptions::skipImages() const-
91{-
92 return
never executed: return data->skipImages;
data->skipImages;
never executed: return data->skipImages;
0
93}-
94-
95-
96-
97-
98-
99-
100void QOpenGLPixelTransferOptions::setSkipRows(int skipRows)-
101{-
102 data->skipRows = skipRows;-
103}
never executed: end of block
0
104-
105-
106-
107-
108int QOpenGLPixelTransferOptions::skipRows() const-
109{-
110 return
never executed: return data->skipRows;
data->skipRows;
never executed: return data->skipRows;
0
111}-
112-
113-
114-
115-
116-
117-
118void QOpenGLPixelTransferOptions::setSkipPixels(int skipPixels)-
119{-
120 data->skipPixels = skipPixels;-
121}
never executed: end of block
0
122-
123-
124-
125-
126int QOpenGLPixelTransferOptions::skipPixels() const-
127{-
128 return
never executed: return data->skipPixels;
data->skipPixels;
never executed: return data->skipPixels;
0
129}-
130-
131-
132-
133-
134-
135-
136void QOpenGLPixelTransferOptions::setImageHeight(int imageHeight)-
137{-
138 data->imageHeight = imageHeight;-
139}
never executed: end of block
0
140-
141-
142-
143-
144int QOpenGLPixelTransferOptions::imageHeight() const-
145{-
146 return
never executed: return data->imageHeight;
data->imageHeight;
never executed: return data->imageHeight;
0
147}-
148-
149-
150-
151-
152-
153-
154void QOpenGLPixelTransferOptions::setRowLength(int rowLength)-
155{-
156 data->rowLength = rowLength;-
157}
never executed: end of block
0
158-
159-
160-
161-
162int QOpenGLPixelTransferOptions::rowLength() const-
163{-
164 return
never executed: return data->rowLength;
data->rowLength;
never executed: return data->rowLength;
0
165}-
166-
167-
168-
169-
170-
171-
172-
173void QOpenGLPixelTransferOptions::setLeastSignificantByteFirst(bool lsbFirst)-
174{-
175 data->lsbFirst = lsbFirst;-
176}
never executed: end of block
0
177-
178-
179-
180-
181bool QOpenGLPixelTransferOptions::isLeastSignificantBitFirst() const-
182{-
183 return
never executed: return data->lsbFirst;
data->lsbFirst;
never executed: return data->lsbFirst;
0
184}-
185-
186-
187-
188-
189-
190-
191void QOpenGLPixelTransferOptions::setSwapBytesEnabled(bool swapBytes)-
192{-
193 data->swapBytes = swapBytes;-
194}
never executed: end of block
0
195-
196-
197-
198-
199bool QOpenGLPixelTransferOptions::isSwapBytesEnabled() const-
200{-
201 return
never executed: return data->swapBytes;
data->swapBytes;
never executed: return data->swapBytes;
0
202}-
203-
204-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9