1 //******************************************************************************
2 // Copyright (c) 2005-2013 by Jan Van hijfte
3 //
4 // See the included file COPYING.TXT for details about the copyright.
5 //
6 // This program is distributed in the hope that it will be useful,
7 // but WITHOUT ANY WARRANTY; without even the implied warranty of
8 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9 //******************************************************************************
10
11
12 #include "qstyleoption_c.h"
13
QStyleOption_version(QStyleOptionH handle)14 int QStyleOption_version(QStyleOptionH handle)
15 {
16 return (int) ((QStyleOption *)handle)->version;
17 }
18
QStyleOption_setVersion(QStyleOptionH handle,int version)19 void QStyleOption_setVersion(QStyleOptionH handle, int version)
20 {
21 ((QStyleOption *)handle)->version = version;
22 }
23
QStyleOption_type(QStyleOptionH handle)24 int QStyleOption_type(QStyleOptionH handle)
25 {
26 return (int) ((QStyleOption *)handle)->type;
27 }
28
QStyleOption_setType(QStyleOptionH handle,int type)29 void QStyleOption_setType(QStyleOptionH handle, int type)
30 {
31 ((QStyleOption *)handle)->type = type;
32 }
33
QStyleOption_state(QStyleOptionH handle)34 unsigned int QStyleOption_state(QStyleOptionH handle)
35 {
36 return (unsigned int) ((QStyleOption *)handle)->state;
37 }
38
QStyleOption_setState(QStyleOptionH handle,unsigned int state)39 void QStyleOption_setState(QStyleOptionH handle, unsigned int state)
40 {
41 ((QStyleOption *)handle)->state =(QStyle::State)state;
42 }
43
QStyleOption_direction(QStyleOptionH handle)44 Qt::LayoutDirection QStyleOption_direction(QStyleOptionH handle)
45 {
46 return (Qt::LayoutDirection) ((QStyleOption *)handle)->direction;
47 }
48
QStyleOption_setDirection(QStyleOptionH handle,Qt::LayoutDirection direction)49 void QStyleOption_setDirection(QStyleOptionH handle, Qt::LayoutDirection direction)
50 {
51 ((QStyleOption *)handle)->direction = direction;
52 }
53
QStyleOption_rect(QStyleOptionH handle,PRect retval)54 void QStyleOption_rect(QStyleOptionH handle, PRect retval)
55 {
56 copyQRectToPRect(((QStyleOption *)handle)->rect,retval);
57 }
58
QStyleOption_setRect(QStyleOptionH handle,PRect rect)59 void QStyleOption_setRect(QStyleOptionH handle, PRect rect)
60 {
61 copyPRectToQRect(rect,((QStyleOption *)handle)->rect);
62 }
63
QStyleOption_fontMetrics(QStyleOptionH handle,QFontMetricsH retval)64 void QStyleOption_fontMetrics(QStyleOptionH handle, QFontMetricsH retval)
65 {
66 *(QFontMetrics *)retval = ((QStyleOption *)handle)->fontMetrics;
67 }
68
QStyleOption_setFontMetrics(QStyleOptionH handle,QFontMetricsH fontMetrics)69 void QStyleOption_setFontMetrics(QStyleOptionH handle, QFontMetricsH fontMetrics)
70 {
71 ((QStyleOption *)handle)->fontMetrics = *(QFontMetrics *)fontMetrics;
72 }
73
QStyleOption_palette(QStyleOptionH handle,QPaletteH retval)74 void QStyleOption_palette(QStyleOptionH handle, QPaletteH retval)
75 {
76 *(QPalette *)retval = ((QStyleOption *)handle)->palette;
77 }
78
QStyleOption_setPalette(QStyleOptionH handle,QPaletteH palette)79 void QStyleOption_setPalette(QStyleOptionH handle, QPaletteH palette)
80 {
81 ((QStyleOption *)handle)->palette = *(QPalette *)palette;
82 }
83
QStyleOption_styleObject(QStyleOptionH handle)84 QObjectH QStyleOption_styleObject(QStyleOptionH handle)
85 {
86 return (QObjectH) ((QStyleOption *)handle)->styleObject;
87 }
88
QStyleOption_setStyleObject(QStyleOptionH handle,QObjectH styleObject)89 void QStyleOption_setStyleObject(QStyleOptionH handle, QObjectH styleObject)
90 {
91 ((QStyleOption *)handle)->styleObject =(QObject *)styleObject;
92 }
93
QStyleOption_Create(int version,int type)94 QStyleOptionH QStyleOption_Create(int version, int type)
95 {
96 return (QStyleOptionH) new QStyleOption(version, type);
97 }
98
QStyleOption_Destroy(QStyleOptionH handle)99 void QStyleOption_Destroy(QStyleOptionH handle)
100 {
101 delete (QStyleOption *)handle;
102 }
103
QStyleOption_Create2(const QStyleOptionH other)104 QStyleOptionH QStyleOption_Create2(const QStyleOptionH other)
105 {
106 return (QStyleOptionH) new QStyleOption(*(const QStyleOption*)other);
107 }
108
QStyleOption_init(QStyleOptionH handle,const QWidgetH w)109 void QStyleOption_init(QStyleOptionH handle, const QWidgetH w)
110 {
111 ((QStyleOption *)handle)->init((const QWidget*)w);
112 }
113
QStyleOption_initFrom(QStyleOptionH handle,const QWidgetH w)114 void QStyleOption_initFrom(QStyleOptionH handle, const QWidgetH w)
115 {
116 ((QStyleOption *)handle)->initFrom((const QWidget*)w);
117 }
118
QStyleOptionFocusRect_backgroundColor(QStyleOptionFocusRectH handle,PQColor retval)119 void QStyleOptionFocusRect_backgroundColor(QStyleOptionFocusRectH handle, PQColor retval)
120 {
121 *(QColor *)retval = ((QStyleOptionFocusRect *)handle)->backgroundColor;
122 }
123
QStyleOptionFocusRect_setBackgroundColor(QStyleOptionFocusRectH handle,PQColor backgroundColor)124 void QStyleOptionFocusRect_setBackgroundColor(QStyleOptionFocusRectH handle, PQColor backgroundColor)
125 {
126 ((QStyleOptionFocusRect *)handle)->backgroundColor = *(QColor *)backgroundColor;
127 }
128
QStyleOptionFocusRect_Create()129 QStyleOptionFocusRectH QStyleOptionFocusRect_Create()
130 {
131 return (QStyleOptionFocusRectH) new QStyleOptionFocusRect();
132 }
133
QStyleOptionFocusRect_Destroy(QStyleOptionFocusRectH handle)134 void QStyleOptionFocusRect_Destroy(QStyleOptionFocusRectH handle)
135 {
136 delete (QStyleOptionFocusRect *)handle;
137 }
138
QStyleOptionFocusRect_Create2(const QStyleOptionFocusRectH other)139 QStyleOptionFocusRectH QStyleOptionFocusRect_Create2(const QStyleOptionFocusRectH other)
140 {
141 return (QStyleOptionFocusRectH) new QStyleOptionFocusRect(*(const QStyleOptionFocusRect*)other);
142 }
143
QStyleOptionFrame_lineWidth(QStyleOptionFrameH handle)144 int QStyleOptionFrame_lineWidth(QStyleOptionFrameH handle)
145 {
146 return (int) ((QStyleOptionFrame *)handle)->lineWidth;
147 }
148
QStyleOptionFrame_setLineWidth(QStyleOptionFrameH handle,int lineWidth)149 void QStyleOptionFrame_setLineWidth(QStyleOptionFrameH handle, int lineWidth)
150 {
151 ((QStyleOptionFrame *)handle)->lineWidth = lineWidth;
152 }
153
QStyleOptionFrame_midLineWidth(QStyleOptionFrameH handle)154 int QStyleOptionFrame_midLineWidth(QStyleOptionFrameH handle)
155 {
156 return (int) ((QStyleOptionFrame *)handle)->midLineWidth;
157 }
158
QStyleOptionFrame_setMidLineWidth(QStyleOptionFrameH handle,int midLineWidth)159 void QStyleOptionFrame_setMidLineWidth(QStyleOptionFrameH handle, int midLineWidth)
160 {
161 ((QStyleOptionFrame *)handle)->midLineWidth = midLineWidth;
162 }
163
QStyleOptionFrame_Create()164 QStyleOptionFrameH QStyleOptionFrame_Create()
165 {
166 return (QStyleOptionFrameH) new QStyleOptionFrame();
167 }
168
QStyleOptionFrame_Destroy(QStyleOptionFrameH handle)169 void QStyleOptionFrame_Destroy(QStyleOptionFrameH handle)
170 {
171 delete (QStyleOptionFrame *)handle;
172 }
173
QStyleOptionFrame_Create2(const QStyleOptionFrameH other)174 QStyleOptionFrameH QStyleOptionFrame_Create2(const QStyleOptionFrameH other)
175 {
176 return (QStyleOptionFrameH) new QStyleOptionFrame(*(const QStyleOptionFrame*)other);
177 }
178
QStyleOptionTabWidgetFrame_lineWidth(QStyleOptionTabWidgetFrameH handle)179 int QStyleOptionTabWidgetFrame_lineWidth(QStyleOptionTabWidgetFrameH handle)
180 {
181 return (int) ((QStyleOptionTabWidgetFrame *)handle)->lineWidth;
182 }
183
QStyleOptionTabWidgetFrame_setLineWidth(QStyleOptionTabWidgetFrameH handle,int lineWidth)184 void QStyleOptionTabWidgetFrame_setLineWidth(QStyleOptionTabWidgetFrameH handle, int lineWidth)
185 {
186 ((QStyleOptionTabWidgetFrame *)handle)->lineWidth = lineWidth;
187 }
188
QStyleOptionTabWidgetFrame_midLineWidth(QStyleOptionTabWidgetFrameH handle)189 int QStyleOptionTabWidgetFrame_midLineWidth(QStyleOptionTabWidgetFrameH handle)
190 {
191 return (int) ((QStyleOptionTabWidgetFrame *)handle)->midLineWidth;
192 }
193
QStyleOptionTabWidgetFrame_setMidLineWidth(QStyleOptionTabWidgetFrameH handle,int midLineWidth)194 void QStyleOptionTabWidgetFrame_setMidLineWidth(QStyleOptionTabWidgetFrameH handle, int midLineWidth)
195 {
196 ((QStyleOptionTabWidgetFrame *)handle)->midLineWidth = midLineWidth;
197 }
198
QStyleOptionTabWidgetFrame_shape(QStyleOptionTabWidgetFrameH handle)199 QTabBar::Shape QStyleOptionTabWidgetFrame_shape(QStyleOptionTabWidgetFrameH handle)
200 {
201 return (QTabBar::Shape) ((QStyleOptionTabWidgetFrame *)handle)->shape;
202 }
203
QStyleOptionTabWidgetFrame_setShape(QStyleOptionTabWidgetFrameH handle,QTabBar::Shape shape)204 void QStyleOptionTabWidgetFrame_setShape(QStyleOptionTabWidgetFrameH handle, QTabBar::Shape shape)
205 {
206 ((QStyleOptionTabWidgetFrame *)handle)->shape = shape;
207 }
208
QStyleOptionTabWidgetFrame_tabBarSize(QStyleOptionTabWidgetFrameH handle,PSize retval)209 void QStyleOptionTabWidgetFrame_tabBarSize(QStyleOptionTabWidgetFrameH handle, PSize retval)
210 {
211 *(QSize *)retval = ((QStyleOptionTabWidgetFrame *)handle)->tabBarSize;
212 }
213
QStyleOptionTabWidgetFrame_setTabBarSize(QStyleOptionTabWidgetFrameH handle,PSize tabBarSize)214 void QStyleOptionTabWidgetFrame_setTabBarSize(QStyleOptionTabWidgetFrameH handle, PSize tabBarSize)
215 {
216 ((QStyleOptionTabWidgetFrame *)handle)->tabBarSize = *(QSize *)tabBarSize;
217 }
218
QStyleOptionTabWidgetFrame_rightCornerWidgetSize(QStyleOptionTabWidgetFrameH handle,PSize retval)219 void QStyleOptionTabWidgetFrame_rightCornerWidgetSize(QStyleOptionTabWidgetFrameH handle, PSize retval)
220 {
221 *(QSize *)retval = ((QStyleOptionTabWidgetFrame *)handle)->rightCornerWidgetSize;
222 }
223
QStyleOptionTabWidgetFrame_setRightCornerWidgetSize(QStyleOptionTabWidgetFrameH handle,PSize rightCornerWidgetSize)224 void QStyleOptionTabWidgetFrame_setRightCornerWidgetSize(QStyleOptionTabWidgetFrameH handle, PSize rightCornerWidgetSize)
225 {
226 ((QStyleOptionTabWidgetFrame *)handle)->rightCornerWidgetSize = *(QSize *)rightCornerWidgetSize;
227 }
228
QStyleOptionTabWidgetFrame_leftCornerWidgetSize(QStyleOptionTabWidgetFrameH handle,PSize retval)229 void QStyleOptionTabWidgetFrame_leftCornerWidgetSize(QStyleOptionTabWidgetFrameH handle, PSize retval)
230 {
231 *(QSize *)retval = ((QStyleOptionTabWidgetFrame *)handle)->leftCornerWidgetSize;
232 }
233
QStyleOptionTabWidgetFrame_setLeftCornerWidgetSize(QStyleOptionTabWidgetFrameH handle,PSize leftCornerWidgetSize)234 void QStyleOptionTabWidgetFrame_setLeftCornerWidgetSize(QStyleOptionTabWidgetFrameH handle, PSize leftCornerWidgetSize)
235 {
236 ((QStyleOptionTabWidgetFrame *)handle)->leftCornerWidgetSize = *(QSize *)leftCornerWidgetSize;
237 }
238
QStyleOptionTabWidgetFrame_tabBarRect(QStyleOptionTabWidgetFrameH handle,PRect retval)239 void QStyleOptionTabWidgetFrame_tabBarRect(QStyleOptionTabWidgetFrameH handle, PRect retval)
240 {
241 copyQRectToPRect(((QStyleOptionTabWidgetFrame *)handle)->tabBarRect,retval);
242 }
243
QStyleOptionTabWidgetFrame_setTabBarRect(QStyleOptionTabWidgetFrameH handle,PRect tabBarRect)244 void QStyleOptionTabWidgetFrame_setTabBarRect(QStyleOptionTabWidgetFrameH handle, PRect tabBarRect)
245 {
246 copyPRectToQRect(tabBarRect,((QStyleOptionTabWidgetFrame *)handle)->tabBarRect);
247 }
248
QStyleOptionTabWidgetFrame_selectedTabRect(QStyleOptionTabWidgetFrameH handle,PRect retval)249 void QStyleOptionTabWidgetFrame_selectedTabRect(QStyleOptionTabWidgetFrameH handle, PRect retval)
250 {
251 copyQRectToPRect(((QStyleOptionTabWidgetFrame *)handle)->selectedTabRect,retval);
252 }
253
QStyleOptionTabWidgetFrame_setSelectedTabRect(QStyleOptionTabWidgetFrameH handle,PRect selectedTabRect)254 void QStyleOptionTabWidgetFrame_setSelectedTabRect(QStyleOptionTabWidgetFrameH handle, PRect selectedTabRect)
255 {
256 copyPRectToQRect(selectedTabRect,((QStyleOptionTabWidgetFrame *)handle)->selectedTabRect);
257 }
258
QStyleOptionTabWidgetFrame_Create()259 QStyleOptionTabWidgetFrameH QStyleOptionTabWidgetFrame_Create()
260 {
261 return (QStyleOptionTabWidgetFrameH) new QStyleOptionTabWidgetFrame();
262 }
263
QStyleOptionTabWidgetFrame_Destroy(QStyleOptionTabWidgetFrameH handle)264 void QStyleOptionTabWidgetFrame_Destroy(QStyleOptionTabWidgetFrameH handle)
265 {
266 delete (QStyleOptionTabWidgetFrame *)handle;
267 }
268
QStyleOptionTabWidgetFrame_Create2(const QStyleOptionTabWidgetFrameH other)269 QStyleOptionTabWidgetFrameH QStyleOptionTabWidgetFrame_Create2(const QStyleOptionTabWidgetFrameH other)
270 {
271 return (QStyleOptionTabWidgetFrameH) new QStyleOptionTabWidgetFrame(*(const QStyleOptionTabWidgetFrame*)other);
272 }
273
QStyleOptionTabBarBase_shape(QStyleOptionTabBarBaseH handle)274 QTabBar::Shape QStyleOptionTabBarBase_shape(QStyleOptionTabBarBaseH handle)
275 {
276 return (QTabBar::Shape) ((QStyleOptionTabBarBase *)handle)->shape;
277 }
278
QStyleOptionTabBarBase_setShape(QStyleOptionTabBarBaseH handle,QTabBar::Shape shape)279 void QStyleOptionTabBarBase_setShape(QStyleOptionTabBarBaseH handle, QTabBar::Shape shape)
280 {
281 ((QStyleOptionTabBarBase *)handle)->shape = shape;
282 }
283
QStyleOptionTabBarBase_tabBarRect(QStyleOptionTabBarBaseH handle,PRect retval)284 void QStyleOptionTabBarBase_tabBarRect(QStyleOptionTabBarBaseH handle, PRect retval)
285 {
286 copyQRectToPRect(((QStyleOptionTabBarBase *)handle)->tabBarRect,retval);
287 }
288
QStyleOptionTabBarBase_setTabBarRect(QStyleOptionTabBarBaseH handle,PRect tabBarRect)289 void QStyleOptionTabBarBase_setTabBarRect(QStyleOptionTabBarBaseH handle, PRect tabBarRect)
290 {
291 copyPRectToQRect(tabBarRect,((QStyleOptionTabBarBase *)handle)->tabBarRect);
292 }
293
QStyleOptionTabBarBase_selectedTabRect(QStyleOptionTabBarBaseH handle,PRect retval)294 void QStyleOptionTabBarBase_selectedTabRect(QStyleOptionTabBarBaseH handle, PRect retval)
295 {
296 copyQRectToPRect(((QStyleOptionTabBarBase *)handle)->selectedTabRect,retval);
297 }
298
QStyleOptionTabBarBase_setSelectedTabRect(QStyleOptionTabBarBaseH handle,PRect selectedTabRect)299 void QStyleOptionTabBarBase_setSelectedTabRect(QStyleOptionTabBarBaseH handle, PRect selectedTabRect)
300 {
301 copyPRectToQRect(selectedTabRect,((QStyleOptionTabBarBase *)handle)->selectedTabRect);
302 }
303
QStyleOptionTabBarBase_documentMode(QStyleOptionTabBarBaseH handle)304 bool QStyleOptionTabBarBase_documentMode(QStyleOptionTabBarBaseH handle)
305 {
306 return (bool) ((QStyleOptionTabBarBase *)handle)->documentMode;
307 }
308
QStyleOptionTabBarBase_setDocumentMode(QStyleOptionTabBarBaseH handle,bool documentMode)309 void QStyleOptionTabBarBase_setDocumentMode(QStyleOptionTabBarBaseH handle, bool documentMode)
310 {
311 ((QStyleOptionTabBarBase *)handle)->documentMode = documentMode;
312 }
313
QStyleOptionTabBarBase_Create()314 QStyleOptionTabBarBaseH QStyleOptionTabBarBase_Create()
315 {
316 return (QStyleOptionTabBarBaseH) new QStyleOptionTabBarBase();
317 }
318
QStyleOptionTabBarBase_Destroy(QStyleOptionTabBarBaseH handle)319 void QStyleOptionTabBarBase_Destroy(QStyleOptionTabBarBaseH handle)
320 {
321 delete (QStyleOptionTabBarBase *)handle;
322 }
323
QStyleOptionTabBarBase_Create2(const QStyleOptionTabBarBaseH other)324 QStyleOptionTabBarBaseH QStyleOptionTabBarBase_Create2(const QStyleOptionTabBarBaseH other)
325 {
326 return (QStyleOptionTabBarBaseH) new QStyleOptionTabBarBase(*(const QStyleOptionTabBarBase*)other);
327 }
328
QStyleOptionHeader_section(QStyleOptionHeaderH handle)329 int QStyleOptionHeader_section(QStyleOptionHeaderH handle)
330 {
331 return (int) ((QStyleOptionHeader *)handle)->section;
332 }
333
QStyleOptionHeader_setSection(QStyleOptionHeaderH handle,int section)334 void QStyleOptionHeader_setSection(QStyleOptionHeaderH handle, int section)
335 {
336 ((QStyleOptionHeader *)handle)->section = section;
337 }
338
QStyleOptionHeader_text(QStyleOptionHeaderH handle,PWideString retval)339 void QStyleOptionHeader_text(QStyleOptionHeaderH handle, PWideString retval)
340 {
341 copyQStringToPWideString(((QStyleOptionHeader *)handle)->text,retval);
342 }
343
QStyleOptionHeader_setText(QStyleOptionHeaderH handle,PWideString text)344 void QStyleOptionHeader_setText(QStyleOptionHeaderH handle, PWideString text)
345 {
346 copyPWideStringToQString(text,((QStyleOptionHeader *)handle)->text);
347 }
348
QStyleOptionHeader_textAlignment(QStyleOptionHeaderH handle)349 unsigned int QStyleOptionHeader_textAlignment(QStyleOptionHeaderH handle)
350 {
351 return (unsigned int) ((QStyleOptionHeader *)handle)->textAlignment;
352 }
353
QStyleOptionHeader_setTextAlignment(QStyleOptionHeaderH handle,unsigned int textAlignment)354 void QStyleOptionHeader_setTextAlignment(QStyleOptionHeaderH handle, unsigned int textAlignment)
355 {
356 ((QStyleOptionHeader *)handle)->textAlignment =(Qt::Alignment)textAlignment;
357 }
358
QStyleOptionHeader_icon(QStyleOptionHeaderH handle,QIconH retval)359 void QStyleOptionHeader_icon(QStyleOptionHeaderH handle, QIconH retval)
360 {
361 *(QIcon *)retval = ((QStyleOptionHeader *)handle)->icon;
362 }
363
QStyleOptionHeader_setIcon(QStyleOptionHeaderH handle,QIconH icon)364 void QStyleOptionHeader_setIcon(QStyleOptionHeaderH handle, QIconH icon)
365 {
366 ((QStyleOptionHeader *)handle)->icon = *(QIcon *)icon;
367 }
368
QStyleOptionHeader_iconAlignment(QStyleOptionHeaderH handle)369 unsigned int QStyleOptionHeader_iconAlignment(QStyleOptionHeaderH handle)
370 {
371 return (unsigned int) ((QStyleOptionHeader *)handle)->iconAlignment;
372 }
373
QStyleOptionHeader_setIconAlignment(QStyleOptionHeaderH handle,unsigned int iconAlignment)374 void QStyleOptionHeader_setIconAlignment(QStyleOptionHeaderH handle, unsigned int iconAlignment)
375 {
376 ((QStyleOptionHeader *)handle)->iconAlignment =(Qt::Alignment)iconAlignment;
377 }
378
QStyleOptionHeader_position(QStyleOptionHeaderH handle)379 QStyleOptionHeader::SectionPosition QStyleOptionHeader_position(QStyleOptionHeaderH handle)
380 {
381 return (QStyleOptionHeader::SectionPosition) ((QStyleOptionHeader *)handle)->position;
382 }
383
QStyleOptionHeader_setPosition(QStyleOptionHeaderH handle,QStyleOptionHeader::SectionPosition position)384 void QStyleOptionHeader_setPosition(QStyleOptionHeaderH handle, QStyleOptionHeader::SectionPosition position)
385 {
386 ((QStyleOptionHeader *)handle)->position = position;
387 }
388
QStyleOptionHeader_selectedPosition(QStyleOptionHeaderH handle)389 QStyleOptionHeader::SelectedPosition QStyleOptionHeader_selectedPosition(QStyleOptionHeaderH handle)
390 {
391 return (QStyleOptionHeader::SelectedPosition) ((QStyleOptionHeader *)handle)->selectedPosition;
392 }
393
QStyleOptionHeader_setSelectedPosition(QStyleOptionHeaderH handle,QStyleOptionHeader::SelectedPosition selectedPosition)394 void QStyleOptionHeader_setSelectedPosition(QStyleOptionHeaderH handle, QStyleOptionHeader::SelectedPosition selectedPosition)
395 {
396 ((QStyleOptionHeader *)handle)->selectedPosition = selectedPosition;
397 }
398
QStyleOptionHeader_sortIndicator(QStyleOptionHeaderH handle)399 QStyleOptionHeader::SortIndicator QStyleOptionHeader_sortIndicator(QStyleOptionHeaderH handle)
400 {
401 return (QStyleOptionHeader::SortIndicator) ((QStyleOptionHeader *)handle)->sortIndicator;
402 }
403
QStyleOptionHeader_setSortIndicator(QStyleOptionHeaderH handle,QStyleOptionHeader::SortIndicator sortIndicator)404 void QStyleOptionHeader_setSortIndicator(QStyleOptionHeaderH handle, QStyleOptionHeader::SortIndicator sortIndicator)
405 {
406 ((QStyleOptionHeader *)handle)->sortIndicator = sortIndicator;
407 }
408
QStyleOptionHeader_orientation(QStyleOptionHeaderH handle)409 Qt::Orientation QStyleOptionHeader_orientation(QStyleOptionHeaderH handle)
410 {
411 return (Qt::Orientation) ((QStyleOptionHeader *)handle)->orientation;
412 }
413
QStyleOptionHeader_setOrientation(QStyleOptionHeaderH handle,Qt::Orientation orientation)414 void QStyleOptionHeader_setOrientation(QStyleOptionHeaderH handle, Qt::Orientation orientation)
415 {
416 ((QStyleOptionHeader *)handle)->orientation = orientation;
417 }
418
QStyleOptionHeader_Create()419 QStyleOptionHeaderH QStyleOptionHeader_Create()
420 {
421 return (QStyleOptionHeaderH) new QStyleOptionHeader();
422 }
423
QStyleOptionHeader_Destroy(QStyleOptionHeaderH handle)424 void QStyleOptionHeader_Destroy(QStyleOptionHeaderH handle)
425 {
426 delete (QStyleOptionHeader *)handle;
427 }
428
QStyleOptionHeader_Create2(const QStyleOptionHeaderH other)429 QStyleOptionHeaderH QStyleOptionHeader_Create2(const QStyleOptionHeaderH other)
430 {
431 return (QStyleOptionHeaderH) new QStyleOptionHeader(*(const QStyleOptionHeader*)other);
432 }
433
QStyleOptionButton_features(QStyleOptionButtonH handle)434 unsigned int QStyleOptionButton_features(QStyleOptionButtonH handle)
435 {
436 return (unsigned int) ((QStyleOptionButton *)handle)->features;
437 }
438
QStyleOptionButton_setFeatures(QStyleOptionButtonH handle,unsigned int features)439 void QStyleOptionButton_setFeatures(QStyleOptionButtonH handle, unsigned int features)
440 {
441 ((QStyleOptionButton *)handle)->features =(QStyleOptionButton::ButtonFeatures)features;
442 }
443
QStyleOptionButton_text(QStyleOptionButtonH handle,PWideString retval)444 void QStyleOptionButton_text(QStyleOptionButtonH handle, PWideString retval)
445 {
446 copyQStringToPWideString(((QStyleOptionButton *)handle)->text,retval);
447 }
448
QStyleOptionButton_setText(QStyleOptionButtonH handle,PWideString text)449 void QStyleOptionButton_setText(QStyleOptionButtonH handle, PWideString text)
450 {
451 copyPWideStringToQString(text,((QStyleOptionButton *)handle)->text);
452 }
453
QStyleOptionButton_icon(QStyleOptionButtonH handle,QIconH retval)454 void QStyleOptionButton_icon(QStyleOptionButtonH handle, QIconH retval)
455 {
456 *(QIcon *)retval = ((QStyleOptionButton *)handle)->icon;
457 }
458
QStyleOptionButton_setIcon(QStyleOptionButtonH handle,QIconH icon)459 void QStyleOptionButton_setIcon(QStyleOptionButtonH handle, QIconH icon)
460 {
461 ((QStyleOptionButton *)handle)->icon = *(QIcon *)icon;
462 }
463
QStyleOptionButton_iconSize(QStyleOptionButtonH handle,PSize retval)464 void QStyleOptionButton_iconSize(QStyleOptionButtonH handle, PSize retval)
465 {
466 *(QSize *)retval = ((QStyleOptionButton *)handle)->iconSize;
467 }
468
QStyleOptionButton_setIconSize(QStyleOptionButtonH handle,PSize iconSize)469 void QStyleOptionButton_setIconSize(QStyleOptionButtonH handle, PSize iconSize)
470 {
471 ((QStyleOptionButton *)handle)->iconSize = *(QSize *)iconSize;
472 }
473
QStyleOptionButton_Create()474 QStyleOptionButtonH QStyleOptionButton_Create()
475 {
476 return (QStyleOptionButtonH) new QStyleOptionButton();
477 }
478
QStyleOptionButton_Destroy(QStyleOptionButtonH handle)479 void QStyleOptionButton_Destroy(QStyleOptionButtonH handle)
480 {
481 delete (QStyleOptionButton *)handle;
482 }
483
QStyleOptionButton_Create2(const QStyleOptionButtonH other)484 QStyleOptionButtonH QStyleOptionButton_Create2(const QStyleOptionButtonH other)
485 {
486 return (QStyleOptionButtonH) new QStyleOptionButton(*(const QStyleOptionButton*)other);
487 }
488
QStyleOptionTab_shape(QStyleOptionTabH handle)489 QTabBar::Shape QStyleOptionTab_shape(QStyleOptionTabH handle)
490 {
491 return (QTabBar::Shape) ((QStyleOptionTab *)handle)->shape;
492 }
493
QStyleOptionTab_setShape(QStyleOptionTabH handle,QTabBar::Shape shape)494 void QStyleOptionTab_setShape(QStyleOptionTabH handle, QTabBar::Shape shape)
495 {
496 ((QStyleOptionTab *)handle)->shape = shape;
497 }
498
QStyleOptionTab_text(QStyleOptionTabH handle,PWideString retval)499 void QStyleOptionTab_text(QStyleOptionTabH handle, PWideString retval)
500 {
501 copyQStringToPWideString(((QStyleOptionTab *)handle)->text,retval);
502 }
503
QStyleOptionTab_setText(QStyleOptionTabH handle,PWideString text)504 void QStyleOptionTab_setText(QStyleOptionTabH handle, PWideString text)
505 {
506 copyPWideStringToQString(text,((QStyleOptionTab *)handle)->text);
507 }
508
QStyleOptionTab_icon(QStyleOptionTabH handle,QIconH retval)509 void QStyleOptionTab_icon(QStyleOptionTabH handle, QIconH retval)
510 {
511 *(QIcon *)retval = ((QStyleOptionTab *)handle)->icon;
512 }
513
QStyleOptionTab_setIcon(QStyleOptionTabH handle,QIconH icon)514 void QStyleOptionTab_setIcon(QStyleOptionTabH handle, QIconH icon)
515 {
516 ((QStyleOptionTab *)handle)->icon = *(QIcon *)icon;
517 }
518
QStyleOptionTab_row(QStyleOptionTabH handle)519 int QStyleOptionTab_row(QStyleOptionTabH handle)
520 {
521 return (int) ((QStyleOptionTab *)handle)->row;
522 }
523
QStyleOptionTab_setRow(QStyleOptionTabH handle,int row)524 void QStyleOptionTab_setRow(QStyleOptionTabH handle, int row)
525 {
526 ((QStyleOptionTab *)handle)->row = row;
527 }
528
QStyleOptionTab_position(QStyleOptionTabH handle)529 QStyleOptionTab::TabPosition QStyleOptionTab_position(QStyleOptionTabH handle)
530 {
531 return (QStyleOptionTab::TabPosition) ((QStyleOptionTab *)handle)->position;
532 }
533
QStyleOptionTab_setPosition(QStyleOptionTabH handle,QStyleOptionTab::TabPosition position)534 void QStyleOptionTab_setPosition(QStyleOptionTabH handle, QStyleOptionTab::TabPosition position)
535 {
536 ((QStyleOptionTab *)handle)->position = position;
537 }
538
QStyleOptionTab_selectedPosition(QStyleOptionTabH handle)539 QStyleOptionTab::SelectedPosition QStyleOptionTab_selectedPosition(QStyleOptionTabH handle)
540 {
541 return (QStyleOptionTab::SelectedPosition) ((QStyleOptionTab *)handle)->selectedPosition;
542 }
543
QStyleOptionTab_setSelectedPosition(QStyleOptionTabH handle,QStyleOptionTab::SelectedPosition selectedPosition)544 void QStyleOptionTab_setSelectedPosition(QStyleOptionTabH handle, QStyleOptionTab::SelectedPosition selectedPosition)
545 {
546 ((QStyleOptionTab *)handle)->selectedPosition = selectedPosition;
547 }
548
QStyleOptionTab_cornerWidgets(QStyleOptionTabH handle)549 unsigned int QStyleOptionTab_cornerWidgets(QStyleOptionTabH handle)
550 {
551 return (unsigned int) ((QStyleOptionTab *)handle)->cornerWidgets;
552 }
553
QStyleOptionTab_setCornerWidgets(QStyleOptionTabH handle,unsigned int cornerWidgets)554 void QStyleOptionTab_setCornerWidgets(QStyleOptionTabH handle, unsigned int cornerWidgets)
555 {
556 ((QStyleOptionTab *)handle)->cornerWidgets =(QStyleOptionTab::CornerWidgets)cornerWidgets;
557 }
558
QStyleOptionTab_iconSize(QStyleOptionTabH handle,PSize retval)559 void QStyleOptionTab_iconSize(QStyleOptionTabH handle, PSize retval)
560 {
561 *(QSize *)retval = ((QStyleOptionTab *)handle)->iconSize;
562 }
563
QStyleOptionTab_setIconSize(QStyleOptionTabH handle,PSize iconSize)564 void QStyleOptionTab_setIconSize(QStyleOptionTabH handle, PSize iconSize)
565 {
566 ((QStyleOptionTab *)handle)->iconSize = *(QSize *)iconSize;
567 }
568
QStyleOptionTab_documentMode(QStyleOptionTabH handle)569 bool QStyleOptionTab_documentMode(QStyleOptionTabH handle)
570 {
571 return (bool) ((QStyleOptionTab *)handle)->documentMode;
572 }
573
QStyleOptionTab_setDocumentMode(QStyleOptionTabH handle,bool documentMode)574 void QStyleOptionTab_setDocumentMode(QStyleOptionTabH handle, bool documentMode)
575 {
576 ((QStyleOptionTab *)handle)->documentMode = documentMode;
577 }
578
QStyleOptionTab_leftButtonSize(QStyleOptionTabH handle,PSize retval)579 void QStyleOptionTab_leftButtonSize(QStyleOptionTabH handle, PSize retval)
580 {
581 *(QSize *)retval = ((QStyleOptionTab *)handle)->leftButtonSize;
582 }
583
QStyleOptionTab_setLeftButtonSize(QStyleOptionTabH handle,PSize leftButtonSize)584 void QStyleOptionTab_setLeftButtonSize(QStyleOptionTabH handle, PSize leftButtonSize)
585 {
586 ((QStyleOptionTab *)handle)->leftButtonSize = *(QSize *)leftButtonSize;
587 }
588
QStyleOptionTab_rightButtonSize(QStyleOptionTabH handle,PSize retval)589 void QStyleOptionTab_rightButtonSize(QStyleOptionTabH handle, PSize retval)
590 {
591 *(QSize *)retval = ((QStyleOptionTab *)handle)->rightButtonSize;
592 }
593
QStyleOptionTab_setRightButtonSize(QStyleOptionTabH handle,PSize rightButtonSize)594 void QStyleOptionTab_setRightButtonSize(QStyleOptionTabH handle, PSize rightButtonSize)
595 {
596 ((QStyleOptionTab *)handle)->rightButtonSize = *(QSize *)rightButtonSize;
597 }
598
QStyleOptionTab_features(QStyleOptionTabH handle)599 unsigned int QStyleOptionTab_features(QStyleOptionTabH handle)
600 {
601 return (unsigned int) ((QStyleOptionTab *)handle)->features;
602 }
603
QStyleOptionTab_setFeatures(QStyleOptionTabH handle,unsigned int features)604 void QStyleOptionTab_setFeatures(QStyleOptionTabH handle, unsigned int features)
605 {
606 ((QStyleOptionTab *)handle)->features =(QStyleOptionTab::TabFeatures)features;
607 }
608
QStyleOptionTab_Create()609 QStyleOptionTabH QStyleOptionTab_Create()
610 {
611 return (QStyleOptionTabH) new QStyleOptionTab();
612 }
613
QStyleOptionTab_Destroy(QStyleOptionTabH handle)614 void QStyleOptionTab_Destroy(QStyleOptionTabH handle)
615 {
616 delete (QStyleOptionTab *)handle;
617 }
618
QStyleOptionTab_Create2(const QStyleOptionTabH other)619 QStyleOptionTabH QStyleOptionTab_Create2(const QStyleOptionTabH other)
620 {
621 return (QStyleOptionTabH) new QStyleOptionTab(*(const QStyleOptionTab*)other);
622 }
623
QStyleOptionToolBar_positionOfLine(QStyleOptionToolBarH handle)624 QStyleOptionToolBar::ToolBarPosition QStyleOptionToolBar_positionOfLine(QStyleOptionToolBarH handle)
625 {
626 return (QStyleOptionToolBar::ToolBarPosition) ((QStyleOptionToolBar *)handle)->positionOfLine;
627 }
628
QStyleOptionToolBar_setPositionOfLine(QStyleOptionToolBarH handle,QStyleOptionToolBar::ToolBarPosition positionOfLine)629 void QStyleOptionToolBar_setPositionOfLine(QStyleOptionToolBarH handle, QStyleOptionToolBar::ToolBarPosition positionOfLine)
630 {
631 ((QStyleOptionToolBar *)handle)->positionOfLine = positionOfLine;
632 }
633
QStyleOptionToolBar_positionWithinLine(QStyleOptionToolBarH handle)634 QStyleOptionToolBar::ToolBarPosition QStyleOptionToolBar_positionWithinLine(QStyleOptionToolBarH handle)
635 {
636 return (QStyleOptionToolBar::ToolBarPosition) ((QStyleOptionToolBar *)handle)->positionWithinLine;
637 }
638
QStyleOptionToolBar_setPositionWithinLine(QStyleOptionToolBarH handle,QStyleOptionToolBar::ToolBarPosition positionWithinLine)639 void QStyleOptionToolBar_setPositionWithinLine(QStyleOptionToolBarH handle, QStyleOptionToolBar::ToolBarPosition positionWithinLine)
640 {
641 ((QStyleOptionToolBar *)handle)->positionWithinLine = positionWithinLine;
642 }
643
QStyleOptionToolBar_toolBarArea(QStyleOptionToolBarH handle)644 Qt::ToolBarArea QStyleOptionToolBar_toolBarArea(QStyleOptionToolBarH handle)
645 {
646 return (Qt::ToolBarArea) ((QStyleOptionToolBar *)handle)->toolBarArea;
647 }
648
QStyleOptionToolBar_setToolBarArea(QStyleOptionToolBarH handle,Qt::ToolBarArea toolBarArea)649 void QStyleOptionToolBar_setToolBarArea(QStyleOptionToolBarH handle, Qt::ToolBarArea toolBarArea)
650 {
651 ((QStyleOptionToolBar *)handle)->toolBarArea = toolBarArea;
652 }
653
QStyleOptionToolBar_features(QStyleOptionToolBarH handle)654 unsigned int QStyleOptionToolBar_features(QStyleOptionToolBarH handle)
655 {
656 return (unsigned int) ((QStyleOptionToolBar *)handle)->features;
657 }
658
QStyleOptionToolBar_setFeatures(QStyleOptionToolBarH handle,unsigned int features)659 void QStyleOptionToolBar_setFeatures(QStyleOptionToolBarH handle, unsigned int features)
660 {
661 ((QStyleOptionToolBar *)handle)->features =(QStyleOptionToolBar::ToolBarFeatures)features;
662 }
663
QStyleOptionToolBar_lineWidth(QStyleOptionToolBarH handle)664 int QStyleOptionToolBar_lineWidth(QStyleOptionToolBarH handle)
665 {
666 return (int) ((QStyleOptionToolBar *)handle)->lineWidth;
667 }
668
QStyleOptionToolBar_setLineWidth(QStyleOptionToolBarH handle,int lineWidth)669 void QStyleOptionToolBar_setLineWidth(QStyleOptionToolBarH handle, int lineWidth)
670 {
671 ((QStyleOptionToolBar *)handle)->lineWidth = lineWidth;
672 }
673
QStyleOptionToolBar_midLineWidth(QStyleOptionToolBarH handle)674 int QStyleOptionToolBar_midLineWidth(QStyleOptionToolBarH handle)
675 {
676 return (int) ((QStyleOptionToolBar *)handle)->midLineWidth;
677 }
678
QStyleOptionToolBar_setMidLineWidth(QStyleOptionToolBarH handle,int midLineWidth)679 void QStyleOptionToolBar_setMidLineWidth(QStyleOptionToolBarH handle, int midLineWidth)
680 {
681 ((QStyleOptionToolBar *)handle)->midLineWidth = midLineWidth;
682 }
683
QStyleOptionToolBar_Create()684 QStyleOptionToolBarH QStyleOptionToolBar_Create()
685 {
686 return (QStyleOptionToolBarH) new QStyleOptionToolBar();
687 }
688
QStyleOptionToolBar_Destroy(QStyleOptionToolBarH handle)689 void QStyleOptionToolBar_Destroy(QStyleOptionToolBarH handle)
690 {
691 delete (QStyleOptionToolBar *)handle;
692 }
693
QStyleOptionToolBar_Create2(const QStyleOptionToolBarH other)694 QStyleOptionToolBarH QStyleOptionToolBar_Create2(const QStyleOptionToolBarH other)
695 {
696 return (QStyleOptionToolBarH) new QStyleOptionToolBar(*(const QStyleOptionToolBar*)other);
697 }
698
QStyleOptionProgressBar_minimum(QStyleOptionProgressBarH handle)699 int QStyleOptionProgressBar_minimum(QStyleOptionProgressBarH handle)
700 {
701 return (int) ((QStyleOptionProgressBar *)handle)->minimum;
702 }
703
QStyleOptionProgressBar_setMinimum(QStyleOptionProgressBarH handle,int minimum)704 void QStyleOptionProgressBar_setMinimum(QStyleOptionProgressBarH handle, int minimum)
705 {
706 ((QStyleOptionProgressBar *)handle)->minimum = minimum;
707 }
708
QStyleOptionProgressBar_maximum(QStyleOptionProgressBarH handle)709 int QStyleOptionProgressBar_maximum(QStyleOptionProgressBarH handle)
710 {
711 return (int) ((QStyleOptionProgressBar *)handle)->maximum;
712 }
713
QStyleOptionProgressBar_setMaximum(QStyleOptionProgressBarH handle,int maximum)714 void QStyleOptionProgressBar_setMaximum(QStyleOptionProgressBarH handle, int maximum)
715 {
716 ((QStyleOptionProgressBar *)handle)->maximum = maximum;
717 }
718
QStyleOptionProgressBar_progress(QStyleOptionProgressBarH handle)719 int QStyleOptionProgressBar_progress(QStyleOptionProgressBarH handle)
720 {
721 return (int) ((QStyleOptionProgressBar *)handle)->progress;
722 }
723
QStyleOptionProgressBar_setProgress(QStyleOptionProgressBarH handle,int progress)724 void QStyleOptionProgressBar_setProgress(QStyleOptionProgressBarH handle, int progress)
725 {
726 ((QStyleOptionProgressBar *)handle)->progress = progress;
727 }
728
QStyleOptionProgressBar_text(QStyleOptionProgressBarH handle,PWideString retval)729 void QStyleOptionProgressBar_text(QStyleOptionProgressBarH handle, PWideString retval)
730 {
731 copyQStringToPWideString(((QStyleOptionProgressBar *)handle)->text,retval);
732 }
733
QStyleOptionProgressBar_setText(QStyleOptionProgressBarH handle,PWideString text)734 void QStyleOptionProgressBar_setText(QStyleOptionProgressBarH handle, PWideString text)
735 {
736 copyPWideStringToQString(text,((QStyleOptionProgressBar *)handle)->text);
737 }
738
QStyleOptionProgressBar_textAlignment(QStyleOptionProgressBarH handle)739 unsigned int QStyleOptionProgressBar_textAlignment(QStyleOptionProgressBarH handle)
740 {
741 return (unsigned int) ((QStyleOptionProgressBar *)handle)->textAlignment;
742 }
743
QStyleOptionProgressBar_setTextAlignment(QStyleOptionProgressBarH handle,unsigned int textAlignment)744 void QStyleOptionProgressBar_setTextAlignment(QStyleOptionProgressBarH handle, unsigned int textAlignment)
745 {
746 ((QStyleOptionProgressBar *)handle)->textAlignment =(Qt::Alignment)textAlignment;
747 }
748
QStyleOptionProgressBar_textVisible(QStyleOptionProgressBarH handle)749 bool QStyleOptionProgressBar_textVisible(QStyleOptionProgressBarH handle)
750 {
751 return (bool) ((QStyleOptionProgressBar *)handle)->textVisible;
752 }
753
QStyleOptionProgressBar_setTextVisible(QStyleOptionProgressBarH handle,bool textVisible)754 void QStyleOptionProgressBar_setTextVisible(QStyleOptionProgressBarH handle, bool textVisible)
755 {
756 ((QStyleOptionProgressBar *)handle)->textVisible = textVisible;
757 }
758
QStyleOptionProgressBar_orientation(QStyleOptionProgressBarH handle)759 Qt::Orientation QStyleOptionProgressBar_orientation(QStyleOptionProgressBarH handle)
760 {
761 return (Qt::Orientation) ((QStyleOptionProgressBar *)handle)->orientation;
762 }
763
QStyleOptionProgressBar_setOrientation(QStyleOptionProgressBarH handle,Qt::Orientation orientation)764 void QStyleOptionProgressBar_setOrientation(QStyleOptionProgressBarH handle, Qt::Orientation orientation)
765 {
766 ((QStyleOptionProgressBar *)handle)->orientation = orientation;
767 }
768
QStyleOptionProgressBar_invertedAppearance(QStyleOptionProgressBarH handle)769 bool QStyleOptionProgressBar_invertedAppearance(QStyleOptionProgressBarH handle)
770 {
771 return (bool) ((QStyleOptionProgressBar *)handle)->invertedAppearance;
772 }
773
QStyleOptionProgressBar_setInvertedAppearance(QStyleOptionProgressBarH handle,bool invertedAppearance)774 void QStyleOptionProgressBar_setInvertedAppearance(QStyleOptionProgressBarH handle, bool invertedAppearance)
775 {
776 ((QStyleOptionProgressBar *)handle)->invertedAppearance = invertedAppearance;
777 }
778
QStyleOptionProgressBar_bottomToTop(QStyleOptionProgressBarH handle)779 bool QStyleOptionProgressBar_bottomToTop(QStyleOptionProgressBarH handle)
780 {
781 return (bool) ((QStyleOptionProgressBar *)handle)->bottomToTop;
782 }
783
QStyleOptionProgressBar_setBottomToTop(QStyleOptionProgressBarH handle,bool bottomToTop)784 void QStyleOptionProgressBar_setBottomToTop(QStyleOptionProgressBarH handle, bool bottomToTop)
785 {
786 ((QStyleOptionProgressBar *)handle)->bottomToTop = bottomToTop;
787 }
788
QStyleOptionProgressBar_Create()789 QStyleOptionProgressBarH QStyleOptionProgressBar_Create()
790 {
791 return (QStyleOptionProgressBarH) new QStyleOptionProgressBar();
792 }
793
QStyleOptionProgressBar_Destroy(QStyleOptionProgressBarH handle)794 void QStyleOptionProgressBar_Destroy(QStyleOptionProgressBarH handle)
795 {
796 delete (QStyleOptionProgressBar *)handle;
797 }
798
QStyleOptionProgressBar_Create2(const QStyleOptionProgressBarH other)799 QStyleOptionProgressBarH QStyleOptionProgressBar_Create2(const QStyleOptionProgressBarH other)
800 {
801 return (QStyleOptionProgressBarH) new QStyleOptionProgressBar(*(const QStyleOptionProgressBar*)other);
802 }
803
QStyleOptionMenuItem_menuItemType(QStyleOptionMenuItemH handle)804 QStyleOptionMenuItem::MenuItemType QStyleOptionMenuItem_menuItemType(QStyleOptionMenuItemH handle)
805 {
806 return (QStyleOptionMenuItem::MenuItemType) ((QStyleOptionMenuItem *)handle)->menuItemType;
807 }
808
QStyleOptionMenuItem_setMenuItemType(QStyleOptionMenuItemH handle,QStyleOptionMenuItem::MenuItemType menuItemType)809 void QStyleOptionMenuItem_setMenuItemType(QStyleOptionMenuItemH handle, QStyleOptionMenuItem::MenuItemType menuItemType)
810 {
811 ((QStyleOptionMenuItem *)handle)->menuItemType = menuItemType;
812 }
813
QStyleOptionMenuItem_checkType(QStyleOptionMenuItemH handle)814 QStyleOptionMenuItem::CheckType QStyleOptionMenuItem_checkType(QStyleOptionMenuItemH handle)
815 {
816 return (QStyleOptionMenuItem::CheckType) ((QStyleOptionMenuItem *)handle)->checkType;
817 }
818
QStyleOptionMenuItem_setCheckType(QStyleOptionMenuItemH handle,QStyleOptionMenuItem::CheckType checkType)819 void QStyleOptionMenuItem_setCheckType(QStyleOptionMenuItemH handle, QStyleOptionMenuItem::CheckType checkType)
820 {
821 ((QStyleOptionMenuItem *)handle)->checkType = checkType;
822 }
823
QStyleOptionMenuItem_checked(QStyleOptionMenuItemH handle)824 bool QStyleOptionMenuItem_checked(QStyleOptionMenuItemH handle)
825 {
826 return (bool) ((QStyleOptionMenuItem *)handle)->checked;
827 }
828
QStyleOptionMenuItem_setChecked(QStyleOptionMenuItemH handle,bool checked)829 void QStyleOptionMenuItem_setChecked(QStyleOptionMenuItemH handle, bool checked)
830 {
831 ((QStyleOptionMenuItem *)handle)->checked = checked;
832 }
833
QStyleOptionMenuItem_menuHasCheckableItems(QStyleOptionMenuItemH handle)834 bool QStyleOptionMenuItem_menuHasCheckableItems(QStyleOptionMenuItemH handle)
835 {
836 return (bool) ((QStyleOptionMenuItem *)handle)->menuHasCheckableItems;
837 }
838
QStyleOptionMenuItem_setMenuHasCheckableItems(QStyleOptionMenuItemH handle,bool menuHasCheckableItems)839 void QStyleOptionMenuItem_setMenuHasCheckableItems(QStyleOptionMenuItemH handle, bool menuHasCheckableItems)
840 {
841 ((QStyleOptionMenuItem *)handle)->menuHasCheckableItems = menuHasCheckableItems;
842 }
843
QStyleOptionMenuItem_menuRect(QStyleOptionMenuItemH handle,PRect retval)844 void QStyleOptionMenuItem_menuRect(QStyleOptionMenuItemH handle, PRect retval)
845 {
846 copyQRectToPRect(((QStyleOptionMenuItem *)handle)->menuRect,retval);
847 }
848
QStyleOptionMenuItem_setMenuRect(QStyleOptionMenuItemH handle,PRect menuRect)849 void QStyleOptionMenuItem_setMenuRect(QStyleOptionMenuItemH handle, PRect menuRect)
850 {
851 copyPRectToQRect(menuRect,((QStyleOptionMenuItem *)handle)->menuRect);
852 }
853
QStyleOptionMenuItem_text(QStyleOptionMenuItemH handle,PWideString retval)854 void QStyleOptionMenuItem_text(QStyleOptionMenuItemH handle, PWideString retval)
855 {
856 copyQStringToPWideString(((QStyleOptionMenuItem *)handle)->text,retval);
857 }
858
QStyleOptionMenuItem_setText(QStyleOptionMenuItemH handle,PWideString text)859 void QStyleOptionMenuItem_setText(QStyleOptionMenuItemH handle, PWideString text)
860 {
861 copyPWideStringToQString(text,((QStyleOptionMenuItem *)handle)->text);
862 }
863
QStyleOptionMenuItem_icon(QStyleOptionMenuItemH handle,QIconH retval)864 void QStyleOptionMenuItem_icon(QStyleOptionMenuItemH handle, QIconH retval)
865 {
866 *(QIcon *)retval = ((QStyleOptionMenuItem *)handle)->icon;
867 }
868
QStyleOptionMenuItem_setIcon(QStyleOptionMenuItemH handle,QIconH icon)869 void QStyleOptionMenuItem_setIcon(QStyleOptionMenuItemH handle, QIconH icon)
870 {
871 ((QStyleOptionMenuItem *)handle)->icon = *(QIcon *)icon;
872 }
873
QStyleOptionMenuItem_maxIconWidth(QStyleOptionMenuItemH handle)874 int QStyleOptionMenuItem_maxIconWidth(QStyleOptionMenuItemH handle)
875 {
876 return (int) ((QStyleOptionMenuItem *)handle)->maxIconWidth;
877 }
878
QStyleOptionMenuItem_setMaxIconWidth(QStyleOptionMenuItemH handle,int maxIconWidth)879 void QStyleOptionMenuItem_setMaxIconWidth(QStyleOptionMenuItemH handle, int maxIconWidth)
880 {
881 ((QStyleOptionMenuItem *)handle)->maxIconWidth = maxIconWidth;
882 }
883
QStyleOptionMenuItem_tabWidth(QStyleOptionMenuItemH handle)884 int QStyleOptionMenuItem_tabWidth(QStyleOptionMenuItemH handle)
885 {
886 return (int) ((QStyleOptionMenuItem *)handle)->tabWidth;
887 }
888
QStyleOptionMenuItem_setTabWidth(QStyleOptionMenuItemH handle,int tabWidth)889 void QStyleOptionMenuItem_setTabWidth(QStyleOptionMenuItemH handle, int tabWidth)
890 {
891 ((QStyleOptionMenuItem *)handle)->tabWidth = tabWidth;
892 }
893
QStyleOptionMenuItem_font(QStyleOptionMenuItemH handle,QFontH retval)894 void QStyleOptionMenuItem_font(QStyleOptionMenuItemH handle, QFontH retval)
895 {
896 *(QFont *)retval = ((QStyleOptionMenuItem *)handle)->font;
897 }
898
QStyleOptionMenuItem_setFont(QStyleOptionMenuItemH handle,QFontH font)899 void QStyleOptionMenuItem_setFont(QStyleOptionMenuItemH handle, QFontH font)
900 {
901 ((QStyleOptionMenuItem *)handle)->font = *(QFont *)font;
902 }
903
QStyleOptionMenuItem_Create()904 QStyleOptionMenuItemH QStyleOptionMenuItem_Create()
905 {
906 return (QStyleOptionMenuItemH) new QStyleOptionMenuItem();
907 }
908
QStyleOptionMenuItem_Destroy(QStyleOptionMenuItemH handle)909 void QStyleOptionMenuItem_Destroy(QStyleOptionMenuItemH handle)
910 {
911 delete (QStyleOptionMenuItem *)handle;
912 }
913
QStyleOptionMenuItem_Create2(const QStyleOptionMenuItemH other)914 QStyleOptionMenuItemH QStyleOptionMenuItem_Create2(const QStyleOptionMenuItemH other)
915 {
916 return (QStyleOptionMenuItemH) new QStyleOptionMenuItem(*(const QStyleOptionMenuItem*)other);
917 }
918
QStyleOptionDockWidget_title(QStyleOptionDockWidgetH handle,PWideString retval)919 void QStyleOptionDockWidget_title(QStyleOptionDockWidgetH handle, PWideString retval)
920 {
921 copyQStringToPWideString(((QStyleOptionDockWidget *)handle)->title,retval);
922 }
923
QStyleOptionDockWidget_setTitle(QStyleOptionDockWidgetH handle,PWideString title)924 void QStyleOptionDockWidget_setTitle(QStyleOptionDockWidgetH handle, PWideString title)
925 {
926 copyPWideStringToQString(title,((QStyleOptionDockWidget *)handle)->title);
927 }
928
QStyleOptionDockWidget_closable(QStyleOptionDockWidgetH handle)929 bool QStyleOptionDockWidget_closable(QStyleOptionDockWidgetH handle)
930 {
931 return (bool) ((QStyleOptionDockWidget *)handle)->closable;
932 }
933
QStyleOptionDockWidget_setClosable(QStyleOptionDockWidgetH handle,bool closable)934 void QStyleOptionDockWidget_setClosable(QStyleOptionDockWidgetH handle, bool closable)
935 {
936 ((QStyleOptionDockWidget *)handle)->closable = closable;
937 }
938
QStyleOptionDockWidget_movable(QStyleOptionDockWidgetH handle)939 bool QStyleOptionDockWidget_movable(QStyleOptionDockWidgetH handle)
940 {
941 return (bool) ((QStyleOptionDockWidget *)handle)->movable;
942 }
943
QStyleOptionDockWidget_setMovable(QStyleOptionDockWidgetH handle,bool movable)944 void QStyleOptionDockWidget_setMovable(QStyleOptionDockWidgetH handle, bool movable)
945 {
946 ((QStyleOptionDockWidget *)handle)->movable = movable;
947 }
948
QStyleOptionDockWidget_floatable(QStyleOptionDockWidgetH handle)949 bool QStyleOptionDockWidget_floatable(QStyleOptionDockWidgetH handle)
950 {
951 return (bool) ((QStyleOptionDockWidget *)handle)->floatable;
952 }
953
QStyleOptionDockWidget_setFloatable(QStyleOptionDockWidgetH handle,bool floatable)954 void QStyleOptionDockWidget_setFloatable(QStyleOptionDockWidgetH handle, bool floatable)
955 {
956 ((QStyleOptionDockWidget *)handle)->floatable = floatable;
957 }
958
QStyleOptionDockWidget_verticalTitleBar(QStyleOptionDockWidgetH handle)959 bool QStyleOptionDockWidget_verticalTitleBar(QStyleOptionDockWidgetH handle)
960 {
961 return (bool) ((QStyleOptionDockWidget *)handle)->verticalTitleBar;
962 }
963
QStyleOptionDockWidget_setVerticalTitleBar(QStyleOptionDockWidgetH handle,bool verticalTitleBar)964 void QStyleOptionDockWidget_setVerticalTitleBar(QStyleOptionDockWidgetH handle, bool verticalTitleBar)
965 {
966 ((QStyleOptionDockWidget *)handle)->verticalTitleBar = verticalTitleBar;
967 }
968
QStyleOptionDockWidget_Create()969 QStyleOptionDockWidgetH QStyleOptionDockWidget_Create()
970 {
971 return (QStyleOptionDockWidgetH) new QStyleOptionDockWidget();
972 }
973
QStyleOptionDockWidget_Destroy(QStyleOptionDockWidgetH handle)974 void QStyleOptionDockWidget_Destroy(QStyleOptionDockWidgetH handle)
975 {
976 delete (QStyleOptionDockWidget *)handle;
977 }
978
QStyleOptionDockWidget_Create2(const QStyleOptionDockWidgetH other)979 QStyleOptionDockWidgetH QStyleOptionDockWidget_Create2(const QStyleOptionDockWidgetH other)
980 {
981 return (QStyleOptionDockWidgetH) new QStyleOptionDockWidget(*(const QStyleOptionDockWidget*)other);
982 }
983
QStyleOptionViewItem_displayAlignment(QStyleOptionViewItemH handle)984 unsigned int QStyleOptionViewItem_displayAlignment(QStyleOptionViewItemH handle)
985 {
986 return (unsigned int) ((QStyleOptionViewItem *)handle)->displayAlignment;
987 }
988
QStyleOptionViewItem_setDisplayAlignment(QStyleOptionViewItemH handle,unsigned int displayAlignment)989 void QStyleOptionViewItem_setDisplayAlignment(QStyleOptionViewItemH handle, unsigned int displayAlignment)
990 {
991 ((QStyleOptionViewItem *)handle)->displayAlignment =(Qt::Alignment)displayAlignment;
992 }
993
QStyleOptionViewItem_decorationAlignment(QStyleOptionViewItemH handle)994 unsigned int QStyleOptionViewItem_decorationAlignment(QStyleOptionViewItemH handle)
995 {
996 return (unsigned int) ((QStyleOptionViewItem *)handle)->decorationAlignment;
997 }
998
QStyleOptionViewItem_setDecorationAlignment(QStyleOptionViewItemH handle,unsigned int decorationAlignment)999 void QStyleOptionViewItem_setDecorationAlignment(QStyleOptionViewItemH handle, unsigned int decorationAlignment)
1000 {
1001 ((QStyleOptionViewItem *)handle)->decorationAlignment =(Qt::Alignment)decorationAlignment;
1002 }
1003
QStyleOptionViewItem_textElideMode(QStyleOptionViewItemH handle)1004 Qt::TextElideMode QStyleOptionViewItem_textElideMode(QStyleOptionViewItemH handle)
1005 {
1006 return (Qt::TextElideMode) ((QStyleOptionViewItem *)handle)->textElideMode;
1007 }
1008
QStyleOptionViewItem_setTextElideMode(QStyleOptionViewItemH handle,Qt::TextElideMode textElideMode)1009 void QStyleOptionViewItem_setTextElideMode(QStyleOptionViewItemH handle, Qt::TextElideMode textElideMode)
1010 {
1011 ((QStyleOptionViewItem *)handle)->textElideMode = textElideMode;
1012 }
1013
QStyleOptionViewItem_decorationPosition(QStyleOptionViewItemH handle)1014 QStyleOptionViewItem::Position QStyleOptionViewItem_decorationPosition(QStyleOptionViewItemH handle)
1015 {
1016 return (QStyleOptionViewItem::Position) ((QStyleOptionViewItem *)handle)->decorationPosition;
1017 }
1018
QStyleOptionViewItem_setDecorationPosition(QStyleOptionViewItemH handle,QStyleOptionViewItem::Position decorationPosition)1019 void QStyleOptionViewItem_setDecorationPosition(QStyleOptionViewItemH handle, QStyleOptionViewItem::Position decorationPosition)
1020 {
1021 ((QStyleOptionViewItem *)handle)->decorationPosition = decorationPosition;
1022 }
1023
QStyleOptionViewItem_decorationSize(QStyleOptionViewItemH handle,PSize retval)1024 void QStyleOptionViewItem_decorationSize(QStyleOptionViewItemH handle, PSize retval)
1025 {
1026 *(QSize *)retval = ((QStyleOptionViewItem *)handle)->decorationSize;
1027 }
1028
QStyleOptionViewItem_setDecorationSize(QStyleOptionViewItemH handle,PSize decorationSize)1029 void QStyleOptionViewItem_setDecorationSize(QStyleOptionViewItemH handle, PSize decorationSize)
1030 {
1031 ((QStyleOptionViewItem *)handle)->decorationSize = *(QSize *)decorationSize;
1032 }
1033
QStyleOptionViewItem_font(QStyleOptionViewItemH handle,QFontH retval)1034 void QStyleOptionViewItem_font(QStyleOptionViewItemH handle, QFontH retval)
1035 {
1036 *(QFont *)retval = ((QStyleOptionViewItem *)handle)->font;
1037 }
1038
QStyleOptionViewItem_setFont(QStyleOptionViewItemH handle,QFontH font)1039 void QStyleOptionViewItem_setFont(QStyleOptionViewItemH handle, QFontH font)
1040 {
1041 ((QStyleOptionViewItem *)handle)->font = *(QFont *)font;
1042 }
1043
QStyleOptionViewItem_showDecorationSelected(QStyleOptionViewItemH handle)1044 bool QStyleOptionViewItem_showDecorationSelected(QStyleOptionViewItemH handle)
1045 {
1046 return (bool) ((QStyleOptionViewItem *)handle)->showDecorationSelected;
1047 }
1048
QStyleOptionViewItem_setShowDecorationSelected(QStyleOptionViewItemH handle,bool showDecorationSelected)1049 void QStyleOptionViewItem_setShowDecorationSelected(QStyleOptionViewItemH handle, bool showDecorationSelected)
1050 {
1051 ((QStyleOptionViewItem *)handle)->showDecorationSelected = showDecorationSelected;
1052 }
1053
QStyleOptionViewItem_features(QStyleOptionViewItemH handle)1054 unsigned int QStyleOptionViewItem_features(QStyleOptionViewItemH handle)
1055 {
1056 return (unsigned int) ((QStyleOptionViewItem *)handle)->features;
1057 }
1058
QStyleOptionViewItem_setFeatures(QStyleOptionViewItemH handle,unsigned int features)1059 void QStyleOptionViewItem_setFeatures(QStyleOptionViewItemH handle, unsigned int features)
1060 {
1061 ((QStyleOptionViewItem *)handle)->features =(QStyleOptionViewItem::ViewItemFeatures)features;
1062 }
1063
QStyleOptionViewItem_locale(QStyleOptionViewItemH handle,QLocaleH retval)1064 void QStyleOptionViewItem_locale(QStyleOptionViewItemH handle, QLocaleH retval)
1065 {
1066 *(QLocale *)retval = ((QStyleOptionViewItem *)handle)->locale;
1067 }
1068
QStyleOptionViewItem_setLocale(QStyleOptionViewItemH handle,QLocaleH locale)1069 void QStyleOptionViewItem_setLocale(QStyleOptionViewItemH handle, QLocaleH locale)
1070 {
1071 ((QStyleOptionViewItem *)handle)->locale = *(QLocale *)locale;
1072 }
1073
QStyleOptionViewItem_widget(QStyleOptionViewItemH handle)1074 const QWidgetH QStyleOptionViewItem_widget(QStyleOptionViewItemH handle)
1075 {
1076 return (const QWidgetH) ((QStyleOptionViewItem *)handle)->widget;
1077 }
1078
QStyleOptionViewItem_setWidget(QStyleOptionViewItemH handle,const QWidgetH widget)1079 void QStyleOptionViewItem_setWidget(QStyleOptionViewItemH handle, const QWidgetH widget)
1080 {
1081 ((QStyleOptionViewItem *)handle)->widget =(const QWidget *)widget;
1082 }
1083
QStyleOptionViewItem_index(QStyleOptionViewItemH handle,QModelIndexH retval)1084 void QStyleOptionViewItem_index(QStyleOptionViewItemH handle, QModelIndexH retval)
1085 {
1086 *(QModelIndex *)retval = ((QStyleOptionViewItem *)handle)->index;
1087 }
1088
QStyleOptionViewItem_setIndex(QStyleOptionViewItemH handle,QModelIndexH index)1089 void QStyleOptionViewItem_setIndex(QStyleOptionViewItemH handle, QModelIndexH index)
1090 {
1091 ((QStyleOptionViewItem *)handle)->index = *(QModelIndex *)index;
1092 }
1093
QStyleOptionViewItem_checkState(QStyleOptionViewItemH handle)1094 Qt::CheckState QStyleOptionViewItem_checkState(QStyleOptionViewItemH handle)
1095 {
1096 return (Qt::CheckState) ((QStyleOptionViewItem *)handle)->checkState;
1097 }
1098
QStyleOptionViewItem_setCheckState(QStyleOptionViewItemH handle,Qt::CheckState checkState)1099 void QStyleOptionViewItem_setCheckState(QStyleOptionViewItemH handle, Qt::CheckState checkState)
1100 {
1101 ((QStyleOptionViewItem *)handle)->checkState = checkState;
1102 }
1103
QStyleOptionViewItem_icon(QStyleOptionViewItemH handle,QIconH retval)1104 void QStyleOptionViewItem_icon(QStyleOptionViewItemH handle, QIconH retval)
1105 {
1106 *(QIcon *)retval = ((QStyleOptionViewItem *)handle)->icon;
1107 }
1108
QStyleOptionViewItem_setIcon(QStyleOptionViewItemH handle,QIconH icon)1109 void QStyleOptionViewItem_setIcon(QStyleOptionViewItemH handle, QIconH icon)
1110 {
1111 ((QStyleOptionViewItem *)handle)->icon = *(QIcon *)icon;
1112 }
1113
QStyleOptionViewItem_text(QStyleOptionViewItemH handle,PWideString retval)1114 void QStyleOptionViewItem_text(QStyleOptionViewItemH handle, PWideString retval)
1115 {
1116 copyQStringToPWideString(((QStyleOptionViewItem *)handle)->text,retval);
1117 }
1118
QStyleOptionViewItem_setText(QStyleOptionViewItemH handle,PWideString text)1119 void QStyleOptionViewItem_setText(QStyleOptionViewItemH handle, PWideString text)
1120 {
1121 copyPWideStringToQString(text,((QStyleOptionViewItem *)handle)->text);
1122 }
1123
QStyleOptionViewItem_viewItemPosition(QStyleOptionViewItemH handle)1124 QStyleOptionViewItem::ViewItemPosition QStyleOptionViewItem_viewItemPosition(QStyleOptionViewItemH handle)
1125 {
1126 return (QStyleOptionViewItem::ViewItemPosition) ((QStyleOptionViewItem *)handle)->viewItemPosition;
1127 }
1128
QStyleOptionViewItem_setViewItemPosition(QStyleOptionViewItemH handle,QStyleOptionViewItem::ViewItemPosition viewItemPosition)1129 void QStyleOptionViewItem_setViewItemPosition(QStyleOptionViewItemH handle, QStyleOptionViewItem::ViewItemPosition viewItemPosition)
1130 {
1131 ((QStyleOptionViewItem *)handle)->viewItemPosition = viewItemPosition;
1132 }
1133
QStyleOptionViewItem_backgroundBrush(QStyleOptionViewItemH handle,QBrushH retval)1134 void QStyleOptionViewItem_backgroundBrush(QStyleOptionViewItemH handle, QBrushH retval)
1135 {
1136 *(QBrush *)retval = ((QStyleOptionViewItem *)handle)->backgroundBrush;
1137 }
1138
QStyleOptionViewItem_setBackgroundBrush(QStyleOptionViewItemH handle,QBrushH backgroundBrush)1139 void QStyleOptionViewItem_setBackgroundBrush(QStyleOptionViewItemH handle, QBrushH backgroundBrush)
1140 {
1141 ((QStyleOptionViewItem *)handle)->backgroundBrush = *(QBrush *)backgroundBrush;
1142 }
1143
QStyleOptionViewItem_Create()1144 QStyleOptionViewItemH QStyleOptionViewItem_Create()
1145 {
1146 return (QStyleOptionViewItemH) new QStyleOptionViewItem();
1147 }
1148
QStyleOptionViewItem_Destroy(QStyleOptionViewItemH handle)1149 void QStyleOptionViewItem_Destroy(QStyleOptionViewItemH handle)
1150 {
1151 delete (QStyleOptionViewItem *)handle;
1152 }
1153
QStyleOptionViewItem_Create2(const QStyleOptionViewItemH other)1154 QStyleOptionViewItemH QStyleOptionViewItem_Create2(const QStyleOptionViewItemH other)
1155 {
1156 return (QStyleOptionViewItemH) new QStyleOptionViewItem(*(const QStyleOptionViewItem*)other);
1157 }
1158
QStyleOptionToolBox_text(QStyleOptionToolBoxH handle,PWideString retval)1159 void QStyleOptionToolBox_text(QStyleOptionToolBoxH handle, PWideString retval)
1160 {
1161 copyQStringToPWideString(((QStyleOptionToolBox *)handle)->text,retval);
1162 }
1163
QStyleOptionToolBox_setText(QStyleOptionToolBoxH handle,PWideString text)1164 void QStyleOptionToolBox_setText(QStyleOptionToolBoxH handle, PWideString text)
1165 {
1166 copyPWideStringToQString(text,((QStyleOptionToolBox *)handle)->text);
1167 }
1168
QStyleOptionToolBox_icon(QStyleOptionToolBoxH handle,QIconH retval)1169 void QStyleOptionToolBox_icon(QStyleOptionToolBoxH handle, QIconH retval)
1170 {
1171 *(QIcon *)retval = ((QStyleOptionToolBox *)handle)->icon;
1172 }
1173
QStyleOptionToolBox_setIcon(QStyleOptionToolBoxH handle,QIconH icon)1174 void QStyleOptionToolBox_setIcon(QStyleOptionToolBoxH handle, QIconH icon)
1175 {
1176 ((QStyleOptionToolBox *)handle)->icon = *(QIcon *)icon;
1177 }
1178
QStyleOptionToolBox_position(QStyleOptionToolBoxH handle)1179 QStyleOptionToolBox::TabPosition QStyleOptionToolBox_position(QStyleOptionToolBoxH handle)
1180 {
1181 return (QStyleOptionToolBox::TabPosition) ((QStyleOptionToolBox *)handle)->position;
1182 }
1183
QStyleOptionToolBox_setPosition(QStyleOptionToolBoxH handle,QStyleOptionToolBox::TabPosition position)1184 void QStyleOptionToolBox_setPosition(QStyleOptionToolBoxH handle, QStyleOptionToolBox::TabPosition position)
1185 {
1186 ((QStyleOptionToolBox *)handle)->position = position;
1187 }
1188
QStyleOptionToolBox_selectedPosition(QStyleOptionToolBoxH handle)1189 QStyleOptionToolBox::SelectedPosition QStyleOptionToolBox_selectedPosition(QStyleOptionToolBoxH handle)
1190 {
1191 return (QStyleOptionToolBox::SelectedPosition) ((QStyleOptionToolBox *)handle)->selectedPosition;
1192 }
1193
QStyleOptionToolBox_setSelectedPosition(QStyleOptionToolBoxH handle,QStyleOptionToolBox::SelectedPosition selectedPosition)1194 void QStyleOptionToolBox_setSelectedPosition(QStyleOptionToolBoxH handle, QStyleOptionToolBox::SelectedPosition selectedPosition)
1195 {
1196 ((QStyleOptionToolBox *)handle)->selectedPosition = selectedPosition;
1197 }
1198
QStyleOptionToolBox_Create()1199 QStyleOptionToolBoxH QStyleOptionToolBox_Create()
1200 {
1201 return (QStyleOptionToolBoxH) new QStyleOptionToolBox();
1202 }
1203
QStyleOptionToolBox_Destroy(QStyleOptionToolBoxH handle)1204 void QStyleOptionToolBox_Destroy(QStyleOptionToolBoxH handle)
1205 {
1206 delete (QStyleOptionToolBox *)handle;
1207 }
1208
QStyleOptionToolBox_Create2(const QStyleOptionToolBoxH other)1209 QStyleOptionToolBoxH QStyleOptionToolBox_Create2(const QStyleOptionToolBoxH other)
1210 {
1211 return (QStyleOptionToolBoxH) new QStyleOptionToolBox(*(const QStyleOptionToolBox*)other);
1212 }
1213
QStyleOptionRubberBand_shape(QStyleOptionRubberBandH handle)1214 QRubberBand::Shape QStyleOptionRubberBand_shape(QStyleOptionRubberBandH handle)
1215 {
1216 return (QRubberBand::Shape) ((QStyleOptionRubberBand *)handle)->shape;
1217 }
1218
QStyleOptionRubberBand_setShape(QStyleOptionRubberBandH handle,QRubberBand::Shape shape)1219 void QStyleOptionRubberBand_setShape(QStyleOptionRubberBandH handle, QRubberBand::Shape shape)
1220 {
1221 ((QStyleOptionRubberBand *)handle)->shape = shape;
1222 }
1223
QStyleOptionRubberBand_opaque(QStyleOptionRubberBandH handle)1224 bool QStyleOptionRubberBand_opaque(QStyleOptionRubberBandH handle)
1225 {
1226 return (bool) ((QStyleOptionRubberBand *)handle)->opaque;
1227 }
1228
QStyleOptionRubberBand_setOpaque(QStyleOptionRubberBandH handle,bool opaque)1229 void QStyleOptionRubberBand_setOpaque(QStyleOptionRubberBandH handle, bool opaque)
1230 {
1231 ((QStyleOptionRubberBand *)handle)->opaque = opaque;
1232 }
1233
QStyleOptionRubberBand_Create()1234 QStyleOptionRubberBandH QStyleOptionRubberBand_Create()
1235 {
1236 return (QStyleOptionRubberBandH) new QStyleOptionRubberBand();
1237 }
1238
QStyleOptionRubberBand_Destroy(QStyleOptionRubberBandH handle)1239 void QStyleOptionRubberBand_Destroy(QStyleOptionRubberBandH handle)
1240 {
1241 delete (QStyleOptionRubberBand *)handle;
1242 }
1243
QStyleOptionRubberBand_Create2(const QStyleOptionRubberBandH other)1244 QStyleOptionRubberBandH QStyleOptionRubberBand_Create2(const QStyleOptionRubberBandH other)
1245 {
1246 return (QStyleOptionRubberBandH) new QStyleOptionRubberBand(*(const QStyleOptionRubberBand*)other);
1247 }
1248
QStyleOptionComplex_subControls(QStyleOptionComplexH handle)1249 unsigned int QStyleOptionComplex_subControls(QStyleOptionComplexH handle)
1250 {
1251 return (unsigned int) ((QStyleOptionComplex *)handle)->subControls;
1252 }
1253
QStyleOptionComplex_setSubControls(QStyleOptionComplexH handle,unsigned int subControls)1254 void QStyleOptionComplex_setSubControls(QStyleOptionComplexH handle, unsigned int subControls)
1255 {
1256 ((QStyleOptionComplex *)handle)->subControls =(QStyle::SubControls)subControls;
1257 }
1258
QStyleOptionComplex_activeSubControls(QStyleOptionComplexH handle)1259 unsigned int QStyleOptionComplex_activeSubControls(QStyleOptionComplexH handle)
1260 {
1261 return (unsigned int) ((QStyleOptionComplex *)handle)->activeSubControls;
1262 }
1263
QStyleOptionComplex_setActiveSubControls(QStyleOptionComplexH handle,unsigned int activeSubControls)1264 void QStyleOptionComplex_setActiveSubControls(QStyleOptionComplexH handle, unsigned int activeSubControls)
1265 {
1266 ((QStyleOptionComplex *)handle)->activeSubControls =(QStyle::SubControls)activeSubControls;
1267 }
1268
QStyleOptionComplex_Create(int version,int type)1269 QStyleOptionComplexH QStyleOptionComplex_Create(int version, int type)
1270 {
1271 return (QStyleOptionComplexH) new QStyleOptionComplex(version, type);
1272 }
1273
QStyleOptionComplex_Destroy(QStyleOptionComplexH handle)1274 void QStyleOptionComplex_Destroy(QStyleOptionComplexH handle)
1275 {
1276 delete (QStyleOptionComplex *)handle;
1277 }
1278
QStyleOptionComplex_Create2(const QStyleOptionComplexH other)1279 QStyleOptionComplexH QStyleOptionComplex_Create2(const QStyleOptionComplexH other)
1280 {
1281 return (QStyleOptionComplexH) new QStyleOptionComplex(*(const QStyleOptionComplex*)other);
1282 }
1283
QStyleOptionSlider_orientation(QStyleOptionSliderH handle)1284 Qt::Orientation QStyleOptionSlider_orientation(QStyleOptionSliderH handle)
1285 {
1286 return (Qt::Orientation) ((QStyleOptionSlider *)handle)->orientation;
1287 }
1288
QStyleOptionSlider_setOrientation(QStyleOptionSliderH handle,Qt::Orientation orientation)1289 void QStyleOptionSlider_setOrientation(QStyleOptionSliderH handle, Qt::Orientation orientation)
1290 {
1291 ((QStyleOptionSlider *)handle)->orientation = orientation;
1292 }
1293
QStyleOptionSlider_minimum(QStyleOptionSliderH handle)1294 int QStyleOptionSlider_minimum(QStyleOptionSliderH handle)
1295 {
1296 return (int) ((QStyleOptionSlider *)handle)->minimum;
1297 }
1298
QStyleOptionSlider_setMinimum(QStyleOptionSliderH handle,int minimum)1299 void QStyleOptionSlider_setMinimum(QStyleOptionSliderH handle, int minimum)
1300 {
1301 ((QStyleOptionSlider *)handle)->minimum = minimum;
1302 }
1303
QStyleOptionSlider_maximum(QStyleOptionSliderH handle)1304 int QStyleOptionSlider_maximum(QStyleOptionSliderH handle)
1305 {
1306 return (int) ((QStyleOptionSlider *)handle)->maximum;
1307 }
1308
QStyleOptionSlider_setMaximum(QStyleOptionSliderH handle,int maximum)1309 void QStyleOptionSlider_setMaximum(QStyleOptionSliderH handle, int maximum)
1310 {
1311 ((QStyleOptionSlider *)handle)->maximum = maximum;
1312 }
1313
QStyleOptionSlider_tickPosition(QStyleOptionSliderH handle)1314 QSlider::TickPosition QStyleOptionSlider_tickPosition(QStyleOptionSliderH handle)
1315 {
1316 return (QSlider::TickPosition) ((QStyleOptionSlider *)handle)->tickPosition;
1317 }
1318
QStyleOptionSlider_setTickPosition(QStyleOptionSliderH handle,QSlider::TickPosition tickPosition)1319 void QStyleOptionSlider_setTickPosition(QStyleOptionSliderH handle, QSlider::TickPosition tickPosition)
1320 {
1321 ((QStyleOptionSlider *)handle)->tickPosition = tickPosition;
1322 }
1323
QStyleOptionSlider_tickInterval(QStyleOptionSliderH handle)1324 int QStyleOptionSlider_tickInterval(QStyleOptionSliderH handle)
1325 {
1326 return (int) ((QStyleOptionSlider *)handle)->tickInterval;
1327 }
1328
QStyleOptionSlider_setTickInterval(QStyleOptionSliderH handle,int tickInterval)1329 void QStyleOptionSlider_setTickInterval(QStyleOptionSliderH handle, int tickInterval)
1330 {
1331 ((QStyleOptionSlider *)handle)->tickInterval = tickInterval;
1332 }
1333
QStyleOptionSlider_upsideDown(QStyleOptionSliderH handle)1334 bool QStyleOptionSlider_upsideDown(QStyleOptionSliderH handle)
1335 {
1336 return (bool) ((QStyleOptionSlider *)handle)->upsideDown;
1337 }
1338
QStyleOptionSlider_setUpsideDown(QStyleOptionSliderH handle,bool upsideDown)1339 void QStyleOptionSlider_setUpsideDown(QStyleOptionSliderH handle, bool upsideDown)
1340 {
1341 ((QStyleOptionSlider *)handle)->upsideDown = upsideDown;
1342 }
1343
QStyleOptionSlider_sliderPosition(QStyleOptionSliderH handle)1344 int QStyleOptionSlider_sliderPosition(QStyleOptionSliderH handle)
1345 {
1346 return (int) ((QStyleOptionSlider *)handle)->sliderPosition;
1347 }
1348
QStyleOptionSlider_setSliderPosition(QStyleOptionSliderH handle,int sliderPosition)1349 void QStyleOptionSlider_setSliderPosition(QStyleOptionSliderH handle, int sliderPosition)
1350 {
1351 ((QStyleOptionSlider *)handle)->sliderPosition = sliderPosition;
1352 }
1353
QStyleOptionSlider_sliderValue(QStyleOptionSliderH handle)1354 int QStyleOptionSlider_sliderValue(QStyleOptionSliderH handle)
1355 {
1356 return (int) ((QStyleOptionSlider *)handle)->sliderValue;
1357 }
1358
QStyleOptionSlider_setSliderValue(QStyleOptionSliderH handle,int sliderValue)1359 void QStyleOptionSlider_setSliderValue(QStyleOptionSliderH handle, int sliderValue)
1360 {
1361 ((QStyleOptionSlider *)handle)->sliderValue = sliderValue;
1362 }
1363
QStyleOptionSlider_singleStep(QStyleOptionSliderH handle)1364 int QStyleOptionSlider_singleStep(QStyleOptionSliderH handle)
1365 {
1366 return (int) ((QStyleOptionSlider *)handle)->singleStep;
1367 }
1368
QStyleOptionSlider_setSingleStep(QStyleOptionSliderH handle,int singleStep)1369 void QStyleOptionSlider_setSingleStep(QStyleOptionSliderH handle, int singleStep)
1370 {
1371 ((QStyleOptionSlider *)handle)->singleStep = singleStep;
1372 }
1373
QStyleOptionSlider_pageStep(QStyleOptionSliderH handle)1374 int QStyleOptionSlider_pageStep(QStyleOptionSliderH handle)
1375 {
1376 return (int) ((QStyleOptionSlider *)handle)->pageStep;
1377 }
1378
QStyleOptionSlider_setPageStep(QStyleOptionSliderH handle,int pageStep)1379 void QStyleOptionSlider_setPageStep(QStyleOptionSliderH handle, int pageStep)
1380 {
1381 ((QStyleOptionSlider *)handle)->pageStep = pageStep;
1382 }
1383
QStyleOptionSlider_notchTarget(QStyleOptionSliderH handle)1384 qreal QStyleOptionSlider_notchTarget(QStyleOptionSliderH handle)
1385 {
1386 return (qreal) ((QStyleOptionSlider *)handle)->notchTarget;
1387 }
1388
QStyleOptionSlider_setNotchTarget(QStyleOptionSliderH handle,qreal notchTarget)1389 void QStyleOptionSlider_setNotchTarget(QStyleOptionSliderH handle, qreal notchTarget)
1390 {
1391 ((QStyleOptionSlider *)handle)->notchTarget = notchTarget;
1392 }
1393
QStyleOptionSlider_dialWrapping(QStyleOptionSliderH handle)1394 bool QStyleOptionSlider_dialWrapping(QStyleOptionSliderH handle)
1395 {
1396 return (bool) ((QStyleOptionSlider *)handle)->dialWrapping;
1397 }
1398
QStyleOptionSlider_setDialWrapping(QStyleOptionSliderH handle,bool dialWrapping)1399 void QStyleOptionSlider_setDialWrapping(QStyleOptionSliderH handle, bool dialWrapping)
1400 {
1401 ((QStyleOptionSlider *)handle)->dialWrapping = dialWrapping;
1402 }
1403
QStyleOptionSlider_Create()1404 QStyleOptionSliderH QStyleOptionSlider_Create()
1405 {
1406 return (QStyleOptionSliderH) new QStyleOptionSlider();
1407 }
1408
QStyleOptionSlider_Destroy(QStyleOptionSliderH handle)1409 void QStyleOptionSlider_Destroy(QStyleOptionSliderH handle)
1410 {
1411 delete (QStyleOptionSlider *)handle;
1412 }
1413
QStyleOptionSlider_Create2(const QStyleOptionSliderH other)1414 QStyleOptionSliderH QStyleOptionSlider_Create2(const QStyleOptionSliderH other)
1415 {
1416 return (QStyleOptionSliderH) new QStyleOptionSlider(*(const QStyleOptionSlider*)other);
1417 }
1418
QStyleOptionSpinBox_buttonSymbols(QStyleOptionSpinBoxH handle)1419 QAbstractSpinBox::ButtonSymbols QStyleOptionSpinBox_buttonSymbols(QStyleOptionSpinBoxH handle)
1420 {
1421 return (QAbstractSpinBox::ButtonSymbols) ((QStyleOptionSpinBox *)handle)->buttonSymbols;
1422 }
1423
QStyleOptionSpinBox_setButtonSymbols(QStyleOptionSpinBoxH handle,QAbstractSpinBox::ButtonSymbols buttonSymbols)1424 void QStyleOptionSpinBox_setButtonSymbols(QStyleOptionSpinBoxH handle, QAbstractSpinBox::ButtonSymbols buttonSymbols)
1425 {
1426 ((QStyleOptionSpinBox *)handle)->buttonSymbols = buttonSymbols;
1427 }
1428
QStyleOptionSpinBox_stepEnabled(QStyleOptionSpinBoxH handle)1429 unsigned int QStyleOptionSpinBox_stepEnabled(QStyleOptionSpinBoxH handle)
1430 {
1431 return (unsigned int) ((QStyleOptionSpinBox *)handle)->stepEnabled;
1432 }
1433
QStyleOptionSpinBox_setStepEnabled(QStyleOptionSpinBoxH handle,unsigned int stepEnabled)1434 void QStyleOptionSpinBox_setStepEnabled(QStyleOptionSpinBoxH handle, unsigned int stepEnabled)
1435 {
1436 ((QStyleOptionSpinBox *)handle)->stepEnabled =(QAbstractSpinBox::StepEnabled)stepEnabled;
1437 }
1438
QStyleOptionSpinBox_frame(QStyleOptionSpinBoxH handle)1439 bool QStyleOptionSpinBox_frame(QStyleOptionSpinBoxH handle)
1440 {
1441 return (bool) ((QStyleOptionSpinBox *)handle)->frame;
1442 }
1443
QStyleOptionSpinBox_setFrame(QStyleOptionSpinBoxH handle,bool frame)1444 void QStyleOptionSpinBox_setFrame(QStyleOptionSpinBoxH handle, bool frame)
1445 {
1446 ((QStyleOptionSpinBox *)handle)->frame = frame;
1447 }
1448
QStyleOptionSpinBox_Create()1449 QStyleOptionSpinBoxH QStyleOptionSpinBox_Create()
1450 {
1451 return (QStyleOptionSpinBoxH) new QStyleOptionSpinBox();
1452 }
1453
QStyleOptionSpinBox_Destroy(QStyleOptionSpinBoxH handle)1454 void QStyleOptionSpinBox_Destroy(QStyleOptionSpinBoxH handle)
1455 {
1456 delete (QStyleOptionSpinBox *)handle;
1457 }
1458
QStyleOptionSpinBox_Create2(const QStyleOptionSpinBoxH other)1459 QStyleOptionSpinBoxH QStyleOptionSpinBox_Create2(const QStyleOptionSpinBoxH other)
1460 {
1461 return (QStyleOptionSpinBoxH) new QStyleOptionSpinBox(*(const QStyleOptionSpinBox*)other);
1462 }
1463
QStyleOptionToolButton_features(QStyleOptionToolButtonH handle)1464 unsigned int QStyleOptionToolButton_features(QStyleOptionToolButtonH handle)
1465 {
1466 return (unsigned int) ((QStyleOptionToolButton *)handle)->features;
1467 }
1468
QStyleOptionToolButton_setFeatures(QStyleOptionToolButtonH handle,unsigned int features)1469 void QStyleOptionToolButton_setFeatures(QStyleOptionToolButtonH handle, unsigned int features)
1470 {
1471 ((QStyleOptionToolButton *)handle)->features =(QStyleOptionToolButton::ToolButtonFeatures)features;
1472 }
1473
QStyleOptionToolButton_icon(QStyleOptionToolButtonH handle,QIconH retval)1474 void QStyleOptionToolButton_icon(QStyleOptionToolButtonH handle, QIconH retval)
1475 {
1476 *(QIcon *)retval = ((QStyleOptionToolButton *)handle)->icon;
1477 }
1478
QStyleOptionToolButton_setIcon(QStyleOptionToolButtonH handle,QIconH icon)1479 void QStyleOptionToolButton_setIcon(QStyleOptionToolButtonH handle, QIconH icon)
1480 {
1481 ((QStyleOptionToolButton *)handle)->icon = *(QIcon *)icon;
1482 }
1483
QStyleOptionToolButton_iconSize(QStyleOptionToolButtonH handle,PSize retval)1484 void QStyleOptionToolButton_iconSize(QStyleOptionToolButtonH handle, PSize retval)
1485 {
1486 *(QSize *)retval = ((QStyleOptionToolButton *)handle)->iconSize;
1487 }
1488
QStyleOptionToolButton_setIconSize(QStyleOptionToolButtonH handle,PSize iconSize)1489 void QStyleOptionToolButton_setIconSize(QStyleOptionToolButtonH handle, PSize iconSize)
1490 {
1491 ((QStyleOptionToolButton *)handle)->iconSize = *(QSize *)iconSize;
1492 }
1493
QStyleOptionToolButton_text(QStyleOptionToolButtonH handle,PWideString retval)1494 void QStyleOptionToolButton_text(QStyleOptionToolButtonH handle, PWideString retval)
1495 {
1496 copyQStringToPWideString(((QStyleOptionToolButton *)handle)->text,retval);
1497 }
1498
QStyleOptionToolButton_setText(QStyleOptionToolButtonH handle,PWideString text)1499 void QStyleOptionToolButton_setText(QStyleOptionToolButtonH handle, PWideString text)
1500 {
1501 copyPWideStringToQString(text,((QStyleOptionToolButton *)handle)->text);
1502 }
1503
QStyleOptionToolButton_arrowType(QStyleOptionToolButtonH handle)1504 Qt::ArrowType QStyleOptionToolButton_arrowType(QStyleOptionToolButtonH handle)
1505 {
1506 return (Qt::ArrowType) ((QStyleOptionToolButton *)handle)->arrowType;
1507 }
1508
QStyleOptionToolButton_setArrowType(QStyleOptionToolButtonH handle,Qt::ArrowType arrowType)1509 void QStyleOptionToolButton_setArrowType(QStyleOptionToolButtonH handle, Qt::ArrowType arrowType)
1510 {
1511 ((QStyleOptionToolButton *)handle)->arrowType = arrowType;
1512 }
1513
QStyleOptionToolButton_toolButtonStyle(QStyleOptionToolButtonH handle)1514 Qt::ToolButtonStyle QStyleOptionToolButton_toolButtonStyle(QStyleOptionToolButtonH handle)
1515 {
1516 return (Qt::ToolButtonStyle) ((QStyleOptionToolButton *)handle)->toolButtonStyle;
1517 }
1518
QStyleOptionToolButton_setToolButtonStyle(QStyleOptionToolButtonH handle,Qt::ToolButtonStyle toolButtonStyle)1519 void QStyleOptionToolButton_setToolButtonStyle(QStyleOptionToolButtonH handle, Qt::ToolButtonStyle toolButtonStyle)
1520 {
1521 ((QStyleOptionToolButton *)handle)->toolButtonStyle = toolButtonStyle;
1522 }
1523
QStyleOptionToolButton_pos(QStyleOptionToolButtonH handle,PQtPoint retval)1524 void QStyleOptionToolButton_pos(QStyleOptionToolButtonH handle, PQtPoint retval)
1525 {
1526 *(QPoint *)retval = ((QStyleOptionToolButton *)handle)->pos;
1527 }
1528
QStyleOptionToolButton_setPos(QStyleOptionToolButtonH handle,PQtPoint pos)1529 void QStyleOptionToolButton_setPos(QStyleOptionToolButtonH handle, PQtPoint pos)
1530 {
1531 ((QStyleOptionToolButton *)handle)->pos = *(QPoint *)pos;
1532 }
1533
QStyleOptionToolButton_font(QStyleOptionToolButtonH handle,QFontH retval)1534 void QStyleOptionToolButton_font(QStyleOptionToolButtonH handle, QFontH retval)
1535 {
1536 *(QFont *)retval = ((QStyleOptionToolButton *)handle)->font;
1537 }
1538
QStyleOptionToolButton_setFont(QStyleOptionToolButtonH handle,QFontH font)1539 void QStyleOptionToolButton_setFont(QStyleOptionToolButtonH handle, QFontH font)
1540 {
1541 ((QStyleOptionToolButton *)handle)->font = *(QFont *)font;
1542 }
1543
QStyleOptionToolButton_Create()1544 QStyleOptionToolButtonH QStyleOptionToolButton_Create()
1545 {
1546 return (QStyleOptionToolButtonH) new QStyleOptionToolButton();
1547 }
1548
QStyleOptionToolButton_Destroy(QStyleOptionToolButtonH handle)1549 void QStyleOptionToolButton_Destroy(QStyleOptionToolButtonH handle)
1550 {
1551 delete (QStyleOptionToolButton *)handle;
1552 }
1553
QStyleOptionToolButton_Create2(const QStyleOptionToolButtonH other)1554 QStyleOptionToolButtonH QStyleOptionToolButton_Create2(const QStyleOptionToolButtonH other)
1555 {
1556 return (QStyleOptionToolButtonH) new QStyleOptionToolButton(*(const QStyleOptionToolButton*)other);
1557 }
1558
QStyleOptionComboBox_editable(QStyleOptionComboBoxH handle)1559 bool QStyleOptionComboBox_editable(QStyleOptionComboBoxH handle)
1560 {
1561 return (bool) ((QStyleOptionComboBox *)handle)->editable;
1562 }
1563
QStyleOptionComboBox_setEditable(QStyleOptionComboBoxH handle,bool editable)1564 void QStyleOptionComboBox_setEditable(QStyleOptionComboBoxH handle, bool editable)
1565 {
1566 ((QStyleOptionComboBox *)handle)->editable = editable;
1567 }
1568
QStyleOptionComboBox_popupRect(QStyleOptionComboBoxH handle,PRect retval)1569 void QStyleOptionComboBox_popupRect(QStyleOptionComboBoxH handle, PRect retval)
1570 {
1571 copyQRectToPRect(((QStyleOptionComboBox *)handle)->popupRect,retval);
1572 }
1573
QStyleOptionComboBox_setPopupRect(QStyleOptionComboBoxH handle,PRect popupRect)1574 void QStyleOptionComboBox_setPopupRect(QStyleOptionComboBoxH handle, PRect popupRect)
1575 {
1576 copyPRectToQRect(popupRect,((QStyleOptionComboBox *)handle)->popupRect);
1577 }
1578
QStyleOptionComboBox_frame(QStyleOptionComboBoxH handle)1579 bool QStyleOptionComboBox_frame(QStyleOptionComboBoxH handle)
1580 {
1581 return (bool) ((QStyleOptionComboBox *)handle)->frame;
1582 }
1583
QStyleOptionComboBox_setFrame(QStyleOptionComboBoxH handle,bool frame)1584 void QStyleOptionComboBox_setFrame(QStyleOptionComboBoxH handle, bool frame)
1585 {
1586 ((QStyleOptionComboBox *)handle)->frame = frame;
1587 }
1588
QStyleOptionComboBox_currentText(QStyleOptionComboBoxH handle,PWideString retval)1589 void QStyleOptionComboBox_currentText(QStyleOptionComboBoxH handle, PWideString retval)
1590 {
1591 copyQStringToPWideString(((QStyleOptionComboBox *)handle)->currentText,retval);
1592 }
1593
QStyleOptionComboBox_setCurrentText(QStyleOptionComboBoxH handle,PWideString currentText)1594 void QStyleOptionComboBox_setCurrentText(QStyleOptionComboBoxH handle, PWideString currentText)
1595 {
1596 copyPWideStringToQString(currentText,((QStyleOptionComboBox *)handle)->currentText);
1597 }
1598
QStyleOptionComboBox_currentIcon(QStyleOptionComboBoxH handle,QIconH retval)1599 void QStyleOptionComboBox_currentIcon(QStyleOptionComboBoxH handle, QIconH retval)
1600 {
1601 *(QIcon *)retval = ((QStyleOptionComboBox *)handle)->currentIcon;
1602 }
1603
QStyleOptionComboBox_setCurrentIcon(QStyleOptionComboBoxH handle,QIconH currentIcon)1604 void QStyleOptionComboBox_setCurrentIcon(QStyleOptionComboBoxH handle, QIconH currentIcon)
1605 {
1606 ((QStyleOptionComboBox *)handle)->currentIcon = *(QIcon *)currentIcon;
1607 }
1608
QStyleOptionComboBox_iconSize(QStyleOptionComboBoxH handle,PSize retval)1609 void QStyleOptionComboBox_iconSize(QStyleOptionComboBoxH handle, PSize retval)
1610 {
1611 *(QSize *)retval = ((QStyleOptionComboBox *)handle)->iconSize;
1612 }
1613
QStyleOptionComboBox_setIconSize(QStyleOptionComboBoxH handle,PSize iconSize)1614 void QStyleOptionComboBox_setIconSize(QStyleOptionComboBoxH handle, PSize iconSize)
1615 {
1616 ((QStyleOptionComboBox *)handle)->iconSize = *(QSize *)iconSize;
1617 }
1618
QStyleOptionComboBox_Create()1619 QStyleOptionComboBoxH QStyleOptionComboBox_Create()
1620 {
1621 return (QStyleOptionComboBoxH) new QStyleOptionComboBox();
1622 }
1623
QStyleOptionComboBox_Destroy(QStyleOptionComboBoxH handle)1624 void QStyleOptionComboBox_Destroy(QStyleOptionComboBoxH handle)
1625 {
1626 delete (QStyleOptionComboBox *)handle;
1627 }
1628
QStyleOptionComboBox_Create2(const QStyleOptionComboBoxH other)1629 QStyleOptionComboBoxH QStyleOptionComboBox_Create2(const QStyleOptionComboBoxH other)
1630 {
1631 return (QStyleOptionComboBoxH) new QStyleOptionComboBox(*(const QStyleOptionComboBox*)other);
1632 }
1633
QStyleOptionTitleBar_text(QStyleOptionTitleBarH handle,PWideString retval)1634 void QStyleOptionTitleBar_text(QStyleOptionTitleBarH handle, PWideString retval)
1635 {
1636 copyQStringToPWideString(((QStyleOptionTitleBar *)handle)->text,retval);
1637 }
1638
QStyleOptionTitleBar_setText(QStyleOptionTitleBarH handle,PWideString text)1639 void QStyleOptionTitleBar_setText(QStyleOptionTitleBarH handle, PWideString text)
1640 {
1641 copyPWideStringToQString(text,((QStyleOptionTitleBar *)handle)->text);
1642 }
1643
QStyleOptionTitleBar_icon(QStyleOptionTitleBarH handle,QIconH retval)1644 void QStyleOptionTitleBar_icon(QStyleOptionTitleBarH handle, QIconH retval)
1645 {
1646 *(QIcon *)retval = ((QStyleOptionTitleBar *)handle)->icon;
1647 }
1648
QStyleOptionTitleBar_setIcon(QStyleOptionTitleBarH handle,QIconH icon)1649 void QStyleOptionTitleBar_setIcon(QStyleOptionTitleBarH handle, QIconH icon)
1650 {
1651 ((QStyleOptionTitleBar *)handle)->icon = *(QIcon *)icon;
1652 }
1653
QStyleOptionTitleBar_titleBarState(QStyleOptionTitleBarH handle)1654 int QStyleOptionTitleBar_titleBarState(QStyleOptionTitleBarH handle)
1655 {
1656 return (int) ((QStyleOptionTitleBar *)handle)->titleBarState;
1657 }
1658
QStyleOptionTitleBar_setTitleBarState(QStyleOptionTitleBarH handle,int titleBarState)1659 void QStyleOptionTitleBar_setTitleBarState(QStyleOptionTitleBarH handle, int titleBarState)
1660 {
1661 ((QStyleOptionTitleBar *)handle)->titleBarState = titleBarState;
1662 }
1663
QStyleOptionTitleBar_titleBarFlags(QStyleOptionTitleBarH handle)1664 unsigned int QStyleOptionTitleBar_titleBarFlags(QStyleOptionTitleBarH handle)
1665 {
1666 return (unsigned int) ((QStyleOptionTitleBar *)handle)->titleBarFlags;
1667 }
1668
QStyleOptionTitleBar_setTitleBarFlags(QStyleOptionTitleBarH handle,unsigned int titleBarFlags)1669 void QStyleOptionTitleBar_setTitleBarFlags(QStyleOptionTitleBarH handle, unsigned int titleBarFlags)
1670 {
1671 ((QStyleOptionTitleBar *)handle)->titleBarFlags =(Qt::WindowFlags)titleBarFlags;
1672 }
1673
QStyleOptionTitleBar_Create()1674 QStyleOptionTitleBarH QStyleOptionTitleBar_Create()
1675 {
1676 return (QStyleOptionTitleBarH) new QStyleOptionTitleBar();
1677 }
1678
QStyleOptionTitleBar_Destroy(QStyleOptionTitleBarH handle)1679 void QStyleOptionTitleBar_Destroy(QStyleOptionTitleBarH handle)
1680 {
1681 delete (QStyleOptionTitleBar *)handle;
1682 }
1683
QStyleOptionTitleBar_Create2(const QStyleOptionTitleBarH other)1684 QStyleOptionTitleBarH QStyleOptionTitleBar_Create2(const QStyleOptionTitleBarH other)
1685 {
1686 return (QStyleOptionTitleBarH) new QStyleOptionTitleBar(*(const QStyleOptionTitleBar*)other);
1687 }
1688
QStyleOptionGroupBox_features(QStyleOptionGroupBoxH handle)1689 unsigned int QStyleOptionGroupBox_features(QStyleOptionGroupBoxH handle)
1690 {
1691 return (unsigned int) ((QStyleOptionGroupBox *)handle)->features;
1692 }
1693
QStyleOptionGroupBox_setFeatures(QStyleOptionGroupBoxH handle,unsigned int features)1694 void QStyleOptionGroupBox_setFeatures(QStyleOptionGroupBoxH handle, unsigned int features)
1695 {
1696 ((QStyleOptionGroupBox *)handle)->features =(QStyleOptionFrame::FrameFeatures)features;
1697 }
1698
QStyleOptionGroupBox_text(QStyleOptionGroupBoxH handle,PWideString retval)1699 void QStyleOptionGroupBox_text(QStyleOptionGroupBoxH handle, PWideString retval)
1700 {
1701 copyQStringToPWideString(((QStyleOptionGroupBox *)handle)->text,retval);
1702 }
1703
QStyleOptionGroupBox_setText(QStyleOptionGroupBoxH handle,PWideString text)1704 void QStyleOptionGroupBox_setText(QStyleOptionGroupBoxH handle, PWideString text)
1705 {
1706 copyPWideStringToQString(text,((QStyleOptionGroupBox *)handle)->text);
1707 }
1708
QStyleOptionGroupBox_textAlignment(QStyleOptionGroupBoxH handle)1709 unsigned int QStyleOptionGroupBox_textAlignment(QStyleOptionGroupBoxH handle)
1710 {
1711 return (unsigned int) ((QStyleOptionGroupBox *)handle)->textAlignment;
1712 }
1713
QStyleOptionGroupBox_setTextAlignment(QStyleOptionGroupBoxH handle,unsigned int textAlignment)1714 void QStyleOptionGroupBox_setTextAlignment(QStyleOptionGroupBoxH handle, unsigned int textAlignment)
1715 {
1716 ((QStyleOptionGroupBox *)handle)->textAlignment =(Qt::Alignment)textAlignment;
1717 }
1718
QStyleOptionGroupBox_textColor(QStyleOptionGroupBoxH handle,PQColor retval)1719 void QStyleOptionGroupBox_textColor(QStyleOptionGroupBoxH handle, PQColor retval)
1720 {
1721 *(QColor *)retval = ((QStyleOptionGroupBox *)handle)->textColor;
1722 }
1723
QStyleOptionGroupBox_setTextColor(QStyleOptionGroupBoxH handle,PQColor textColor)1724 void QStyleOptionGroupBox_setTextColor(QStyleOptionGroupBoxH handle, PQColor textColor)
1725 {
1726 ((QStyleOptionGroupBox *)handle)->textColor = *(QColor *)textColor;
1727 }
1728
QStyleOptionGroupBox_lineWidth(QStyleOptionGroupBoxH handle)1729 int QStyleOptionGroupBox_lineWidth(QStyleOptionGroupBoxH handle)
1730 {
1731 return (int) ((QStyleOptionGroupBox *)handle)->lineWidth;
1732 }
1733
QStyleOptionGroupBox_setLineWidth(QStyleOptionGroupBoxH handle,int lineWidth)1734 void QStyleOptionGroupBox_setLineWidth(QStyleOptionGroupBoxH handle, int lineWidth)
1735 {
1736 ((QStyleOptionGroupBox *)handle)->lineWidth = lineWidth;
1737 }
1738
QStyleOptionGroupBox_midLineWidth(QStyleOptionGroupBoxH handle)1739 int QStyleOptionGroupBox_midLineWidth(QStyleOptionGroupBoxH handle)
1740 {
1741 return (int) ((QStyleOptionGroupBox *)handle)->midLineWidth;
1742 }
1743
QStyleOptionGroupBox_setMidLineWidth(QStyleOptionGroupBoxH handle,int midLineWidth)1744 void QStyleOptionGroupBox_setMidLineWidth(QStyleOptionGroupBoxH handle, int midLineWidth)
1745 {
1746 ((QStyleOptionGroupBox *)handle)->midLineWidth = midLineWidth;
1747 }
1748
QStyleOptionGroupBox_Create()1749 QStyleOptionGroupBoxH QStyleOptionGroupBox_Create()
1750 {
1751 return (QStyleOptionGroupBoxH) new QStyleOptionGroupBox();
1752 }
1753
QStyleOptionGroupBox_Destroy(QStyleOptionGroupBoxH handle)1754 void QStyleOptionGroupBox_Destroy(QStyleOptionGroupBoxH handle)
1755 {
1756 delete (QStyleOptionGroupBox *)handle;
1757 }
1758
QStyleOptionGroupBox_Create2(const QStyleOptionGroupBoxH other)1759 QStyleOptionGroupBoxH QStyleOptionGroupBox_Create2(const QStyleOptionGroupBoxH other)
1760 {
1761 return (QStyleOptionGroupBoxH) new QStyleOptionGroupBox(*(const QStyleOptionGroupBox*)other);
1762 }
1763
QStyleOptionSizeGrip_corner(QStyleOptionSizeGripH handle)1764 Qt::Corner QStyleOptionSizeGrip_corner(QStyleOptionSizeGripH handle)
1765 {
1766 return (Qt::Corner) ((QStyleOptionSizeGrip *)handle)->corner;
1767 }
1768
QStyleOptionSizeGrip_setCorner(QStyleOptionSizeGripH handle,Qt::Corner corner)1769 void QStyleOptionSizeGrip_setCorner(QStyleOptionSizeGripH handle, Qt::Corner corner)
1770 {
1771 ((QStyleOptionSizeGrip *)handle)->corner = corner;
1772 }
1773
QStyleOptionSizeGrip_Create()1774 QStyleOptionSizeGripH QStyleOptionSizeGrip_Create()
1775 {
1776 return (QStyleOptionSizeGripH) new QStyleOptionSizeGrip();
1777 }
1778
QStyleOptionSizeGrip_Destroy(QStyleOptionSizeGripH handle)1779 void QStyleOptionSizeGrip_Destroy(QStyleOptionSizeGripH handle)
1780 {
1781 delete (QStyleOptionSizeGrip *)handle;
1782 }
1783
QStyleOptionSizeGrip_Create2(const QStyleOptionSizeGripH other)1784 QStyleOptionSizeGripH QStyleOptionSizeGrip_Create2(const QStyleOptionSizeGripH other)
1785 {
1786 return (QStyleOptionSizeGripH) new QStyleOptionSizeGrip(*(const QStyleOptionSizeGrip*)other);
1787 }
1788
QStyleOptionGraphicsItem_exposedRect(QStyleOptionGraphicsItemH handle,QRectFH retval)1789 void QStyleOptionGraphicsItem_exposedRect(QStyleOptionGraphicsItemH handle, QRectFH retval)
1790 {
1791 *(QRectF *)retval = ((QStyleOptionGraphicsItem *)handle)->exposedRect;
1792 }
1793
QStyleOptionGraphicsItem_setExposedRect(QStyleOptionGraphicsItemH handle,QRectFH exposedRect)1794 void QStyleOptionGraphicsItem_setExposedRect(QStyleOptionGraphicsItemH handle, QRectFH exposedRect)
1795 {
1796 ((QStyleOptionGraphicsItem *)handle)->exposedRect = *(QRectF *)exposedRect;
1797 }
1798
QStyleOptionGraphicsItem_matrix(QStyleOptionGraphicsItemH handle,QMatrixH retval)1799 void QStyleOptionGraphicsItem_matrix(QStyleOptionGraphicsItemH handle, QMatrixH retval)
1800 {
1801 *(QMatrix *)retval = ((QStyleOptionGraphicsItem *)handle)->matrix;
1802 }
1803
QStyleOptionGraphicsItem_setMatrix(QStyleOptionGraphicsItemH handle,QMatrixH matrix)1804 void QStyleOptionGraphicsItem_setMatrix(QStyleOptionGraphicsItemH handle, QMatrixH matrix)
1805 {
1806 ((QStyleOptionGraphicsItem *)handle)->matrix = *(QMatrix *)matrix;
1807 }
1808
QStyleOptionGraphicsItem_levelOfDetail(QStyleOptionGraphicsItemH handle)1809 qreal QStyleOptionGraphicsItem_levelOfDetail(QStyleOptionGraphicsItemH handle)
1810 {
1811 return (qreal) ((QStyleOptionGraphicsItem *)handle)->levelOfDetail;
1812 }
1813
QStyleOptionGraphicsItem_setLevelOfDetail(QStyleOptionGraphicsItemH handle,qreal levelOfDetail)1814 void QStyleOptionGraphicsItem_setLevelOfDetail(QStyleOptionGraphicsItemH handle, qreal levelOfDetail)
1815 {
1816 ((QStyleOptionGraphicsItem *)handle)->levelOfDetail = levelOfDetail;
1817 }
1818
QStyleOptionGraphicsItem_Create()1819 QStyleOptionGraphicsItemH QStyleOptionGraphicsItem_Create()
1820 {
1821 return (QStyleOptionGraphicsItemH) new QStyleOptionGraphicsItem();
1822 }
1823
QStyleOptionGraphicsItem_Destroy(QStyleOptionGraphicsItemH handle)1824 void QStyleOptionGraphicsItem_Destroy(QStyleOptionGraphicsItemH handle)
1825 {
1826 delete (QStyleOptionGraphicsItem *)handle;
1827 }
1828
QStyleOptionGraphicsItem_Create2(const QStyleOptionGraphicsItemH other)1829 QStyleOptionGraphicsItemH QStyleOptionGraphicsItem_Create2(const QStyleOptionGraphicsItemH other)
1830 {
1831 return (QStyleOptionGraphicsItemH) new QStyleOptionGraphicsItem(*(const QStyleOptionGraphicsItem*)other);
1832 }
1833
QStyleOptionGraphicsItem_levelOfDetailFromTransform(const QTransformH worldTransform)1834 qreal QStyleOptionGraphicsItem_levelOfDetailFromTransform(const QTransformH worldTransform)
1835 {
1836 return (qreal) QStyleOptionGraphicsItem::levelOfDetailFromTransform(*(const QTransform*)worldTransform);
1837 }
1838
QStyleHintReturn_version(QStyleHintReturnH handle)1839 int QStyleHintReturn_version(QStyleHintReturnH handle)
1840 {
1841 return (int) ((QStyleHintReturn *)handle)->version;
1842 }
1843
QStyleHintReturn_setVersion(QStyleHintReturnH handle,int version)1844 void QStyleHintReturn_setVersion(QStyleHintReturnH handle, int version)
1845 {
1846 ((QStyleHintReturn *)handle)->version = version;
1847 }
1848
QStyleHintReturn_type(QStyleHintReturnH handle)1849 int QStyleHintReturn_type(QStyleHintReturnH handle)
1850 {
1851 return (int) ((QStyleHintReturn *)handle)->type;
1852 }
1853
QStyleHintReturn_setType(QStyleHintReturnH handle,int type)1854 void QStyleHintReturn_setType(QStyleHintReturnH handle, int type)
1855 {
1856 ((QStyleHintReturn *)handle)->type = type;
1857 }
1858
QStyleHintReturn_Create(int version,int type)1859 QStyleHintReturnH QStyleHintReturn_Create(int version, int type)
1860 {
1861 return (QStyleHintReturnH) new QStyleHintReturn(version, type);
1862 }
1863
QStyleHintReturn_Destroy(QStyleHintReturnH handle)1864 void QStyleHintReturn_Destroy(QStyleHintReturnH handle)
1865 {
1866 delete (QStyleHintReturn *)handle;
1867 }
1868
QStyleHintReturnMask_region(QStyleHintReturnMaskH handle,QRegionH retval)1869 void QStyleHintReturnMask_region(QStyleHintReturnMaskH handle, QRegionH retval)
1870 {
1871 *(QRegion *)retval = ((QStyleHintReturnMask *)handle)->region;
1872 }
1873
QStyleHintReturnMask_setRegion(QStyleHintReturnMaskH handle,QRegionH region)1874 void QStyleHintReturnMask_setRegion(QStyleHintReturnMaskH handle, QRegionH region)
1875 {
1876 ((QStyleHintReturnMask *)handle)->region = *(QRegion *)region;
1877 }
1878
QStyleHintReturnMask_Create()1879 QStyleHintReturnMaskH QStyleHintReturnMask_Create()
1880 {
1881 return (QStyleHintReturnMaskH) new QStyleHintReturnMask();
1882 }
1883
QStyleHintReturnMask_Destroy(QStyleHintReturnMaskH handle)1884 void QStyleHintReturnMask_Destroy(QStyleHintReturnMaskH handle)
1885 {
1886 delete (QStyleHintReturnMask *)handle;
1887 }
1888
QStyleHintReturnVariant_variant(QStyleHintReturnVariantH handle,QVariantH retval)1889 void QStyleHintReturnVariant_variant(QStyleHintReturnVariantH handle, QVariantH retval)
1890 {
1891 *(QVariant *)retval = ((QStyleHintReturnVariant *)handle)->variant;
1892 }
1893
QStyleHintReturnVariant_setVariant(QStyleHintReturnVariantH handle,QVariantH variant)1894 void QStyleHintReturnVariant_setVariant(QStyleHintReturnVariantH handle, QVariantH variant)
1895 {
1896 ((QStyleHintReturnVariant *)handle)->variant = *(QVariant *)variant;
1897 }
1898
QStyleHintReturnVariant_Create()1899 QStyleHintReturnVariantH QStyleHintReturnVariant_Create()
1900 {
1901 return (QStyleHintReturnVariantH) new QStyleHintReturnVariant();
1902 }
1903
QStyleHintReturnVariant_Destroy(QStyleHintReturnVariantH handle)1904 void QStyleHintReturnVariant_Destroy(QStyleHintReturnVariantH handle)
1905 {
1906 delete (QStyleHintReturnVariant *)handle;
1907 }
1908
1909