mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
86 lines
2.2 KiB
C++
86 lines
2.2 KiB
C++
#include <QInternal>
|
|
#include <QKeyCombination>
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_Disambiguated_t
|
|
#include <qnamespace.h>
|
|
#include "gen_qnamespace.h"
|
|
#include "_cgo_export.h"
|
|
|
|
Disambiguated_t* Disambiguated_t_new() {
|
|
return new Qt::Disambiguated_t();
|
|
}
|
|
|
|
Disambiguated_t* Disambiguated_t_new2(Disambiguated_t* param1) {
|
|
return new Qt::Disambiguated_t(*param1);
|
|
}
|
|
|
|
void Disambiguated_t_Delete(Disambiguated_t* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<Qt::Disambiguated_t*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|
|
void QInternal_Delete(QInternal* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QInternal*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|
|
QKeyCombination* QKeyCombination_new() {
|
|
return new QKeyCombination();
|
|
}
|
|
|
|
QKeyCombination* QKeyCombination_new2(int modifiers) {
|
|
return new QKeyCombination(static_cast<Qt::Modifiers>(modifiers));
|
|
}
|
|
|
|
QKeyCombination* QKeyCombination_new3(int modifiers) {
|
|
return new QKeyCombination(static_cast<Qt::KeyboardModifiers>(modifiers));
|
|
}
|
|
|
|
QKeyCombination* QKeyCombination_new4(QKeyCombination* param1) {
|
|
return new QKeyCombination(*param1);
|
|
}
|
|
|
|
QKeyCombination* QKeyCombination_new5(int key) {
|
|
return new QKeyCombination(static_cast<Qt::Key>(key));
|
|
}
|
|
|
|
QKeyCombination* QKeyCombination_new6(int modifiers, int key) {
|
|
return new QKeyCombination(static_cast<Qt::Modifiers>(modifiers), static_cast<Qt::Key>(key));
|
|
}
|
|
|
|
QKeyCombination* QKeyCombination_new7(int modifiers, int key) {
|
|
return new QKeyCombination(static_cast<Qt::KeyboardModifiers>(modifiers), static_cast<Qt::Key>(key));
|
|
}
|
|
|
|
int QKeyCombination_KeyboardModifiers(const QKeyCombination* self) {
|
|
Qt::KeyboardModifiers _ret = self->keyboardModifiers();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
int QKeyCombination_Key(const QKeyCombination* self) {
|
|
Qt::Key _ret = self->key();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
QKeyCombination* QKeyCombination_FromCombined(int combined) {
|
|
return new QKeyCombination(QKeyCombination::fromCombined(static_cast<int>(combined)));
|
|
}
|
|
|
|
int QKeyCombination_ToCombined(const QKeyCombination* self) {
|
|
return self->toCombined();
|
|
}
|
|
|
|
void QKeyCombination_Delete(QKeyCombination* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QKeyCombination*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|