1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
//******************************************************************************
// Copyright (c) 2005-2013 by Jan Van hijfte
//
// See the included file COPYING.TXT for details about the copyright.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//******************************************************************************
#include "qcheckbox_c.h"
QCheckBoxH QCheckBox_Create(QWidgetH parent)
{
return (QCheckBoxH) new QCheckBox((QWidget*)parent);
}
void QCheckBox_Destroy(QCheckBoxH handle)
{
delete (QCheckBox *)handle;
}
QCheckBoxH QCheckBox_Create2(PWideString text, QWidgetH parent)
{
QString t_text;
copyPWideStringToQString(text, t_text);
return (QCheckBoxH) new QCheckBox(t_text, (QWidget*)parent);
}
void QCheckBox_sizeHint(QCheckBoxH handle, PSize retval)
{
*(QSize *)retval = ((QCheckBox *)handle)->sizeHint();
}
void QCheckBox_minimumSizeHint(QCheckBoxH handle, PSize retval)
{
*(QSize *)retval = ((QCheckBox *)handle)->minimumSizeHint();
}
void QCheckBox_setTristate(QCheckBoxH handle, bool y)
{
((QCheckBox *)handle)->setTristate(y);
}
bool QCheckBox_isTristate(QCheckBoxH handle)
{
return (bool) ((QCheckBox *)handle)->isTristate();
}
Qt::CheckState QCheckBox_checkState(QCheckBoxH handle)
{
return (Qt::CheckState) ((QCheckBox *)handle)->checkState();
}
void QCheckBox_setCheckState(QCheckBoxH handle, Qt::CheckState state)
{
((QCheckBox *)handle)->setCheckState(state);
}
|