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 "qabstractbutton_c.h"
13
QAbstractButton_setText(QAbstractButtonH handle,PWideString text)14 void QAbstractButton_setText(QAbstractButtonH handle, PWideString text)
15 {
16 QString t_text;
17 copyPWideStringToQString(text, t_text);
18 ((QAbstractButton *)handle)->setText(t_text);
19 }
20
QAbstractButton_text(QAbstractButtonH handle,PWideString retval)21 void QAbstractButton_text(QAbstractButtonH handle, PWideString retval)
22 {
23 QString t_retval;
24 t_retval = ((QAbstractButton *)handle)->text();
25 copyQStringToPWideString(t_retval, retval);
26 }
27
QAbstractButton_setIcon(QAbstractButtonH handle,const QIconH icon)28 void QAbstractButton_setIcon(QAbstractButtonH handle, const QIconH icon)
29 {
30 ((QAbstractButton *)handle)->setIcon(*(const QIcon*)icon);
31 }
32
QAbstractButton_icon(QAbstractButtonH handle,QIconH retval)33 void QAbstractButton_icon(QAbstractButtonH handle, QIconH retval)
34 {
35 *(QIcon *)retval = ((QAbstractButton *)handle)->icon();
36 }
37
QAbstractButton_iconSize(QAbstractButtonH handle,PSize retval)38 void QAbstractButton_iconSize(QAbstractButtonH handle, PSize retval)
39 {
40 *(QSize *)retval = ((QAbstractButton *)handle)->iconSize();
41 }
42
QAbstractButton_setShortcut(QAbstractButtonH handle,const QKeySequenceH key)43 void QAbstractButton_setShortcut(QAbstractButtonH handle, const QKeySequenceH key)
44 {
45 ((QAbstractButton *)handle)->setShortcut(*(const QKeySequence*)key);
46 }
47
QAbstractButton_shortcut(QAbstractButtonH handle,QKeySequenceH retval)48 void QAbstractButton_shortcut(QAbstractButtonH handle, QKeySequenceH retval)
49 {
50 *(QKeySequence *)retval = ((QAbstractButton *)handle)->shortcut();
51 }
52
QAbstractButton_setCheckable(QAbstractButtonH handle,bool AnonParam1)53 void QAbstractButton_setCheckable(QAbstractButtonH handle, bool AnonParam1)
54 {
55 ((QAbstractButton *)handle)->setCheckable(AnonParam1);
56 }
57
QAbstractButton_isCheckable(QAbstractButtonH handle)58 bool QAbstractButton_isCheckable(QAbstractButtonH handle)
59 {
60 return (bool) ((QAbstractButton *)handle)->isCheckable();
61 }
62
QAbstractButton_isChecked(QAbstractButtonH handle)63 bool QAbstractButton_isChecked(QAbstractButtonH handle)
64 {
65 return (bool) ((QAbstractButton *)handle)->isChecked();
66 }
67
QAbstractButton_setDown(QAbstractButtonH handle,bool AnonParam1)68 void QAbstractButton_setDown(QAbstractButtonH handle, bool AnonParam1)
69 {
70 ((QAbstractButton *)handle)->setDown(AnonParam1);
71 }
72
QAbstractButton_isDown(QAbstractButtonH handle)73 bool QAbstractButton_isDown(QAbstractButtonH handle)
74 {
75 return (bool) ((QAbstractButton *)handle)->isDown();
76 }
77
QAbstractButton_setAutoRepeat(QAbstractButtonH handle,bool AnonParam1)78 void QAbstractButton_setAutoRepeat(QAbstractButtonH handle, bool AnonParam1)
79 {
80 ((QAbstractButton *)handle)->setAutoRepeat(AnonParam1);
81 }
82
QAbstractButton_autoRepeat(QAbstractButtonH handle)83 bool QAbstractButton_autoRepeat(QAbstractButtonH handle)
84 {
85 return (bool) ((QAbstractButton *)handle)->autoRepeat();
86 }
87
QAbstractButton_setAutoRepeatDelay(QAbstractButtonH handle,int AnonParam1)88 void QAbstractButton_setAutoRepeatDelay(QAbstractButtonH handle, int AnonParam1)
89 {
90 ((QAbstractButton *)handle)->setAutoRepeatDelay(AnonParam1);
91 }
92
QAbstractButton_autoRepeatDelay(QAbstractButtonH handle)93 int QAbstractButton_autoRepeatDelay(QAbstractButtonH handle)
94 {
95 return (int) ((QAbstractButton *)handle)->autoRepeatDelay();
96 }
97
QAbstractButton_setAutoRepeatInterval(QAbstractButtonH handle,int AnonParam1)98 void QAbstractButton_setAutoRepeatInterval(QAbstractButtonH handle, int AnonParam1)
99 {
100 ((QAbstractButton *)handle)->setAutoRepeatInterval(AnonParam1);
101 }
102
QAbstractButton_autoRepeatInterval(QAbstractButtonH handle)103 int QAbstractButton_autoRepeatInterval(QAbstractButtonH handle)
104 {
105 return (int) ((QAbstractButton *)handle)->autoRepeatInterval();
106 }
107
QAbstractButton_setAutoExclusive(QAbstractButtonH handle,bool AnonParam1)108 void QAbstractButton_setAutoExclusive(QAbstractButtonH handle, bool AnonParam1)
109 {
110 ((QAbstractButton *)handle)->setAutoExclusive(AnonParam1);
111 }
112
QAbstractButton_autoExclusive(QAbstractButtonH handle)113 bool QAbstractButton_autoExclusive(QAbstractButtonH handle)
114 {
115 return (bool) ((QAbstractButton *)handle)->autoExclusive();
116 }
117
QAbstractButton_group(QAbstractButtonH handle)118 QButtonGroupH QAbstractButton_group(QAbstractButtonH handle)
119 {
120 return (QButtonGroupH) ((QAbstractButton *)handle)->group();
121 }
122
QAbstractButton_setIconSize(QAbstractButtonH handle,const QSizeH size)123 void QAbstractButton_setIconSize(QAbstractButtonH handle, const QSizeH size)
124 {
125 ((QAbstractButton *)handle)->setIconSize(*(const QSize*)size);
126 }
127
QAbstractButton_animateClick(QAbstractButtonH handle,int msec)128 void QAbstractButton_animateClick(QAbstractButtonH handle, int msec)
129 {
130 ((QAbstractButton *)handle)->animateClick(msec);
131 }
132
QAbstractButton_click(QAbstractButtonH handle)133 void QAbstractButton_click(QAbstractButtonH handle)
134 {
135 ((QAbstractButton *)handle)->click();
136 }
137
QAbstractButton_toggle(QAbstractButtonH handle)138 void QAbstractButton_toggle(QAbstractButtonH handle)
139 {
140 ((QAbstractButton *)handle)->toggle();
141 }
142
QAbstractButton_setChecked(QAbstractButtonH handle,bool AnonParam1)143 void QAbstractButton_setChecked(QAbstractButtonH handle, bool AnonParam1)
144 {
145 ((QAbstractButton *)handle)->setChecked(AnonParam1);
146 }
147
148