annotate qt/d2/qt/core/QPoint.d @ 325:b460cd08041f signals

dmd 2.037 opEquals bug-feature
author eldar1@eldar1-laptop
date Wed, 30 Dec 2009 11:25:07 +0000
parents 463563fc9e17
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
1 module qt.core.QPoint;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
2
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
3 public import qt.QGlobal;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
4 public import qt.core.Qt;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
5 public import qt.core.QDataStream;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
6
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
7
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
8 public struct QPoint
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
9 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
10
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
11 // Functions
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
12 public static QPoint opCall() {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
13 QPoint pt;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
14 pt.xp = pt.yp = 0;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
15 return pt;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
16 }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
17
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
18 public this(int xpos, int ypos) {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
19 xp = xpos;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
20 yp = ypos;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
21 }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
22
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
23 bool isNull() // const
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
24 { return xp == 0 && yp == 0; }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
25
205
3dadfee97421 D2 fixes
eldar
parents: 188
diff changeset
26 int x() const
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
27 { return xp; }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
28
205
3dadfee97421 D2 fixes
eldar
parents: 188
diff changeset
29 int y() const
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
30 { return yp; }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
31
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
32 void x(int xpos)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
33 { xp = xpos; }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
34
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
35 void y(int ypos)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
36 { yp = ypos; }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
37
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
38 void setX(int xpos) // for convenience
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
39 { xp = xpos; }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
40
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
41 void setY(int ypos) // for convenience
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
42 { yp = ypos; }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
43
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
44 public final int manhattanLength() {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
45 return qtd_QPoint_manhattanLength(&this);
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
46 }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
47 /*
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
48 inline int &rx()
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
49 { return xp; }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
50
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
51 inline int &ry()
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
52 { return yp; }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
53 */
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
54
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
55 QPoint opAddAssign(ref QPoint p)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
56 { xp+=p.xp; yp+=p.yp; return this; }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
57
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
58 QPoint opSubAssign(ref QPoint p)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
59 { xp-=p.xp; yp-=p.yp; return this; }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
60
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
61 QPoint opMulAssign(qreal c)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
62 { xp = qRound(xp*c); yp = qRound(yp*c); return this; }
254
maxter
parents: 252
diff changeset
63
325
b460cd08041f dmd 2.037 opEquals bug-feature
eldar1@eldar1-laptop
parents: 295
diff changeset
64 bool opEquals(ref const QPoint p) const
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
65 { return xp == p.xp && yp == p.yp; }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
66
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
67 QPoint opAdd(ref QPoint p)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
68 { return QPoint(this.xp+p.xp, this.yp+p.yp); }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
69
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
70 QPoint opSub(ref QPoint p)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
71 { return QPoint(this.xp-p.xp, this.yp-p.yp); }
254
maxter
parents: 252
diff changeset
72
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
73 QPoint opMul(qreal c)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
74 { return QPoint(qRound(this.xp*c), qRound(this.yp*c)); }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
75
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
76 QPoint opDivAssign(qreal c)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
77 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
78 xp = qRound(xp/c);
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
79 yp = qRound(yp/c);
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
80 return this;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
81 }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
82
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
83 QPoint opDiv(qreal c)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
84 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
85 return QPoint(qRound(this.xp/c), qRound(this.yp/c));
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
86 }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
87
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
88 public final void writeTo(QDataStream arg__1) {
254
maxter
parents: 252
diff changeset
89 qtd_QPoint_writeTo_QDataStream(&this, arg__1 is null ? null : arg__1.__nativeId);
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
90 }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
91
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
92 public final void readFrom(QDataStream arg__1) {
254
maxter
parents: 252
diff changeset
93 qtd_QPoint_readFrom_QDataStream(&this, arg__1 is null ? null : arg__1.__nativeId);
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
94 }
295
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
95
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
96 // service stuff
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
97 public alias void __isNativeValueType;
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
98
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
99 struct QTypeInfo
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
100 {
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
101 enum bool isComplex = true;
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
102 enum bool isStatic = false;
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
103 enum bool isLarge = true;
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
104 enum bool isPointer = false;
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
105 enum bool isDummy = false;
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
106 }
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
107
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
108
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
109 private:
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
110 // ### Qt 5; remove the ifdef and just have the same order on all platforms.
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
111 version(OSX)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
112 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
113 int yp;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
114 int xp;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
115 }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
116 else
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
117 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
118 int xp;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
119 int yp;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
120 }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
121 }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
122
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
123
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
124 public struct QPointF
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
125 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
126 public static QPointF opCall() {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
127 QPointF pt;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
128 pt.xp = pt.yp = 0;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
129 return pt;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
130 }
254
maxter
parents: 252
diff changeset
131
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
132 public this(qreal xpos, qreal ypos) {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
133 xp = xpos;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
134 yp = ypos;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
135 }
254
maxter
parents: 252
diff changeset
136
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
137 public this(QPoint p) {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
138 xp = p.x();
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
139 yp = p.y();
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
140 }
254
maxter
parents: 252
diff changeset
141
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
142 bool isNull() //const
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
143 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
144 return qIsNull(xp) && qIsNull(yp);
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
145 }
254
maxter
parents: 252
diff changeset
146
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
147 qreal x() //const
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
148 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
149 return xp;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
150 }
254
maxter
parents: 252
diff changeset
151
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
152 qreal y() //const
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
153 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
154 return yp;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
155 }
254
maxter
parents: 252
diff changeset
156
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
157 void x(qreal xpos)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
158 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
159 xp = xpos;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
160 }
254
maxter
parents: 252
diff changeset
161
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
162 void y(qreal ypos)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
163 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
164 yp = ypos;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
165 }
254
maxter
parents: 252
diff changeset
166 /*
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
167 inline qreal &QPointF::rx()
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
168 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
169 return xp;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
170 }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
171
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
172 inline qreal &QPointF::ry()
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
173 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
174 return yp;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
175 }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
176 */
254
maxter
parents: 252
diff changeset
177
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
178 QPointF opAddAssign(ref QPointF p)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
179 { xp+=p.xp; yp+=p.yp; return this; }
254
maxter
parents: 252
diff changeset
180
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
181 QPointF opSubAssign(ref QPointF p)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
182 { xp-=p.xp; yp-=p.yp; return this; }
254
maxter
parents: 252
diff changeset
183
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
184 QPointF opMulAssign(qreal c)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
185 { xp*=c; yp*=c; return this; }
254
maxter
parents: 252
diff changeset
186
325
b460cd08041f dmd 2.037 opEquals bug-feature
eldar1@eldar1-laptop
parents: 295
diff changeset
187 bool opEquals(ref const QPointF p) const
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
188 { return qFuzzyCompare(xp, p.xp) && qFuzzyCompare(yp, p.yp); }
254
maxter
parents: 252
diff changeset
189
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
190 QPointF opAdd(ref QPointF p)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
191 { return QPointF(this.xp+p.xp, this.yp+p.yp); }
254
maxter
parents: 252
diff changeset
192
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
193 QPointF opSub(ref QPointF p)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
194 { return QPointF(this.xp-p.xp, this.yp-p.yp); }
254
maxter
parents: 252
diff changeset
195
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
196 QPointF opMul(qreal c)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
197 { return QPointF(this.xp*c, this.yp*c); }
254
maxter
parents: 252
diff changeset
198
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
199 QPointF opDivAssign(qreal c)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
200 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
201 xp/=c;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
202 yp/=c;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
203 return this;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
204 }
254
maxter
parents: 252
diff changeset
205
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
206 QPointF opDiv(qreal c)
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
207 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
208 return QPointF(xp/c, yp/c);
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
209 }
254
maxter
parents: 252
diff changeset
210
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
211 QPoint toPoint() //const
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
212 {
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
213 return QPoint(qRound(xp), qRound(yp));
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
214 }
254
maxter
parents: 252
diff changeset
215
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
216 public final void writeTo(QDataStream arg__1) {
254
maxter
parents: 252
diff changeset
217 qtd_QPointF_writeTo_QDataStream(&this, arg__1 is null ? null : arg__1.__nativeId);
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
218 }
254
maxter
parents: 252
diff changeset
219
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
220 public final void readFrom(QDataStream arg__1) {
254
maxter
parents: 252
diff changeset
221 qtd_QPointF_readFrom_QDataStream(&this, arg__1 is null ? null : arg__1.__nativeId);
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
222 }
254
maxter
parents: 252
diff changeset
223
295
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
224 // service stuff
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
225 public alias void __isNativeValueType;
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
226
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
227 struct QTypeInfo
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
228 {
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
229 enum bool isComplex = true;
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
230 enum bool isStatic = false;
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
231 enum bool isLarge = true;
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
232 enum bool isPointer = false;
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
233 enum bool isDummy = false;
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
234 }
463563fc9e17 more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
eldar
parents: 254
diff changeset
235
188
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
236 private:
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
237 qreal xp;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
238 qreal yp;
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
239 }
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
240
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
241
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
242 // C wrappers
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
243 // QPoint
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
244 private extern(C) int qtd_QPoint_manhattanLength(void* __this_nativeId);
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
245 private extern(C) void qtd_QPoint_writeTo_QDataStream(void* __this_nativeId,
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
246 void* arg__1);
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
247 private extern(C) void qtd_QPoint_readFrom_QDataStream(void* __this_nativeId,
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
248 void* arg__1);
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
249
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
250 // QPointF
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
251 private extern(C) void qtd_QPointF_writeTo_QDataStream(void* __this_nativeId,
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
252 void* arg__1);
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
253 private extern(C) void qtd_QPointF_readFrom_QDataStream(void* __this_nativeId,
7dd099050621 initial commit for D2 support
eldar
parents:
diff changeset
254 void* arg__1);