mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
Merge pull request #32 from mappu/void-pointers
Add projections for some methods using void* pointers
This commit is contained in:
commit
b0fe164bb5
@ -442,22 +442,18 @@ nextMethod:
|
||||
return CppClass{}, err
|
||||
}
|
||||
|
||||
for _, p := range mm.Parameters {
|
||||
if strings.HasSuffix(p.ParameterType, "Private") {
|
||||
log.Printf("Skipping method %q taking Private type", mm.MethodName)
|
||||
mm.IsSignal = isSignal && !mm.IsStatic && AllowSignal(mm)
|
||||
|
||||
// Once all processing is complete, pass to exceptions for final decision
|
||||
|
||||
if err := AllowMethod(mm); err != nil {
|
||||
if errors.Is(err, ErrTooComplex) {
|
||||
log.Printf("Skipping method %q with complex type", mm.MethodName)
|
||||
continue nextMethod
|
||||
}
|
||||
}
|
||||
if strings.HasSuffix(mm.ReturnType.ParameterType, "Private") {
|
||||
log.Printf("Skipping method %q returning Private type", mm.MethodName)
|
||||
continue nextMethod
|
||||
}
|
||||
|
||||
mm.IsSignal = isSignal && !mm.IsStatic && mm.MethodName != `metaObject`
|
||||
|
||||
if mm.IsReceiverMethod() {
|
||||
log.Printf("Skipping method %q using non-projectable receiver pattern parameters", mm.MethodName)
|
||||
continue nextMethod
|
||||
// Real error
|
||||
return CppClass{}, err
|
||||
}
|
||||
|
||||
ret.Methods = append(ret.Methods, mm)
|
||||
|
@ -35,6 +35,10 @@ func (p CppParameter) RenderTypeGo() string {
|
||||
return "map[" + t.RenderTypeGo() + "]struct{}"
|
||||
}
|
||||
|
||||
if p.ParameterType == "void" && p.Pointer {
|
||||
return "unsafe.Pointer"
|
||||
}
|
||||
|
||||
ret := ""
|
||||
if p.ByRef || p.Pointer {
|
||||
ret += "*"
|
||||
|
@ -103,6 +103,35 @@ func AllowClass(className string) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func AllowSignal(mm CppMethod) bool {
|
||||
switch mm.MethodName {
|
||||
case `metaObject`, `qt_metacast`:
|
||||
return false
|
||||
default:
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
func AllowMethod(mm CppMethod) error {
|
||||
|
||||
for _, p := range mm.Parameters {
|
||||
if strings.HasSuffix(p.ParameterType, "Private") {
|
||||
return ErrTooComplex // Skip private type
|
||||
}
|
||||
}
|
||||
if strings.HasSuffix(mm.ReturnType.ParameterType, "Private") {
|
||||
return ErrTooComplex // Skip private type
|
||||
}
|
||||
|
||||
if mm.IsReceiverMethod() {
|
||||
// Non-projectable receiver pattern parameters
|
||||
return ErrTooComplex
|
||||
}
|
||||
|
||||
return nil // OK, allow
|
||||
|
||||
}
|
||||
|
||||
func CheckComplexity(p CppParameter, isReturnType bool) error {
|
||||
|
||||
if p.QMapOf() {
|
||||
@ -236,10 +265,6 @@ func CheckComplexity(p CppParameter, isReturnType bool) error {
|
||||
return ErrTooComplex
|
||||
}
|
||||
|
||||
if p.ParameterType == "void" && p.Pointer {
|
||||
return ErrTooComplex // e.g. qobjectdefs.h QMetaObject->InvokeOnGadget(). TODO represent as uintptr
|
||||
}
|
||||
|
||||
// Should be OK
|
||||
return nil
|
||||
}
|
||||
|
@ -14,6 +14,10 @@ QMetaObject* QAbstractAnimation_MetaObject(const QAbstractAnimation* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractAnimation_Metacast(QAbstractAnimation* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractAnimation_Tr(const char* s) {
|
||||
QString _ret = QAbstractAnimation::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
@ -193,6 +197,10 @@ QMetaObject* QAnimationDriver_MetaObject(const QAnimationDriver* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAnimationDriver_Metacast(QAnimationDriver* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAnimationDriver_Tr(const char* s) {
|
||||
QString _ret = QAnimationDriver::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -63,6 +63,12 @@ func (this *QAbstractAnimation) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractAnimation_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractAnimation) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractAnimation_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractAnimation_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
@ -329,6 +335,12 @@ func (this *QAnimationDriver) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAnimationDriver_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAnimationDriver) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAnimationDriver_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAnimationDriver_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -28,6 +28,7 @@ typedef struct QObject QObject;
|
||||
#endif
|
||||
|
||||
QMetaObject* QAbstractAnimation_MetaObject(const QAbstractAnimation* self);
|
||||
void* QAbstractAnimation_Metacast(QAbstractAnimation* self, const char* param1);
|
||||
struct miqt_string* QAbstractAnimation_Tr(const char* s);
|
||||
struct miqt_string* QAbstractAnimation_TrUtf8(const char* s);
|
||||
int QAbstractAnimation_State(const QAbstractAnimation* self);
|
||||
@ -65,6 +66,7 @@ void QAbstractAnimation_Delete(QAbstractAnimation* self);
|
||||
QAnimationDriver* QAnimationDriver_new();
|
||||
QAnimationDriver* QAnimationDriver_new2(QObject* parent);
|
||||
QMetaObject* QAnimationDriver_MetaObject(const QAnimationDriver* self);
|
||||
void* QAnimationDriver_Metacast(QAnimationDriver* self, const char* param1);
|
||||
struct miqt_string* QAnimationDriver_Tr(const char* s);
|
||||
struct miqt_string* QAnimationDriver_TrUtf8(const char* s);
|
||||
void QAnimationDriver_Advance(QAnimationDriver* self);
|
||||
|
@ -15,6 +15,10 @@ QMetaObject* QAbstractButton_MetaObject(const QAbstractButton* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractButton_Metacast(QAbstractButton* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractButton_Tr(const char* s) {
|
||||
QString _ret = QAbstractButton::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -41,6 +41,12 @@ func (this *QAbstractButton) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractButton_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractButton) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractButton_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractButton_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -30,6 +30,7 @@ typedef struct QSize QSize;
|
||||
#endif
|
||||
|
||||
QMetaObject* QAbstractButton_MetaObject(const QAbstractButton* self);
|
||||
void* QAbstractButton_Metacast(QAbstractButton* self, const char* param1);
|
||||
struct miqt_string* QAbstractButton_Tr(const char* s);
|
||||
struct miqt_string* QAbstractButton_TrUtf8(const char* s);
|
||||
void QAbstractButton_SetText(QAbstractButton* self, struct miqt_string* text);
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include <QAbstractEventDispatcher>
|
||||
#define WORKAROUND_INNER_CLASS_DEFINITION_QAbstractEventDispatcher__TimerInfo
|
||||
#include <QAbstractNativeEventFilter>
|
||||
#include <QByteArray>
|
||||
#include <QList>
|
||||
#include <QMetaObject>
|
||||
#include <QObject>
|
||||
@ -17,6 +18,10 @@ QMetaObject* QAbstractEventDispatcher_MetaObject(const QAbstractEventDispatcher*
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractEventDispatcher_Metacast(QAbstractEventDispatcher* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractEventDispatcher_Tr(const char* s) {
|
||||
QString _ret = QAbstractEventDispatcher::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
@ -112,6 +117,10 @@ void QAbstractEventDispatcher_RemoveNativeEventFilter(QAbstractEventDispatcher*
|
||||
self->removeNativeEventFilter(filterObj);
|
||||
}
|
||||
|
||||
bool QAbstractEventDispatcher_FilterNativeEvent(QAbstractEventDispatcher* self, QByteArray* eventType, void* message, long* result) {
|
||||
return self->filterNativeEvent(*eventType, message, static_cast<long*>(result));
|
||||
}
|
||||
|
||||
void QAbstractEventDispatcher_AboutToBlock(QAbstractEventDispatcher* self) {
|
||||
self->aboutToBlock();
|
||||
}
|
||||
|
@ -41,6 +41,12 @@ func (this *QAbstractEventDispatcher) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractEventDispatcher_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractEventDispatcher) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractEventDispatcher_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractEventDispatcher_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
@ -141,6 +147,10 @@ func (this *QAbstractEventDispatcher) RemoveNativeEventFilter(filterObj *QAbstra
|
||||
C.QAbstractEventDispatcher_RemoveNativeEventFilter(this.h, filterObj.cPointer())
|
||||
}
|
||||
|
||||
func (this *QAbstractEventDispatcher) FilterNativeEvent(eventType *QByteArray, message unsafe.Pointer, result *int64) bool {
|
||||
return (bool)(C.QAbstractEventDispatcher_FilterNativeEvent(this.h, eventType.cPointer(), message, (*C.long)(unsafe.Pointer(result))))
|
||||
}
|
||||
|
||||
func (this *QAbstractEventDispatcher) AboutToBlock() {
|
||||
C.QAbstractEventDispatcher_AboutToBlock(this.h)
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ typedef QAbstractEventDispatcher::TimerInfo QAbstractEventDispatcher__TimerInfo;
|
||||
class QAbstractEventDispatcher__TimerInfo;
|
||||
#endif
|
||||
class QAbstractNativeEventFilter;
|
||||
class QByteArray;
|
||||
class QMetaObject;
|
||||
class QObject;
|
||||
class QSocketNotifier;
|
||||
@ -29,6 +30,7 @@ class QThread;
|
||||
typedef struct QAbstractEventDispatcher QAbstractEventDispatcher;
|
||||
typedef struct QAbstractEventDispatcher__TimerInfo QAbstractEventDispatcher__TimerInfo;
|
||||
typedef struct QAbstractNativeEventFilter QAbstractNativeEventFilter;
|
||||
typedef struct QByteArray QByteArray;
|
||||
typedef struct QMetaObject QMetaObject;
|
||||
typedef struct QObject QObject;
|
||||
typedef struct QSocketNotifier QSocketNotifier;
|
||||
@ -36,6 +38,7 @@ typedef struct QThread QThread;
|
||||
#endif
|
||||
|
||||
QMetaObject* QAbstractEventDispatcher_MetaObject(const QAbstractEventDispatcher* self);
|
||||
void* QAbstractEventDispatcher_Metacast(QAbstractEventDispatcher* self, const char* param1);
|
||||
struct miqt_string* QAbstractEventDispatcher_Tr(const char* s);
|
||||
struct miqt_string* QAbstractEventDispatcher_TrUtf8(const char* s);
|
||||
QAbstractEventDispatcher* QAbstractEventDispatcher_Instance();
|
||||
@ -56,6 +59,7 @@ void QAbstractEventDispatcher_StartingUp(QAbstractEventDispatcher* self);
|
||||
void QAbstractEventDispatcher_ClosingDown(QAbstractEventDispatcher* self);
|
||||
void QAbstractEventDispatcher_InstallNativeEventFilter(QAbstractEventDispatcher* self, QAbstractNativeEventFilter* filterObj);
|
||||
void QAbstractEventDispatcher_RemoveNativeEventFilter(QAbstractEventDispatcher* self, QAbstractNativeEventFilter* filterObj);
|
||||
bool QAbstractEventDispatcher_FilterNativeEvent(QAbstractEventDispatcher* self, QByteArray* eventType, void* message, long* result);
|
||||
void QAbstractEventDispatcher_AboutToBlock(QAbstractEventDispatcher* self);
|
||||
void QAbstractEventDispatcher_connect_AboutToBlock(QAbstractEventDispatcher* self, void* slot);
|
||||
void QAbstractEventDispatcher_Awake(QAbstractEventDispatcher* self);
|
||||
|
@ -22,6 +22,10 @@ QMetaObject* QAbstractItemDelegate_MetaObject(const QAbstractItemDelegate* self)
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractItemDelegate_Metacast(QAbstractItemDelegate* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractItemDelegate_Tr(const char* s) {
|
||||
QString _ret = QAbstractItemDelegate::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -51,6 +51,12 @@ func (this *QAbstractItemDelegate) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractItemDelegate_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractItemDelegate) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractItemDelegate_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractItemDelegate_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -42,6 +42,7 @@ typedef struct QWidget QWidget;
|
||||
#endif
|
||||
|
||||
QMetaObject* QAbstractItemDelegate_MetaObject(const QAbstractItemDelegate* self);
|
||||
void* QAbstractItemDelegate_Metacast(QAbstractItemDelegate* self, const char* param1);
|
||||
struct miqt_string* QAbstractItemDelegate_Tr(const char* s);
|
||||
struct miqt_string* QAbstractItemDelegate_TrUtf8(const char* s);
|
||||
void QAbstractItemDelegate_Paint(const QAbstractItemDelegate* self, QPainter* painter, QStyleOptionViewItem* option, QModelIndex* index);
|
||||
|
@ -36,6 +36,10 @@ uintptr_t QModelIndex_InternalId(const QModelIndex* self) {
|
||||
return static_cast<uintptr_t>(_ret);
|
||||
}
|
||||
|
||||
void* QModelIndex_InternalPointer(const QModelIndex* self) {
|
||||
return self->internalPointer();
|
||||
}
|
||||
|
||||
QModelIndex* QModelIndex_Parent(const QModelIndex* self) {
|
||||
return new QModelIndex(self->parent());
|
||||
}
|
||||
@ -145,6 +149,10 @@ int QPersistentModelIndex_Column(const QPersistentModelIndex* self) {
|
||||
return self->column();
|
||||
}
|
||||
|
||||
void* QPersistentModelIndex_InternalPointer(const QPersistentModelIndex* self) {
|
||||
return self->internalPointer();
|
||||
}
|
||||
|
||||
uintptr_t QPersistentModelIndex_InternalId(const QPersistentModelIndex* self) {
|
||||
quintptr _ret = self->internalId();
|
||||
return static_cast<uintptr_t>(_ret);
|
||||
@ -191,6 +199,10 @@ QMetaObject* QAbstractItemModel_MetaObject(const QAbstractItemModel* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractItemModel_Metacast(QAbstractItemModel* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractItemModel_Tr(const char* s) {
|
||||
QString _ret = QAbstractItemModel::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
@ -719,6 +731,10 @@ QMetaObject* QAbstractTableModel_MetaObject(const QAbstractTableModel* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractTableModel_Metacast(QAbstractTableModel* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractTableModel_Tr(const char* s) {
|
||||
QString _ret = QAbstractTableModel::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
@ -790,6 +806,10 @@ QMetaObject* QAbstractListModel_MetaObject(const QAbstractListModel* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractListModel_Metacast(QAbstractListModel* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractListModel_Tr(const char* s) {
|
||||
QString _ret = QAbstractListModel::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -77,6 +77,10 @@ func (this *QModelIndex) InternalId() uintptr {
|
||||
return (uintptr)(C.QModelIndex_InternalId(this.h))
|
||||
}
|
||||
|
||||
func (this *QModelIndex) InternalPointer() unsafe.Pointer {
|
||||
return C.QModelIndex_InternalPointer(this.h)
|
||||
}
|
||||
|
||||
func (this *QModelIndex) Parent() *QModelIndex {
|
||||
_ret := C.QModelIndex_Parent(this.h)
|
||||
_goptr := newQModelIndex(_ret)
|
||||
@ -244,6 +248,10 @@ func (this *QPersistentModelIndex) Column() int {
|
||||
return (int)(C.QPersistentModelIndex_Column(this.h))
|
||||
}
|
||||
|
||||
func (this *QPersistentModelIndex) InternalPointer() unsafe.Pointer {
|
||||
return C.QPersistentModelIndex_InternalPointer(this.h)
|
||||
}
|
||||
|
||||
func (this *QPersistentModelIndex) InternalId() uintptr {
|
||||
return (uintptr)(C.QPersistentModelIndex_InternalId(this.h))
|
||||
}
|
||||
@ -336,6 +344,12 @@ func (this *QAbstractItemModel) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractItemModel_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractItemModel) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractItemModel_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractItemModel_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
@ -1029,6 +1043,12 @@ func (this *QAbstractTableModel) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractTableModel_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractTableModel) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractTableModel_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractTableModel_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
@ -1161,6 +1181,12 @@ func (this *QAbstractListModel) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractListModel_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractListModel) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractListModel_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractListModel_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -40,6 +40,7 @@ QModelIndex* QModelIndex_new2(QModelIndex* param1);
|
||||
int QModelIndex_Row(const QModelIndex* self);
|
||||
int QModelIndex_Column(const QModelIndex* self);
|
||||
uintptr_t QModelIndex_InternalId(const QModelIndex* self);
|
||||
void* QModelIndex_InternalPointer(const QModelIndex* self);
|
||||
QModelIndex* QModelIndex_Parent(const QModelIndex* self);
|
||||
QModelIndex* QModelIndex_Sibling(const QModelIndex* self, int row, int column);
|
||||
QModelIndex* QModelIndex_SiblingAtColumn(const QModelIndex* self, int column);
|
||||
@ -68,6 +69,7 @@ bool QPersistentModelIndex_OperatorNotEqualWithOther(const QPersistentModelIndex
|
||||
void QPersistentModelIndex_OperatorAssignWithOther(QPersistentModelIndex* self, QModelIndex* other);
|
||||
int QPersistentModelIndex_Row(const QPersistentModelIndex* self);
|
||||
int QPersistentModelIndex_Column(const QPersistentModelIndex* self);
|
||||
void* QPersistentModelIndex_InternalPointer(const QPersistentModelIndex* self);
|
||||
uintptr_t QPersistentModelIndex_InternalId(const QPersistentModelIndex* self);
|
||||
QModelIndex* QPersistentModelIndex_Parent(const QPersistentModelIndex* self);
|
||||
QModelIndex* QPersistentModelIndex_Sibling(const QPersistentModelIndex* self, int row, int column);
|
||||
@ -80,6 +82,7 @@ QVariant* QPersistentModelIndex_Data1(const QPersistentModelIndex* self, int rol
|
||||
void QPersistentModelIndex_Delete(QPersistentModelIndex* self);
|
||||
|
||||
QMetaObject* QAbstractItemModel_MetaObject(const QAbstractItemModel* self);
|
||||
void* QAbstractItemModel_Metacast(QAbstractItemModel* self, const char* param1);
|
||||
struct miqt_string* QAbstractItemModel_Tr(const char* s);
|
||||
struct miqt_string* QAbstractItemModel_TrUtf8(const char* s);
|
||||
bool QAbstractItemModel_HasIndex(const QAbstractItemModel* self, int row, int column);
|
||||
@ -167,6 +170,7 @@ void QAbstractItemModel_connect_LayoutAboutToBeChanged2(QAbstractItemModel* self
|
||||
void QAbstractItemModel_Delete(QAbstractItemModel* self);
|
||||
|
||||
QMetaObject* QAbstractTableModel_MetaObject(const QAbstractTableModel* self);
|
||||
void* QAbstractTableModel_Metacast(QAbstractTableModel* self, const char* param1);
|
||||
struct miqt_string* QAbstractTableModel_Tr(const char* s);
|
||||
struct miqt_string* QAbstractTableModel_TrUtf8(const char* s);
|
||||
QModelIndex* QAbstractTableModel_Index(const QAbstractTableModel* self, int row, int column);
|
||||
@ -181,6 +185,7 @@ QModelIndex* QAbstractTableModel_Index3(const QAbstractTableModel* self, int row
|
||||
void QAbstractTableModel_Delete(QAbstractTableModel* self);
|
||||
|
||||
QMetaObject* QAbstractListModel_MetaObject(const QAbstractListModel* self);
|
||||
void* QAbstractListModel_Metacast(QAbstractListModel* self, const char* param1);
|
||||
struct miqt_string* QAbstractListModel_Tr(const char* s);
|
||||
struct miqt_string* QAbstractListModel_TrUtf8(const char* s);
|
||||
QModelIndex* QAbstractListModel_Index(const QAbstractListModel* self, int row);
|
||||
|
@ -20,6 +20,10 @@ QMetaObject* QAbstractItemView_MetaObject(const QAbstractItemView* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractItemView_Metacast(QAbstractItemView* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractItemView_Tr(const char* s) {
|
||||
QString _ret = QAbstractItemView::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -97,6 +97,12 @@ func (this *QAbstractItemView) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractItemView_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractItemView) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractItemView_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractItemView_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -40,6 +40,7 @@ typedef struct QWidget QWidget;
|
||||
#endif
|
||||
|
||||
QMetaObject* QAbstractItemView_MetaObject(const QAbstractItemView* self);
|
||||
void* QAbstractItemView_Metacast(QAbstractItemView* self, const char* param1);
|
||||
struct miqt_string* QAbstractItemView_Tr(const char* s);
|
||||
struct miqt_string* QAbstractItemView_TrUtf8(const char* s);
|
||||
void QAbstractItemView_SetModel(QAbstractItemView* self, QAbstractItemModel* model);
|
||||
|
@ -1,8 +1,13 @@
|
||||
#include <QAbstractNativeEventFilter>
|
||||
#include <QByteArray>
|
||||
#include "qabstractnativeeventfilter.h"
|
||||
#include "gen_qabstractnativeeventfilter.h"
|
||||
#include "_cgo_export.h"
|
||||
|
||||
bool QAbstractNativeEventFilter_NativeEventFilter(QAbstractNativeEventFilter* self, QByteArray* eventType, void* message, long* result) {
|
||||
return self->nativeEventFilter(*eventType, message, static_cast<long*>(result));
|
||||
}
|
||||
|
||||
void QAbstractNativeEventFilter_Delete(QAbstractNativeEventFilter* self) {
|
||||
delete self;
|
||||
}
|
||||
|
@ -35,6 +35,10 @@ func newQAbstractNativeEventFilter_U(h unsafe.Pointer) *QAbstractNativeEventFilt
|
||||
return newQAbstractNativeEventFilter((*C.QAbstractNativeEventFilter)(h))
|
||||
}
|
||||
|
||||
func (this *QAbstractNativeEventFilter) NativeEventFilter(eventType *QByteArray, message unsafe.Pointer, result *int64) bool {
|
||||
return (bool)(C.QAbstractNativeEventFilter_NativeEventFilter(this.h, eventType.cPointer(), message, (*C.long)(unsafe.Pointer(result))))
|
||||
}
|
||||
|
||||
// Delete this object from C++ memory.
|
||||
func (this *QAbstractNativeEventFilter) Delete() {
|
||||
C.QAbstractNativeEventFilter_Delete(this.h)
|
||||
|
@ -15,10 +15,13 @@ extern "C" {
|
||||
|
||||
#ifdef __cplusplus
|
||||
class QAbstractNativeEventFilter;
|
||||
class QByteArray;
|
||||
#else
|
||||
typedef struct QAbstractNativeEventFilter QAbstractNativeEventFilter;
|
||||
typedef struct QByteArray QByteArray;
|
||||
#endif
|
||||
|
||||
bool QAbstractNativeEventFilter_NativeEventFilter(QAbstractNativeEventFilter* self, QByteArray* eventType, void* message, long* result);
|
||||
void QAbstractNativeEventFilter_Delete(QAbstractNativeEventFilter* self);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -17,6 +17,10 @@ QMetaObject* QAbstractProxyModel_MetaObject(const QAbstractProxyModel* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractProxyModel_Metacast(QAbstractProxyModel* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractProxyModel_Tr(const char* s) {
|
||||
QString _ret = QAbstractProxyModel::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -40,6 +40,12 @@ func (this *QAbstractProxyModel) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractProxyModel_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractProxyModel) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractProxyModel_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractProxyModel_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -32,6 +32,7 @@ typedef struct QVariant QVariant;
|
||||
#endif
|
||||
|
||||
QMetaObject* QAbstractProxyModel_MetaObject(const QAbstractProxyModel* self);
|
||||
void* QAbstractProxyModel_Metacast(QAbstractProxyModel* self, const char* param1);
|
||||
struct miqt_string* QAbstractProxyModel_Tr(const char* s);
|
||||
struct miqt_string* QAbstractProxyModel_TrUtf8(const char* s);
|
||||
void QAbstractProxyModel_SetSourceModel(QAbstractProxyModel* self, QAbstractItemModel* sourceModel);
|
||||
|
@ -23,6 +23,10 @@ QMetaObject* QAbstractScrollArea_MetaObject(const QAbstractScrollArea* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractScrollArea_Metacast(QAbstractScrollArea* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractScrollArea_Tr(const char* s) {
|
||||
QString _ret = QAbstractScrollArea::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -60,6 +60,12 @@ func (this *QAbstractScrollArea) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractScrollArea_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractScrollArea) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractScrollArea_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractScrollArea_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -30,6 +30,7 @@ typedef struct QWidget QWidget;
|
||||
QAbstractScrollArea* QAbstractScrollArea_new();
|
||||
QAbstractScrollArea* QAbstractScrollArea_new2(QWidget* parent);
|
||||
QMetaObject* QAbstractScrollArea_MetaObject(const QAbstractScrollArea* self);
|
||||
void* QAbstractScrollArea_Metacast(QAbstractScrollArea* self, const char* param1);
|
||||
struct miqt_string* QAbstractScrollArea_Tr(const char* s);
|
||||
struct miqt_string* QAbstractScrollArea_TrUtf8(const char* s);
|
||||
int QAbstractScrollArea_VerticalScrollBarPolicy(const QAbstractScrollArea* self);
|
||||
|
@ -20,6 +20,10 @@ QMetaObject* QAbstractSlider_MetaObject(const QAbstractSlider* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractSlider_Metacast(QAbstractSlider* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractSlider_Tr(const char* s) {
|
||||
QString _ret = QAbstractSlider::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -66,6 +66,12 @@ func (this *QAbstractSlider) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractSlider_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractSlider) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractSlider_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractSlider_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -26,6 +26,7 @@ typedef struct QWidget QWidget;
|
||||
QAbstractSlider* QAbstractSlider_new();
|
||||
QAbstractSlider* QAbstractSlider_new2(QWidget* parent);
|
||||
QMetaObject* QAbstractSlider_MetaObject(const QAbstractSlider* self);
|
||||
void* QAbstractSlider_Metacast(QAbstractSlider* self, const char* param1);
|
||||
struct miqt_string* QAbstractSlider_Tr(const char* s);
|
||||
struct miqt_string* QAbstractSlider_TrUtf8(const char* s);
|
||||
int QAbstractSlider_Orientation(const QAbstractSlider* self);
|
||||
|
@ -23,6 +23,10 @@ QMetaObject* QAbstractSpinBox_MetaObject(const QAbstractSpinBox* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractSpinBox_Metacast(QAbstractSpinBox* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractSpinBox_Tr(const char* s) {
|
||||
QString _ret = QAbstractSpinBox::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -83,6 +83,12 @@ func (this *QAbstractSpinBox) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractSpinBox_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractSpinBox) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractSpinBox_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractSpinBox_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -32,6 +32,7 @@ typedef struct QWidget QWidget;
|
||||
QAbstractSpinBox* QAbstractSpinBox_new();
|
||||
QAbstractSpinBox* QAbstractSpinBox_new2(QWidget* parent);
|
||||
QMetaObject* QAbstractSpinBox_MetaObject(const QAbstractSpinBox* self);
|
||||
void* QAbstractSpinBox_Metacast(QAbstractSpinBox* self, const char* param1);
|
||||
struct miqt_string* QAbstractSpinBox_Tr(const char* s);
|
||||
struct miqt_string* QAbstractSpinBox_TrUtf8(const char* s);
|
||||
int QAbstractSpinBox_ButtonSymbols(const QAbstractSpinBox* self);
|
||||
|
@ -13,6 +13,10 @@ QMetaObject* QAbstractState_MetaObject(const QAbstractState* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractState_Metacast(QAbstractState* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractState_Tr(const char* s) {
|
||||
QString _ret = QAbstractState::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -41,6 +41,12 @@ func (this *QAbstractState) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractState_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractState) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractState_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractState_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -26,6 +26,7 @@ typedef struct QStateMachine QStateMachine;
|
||||
#endif
|
||||
|
||||
QMetaObject* QAbstractState_MetaObject(const QAbstractState* self);
|
||||
void* QAbstractState_Metacast(QAbstractState* self, const char* param1);
|
||||
struct miqt_string* QAbstractState_Tr(const char* s);
|
||||
struct miqt_string* QAbstractState_TrUtf8(const char* s);
|
||||
QState* QAbstractState_ParentState(const QAbstractState* self);
|
||||
|
@ -24,6 +24,10 @@ QMetaObject* QAbstractTextDocumentLayout_MetaObject(const QAbstractTextDocumentL
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractTextDocumentLayout_Metacast(QAbstractTextDocumentLayout* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractTextDocumentLayout_Tr(const char* s) {
|
||||
QString _ret = QAbstractTextDocumentLayout::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -41,6 +41,12 @@ func (this *QAbstractTextDocumentLayout) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractTextDocumentLayout_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractTextDocumentLayout) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractTextDocumentLayout_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractTextDocumentLayout_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -56,6 +56,7 @@ typedef struct QTextObjectInterface QTextObjectInterface;
|
||||
#endif
|
||||
|
||||
QMetaObject* QAbstractTextDocumentLayout_MetaObject(const QAbstractTextDocumentLayout* self);
|
||||
void* QAbstractTextDocumentLayout_Metacast(QAbstractTextDocumentLayout* self, const char* param1);
|
||||
struct miqt_string* QAbstractTextDocumentLayout_Tr(const char* s);
|
||||
struct miqt_string* QAbstractTextDocumentLayout_TrUtf8(const char* s);
|
||||
void QAbstractTextDocumentLayout_Draw(QAbstractTextDocumentLayout* self, QPainter* painter, QAbstractTextDocumentLayout__PaintContext* context);
|
||||
|
@ -16,6 +16,10 @@ QMetaObject* QAbstractTransition_MetaObject(const QAbstractTransition* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAbstractTransition_Metacast(QAbstractTransition* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAbstractTransition_Tr(const char* s) {
|
||||
QString _ret = QAbstractTransition::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -47,6 +47,12 @@ func (this *QAbstractTransition) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAbstractTransition_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAbstractTransition) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAbstractTransition_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAbstractTransition_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -30,6 +30,7 @@ typedef struct QStateMachine QStateMachine;
|
||||
#endif
|
||||
|
||||
QMetaObject* QAbstractTransition_MetaObject(const QAbstractTransition* self);
|
||||
void* QAbstractTransition_Metacast(QAbstractTransition* self, const char* param1);
|
||||
struct miqt_string* QAbstractTransition_Tr(const char* s);
|
||||
struct miqt_string* QAbstractTransition_TrUtf8(const char* s);
|
||||
QState* QAbstractTransition_SourceState(const QAbstractTransition* self);
|
||||
|
@ -184,6 +184,14 @@ QAccessibleTableCellInterface* QAccessibleInterface_TableCellInterface(QAccessib
|
||||
return self->tableCellInterface();
|
||||
}
|
||||
|
||||
void QAccessibleInterface_VirtualHook(QAccessibleInterface* self, int id, void* data) {
|
||||
self->virtual_hook(static_cast<int>(id), data);
|
||||
}
|
||||
|
||||
void* QAccessibleInterface_InterfaceCast(QAccessibleInterface* self, int param1) {
|
||||
return self->interface_cast(static_cast<QAccessible::InterfaceType>(param1));
|
||||
}
|
||||
|
||||
void QAccessibleTextInterface_Selection(const QAccessibleTextInterface* self, int selectionIndex, int* startOffset, int* endOffset) {
|
||||
self->selection(static_cast<int>(selectionIndex), static_cast<int*>(startOffset), static_cast<int*>(endOffset));
|
||||
}
|
||||
|
@ -440,6 +440,14 @@ func (this *QAccessibleInterface) TableCellInterface() *QAccessibleTableCellInte
|
||||
return newQAccessibleTableCellInterface_U(unsafe.Pointer(C.QAccessibleInterface_TableCellInterface(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAccessibleInterface) VirtualHook(id int, data unsafe.Pointer) {
|
||||
C.QAccessibleInterface_VirtualHook(this.h, (C.int)(id), data)
|
||||
}
|
||||
|
||||
func (this *QAccessibleInterface) InterfaceCast(param1 QAccessible__InterfaceType) unsafe.Pointer {
|
||||
return C.QAccessibleInterface_InterfaceCast(this.h, (C.int)(param1))
|
||||
}
|
||||
|
||||
type QAccessibleTextInterface struct {
|
||||
h *C.QAccessibleTextInterface
|
||||
}
|
||||
|
@ -116,6 +116,8 @@ QAccessibleActionInterface* QAccessibleInterface_ActionInterface(QAccessibleInte
|
||||
QAccessibleImageInterface* QAccessibleInterface_ImageInterface(QAccessibleInterface* self);
|
||||
QAccessibleTableInterface* QAccessibleInterface_TableInterface(QAccessibleInterface* self);
|
||||
QAccessibleTableCellInterface* QAccessibleInterface_TableCellInterface(QAccessibleInterface* self);
|
||||
void QAccessibleInterface_VirtualHook(QAccessibleInterface* self, int id, void* data);
|
||||
void* QAccessibleInterface_InterfaceCast(QAccessibleInterface* self, int param1);
|
||||
|
||||
void QAccessibleTextInterface_Selection(const QAccessibleTextInterface* self, int selectionIndex, int* startOffset, int* endOffset);
|
||||
int QAccessibleTextInterface_SelectionCount(const QAccessibleTextInterface* self);
|
||||
|
@ -30,6 +30,10 @@ QMetaObject* QAccessibleBridgePlugin_MetaObject(const QAccessibleBridgePlugin* s
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAccessibleBridgePlugin_Metacast(QAccessibleBridgePlugin* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAccessibleBridgePlugin_Tr(const char* s) {
|
||||
QString _ret = QAccessibleBridgePlugin::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -88,6 +88,12 @@ func (this *QAccessibleBridgePlugin) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAccessibleBridgePlugin_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAccessibleBridgePlugin) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAccessibleBridgePlugin_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAccessibleBridgePlugin_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -33,6 +33,7 @@ void QAccessibleBridge_OperatorAssign(QAccessibleBridge* self, QAccessibleBridge
|
||||
void QAccessibleBridge_Delete(QAccessibleBridge* self);
|
||||
|
||||
QMetaObject* QAccessibleBridgePlugin_MetaObject(const QAccessibleBridgePlugin* self);
|
||||
void* QAccessibleBridgePlugin_Metacast(QAccessibleBridgePlugin* self, const char* param1);
|
||||
struct miqt_string* QAccessibleBridgePlugin_Tr(const char* s);
|
||||
struct miqt_string* QAccessibleBridgePlugin_TrUtf8(const char* s);
|
||||
QAccessibleBridge* QAccessibleBridgePlugin_Create(QAccessibleBridgePlugin* self, struct miqt_string* key);
|
||||
|
@ -13,6 +13,10 @@ QMetaObject* QAccessiblePlugin_MetaObject(const QAccessiblePlugin* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAccessiblePlugin_Metacast(QAccessiblePlugin* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAccessiblePlugin_Tr(const char* s) {
|
||||
QString _ret = QAccessiblePlugin::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -40,6 +40,12 @@ func (this *QAccessiblePlugin) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAccessiblePlugin_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAccessiblePlugin) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAccessiblePlugin_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAccessiblePlugin_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -26,6 +26,7 @@ typedef struct QObject QObject;
|
||||
#endif
|
||||
|
||||
QMetaObject* QAccessiblePlugin_MetaObject(const QAccessiblePlugin* self);
|
||||
void* QAccessiblePlugin_Metacast(QAccessiblePlugin* self, const char* param1);
|
||||
struct miqt_string* QAccessiblePlugin_Tr(const char* s);
|
||||
struct miqt_string* QAccessiblePlugin_TrUtf8(const char* s);
|
||||
QAccessibleInterface* QAccessiblePlugin_Create(QAccessiblePlugin* self, struct miqt_string* key, QObject* object);
|
||||
|
@ -82,6 +82,10 @@ QColor* QAccessibleWidget_BackgroundColor(const QAccessibleWidget* self) {
|
||||
return new QColor(self->backgroundColor());
|
||||
}
|
||||
|
||||
void* QAccessibleWidget_InterfaceCast(QAccessibleWidget* self, int t) {
|
||||
return self->interface_cast(static_cast<QAccessible::InterfaceType>(t));
|
||||
}
|
||||
|
||||
struct miqt_array* QAccessibleWidget_ActionNames(const QAccessibleWidget* self) {
|
||||
QStringList _ret = self->actionNames();
|
||||
// Convert QList<> from C++ memory to manually-managed C memory
|
||||
|
@ -123,6 +123,10 @@ func (this *QAccessibleWidget) BackgroundColor() *QColor {
|
||||
return _goptr
|
||||
}
|
||||
|
||||
func (this *QAccessibleWidget) InterfaceCast(t QAccessible__InterfaceType) unsafe.Pointer {
|
||||
return C.QAccessibleWidget_InterfaceCast(this.h, (C.int)(t))
|
||||
}
|
||||
|
||||
func (this *QAccessibleWidget) ActionNames() []string {
|
||||
var _ma *C.struct_miqt_array = C.QAccessibleWidget_ActionNames(this.h)
|
||||
_ret := make([]string, int(_ma.len))
|
||||
|
@ -51,6 +51,7 @@ int QAccessibleWidget_Role(const QAccessibleWidget* self);
|
||||
QAccessible__State* QAccessibleWidget_State(const QAccessibleWidget* self);
|
||||
QColor* QAccessibleWidget_ForegroundColor(const QAccessibleWidget* self);
|
||||
QColor* QAccessibleWidget_BackgroundColor(const QAccessibleWidget* self);
|
||||
void* QAccessibleWidget_InterfaceCast(QAccessibleWidget* self, int t);
|
||||
struct miqt_array* QAccessibleWidget_ActionNames(const QAccessibleWidget* self);
|
||||
void QAccessibleWidget_DoAction(QAccessibleWidget* self, struct miqt_string* actionName);
|
||||
struct miqt_array* QAccessibleWidget_KeyBindingsForAction(const QAccessibleWidget* self, struct miqt_string* actionName);
|
||||
|
@ -49,6 +49,10 @@ QMetaObject* QAction_MetaObject(const QAction* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAction_Metacast(QAction* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAction_Tr(const char* s) {
|
||||
QString _ret = QAction::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -112,6 +112,12 @@ func (this *QAction) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAction_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAction) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAction_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAction_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -46,6 +46,7 @@ QAction* QAction_new4(QObject* parent);
|
||||
QAction* QAction_new5(struct miqt_string* text, QObject* parent);
|
||||
QAction* QAction_new6(QIcon* icon, struct miqt_string* text, QObject* parent);
|
||||
QMetaObject* QAction_MetaObject(const QAction* self);
|
||||
void* QAction_Metacast(QAction* self, const char* param1);
|
||||
struct miqt_string* QAction_Tr(const char* s);
|
||||
struct miqt_string* QAction_TrUtf8(const char* s);
|
||||
void QAction_SetActionGroup(QAction* self, QActionGroup* group);
|
||||
|
@ -19,6 +19,10 @@ QMetaObject* QActionGroup_MetaObject(const QActionGroup* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QActionGroup_Metacast(QActionGroup* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QActionGroup_Tr(const char* s) {
|
||||
QString _ret = QActionGroup::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -55,6 +55,12 @@ func (this *QActionGroup) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QActionGroup_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QActionGroup) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QActionGroup_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QActionGroup_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -29,6 +29,7 @@ typedef struct QObject QObject;
|
||||
|
||||
QActionGroup* QActionGroup_new(QObject* parent);
|
||||
QMetaObject* QActionGroup_MetaObject(const QActionGroup* self);
|
||||
void* QActionGroup_Metacast(QActionGroup* self, const char* param1);
|
||||
struct miqt_string* QActionGroup_Tr(const char* s);
|
||||
struct miqt_string* QActionGroup_TrUtf8(const char* s);
|
||||
QAction* QActionGroup_AddAction(QActionGroup* self, QAction* a);
|
||||
|
@ -12,6 +12,10 @@ QMetaObject* QAnimationGroup_MetaObject(const QAnimationGroup* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QAnimationGroup_Metacast(QAnimationGroup* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QAnimationGroup_Tr(const char* s) {
|
||||
QString _ret = QAnimationGroup::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -40,6 +40,12 @@ func (this *QAnimationGroup) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QAnimationGroup_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QAnimationGroup) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QAnimationGroup_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QAnimationGroup_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -24,6 +24,7 @@ typedef struct QMetaObject QMetaObject;
|
||||
#endif
|
||||
|
||||
QMetaObject* QAnimationGroup_MetaObject(const QAnimationGroup* self);
|
||||
void* QAnimationGroup_Metacast(QAnimationGroup* self, const char* param1);
|
||||
struct miqt_string* QAnimationGroup_Tr(const char* s);
|
||||
struct miqt_string* QAnimationGroup_TrUtf8(const char* s);
|
||||
QAbstractAnimation* QAnimationGroup_AnimationAt(const QAnimationGroup* self, int index);
|
||||
|
@ -31,6 +31,10 @@ QMetaObject* QApplication_MetaObject(const QApplication* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QApplication_Metacast(QApplication* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QApplication_Tr(const char* s) {
|
||||
QString _ret = QApplication::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -75,6 +75,12 @@ func (this *QApplication) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QApplication_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QApplication) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QApplication_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QApplication_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -46,6 +46,7 @@ typedef struct QWidget QWidget;
|
||||
QApplication* QApplication_new(int* argc, char** argv);
|
||||
QApplication* QApplication_new2(int* argc, char** argv, int param3);
|
||||
QMetaObject* QApplication_MetaObject(const QApplication* self);
|
||||
void* QApplication_Metacast(QApplication* self, const char* param1);
|
||||
struct miqt_string* QApplication_Tr(const char* s);
|
||||
struct miqt_string* QApplication_TrUtf8(const char* s);
|
||||
QStyle* QApplication_Style();
|
||||
|
@ -4,6 +4,14 @@
|
||||
#include "gen_qarraydata.h"
|
||||
#include "_cgo_export.h"
|
||||
|
||||
void* QArrayData_Data(QArrayData* self) {
|
||||
return self->data();
|
||||
}
|
||||
|
||||
const void* QArrayData_Data2(const QArrayData* self) {
|
||||
return (const void*) self->data();
|
||||
}
|
||||
|
||||
bool QArrayData_IsMutable(const QArrayData* self) {
|
||||
return self->isMutable();
|
||||
}
|
||||
|
@ -54,6 +54,14 @@ func newQArrayData_U(h unsafe.Pointer) *QArrayData {
|
||||
return newQArrayData((*C.QArrayData)(h))
|
||||
}
|
||||
|
||||
func (this *QArrayData) Data() unsafe.Pointer {
|
||||
return C.QArrayData_Data(this.h)
|
||||
}
|
||||
|
||||
func (this *QArrayData) Data2() unsafe.Pointer {
|
||||
return C.QArrayData_Data2(this.h)
|
||||
}
|
||||
|
||||
func (this *QArrayData) IsMutable() bool {
|
||||
return (bool)(C.QArrayData_IsMutable(this.h))
|
||||
}
|
||||
|
@ -25,6 +25,8 @@ typedef struct QArrayData QArrayData;
|
||||
typedef struct QtPrivate__QContainerImplHelper QtPrivate__QContainerImplHelper;
|
||||
#endif
|
||||
|
||||
void* QArrayData_Data(QArrayData* self);
|
||||
const void* QArrayData_Data2(const QArrayData* self);
|
||||
bool QArrayData_IsMutable(const QArrayData* self);
|
||||
size_t QArrayData_DetachCapacity(const QArrayData* self, size_t newSize);
|
||||
int QArrayData_DetachFlags(const QArrayData* self);
|
||||
|
@ -27,6 +27,10 @@ QMetaObject* QBoxLayout_MetaObject(const QBoxLayout* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QBoxLayout_Metacast(QBoxLayout* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QBoxLayout_Tr(const char* s) {
|
||||
QString _ret = QBoxLayout::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
@ -251,6 +255,10 @@ QMetaObject* QHBoxLayout_MetaObject(const QHBoxLayout* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QHBoxLayout_Metacast(QHBoxLayout* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QHBoxLayout_Tr(const char* s) {
|
||||
QString _ret = QHBoxLayout::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
@ -309,6 +317,10 @@ QMetaObject* QVBoxLayout_MetaObject(const QVBoxLayout* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QVBoxLayout_Metacast(QVBoxLayout* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QVBoxLayout_Tr(const char* s) {
|
||||
QString _ret = QVBoxLayout::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -63,6 +63,12 @@ func (this *QBoxLayout) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QBoxLayout_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QBoxLayout) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QBoxLayout_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QBoxLayout_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
@ -351,6 +357,12 @@ func (this *QHBoxLayout) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QHBoxLayout_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QHBoxLayout) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QHBoxLayout_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QHBoxLayout_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
@ -466,6 +478,12 @@ func (this *QVBoxLayout) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QVBoxLayout_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QVBoxLayout) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QVBoxLayout_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QVBoxLayout_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -40,6 +40,7 @@ typedef struct QWidget QWidget;
|
||||
QBoxLayout* QBoxLayout_new(int param1);
|
||||
QBoxLayout* QBoxLayout_new2(int param1, QWidget* parent);
|
||||
QMetaObject* QBoxLayout_MetaObject(const QBoxLayout* self);
|
||||
void* QBoxLayout_Metacast(QBoxLayout* self, const char* param1);
|
||||
struct miqt_string* QBoxLayout_Tr(const char* s);
|
||||
struct miqt_string* QBoxLayout_TrUtf8(const char* s);
|
||||
int QBoxLayout_Direction(const QBoxLayout* self);
|
||||
@ -92,6 +93,7 @@ void QBoxLayout_Delete(QBoxLayout* self);
|
||||
QHBoxLayout* QHBoxLayout_new();
|
||||
QHBoxLayout* QHBoxLayout_new2(QWidget* parent);
|
||||
QMetaObject* QHBoxLayout_MetaObject(const QHBoxLayout* self);
|
||||
void* QHBoxLayout_Metacast(QHBoxLayout* self, const char* param1);
|
||||
struct miqt_string* QHBoxLayout_Tr(const char* s);
|
||||
struct miqt_string* QHBoxLayout_TrUtf8(const char* s);
|
||||
struct miqt_string* QHBoxLayout_Tr2(const char* s, const char* c);
|
||||
@ -103,6 +105,7 @@ void QHBoxLayout_Delete(QHBoxLayout* self);
|
||||
QVBoxLayout* QVBoxLayout_new();
|
||||
QVBoxLayout* QVBoxLayout_new2(QWidget* parent);
|
||||
QMetaObject* QVBoxLayout_MetaObject(const QVBoxLayout* self);
|
||||
void* QVBoxLayout_Metacast(QVBoxLayout* self, const char* param1);
|
||||
struct miqt_string* QVBoxLayout_Tr(const char* s);
|
||||
struct miqt_string* QVBoxLayout_TrUtf8(const char* s);
|
||||
struct miqt_string* QVBoxLayout_Tr2(const char* s, const char* c);
|
||||
|
@ -29,6 +29,10 @@ QMetaObject* QBuffer_MetaObject(const QBuffer* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QBuffer_Metacast(QBuffer* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QBuffer_Tr(const char* s) {
|
||||
QString _ret = QBuffer::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -64,6 +64,12 @@ func (this *QBuffer) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QBuffer_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QBuffer) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QBuffer_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QBuffer_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -30,6 +30,7 @@ QBuffer* QBuffer_new2(QByteArray* buf);
|
||||
QBuffer* QBuffer_new3(QObject* parent);
|
||||
QBuffer* QBuffer_new4(QByteArray* buf, QObject* parent);
|
||||
QMetaObject* QBuffer_MetaObject(const QBuffer* self);
|
||||
void* QBuffer_Metacast(QBuffer* self, const char* param1);
|
||||
struct miqt_string* QBuffer_Tr(const char* s);
|
||||
struct miqt_string* QBuffer_TrUtf8(const char* s);
|
||||
QByteArray* QBuffer_Buffer(QBuffer* self);
|
||||
|
@ -22,6 +22,10 @@ QMetaObject* QButtonGroup_MetaObject(const QButtonGroup* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QButtonGroup_Metacast(QButtonGroup* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QButtonGroup_Tr(const char* s) {
|
||||
QString _ret = QButtonGroup::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -53,6 +53,12 @@ func (this *QButtonGroup) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QButtonGroup_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QButtonGroup) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QButtonGroup_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QButtonGroup_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -28,6 +28,7 @@ typedef struct QObject QObject;
|
||||
QButtonGroup* QButtonGroup_new();
|
||||
QButtonGroup* QButtonGroup_new2(QObject* parent);
|
||||
QMetaObject* QButtonGroup_MetaObject(const QButtonGroup* self);
|
||||
void* QButtonGroup_Metacast(QButtonGroup* self, const char* param1);
|
||||
struct miqt_string* QButtonGroup_Tr(const char* s);
|
||||
struct miqt_string* QButtonGroup_TrUtf8(const char* s);
|
||||
void QButtonGroup_SetExclusive(QButtonGroup* self, bool exclusive);
|
||||
|
@ -24,6 +24,10 @@ QMetaObject* QCalendarWidget_MetaObject(const QCalendarWidget* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QCalendarWidget_Metacast(QCalendarWidget* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QCalendarWidget_Tr(const char* s) {
|
||||
QString _ret = QCalendarWidget::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -76,6 +76,12 @@ func (this *QCalendarWidget) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QCalendarWidget_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QCalendarWidget) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QCalendarWidget_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QCalendarWidget_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -34,6 +34,7 @@ typedef struct QWidget QWidget;
|
||||
QCalendarWidget* QCalendarWidget_new();
|
||||
QCalendarWidget* QCalendarWidget_new2(QWidget* parent);
|
||||
QMetaObject* QCalendarWidget_MetaObject(const QCalendarWidget* self);
|
||||
void* QCalendarWidget_Metacast(QCalendarWidget* self, const char* param1);
|
||||
struct miqt_string* QCalendarWidget_Tr(const char* s);
|
||||
struct miqt_string* QCalendarWidget_TrUtf8(const char* s);
|
||||
QSize* QCalendarWidget_SizeHint(const QCalendarWidget* self);
|
||||
|
@ -31,6 +31,10 @@ QMetaObject* QCheckBox_MetaObject(const QCheckBox* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QCheckBox_Metacast(QCheckBox* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QCheckBox_Tr(const char* s) {
|
||||
QString _ret = QCheckBox::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -69,6 +69,12 @@ func (this *QCheckBox) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QCheckBox_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QCheckBox) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QCheckBox_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QCheckBox_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -30,6 +30,7 @@ QCheckBox* QCheckBox_new2(struct miqt_string* text);
|
||||
QCheckBox* QCheckBox_new3(QWidget* parent);
|
||||
QCheckBox* QCheckBox_new4(struct miqt_string* text, QWidget* parent);
|
||||
QMetaObject* QCheckBox_MetaObject(const QCheckBox* self);
|
||||
void* QCheckBox_Metacast(QCheckBox* self, const char* param1);
|
||||
struct miqt_string* QCheckBox_Tr(const char* s);
|
||||
struct miqt_string* QCheckBox_TrUtf8(const char* s);
|
||||
QSize* QCheckBox_SizeHint(const QCheckBox* self);
|
||||
|
@ -14,6 +14,10 @@ QMetaObject* QClipboard_MetaObject(const QClipboard* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QClipboard_Metacast(QClipboard* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QClipboard_Tr(const char* s) {
|
||||
QString _ret = QClipboard::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -49,6 +49,12 @@ func (this *QClipboard) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QClipboard_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QClipboard) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QClipboard_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QClipboard_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -28,6 +28,7 @@ typedef struct QPixmap QPixmap;
|
||||
#endif
|
||||
|
||||
QMetaObject* QClipboard_MetaObject(const QClipboard* self);
|
||||
void* QClipboard_Metacast(QClipboard* self, const char* param1);
|
||||
struct miqt_string* QClipboard_Tr(const char* s);
|
||||
struct miqt_string* QClipboard_TrUtf8(const char* s);
|
||||
void QClipboard_Clear(QClipboard* self);
|
||||
|
@ -29,6 +29,10 @@ QMetaObject* QColorDialog_MetaObject(const QColorDialog* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QColorDialog_Metacast(QColorDialog* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QColorDialog_Tr(const char* s) {
|
||||
QString _ret = QColorDialog::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -73,6 +73,12 @@ func (this *QColorDialog) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QColorDialog_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QColorDialog) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QColorDialog_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QColorDialog_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -30,6 +30,7 @@ QColorDialog* QColorDialog_new2(QColor* initial);
|
||||
QColorDialog* QColorDialog_new3(QWidget* parent);
|
||||
QColorDialog* QColorDialog_new4(QColor* initial, QWidget* parent);
|
||||
QMetaObject* QColorDialog_MetaObject(const QColorDialog* self);
|
||||
void* QColorDialog_Metacast(QColorDialog* self, const char* param1);
|
||||
struct miqt_string* QColorDialog_Tr(const char* s);
|
||||
struct miqt_string* QColorDialog_TrUtf8(const char* s);
|
||||
void QColorDialog_SetCurrentColor(QColorDialog* self, QColor* color);
|
||||
|
@ -27,6 +27,10 @@ QMetaObject* QColumnView_MetaObject(const QColumnView* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QColumnView_Metacast(QColumnView* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QColumnView_Tr(const char* s) {
|
||||
QString _ret = QColumnView::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -53,6 +53,12 @@ func (this *QColumnView) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QColumnView_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QColumnView) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QColumnView_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QColumnView_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -38,6 +38,7 @@ typedef struct QWidget QWidget;
|
||||
QColumnView* QColumnView_new();
|
||||
QColumnView* QColumnView_new2(QWidget* parent);
|
||||
QMetaObject* QColumnView_MetaObject(const QColumnView* self);
|
||||
void* QColumnView_Metacast(QColumnView* self, const char* param1);
|
||||
struct miqt_string* QColumnView_Tr(const char* s);
|
||||
struct miqt_string* QColumnView_TrUtf8(const char* s);
|
||||
void QColumnView_UpdatePreviewWidget(QColumnView* self, QModelIndex* index);
|
||||
|
@ -32,6 +32,10 @@ QMetaObject* QComboBox_MetaObject(const QComboBox* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QComboBox_Metacast(QComboBox* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QComboBox_Tr(const char* s) {
|
||||
QString _ret = QComboBox::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
@ -74,6 +74,12 @@ func (this *QComboBox) MetaObject() *QMetaObject {
|
||||
return newQMetaObject_U(unsafe.Pointer(C.QComboBox_MetaObject(this.h)))
|
||||
}
|
||||
|
||||
func (this *QComboBox) Metacast(param1 string) unsafe.Pointer {
|
||||
param1_Cstring := C.CString(param1)
|
||||
defer C.free(unsafe.Pointer(param1_Cstring))
|
||||
return C.QComboBox_Metacast(this.h, param1_Cstring)
|
||||
}
|
||||
|
||||
func QComboBox_Tr(s string) string {
|
||||
s_Cstring := C.CString(s)
|
||||
defer C.free(unsafe.Pointer(s_Cstring))
|
||||
|
@ -48,6 +48,7 @@ typedef struct QWidget QWidget;
|
||||
QComboBox* QComboBox_new();
|
||||
QComboBox* QComboBox_new2(QWidget* parent);
|
||||
QMetaObject* QComboBox_MetaObject(const QComboBox* self);
|
||||
void* QComboBox_Metacast(QComboBox* self, const char* param1);
|
||||
struct miqt_string* QComboBox_Tr(const char* s);
|
||||
struct miqt_string* QComboBox_TrUtf8(const char* s);
|
||||
int QComboBox_MaxVisibleItems(const QComboBox* self);
|
||||
|
@ -42,6 +42,10 @@ QMetaObject* QCommandLinkButton_MetaObject(const QCommandLinkButton* self) {
|
||||
return (QMetaObject*) self->metaObject();
|
||||
}
|
||||
|
||||
void* QCommandLinkButton_Metacast(QCommandLinkButton* self, const char* param1) {
|
||||
return self->qt_metacast(param1);
|
||||
}
|
||||
|
||||
struct miqt_string* QCommandLinkButton_Tr(const char* s) {
|
||||
QString _ret = QCommandLinkButton::tr(s);
|
||||
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user