From 9583866dffc8a400f489553773c3681d87ab6e88 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 17 Nov 2024 19:21:37 +1300 Subject: [PATCH] qt: rebuild (updated header guards, container comments, add QPair) --- qt-extras/scintillaedit/gen_ScintillaEdit.cpp | 28 ++++ qt-extras/scintillaedit/gen_ScintillaEdit.go | 38 +++++ qt-extras/scintillaedit/gen_ScintillaEdit.h | 7 +- .../qscintilla/gen_qsciabstractapis.cpp | 4 +- .../qscintilla/gen_qsciabstractapis.h | 9 +- .../qscintilla/gen_qsciapis.cpp | 6 +- .../qscintilla/gen_qsciapis.h | 11 +- .../qscintilla/gen_qscicommand.h | 5 +- .../qscintilla/gen_qscicommandset.cpp | 2 +- .../qscintilla/gen_qscicommandset.h | 7 +- .../qscintilla/gen_qscidocument.h | 5 +- .../qscintilla/gen_qscilexer.cpp | 2 +- .../qscintilla/gen_qscilexer.h | 7 +- .../qscintilla/gen_qscilexeravs.h | 5 +- .../qscintilla/gen_qscilexerbash.h | 5 +- .../qscintilla/gen_qscilexerbatch.h | 5 +- .../qscintilla/gen_qscilexercmake.h | 5 +- .../qscintilla/gen_qscilexercoffeescript.cpp | 2 +- .../qscintilla/gen_qscilexercoffeescript.h | 7 +- .../qscintilla/gen_qscilexercpp.cpp | 2 +- .../qscintilla/gen_qscilexercpp.h | 7 +- .../qscintilla/gen_qscilexercsharp.h | 5 +- .../qscintilla/gen_qscilexercss.h | 5 +- .../qscintilla/gen_qscilexercustom.h | 5 +- .../qscintilla/gen_qscilexerd.cpp | 2 +- .../qscintilla/gen_qscilexerd.h | 7 +- .../qscintilla/gen_qscilexerdiff.h | 5 +- .../qscintilla/gen_qscilexeredifact.h | 5 +- .../qscintilla/gen_qscilexerfortran.h | 5 +- .../qscintilla/gen_qscilexerfortran77.h | 5 +- .../qscintilla/gen_qscilexerhtml.h | 5 +- .../qscintilla/gen_qscilexeridl.h | 5 +- .../qscintilla/gen_qscilexerjava.h | 5 +- .../qscintilla/gen_qscilexerjavascript.h | 5 +- .../qscintilla/gen_qscilexerjson.h | 5 +- .../qscintilla/gen_qscilexerlua.cpp | 2 +- .../qscintilla/gen_qscilexerlua.h | 7 +- .../qscintilla/gen_qscilexermakefile.h | 5 +- .../qscintilla/gen_qscilexermarkdown.h | 5 +- .../qscintilla/gen_qscilexermatlab.h | 5 +- .../qscintilla/gen_qscilexeroctave.h | 5 +- .../qscintilla/gen_qscilexerpascal.cpp | 2 +- .../qscintilla/gen_qscilexerpascal.h | 7 +- .../qscintilla/gen_qscilexerperl.cpp | 2 +- .../qscintilla/gen_qscilexerperl.h | 7 +- .../qscintilla/gen_qscilexerpo.h | 5 +- .../qscintilla/gen_qscilexerpostscript.h | 5 +- .../qscintilla/gen_qscilexerpov.h | 5 +- .../qscintilla/gen_qscilexerproperties.h | 5 +- .../qscintilla/gen_qscilexerpython.cpp | 2 +- .../qscintilla/gen_qscilexerpython.h | 7 +- .../qscintilla/gen_qscilexerruby.h | 5 +- .../qscintilla/gen_qscilexerspice.h | 5 +- .../qscintilla/gen_qscilexersql.h | 5 +- .../qscintilla/gen_qscilexertcl.h | 5 +- .../qscintilla/gen_qscilexertex.h | 5 +- .../qscintilla/gen_qscilexerverilog.h | 5 +- .../qscintilla/gen_qscilexervhdl.h | 5 +- .../qscintilla/gen_qscilexerxml.h | 5 +- .../qscintilla/gen_qscilexeryaml.h | 5 +- .../qscintilla/gen_qscimacro.h | 5 +- .../qscintilla/gen_qsciprinter.h | 5 +- .../qscintilla/gen_qsciscintilla.cpp | 10 +- .../qscintilla/gen_qsciscintilla.h | 15 +- .../qscintilla/gen_qsciscintillabase.go | 2 +- .../qscintilla/gen_qsciscintillabase.h | 5 +- .../qscintilla/gen_qscistyle.h | 5 +- .../qscintilla/gen_qscistyledtext.h | 5 +- .../qscintilla6/gen_qsciabstractapis.cpp | 4 +- .../qscintilla6/gen_qsciabstractapis.h | 9 +- .../qscintilla6/gen_qsciapis.cpp | 6 +- .../qscintilla6/gen_qsciapis.h | 11 +- .../qscintilla6/gen_qscicommand.h | 5 +- .../qscintilla6/gen_qscicommandset.cpp | 2 +- .../qscintilla6/gen_qscicommandset.h | 7 +- .../qscintilla6/gen_qscidocument.h | 5 +- .../qscintilla6/gen_qscilexer.cpp | 2 +- .../qscintilla6/gen_qscilexer.h | 7 +- .../qscintilla6/gen_qscilexeravs.h | 5 +- .../qscintilla6/gen_qscilexerbash.h | 5 +- .../qscintilla6/gen_qscilexerbatch.h | 5 +- .../qscintilla6/gen_qscilexercmake.h | 5 +- .../qscintilla6/gen_qscilexercoffeescript.cpp | 2 +- .../qscintilla6/gen_qscilexercoffeescript.h | 7 +- .../qscintilla6/gen_qscilexercpp.cpp | 2 +- .../qscintilla6/gen_qscilexercpp.h | 7 +- .../qscintilla6/gen_qscilexercsharp.h | 5 +- .../qscintilla6/gen_qscilexercss.h | 5 +- .../qscintilla6/gen_qscilexercustom.h | 5 +- .../qscintilla6/gen_qscilexerd.cpp | 2 +- .../qscintilla6/gen_qscilexerd.h | 7 +- .../qscintilla6/gen_qscilexerdiff.h | 5 +- .../qscintilla6/gen_qscilexeredifact.h | 5 +- .../qscintilla6/gen_qscilexerfortran.h | 5 +- .../qscintilla6/gen_qscilexerfortran77.h | 5 +- .../qscintilla6/gen_qscilexerhtml.h | 5 +- .../qscintilla6/gen_qscilexeridl.h | 5 +- .../qscintilla6/gen_qscilexerjava.h | 5 +- .../qscintilla6/gen_qscilexerjavascript.h | 5 +- .../qscintilla6/gen_qscilexerjson.h | 5 +- .../qscintilla6/gen_qscilexerlua.cpp | 2 +- .../qscintilla6/gen_qscilexerlua.h | 7 +- .../qscintilla6/gen_qscilexermakefile.h | 5 +- .../qscintilla6/gen_qscilexermarkdown.h | 5 +- .../qscintilla6/gen_qscilexermatlab.h | 5 +- .../qscintilla6/gen_qscilexeroctave.h | 5 +- .../qscintilla6/gen_qscilexerpascal.cpp | 2 +- .../qscintilla6/gen_qscilexerpascal.h | 7 +- .../qscintilla6/gen_qscilexerperl.cpp | 2 +- .../qscintilla6/gen_qscilexerperl.h | 7 +- .../qscintilla6/gen_qscilexerpo.h | 5 +- .../qscintilla6/gen_qscilexerpostscript.h | 5 +- .../qscintilla6/gen_qscilexerpov.h | 5 +- .../qscintilla6/gen_qscilexerproperties.h | 5 +- .../qscintilla6/gen_qscilexerpython.cpp | 2 +- .../qscintilla6/gen_qscilexerpython.h | 7 +- .../qscintilla6/gen_qscilexerruby.h | 5 +- .../qscintilla6/gen_qscilexerspice.h | 5 +- .../qscintilla6/gen_qscilexersql.h | 5 +- .../qscintilla6/gen_qscilexertcl.h | 5 +- .../qscintilla6/gen_qscilexertex.h | 5 +- .../qscintilla6/gen_qscilexerverilog.h | 5 +- .../qscintilla6/gen_qscilexervhdl.h | 5 +- .../qscintilla6/gen_qscilexerxml.h | 5 +- .../qscintilla6/gen_qscilexeryaml.h | 5 +- .../qscintilla6/gen_qscimacro.h | 5 +- .../qscintilla6/gen_qsciprinter.h | 5 +- .../qscintilla6/gen_qsciscintilla.cpp | 10 +- .../qscintilla6/gen_qsciscintilla.h | 15 +- .../qscintilla6/gen_qsciscintillabase.go | 2 +- .../qscintilla6/gen_qsciscintillabase.h | 5 +- .../qscintilla6/gen_qscistyle.h | 5 +- .../qscintilla6/gen_qscistyledtext.h | 5 +- qt/cbor/gen_qcborarray.cpp | 2 +- qt/cbor/gen_qcborarray.h | 7 +- qt/cbor/gen_qcborcommon.h | 5 +- qt/cbor/gen_qcbormap.cpp | 47 +++++- qt/cbor/gen_qcbormap.go | 67 +++++++++ qt/cbor/gen_qcbormap.h | 18 ++- qt/cbor/gen_qcborstreamreader.h | 5 +- qt/cbor/gen_qcborstreamwriter.h | 5 +- qt/cbor/gen_qcborvalue.h | 5 +- qt/gen_qabstractanimation.h | 5 +- qt/gen_qabstractbutton.h | 5 +- qt/gen_qabstracteventdispatcher.cpp | 2 +- qt/gen_qabstracteventdispatcher.h | 7 +- qt/gen_qabstractitemdelegate.cpp | 2 +- qt/gen_qabstractitemdelegate.h | 7 +- qt/gen_qabstractitemmodel.cpp | 36 ++--- qt/gen_qabstractitemmodel.h | 31 ++-- qt/gen_qabstractitemview.h | 5 +- qt/gen_qabstractnativeeventfilter.h | 5 +- qt/gen_qabstractproxymodel.cpp | 8 +- qt/gen_qabstractproxymodel.h | 13 +- qt/gen_qabstractscrollarea.cpp | 2 +- qt/gen_qabstractscrollarea.h | 7 +- qt/gen_qabstractslider.h | 5 +- qt/gen_qabstractspinbox.h | 5 +- qt/gen_qabstractstate.h | 5 +- qt/gen_qabstracttextdocumentlayout.h | 5 +- qt/gen_qabstracttransition.cpp | 6 +- qt/gen_qabstracttransition.h | 11 +- qt/gen_qaccessible.cpp | 77 +++++++++- qt/gen_qaccessible.go | 67 +++++++++ qt/gen_qaccessible.h | 24 +-- qt/gen_qaccessiblebridge.h | 5 +- qt/gen_qaccessibleobject.h | 5 +- qt/gen_qaccessibleplugin.h | 5 +- qt/gen_qaccessiblewidget.cpp | 52 ++++++- qt/gen_qaccessiblewidget.go | 50 ++++++ qt/gen_qaccessiblewidget.h | 11 +- qt/gen_qaction.cpp | 8 +- qt/gen_qaction.h | 13 +- qt/gen_qactiongroup.cpp | 2 +- qt/gen_qactiongroup.h | 7 +- qt/gen_qanimationgroup.h | 5 +- qt/gen_qapplication.cpp | 4 +- qt/gen_qapplication.h | 9 +- qt/gen_qarraydata.h | 5 +- qt/gen_qbackingstore.h | 5 +- qt/gen_qbasictimer.h | 5 +- qt/gen_qbitarray.h | 5 +- qt/gen_qbitmap.h | 5 +- qt/gen_qboxlayout.h | 5 +- qt/gen_qbrush.cpp | 39 +++++ qt/gen_qbrush.go | 53 +++++++ qt/gen_qbrush.h | 7 +- qt/gen_qbuffer.h | 5 +- qt/gen_qbuttongroup.cpp | 2 +- qt/gen_qbuttongroup.h | 7 +- qt/gen_qbytearraymatcher.h | 5 +- qt/gen_qcalendar.cpp | 2 +- qt/gen_qcalendar.h | 7 +- qt/gen_qcalendarwidget.cpp | 2 +- qt/gen_qcalendarwidget.h | 7 +- qt/gen_qchar.h | 5 +- qt/gen_qcheckbox.h | 5 +- qt/gen_qclipboard.h | 5 +- qt/gen_qcollator.h | 5 +- qt/gen_qcolor.cpp | 2 +- qt/gen_qcolor.h | 7 +- qt/gen_qcolordialog.h | 5 +- qt/gen_qcolormap.cpp | 2 +- qt/gen_qcolormap.h | 7 +- qt/gen_qcolorspace.h | 5 +- qt/gen_qcolortransform.h | 5 +- qt/gen_qcolumnview.cpp | 4 +- qt/gen_qcolumnview.h | 9 +- qt/gen_qcombobox.cpp | 4 +- qt/gen_qcombobox.h | 9 +- qt/gen_qcommandlineoption.cpp | 14 +- qt/gen_qcommandlineoption.h | 19 +-- qt/gen_qcommandlineparser.cpp | 16 +- qt/gen_qcommandlineparser.h | 21 +-- qt/gen_qcommandlinkbutton.h | 5 +- qt/gen_qcommonstyle.h | 5 +- qt/gen_qcompleter.cpp | 6 +- qt/gen_qcompleter.h | 11 +- qt/gen_qconcatenatetablesproxymodel.cpp | 10 +- qt/gen_qconcatenatetablesproxymodel.h | 15 +- qt/gen_qcontiguouscache.h | 5 +- qt/gen_qcoreapplication.cpp | 6 +- qt/gen_qcoreapplication.h | 11 +- qt/gen_qcoreevent.h | 5 +- qt/gen_qcryptographichash.h | 5 +- qt/gen_qcursor.h | 5 +- qt/gen_qdatastream.h | 5 +- qt/gen_qdatawidgetmapper.h | 5 +- qt/gen_qdatetime.h | 5 +- qt/gen_qdatetimeedit.h | 5 +- qt/gen_qdeadlinetimer.cpp | 14 ++ qt/gen_qdeadlinetimer.go | 17 +++ qt/gen_qdeadlinetimer.h | 6 +- qt/gen_qdebug.h | 5 +- qt/gen_qdesktopservices.h | 5 +- qt/gen_qdesktopwidget.h | 5 +- qt/gen_qdial.h | 5 +- qt/gen_qdialog.h | 5 +- qt/gen_qdialogbuttonbox.cpp | 2 +- qt/gen_qdialogbuttonbox.h | 7 +- qt/gen_qdir.cpp | 38 ++--- qt/gen_qdir.h | 43 +++--- qt/gen_qdiriterator.cpp | 6 +- qt/gen_qdiriterator.h | 11 +- qt/gen_qdirmodel.cpp | 12 +- qt/gen_qdirmodel.h | 17 ++- qt/gen_qdockwidget.h | 5 +- qt/gen_qdrag.h | 5 +- qt/gen_qdrawutil.h | 5 +- qt/gen_qeasingcurve.cpp | 2 +- qt/gen_qeasingcurve.h | 7 +- qt/gen_qelapsedtimer.h | 5 +- qt/gen_qerrormessage.h | 5 +- qt/gen_qevent.cpp | 14 +- qt/gen_qevent.h | 19 +-- qt/gen_qeventloop.h | 5 +- qt/gen_qeventtransition.h | 5 +- qt/gen_qexception.h | 5 +- qt/gen_qfactoryinterface.cpp | 2 +- qt/gen_qfactoryinterface.h | 7 +- qt/gen_qfile.h | 5 +- qt/gen_qfiledevice.go | 4 +- qt/gen_qfiledevice.h | 5 +- qt/gen_qfiledialog.cpp | 54 +++---- qt/gen_qfiledialog.h | 55 +++---- qt/gen_qfileiconprovider.h | 5 +- qt/gen_qfileinfo.h | 5 +- qt/gen_qfileselector.cpp | 6 +- qt/gen_qfileselector.h | 11 +- qt/gen_qfilesystemmodel.cpp | 8 +- qt/gen_qfilesystemmodel.h | 13 +- qt/gen_qfilesystemwatcher.cpp | 12 +- qt/gen_qfilesystemwatcher.h | 17 ++- qt/gen_qfinalstate.h | 5 +- qt/gen_qfloat16.h | 5 +- qt/gen_qfocusframe.h | 5 +- qt/gen_qfont.cpp | 10 +- qt/gen_qfont.h | 15 +- qt/gen_qfontcombobox.h | 5 +- qt/gen_qfontdatabase.cpp | 20 +-- qt/gen_qfontdatabase.h | 25 +-- qt/gen_qfontdialog.h | 5 +- qt/gen_qfontinfo.h | 5 +- qt/gen_qfontmetrics.h | 5 +- qt/gen_qformlayout.h | 5 +- qt/gen_qframe.h | 5 +- qt/gen_qfutureinterface.h | 5 +- qt/gen_qfuturewatcher.h | 5 +- qt/gen_qgenericplugin.h | 5 +- qt/gen_qgenericpluginfactory.cpp | 2 +- qt/gen_qgenericpluginfactory.h | 7 +- qt/gen_qgesture.cpp | 8 +- qt/gen_qgesture.h | 13 +- qt/gen_qgesturerecognizer.h | 5 +- qt/gen_qglobal.h | 5 +- qt/gen_qglyphrun.cpp | 8 +- qt/gen_qglyphrun.h | 13 +- qt/gen_qgraphicsanchorlayout.h | 5 +- qt/gen_qgraphicseffect.h | 5 +- qt/gen_qgraphicsgridlayout.h | 5 +- qt/gen_qgraphicsitem.cpp | 10 +- qt/gen_qgraphicsitem.h | 15 +- qt/gen_qgraphicsitemanimation.cpp | 116 ++++++++++++++ qt/gen_qgraphicsitemanimation.go | 142 ++++++++++++++++++ qt/gen_qgraphicsitemanimation.h | 10 +- qt/gen_qgraphicslayout.h | 5 +- qt/gen_qgraphicslayoutitem.h | 5 +- qt/gen_qgraphicslinearlayout.h | 5 +- qt/gen_qgraphicsproxywidget.h | 5 +- qt/gen_qgraphicsscene.cpp | 46 +++--- qt/gen_qgraphicsscene.h | 49 +++--- qt/gen_qgraphicssceneevent.h | 5 +- qt/gen_qgraphicstransform.h | 5 +- qt/gen_qgraphicsview.cpp | 20 +-- qt/gen_qgraphicsview.h | 25 +-- qt/gen_qgraphicswidget.cpp | 6 +- qt/gen_qgraphicswidget.h | 11 +- qt/gen_qgridlayout.h | 5 +- qt/gen_qgroupbox.h | 5 +- qt/gen_qguiapplication.cpp | 6 +- qt/gen_qguiapplication.h | 11 +- qt/gen_qhashfunctions.h | 5 +- qt/gen_qheaderview.h | 5 +- qt/gen_qhistorystate.h | 5 +- qt/gen_qicon.cpp | 14 +- qt/gen_qicon.h | 19 +-- qt/gen_qiconengine.cpp | 6 +- qt/gen_qiconengine.h | 11 +- qt/gen_qiconengineplugin.h | 5 +- qt/gen_qidentityproxymodel.cpp | 6 +- qt/gen_qidentityproxymodel.h | 11 +- qt/gen_qimage.cpp | 10 +- qt/gen_qimage.go | 12 +- qt/gen_qimage.h | 15 +- qt/gen_qimageiohandler.h | 5 +- qt/gen_qimagereader.cpp | 10 +- qt/gen_qimagereader.h | 15 +- qt/gen_qimagewriter.cpp | 8 +- qt/gen_qimagewriter.h | 13 +- qt/gen_qinputdialog.cpp | 16 +- qt/gen_qinputdialog.h | 21 +-- qt/gen_qinputmethod.h | 5 +- qt/gen_qiodevice.h | 5 +- qt/gen_qitemdelegate.h | 5 +- qt/gen_qitemeditorfactory.h | 5 +- qt/gen_qitemselectionmodel.cpp | 12 +- qt/gen_qitemselectionmodel.h | 17 ++- qt/gen_qjsonarray.cpp | 2 +- qt/gen_qjsonarray.h | 7 +- qt/gen_qjsondocument.h | 5 +- qt/gen_qjsonobject.cpp | 10 +- qt/gen_qjsonobject.h | 15 +- qt/gen_qjsonvalue.h | 5 +- qt/gen_qkeyeventtransition.h | 5 +- qt/gen_qkeysequence.cpp | 10 +- qt/gen_qkeysequence.h | 15 +- qt/gen_qkeysequenceedit.h | 5 +- qt/gen_qlabel.h | 5 +- qt/gen_qlayout.h | 5 +- qt/gen_qlayoutitem.h | 5 +- qt/gen_qlcdnumber.h | 5 +- qt/gen_qlibrary.h | 5 +- qt/gen_qlibraryinfo.cpp | 2 +- qt/gen_qlibraryinfo.h | 7 +- qt/gen_qline.h | 5 +- qt/gen_qlineedit.h | 5 +- qt/gen_qlinkedlist.h | 5 +- qt/gen_qlistview.cpp | 4 +- qt/gen_qlistview.h | 7 +- qt/gen_qlistwidget.cpp | 8 +- qt/gen_qlistwidget.h | 13 +- qt/gen_qlocale.cpp | 10 +- qt/gen_qlocale.h | 15 +- qt/gen_qlockfile.h | 5 +- qt/gen_qloggingcategory.h | 5 +- qt/gen_qmainwindow.cpp | 4 +- qt/gen_qmainwindow.h | 9 +- qt/gen_qmargins.h | 5 +- qt/gen_qmatrix.h | 5 +- qt/gen_qmatrix4x4.go | 6 +- qt/gen_qmatrix4x4.h | 5 +- qt/gen_qmdiarea.cpp | 4 +- qt/gen_qmdiarea.h | 9 +- qt/gen_qmdisubwindow.h | 5 +- qt/gen_qmenu.cpp | 6 +- qt/gen_qmenu.h | 11 +- qt/gen_qmenubar.h | 5 +- qt/gen_qmessageauthenticationcode.h | 5 +- qt/gen_qmessagebox.cpp | 2 +- qt/gen_qmessagebox.h | 7 +- qt/gen_qmetaobject.cpp | 4 +- qt/gen_qmetaobject.h | 9 +- qt/gen_qmetatype.h | 5 +- qt/gen_qmimedata.cpp | 6 +- qt/gen_qmimedata.h | 11 +- qt/gen_qmimedatabase.cpp | 4 +- qt/gen_qmimedatabase.h | 9 +- qt/gen_qmimetype.cpp | 10 +- qt/gen_qmimetype.h | 15 +- qt/gen_qmouseeventtransition.h | 5 +- qt/gen_qmovie.cpp | 2 +- qt/gen_qmovie.h | 7 +- qt/gen_qmutex.h | 5 +- qt/gen_qnamespace.h | 5 +- qt/gen_qobject.cpp | 4 +- qt/gen_qobject.h | 9 +- qt/gen_qobjectcleanuphandler.h | 5 +- qt/gen_qobjectdefs.h | 5 +- qt/gen_qoffscreensurface.h | 5 +- qt/gen_qoperatingsystemversion.h | 5 +- qt/gen_qpagedpaintdevice.h | 5 +- qt/gen_qpagelayout.h | 5 +- qt/gen_qpagesize.h | 5 +- qt/gen_qpaintdevice.h | 5 +- qt/gen_qpaintdevicewindow.h | 5 +- qt/gen_qpaintengine.h | 5 +- qt/gen_qpainter.cpp | 12 +- qt/gen_qpainter.h | 17 ++- qt/gen_qpainterpath.cpp | 4 +- qt/gen_qpainterpath.h | 9 +- qt/gen_qpalette.h | 5 +- qt/gen_qparallelanimationgroup.h | 5 +- qt/gen_qpauseanimation.h | 5 +- qt/gen_qpdfwriter.h | 5 +- qt/gen_qpen.cpp | 4 +- qt/gen_qpen.h | 9 +- qt/gen_qpicture.cpp | 12 +- qt/gen_qpicture.h | 17 ++- qt/gen_qpictureformatplugin.h | 5 +- qt/gen_qpixelformat.h | 5 +- qt/gen_qpixmap.h | 5 +- qt/gen_qpixmapcache.h | 5 +- qt/gen_qplaintextedit.cpp | 4 +- qt/gen_qplaintextedit.h | 9 +- qt/gen_qplugin.h | 5 +- qt/gen_qpluginloader.cpp | 4 +- qt/gen_qpluginloader.h | 9 +- qt/gen_qpoint.h | 5 +- qt/gen_qprocess.cpp | 26 ++-- qt/gen_qprocess.h | 31 ++-- qt/gen_qprogressbar.h | 5 +- qt/gen_qprogressdialog.h | 5 +- qt/gen_qpropertyanimation.h | 5 +- qt/gen_qproxystyle.h | 5 +- qt/gen_qpushbutton.h | 5 +- qt/gen_qquaternion.h | 5 +- qt/gen_qradiobutton.h | 5 +- qt/gen_qrandom.h | 5 +- qt/gen_qrasterwindow.h | 5 +- qt/gen_qrawfont.cpp | 8 +- qt/gen_qrawfont.h | 13 +- qt/gen_qreadwritelock.h | 5 +- qt/gen_qrect.h | 5 +- qt/gen_qrefcount.h | 5 +- qt/gen_qregexp.cpp | 4 +- qt/gen_qregexp.h | 9 +- qt/gen_qregion.cpp | 2 +- qt/gen_qregion.h | 7 +- qt/gen_qregularexpression.cpp | 4 +- qt/gen_qregularexpression.h | 9 +- qt/gen_qresource.cpp | 2 +- qt/gen_qresource.go | 2 +- qt/gen_qresource.h | 7 +- qt/gen_qresultstore.h | 5 +- qt/gen_qrgba64.h | 5 +- qt/gen_qrubberband.h | 5 +- qt/gen_qrunnable.h | 5 +- qt/gen_qsavefile.h | 5 +- qt/gen_qscopedpointer.h | 5 +- qt/gen_qscreen.cpp | 2 +- qt/gen_qscreen.h | 7 +- qt/gen_qscrollarea.h | 5 +- qt/gen_qscrollbar.h | 5 +- qt/gen_qscroller.cpp | 6 +- qt/gen_qscroller.h | 11 +- qt/gen_qscrollerproperties.h | 5 +- qt/gen_qsemaphore.h | 5 +- qt/gen_qsequentialanimationgroup.h | 5 +- qt/gen_qsessionmanager.cpp | 10 +- qt/gen_qsessionmanager.h | 15 +- qt/gen_qsettings.cpp | 6 +- qt/gen_qsettings.h | 11 +- qt/gen_qshareddata.h | 5 +- qt/gen_qsharedmemory.h | 5 +- qt/gen_qshortcut.h | 5 +- qt/gen_qsignalmapper.h | 5 +- qt/gen_qsignaltransition.h | 5 +- qt/gen_qsize.h | 5 +- qt/gen_qsizegrip.h | 5 +- qt/gen_qsizepolicy.h | 5 +- qt/gen_qslider.h | 5 +- qt/gen_qsocketnotifier.h | 5 +- qt/gen_qsortfilterproxymodel.cpp | 10 +- qt/gen_qsortfilterproxymodel.h | 15 +- qt/gen_qspinbox.h | 5 +- qt/gen_qsplashscreen.h | 5 +- qt/gen_qsplitter.cpp | 4 +- qt/gen_qsplitter.h | 9 +- qt/gen_qstackedlayout.h | 5 +- qt/gen_qstackedwidget.h | 5 +- qt/gen_qstandarditemmodel.cpp | 48 +++--- qt/gen_qstandarditemmodel.h | 53 +++---- qt/gen_qstandardpaths.cpp | 8 +- qt/gen_qstandardpaths.h | 13 +- qt/gen_qstate.cpp | 2 +- qt/gen_qstate.h | 7 +- qt/gen_qstatemachine.cpp | 4 +- qt/gen_qstatemachine.h | 9 +- qt/gen_qstatictext.h | 5 +- qt/gen_qstatusbar.h | 5 +- qt/gen_qstorageinfo.cpp | 2 +- qt/gen_qstorageinfo.h | 7 +- qt/gen_qstringbuilder.h | 5 +- qt/gen_qstringlistmodel.cpp | 12 +- qt/gen_qstringlistmodel.h | 17 ++- qt/gen_qstringliteral.h | 5 +- qt/gen_qstringmatcher.h | 5 +- qt/gen_qstringview.cpp | 2 +- qt/gen_qstringview.h | 7 +- qt/gen_qstyle.h | 5 +- qt/gen_qstyleditemdelegate.h | 5 +- qt/gen_qstylefactory.cpp | 2 +- qt/gen_qstylefactory.h | 7 +- qt/gen_qstylehints.h | 5 +- qt/gen_qstyleoption.h | 5 +- qt/gen_qstylepainter.h | 5 +- qt/gen_qstyleplugin.h | 5 +- qt/gen_qsurface.h | 5 +- qt/gen_qsurfaceformat.cpp | 14 ++ qt/gen_qsurfaceformat.go | 17 +++ qt/gen_qsurfaceformat.h | 6 +- qt/gen_qsyntaxhighlighter.h | 5 +- qt/gen_qsystemsemaphore.h | 5 +- qt/gen_qsystemtrayicon.h | 5 +- qt/gen_qtabbar.h | 5 +- qt/gen_qtableview.h | 5 +- qt/gen_qtablewidget.cpp | 10 +- qt/gen_qtablewidget.h | 15 +- qt/gen_qtabwidget.h | 5 +- qt/gen_qtemporarydir.h | 5 +- qt/gen_qtemporaryfile.h | 5 +- qt/gen_qtextboundaryfinder.h | 5 +- qt/gen_qtextbrowser.cpp | 4 +- qt/gen_qtextbrowser.h | 9 +- qt/gen_qtextcodec.cpp | 6 +- qt/gen_qtextcodec.h | 11 +- qt/gen_qtextcursor.h | 5 +- qt/gen_qtextdocument.cpp | 2 +- qt/gen_qtextdocument.h | 7 +- qt/gen_qtextdocumentfragment.h | 5 +- qt/gen_qtextdocumentwriter.cpp | 2 +- qt/gen_qtextdocumentwriter.h | 7 +- qt/gen_qtextedit.cpp | 4 +- qt/gen_qtextedit.h | 9 +- qt/gen_qtextformat.cpp | 20 +-- qt/gen_qtextformat.h | 25 +-- qt/gen_qtextlayout.cpp | 24 +-- qt/gen_qtextlayout.h | 29 ++-- qt/gen_qtextlist.h | 5 +- qt/gen_qtextobject.cpp | 10 +- qt/gen_qtextobject.h | 15 +- qt/gen_qtextoption.cpp | 8 +- qt/gen_qtextoption.h | 13 +- qt/gen_qtextstream.h | 5 +- qt/gen_qtexttable.h | 5 +- qt/gen_qthread.h | 5 +- qt/gen_qthreadpool.h | 5 +- qt/gen_qthreadstorage.h | 5 +- qt/gen_qtimeline.h | 5 +- qt/gen_qtimer.h | 5 +- qt/gen_qtimezone.cpp | 12 +- qt/gen_qtimezone.h | 17 ++- qt/gen_qtoolbar.h | 5 +- qt/gen_qtoolbox.h | 5 +- qt/gen_qtoolbutton.h | 5 +- qt/gen_qtooltip.h | 5 +- qt/gen_qtouchdevice.cpp | 2 +- qt/gen_qtouchdevice.h | 7 +- qt/gen_qtransform.h | 5 +- qt/gen_qtranslator.h | 5 +- qt/gen_qtransposeproxymodel.cpp | 4 +- qt/gen_qtransposeproxymodel.h | 9 +- qt/gen_qtreeview.cpp | 2 +- qt/gen_qtreeview.h | 7 +- qt/gen_qtreewidget.cpp | 30 ++-- qt/gen_qtreewidget.h | 35 ++--- qt/gen_qtreewidgetitemiterator.h | 5 +- qt/gen_qundogroup.cpp | 2 +- qt/gen_qundogroup.h | 7 +- qt/gen_qundostack.h | 5 +- qt/gen_qundoview.h | 5 +- qt/gen_qurl.cpp | 10 +- qt/gen_qurl.h | 15 +- qt/gen_qurlquery.cpp | 95 +++++++++++- qt/gen_qurlquery.go | 92 ++++++++++++ qt/gen_qurlquery.h | 12 +- qt/gen_quuid.h | 5 +- qt/gen_qvalidator.h | 5 +- qt/gen_qvariant.cpp | 12 +- qt/gen_qvariant.h | 17 ++- qt/gen_qvariantanimation.cpp | 39 +++++ qt/gen_qvariantanimation.go | 53 +++++++ qt/gen_qvariantanimation.h | 7 +- qt/gen_qvector2d.h | 5 +- qt/gen_qvector3d.h | 5 +- qt/gen_qvector4d.h | 5 +- qt/gen_qversionnumber.cpp | 4 +- qt/gen_qversionnumber.h | 9 +- qt/gen_qwaitcondition.h | 5 +- qt/gen_qwhatsthis.h | 5 +- qt/gen_qwidget.cpp | 6 +- qt/gen_qwidget.h | 11 +- qt/gen_qwidgetaction.h | 5 +- qt/gen_qwindow.h | 5 +- qt/gen_qwizard.cpp | 8 +- qt/gen_qwizard.h | 13 +- qt/gen_qxmlstream.cpp | 8 +- qt/gen_qxmlstream.h | 13 +- qt/multimedia/gen_qabstractvideobuffer.go | 4 +- qt/multimedia/gen_qabstractvideobuffer.h | 5 +- qt/multimedia/gen_qabstractvideofilter.h | 5 +- qt/multimedia/gen_qabstractvideosurface.cpp | 4 +- qt/multimedia/gen_qabstractvideosurface.h | 9 +- qt/multimedia/gen_qaudio.h | 5 +- qt/multimedia/gen_qaudiobuffer.h | 5 +- qt/multimedia/gen_qaudiodecoder.cpp | 2 +- qt/multimedia/gen_qaudiodecoder.h | 7 +- qt/multimedia/gen_qaudiodecodercontrol.h | 5 +- qt/multimedia/gen_qaudiodeviceinfo.cpp | 14 +- qt/multimedia/gen_qaudiodeviceinfo.h | 19 +-- .../gen_qaudioencodersettingscontrol.cpp | 6 +- .../gen_qaudioencodersettingscontrol.h | 11 +- qt/multimedia/gen_qaudioformat.h | 5 +- qt/multimedia/gen_qaudioinput.h | 5 +- .../gen_qaudioinputselectorcontrol.cpp | 2 +- .../gen_qaudioinputselectorcontrol.h | 7 +- qt/multimedia/gen_qaudiooutput.h | 5 +- .../gen_qaudiooutputselectorcontrol.cpp | 2 +- .../gen_qaudiooutputselectorcontrol.h | 7 +- qt/multimedia/gen_qaudioprobe.h | 5 +- qt/multimedia/gen_qaudiorecorder.cpp | 2 +- qt/multimedia/gen_qaudiorecorder.h | 7 +- qt/multimedia/gen_qaudiorolecontrol.cpp | 2 +- qt/multimedia/gen_qaudiorolecontrol.h | 7 +- qt/multimedia/gen_qaudiosystem.cpp | 12 +- qt/multimedia/gen_qaudiosystem.h | 17 ++- qt/multimedia/gen_qaudiosystemplugin.cpp | 4 +- qt/multimedia/gen_qaudiosystemplugin.h | 9 +- qt/multimedia/gen_qcamera.cpp | 18 +-- qt/multimedia/gen_qcamera.h | 23 +-- .../gen_qcameracapturebufferformatcontrol.cpp | 2 +- .../gen_qcameracapturebufferformatcontrol.h | 7 +- .../gen_qcameracapturedestinationcontrol.h | 5 +- qt/multimedia/gen_qcameracontrol.h | 5 +- qt/multimedia/gen_qcameraexposure.cpp | 12 +- qt/multimedia/gen_qcameraexposure.h | 17 ++- qt/multimedia/gen_qcameraexposurecontrol.h | 5 +- qt/multimedia/gen_qcamerafeedbackcontrol.h | 5 +- qt/multimedia/gen_qcameraflashcontrol.h | 5 +- qt/multimedia/gen_qcamerafocus.cpp | 2 +- qt/multimedia/gen_qcamerafocus.h | 7 +- qt/multimedia/gen_qcamerafocuscontrol.cpp | 2 +- qt/multimedia/gen_qcamerafocuscontrol.h | 7 +- qt/multimedia/gen_qcameraimagecapture.cpp | 10 +- qt/multimedia/gen_qcameraimagecapture.h | 15 +- .../gen_qcameraimagecapturecontrol.h | 5 +- qt/multimedia/gen_qcameraimageprocessing.h | 5 +- .../gen_qcameraimageprocessingcontrol.h | 5 +- qt/multimedia/gen_qcamerainfo.cpp | 4 +- qt/multimedia/gen_qcamerainfo.h | 9 +- qt/multimedia/gen_qcamerainfocontrol.h | 5 +- qt/multimedia/gen_qcameralockscontrol.h | 5 +- qt/multimedia/gen_qcameraviewfinder.h | 5 +- qt/multimedia/gen_qcameraviewfindersettings.h | 5 +- .../gen_qcameraviewfindersettingscontrol.cpp | 2 +- .../gen_qcameraviewfindersettingscontrol.h | 7 +- qt/multimedia/gen_qcamerazoomcontrol.h | 5 +- qt/multimedia/gen_qcustomaudiorolecontrol.cpp | 2 +- qt/multimedia/gen_qcustomaudiorolecontrol.h | 7 +- qt/multimedia/gen_qgraphicsvideoitem.h | 5 +- qt/multimedia/gen_qimageencodercontrol.cpp | 6 +- qt/multimedia/gen_qimageencodercontrol.h | 11 +- qt/multimedia/gen_qmediaaudioprobecontrol.h | 5 +- qt/multimedia/gen_qmediaavailabilitycontrol.h | 5 +- qt/multimedia/gen_qmediabindableinterface.h | 5 +- qt/multimedia/gen_qmediacontainercontrol.cpp | 2 +- qt/multimedia/gen_qmediacontainercontrol.h | 7 +- qt/multimedia/gen_qmediacontent.cpp | 4 +- qt/multimedia/gen_qmediacontent.h | 9 +- qt/multimedia/gen_qmediacontrol.h | 5 +- qt/multimedia/gen_qmediaencodersettings.cpp | 12 +- qt/multimedia/gen_qmediaencodersettings.h | 17 ++- .../gen_qmediagaplessplaybackcontrol.h | 5 +- .../gen_qmedianetworkaccesscontrol.cpp | 2 +- .../gen_qmedianetworkaccesscontrol.h | 7 +- qt/multimedia/gen_qmediaobject.cpp | 2 +- qt/multimedia/gen_qmediaobject.h | 7 +- qt/multimedia/gen_qmediaplayer.cpp | 16 +- qt/multimedia/gen_qmediaplayer.h | 21 +-- qt/multimedia/gen_qmediaplayercontrol.h | 5 +- qt/multimedia/gen_qmediaplaylist.cpp | 4 +- qt/multimedia/gen_qmediaplaylist.h | 9 +- qt/multimedia/gen_qmediarecorder.cpp | 26 ++-- qt/multimedia/gen_qmediarecorder.h | 31 ++-- qt/multimedia/gen_qmediarecordercontrol.h | 5 +- qt/multimedia/gen_qmediaresource.h | 5 +- qt/multimedia/gen_qmediaservice.h | 5 +- .../gen_qmediaserviceproviderplugin.cpp | 10 +- .../gen_qmediaserviceproviderplugin.h | 15 +- qt/multimedia/gen_qmediastreamscontrol.h | 5 +- qt/multimedia/gen_qmediatimerange.cpp | 2 +- qt/multimedia/gen_qmediatimerange.h | 7 +- qt/multimedia/gen_qmediavideoprobecontrol.h | 5 +- qt/multimedia/gen_qmetadatareadercontrol.cpp | 2 +- qt/multimedia/gen_qmetadatareadercontrol.h | 7 +- qt/multimedia/gen_qmetadatawritercontrol.cpp | 2 +- qt/multimedia/gen_qmetadatawritercontrol.h | 7 +- qt/multimedia/gen_qmultimedia.h | 5 +- qt/multimedia/gen_qradiodata.h | 5 +- qt/multimedia/gen_qradiodatacontrol.h | 5 +- qt/multimedia/gen_qradiotuner.cpp | 14 ++ qt/multimedia/gen_qradiotuner.go | 17 +++ qt/multimedia/gen_qradiotuner.h | 6 +- qt/multimedia/gen_qradiotunercontrol.cpp | 14 ++ qt/multimedia/gen_qradiotunercontrol.go | 17 +++ qt/multimedia/gen_qradiotunercontrol.h | 6 +- qt/multimedia/gen_qsound.h | 5 +- qt/multimedia/gen_qsoundeffect.cpp | 2 +- qt/multimedia/gen_qsoundeffect.h | 7 +- .../gen_qvideodeviceselectorcontrol.h | 5 +- .../gen_qvideoencodersettingscontrol.cpp | 10 +- .../gen_qvideoencodersettingscontrol.h | 15 +- qt/multimedia/gen_qvideoframe.cpp | 2 +- qt/multimedia/gen_qvideoframe.go | 8 +- qt/multimedia/gen_qvideoframe.h | 7 +- qt/multimedia/gen_qvideoprobe.h | 5 +- qt/multimedia/gen_qvideorenderercontrol.h | 5 +- qt/multimedia/gen_qvideosurfaceformat.cpp | 2 +- qt/multimedia/gen_qvideosurfaceformat.h | 7 +- qt/multimedia/gen_qvideowidget.h | 5 +- qt/multimedia/gen_qvideowidgetcontrol.h | 5 +- qt/multimedia/gen_qvideowindowcontrol.h | 5 +- qt/network/gen_qabstractnetworkcache.cpp | 55 ++++++- qt/network/gen_qabstractnetworkcache.go | 60 ++++++++ qt/network/gen_qabstractnetworkcache.h | 11 +- qt/network/gen_qabstractsocket.h | 5 +- qt/network/gen_qauthenticator.cpp | 2 +- qt/network/gen_qauthenticator.h | 7 +- qt/network/gen_qdnslookup.cpp | 16 +- qt/network/gen_qdnslookup.h | 21 +-- qt/network/gen_qdtls.cpp | 4 +- qt/network/gen_qdtls.h | 9 +- qt/network/gen_qhostaddress.cpp | 24 +++ qt/network/gen_qhostaddress.go | 42 ++++++ qt/network/gen_qhostaddress.h | 7 +- qt/network/gen_qhostinfo.cpp | 4 +- qt/network/gen_qhostinfo.h | 9 +- qt/network/gen_qhstspolicy.h | 5 +- qt/network/gen_qhttp2configuration.h | 5 +- qt/network/gen_qhttpmultipart.h | 5 +- qt/network/gen_qlocalserver.h | 5 +- qt/network/gen_qlocalsocket.h | 5 +- qt/network/gen_qnetworkaccessmanager.cpp | 10 +- qt/network/gen_qnetworkaccessmanager.h | 13 +- qt/network/gen_qnetworkconfigmanager.cpp | 4 +- qt/network/gen_qnetworkconfigmanager.h | 9 +- qt/network/gen_qnetworkconfiguration.cpp | 2 +- qt/network/gen_qnetworkconfiguration.h | 7 +- qt/network/gen_qnetworkcookie.cpp | 2 +- qt/network/gen_qnetworkcookie.h | 7 +- qt/network/gen_qnetworkcookiejar.cpp | 4 +- qt/network/gen_qnetworkcookiejar.h | 9 +- qt/network/gen_qnetworkdatagram.h | 5 +- qt/network/gen_qnetworkdiskcache.h | 5 +- qt/network/gen_qnetworkinterface.cpp | 6 +- qt/network/gen_qnetworkinterface.h | 11 +- qt/network/gen_qnetworkproxy.cpp | 12 +- qt/network/gen_qnetworkproxy.h | 17 ++- qt/network/gen_qnetworkreply.cpp | 41 ++++- qt/network/gen_qnetworkreply.go | 30 ++++ qt/network/gen_qnetworkreply.h | 12 +- qt/network/gen_qnetworkrequest.cpp | 2 +- qt/network/gen_qnetworkrequest.h | 7 +- qt/network/gen_qnetworksession.h | 5 +- qt/network/gen_qocspresponse.h | 5 +- qt/network/gen_qssl.h | 5 +- qt/network/gen_qsslcertificate.cpp | 38 ++--- qt/network/gen_qsslcertificate.h | 43 +++--- qt/network/gen_qsslcertificateextension.h | 5 +- qt/network/gen_qsslcipher.h | 5 +- qt/network/gen_qsslconfiguration.cpp | 30 ++-- qt/network/gen_qsslconfiguration.h | 35 ++--- qt/network/gen_qssldiffiehellmanparameters.h | 5 +- qt/network/gen_qsslellipticcurve.h | 5 +- qt/network/gen_qsslerror.h | 5 +- qt/network/gen_qsslkey.h | 5 +- .../gen_qsslpresharedkeyauthenticator.h | 5 +- qt/network/gen_qsslsocket.cpp | 42 +++--- qt/network/gen_qsslsocket.h | 45 +++--- qt/network/gen_qtcpserver.h | 5 +- qt/network/gen_qtcpsocket.h | 5 +- qt/network/gen_qudpsocket.h | 5 +- qt/printsupport/gen_qabstractprintdialog.cpp | 2 +- qt/printsupport/gen_qabstractprintdialog.h | 7 +- qt/printsupport/gen_qpagesetupdialog.h | 5 +- qt/printsupport/gen_qprintdialog.h | 5 +- qt/printsupport/gen_qprintengine.h | 5 +- qt/printsupport/gen_qprinter.cpp | 2 +- qt/printsupport/gen_qprinter.h | 7 +- qt/printsupport/gen_qprinterinfo.cpp | 44 +++++- qt/printsupport/gen_qprinterinfo.go | 31 ++++ qt/printsupport/gen_qprinterinfo.h | 20 +-- qt/printsupport/gen_qprintpreviewdialog.h | 5 +- qt/printsupport/gen_qprintpreviewwidget.h | 5 +- qt6/cbor/gen_qcborarray.cpp | 2 +- qt6/cbor/gen_qcborarray.h | 7 +- qt6/cbor/gen_qcborcommon.h | 5 +- qt6/cbor/gen_qcbormap.cpp | 47 +++++- qt6/cbor/gen_qcbormap.go | 67 +++++++++ qt6/cbor/gen_qcbormap.h | 18 ++- qt6/cbor/gen_qcborstreamreader.h | 5 +- qt6/cbor/gen_qcborstreamwriter.h | 5 +- qt6/cbor/gen_qcborvalue.h | 5 +- qt6/gen_qabstractanimation.h | 5 +- qt6/gen_qabstractbutton.h | 5 +- qt6/gen_qabstracteventdispatcher.cpp | 2 +- qt6/gen_qabstracteventdispatcher.h | 7 +- qt6/gen_qabstractfileiconprovider.h | 5 +- qt6/gen_qabstractitemdelegate.cpp | 2 +- qt6/gen_qabstractitemdelegate.h | 7 +- qt6/gen_qabstractitemmodel.cpp | 36 ++--- qt6/gen_qabstractitemmodel.h | 31 ++-- qt6/gen_qabstractitemview.h | 5 +- qt6/gen_qabstractnativeeventfilter.h | 5 +- qt6/gen_qabstractproxymodel.cpp | 10 +- qt6/gen_qabstractproxymodel.h | 15 +- qt6/gen_qabstractscrollarea.cpp | 2 +- qt6/gen_qabstractscrollarea.h | 7 +- qt6/gen_qabstractslider.h | 5 +- qt6/gen_qabstractspinbox.h | 5 +- qt6/gen_qabstracttextdocumentlayout.h | 5 +- qt6/gen_qaccessible.cpp | 62 +++++++- qt6/gen_qaccessible.go | 50 ++++++ qt6/gen_qaccessible.h | 21 +-- qt6/gen_qaccessible_base.cpp | 15 ++ qt6/gen_qaccessible_base.go | 17 +++ qt6/gen_qaccessible_base.h | 8 +- qt6/gen_qaccessiblebridge.h | 5 +- qt6/gen_qaccessibleobject.h | 5 +- qt6/gen_qaccessibleplugin.h | 5 +- qt6/gen_qaccessiblewidget.cpp | 52 ++++++- qt6/gen_qaccessiblewidget.go | 50 ++++++ qt6/gen_qaccessiblewidget.h | 11 +- qt6/gen_qaction.cpp | 6 +- qt6/gen_qaction.h | 11 +- qt6/gen_qactiongroup.cpp | 2 +- qt6/gen_qactiongroup.h | 7 +- qt6/gen_qanimationgroup.h | 5 +- qt6/gen_qanystringview.h | 5 +- qt6/gen_qapplication.cpp | 4 +- qt6/gen_qapplication.h | 9 +- qt6/gen_qarraydata.cpp | 14 ++ qt6/gen_qarraydata.go | 16 ++ qt6/gen_qarraydata.h | 6 +- qt6/gen_qbackingstore.h | 5 +- qt6/gen_qbasictimer.h | 5 +- qt6/gen_qbindingstorage.h | 5 +- qt6/gen_qbitarray.h | 5 +- qt6/gen_qbitmap.h | 5 +- qt6/gen_qboxlayout.h | 5 +- qt6/gen_qbrush.cpp | 39 +++++ qt6/gen_qbrush.go | 53 +++++++ qt6/gen_qbrush.h | 7 +- qt6/gen_qbuffer.h | 5 +- qt6/gen_qbuttongroup.cpp | 2 +- qt6/gen_qbuttongroup.h | 7 +- qt6/gen_qbytearraymatcher.h | 5 +- qt6/gen_qbytearrayview.h | 5 +- qt6/gen_qcalendar.cpp | 2 +- qt6/gen_qcalendar.h | 7 +- qt6/gen_qcalendarwidget.cpp | 2 +- qt6/gen_qcalendarwidget.h | 7 +- qt6/gen_qchar.h | 5 +- qt6/gen_qcheckbox.h | 5 +- qt6/gen_qclipboard.h | 5 +- qt6/gen_qcollator.h | 5 +- qt6/gen_qcolor.cpp | 2 +- qt6/gen_qcolor.h | 7 +- qt6/gen_qcolordialog.h | 5 +- qt6/gen_qcolormap.cpp | 2 +- qt6/gen_qcolormap.h | 7 +- qt6/gen_qcolorspace.cpp | 14 +- qt6/gen_qcolorspace.h | 19 +-- qt6/gen_qcolortransform.h | 5 +- qt6/gen_qcolumnview.cpp | 4 +- qt6/gen_qcolumnview.h | 9 +- qt6/gen_qcombobox.cpp | 4 +- qt6/gen_qcombobox.h | 9 +- qt6/gen_qcommandlineoption.cpp | 14 +- qt6/gen_qcommandlineoption.h | 19 +-- qt6/gen_qcommandlineparser.cpp | 16 +- qt6/gen_qcommandlineparser.h | 21 +-- qt6/gen_qcommandlinkbutton.h | 5 +- qt6/gen_qcommonstyle.h | 5 +- qt6/gen_qcompare.h | 5 +- qt6/gen_qcompleter.cpp | 6 +- qt6/gen_qcompleter.h | 11 +- qt6/gen_qconcatenatetablesproxymodel.cpp | 10 +- qt6/gen_qconcatenatetablesproxymodel.h | 15 +- qt6/gen_qcontiguouscache.h | 5 +- qt6/gen_qcoreapplication.cpp | 6 +- qt6/gen_qcoreapplication.h | 11 +- qt6/gen_qcoreevent.h | 5 +- qt6/gen_qcryptographichash.h | 5 +- qt6/gen_qcursor.h | 5 +- qt6/gen_qdatastream.h | 5 +- qt6/gen_qdatawidgetmapper.h | 5 +- qt6/gen_qdatetime.h | 5 +- qt6/gen_qdatetimeedit.h | 5 +- qt6/gen_qdeadlinetimer.cpp | 14 ++ qt6/gen_qdeadlinetimer.go | 17 +++ qt6/gen_qdeadlinetimer.h | 6 +- qt6/gen_qdebug.h | 5 +- qt6/gen_qdesktopservices.h | 5 +- qt6/gen_qdial.h | 5 +- qt6/gen_qdialog.h | 5 +- qt6/gen_qdialogbuttonbox.cpp | 2 +- qt6/gen_qdialogbuttonbox.h | 7 +- qt6/gen_qdir.cpp | 38 ++--- qt6/gen_qdir.h | 43 +++--- qt6/gen_qdiriterator.cpp | 6 +- qt6/gen_qdiriterator.h | 11 +- qt6/gen_qdockwidget.h | 5 +- qt6/gen_qdrag.h | 5 +- qt6/gen_qdrawutil.h | 5 +- qt6/gen_qeasingcurve.cpp | 2 +- qt6/gen_qeasingcurve.h | 7 +- qt6/gen_qelapsedtimer.h | 5 +- qt6/gen_qerrormessage.h | 5 +- qt6/gen_qevent.cpp | 14 +- qt6/gen_qevent.h | 19 +-- qt6/gen_qeventloop.h | 5 +- qt6/gen_qeventpoint.h | 5 +- qt6/gen_qexception.h | 5 +- qt6/gen_qfactoryinterface.cpp | 2 +- qt6/gen_qfactoryinterface.h | 7 +- qt6/gen_qfile.h | 5 +- qt6/gen_qfiledevice.go | 4 +- qt6/gen_qfiledevice.h | 5 +- qt6/gen_qfiledialog.cpp | 54 +++---- qt6/gen_qfiledialog.h | 55 +++---- qt6/gen_qfileiconprovider.h | 5 +- qt6/gen_qfileinfo.h | 5 +- qt6/gen_qfileselector.cpp | 6 +- qt6/gen_qfileselector.h | 11 +- qt6/gen_qfilesystemmodel.cpp | 10 +- qt6/gen_qfilesystemmodel.h | 15 +- qt6/gen_qfilesystemwatcher.cpp | 12 +- qt6/gen_qfilesystemwatcher.h | 17 ++- qt6/gen_qfloat16.h | 5 +- qt6/gen_qfocusframe.h | 5 +- qt6/gen_qfont.cpp | 18 +-- qt6/gen_qfont.h | 23 +-- qt6/gen_qfontcombobox.h | 5 +- qt6/gen_qfontdatabase.cpp | 20 +-- qt6/gen_qfontdatabase.h | 25 +-- qt6/gen_qfontdialog.h | 5 +- qt6/gen_qfontinfo.h | 5 +- qt6/gen_qfontmetrics.h | 5 +- qt6/gen_qformlayout.h | 5 +- qt6/gen_qframe.h | 5 +- qt6/gen_qfutureinterface.h | 5 +- qt6/gen_qfuturewatcher.h | 5 +- qt6/gen_qgenericplugin.h | 5 +- qt6/gen_qgenericpluginfactory.cpp | 2 +- qt6/gen_qgenericpluginfactory.h | 7 +- qt6/gen_qgesture.cpp | 8 +- qt6/gen_qgesture.h | 13 +- qt6/gen_qgesturerecognizer.h | 5 +- qt6/gen_qglobal.h | 5 +- qt6/gen_qglyphrun.cpp | 8 +- qt6/gen_qglyphrun.h | 13 +- qt6/gen_qgraphicsanchorlayout.h | 5 +- qt6/gen_qgraphicseffect.h | 5 +- qt6/gen_qgraphicsgridlayout.h | 5 +- qt6/gen_qgraphicsitem.cpp | 10 +- qt6/gen_qgraphicsitem.h | 15 +- qt6/gen_qgraphicsitemanimation.cpp | 116 ++++++++++++++ qt6/gen_qgraphicsitemanimation.go | 142 ++++++++++++++++++ qt6/gen_qgraphicsitemanimation.h | 10 +- qt6/gen_qgraphicslayout.h | 5 +- qt6/gen_qgraphicslayoutitem.h | 5 +- qt6/gen_qgraphicslinearlayout.h | 5 +- qt6/gen_qgraphicsproxywidget.h | 5 +- qt6/gen_qgraphicsscene.cpp | 46 +++--- qt6/gen_qgraphicsscene.h | 49 +++--- qt6/gen_qgraphicssceneevent.h | 5 +- qt6/gen_qgraphicstransform.h | 5 +- qt6/gen_qgraphicsview.cpp | 20 +-- qt6/gen_qgraphicsview.h | 25 +-- qt6/gen_qgraphicswidget.cpp | 6 +- qt6/gen_qgraphicswidget.h | 11 +- qt6/gen_qgridlayout.h | 5 +- qt6/gen_qgroupbox.h | 5 +- qt6/gen_qguiapplication.cpp | 6 +- qt6/gen_qguiapplication.h | 11 +- qt6/gen_qhashfunctions.h | 5 +- qt6/gen_qheaderview.h | 5 +- qt6/gen_qicon.cpp | 14 +- qt6/gen_qicon.h | 19 +-- qt6/gen_qiconengine.cpp | 6 +- qt6/gen_qiconengine.h | 11 +- qt6/gen_qiconengineplugin.h | 5 +- qt6/gen_qidentityproxymodel.cpp | 6 +- qt6/gen_qidentityproxymodel.h | 11 +- qt6/gen_qimage.cpp | 10 +- qt6/gen_qimage.go | 12 +- qt6/gen_qimage.h | 15 +- qt6/gen_qimageiohandler.h | 5 +- qt6/gen_qimagereader.cpp | 10 +- qt6/gen_qimagereader.h | 15 +- qt6/gen_qimagewriter.cpp | 8 +- qt6/gen_qimagewriter.h | 13 +- qt6/gen_qinputdevice.cpp | 4 +- qt6/gen_qinputdevice.h | 9 +- qt6/gen_qinputdialog.cpp | 16 +- qt6/gen_qinputdialog.h | 21 +-- qt6/gen_qinputmethod.h | 5 +- qt6/gen_qiodevice.h | 5 +- qt6/gen_qiodevicebase.h | 5 +- qt6/gen_qitemdelegate.h | 5 +- qt6/gen_qitemeditorfactory.h | 5 +- qt6/gen_qitemselectionmodel.cpp | 12 +- qt6/gen_qitemselectionmodel.h | 17 ++- qt6/gen_qjsonarray.cpp | 2 +- qt6/gen_qjsonarray.h | 7 +- qt6/gen_qjsondocument.h | 5 +- qt6/gen_qjsonobject.cpp | 10 +- qt6/gen_qjsonobject.h | 15 +- qt6/gen_qjsonvalue.h | 5 +- qt6/gen_qkeysequence.cpp | 10 +- qt6/gen_qkeysequence.h | 15 +- qt6/gen_qkeysequenceedit.h | 5 +- qt6/gen_qlabel.h | 5 +- qt6/gen_qlayout.h | 5 +- qt6/gen_qlayoutitem.h | 5 +- qt6/gen_qlcdnumber.h | 5 +- qt6/gen_qlibrary.h | 5 +- qt6/gen_qlibraryinfo.cpp | 2 +- qt6/gen_qlibraryinfo.h | 7 +- qt6/gen_qline.h | 5 +- qt6/gen_qlineedit.h | 5 +- qt6/gen_qlistview.cpp | 4 +- qt6/gen_qlistview.h | 7 +- qt6/gen_qlistwidget.cpp | 10 +- qt6/gen_qlistwidget.h | 15 +- qt6/gen_qlocale.cpp | 10 +- qt6/gen_qlocale.h | 15 +- qt6/gen_qlockfile.h | 5 +- qt6/gen_qloggingcategory.h | 5 +- qt6/gen_qmainwindow.cpp | 4 +- qt6/gen_qmainwindow.h | 9 +- qt6/gen_qmargins.h | 5 +- qt6/gen_qmatrix4x4.go | 6 +- qt6/gen_qmatrix4x4.h | 5 +- qt6/gen_qmdiarea.cpp | 4 +- qt6/gen_qmdiarea.h | 9 +- qt6/gen_qmdisubwindow.h | 5 +- qt6/gen_qmenu.cpp | 6 +- qt6/gen_qmenu.h | 11 +- qt6/gen_qmenubar.h | 5 +- qt6/gen_qmessageauthenticationcode.h | 5 +- qt6/gen_qmessagebox.cpp | 2 +- qt6/gen_qmessagebox.h | 7 +- qt6/gen_qmetacontainer.h | 5 +- qt6/gen_qmetaobject.cpp | 4 +- qt6/gen_qmetaobject.h | 9 +- qt6/gen_qmetatype.h | 5 +- qt6/gen_qmimedata.cpp | 6 +- qt6/gen_qmimedata.h | 11 +- qt6/gen_qmimedatabase.cpp | 4 +- qt6/gen_qmimedatabase.h | 9 +- qt6/gen_qmimetype.cpp | 10 +- qt6/gen_qmimetype.h | 15 +- qt6/gen_qmovie.cpp | 2 +- qt6/gen_qmovie.h | 7 +- qt6/gen_qmutex.h | 5 +- qt6/gen_qnamespace.h | 5 +- qt6/gen_qobject.cpp | 4 +- qt6/gen_qobject.h | 9 +- qt6/gen_qobjectcleanuphandler.h | 5 +- qt6/gen_qobjectdefs.h | 5 +- qt6/gen_qoffscreensurface.h | 5 +- qt6/gen_qoperatingsystemversion.h | 5 +- qt6/gen_qpagedpaintdevice.h | 5 +- qt6/gen_qpagelayout.h | 5 +- qt6/gen_qpageranges.cpp | 2 +- qt6/gen_qpageranges.h | 7 +- qt6/gen_qpagesize.h | 5 +- qt6/gen_qpaintdevice.h | 5 +- qt6/gen_qpaintdevicewindow.h | 5 +- qt6/gen_qpaintengine.h | 5 +- qt6/gen_qpainter.cpp | 12 +- qt6/gen_qpainter.h | 17 ++- qt6/gen_qpainterpath.cpp | 4 +- qt6/gen_qpainterpath.h | 9 +- qt6/gen_qpalette.h | 5 +- qt6/gen_qparallelanimationgroup.h | 5 +- qt6/gen_qpauseanimation.h | 5 +- qt6/gen_qpdfwriter.h | 5 +- qt6/gen_qpen.cpp | 4 +- qt6/gen_qpen.h | 9 +- qt6/gen_qpicture.h | 5 +- qt6/gen_qpixelformat.h | 5 +- qt6/gen_qpixmap.h | 5 +- qt6/gen_qpixmapcache.h | 5 +- qt6/gen_qplaintextedit.cpp | 4 +- qt6/gen_qplaintextedit.h | 9 +- qt6/gen_qplugin.h | 5 +- qt6/gen_qpluginloader.cpp | 4 +- qt6/gen_qpluginloader.h | 9 +- qt6/gen_qpoint.h | 5 +- qt6/gen_qpointingdevice.h | 5 +- qt6/gen_qprocess.cpp | 26 ++-- qt6/gen_qprocess.h | 31 ++-- qt6/gen_qprogressbar.h | 5 +- qt6/gen_qprogressdialog.h | 5 +- qt6/gen_qproperty.h | 5 +- qt6/gen_qpropertyanimation.h | 5 +- qt6/gen_qpropertyprivate.h | 5 +- qt6/gen_qproxystyle.h | 5 +- qt6/gen_qpushbutton.h | 5 +- qt6/gen_qquaternion.h | 5 +- qt6/gen_qradiobutton.h | 5 +- qt6/gen_qrandom.h | 5 +- qt6/gen_qrasterwindow.h | 5 +- qt6/gen_qrawfont.cpp | 8 +- qt6/gen_qrawfont.h | 13 +- qt6/gen_qreadwritelock.h | 5 +- qt6/gen_qrect.h | 5 +- qt6/gen_qrefcount.h | 5 +- qt6/gen_qregion.h | 5 +- qt6/gen_qregularexpression.cpp | 4 +- qt6/gen_qregularexpression.h | 9 +- qt6/gen_qresource.go | 2 +- qt6/gen_qresource.h | 5 +- qt6/gen_qresultstore.h | 5 +- qt6/gen_qrgba64.h | 5 +- qt6/gen_qrubberband.h | 5 +- qt6/gen_qrunnable.h | 5 +- qt6/gen_qsavefile.h | 5 +- qt6/gen_qscopedpointer.h | 5 +- qt6/gen_qscreen.cpp | 2 +- qt6/gen_qscreen.h | 7 +- qt6/gen_qscrollarea.h | 5 +- qt6/gen_qscrollbar.h | 5 +- qt6/gen_qscroller.cpp | 6 +- qt6/gen_qscroller.h | 11 +- qt6/gen_qscrollerproperties.h | 5 +- qt6/gen_qsemaphore.h | 5 +- qt6/gen_qsequentialanimationgroup.h | 5 +- qt6/gen_qsequentialiterable.h | 5 +- qt6/gen_qsessionmanager.cpp | 10 +- qt6/gen_qsessionmanager.h | 15 +- qt6/gen_qsettings.cpp | 6 +- qt6/gen_qsettings.h | 11 +- qt6/gen_qshareddata.h | 5 +- qt6/gen_qsharedmemory.h | 5 +- qt6/gen_qshortcut.cpp | 4 +- qt6/gen_qshortcut.h | 9 +- qt6/gen_qsignalmapper.h | 5 +- qt6/gen_qsize.h | 5 +- qt6/gen_qsizegrip.h | 5 +- qt6/gen_qsizepolicy.h | 5 +- qt6/gen_qslider.h | 5 +- qt6/gen_qsocketnotifier.h | 5 +- qt6/gen_qsortfilterproxymodel.cpp | 10 +- qt6/gen_qsortfilterproxymodel.h | 15 +- qt6/gen_qspinbox.h | 5 +- qt6/gen_qsplashscreen.h | 5 +- qt6/gen_qsplitter.cpp | 4 +- qt6/gen_qsplitter.h | 9 +- qt6/gen_qstackedlayout.h | 5 +- qt6/gen_qstackedwidget.h | 5 +- qt6/gen_qstandarditemmodel.cpp | 50 +++--- qt6/gen_qstandarditemmodel.h | 55 +++---- qt6/gen_qstandardpaths.cpp | 8 +- qt6/gen_qstandardpaths.h | 13 +- qt6/gen_qstatictext.h | 5 +- qt6/gen_qstatusbar.h | 5 +- qt6/gen_qstorageinfo.cpp | 2 +- qt6/gen_qstorageinfo.h | 7 +- qt6/gen_qstringbuilder.h | 5 +- qt6/gen_qstringconverter.h | 5 +- qt6/gen_qstringconverter_base.h | 5 +- qt6/gen_qstringlistmodel.cpp | 12 +- qt6/gen_qstringlistmodel.h | 17 ++- qt6/gen_qstringmatcher.h | 5 +- qt6/gen_qstringtokenizer.h | 5 +- qt6/gen_qstringview.cpp | 2 +- qt6/gen_qstringview.h | 7 +- qt6/gen_qstyle.h | 5 +- qt6/gen_qstyleditemdelegate.h | 5 +- qt6/gen_qstylefactory.cpp | 2 +- qt6/gen_qstylefactory.h | 7 +- qt6/gen_qstylehints.h | 5 +- qt6/gen_qstyleoption.h | 5 +- qt6/gen_qstylepainter.h | 5 +- qt6/gen_qstyleplugin.h | 5 +- qt6/gen_qsurface.h | 5 +- qt6/gen_qsurfaceformat.cpp | 14 ++ qt6/gen_qsurfaceformat.go | 17 +++ qt6/gen_qsurfaceformat.h | 6 +- qt6/gen_qsyntaxhighlighter.h | 5 +- qt6/gen_qsystemsemaphore.h | 5 +- qt6/gen_qsystemtrayicon.h | 5 +- qt6/gen_qtabbar.h | 5 +- qt6/gen_qtableview.h | 5 +- qt6/gen_qtablewidget.cpp | 12 +- qt6/gen_qtablewidget.h | 17 ++- qt6/gen_qtabwidget.h | 5 +- qt6/gen_qtemporarydir.h | 5 +- qt6/gen_qtemporaryfile.h | 5 +- qt6/gen_qtestsupport_gui.h | 5 +- qt6/gen_qtestsupport_widgets.h | 5 +- qt6/gen_qtextboundaryfinder.h | 5 +- qt6/gen_qtextbrowser.cpp | 4 +- qt6/gen_qtextbrowser.h | 9 +- qt6/gen_qtextcursor.h | 5 +- qt6/gen_qtextdocument.cpp | 2 +- qt6/gen_qtextdocument.h | 7 +- qt6/gen_qtextdocumentfragment.h | 5 +- qt6/gen_qtextdocumentwriter.cpp | 2 +- qt6/gen_qtextdocumentwriter.h | 7 +- qt6/gen_qtextedit.cpp | 4 +- qt6/gen_qtextedit.h | 9 +- qt6/gen_qtextformat.cpp | 20 +-- qt6/gen_qtextformat.h | 25 +-- qt6/gen_qtextlayout.cpp | 20 +-- qt6/gen_qtextlayout.h | 25 +-- qt6/gen_qtextlist.h | 5 +- qt6/gen_qtextobject.cpp | 10 +- qt6/gen_qtextobject.h | 15 +- qt6/gen_qtextoption.cpp | 8 +- qt6/gen_qtextoption.h | 13 +- qt6/gen_qtextstream.h | 5 +- qt6/gen_qtexttable.h | 5 +- qt6/gen_qthread.h | 5 +- qt6/gen_qthreadpool.h | 5 +- qt6/gen_qthreadstorage.h | 5 +- qt6/gen_qtimeline.h | 5 +- qt6/gen_qtimer.h | 5 +- qt6/gen_qtimezone.cpp | 12 +- qt6/gen_qtimezone.h | 17 ++- qt6/gen_qtoolbar.h | 5 +- qt6/gen_qtoolbox.h | 5 +- qt6/gen_qtoolbutton.h | 5 +- qt6/gen_qtooltip.h | 5 +- qt6/gen_qtransform.h | 5 +- qt6/gen_qtranslator.h | 5 +- qt6/gen_qtransposeproxymodel.cpp | 4 +- qt6/gen_qtransposeproxymodel.h | 9 +- qt6/gen_qtreeview.cpp | 2 +- qt6/gen_qtreeview.h | 7 +- qt6/gen_qtreewidget.cpp | 30 ++-- qt6/gen_qtreewidget.h | 35 ++--- qt6/gen_qtreewidgetitemiterator.h | 5 +- qt6/gen_qundogroup.cpp | 2 +- qt6/gen_qundogroup.h | 7 +- qt6/gen_qundostack.h | 5 +- qt6/gen_qundoview.h | 5 +- qt6/gen_qurl.cpp | 10 +- qt6/gen_qurl.h | 15 +- qt6/gen_qurlquery.cpp | 95 +++++++++++- qt6/gen_qurlquery.go | 92 ++++++++++++ qt6/gen_qurlquery.h | 12 +- qt6/gen_qutf8stringview.h | 5 +- qt6/gen_quuid.h | 5 +- qt6/gen_qvalidator.h | 5 +- qt6/gen_qvariant.cpp | 12 +- qt6/gen_qvariant.h | 17 ++- qt6/gen_qvariantanimation.cpp | 39 +++++ qt6/gen_qvariantanimation.go | 53 +++++++ qt6/gen_qvariantanimation.h | 7 +- qt6/gen_qvarlengtharray.h | 5 +- qt6/gen_qvectornd.h | 5 +- qt6/gen_qversionnumber.cpp | 4 +- qt6/gen_qversionnumber.h | 9 +- qt6/gen_qwaitcondition.h | 5 +- qt6/gen_qwhatsthis.h | 5 +- qt6/gen_qwidget.cpp | 6 +- qt6/gen_qwidget.h | 11 +- qt6/gen_qwidgetaction.h | 5 +- qt6/gen_qwindow.h | 5 +- qt6/gen_qwizard.cpp | 6 +- qt6/gen_qwizard.h | 11 +- qt6/gen_qxmlstream.cpp | 8 +- qt6/gen_qxmlstream.h | 13 +- qt6/multimedia/gen_qaudio.h | 5 +- qt6/multimedia/gen_qaudiobuffer.h | 5 +- qt6/multimedia/gen_qaudiodecoder.h | 5 +- qt6/multimedia/gen_qaudiodevice.cpp | 2 +- qt6/multimedia/gen_qaudiodevice.h | 7 +- qt6/multimedia/gen_qaudioformat.h | 5 +- qt6/multimedia/gen_qaudioinput.h | 5 +- qt6/multimedia/gen_qaudiooutput.h | 5 +- qt6/multimedia/gen_qaudiosink.h | 5 +- qt6/multimedia/gen_qaudiosource.h | 5 +- qt6/multimedia/gen_qcamera.h | 5 +- qt6/multimedia/gen_qcameradevice.cpp | 4 +- qt6/multimedia/gen_qcameradevice.h | 9 +- qt6/multimedia/gen_qgraphicsvideoitem.h | 5 +- qt6/multimedia/gen_qimagecapture.cpp | 2 +- qt6/multimedia/gen_qimagecapture.h | 7 +- qt6/multimedia/gen_qmediacapturesession.h | 5 +- qt6/multimedia/gen_qmediadevices.cpp | 6 +- qt6/multimedia/gen_qmediadevices.h | 11 +- qt6/multimedia/gen_qmediaformat.cpp | 6 +- qt6/multimedia/gen_qmediaformat.h | 11 +- qt6/multimedia/gen_qmediametadata.cpp | 2 +- qt6/multimedia/gen_qmediametadata.h | 7 +- qt6/multimedia/gen_qmediaplayer.cpp | 6 +- qt6/multimedia/gen_qmediaplayer.h | 11 +- qt6/multimedia/gen_qmediarecorder.h | 5 +- qt6/multimedia/gen_qmediatimerange.cpp | 2 +- qt6/multimedia/gen_qmediatimerange.h | 7 +- qt6/multimedia/gen_qsoundeffect.cpp | 2 +- qt6/multimedia/gen_qsoundeffect.h | 7 +- qt6/multimedia/gen_qvideoframe.go | 4 +- qt6/multimedia/gen_qvideoframe.h | 5 +- qt6/multimedia/gen_qvideoframeformat.h | 5 +- qt6/multimedia/gen_qvideosink.h | 5 +- qt6/multimedia/gen_qvideowidget.h | 5 +- qt6/multimedia/gen_qwavedecoder.h | 5 +- qt6/network/gen_qabstractnetworkcache.cpp | 55 ++++++- qt6/network/gen_qabstractnetworkcache.go | 60 ++++++++ qt6/network/gen_qabstractnetworkcache.h | 11 +- qt6/network/gen_qabstractsocket.h | 5 +- qt6/network/gen_qauthenticator.cpp | 2 +- qt6/network/gen_qauthenticator.h | 7 +- qt6/network/gen_qdnslookup.cpp | 16 +- qt6/network/gen_qdnslookup.h | 21 +-- qt6/network/gen_qdtls.cpp | 4 +- qt6/network/gen_qdtls.h | 9 +- qt6/network/gen_qhostaddress.cpp | 24 +++ qt6/network/gen_qhostaddress.go | 42 ++++++ qt6/network/gen_qhostaddress.h | 7 +- qt6/network/gen_qhostinfo.cpp | 4 +- qt6/network/gen_qhostinfo.h | 9 +- qt6/network/gen_qhstspolicy.h | 5 +- qt6/network/gen_qhttp2configuration.h | 5 +- qt6/network/gen_qhttpmultipart.h | 5 +- qt6/network/gen_qlocalserver.h | 5 +- qt6/network/gen_qlocalsocket.h | 5 +- qt6/network/gen_qnetworkaccessmanager.cpp | 10 +- qt6/network/gen_qnetworkaccessmanager.h | 13 +- qt6/network/gen_qnetworkcookie.cpp | 2 +- qt6/network/gen_qnetworkcookie.h | 7 +- qt6/network/gen_qnetworkcookiejar.cpp | 4 +- qt6/network/gen_qnetworkcookiejar.h | 9 +- qt6/network/gen_qnetworkdatagram.h | 5 +- qt6/network/gen_qnetworkdiskcache.h | 5 +- qt6/network/gen_qnetworkinformation.cpp | 2 +- qt6/network/gen_qnetworkinformation.h | 7 +- qt6/network/gen_qnetworkinterface.cpp | 6 +- qt6/network/gen_qnetworkinterface.h | 11 +- qt6/network/gen_qnetworkproxy.cpp | 12 +- qt6/network/gen_qnetworkproxy.h | 17 ++- qt6/network/gen_qnetworkreply.cpp | 41 ++++- qt6/network/gen_qnetworkreply.go | 30 ++++ qt6/network/gen_qnetworkreply.h | 12 +- qt6/network/gen_qnetworkrequest.cpp | 2 +- qt6/network/gen_qnetworkrequest.h | 7 +- qt6/network/gen_qocspresponse.h | 5 +- qt6/network/gen_qsctpserver.h | 5 +- qt6/network/gen_qsctpsocket.h | 5 +- qt6/network/gen_qssl.h | 5 +- qt6/network/gen_qsslcertificate.cpp | 36 ++--- qt6/network/gen_qsslcertificate.h | 41 ++--- qt6/network/gen_qsslcertificateextension.h | 5 +- qt6/network/gen_qsslcipher.h | 5 +- qt6/network/gen_qsslconfiguration.cpp | 30 ++-- qt6/network/gen_qsslconfiguration.h | 35 ++--- qt6/network/gen_qssldiffiehellmanparameters.h | 5 +- qt6/network/gen_qsslellipticcurve.h | 5 +- qt6/network/gen_qsslerror.h | 5 +- qt6/network/gen_qsslkey.h | 5 +- .../gen_qsslpresharedkeyauthenticator.h | 5 +- qt6/network/gen_qsslserver.cpp | 4 +- qt6/network/gen_qsslserver.h | 7 +- qt6/network/gen_qsslsocket.cpp | 30 ++-- qt6/network/gen_qsslsocket.h | 33 ++-- qt6/network/gen_qtcpserver.h | 5 +- qt6/network/gen_qtcpsocket.h | 5 +- qt6/network/gen_qudpsocket.h | 5 +- qt6/printsupport/gen_qabstractprintdialog.cpp | 2 +- qt6/printsupport/gen_qabstractprintdialog.h | 7 +- qt6/printsupport/gen_qpagesetupdialog.h | 5 +- qt6/printsupport/gen_qprintdialog.h | 5 +- qt6/printsupport/gen_qprintengine.h | 5 +- qt6/printsupport/gen_qprinter.cpp | 2 +- qt6/printsupport/gen_qprinter.h | 7 +- qt6/printsupport/gen_qprinterinfo.cpp | 12 +- qt6/printsupport/gen_qprinterinfo.h | 17 ++- qt6/printsupport/gen_qprintpreviewdialog.h | 5 +- qt6/printsupport/gen_qprintpreviewwidget.h | 5 +- qt6/spatialaudio/gen_qambientsound.h | 5 +- qt6/spatialaudio/gen_qaudioengine.h | 5 +- qt6/spatialaudio/gen_qaudiolistener.h | 5 +- qt6/spatialaudio/gen_qaudioroom.h | 5 +- qt6/spatialaudio/gen_qspatialsound.h | 5 +- 1411 files changed, 8602 insertions(+), 4793 deletions(-) diff --git a/qt-extras/scintillaedit/gen_ScintillaEdit.cpp b/qt-extras/scintillaedit/gen_ScintillaEdit.cpp index ece40b79..af3ec6f1 100644 --- a/qt-extras/scintillaedit/gen_ScintillaEdit.cpp +++ b/qt-extras/scintillaedit/gen_ScintillaEdit.cpp @@ -1899,6 +1899,20 @@ struct miqt_string ScintillaEdit_TextReturner(const ScintillaEdit* self, int mes return _ms; } +struct miqt_map /* tuple of int and int */ ScintillaEdit_FindText(ScintillaEdit* self, int flags, const char* text, int cpMin, int cpMax) { + QPair _ret = self->find_text(static_cast(flags), text, static_cast(cpMin), static_cast(cpMax)); + // Convert QPair<> from C++ memory to manually-managed C memory + int* _first_arr = static_cast(malloc(sizeof(int))); + int* _second_arr = static_cast(malloc(sizeof(int))); + _first_arr[0] = _ret.first; + _second_arr[0] = _ret.second; + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + struct miqt_string ScintillaEdit_GetTextRange(ScintillaEdit* self, int start, int end) { QByteArray _qb = self->get_text_range(static_cast(start), static_cast(end)); struct miqt_string _ms; @@ -1916,6 +1930,20 @@ void ScintillaEdit_SetDoc(ScintillaEdit* self, ScintillaDocument* pdoc_) { self->set_doc(pdoc_); } +struct miqt_map /* tuple of int and int */ ScintillaEdit_FindText2(ScintillaEdit* self, int flags, const char* text, int cpMin, int cpMax) { + QPair _ret = self->findText(static_cast(flags), text, static_cast(cpMin), static_cast(cpMax)); + // Convert QPair<> from C++ memory to manually-managed C memory + int* _first_arr = static_cast(malloc(sizeof(int))); + int* _second_arr = static_cast(malloc(sizeof(int))); + _first_arr[0] = _ret.first; + _second_arr[0] = _ret.second; + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + struct miqt_string ScintillaEdit_TextRange(ScintillaEdit* self, int start, int end) { QByteArray _qb = self->textRange(static_cast(start), static_cast(end)); struct miqt_string _ms; diff --git a/qt-extras/scintillaedit/gen_ScintillaEdit.go b/qt-extras/scintillaedit/gen_ScintillaEdit.go index 451de13e..689d07ba 100644 --- a/qt-extras/scintillaedit/gen_ScintillaEdit.go +++ b/qt-extras/scintillaedit/gen_ScintillaEdit.go @@ -5831,6 +5831,25 @@ func (this *ScintillaEdit) TextReturner(message int, wParam uintptr) []byte { return _ret } +func (this *ScintillaEdit) FindText(flags int, text string, cpMin int, cpMax int) struct { + First int + Second int +} { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + var _mm C.struct_miqt_map = C.ScintillaEdit_FindText(this.h, (C.int)(flags), text_Cstring, (C.int)(cpMin), (C.int)(cpMax)) + _First_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.values)) + _entry_First := (int)(_First_CArray[0]) + + _entry_Second := (int)(_Second_CArray[0]) + + return struct { + First int + Second int + }{First: _entry_First, Second: _entry_Second} +} + func (this *ScintillaEdit) GetTextRange(start int, end int) []byte { var _bytearray C.struct_miqt_string = C.ScintillaEdit_GetTextRange(this.h, (C.int)(start), (C.int)(end)) _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) @@ -5846,6 +5865,25 @@ func (this *ScintillaEdit) SetDoc(pdoc_ *ScintillaDocument) { C.ScintillaEdit_SetDoc(this.h, pdoc_.cPointer()) } +func (this *ScintillaEdit) FindText2(flags int, text string, cpMin int, cpMax int) struct { + First int + Second int +} { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + var _mm C.struct_miqt_map = C.ScintillaEdit_FindText2(this.h, (C.int)(flags), text_Cstring, (C.int)(cpMin), (C.int)(cpMax)) + _First_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.values)) + _entry_First := (int)(_First_CArray[0]) + + _entry_Second := (int)(_Second_CArray[0]) + + return struct { + First int + Second int + }{First: _entry_First, Second: _entry_Second} +} + func (this *ScintillaEdit) TextRange(start int, end int) []byte { var _bytearray C.struct_miqt_string = C.ScintillaEdit_TextRange(this.h, (C.int)(start), (C.int)(end)) _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) diff --git a/qt-extras/scintillaedit/gen_ScintillaEdit.h b/qt-extras/scintillaedit/gen_ScintillaEdit.h index 39df41d6..cfc2ee01 100644 --- a/qt-extras/scintillaedit/gen_ScintillaEdit.h +++ b/qt-extras/scintillaedit/gen_ScintillaEdit.h @@ -1,5 +1,6 @@ -#ifndef GEN_SCINTILLAEDIT_H -#define GEN_SCINTILLAEDIT_H +#pragma once +#ifndef MIQT_QT_EXTRAS_SCINTILLAEDIT_GEN_SCINTILLAEDIT_H +#define MIQT_QT_EXTRAS_SCINTILLAEDIT_GEN_SCINTILLAEDIT_H #include #include @@ -673,9 +674,11 @@ void* ScintillaEdit_Metacast(ScintillaEdit* self, const char* param1); struct miqt_string ScintillaEdit_Tr(const char* s); struct miqt_string ScintillaEdit_TrUtf8(const char* s); struct miqt_string ScintillaEdit_TextReturner(const ScintillaEdit* self, int message, uintptr_t wParam); +struct miqt_map /* tuple of int and int */ ScintillaEdit_FindText(ScintillaEdit* self, int flags, const char* text, int cpMin, int cpMax); struct miqt_string ScintillaEdit_GetTextRange(ScintillaEdit* self, int start, int end); ScintillaDocument* ScintillaEdit_GetDoc(ScintillaEdit* self); void ScintillaEdit_SetDoc(ScintillaEdit* self, ScintillaDocument* pdoc_); +struct miqt_map /* tuple of int and int */ ScintillaEdit_FindText2(ScintillaEdit* self, int flags, const char* text, int cpMin, int cpMax); struct miqt_string ScintillaEdit_TextRange(ScintillaEdit* self, int start, int end); long ScintillaEdit_FormatRange(ScintillaEdit* self, bool draw, QPaintDevice* target, QPaintDevice* measure, QRect* print_rect, QRect* page_rect, long range_start, long range_end); long ScintillaEdit_FormatRange2(ScintillaEdit* self, bool draw, QPaintDevice* target, QPaintDevice* measure, QRect* print_rect, QRect* page_rect, long range_start, long range_end); diff --git a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.cpp b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.cpp index 1b844ab6..0756047e 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.cpp +++ b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.cpp @@ -41,7 +41,7 @@ QsciLexer* QsciAbstractAPIs_Lexer(const QsciAbstractAPIs* self) { return self->lexer(); } -void QsciAbstractAPIs_UpdateAutoCompletionList(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list) { +void QsciAbstractAPIs_UpdateAutoCompletionList(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list) { QStringList context_QList; context_QList.reserve(context.len); struct miqt_string* context_arr = static_cast(context.data); @@ -64,7 +64,7 @@ void QsciAbstractAPIs_AutoCompletionSelected(QsciAbstractAPIs* self, struct miqt self->autoCompletionSelected(selection_QString); } -struct miqt_array QsciAbstractAPIs_CallTips(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts) { +struct miqt_array /* of struct miqt_string */ QsciAbstractAPIs_CallTips(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts) { QStringList context_QList; context_QList.reserve(context.len); struct miqt_string* context_arr = static_cast(context.data); diff --git a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.h b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.h index a63e587d..10017ae2 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.h +++ b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCIABSTRACTAPIS_H -#define GEN_QSCIABSTRACTAPIS_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCIABSTRACTAPIS_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCIABSTRACTAPIS_H #include #include @@ -28,9 +29,9 @@ void* QsciAbstractAPIs_Metacast(QsciAbstractAPIs* self, const char* param1); struct miqt_string QsciAbstractAPIs_Tr(const char* s); struct miqt_string QsciAbstractAPIs_TrUtf8(const char* s); QsciLexer* QsciAbstractAPIs_Lexer(const QsciAbstractAPIs* self); -void QsciAbstractAPIs_UpdateAutoCompletionList(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list); +void QsciAbstractAPIs_UpdateAutoCompletionList(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list); void QsciAbstractAPIs_AutoCompletionSelected(QsciAbstractAPIs* self, struct miqt_string selection); -struct miqt_array QsciAbstractAPIs_CallTips(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts); +struct miqt_array /* of struct miqt_string */ QsciAbstractAPIs_CallTips(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts); struct miqt_string QsciAbstractAPIs_Tr2(const char* s, const char* c); struct miqt_string QsciAbstractAPIs_Tr3(const char* s, const char* c, int n); struct miqt_string QsciAbstractAPIs_TrUtf82(const char* s, const char* c); diff --git a/qt-restricted-extras/qscintilla/gen_qsciapis.cpp b/qt-restricted-extras/qscintilla/gen_qsciapis.cpp index e26108e6..c990854a 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciapis.cpp +++ b/qt-restricted-extras/qscintilla/gen_qsciapis.cpp @@ -92,7 +92,7 @@ bool QsciAPIs_SavePrepared(const QsciAPIs* self) { return self->savePrepared(); } -void QsciAPIs_UpdateAutoCompletionList(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list) { +void QsciAPIs_UpdateAutoCompletionList(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list) { QStringList context_QList; context_QList.reserve(context.len); struct miqt_string* context_arr = static_cast(context.data); @@ -115,7 +115,7 @@ void QsciAPIs_AutoCompletionSelected(QsciAPIs* self, struct miqt_string sel) { self->autoCompletionSelected(sel_QString); } -struct miqt_array QsciAPIs_CallTips(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts) { +struct miqt_array /* of struct miqt_string */ QsciAPIs_CallTips(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts) { QStringList context_QList; context_QList.reserve(context.len); struct miqt_string* context_arr = static_cast(context.data); @@ -152,7 +152,7 @@ bool QsciAPIs_Event(QsciAPIs* self, QEvent* e) { return self->event(e); } -struct miqt_array QsciAPIs_InstalledAPIFiles(const QsciAPIs* self) { +struct miqt_array /* of struct miqt_string */ QsciAPIs_InstalledAPIFiles(const QsciAPIs* self) { QStringList _ret = self->installedAPIFiles(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla/gen_qsciapis.h b/qt-restricted-extras/qscintilla/gen_qsciapis.h index 298896f9..ce83eb8f 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciapis.h +++ b/qt-restricted-extras/qscintilla/gen_qsciapis.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCIAPIS_H -#define GEN_QSCIAPIS_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCIAPIS_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCIAPIS_H #include #include @@ -40,11 +41,11 @@ struct miqt_string QsciAPIs_DefaultPreparedName(const QsciAPIs* self); bool QsciAPIs_IsPrepared(const QsciAPIs* self); bool QsciAPIs_LoadPrepared(QsciAPIs* self); bool QsciAPIs_SavePrepared(const QsciAPIs* self); -void QsciAPIs_UpdateAutoCompletionList(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list); +void QsciAPIs_UpdateAutoCompletionList(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list); void QsciAPIs_AutoCompletionSelected(QsciAPIs* self, struct miqt_string sel); -struct miqt_array QsciAPIs_CallTips(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts); +struct miqt_array /* of struct miqt_string */ QsciAPIs_CallTips(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts); bool QsciAPIs_Event(QsciAPIs* self, QEvent* e); -struct miqt_array QsciAPIs_InstalledAPIFiles(const QsciAPIs* self); +struct miqt_array /* of struct miqt_string */ QsciAPIs_InstalledAPIFiles(const QsciAPIs* self); void QsciAPIs_ApiPreparationCancelled(QsciAPIs* self); void QsciAPIs_connect_ApiPreparationCancelled(QsciAPIs* self, intptr_t slot); void QsciAPIs_ApiPreparationStarted(QsciAPIs* self); diff --git a/qt-restricted-extras/qscintilla/gen_qscicommand.h b/qt-restricted-extras/qscintilla/gen_qscicommand.h index c80273d0..96e8a88a 100644 --- a/qt-restricted-extras/qscintilla/gen_qscicommand.h +++ b/qt-restricted-extras/qscintilla/gen_qscicommand.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCICOMMAND_H -#define GEN_QSCICOMMAND_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCICOMMAND_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCICOMMAND_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscicommandset.cpp b/qt-restricted-extras/qscintilla/gen_qscicommandset.cpp index 31d4dd00..f52c0e36 100644 --- a/qt-restricted-extras/qscintilla/gen_qscicommandset.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscicommandset.cpp @@ -12,7 +12,7 @@ bool QsciCommandSet_WriteSettings(QsciCommandSet* self, QSettings* qs) { return self->writeSettings(*qs); } -struct miqt_array QsciCommandSet_Commands(QsciCommandSet* self) { +struct miqt_array /* of QsciCommand* */ QsciCommandSet_Commands(QsciCommandSet* self) { QList& _ret = self->commands(); // Convert QList<> from C++ memory to manually-managed C memory QsciCommand** _arr = static_cast(malloc(sizeof(QsciCommand*) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla/gen_qscicommandset.h b/qt-restricted-extras/qscintilla/gen_qscicommandset.h index a6b1751f..45bd93a3 100644 --- a/qt-restricted-extras/qscintilla/gen_qscicommandset.h +++ b/qt-restricted-extras/qscintilla/gen_qscicommandset.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCICOMMANDSET_H -#define GEN_QSCICOMMANDSET_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCICOMMANDSET_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCICOMMANDSET_H #include #include @@ -25,7 +26,7 @@ typedef struct QsciCommandSet QsciCommandSet; bool QsciCommandSet_ReadSettings(QsciCommandSet* self, QSettings* qs); bool QsciCommandSet_WriteSettings(QsciCommandSet* self, QSettings* qs); -struct miqt_array QsciCommandSet_Commands(QsciCommandSet* self); +struct miqt_array /* of QsciCommand* */ QsciCommandSet_Commands(QsciCommandSet* self); void QsciCommandSet_ClearKeys(QsciCommandSet* self); void QsciCommandSet_ClearAlternateKeys(QsciCommandSet* self); QsciCommand* QsciCommandSet_BoundTo(const QsciCommandSet* self, int key); diff --git a/qt-restricted-extras/qscintilla/gen_qscidocument.h b/qt-restricted-extras/qscintilla/gen_qscidocument.h index 01ad57bc..4fc35618 100644 --- a/qt-restricted-extras/qscintilla/gen_qscidocument.h +++ b/qt-restricted-extras/qscintilla/gen_qscidocument.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCIDOCUMENT_H -#define GEN_QSCIDOCUMENT_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCIDOCUMENT_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCIDOCUMENT_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexer.cpp b/qt-restricted-extras/qscintilla/gen_qscilexer.cpp index f0c24b40..04664567 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexer.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexer.cpp @@ -60,7 +60,7 @@ const char* QsciLexer_AutoCompletionFillups(const QsciLexer* self) { return (const char*) self->autoCompletionFillups(); } -struct miqt_array QsciLexer_AutoCompletionWordSeparators(const QsciLexer* self) { +struct miqt_array /* of struct miqt_string */ QsciLexer_AutoCompletionWordSeparators(const QsciLexer* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexer.h b/qt-restricted-extras/qscintilla/gen_qscilexer.h index d8ab0098..ec3dfc70 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexer.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXER_H -#define GEN_QSCILEXER_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXER_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXER_H #include #include @@ -40,7 +41,7 @@ const char* QsciLexer_Lexer(const QsciLexer* self); int QsciLexer_LexerId(const QsciLexer* self); QsciAbstractAPIs* QsciLexer_Apis(const QsciLexer* self); const char* QsciLexer_AutoCompletionFillups(const QsciLexer* self); -struct miqt_array QsciLexer_AutoCompletionWordSeparators(const QsciLexer* self); +struct miqt_array /* of struct miqt_string */ QsciLexer_AutoCompletionWordSeparators(const QsciLexer* self); int QsciLexer_AutoIndentStyle(QsciLexer* self); const char* QsciLexer_BlockEnd(const QsciLexer* self); int QsciLexer_BlockLookback(const QsciLexer* self); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeravs.h b/qt-restricted-extras/qscintilla/gen_qscilexeravs.h index fc9968c0..1dc7fbe0 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeravs.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexeravs.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERAVS_H -#define GEN_QSCILEXERAVS_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERAVS_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERAVS_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerbash.h b/qt-restricted-extras/qscintilla/gen_qscilexerbash.h index e6d0a228..02ed8341 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerbash.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerbash.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERBASH_H -#define GEN_QSCILEXERBASH_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERBASH_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERBASH_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerbatch.h b/qt-restricted-extras/qscintilla/gen_qscilexerbatch.h index 0a7ad087..592e298f 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerbatch.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerbatch.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERBATCH_H -#define GEN_QSCILEXERBATCH_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERBATCH_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERBATCH_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercmake.h b/qt-restricted-extras/qscintilla/gen_qscilexercmake.h index 91b13e6d..945208ca 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercmake.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexercmake.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERCMAKE_H -#define GEN_QSCILEXERCMAKE_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERCMAKE_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERCMAKE_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.cpp b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.cpp index 663624f2..34f37e49 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.cpp @@ -56,7 +56,7 @@ const char* QsciLexerCoffeeScript_Lexer(const QsciLexerCoffeeScript* self) { return (const char*) self->lexer(); } -struct miqt_array QsciLexerCoffeeScript_AutoCompletionWordSeparators(const QsciLexerCoffeeScript* self) { +struct miqt_array /* of struct miqt_string */ QsciLexerCoffeeScript_AutoCompletionWordSeparators(const QsciLexerCoffeeScript* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.h b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.h index d50603e8..13891933 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERCOFFEESCRIPT_H -#define GEN_QSCILEXERCOFFEESCRIPT_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERCOFFEESCRIPT_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERCOFFEESCRIPT_H #include #include @@ -35,7 +36,7 @@ struct miqt_string QsciLexerCoffeeScript_Tr(const char* s); struct miqt_string QsciLexerCoffeeScript_TrUtf8(const char* s); const char* QsciLexerCoffeeScript_Language(const QsciLexerCoffeeScript* self); const char* QsciLexerCoffeeScript_Lexer(const QsciLexerCoffeeScript* self); -struct miqt_array QsciLexerCoffeeScript_AutoCompletionWordSeparators(const QsciLexerCoffeeScript* self); +struct miqt_array /* of struct miqt_string */ QsciLexerCoffeeScript_AutoCompletionWordSeparators(const QsciLexerCoffeeScript* self); const char* QsciLexerCoffeeScript_BlockEnd(const QsciLexerCoffeeScript* self); const char* QsciLexerCoffeeScript_BlockStart(const QsciLexerCoffeeScript* self); const char* QsciLexerCoffeeScript_BlockStartKeyword(const QsciLexerCoffeeScript* self); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercpp.cpp b/qt-restricted-extras/qscintilla/gen_qscilexercpp.cpp index 992a972d..f5cce7e0 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercpp.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexercpp.cpp @@ -60,7 +60,7 @@ const char* QsciLexerCPP_Lexer(const QsciLexerCPP* self) { return (const char*) self->lexer(); } -struct miqt_array QsciLexerCPP_AutoCompletionWordSeparators(const QsciLexerCPP* self) { +struct miqt_array /* of struct miqt_string */ QsciLexerCPP_AutoCompletionWordSeparators(const QsciLexerCPP* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercpp.h b/qt-restricted-extras/qscintilla/gen_qscilexercpp.h index 5af72560..d09db042 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercpp.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexercpp.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERCPP_H -#define GEN_QSCILEXERCPP_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERCPP_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERCPP_H #include #include @@ -36,7 +37,7 @@ struct miqt_string QsciLexerCPP_Tr(const char* s); struct miqt_string QsciLexerCPP_TrUtf8(const char* s); const char* QsciLexerCPP_Language(const QsciLexerCPP* self); const char* QsciLexerCPP_Lexer(const QsciLexerCPP* self); -struct miqt_array QsciLexerCPP_AutoCompletionWordSeparators(const QsciLexerCPP* self); +struct miqt_array /* of struct miqt_string */ QsciLexerCPP_AutoCompletionWordSeparators(const QsciLexerCPP* self); const char* QsciLexerCPP_BlockEnd(const QsciLexerCPP* self); const char* QsciLexerCPP_BlockStart(const QsciLexerCPP* self); const char* QsciLexerCPP_BlockStartKeyword(const QsciLexerCPP* self); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercsharp.h b/qt-restricted-extras/qscintilla/gen_qscilexercsharp.h index fdb99457..20dc0b40 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercsharp.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexercsharp.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERCSHARP_H -#define GEN_QSCILEXERCSHARP_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERCSHARP_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERCSHARP_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercss.h b/qt-restricted-extras/qscintilla/gen_qscilexercss.h index c1311748..a0726859 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercss.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexercss.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERCSS_H -#define GEN_QSCILEXERCSS_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERCSS_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERCSS_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercustom.h b/qt-restricted-extras/qscintilla/gen_qscilexercustom.h index adbf296c..8712bbdf 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercustom.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexercustom.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERCUSTOM_H -#define GEN_QSCILEXERCUSTOM_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERCUSTOM_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERCUSTOM_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerd.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerd.cpp index c6732b9f..af5e2b8c 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerd.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerd.cpp @@ -56,7 +56,7 @@ const char* QsciLexerD_Lexer(const QsciLexerD* self) { return (const char*) self->lexer(); } -struct miqt_array QsciLexerD_AutoCompletionWordSeparators(const QsciLexerD* self) { +struct miqt_array /* of struct miqt_string */ QsciLexerD_AutoCompletionWordSeparators(const QsciLexerD* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerd.h b/qt-restricted-extras/qscintilla/gen_qscilexerd.h index 2e94d0dd..52795c07 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerd.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerd.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERD_H -#define GEN_QSCILEXERD_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERD_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERD_H #include #include @@ -35,7 +36,7 @@ struct miqt_string QsciLexerD_Tr(const char* s); struct miqt_string QsciLexerD_TrUtf8(const char* s); const char* QsciLexerD_Language(const QsciLexerD* self); const char* QsciLexerD_Lexer(const QsciLexerD* self); -struct miqt_array QsciLexerD_AutoCompletionWordSeparators(const QsciLexerD* self); +struct miqt_array /* of struct miqt_string */ QsciLexerD_AutoCompletionWordSeparators(const QsciLexerD* self); const char* QsciLexerD_BlockEnd(const QsciLexerD* self); const char* QsciLexerD_BlockStart(const QsciLexerD* self); const char* QsciLexerD_BlockStartKeyword(const QsciLexerD* self); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerdiff.h b/qt-restricted-extras/qscintilla/gen_qscilexerdiff.h index c8295060..768c4b8f 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerdiff.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerdiff.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERDIFF_H -#define GEN_QSCILEXERDIFF_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERDIFF_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERDIFF_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeredifact.h b/qt-restricted-extras/qscintilla/gen_qscilexeredifact.h index a63ac5a9..9f43cdc2 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeredifact.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexeredifact.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXEREDIFACT_H -#define GEN_QSCILEXEREDIFACT_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXEREDIFACT_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXEREDIFACT_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerfortran.h b/qt-restricted-extras/qscintilla/gen_qscilexerfortran.h index c66dd068..18ff4e00 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerfortran.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerfortran.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERFORTRAN_H -#define GEN_QSCILEXERFORTRAN_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERFORTRAN_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERFORTRAN_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.h b/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.h index 15355fc8..aea61394 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERFORTRAN77_H -#define GEN_QSCILEXERFORTRAN77_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERFORTRAN77_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERFORTRAN77_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerhtml.h b/qt-restricted-extras/qscintilla/gen_qscilexerhtml.h index f5f0fe9c..710aad46 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerhtml.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerhtml.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERHTML_H -#define GEN_QSCILEXERHTML_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERHTML_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERHTML_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeridl.h b/qt-restricted-extras/qscintilla/gen_qscilexeridl.h index 5ef57ea7..f90fa4d5 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeridl.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexeridl.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERIDL_H -#define GEN_QSCILEXERIDL_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERIDL_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERIDL_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjava.h b/qt-restricted-extras/qscintilla/gen_qscilexerjava.h index ec5ed907..dad3ccd6 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerjava.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjava.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERJAVA_H -#define GEN_QSCILEXERJAVA_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERJAVA_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERJAVA_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.h b/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.h index 3a2d44a6..4fe89adf 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERJAVASCRIPT_H -#define GEN_QSCILEXERJAVASCRIPT_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERJAVASCRIPT_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERJAVASCRIPT_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjson.h b/qt-restricted-extras/qscintilla/gen_qscilexerjson.h index 8b396604..2fc9c10f 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerjson.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjson.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERJSON_H -#define GEN_QSCILEXERJSON_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERJSON_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERJSON_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerlua.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerlua.cpp index 8255e21f..182489a3 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerlua.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerlua.cpp @@ -56,7 +56,7 @@ const char* QsciLexerLua_Lexer(const QsciLexerLua* self) { return (const char*) self->lexer(); } -struct miqt_array QsciLexerLua_AutoCompletionWordSeparators(const QsciLexerLua* self) { +struct miqt_array /* of struct miqt_string */ QsciLexerLua_AutoCompletionWordSeparators(const QsciLexerLua* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerlua.h b/qt-restricted-extras/qscintilla/gen_qscilexerlua.h index 1e6a3b17..ab1e1932 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerlua.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerlua.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERLUA_H -#define GEN_QSCILEXERLUA_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERLUA_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERLUA_H #include #include @@ -35,7 +36,7 @@ struct miqt_string QsciLexerLua_Tr(const char* s); struct miqt_string QsciLexerLua_TrUtf8(const char* s); const char* QsciLexerLua_Language(const QsciLexerLua* self); const char* QsciLexerLua_Lexer(const QsciLexerLua* self); -struct miqt_array QsciLexerLua_AutoCompletionWordSeparators(const QsciLexerLua* self); +struct miqt_array /* of struct miqt_string */ QsciLexerLua_AutoCompletionWordSeparators(const QsciLexerLua* self); const char* QsciLexerLua_BlockStart(const QsciLexerLua* self); int QsciLexerLua_BraceStyle(const QsciLexerLua* self); QColor* QsciLexerLua_DefaultColor(const QsciLexerLua* self, int style); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermakefile.h b/qt-restricted-extras/qscintilla/gen_qscilexermakefile.h index 0609e4c9..bc2ac880 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexermakefile.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexermakefile.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERMAKEFILE_H -#define GEN_QSCILEXERMAKEFILE_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERMAKEFILE_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERMAKEFILE_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.h b/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.h index 3f2a1224..e5fc2495 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERMARKDOWN_H -#define GEN_QSCILEXERMARKDOWN_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERMARKDOWN_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERMARKDOWN_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermatlab.h b/qt-restricted-extras/qscintilla/gen_qscilexermatlab.h index 27e2c183..7ad16e49 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexermatlab.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexermatlab.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERMATLAB_H -#define GEN_QSCILEXERMATLAB_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERMATLAB_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERMATLAB_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeroctave.h b/qt-restricted-extras/qscintilla/gen_qscilexeroctave.h index 6468b523..5bec4c6c 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeroctave.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexeroctave.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXEROCTAVE_H -#define GEN_QSCILEXEROCTAVE_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXEROCTAVE_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXEROCTAVE_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpascal.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.cpp index 79e42031..09b0786c 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpascal.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.cpp @@ -56,7 +56,7 @@ const char* QsciLexerPascal_Lexer(const QsciLexerPascal* self) { return (const char*) self->lexer(); } -struct miqt_array QsciLexerPascal_AutoCompletionWordSeparators(const QsciLexerPascal* self) { +struct miqt_array /* of struct miqt_string */ QsciLexerPascal_AutoCompletionWordSeparators(const QsciLexerPascal* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpascal.h b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.h index 7fdea44a..b61cf26f 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpascal.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERPASCAL_H -#define GEN_QSCILEXERPASCAL_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERPASCAL_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERPASCAL_H #include #include @@ -35,7 +36,7 @@ struct miqt_string QsciLexerPascal_Tr(const char* s); struct miqt_string QsciLexerPascal_TrUtf8(const char* s); const char* QsciLexerPascal_Language(const QsciLexerPascal* self); const char* QsciLexerPascal_Lexer(const QsciLexerPascal* self); -struct miqt_array QsciLexerPascal_AutoCompletionWordSeparators(const QsciLexerPascal* self); +struct miqt_array /* of struct miqt_string */ QsciLexerPascal_AutoCompletionWordSeparators(const QsciLexerPascal* self); const char* QsciLexerPascal_BlockEnd(const QsciLexerPascal* self); const char* QsciLexerPascal_BlockStart(const QsciLexerPascal* self); const char* QsciLexerPascal_BlockStartKeyword(const QsciLexerPascal* self); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerperl.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerperl.cpp index 98665d74..76497c20 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerperl.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerperl.cpp @@ -56,7 +56,7 @@ const char* QsciLexerPerl_Lexer(const QsciLexerPerl* self) { return (const char*) self->lexer(); } -struct miqt_array QsciLexerPerl_AutoCompletionWordSeparators(const QsciLexerPerl* self) { +struct miqt_array /* of struct miqt_string */ QsciLexerPerl_AutoCompletionWordSeparators(const QsciLexerPerl* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerperl.h b/qt-restricted-extras/qscintilla/gen_qscilexerperl.h index 66139c80..48d17c22 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerperl.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerperl.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERPERL_H -#define GEN_QSCILEXERPERL_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERPERL_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERPERL_H #include #include @@ -35,7 +36,7 @@ struct miqt_string QsciLexerPerl_Tr(const char* s); struct miqt_string QsciLexerPerl_TrUtf8(const char* s); const char* QsciLexerPerl_Language(const QsciLexerPerl* self); const char* QsciLexerPerl_Lexer(const QsciLexerPerl* self); -struct miqt_array QsciLexerPerl_AutoCompletionWordSeparators(const QsciLexerPerl* self); +struct miqt_array /* of struct miqt_string */ QsciLexerPerl_AutoCompletionWordSeparators(const QsciLexerPerl* self); const char* QsciLexerPerl_BlockEnd(const QsciLexerPerl* self); const char* QsciLexerPerl_BlockStart(const QsciLexerPerl* self); int QsciLexerPerl_BraceStyle(const QsciLexerPerl* self); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpo.h b/qt-restricted-extras/qscintilla/gen_qscilexerpo.h index db7b5afc..e17c3979 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpo.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERPO_H -#define GEN_QSCILEXERPO_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERPO_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERPO_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.h b/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.h index ffa1ae6e..c1462ddc 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERPOSTSCRIPT_H -#define GEN_QSCILEXERPOSTSCRIPT_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERPOSTSCRIPT_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERPOSTSCRIPT_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpov.h b/qt-restricted-extras/qscintilla/gen_qscilexerpov.h index bc86aeb0..1fb94b35 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpov.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpov.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERPOV_H -#define GEN_QSCILEXERPOV_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERPOV_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERPOV_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerproperties.h b/qt-restricted-extras/qscintilla/gen_qscilexerproperties.h index 51d2155c..33b1dc01 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerproperties.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerproperties.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERPROPERTIES_H -#define GEN_QSCILEXERPROPERTIES_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERPROPERTIES_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERPROPERTIES_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpython.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerpython.cpp index 14b29a45..8173262c 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpython.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpython.cpp @@ -56,7 +56,7 @@ const char* QsciLexerPython_Lexer(const QsciLexerPython* self) { return (const char*) self->lexer(); } -struct miqt_array QsciLexerPython_AutoCompletionWordSeparators(const QsciLexerPython* self) { +struct miqt_array /* of struct miqt_string */ QsciLexerPython_AutoCompletionWordSeparators(const QsciLexerPython* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpython.h b/qt-restricted-extras/qscintilla/gen_qscilexerpython.h index 71fd135d..d9b8d10b 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpython.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpython.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERPYTHON_H -#define GEN_QSCILEXERPYTHON_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERPYTHON_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERPYTHON_H #include #include @@ -35,7 +36,7 @@ struct miqt_string QsciLexerPython_Tr(const char* s); struct miqt_string QsciLexerPython_TrUtf8(const char* s); const char* QsciLexerPython_Language(const QsciLexerPython* self); const char* QsciLexerPython_Lexer(const QsciLexerPython* self); -struct miqt_array QsciLexerPython_AutoCompletionWordSeparators(const QsciLexerPython* self); +struct miqt_array /* of struct miqt_string */ QsciLexerPython_AutoCompletionWordSeparators(const QsciLexerPython* self); int QsciLexerPython_BlockLookback(const QsciLexerPython* self); const char* QsciLexerPython_BlockStart(const QsciLexerPython* self); int QsciLexerPython_BraceStyle(const QsciLexerPython* self); diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerruby.h b/qt-restricted-extras/qscintilla/gen_qscilexerruby.h index 47cbb151..5e0096d5 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerruby.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerruby.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERRUBY_H -#define GEN_QSCILEXERRUBY_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERRUBY_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERRUBY_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerspice.h b/qt-restricted-extras/qscintilla/gen_qscilexerspice.h index 1ce02cc4..437ee04e 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerspice.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerspice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERSPICE_H -#define GEN_QSCILEXERSPICE_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERSPICE_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERSPICE_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexersql.h b/qt-restricted-extras/qscintilla/gen_qscilexersql.h index 9afb262c..64aa8e65 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexersql.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexersql.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERSQL_H -#define GEN_QSCILEXERSQL_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERSQL_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERSQL_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexertcl.h b/qt-restricted-extras/qscintilla/gen_qscilexertcl.h index 3319bc71..b7c7e5a5 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexertcl.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexertcl.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERTCL_H -#define GEN_QSCILEXERTCL_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERTCL_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERTCL_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexertex.h b/qt-restricted-extras/qscintilla/gen_qscilexertex.h index 183d1efa..0ac547c6 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexertex.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexertex.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERTEX_H -#define GEN_QSCILEXERTEX_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERTEX_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERTEX_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerverilog.h b/qt-restricted-extras/qscintilla/gen_qscilexerverilog.h index 227bf456..abe71b30 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerverilog.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerverilog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERVERILOG_H -#define GEN_QSCILEXERVERILOG_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERVERILOG_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERVERILOG_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexervhdl.h b/qt-restricted-extras/qscintilla/gen_qscilexervhdl.h index 516abd35..3859c463 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexervhdl.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexervhdl.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERVHDL_H -#define GEN_QSCILEXERVHDL_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERVHDL_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERVHDL_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerxml.h b/qt-restricted-extras/qscintilla/gen_qscilexerxml.h index f6f14efc..112beb51 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerxml.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerxml.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERXML_H -#define GEN_QSCILEXERXML_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERXML_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERXML_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeryaml.h b/qt-restricted-extras/qscintilla/gen_qscilexeryaml.h index bc9e7efa..3abd9c44 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeryaml.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexeryaml.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERYAML_H -#define GEN_QSCILEXERYAML_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERYAML_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCILEXERYAML_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscimacro.h b/qt-restricted-extras/qscintilla/gen_qscimacro.h index 6d4f662c..de295a3b 100644 --- a/qt-restricted-extras/qscintilla/gen_qscimacro.h +++ b/qt-restricted-extras/qscintilla/gen_qscimacro.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCIMACRO_H -#define GEN_QSCIMACRO_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCIMACRO_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCIMACRO_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qsciprinter.h b/qt-restricted-extras/qscintilla/gen_qsciprinter.h index c2152a5f..e49ee745 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciprinter.h +++ b/qt-restricted-extras/qscintilla/gen_qsciprinter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCIPRINTER_H -#define GEN_QSCIPRINTER_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCIPRINTER_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCIPRINTER_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintilla.cpp b/qt-restricted-extras/qscintilla/gen_qsciscintilla.cpp index 592afea9..e68ce060 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciscintilla.cpp +++ b/qt-restricted-extras/qscintilla/gen_qsciscintilla.cpp @@ -54,7 +54,7 @@ struct miqt_string QsciScintilla_TrUtf8(const char* s) { return _ms; } -struct miqt_array QsciScintilla_ApiContext(QsciScintilla* self, int pos, int* context_start, int* last_word_start) { +struct miqt_array /* of struct miqt_string */ QsciScintilla_ApiContext(QsciScintilla* self, int pos, int* context_start, int* last_word_start) { QStringList _ret = self->apiContext(static_cast(pos), static_cast(*context_start), static_cast(*last_word_start)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -206,7 +206,7 @@ QColor* QsciScintilla_Color(const QsciScintilla* self) { return new QColor(self->color()); } -struct miqt_array QsciScintilla_ContractedFolds(const QsciScintilla* self) { +struct miqt_array /* of int */ QsciScintilla_ContractedFolds(const QsciScintilla* self) { QList _ret = self->contractedFolds(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -542,7 +542,7 @@ void QsciScintilla_SetAutoCompletionFillups(QsciScintilla* self, const char* fil self->setAutoCompletionFillups(fillups); } -void QsciScintilla_SetAutoCompletionWordSeparators(QsciScintilla* self, struct miqt_array /* of struct miqt_string */ separators) { +void QsciScintilla_SetAutoCompletionWordSeparators(QsciScintilla* self, struct miqt_array /* of struct miqt_string */ separators) { QStringList separators_QList; separators_QList.reserve(separators.len); struct miqt_string* separators_arr = static_cast(separators.data); @@ -577,7 +577,7 @@ void QsciScintilla_SetCallTipsVisible(QsciScintilla* self, int nr) { self->setCallTipsVisible(static_cast(nr)); } -void QsciScintilla_SetContractedFolds(QsciScintilla* self, struct miqt_array /* of int */ folds) { +void QsciScintilla_SetContractedFolds(QsciScintilla* self, struct miqt_array /* of int */ folds) { QList folds_QList; folds_QList.reserve(folds.len); int* folds_arr = static_cast(folds.data); @@ -788,7 +788,7 @@ void QsciScintilla_SetWrapIndentMode(QsciScintilla* self, int mode) { self->setWrapIndentMode(static_cast(mode)); } -void QsciScintilla_ShowUserList(QsciScintilla* self, int id, struct miqt_array /* of struct miqt_string */ list) { +void QsciScintilla_ShowUserList(QsciScintilla* self, int id, struct miqt_array /* of struct miqt_string */ list) { QStringList list_QList; list_QList.reserve(list.len); struct miqt_string* list_arr = static_cast(list.data); diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintilla.h b/qt-restricted-extras/qscintilla/gen_qsciscintilla.h index 124e2932..37df6c73 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciscintilla.h +++ b/qt-restricted-extras/qscintilla/gen_qsciscintilla.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCISCINTILLA_H -#define GEN_QSCISCINTILLA_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCISCINTILLA_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCISCINTILLA_H #include #include @@ -55,7 +56,7 @@ QMetaObject* QsciScintilla_MetaObject(const QsciScintilla* self); void* QsciScintilla_Metacast(QsciScintilla* self, const char* param1); struct miqt_string QsciScintilla_Tr(const char* s); struct miqt_string QsciScintilla_TrUtf8(const char* s); -struct miqt_array QsciScintilla_ApiContext(QsciScintilla* self, int pos, int* context_start, int* last_word_start); +struct miqt_array /* of struct miqt_string */ QsciScintilla_ApiContext(QsciScintilla* self, int pos, int* context_start, int* last_word_start); void QsciScintilla_Annotate(QsciScintilla* self, int line, struct miqt_string text, int style); void QsciScintilla_Annotate2(QsciScintilla* self, int line, struct miqt_string text, QsciStyle* style); void QsciScintilla_Annotate3(QsciScintilla* self, int line, QsciStyledText* text); @@ -84,7 +85,7 @@ void QsciScintilla_ClearFolds(QsciScintilla* self); void QsciScintilla_ClearIndicatorRange(QsciScintilla* self, int lineFrom, int indexFrom, int lineTo, int indexTo, int indicatorNumber); void QsciScintilla_ClearRegisteredImages(QsciScintilla* self); QColor* QsciScintilla_Color(const QsciScintilla* self); -struct miqt_array QsciScintilla_ContractedFolds(const QsciScintilla* self); +struct miqt_array /* of int */ QsciScintilla_ContractedFolds(const QsciScintilla* self); void QsciScintilla_ConvertEols(QsciScintilla* self, int mode); QMenu* QsciScintilla_CreateStandardContextMenu(QsciScintilla* self); QsciDocument* QsciScintilla_Document(const QsciScintilla* self); @@ -164,14 +165,14 @@ void QsciScintilla_SetFoldMarginColors(QsciScintilla* self, QColor* fore, QColor void QsciScintilla_SetAnnotationDisplay(QsciScintilla* self, int display); void QsciScintilla_SetAutoCompletionFillupsEnabled(QsciScintilla* self, bool enabled); void QsciScintilla_SetAutoCompletionFillups(QsciScintilla* self, const char* fillups); -void QsciScintilla_SetAutoCompletionWordSeparators(QsciScintilla* self, struct miqt_array /* of struct miqt_string */ separators); +void QsciScintilla_SetAutoCompletionWordSeparators(QsciScintilla* self, struct miqt_array /* of struct miqt_string */ separators); void QsciScintilla_SetCallTipsBackgroundColor(QsciScintilla* self, QColor* col); void QsciScintilla_SetCallTipsForegroundColor(QsciScintilla* self, QColor* col); void QsciScintilla_SetCallTipsHighlightColor(QsciScintilla* self, QColor* col); void QsciScintilla_SetCallTipsPosition(QsciScintilla* self, int position); void QsciScintilla_SetCallTipsStyle(QsciScintilla* self, int style); void QsciScintilla_SetCallTipsVisible(QsciScintilla* self, int nr); -void QsciScintilla_SetContractedFolds(QsciScintilla* self, struct miqt_array /* of int */ folds); +void QsciScintilla_SetContractedFolds(QsciScintilla* self, struct miqt_array /* of int */ folds); void QsciScintilla_SetDocument(QsciScintilla* self, QsciDocument* document); void QsciScintilla_AddEdgeColumn(QsciScintilla* self, int colnr, QColor* col); void QsciScintilla_ClearEdgeColumns(QsciScintilla* self); @@ -220,7 +221,7 @@ void QsciScintilla_SetWhitespaceBackgroundColor(QsciScintilla* self, QColor* col void QsciScintilla_SetWhitespaceForegroundColor(QsciScintilla* self, QColor* col); void QsciScintilla_SetWhitespaceSize(QsciScintilla* self, int size); void QsciScintilla_SetWrapIndentMode(QsciScintilla* self, int mode); -void QsciScintilla_ShowUserList(QsciScintilla* self, int id, struct miqt_array /* of struct miqt_string */ list); +void QsciScintilla_ShowUserList(QsciScintilla* self, int id, struct miqt_array /* of struct miqt_string */ list); QsciCommandSet* QsciScintilla_StandardCommands(const QsciScintilla* self); int QsciScintilla_TabDrawMode(const QsciScintilla* self); bool QsciScintilla_TabIndents(const QsciScintilla* self); diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintillabase.go b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.go index 971860d8..aa5e8383 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciscintillabase.go +++ b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.go @@ -1783,7 +1783,7 @@ func (this *QsciScintillaBase) OnSCN_MACRORECORD(slot func(param1 uint, param2 u } //export miqt_exec_callback_QsciScintillaBase_SCN_MACRORECORD -func miqt_exec_callback_QsciScintillaBase_SCN_MACRORECORD(cb C.intptr_t, param1 C.uint, param2 C.ulong, param3 *C.void) { +func miqt_exec_callback_QsciScintillaBase_SCN_MACRORECORD(cb C.intptr_t, param1 C.uint, param2 C.ulong, param3 unsafe.Pointer) { gofunc, ok := cgo.Handle(cb).Value().(func(param1 uint, param2 uint64, param3 unsafe.Pointer)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintillabase.h b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.h index 7b7d422a..aa6e8e6e 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciscintillabase.h +++ b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCISCINTILLABASE_H -#define GEN_QSCISCINTILLABASE_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCISCINTILLABASE_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCISCINTILLABASE_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscistyle.h b/qt-restricted-extras/qscintilla/gen_qscistyle.h index d42364fe..fa865299 100644 --- a/qt-restricted-extras/qscintilla/gen_qscistyle.h +++ b/qt-restricted-extras/qscintilla/gen_qscistyle.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCISTYLE_H -#define GEN_QSCISTYLE_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCISTYLE_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCISTYLE_H #include #include diff --git a/qt-restricted-extras/qscintilla/gen_qscistyledtext.h b/qt-restricted-extras/qscintilla/gen_qscistyledtext.h index a42ec89d..5b006baf 100644 --- a/qt-restricted-extras/qscintilla/gen_qscistyledtext.h +++ b/qt-restricted-extras/qscintilla/gen_qscistyledtext.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCISTYLEDTEXT_H -#define GEN_QSCISTYLEDTEXT_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCISTYLEDTEXT_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA_GEN_QSCISTYLEDTEXT_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.cpp b/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.cpp index f660bc5d..cb8d2876 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.cpp @@ -30,7 +30,7 @@ QsciLexer* QsciAbstractAPIs_Lexer(const QsciAbstractAPIs* self) { return self->lexer(); } -void QsciAbstractAPIs_UpdateAutoCompletionList(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list) { +void QsciAbstractAPIs_UpdateAutoCompletionList(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list) { QStringList context_QList; context_QList.reserve(context.len); struct miqt_string* context_arr = static_cast(context.data); @@ -53,7 +53,7 @@ void QsciAbstractAPIs_AutoCompletionSelected(QsciAbstractAPIs* self, struct miqt self->autoCompletionSelected(selection_QString); } -struct miqt_array QsciAbstractAPIs_CallTips(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts) { +struct miqt_array /* of struct miqt_string */ QsciAbstractAPIs_CallTips(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts) { QStringList context_QList; context_QList.reserve(context.len); struct miqt_string* context_arr = static_cast(context.data); diff --git a/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.h b/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.h index 7095c8f8..dcd5f41a 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.h +++ b/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCIABSTRACTAPIS_H -#define GEN_QSCIABSTRACTAPIS_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCIABSTRACTAPIS_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCIABSTRACTAPIS_H #include #include @@ -27,9 +28,9 @@ QMetaObject* QsciAbstractAPIs_MetaObject(const QsciAbstractAPIs* self); void* QsciAbstractAPIs_Metacast(QsciAbstractAPIs* self, const char* param1); struct miqt_string QsciAbstractAPIs_Tr(const char* s); QsciLexer* QsciAbstractAPIs_Lexer(const QsciAbstractAPIs* self); -void QsciAbstractAPIs_UpdateAutoCompletionList(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list); +void QsciAbstractAPIs_UpdateAutoCompletionList(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list); void QsciAbstractAPIs_AutoCompletionSelected(QsciAbstractAPIs* self, struct miqt_string selection); -struct miqt_array QsciAbstractAPIs_CallTips(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts); +struct miqt_array /* of struct miqt_string */ QsciAbstractAPIs_CallTips(QsciAbstractAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts); struct miqt_string QsciAbstractAPIs_Tr2(const char* s, const char* c); struct miqt_string QsciAbstractAPIs_Tr3(const char* s, const char* c, int n); void QsciAbstractAPIs_Delete(QsciAbstractAPIs* self); diff --git a/qt-restricted-extras/qscintilla6/gen_qsciapis.cpp b/qt-restricted-extras/qscintilla6/gen_qsciapis.cpp index 436ca53c..8aa82f5d 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciapis.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qsciapis.cpp @@ -81,7 +81,7 @@ bool QsciAPIs_SavePrepared(const QsciAPIs* self) { return self->savePrepared(); } -void QsciAPIs_UpdateAutoCompletionList(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list) { +void QsciAPIs_UpdateAutoCompletionList(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list) { QStringList context_QList; context_QList.reserve(context.len); struct miqt_string* context_arr = static_cast(context.data); @@ -104,7 +104,7 @@ void QsciAPIs_AutoCompletionSelected(QsciAPIs* self, struct miqt_string sel) { self->autoCompletionSelected(sel_QString); } -struct miqt_array QsciAPIs_CallTips(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts) { +struct miqt_array /* of struct miqt_string */ QsciAPIs_CallTips(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts) { QStringList context_QList; context_QList.reserve(context.len); struct miqt_string* context_arr = static_cast(context.data); @@ -141,7 +141,7 @@ bool QsciAPIs_Event(QsciAPIs* self, QEvent* e) { return self->event(e); } -struct miqt_array QsciAPIs_InstalledAPIFiles(const QsciAPIs* self) { +struct miqt_array /* of struct miqt_string */ QsciAPIs_InstalledAPIFiles(const QsciAPIs* self) { QStringList _ret = self->installedAPIFiles(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla6/gen_qsciapis.h b/qt-restricted-extras/qscintilla6/gen_qsciapis.h index da61270a..a873bda5 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciapis.h +++ b/qt-restricted-extras/qscintilla6/gen_qsciapis.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCIAPIS_H -#define GEN_QSCIAPIS_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCIAPIS_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCIAPIS_H #include #include @@ -39,11 +40,11 @@ struct miqt_string QsciAPIs_DefaultPreparedName(const QsciAPIs* self); bool QsciAPIs_IsPrepared(const QsciAPIs* self); bool QsciAPIs_LoadPrepared(QsciAPIs* self); bool QsciAPIs_SavePrepared(const QsciAPIs* self); -void QsciAPIs_UpdateAutoCompletionList(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list); +void QsciAPIs_UpdateAutoCompletionList(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, struct miqt_array /* of struct miqt_string */ list); void QsciAPIs_AutoCompletionSelected(QsciAPIs* self, struct miqt_string sel); -struct miqt_array QsciAPIs_CallTips(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts); +struct miqt_array /* of struct miqt_string */ QsciAPIs_CallTips(QsciAPIs* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts); bool QsciAPIs_Event(QsciAPIs* self, QEvent* e); -struct miqt_array QsciAPIs_InstalledAPIFiles(const QsciAPIs* self); +struct miqt_array /* of struct miqt_string */ QsciAPIs_InstalledAPIFiles(const QsciAPIs* self); void QsciAPIs_ApiPreparationCancelled(QsciAPIs* self); void QsciAPIs_connect_ApiPreparationCancelled(QsciAPIs* self, intptr_t slot); void QsciAPIs_ApiPreparationStarted(QsciAPIs* self); diff --git a/qt-restricted-extras/qscintilla6/gen_qscicommand.h b/qt-restricted-extras/qscintilla6/gen_qscicommand.h index c80273d0..0ea3de44 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscicommand.h +++ b/qt-restricted-extras/qscintilla6/gen_qscicommand.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCICOMMAND_H -#define GEN_QSCICOMMAND_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCICOMMAND_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCICOMMAND_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscicommandset.cpp b/qt-restricted-extras/qscintilla6/gen_qscicommandset.cpp index 31d4dd00..f52c0e36 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscicommandset.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscicommandset.cpp @@ -12,7 +12,7 @@ bool QsciCommandSet_WriteSettings(QsciCommandSet* self, QSettings* qs) { return self->writeSettings(*qs); } -struct miqt_array QsciCommandSet_Commands(QsciCommandSet* self) { +struct miqt_array /* of QsciCommand* */ QsciCommandSet_Commands(QsciCommandSet* self) { QList& _ret = self->commands(); // Convert QList<> from C++ memory to manually-managed C memory QsciCommand** _arr = static_cast(malloc(sizeof(QsciCommand*) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla6/gen_qscicommandset.h b/qt-restricted-extras/qscintilla6/gen_qscicommandset.h index a6b1751f..c38c9bdf 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscicommandset.h +++ b/qt-restricted-extras/qscintilla6/gen_qscicommandset.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCICOMMANDSET_H -#define GEN_QSCICOMMANDSET_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCICOMMANDSET_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCICOMMANDSET_H #include #include @@ -25,7 +26,7 @@ typedef struct QsciCommandSet QsciCommandSet; bool QsciCommandSet_ReadSettings(QsciCommandSet* self, QSettings* qs); bool QsciCommandSet_WriteSettings(QsciCommandSet* self, QSettings* qs); -struct miqt_array QsciCommandSet_Commands(QsciCommandSet* self); +struct miqt_array /* of QsciCommand* */ QsciCommandSet_Commands(QsciCommandSet* self); void QsciCommandSet_ClearKeys(QsciCommandSet* self); void QsciCommandSet_ClearAlternateKeys(QsciCommandSet* self); QsciCommand* QsciCommandSet_BoundTo(const QsciCommandSet* self, int key); diff --git a/qt-restricted-extras/qscintilla6/gen_qscidocument.h b/qt-restricted-extras/qscintilla6/gen_qscidocument.h index 01ad57bc..afaba289 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscidocument.h +++ b/qt-restricted-extras/qscintilla6/gen_qscidocument.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCIDOCUMENT_H -#define GEN_QSCIDOCUMENT_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCIDOCUMENT_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCIDOCUMENT_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexer.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexer.cpp index 8a1b6d1d..68a30992 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexer.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexer.cpp @@ -49,7 +49,7 @@ const char* QsciLexer_AutoCompletionFillups(const QsciLexer* self) { return (const char*) self->autoCompletionFillups(); } -struct miqt_array QsciLexer_AutoCompletionWordSeparators(const QsciLexer* self) { +struct miqt_array /* of struct miqt_string */ QsciLexer_AutoCompletionWordSeparators(const QsciLexer* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexer.h b/qt-restricted-extras/qscintilla6/gen_qscilexer.h index 0a876ca3..490e7bb4 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexer.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXER_H -#define GEN_QSCILEXER_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXER_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXER_H #include #include @@ -39,7 +40,7 @@ const char* QsciLexer_Lexer(const QsciLexer* self); int QsciLexer_LexerId(const QsciLexer* self); QsciAbstractAPIs* QsciLexer_Apis(const QsciLexer* self); const char* QsciLexer_AutoCompletionFillups(const QsciLexer* self); -struct miqt_array QsciLexer_AutoCompletionWordSeparators(const QsciLexer* self); +struct miqt_array /* of struct miqt_string */ QsciLexer_AutoCompletionWordSeparators(const QsciLexer* self); int QsciLexer_AutoIndentStyle(QsciLexer* self); const char* QsciLexer_BlockEnd(const QsciLexer* self); int QsciLexer_BlockLookback(const QsciLexer* self); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeravs.h b/qt-restricted-extras/qscintilla6/gen_qscilexeravs.h index 1aad4820..ceff2d83 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeravs.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeravs.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERAVS_H -#define GEN_QSCILEXERAVS_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERAVS_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERAVS_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerbash.h b/qt-restricted-extras/qscintilla6/gen_qscilexerbash.h index 26f5bc0c..5ae9b07d 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerbash.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerbash.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERBASH_H -#define GEN_QSCILEXERBASH_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERBASH_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERBASH_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.h b/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.h index 2e43c9d8..9e89f715 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERBATCH_H -#define GEN_QSCILEXERBATCH_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERBATCH_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERBATCH_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercmake.h b/qt-restricted-extras/qscintilla6/gen_qscilexercmake.h index 5b183b23..9d30ee9d 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercmake.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercmake.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERCMAKE_H -#define GEN_QSCILEXERCMAKE_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERCMAKE_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERCMAKE_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.cpp index 013c7245..570d251c 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.cpp @@ -45,7 +45,7 @@ const char* QsciLexerCoffeeScript_Lexer(const QsciLexerCoffeeScript* self) { return (const char*) self->lexer(); } -struct miqt_array QsciLexerCoffeeScript_AutoCompletionWordSeparators(const QsciLexerCoffeeScript* self) { +struct miqt_array /* of struct miqt_string */ QsciLexerCoffeeScript_AutoCompletionWordSeparators(const QsciLexerCoffeeScript* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.h b/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.h index be1b8737..82204039 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERCOFFEESCRIPT_H -#define GEN_QSCILEXERCOFFEESCRIPT_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERCOFFEESCRIPT_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERCOFFEESCRIPT_H #include #include @@ -34,7 +35,7 @@ void* QsciLexerCoffeeScript_Metacast(QsciLexerCoffeeScript* self, const char* pa struct miqt_string QsciLexerCoffeeScript_Tr(const char* s); const char* QsciLexerCoffeeScript_Language(const QsciLexerCoffeeScript* self); const char* QsciLexerCoffeeScript_Lexer(const QsciLexerCoffeeScript* self); -struct miqt_array QsciLexerCoffeeScript_AutoCompletionWordSeparators(const QsciLexerCoffeeScript* self); +struct miqt_array /* of struct miqt_string */ QsciLexerCoffeeScript_AutoCompletionWordSeparators(const QsciLexerCoffeeScript* self); const char* QsciLexerCoffeeScript_BlockEnd(const QsciLexerCoffeeScript* self); const char* QsciLexerCoffeeScript_BlockStart(const QsciLexerCoffeeScript* self); const char* QsciLexerCoffeeScript_BlockStartKeyword(const QsciLexerCoffeeScript* self); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercpp.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexercpp.cpp index 5ba06ac3..1f121017 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercpp.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercpp.cpp @@ -49,7 +49,7 @@ const char* QsciLexerCPP_Lexer(const QsciLexerCPP* self) { return (const char*) self->lexer(); } -struct miqt_array QsciLexerCPP_AutoCompletionWordSeparators(const QsciLexerCPP* self) { +struct miqt_array /* of struct miqt_string */ QsciLexerCPP_AutoCompletionWordSeparators(const QsciLexerCPP* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercpp.h b/qt-restricted-extras/qscintilla6/gen_qscilexercpp.h index db3bf60f..693b4544 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercpp.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercpp.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERCPP_H -#define GEN_QSCILEXERCPP_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERCPP_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERCPP_H #include #include @@ -35,7 +36,7 @@ void* QsciLexerCPP_Metacast(QsciLexerCPP* self, const char* param1); struct miqt_string QsciLexerCPP_Tr(const char* s); const char* QsciLexerCPP_Language(const QsciLexerCPP* self); const char* QsciLexerCPP_Lexer(const QsciLexerCPP* self); -struct miqt_array QsciLexerCPP_AutoCompletionWordSeparators(const QsciLexerCPP* self); +struct miqt_array /* of struct miqt_string */ QsciLexerCPP_AutoCompletionWordSeparators(const QsciLexerCPP* self); const char* QsciLexerCPP_BlockEnd(const QsciLexerCPP* self); const char* QsciLexerCPP_BlockStart(const QsciLexerCPP* self); const char* QsciLexerCPP_BlockStartKeyword(const QsciLexerCPP* self); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.h b/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.h index 7b9488ca..758e28e1 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERCSHARP_H -#define GEN_QSCILEXERCSHARP_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERCSHARP_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERCSHARP_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercss.h b/qt-restricted-extras/qscintilla6/gen_qscilexercss.h index 523c0605..1619130d 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercss.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercss.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERCSS_H -#define GEN_QSCILEXERCSS_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERCSS_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERCSS_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercustom.h b/qt-restricted-extras/qscintilla6/gen_qscilexercustom.h index d0a59361..12e378d0 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercustom.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercustom.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERCUSTOM_H -#define GEN_QSCILEXERCUSTOM_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERCUSTOM_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERCUSTOM_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerd.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerd.cpp index 5244901c..8f489a89 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerd.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerd.cpp @@ -45,7 +45,7 @@ const char* QsciLexerD_Lexer(const QsciLexerD* self) { return (const char*) self->lexer(); } -struct miqt_array QsciLexerD_AutoCompletionWordSeparators(const QsciLexerD* self) { +struct miqt_array /* of struct miqt_string */ QsciLexerD_AutoCompletionWordSeparators(const QsciLexerD* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerd.h b/qt-restricted-extras/qscintilla6/gen_qscilexerd.h index 4aecfe03..e553fc69 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerd.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerd.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERD_H -#define GEN_QSCILEXERD_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERD_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERD_H #include #include @@ -34,7 +35,7 @@ void* QsciLexerD_Metacast(QsciLexerD* self, const char* param1); struct miqt_string QsciLexerD_Tr(const char* s); const char* QsciLexerD_Language(const QsciLexerD* self); const char* QsciLexerD_Lexer(const QsciLexerD* self); -struct miqt_array QsciLexerD_AutoCompletionWordSeparators(const QsciLexerD* self); +struct miqt_array /* of struct miqt_string */ QsciLexerD_AutoCompletionWordSeparators(const QsciLexerD* self); const char* QsciLexerD_BlockEnd(const QsciLexerD* self); const char* QsciLexerD_BlockStart(const QsciLexerD* self); const char* QsciLexerD_BlockStartKeyword(const QsciLexerD* self); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.h b/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.h index 31c1600f..373a8aeb 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERDIFF_H -#define GEN_QSCILEXERDIFF_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERDIFF_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERDIFF_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.h b/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.h index 162f8626..36749f30 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXEREDIFACT_H -#define GEN_QSCILEXEREDIFACT_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXEREDIFACT_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXEREDIFACT_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.h b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.h index 798b6fa5..69ba35b5 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERFORTRAN_H -#define GEN_QSCILEXERFORTRAN_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERFORTRAN_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERFORTRAN_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.h b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.h index 5f592d83..497359c9 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERFORTRAN77_H -#define GEN_QSCILEXERFORTRAN77_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERFORTRAN77_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERFORTRAN77_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.h b/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.h index a6566e12..b72de69f 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERHTML_H -#define GEN_QSCILEXERHTML_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERHTML_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERHTML_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeridl.h b/qt-restricted-extras/qscintilla6/gen_qscilexeridl.h index b27a7344..cc33d5fb 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeridl.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeridl.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERIDL_H -#define GEN_QSCILEXERIDL_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERIDL_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERIDL_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerjava.h b/qt-restricted-extras/qscintilla6/gen_qscilexerjava.h index e63fb941..ff31788e 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerjava.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerjava.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERJAVA_H -#define GEN_QSCILEXERJAVA_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERJAVA_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERJAVA_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.h b/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.h index a86ddc9c..2a78b735 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERJAVASCRIPT_H -#define GEN_QSCILEXERJAVASCRIPT_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERJAVASCRIPT_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERJAVASCRIPT_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerjson.h b/qt-restricted-extras/qscintilla6/gen_qscilexerjson.h index 5f0700f2..d6967f32 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerjson.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerjson.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERJSON_H -#define GEN_QSCILEXERJSON_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERJSON_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERJSON_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerlua.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerlua.cpp index cc683306..1efdb04f 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerlua.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerlua.cpp @@ -45,7 +45,7 @@ const char* QsciLexerLua_Lexer(const QsciLexerLua* self) { return (const char*) self->lexer(); } -struct miqt_array QsciLexerLua_AutoCompletionWordSeparators(const QsciLexerLua* self) { +struct miqt_array /* of struct miqt_string */ QsciLexerLua_AutoCompletionWordSeparators(const QsciLexerLua* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerlua.h b/qt-restricted-extras/qscintilla6/gen_qscilexerlua.h index deb54370..4249494a 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerlua.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerlua.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERLUA_H -#define GEN_QSCILEXERLUA_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERLUA_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERLUA_H #include #include @@ -34,7 +35,7 @@ void* QsciLexerLua_Metacast(QsciLexerLua* self, const char* param1); struct miqt_string QsciLexerLua_Tr(const char* s); const char* QsciLexerLua_Language(const QsciLexerLua* self); const char* QsciLexerLua_Lexer(const QsciLexerLua* self); -struct miqt_array QsciLexerLua_AutoCompletionWordSeparators(const QsciLexerLua* self); +struct miqt_array /* of struct miqt_string */ QsciLexerLua_AutoCompletionWordSeparators(const QsciLexerLua* self); const char* QsciLexerLua_BlockStart(const QsciLexerLua* self); int QsciLexerLua_BraceStyle(const QsciLexerLua* self); QColor* QsciLexerLua_DefaultColor(const QsciLexerLua* self, int style); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.h b/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.h index 6ae564cc..e4acc33c 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERMAKEFILE_H -#define GEN_QSCILEXERMAKEFILE_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERMAKEFILE_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERMAKEFILE_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.h b/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.h index 275ead9d..b3e2aedd 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERMARKDOWN_H -#define GEN_QSCILEXERMARKDOWN_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERMARKDOWN_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERMARKDOWN_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.h b/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.h index ef0ec3ad..402d1fd0 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERMATLAB_H -#define GEN_QSCILEXERMATLAB_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERMATLAB_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERMATLAB_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.h b/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.h index 62a5860d..9136a045 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXEROCTAVE_H -#define GEN_QSCILEXEROCTAVE_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXEROCTAVE_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXEROCTAVE_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.cpp index 4a0e5e1d..5f5c6424 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.cpp @@ -45,7 +45,7 @@ const char* QsciLexerPascal_Lexer(const QsciLexerPascal* self) { return (const char*) self->lexer(); } -struct miqt_array QsciLexerPascal_AutoCompletionWordSeparators(const QsciLexerPascal* self) { +struct miqt_array /* of struct miqt_string */ QsciLexerPascal_AutoCompletionWordSeparators(const QsciLexerPascal* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.h b/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.h index 643d2923..650bbd7c 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERPASCAL_H -#define GEN_QSCILEXERPASCAL_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERPASCAL_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERPASCAL_H #include #include @@ -34,7 +35,7 @@ void* QsciLexerPascal_Metacast(QsciLexerPascal* self, const char* param1); struct miqt_string QsciLexerPascal_Tr(const char* s); const char* QsciLexerPascal_Language(const QsciLexerPascal* self); const char* QsciLexerPascal_Lexer(const QsciLexerPascal* self); -struct miqt_array QsciLexerPascal_AutoCompletionWordSeparators(const QsciLexerPascal* self); +struct miqt_array /* of struct miqt_string */ QsciLexerPascal_AutoCompletionWordSeparators(const QsciLexerPascal* self); const char* QsciLexerPascal_BlockEnd(const QsciLexerPascal* self); const char* QsciLexerPascal_BlockStart(const QsciLexerPascal* self); const char* QsciLexerPascal_BlockStartKeyword(const QsciLexerPascal* self); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerperl.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerperl.cpp index 3ae82534..74bdbd1a 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerperl.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerperl.cpp @@ -45,7 +45,7 @@ const char* QsciLexerPerl_Lexer(const QsciLexerPerl* self) { return (const char*) self->lexer(); } -struct miqt_array QsciLexerPerl_AutoCompletionWordSeparators(const QsciLexerPerl* self) { +struct miqt_array /* of struct miqt_string */ QsciLexerPerl_AutoCompletionWordSeparators(const QsciLexerPerl* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerperl.h b/qt-restricted-extras/qscintilla6/gen_qscilexerperl.h index 39c1bdeb..4001eafd 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerperl.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerperl.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERPERL_H -#define GEN_QSCILEXERPERL_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERPERL_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERPERL_H #include #include @@ -34,7 +35,7 @@ void* QsciLexerPerl_Metacast(QsciLexerPerl* self, const char* param1); struct miqt_string QsciLexerPerl_Tr(const char* s); const char* QsciLexerPerl_Language(const QsciLexerPerl* self); const char* QsciLexerPerl_Lexer(const QsciLexerPerl* self); -struct miqt_array QsciLexerPerl_AutoCompletionWordSeparators(const QsciLexerPerl* self); +struct miqt_array /* of struct miqt_string */ QsciLexerPerl_AutoCompletionWordSeparators(const QsciLexerPerl* self); const char* QsciLexerPerl_BlockEnd(const QsciLexerPerl* self); const char* QsciLexerPerl_BlockStart(const QsciLexerPerl* self); int QsciLexerPerl_BraceStyle(const QsciLexerPerl* self); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpo.h b/qt-restricted-extras/qscintilla6/gen_qscilexerpo.h index 69c9c3d0..fad40232 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpo.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERPO_H -#define GEN_QSCILEXERPO_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERPO_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERPO_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.h b/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.h index 37b90b61..83d900f6 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERPOSTSCRIPT_H -#define GEN_QSCILEXERPOSTSCRIPT_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERPOSTSCRIPT_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERPOSTSCRIPT_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpov.h b/qt-restricted-extras/qscintilla6/gen_qscilexerpov.h index 26557d70..774bc05c 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpov.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpov.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERPOV_H -#define GEN_QSCILEXERPOV_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERPOV_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERPOV_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.h b/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.h index 54635754..c9832cf7 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERPROPERTIES_H -#define GEN_QSCILEXERPROPERTIES_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERPROPERTIES_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERPROPERTIES_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpython.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerpython.cpp index ad496487..c5174b5e 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpython.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpython.cpp @@ -45,7 +45,7 @@ const char* QsciLexerPython_Lexer(const QsciLexerPython* self) { return (const char*) self->lexer(); } -struct miqt_array QsciLexerPython_AutoCompletionWordSeparators(const QsciLexerPython* self) { +struct miqt_array /* of struct miqt_string */ QsciLexerPython_AutoCompletionWordSeparators(const QsciLexerPython* self) { QStringList _ret = self->autoCompletionWordSeparators(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpython.h b/qt-restricted-extras/qscintilla6/gen_qscilexerpython.h index caea77b3..d8d7ba9f 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpython.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpython.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERPYTHON_H -#define GEN_QSCILEXERPYTHON_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERPYTHON_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERPYTHON_H #include #include @@ -34,7 +35,7 @@ void* QsciLexerPython_Metacast(QsciLexerPython* self, const char* param1); struct miqt_string QsciLexerPython_Tr(const char* s); const char* QsciLexerPython_Language(const QsciLexerPython* self); const char* QsciLexerPython_Lexer(const QsciLexerPython* self); -struct miqt_array QsciLexerPython_AutoCompletionWordSeparators(const QsciLexerPython* self); +struct miqt_array /* of struct miqt_string */ QsciLexerPython_AutoCompletionWordSeparators(const QsciLexerPython* self); int QsciLexerPython_BlockLookback(const QsciLexerPython* self); const char* QsciLexerPython_BlockStart(const QsciLexerPython* self); int QsciLexerPython_BraceStyle(const QsciLexerPython* self); diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerruby.h b/qt-restricted-extras/qscintilla6/gen_qscilexerruby.h index e4e960ce..1e3d3ab6 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerruby.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerruby.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERRUBY_H -#define GEN_QSCILEXERRUBY_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERRUBY_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERRUBY_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerspice.h b/qt-restricted-extras/qscintilla6/gen_qscilexerspice.h index 24cf9a3a..04c26dfa 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerspice.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerspice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERSPICE_H -#define GEN_QSCILEXERSPICE_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERSPICE_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERSPICE_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexersql.h b/qt-restricted-extras/qscintilla6/gen_qscilexersql.h index d3d87252..5a5721c1 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexersql.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexersql.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERSQL_H -#define GEN_QSCILEXERSQL_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERSQL_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERSQL_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexertcl.h b/qt-restricted-extras/qscintilla6/gen_qscilexertcl.h index 125e4b3a..2f583f99 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexertcl.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexertcl.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERTCL_H -#define GEN_QSCILEXERTCL_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERTCL_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERTCL_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexertex.h b/qt-restricted-extras/qscintilla6/gen_qscilexertex.h index f8567074..2d6e47ab 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexertex.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexertex.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERTEX_H -#define GEN_QSCILEXERTEX_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERTEX_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERTEX_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.h b/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.h index e949e550..9abfcf26 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERVERILOG_H -#define GEN_QSCILEXERVERILOG_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERVERILOG_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERVERILOG_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.h b/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.h index 23fb59d7..5b29fdee 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERVHDL_H -#define GEN_QSCILEXERVHDL_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERVHDL_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERVHDL_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerxml.h b/qt-restricted-extras/qscintilla6/gen_qscilexerxml.h index b37084b7..b1a72b41 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerxml.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerxml.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERXML_H -#define GEN_QSCILEXERXML_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERXML_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERXML_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.h b/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.h index c8f81fcf..c8760172 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCILEXERYAML_H -#define GEN_QSCILEXERYAML_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERYAML_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCILEXERYAML_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscimacro.h b/qt-restricted-extras/qscintilla6/gen_qscimacro.h index 76c0caa7..3040f8e5 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscimacro.h +++ b/qt-restricted-extras/qscintilla6/gen_qscimacro.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCIMACRO_H -#define GEN_QSCIMACRO_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCIMACRO_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCIMACRO_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qsciprinter.h b/qt-restricted-extras/qscintilla6/gen_qsciprinter.h index c2152a5f..222a273f 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciprinter.h +++ b/qt-restricted-extras/qscintilla6/gen_qsciprinter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCIPRINTER_H -#define GEN_QSCIPRINTER_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCIPRINTER_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCIPRINTER_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qsciscintilla.cpp b/qt-restricted-extras/qscintilla6/gen_qsciscintilla.cpp index 5afbab6b..8e98c98c 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciscintilla.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qsciscintilla.cpp @@ -43,7 +43,7 @@ struct miqt_string QsciScintilla_Tr(const char* s) { return _ms; } -struct miqt_array QsciScintilla_ApiContext(QsciScintilla* self, int pos, int* context_start, int* last_word_start) { +struct miqt_array /* of struct miqt_string */ QsciScintilla_ApiContext(QsciScintilla* self, int pos, int* context_start, int* last_word_start) { QStringList _ret = self->apiContext(static_cast(pos), static_cast(*context_start), static_cast(*last_word_start)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -195,7 +195,7 @@ QColor* QsciScintilla_Color(const QsciScintilla* self) { return new QColor(self->color()); } -struct miqt_array QsciScintilla_ContractedFolds(const QsciScintilla* self) { +struct miqt_array /* of int */ QsciScintilla_ContractedFolds(const QsciScintilla* self) { QList _ret = self->contractedFolds(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -531,7 +531,7 @@ void QsciScintilla_SetAutoCompletionFillups(QsciScintilla* self, const char* fil self->setAutoCompletionFillups(fillups); } -void QsciScintilla_SetAutoCompletionWordSeparators(QsciScintilla* self, struct miqt_array /* of struct miqt_string */ separators) { +void QsciScintilla_SetAutoCompletionWordSeparators(QsciScintilla* self, struct miqt_array /* of struct miqt_string */ separators) { QStringList separators_QList; separators_QList.reserve(separators.len); struct miqt_string* separators_arr = static_cast(separators.data); @@ -566,7 +566,7 @@ void QsciScintilla_SetCallTipsVisible(QsciScintilla* self, int nr) { self->setCallTipsVisible(static_cast(nr)); } -void QsciScintilla_SetContractedFolds(QsciScintilla* self, struct miqt_array /* of int */ folds) { +void QsciScintilla_SetContractedFolds(QsciScintilla* self, struct miqt_array /* of int */ folds) { QList folds_QList; folds_QList.reserve(folds.len); int* folds_arr = static_cast(folds.data); @@ -777,7 +777,7 @@ void QsciScintilla_SetWrapIndentMode(QsciScintilla* self, int mode) { self->setWrapIndentMode(static_cast(mode)); } -void QsciScintilla_ShowUserList(QsciScintilla* self, int id, struct miqt_array /* of struct miqt_string */ list) { +void QsciScintilla_ShowUserList(QsciScintilla* self, int id, struct miqt_array /* of struct miqt_string */ list) { QStringList list_QList; list_QList.reserve(list.len); struct miqt_string* list_arr = static_cast(list.data); diff --git a/qt-restricted-extras/qscintilla6/gen_qsciscintilla.h b/qt-restricted-extras/qscintilla6/gen_qsciscintilla.h index ffe20396..dba6cf16 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciscintilla.h +++ b/qt-restricted-extras/qscintilla6/gen_qsciscintilla.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCISCINTILLA_H -#define GEN_QSCISCINTILLA_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCISCINTILLA_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCISCINTILLA_H #include #include @@ -54,7 +55,7 @@ QsciScintilla* QsciScintilla_new2(); QMetaObject* QsciScintilla_MetaObject(const QsciScintilla* self); void* QsciScintilla_Metacast(QsciScintilla* self, const char* param1); struct miqt_string QsciScintilla_Tr(const char* s); -struct miqt_array QsciScintilla_ApiContext(QsciScintilla* self, int pos, int* context_start, int* last_word_start); +struct miqt_array /* of struct miqt_string */ QsciScintilla_ApiContext(QsciScintilla* self, int pos, int* context_start, int* last_word_start); void QsciScintilla_Annotate(QsciScintilla* self, int line, struct miqt_string text, int style); void QsciScintilla_Annotate2(QsciScintilla* self, int line, struct miqt_string text, QsciStyle* style); void QsciScintilla_Annotate3(QsciScintilla* self, int line, QsciStyledText* text); @@ -83,7 +84,7 @@ void QsciScintilla_ClearFolds(QsciScintilla* self); void QsciScintilla_ClearIndicatorRange(QsciScintilla* self, int lineFrom, int indexFrom, int lineTo, int indexTo, int indicatorNumber); void QsciScintilla_ClearRegisteredImages(QsciScintilla* self); QColor* QsciScintilla_Color(const QsciScintilla* self); -struct miqt_array QsciScintilla_ContractedFolds(const QsciScintilla* self); +struct miqt_array /* of int */ QsciScintilla_ContractedFolds(const QsciScintilla* self); void QsciScintilla_ConvertEols(QsciScintilla* self, int mode); QMenu* QsciScintilla_CreateStandardContextMenu(QsciScintilla* self); QsciDocument* QsciScintilla_Document(const QsciScintilla* self); @@ -163,14 +164,14 @@ void QsciScintilla_SetFoldMarginColors(QsciScintilla* self, QColor* fore, QColor void QsciScintilla_SetAnnotationDisplay(QsciScintilla* self, int display); void QsciScintilla_SetAutoCompletionFillupsEnabled(QsciScintilla* self, bool enabled); void QsciScintilla_SetAutoCompletionFillups(QsciScintilla* self, const char* fillups); -void QsciScintilla_SetAutoCompletionWordSeparators(QsciScintilla* self, struct miqt_array /* of struct miqt_string */ separators); +void QsciScintilla_SetAutoCompletionWordSeparators(QsciScintilla* self, struct miqt_array /* of struct miqt_string */ separators); void QsciScintilla_SetCallTipsBackgroundColor(QsciScintilla* self, QColor* col); void QsciScintilla_SetCallTipsForegroundColor(QsciScintilla* self, QColor* col); void QsciScintilla_SetCallTipsHighlightColor(QsciScintilla* self, QColor* col); void QsciScintilla_SetCallTipsPosition(QsciScintilla* self, int position); void QsciScintilla_SetCallTipsStyle(QsciScintilla* self, int style); void QsciScintilla_SetCallTipsVisible(QsciScintilla* self, int nr); -void QsciScintilla_SetContractedFolds(QsciScintilla* self, struct miqt_array /* of int */ folds); +void QsciScintilla_SetContractedFolds(QsciScintilla* self, struct miqt_array /* of int */ folds); void QsciScintilla_SetDocument(QsciScintilla* self, QsciDocument* document); void QsciScintilla_AddEdgeColumn(QsciScintilla* self, int colnr, QColor* col); void QsciScintilla_ClearEdgeColumns(QsciScintilla* self); @@ -219,7 +220,7 @@ void QsciScintilla_SetWhitespaceBackgroundColor(QsciScintilla* self, QColor* col void QsciScintilla_SetWhitespaceForegroundColor(QsciScintilla* self, QColor* col); void QsciScintilla_SetWhitespaceSize(QsciScintilla* self, int size); void QsciScintilla_SetWrapIndentMode(QsciScintilla* self, int mode); -void QsciScintilla_ShowUserList(QsciScintilla* self, int id, struct miqt_array /* of struct miqt_string */ list); +void QsciScintilla_ShowUserList(QsciScintilla* self, int id, struct miqt_array /* of struct miqt_string */ list); QsciCommandSet* QsciScintilla_StandardCommands(const QsciScintilla* self); int QsciScintilla_TabDrawMode(const QsciScintilla* self); bool QsciScintilla_TabIndents(const QsciScintilla* self); diff --git a/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.go b/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.go index f83296de..0833abc1 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.go +++ b/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.go @@ -1774,7 +1774,7 @@ func (this *QsciScintillaBase) OnSCN_MACRORECORD(slot func(param1 uint, param2 u } //export miqt_exec_callback_QsciScintillaBase_SCN_MACRORECORD -func miqt_exec_callback_QsciScintillaBase_SCN_MACRORECORD(cb C.intptr_t, param1 C.uint, param2 C.ulong, param3 *C.void) { +func miqt_exec_callback_QsciScintillaBase_SCN_MACRORECORD(cb C.intptr_t, param1 C.uint, param2 C.ulong, param3 unsafe.Pointer) { gofunc, ok := cgo.Handle(cb).Value().(func(param1 uint, param2 uint64, param3 unsafe.Pointer)) if !ok { panic("miqt: callback of non-callback type (heap corruption?)") diff --git a/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.h b/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.h index ea2af563..315af59e 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.h +++ b/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCISCINTILLABASE_H -#define GEN_QSCISCINTILLABASE_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCISCINTILLABASE_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCISCINTILLABASE_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscistyle.h b/qt-restricted-extras/qscintilla6/gen_qscistyle.h index d42364fe..36188b0d 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscistyle.h +++ b/qt-restricted-extras/qscintilla6/gen_qscistyle.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCISTYLE_H -#define GEN_QSCISTYLE_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCISTYLE_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCISTYLE_H #include #include diff --git a/qt-restricted-extras/qscintilla6/gen_qscistyledtext.h b/qt-restricted-extras/qscintilla6/gen_qscistyledtext.h index a42ec89d..1751f3eb 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscistyledtext.h +++ b/qt-restricted-extras/qscintilla6/gen_qscistyledtext.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCISTYLEDTEXT_H -#define GEN_QSCISTYLEDTEXT_H +#pragma once +#ifndef MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCISTYLEDTEXT_H +#define MIQT_QT_RESTRICTED_EXTRAS_QSCINTILLA6_GEN_QSCISTYLEDTEXT_H #include #include diff --git a/qt/cbor/gen_qcborarray.cpp b/qt/cbor/gen_qcborarray.cpp index 36e37a97..6fdc4350 100644 --- a/qt/cbor/gen_qcborarray.cpp +++ b/qt/cbor/gen_qcborarray.cpp @@ -221,7 +221,7 @@ QCborArray* QCborArray_OperatorShiftLeft(QCborArray* self, QCborValue* v) { return &_ret; } -QCborArray* QCborArray_FromStringList(struct miqt_array /* of struct miqt_string */ list) { +QCborArray* QCborArray_FromStringList(struct miqt_array /* of struct miqt_string */ list) { QStringList list_QList; list_QList.reserve(list.len); struct miqt_string* list_arr = static_cast(list.data); diff --git a/qt/cbor/gen_qcborarray.h b/qt/cbor/gen_qcborarray.h index 0ca6b1e1..cb6bb750 100644 --- a/qt/cbor/gen_qcborarray.h +++ b/qt/cbor/gen_qcborarray.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCBORARRAY_H -#define GEN_QCBORARRAY_H +#pragma once +#ifndef MIQT_QT_CBOR_GEN_QCBORARRAY_H +#define MIQT_QT_CBOR_GEN_QCBORARRAY_H #include #include @@ -88,7 +89,7 @@ bool QCborArray_Empty(const QCborArray* self); QCborArray* QCborArray_OperatorPlus(const QCborArray* self, QCborValue* v); QCborArray* QCborArray_OperatorPlusAssign(QCborArray* self, QCborValue* v); QCborArray* QCborArray_OperatorShiftLeft(QCborArray* self, QCborValue* v); -QCborArray* QCborArray_FromStringList(struct miqt_array /* of struct miqt_string */ list); +QCborArray* QCborArray_FromStringList(struct miqt_array /* of struct miqt_string */ list); QCborArray* QCborArray_FromJsonArray(QJsonArray* array); QJsonArray* QCborArray_ToJsonArray(const QCborArray* self); void QCborArray_Delete(QCborArray* self); diff --git a/qt/cbor/gen_qcborcommon.h b/qt/cbor/gen_qcborcommon.h index 3c893790..ebec2e6a 100644 --- a/qt/cbor/gen_qcborcommon.h +++ b/qt/cbor/gen_qcborcommon.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCBORCOMMON_H -#define GEN_QCBORCOMMON_H +#pragma once +#ifndef MIQT_QT_CBOR_GEN_QCBORCOMMON_H +#define MIQT_QT_CBOR_GEN_QCBORCOMMON_H #include #include diff --git a/qt/cbor/gen_qcbormap.cpp b/qt/cbor/gen_qcbormap.cpp index 01c071c7..7ce888bf 100644 --- a/qt/cbor/gen_qcbormap.cpp +++ b/qt/cbor/gen_qcbormap.cpp @@ -47,7 +47,7 @@ void QCborMap_Clear(QCborMap* self) { self->clear(); } -struct miqt_array QCborMap_Keys(const QCborMap* self) { +struct miqt_array /* of QCborValue* */ QCborMap_Keys(const QCborMap* self) { QVector _ret = self->keys(); // Convert QList<> from C++ memory to manually-managed C memory QCborValue** _arr = static_cast(malloc(sizeof(QCborValue*) * _ret.length())); @@ -258,7 +258,16 @@ QCborMap__Iterator* QCborMap_Insert4(QCborMap* self, QCborValue* key, QCborValue return new QCborMap::Iterator(self->insert(*key, *value_)); } -QCborMap* QCborMap_FromVariantMap(struct miqt_map mapVal) { +QCborMap__Iterator* QCborMap_InsertWithQCborMapvalueType(QCborMap* self, struct miqt_map /* tuple of QCborValue* and QCborValue* */ v) { + QCborMap::value_type v_QPair; + QCborValue** v_first_arr = static_cast(v.keys); + QCborValue** v_second_arr = static_cast(v.values); + v_QPair.first = *(v_first_arr[0]); + v_QPair.second = *(v_second_arr[0]); + return new QCborMap::Iterator(self->insert(v_QPair)); +} + +QCborMap* QCborMap_FromVariantMap(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal) { QVariantMap mapVal_QMap; struct miqt_string* mapVal_karr = static_cast(mapVal.keys); QVariant** mapVal_varr = static_cast(mapVal.values); @@ -269,7 +278,7 @@ QCborMap* QCborMap_FromVariantMap(struct miqt_map mapVal) { return new QCborMap(QCborMap::fromVariantMap(mapVal_QMap)); } -QCborMap* QCborMap_FromVariantHash(struct miqt_map hash) { +QCborMap* QCborMap_FromVariantHash(struct miqt_map /* of struct miqt_string to QVariant* */ hash) { QVariantHash hash_QMap; hash_QMap.reserve(hash.len); struct miqt_string* hash_karr = static_cast(hash.keys); @@ -285,7 +294,7 @@ QCborMap* QCborMap_FromJsonObject(QJsonObject* o) { return new QCborMap(QCborMap::fromJsonObject(*o)); } -struct miqt_map QCborMap_ToVariantMap(const QCborMap* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QCborMap_ToVariantMap(const QCborMap* self) { QVariantMap _ret = self->toVariantMap(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); @@ -310,7 +319,7 @@ struct miqt_map QCborMap_ToVariantMap(const QCborMap* self) { return _out; } -struct miqt_map QCborMap_ToVariantHash(const QCborMap* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QCborMap_ToVariantHash(const QCborMap* self) { QVariantHash _ret = self->toVariantHash(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); @@ -355,6 +364,20 @@ void QCborMap__Iterator_OperatorAssign(QCborMap__Iterator* self, QCborMap__Itera self->operator=(*other); } +struct miqt_map /* tuple of QCborValueRef* and QCborValueRef* */ QCborMap__Iterator_OperatorMultiply(const QCborMap__Iterator* self) { + QCborMap::Iterator::value_type _ret = self->operator*(); + // Convert QPair<> from C++ memory to manually-managed C memory + QCborValueRef** _first_arr = static_cast(malloc(sizeof(QCborValueRef*))); + QCborValueRef** _second_arr = static_cast(malloc(sizeof(QCborValueRef*))); + _first_arr[0] = new QCborValueRef(_ret.first); + _second_arr[0] = new QCborValueRef(_ret.second); + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + QCborValueRef* QCborMap__Iterator_OperatorMinusGreater(const QCborMap__Iterator* self) { return self->operator->(); } @@ -476,6 +499,20 @@ void QCborMap__ConstIterator_OperatorAssign(QCborMap__ConstIterator* self, QCbor self->operator=(*other); } +struct miqt_map /* tuple of QCborValueRef* and QCborValueRef* */ QCborMap__ConstIterator_OperatorMultiply(const QCborMap__ConstIterator* self) { + QCborMap::ConstIterator::value_type _ret = self->operator*(); + // Convert QPair<> from C++ memory to manually-managed C memory + QCborValueRef** _first_arr = static_cast(malloc(sizeof(QCborValueRef*))); + QCborValueRef** _second_arr = static_cast(malloc(sizeof(QCborValueRef*))); + _first_arr[0] = new QCborValueRef(_ret.first); + _second_arr[0] = new QCborValueRef(_ret.second); + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + QCborValueRef* QCborMap__ConstIterator_OperatorMinusGreater(const QCborMap__ConstIterator* self) { return (QCborValueRef*) self->operator->(); } diff --git a/qt/cbor/gen_qcbormap.go b/qt/cbor/gen_qcbormap.go index c768016f..5590095d 100644 --- a/qt/cbor/gen_qcbormap.go +++ b/qt/cbor/gen_qcbormap.go @@ -431,6 +431,27 @@ func (this *QCborMap) Insert4(key *QCborValue, value_ *QCborValue) *QCborMap__It return _goptr } +func (this *QCborMap) InsertWithQCborMapvalueType(v struct { + First QCborValue + Second QCborValue +}) *QCborMap__Iterator { + v_First_CArray := (*[0xffff]*C.QCborValue)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(v_First_CArray)) + v_Second_CArray := (*[0xffff]*C.QCborValue)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(v_Second_CArray)) + v_First_CArray[0] = v.First.cPointer() + v_Second_CArray[0] = v.Second.cPointer() + v_pair := C.struct_miqt_map{ + len: 1, + keys: unsafe.Pointer(v_First_CArray), + values: unsafe.Pointer(v_Second_CArray), + } + _ret := C.QCborMap_InsertWithQCborMapvalueType(this.h, v_pair) + _goptr := newQCborMap__Iterator(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + func QCborMap_FromVariantMap(mapVal map[string]qt.QVariant) *QCborMap { mapVal_Keys_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(mapVal)))) defer C.free(unsafe.Pointer(mapVal_Keys_CArray)) @@ -596,6 +617,29 @@ func (this *QCborMap__Iterator) OperatorAssign(other *QCborMap__Iterator) { C.QCborMap__Iterator_OperatorAssign(this.h, other.cPointer()) } +func (this *QCborMap__Iterator) OperatorMultiply() struct { + First QCborValueRef + Second QCborValueRef +} { + var _mm C.struct_miqt_map = C.QCborMap__Iterator_OperatorMultiply(this.h) + _First_CArray := (*[0xffff]*C.QCborValueRef)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]*C.QCborValueRef)(unsafe.Pointer(_mm.values)) + _first_ret := _First_CArray[0] + _first_goptr := newQCborValueRef(_first_ret) + _first_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _entry_First := *_first_goptr + + _second_ret := _Second_CArray[0] + _second_goptr := newQCborValueRef(_second_ret) + _second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _entry_Second := *_second_goptr + + return struct { + First QCborValueRef + Second QCborValueRef + }{First: _entry_First, Second: _entry_Second} +} + func (this *QCborMap__Iterator) OperatorMinusGreater() *QCborValueRef { return UnsafeNewQCborValueRef(unsafe.Pointer(C.QCborMap__Iterator_OperatorMinusGreater(this.h))) } @@ -769,6 +813,29 @@ func (this *QCborMap__ConstIterator) OperatorAssign(other *QCborMap__ConstIterat C.QCborMap__ConstIterator_OperatorAssign(this.h, other.cPointer()) } +func (this *QCborMap__ConstIterator) OperatorMultiply() struct { + First QCborValueRef + Second QCborValueRef +} { + var _mm C.struct_miqt_map = C.QCborMap__ConstIterator_OperatorMultiply(this.h) + _First_CArray := (*[0xffff]*C.QCborValueRef)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]*C.QCborValueRef)(unsafe.Pointer(_mm.values)) + _first_ret := _First_CArray[0] + _first_goptr := newQCborValueRef(_first_ret) + _first_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _entry_First := *_first_goptr + + _second_ret := _Second_CArray[0] + _second_goptr := newQCborValueRef(_second_ret) + _second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _entry_Second := *_second_goptr + + return struct { + First QCborValueRef + Second QCborValueRef + }{First: _entry_First, Second: _entry_Second} +} + func (this *QCborMap__ConstIterator) OperatorMinusGreater() *QCborValueRef { return UnsafeNewQCborValueRef(unsafe.Pointer(C.QCborMap__ConstIterator_OperatorMinusGreater(this.h))) } diff --git a/qt/cbor/gen_qcbormap.h b/qt/cbor/gen_qcbormap.h index 527178ba..971a809b 100644 --- a/qt/cbor/gen_qcbormap.h +++ b/qt/cbor/gen_qcbormap.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCBORMAP_H -#define GEN_QCBORMAP_H +#pragma once +#ifndef MIQT_QT_CBOR_GEN_QCBORMAP_H +#define MIQT_QT_CBOR_GEN_QCBORMAP_H #include #include @@ -47,7 +48,7 @@ QCborValue* QCborMap_ToCborValue(const QCborMap* self); ptrdiff_t QCborMap_Size(const QCborMap* self); bool QCborMap_IsEmpty(const QCborMap* self); void QCborMap_Clear(QCborMap* self); -struct miqt_array QCborMap_Keys(const QCborMap* self); +struct miqt_array /* of QCborValue* */ QCborMap_Keys(const QCborMap* self); QCborValue* QCborMap_Value(const QCborMap* self, long long key); QCborValue* QCborMap_Value2(const QCborMap* self, struct miqt_string key); QCborValue* QCborMap_Value3(const QCborMap* self, QCborValue* key); @@ -95,17 +96,19 @@ QCborMap__ConstIterator* QCborMap_Find7(const QCborMap* self, QCborValue* key); QCborMap__Iterator* QCborMap_Insert(QCborMap* self, long long key, QCborValue* value_); QCborMap__Iterator* QCborMap_Insert3(QCborMap* self, struct miqt_string key, QCborValue* value_); QCborMap__Iterator* QCborMap_Insert4(QCborMap* self, QCborValue* key, QCborValue* value_); -QCborMap* QCborMap_FromVariantMap(struct miqt_map mapVal); -QCborMap* QCborMap_FromVariantHash(struct miqt_map hash); +QCborMap__Iterator* QCborMap_InsertWithQCborMapvalueType(QCborMap* self, struct miqt_map /* tuple of QCborValue* and QCborValue* */ v); +QCborMap* QCborMap_FromVariantMap(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal); +QCborMap* QCborMap_FromVariantHash(struct miqt_map /* of struct miqt_string to QVariant* */ hash); QCborMap* QCborMap_FromJsonObject(QJsonObject* o); -struct miqt_map QCborMap_ToVariantMap(const QCborMap* self); -struct miqt_map QCborMap_ToVariantHash(const QCborMap* self); +struct miqt_map /* of struct miqt_string to QVariant* */ QCborMap_ToVariantMap(const QCborMap* self); +struct miqt_map /* of struct miqt_string to QVariant* */ QCborMap_ToVariantHash(const QCborMap* self); QJsonObject* QCborMap_ToJsonObject(const QCborMap* self); void QCborMap_Delete(QCborMap* self); QCborMap__Iterator* QCborMap__Iterator_new(); QCborMap__Iterator* QCborMap__Iterator_new2(QCborMap__Iterator* param1); void QCborMap__Iterator_OperatorAssign(QCborMap__Iterator* self, QCborMap__Iterator* other); +struct miqt_map /* tuple of QCborValueRef* and QCborValueRef* */ QCborMap__Iterator_OperatorMultiply(const QCborMap__Iterator* self); QCborValueRef* QCborMap__Iterator_OperatorMinusGreater(const QCborMap__Iterator* self); QCborValue* QCborMap__Iterator_Key(const QCborMap__Iterator* self); QCborValueRef* QCborMap__Iterator_Value(const QCborMap__Iterator* self); @@ -135,6 +138,7 @@ void QCborMap__Iterator_Delete(QCborMap__Iterator* self); QCborMap__ConstIterator* QCborMap__ConstIterator_new(); QCborMap__ConstIterator* QCborMap__ConstIterator_new2(QCborMap__ConstIterator* param1); void QCborMap__ConstIterator_OperatorAssign(QCborMap__ConstIterator* self, QCborMap__ConstIterator* other); +struct miqt_map /* tuple of QCborValueRef* and QCborValueRef* */ QCborMap__ConstIterator_OperatorMultiply(const QCborMap__ConstIterator* self); QCborValueRef* QCborMap__ConstIterator_OperatorMinusGreater(const QCborMap__ConstIterator* self); QCborValue* QCborMap__ConstIterator_Key(const QCborMap__ConstIterator* self); QCborValueRef* QCborMap__ConstIterator_Value(const QCborMap__ConstIterator* self); diff --git a/qt/cbor/gen_qcborstreamreader.h b/qt/cbor/gen_qcborstreamreader.h index bcca845b..428fc14e 100644 --- a/qt/cbor/gen_qcborstreamreader.h +++ b/qt/cbor/gen_qcborstreamreader.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCBORSTREAMREADER_H -#define GEN_QCBORSTREAMREADER_H +#pragma once +#ifndef MIQT_QT_CBOR_GEN_QCBORSTREAMREADER_H +#define MIQT_QT_CBOR_GEN_QCBORSTREAMREADER_H #include #include diff --git a/qt/cbor/gen_qcborstreamwriter.h b/qt/cbor/gen_qcborstreamwriter.h index ecc958d7..56079a59 100644 --- a/qt/cbor/gen_qcborstreamwriter.h +++ b/qt/cbor/gen_qcborstreamwriter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCBORSTREAMWRITER_H -#define GEN_QCBORSTREAMWRITER_H +#pragma once +#ifndef MIQT_QT_CBOR_GEN_QCBORSTREAMWRITER_H +#define MIQT_QT_CBOR_GEN_QCBORSTREAMWRITER_H #include #include diff --git a/qt/cbor/gen_qcborvalue.h b/qt/cbor/gen_qcborvalue.h index fc5d8c0d..3311213d 100644 --- a/qt/cbor/gen_qcborvalue.h +++ b/qt/cbor/gen_qcborvalue.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCBORVALUE_H -#define GEN_QCBORVALUE_H +#pragma once +#ifndef MIQT_QT_CBOR_GEN_QCBORVALUE_H +#define MIQT_QT_CBOR_GEN_QCBORVALUE_H #include #include diff --git a/qt/gen_qabstractanimation.h b/qt/gen_qabstractanimation.h index 09453a10..367fd673 100644 --- a/qt/gen_qabstractanimation.h +++ b/qt/gen_qabstractanimation.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTANIMATION_H -#define GEN_QABSTRACTANIMATION_H +#pragma once +#ifndef MIQT_QT_GEN_QABSTRACTANIMATION_H +#define MIQT_QT_GEN_QABSTRACTANIMATION_H #include #include diff --git a/qt/gen_qabstractbutton.h b/qt/gen_qabstractbutton.h index 3a81ce44..b6673fb5 100644 --- a/qt/gen_qabstractbutton.h +++ b/qt/gen_qabstractbutton.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTBUTTON_H -#define GEN_QABSTRACTBUTTON_H +#pragma once +#ifndef MIQT_QT_GEN_QABSTRACTBUTTON_H +#define MIQT_QT_GEN_QABSTRACTBUTTON_H #include #include diff --git a/qt/gen_qabstracteventdispatcher.cpp b/qt/gen_qabstracteventdispatcher.cpp index 796e16f1..927bc6c7 100644 --- a/qt/gen_qabstracteventdispatcher.cpp +++ b/qt/gen_qabstracteventdispatcher.cpp @@ -80,7 +80,7 @@ bool QAbstractEventDispatcher_UnregisterTimers(QAbstractEventDispatcher* self, Q return self->unregisterTimers(object); } -struct miqt_array QAbstractEventDispatcher_RegisteredTimers(const QAbstractEventDispatcher* self, QObject* object) { +struct miqt_array /* of QAbstractEventDispatcher__TimerInfo* */ QAbstractEventDispatcher_RegisteredTimers(const QAbstractEventDispatcher* self, QObject* object) { QList _ret = self->registeredTimers(object); // Convert QList<> from C++ memory to manually-managed C memory QAbstractEventDispatcher__TimerInfo** _arr = static_cast(malloc(sizeof(QAbstractEventDispatcher__TimerInfo*) * _ret.length())); diff --git a/qt/gen_qabstracteventdispatcher.h b/qt/gen_qabstracteventdispatcher.h index b4447864..2fb90cc6 100644 --- a/qt/gen_qabstracteventdispatcher.h +++ b/qt/gen_qabstracteventdispatcher.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTEVENTDISPATCHER_H -#define GEN_QABSTRACTEVENTDISPATCHER_H +#pragma once +#ifndef MIQT_QT_GEN_QABSTRACTEVENTDISPATCHER_H +#define MIQT_QT_GEN_QABSTRACTEVENTDISPATCHER_H #include #include @@ -50,7 +51,7 @@ int QAbstractEventDispatcher_RegisterTimer(QAbstractEventDispatcher* self, int i void QAbstractEventDispatcher_RegisterTimer2(QAbstractEventDispatcher* self, int timerId, int interval, int timerType, QObject* object); bool QAbstractEventDispatcher_UnregisterTimer(QAbstractEventDispatcher* self, int timerId); bool QAbstractEventDispatcher_UnregisterTimers(QAbstractEventDispatcher* self, QObject* object); -struct miqt_array QAbstractEventDispatcher_RegisteredTimers(const QAbstractEventDispatcher* self, QObject* object); +struct miqt_array /* of QAbstractEventDispatcher__TimerInfo* */ QAbstractEventDispatcher_RegisteredTimers(const QAbstractEventDispatcher* self, QObject* object); int QAbstractEventDispatcher_RemainingTime(QAbstractEventDispatcher* self, int timerId); void QAbstractEventDispatcher_WakeUp(QAbstractEventDispatcher* self); void QAbstractEventDispatcher_Interrupt(QAbstractEventDispatcher* self); diff --git a/qt/gen_qabstractitemdelegate.cpp b/qt/gen_qabstractitemdelegate.cpp index d055349a..cfeda7be 100644 --- a/qt/gen_qabstractitemdelegate.cpp +++ b/qt/gen_qabstractitemdelegate.cpp @@ -96,7 +96,7 @@ bool QAbstractItemDelegate_HelpEvent(QAbstractItemDelegate* self, QHelpEvent* ev return self->helpEvent(event, view, *option, *index); } -struct miqt_array QAbstractItemDelegate_PaintingRoles(const QAbstractItemDelegate* self) { +struct miqt_array /* of int */ QAbstractItemDelegate_PaintingRoles(const QAbstractItemDelegate* self) { QVector _ret = self->paintingRoles(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt/gen_qabstractitemdelegate.h b/qt/gen_qabstractitemdelegate.h index 355377fb..609cd724 100644 --- a/qt/gen_qabstractitemdelegate.h +++ b/qt/gen_qabstractitemdelegate.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTITEMDELEGATE_H -#define GEN_QABSTRACTITEMDELEGATE_H +#pragma once +#ifndef MIQT_QT_GEN_QABSTRACTITEMDELEGATE_H +#define MIQT_QT_GEN_QABSTRACTITEMDELEGATE_H #include #include @@ -55,7 +56,7 @@ void QAbstractItemDelegate_UpdateEditorGeometry(const QAbstractItemDelegate* sel bool QAbstractItemDelegate_EditorEvent(QAbstractItemDelegate* self, QEvent* event, QAbstractItemModel* model, QStyleOptionViewItem* option, QModelIndex* index); struct miqt_string QAbstractItemDelegate_ElidedText(QFontMetrics* fontMetrics, int width, int mode, struct miqt_string text); bool QAbstractItemDelegate_HelpEvent(QAbstractItemDelegate* self, QHelpEvent* event, QAbstractItemView* view, QStyleOptionViewItem* option, QModelIndex* index); -struct miqt_array QAbstractItemDelegate_PaintingRoles(const QAbstractItemDelegate* self); +struct miqt_array /* of int */ QAbstractItemDelegate_PaintingRoles(const QAbstractItemDelegate* self); void QAbstractItemDelegate_CommitData(QAbstractItemDelegate* self, QWidget* editor); void QAbstractItemDelegate_connect_CommitData(QAbstractItemDelegate* self, intptr_t slot); void QAbstractItemDelegate_CloseEditor(QAbstractItemDelegate* self, QWidget* editor); diff --git a/qt/gen_qabstractitemmodel.cpp b/qt/gen_qabstractitemmodel.cpp index 8d367b5c..ff651ccb 100644 --- a/qt/gen_qabstractitemmodel.cpp +++ b/qt/gen_qabstractitemmodel.cpp @@ -271,7 +271,7 @@ bool QAbstractItemModel_SetHeaderData(QAbstractItemModel* self, int section, int return self->setHeaderData(static_cast(section), static_cast(orientation), *value); } -struct miqt_map QAbstractItemModel_ItemData(const QAbstractItemModel* self, QModelIndex* index) { +struct miqt_map /* of int to QVariant* */ QAbstractItemModel_ItemData(const QAbstractItemModel* self, QModelIndex* index) { QMap _ret = self->itemData(*index); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -289,7 +289,7 @@ struct miqt_map QAbstractItemModel_ItemData(const QAbstractItemModel* self, QMod return _out; } -bool QAbstractItemModel_SetItemData(QAbstractItemModel* self, QModelIndex* index, struct miqt_map roles) { +bool QAbstractItemModel_SetItemData(QAbstractItemModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) { QMap roles_QMap; int* roles_karr = static_cast(roles.keys); QVariant** roles_varr = static_cast(roles.values); @@ -299,7 +299,7 @@ bool QAbstractItemModel_SetItemData(QAbstractItemModel* self, QModelIndex* index return self->setItemData(*index, roles_QMap); } -struct miqt_array QAbstractItemModel_MimeTypes(const QAbstractItemModel* self) { +struct miqt_array /* of struct miqt_string */ QAbstractItemModel_MimeTypes(const QAbstractItemModel* self) { QStringList _ret = self->mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -319,7 +319,7 @@ struct miqt_array QAbstractItemModel_MimeTypes(const QAbstractItemModel* self) { return _out; } -QMimeData* QAbstractItemModel_MimeData(const QAbstractItemModel* self, struct miqt_array /* of QModelIndex* */ indexes) { +QMimeData* QAbstractItemModel_MimeData(const QAbstractItemModel* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); @@ -416,7 +416,7 @@ QModelIndex* QAbstractItemModel_Buddy(const QAbstractItemModel* self, QModelInde return new QModelIndex(self->buddy(*index)); } -struct miqt_array QAbstractItemModel_Match(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value) { +struct miqt_array /* of QModelIndex* */ QAbstractItemModel_Match(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value) { QModelIndexList _ret = self->match(*start, static_cast(role), *value); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -433,7 +433,7 @@ QSize* QAbstractItemModel_Span(const QAbstractItemModel* self, QModelIndex* inde return new QSize(self->span(*index)); } -struct miqt_map QAbstractItemModel_RoleNames(const QAbstractItemModel* self) { +struct miqt_map /* of int to struct miqt_string */ QAbstractItemModel_RoleNames(const QAbstractItemModel* self) { QHash _ret = self->roleNames(); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -634,7 +634,7 @@ void QAbstractItemModel_Sort2(QAbstractItemModel* self, int column, int order) { self->sort(static_cast(column), static_cast(order)); } -struct miqt_array QAbstractItemModel_Match4(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits) { +struct miqt_array /* of QModelIndex* */ QAbstractItemModel_Match4(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits) { QModelIndexList _ret = self->match(*start, static_cast(role), *value, static_cast(hits)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -647,7 +647,7 @@ struct miqt_array QAbstractItemModel_Match4(const QAbstractItemModel* self, QMod return _out; } -struct miqt_array QAbstractItemModel_Match5(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) { +struct miqt_array /* of QModelIndex* */ QAbstractItemModel_Match5(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) { QModelIndexList _ret = self->match(*start, static_cast(role), *value, static_cast(hits), static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -664,7 +664,7 @@ bool QAbstractItemModel_CheckIndex2(const QAbstractItemModel* self, QModelIndex* return self->checkIndex(*index, static_cast(options)); } -void QAbstractItemModel_DataChanged3(QAbstractItemModel* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles) { +void QAbstractItemModel_DataChanged3(QAbstractItemModel* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles) { QVector roles_QList; roles_QList.reserve(roles.len); int* roles_arr = static_cast(roles.data); @@ -691,12 +691,12 @@ void QAbstractItemModel_connect_DataChanged3(QAbstractItemModel* self, intptr_t struct miqt_array roles_out; roles_out.len = roles_ret.length(); roles_out.data = static_cast(roles_arr); - struct miqt_array sigval3 = roles_out; + struct miqt_array /* of int */ sigval3 = roles_out; miqt_exec_callback_QAbstractItemModel_DataChanged3(slot, sigval1, sigval2, sigval3); }); } -void QAbstractItemModel_LayoutChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents) { +void QAbstractItemModel_LayoutChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents) { QList parents_QList; parents_QList.reserve(parents.len); QPersistentModelIndex** parents_arr = static_cast(parents.data); @@ -717,12 +717,12 @@ void QAbstractItemModel_connect_LayoutChanged1(QAbstractItemModel* self, intptr_ struct miqt_array parents_out; parents_out.len = parents_ret.length(); parents_out.data = static_cast(parents_arr); - struct miqt_array sigval1 = parents_out; + struct miqt_array /* of QPersistentModelIndex* */ sigval1 = parents_out; miqt_exec_callback_QAbstractItemModel_LayoutChanged1(slot, sigval1); }); } -void QAbstractItemModel_LayoutChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint) { +void QAbstractItemModel_LayoutChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint) { QList parents_QList; parents_QList.reserve(parents.len); QPersistentModelIndex** parents_arr = static_cast(parents.data); @@ -743,14 +743,14 @@ void QAbstractItemModel_connect_LayoutChanged2(QAbstractItemModel* self, intptr_ struct miqt_array parents_out; parents_out.len = parents_ret.length(); parents_out.data = static_cast(parents_arr); - struct miqt_array sigval1 = parents_out; + struct miqt_array /* of QPersistentModelIndex* */ sigval1 = parents_out; QAbstractItemModel::LayoutChangeHint hint_ret = hint; int sigval2 = static_cast(hint_ret); miqt_exec_callback_QAbstractItemModel_LayoutChanged2(slot, sigval1, sigval2); }); } -void QAbstractItemModel_LayoutAboutToBeChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents) { +void QAbstractItemModel_LayoutAboutToBeChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents) { QList parents_QList; parents_QList.reserve(parents.len); QPersistentModelIndex** parents_arr = static_cast(parents.data); @@ -771,12 +771,12 @@ void QAbstractItemModel_connect_LayoutAboutToBeChanged1(QAbstractItemModel* self struct miqt_array parents_out; parents_out.len = parents_ret.length(); parents_out.data = static_cast(parents_arr); - struct miqt_array sigval1 = parents_out; + struct miqt_array /* of QPersistentModelIndex* */ sigval1 = parents_out; miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged1(slot, sigval1); }); } -void QAbstractItemModel_LayoutAboutToBeChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint) { +void QAbstractItemModel_LayoutAboutToBeChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint) { QList parents_QList; parents_QList.reserve(parents.len); QPersistentModelIndex** parents_arr = static_cast(parents.data); @@ -797,7 +797,7 @@ void QAbstractItemModel_connect_LayoutAboutToBeChanged2(QAbstractItemModel* self struct miqt_array parents_out; parents_out.len = parents_ret.length(); parents_out.data = static_cast(parents_arr); - struct miqt_array sigval1 = parents_out; + struct miqt_array /* of QPersistentModelIndex* */ sigval1 = parents_out; QAbstractItemModel::LayoutChangeHint hint_ret = hint; int sigval2 = static_cast(hint_ret); miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged2(slot, sigval1, sigval2); diff --git a/qt/gen_qabstractitemmodel.h b/qt/gen_qabstractitemmodel.h index 95b41f47..a0f1324a 100644 --- a/qt/gen_qabstractitemmodel.h +++ b/qt/gen_qabstractitemmodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTITEMMODEL_H -#define GEN_QABSTRACTITEMMODEL_H +#pragma once +#ifndef MIQT_QT_GEN_QABSTRACTITEMMODEL_H +#define MIQT_QT_GEN_QABSTRACTITEMMODEL_H #include #include @@ -98,10 +99,10 @@ QVariant* QAbstractItemModel_Data(const QAbstractItemModel* self, QModelIndex* i bool QAbstractItemModel_SetData(QAbstractItemModel* self, QModelIndex* index, QVariant* value); QVariant* QAbstractItemModel_HeaderData(const QAbstractItemModel* self, int section, int orientation); bool QAbstractItemModel_SetHeaderData(QAbstractItemModel* self, int section, int orientation, QVariant* value); -struct miqt_map QAbstractItemModel_ItemData(const QAbstractItemModel* self, QModelIndex* index); -bool QAbstractItemModel_SetItemData(QAbstractItemModel* self, QModelIndex* index, struct miqt_map roles); -struct miqt_array QAbstractItemModel_MimeTypes(const QAbstractItemModel* self); -QMimeData* QAbstractItemModel_MimeData(const QAbstractItemModel* self, struct miqt_array /* of QModelIndex* */ indexes); +struct miqt_map /* of int to QVariant* */ QAbstractItemModel_ItemData(const QAbstractItemModel* self, QModelIndex* index); +bool QAbstractItemModel_SetItemData(QAbstractItemModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles); +struct miqt_array /* of struct miqt_string */ QAbstractItemModel_MimeTypes(const QAbstractItemModel* self); +QMimeData* QAbstractItemModel_MimeData(const QAbstractItemModel* self, struct miqt_array /* of QModelIndex* */ indexes); bool QAbstractItemModel_CanDropMimeData(const QAbstractItemModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); bool QAbstractItemModel_DropMimeData(QAbstractItemModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); int QAbstractItemModel_SupportedDropActions(const QAbstractItemModel* self); @@ -123,9 +124,9 @@ bool QAbstractItemModel_CanFetchMore(const QAbstractItemModel* self, QModelIndex int QAbstractItemModel_Flags(const QAbstractItemModel* self, QModelIndex* index); void QAbstractItemModel_Sort(QAbstractItemModel* self, int column); QModelIndex* QAbstractItemModel_Buddy(const QAbstractItemModel* self, QModelIndex* index); -struct miqt_array QAbstractItemModel_Match(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value); +struct miqt_array /* of QModelIndex* */ QAbstractItemModel_Match(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value); QSize* QAbstractItemModel_Span(const QAbstractItemModel* self, QModelIndex* index); -struct miqt_map QAbstractItemModel_RoleNames(const QAbstractItemModel* self); +struct miqt_map /* of int to struct miqt_string */ QAbstractItemModel_RoleNames(const QAbstractItemModel* self); bool QAbstractItemModel_CheckIndex(const QAbstractItemModel* self, QModelIndex* index); void QAbstractItemModel_DataChanged(QAbstractItemModel* self, QModelIndex* topLeft, QModelIndex* bottomRight); void QAbstractItemModel_connect_DataChanged(QAbstractItemModel* self, intptr_t slot); @@ -159,18 +160,18 @@ bool QAbstractItemModel_InsertColumn2(QAbstractItemModel* self, int column, QMod bool QAbstractItemModel_RemoveRow2(QAbstractItemModel* self, int row, QModelIndex* parent); bool QAbstractItemModel_RemoveColumn2(QAbstractItemModel* self, int column, QModelIndex* parent); void QAbstractItemModel_Sort2(QAbstractItemModel* self, int column, int order); -struct miqt_array QAbstractItemModel_Match4(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits); -struct miqt_array QAbstractItemModel_Match5(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags); +struct miqt_array /* of QModelIndex* */ QAbstractItemModel_Match4(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits); +struct miqt_array /* of QModelIndex* */ QAbstractItemModel_Match5(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags); bool QAbstractItemModel_CheckIndex2(const QAbstractItemModel* self, QModelIndex* index, int options); -void QAbstractItemModel_DataChanged3(QAbstractItemModel* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles); +void QAbstractItemModel_DataChanged3(QAbstractItemModel* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles); void QAbstractItemModel_connect_DataChanged3(QAbstractItemModel* self, intptr_t slot); -void QAbstractItemModel_LayoutChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents); +void QAbstractItemModel_LayoutChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents); void QAbstractItemModel_connect_LayoutChanged1(QAbstractItemModel* self, intptr_t slot); -void QAbstractItemModel_LayoutChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint); +void QAbstractItemModel_LayoutChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint); void QAbstractItemModel_connect_LayoutChanged2(QAbstractItemModel* self, intptr_t slot); -void QAbstractItemModel_LayoutAboutToBeChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents); +void QAbstractItemModel_LayoutAboutToBeChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents); void QAbstractItemModel_connect_LayoutAboutToBeChanged1(QAbstractItemModel* self, intptr_t slot); -void QAbstractItemModel_LayoutAboutToBeChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint); +void QAbstractItemModel_LayoutAboutToBeChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint); void QAbstractItemModel_connect_LayoutAboutToBeChanged2(QAbstractItemModel* self, intptr_t slot); void QAbstractItemModel_Delete(QAbstractItemModel* self); diff --git a/qt/gen_qabstractitemview.h b/qt/gen_qabstractitemview.h index e2338701..df43423d 100644 --- a/qt/gen_qabstractitemview.h +++ b/qt/gen_qabstractitemview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTITEMVIEW_H -#define GEN_QABSTRACTITEMVIEW_H +#pragma once +#ifndef MIQT_QT_GEN_QABSTRACTITEMVIEW_H +#define MIQT_QT_GEN_QABSTRACTITEMVIEW_H #include #include diff --git a/qt/gen_qabstractnativeeventfilter.h b/qt/gen_qabstractnativeeventfilter.h index 97b88326..32141bb9 100644 --- a/qt/gen_qabstractnativeeventfilter.h +++ b/qt/gen_qabstractnativeeventfilter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTNATIVEEVENTFILTER_H -#define GEN_QABSTRACTNATIVEEVENTFILTER_H +#pragma once +#ifndef MIQT_QT_GEN_QABSTRACTNATIVEEVENTFILTER_H +#define MIQT_QT_GEN_QABSTRACTNATIVEEVENTFILTER_H #include #include diff --git a/qt/gen_qabstractproxymodel.cpp b/qt/gen_qabstractproxymodel.cpp index 245d410f..e6d5a1d2 100644 --- a/qt/gen_qabstractproxymodel.cpp +++ b/qt/gen_qabstractproxymodel.cpp @@ -76,7 +76,7 @@ QVariant* QAbstractProxyModel_HeaderData(const QAbstractProxyModel* self, int se return new QVariant(self->headerData(static_cast(section), static_cast(orientation))); } -struct miqt_map QAbstractProxyModel_ItemData(const QAbstractProxyModel* self, QModelIndex* index) { +struct miqt_map /* of int to QVariant* */ QAbstractProxyModel_ItemData(const QAbstractProxyModel* self, QModelIndex* index) { QMap _ret = self->itemData(*index); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -103,7 +103,7 @@ bool QAbstractProxyModel_SetData(QAbstractProxyModel* self, QModelIndex* index, return self->setData(*index, *value); } -bool QAbstractProxyModel_SetItemData(QAbstractProxyModel* self, QModelIndex* index, struct miqt_map roles) { +bool QAbstractProxyModel_SetItemData(QAbstractProxyModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) { QMap roles_QMap; int* roles_karr = static_cast(roles.keys); QVariant** roles_varr = static_cast(roles.values); @@ -145,7 +145,7 @@ QModelIndex* QAbstractProxyModel_Sibling(const QAbstractProxyModel* self, int ro return new QModelIndex(self->sibling(static_cast(row), static_cast(column), *idx)); } -QMimeData* QAbstractProxyModel_MimeData(const QAbstractProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes) { +QMimeData* QAbstractProxyModel_MimeData(const QAbstractProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); @@ -163,7 +163,7 @@ bool QAbstractProxyModel_DropMimeData(QAbstractProxyModel* self, QMimeData* data return self->dropMimeData(data, static_cast(action), static_cast(row), static_cast(column), *parent); } -struct miqt_array QAbstractProxyModel_MimeTypes(const QAbstractProxyModel* self) { +struct miqt_array /* of struct miqt_string */ QAbstractProxyModel_MimeTypes(const QAbstractProxyModel* self) { QStringList _ret = self->mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qabstractproxymodel.h b/qt/gen_qabstractproxymodel.h index 2b041b5e..ebbcf22d 100644 --- a/qt/gen_qabstractproxymodel.h +++ b/qt/gen_qabstractproxymodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTPROXYMODEL_H -#define GEN_QABSTRACTPROXYMODEL_H +#pragma once +#ifndef MIQT_QT_GEN_QABSTRACTPROXYMODEL_H +#define MIQT_QT_GEN_QABSTRACTPROXYMODEL_H #include #include @@ -43,10 +44,10 @@ bool QAbstractProxyModel_Submit(QAbstractProxyModel* self); void QAbstractProxyModel_Revert(QAbstractProxyModel* self); QVariant* QAbstractProxyModel_Data(const QAbstractProxyModel* self, QModelIndex* proxyIndex); QVariant* QAbstractProxyModel_HeaderData(const QAbstractProxyModel* self, int section, int orientation); -struct miqt_map QAbstractProxyModel_ItemData(const QAbstractProxyModel* self, QModelIndex* index); +struct miqt_map /* of int to QVariant* */ QAbstractProxyModel_ItemData(const QAbstractProxyModel* self, QModelIndex* index); int QAbstractProxyModel_Flags(const QAbstractProxyModel* self, QModelIndex* index); bool QAbstractProxyModel_SetData(QAbstractProxyModel* self, QModelIndex* index, QVariant* value); -bool QAbstractProxyModel_SetItemData(QAbstractProxyModel* self, QModelIndex* index, struct miqt_map roles); +bool QAbstractProxyModel_SetItemData(QAbstractProxyModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles); bool QAbstractProxyModel_SetHeaderData(QAbstractProxyModel* self, int section, int orientation, QVariant* value); QModelIndex* QAbstractProxyModel_Buddy(const QAbstractProxyModel* self, QModelIndex* index); bool QAbstractProxyModel_CanFetchMore(const QAbstractProxyModel* self, QModelIndex* parent); @@ -55,10 +56,10 @@ void QAbstractProxyModel_Sort(QAbstractProxyModel* self, int column); QSize* QAbstractProxyModel_Span(const QAbstractProxyModel* self, QModelIndex* index); bool QAbstractProxyModel_HasChildren(const QAbstractProxyModel* self); QModelIndex* QAbstractProxyModel_Sibling(const QAbstractProxyModel* self, int row, int column, QModelIndex* idx); -QMimeData* QAbstractProxyModel_MimeData(const QAbstractProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes); +QMimeData* QAbstractProxyModel_MimeData(const QAbstractProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes); bool QAbstractProxyModel_CanDropMimeData(const QAbstractProxyModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); bool QAbstractProxyModel_DropMimeData(QAbstractProxyModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); -struct miqt_array QAbstractProxyModel_MimeTypes(const QAbstractProxyModel* self); +struct miqt_array /* of struct miqt_string */ QAbstractProxyModel_MimeTypes(const QAbstractProxyModel* self); int QAbstractProxyModel_SupportedDragActions(const QAbstractProxyModel* self); int QAbstractProxyModel_SupportedDropActions(const QAbstractProxyModel* self); struct miqt_string QAbstractProxyModel_Tr2(const char* s, const char* c); diff --git a/qt/gen_qabstractscrollarea.cpp b/qt/gen_qabstractscrollarea.cpp index c8550d38..6d4821e0 100644 --- a/qt/gen_qabstractscrollarea.cpp +++ b/qt/gen_qabstractscrollarea.cpp @@ -95,7 +95,7 @@ void QAbstractScrollArea_AddScrollBarWidget(QAbstractScrollArea* self, QWidget* self->addScrollBarWidget(widget, static_cast(alignment)); } -struct miqt_array QAbstractScrollArea_ScrollBarWidgets(QAbstractScrollArea* self, int alignment) { +struct miqt_array /* of QWidget* */ QAbstractScrollArea_ScrollBarWidgets(QAbstractScrollArea* self, int alignment) { QWidgetList _ret = self->scrollBarWidgets(static_cast(alignment)); // Convert QList<> from C++ memory to manually-managed C memory QWidget** _arr = static_cast(malloc(sizeof(QWidget*) * _ret.length())); diff --git a/qt/gen_qabstractscrollarea.h b/qt/gen_qabstractscrollarea.h index 887d8dac..269efcc1 100644 --- a/qt/gen_qabstractscrollarea.h +++ b/qt/gen_qabstractscrollarea.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTSCROLLAREA_H -#define GEN_QABSTRACTSCROLLAREA_H +#pragma once +#ifndef MIQT_QT_GEN_QABSTRACTSCROLLAREA_H +#define MIQT_QT_GEN_QABSTRACTSCROLLAREA_H #include #include @@ -44,7 +45,7 @@ void QAbstractScrollArea_SetHorizontalScrollBar(QAbstractScrollArea* self, QScro QWidget* QAbstractScrollArea_CornerWidget(const QAbstractScrollArea* self); void QAbstractScrollArea_SetCornerWidget(QAbstractScrollArea* self, QWidget* widget); void QAbstractScrollArea_AddScrollBarWidget(QAbstractScrollArea* self, QWidget* widget, int alignment); -struct miqt_array QAbstractScrollArea_ScrollBarWidgets(QAbstractScrollArea* self, int alignment); +struct miqt_array /* of QWidget* */ QAbstractScrollArea_ScrollBarWidgets(QAbstractScrollArea* self, int alignment); QWidget* QAbstractScrollArea_Viewport(const QAbstractScrollArea* self); void QAbstractScrollArea_SetViewport(QAbstractScrollArea* self, QWidget* widget); QSize* QAbstractScrollArea_MaximumViewportSize(const QAbstractScrollArea* self); diff --git a/qt/gen_qabstractslider.h b/qt/gen_qabstractslider.h index b056f9b0..eda2ca38 100644 --- a/qt/gen_qabstractslider.h +++ b/qt/gen_qabstractslider.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTSLIDER_H -#define GEN_QABSTRACTSLIDER_H +#pragma once +#ifndef MIQT_QT_GEN_QABSTRACTSLIDER_H +#define MIQT_QT_GEN_QABSTRACTSLIDER_H #include #include diff --git a/qt/gen_qabstractspinbox.h b/qt/gen_qabstractspinbox.h index f58dcf05..839dc6c3 100644 --- a/qt/gen_qabstractspinbox.h +++ b/qt/gen_qabstractspinbox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTSPINBOX_H -#define GEN_QABSTRACTSPINBOX_H +#pragma once +#ifndef MIQT_QT_GEN_QABSTRACTSPINBOX_H +#define MIQT_QT_GEN_QABSTRACTSPINBOX_H #include #include diff --git a/qt/gen_qabstractstate.h b/qt/gen_qabstractstate.h index 04a4e378..2baf2067 100644 --- a/qt/gen_qabstractstate.h +++ b/qt/gen_qabstractstate.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTSTATE_H -#define GEN_QABSTRACTSTATE_H +#pragma once +#ifndef MIQT_QT_GEN_QABSTRACTSTATE_H +#define MIQT_QT_GEN_QABSTRACTSTATE_H #include #include diff --git a/qt/gen_qabstracttextdocumentlayout.h b/qt/gen_qabstracttextdocumentlayout.h index 9153dc97..ef27ef5a 100644 --- a/qt/gen_qabstracttextdocumentlayout.h +++ b/qt/gen_qabstracttextdocumentlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTTEXTDOCUMENTLAYOUT_H -#define GEN_QABSTRACTTEXTDOCUMENTLAYOUT_H +#pragma once +#ifndef MIQT_QT_GEN_QABSTRACTTEXTDOCUMENTLAYOUT_H +#define MIQT_QT_GEN_QABSTRACTTEXTDOCUMENTLAYOUT_H #include #include diff --git a/qt/gen_qabstracttransition.cpp b/qt/gen_qabstracttransition.cpp index 7c6d6ee3..8a27451b 100644 --- a/qt/gen_qabstracttransition.cpp +++ b/qt/gen_qabstracttransition.cpp @@ -54,7 +54,7 @@ void QAbstractTransition_SetTargetState(QAbstractTransition* self, QAbstractStat self->setTargetState(target); } -struct miqt_array QAbstractTransition_TargetStates(const QAbstractTransition* self) { +struct miqt_array /* of QAbstractState* */ QAbstractTransition_TargetStates(const QAbstractTransition* self) { QList _ret = self->targetStates(); // Convert QList<> from C++ memory to manually-managed C memory QAbstractState** _arr = static_cast(malloc(sizeof(QAbstractState*) * _ret.length())); @@ -67,7 +67,7 @@ struct miqt_array QAbstractTransition_TargetStates(const QAbstractTransition* se return _out; } -void QAbstractTransition_SetTargetStates(QAbstractTransition* self, struct miqt_array /* of QAbstractState* */ targets) { +void QAbstractTransition_SetTargetStates(QAbstractTransition* self, struct miqt_array /* of QAbstractState* */ targets) { QList targets_QList; targets_QList.reserve(targets.len); QAbstractState** targets_arr = static_cast(targets.data); @@ -98,7 +98,7 @@ void QAbstractTransition_RemoveAnimation(QAbstractTransition* self, QAbstractAni self->removeAnimation(animation); } -struct miqt_array QAbstractTransition_Animations(const QAbstractTransition* self) { +struct miqt_array /* of QAbstractAnimation* */ QAbstractTransition_Animations(const QAbstractTransition* self) { QList _ret = self->animations(); // Convert QList<> from C++ memory to manually-managed C memory QAbstractAnimation** _arr = static_cast(malloc(sizeof(QAbstractAnimation*) * _ret.length())); diff --git a/qt/gen_qabstracttransition.h b/qt/gen_qabstracttransition.h index 23d76b83..44a6278e 100644 --- a/qt/gen_qabstracttransition.h +++ b/qt/gen_qabstracttransition.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTTRANSITION_H -#define GEN_QABSTRACTTRANSITION_H +#pragma once +#ifndef MIQT_QT_GEN_QABSTRACTTRANSITION_H +#define MIQT_QT_GEN_QABSTRACTTRANSITION_H #include #include @@ -36,14 +37,14 @@ struct miqt_string QAbstractTransition_TrUtf8(const char* s); QState* QAbstractTransition_SourceState(const QAbstractTransition* self); QAbstractState* QAbstractTransition_TargetState(const QAbstractTransition* self); void QAbstractTransition_SetTargetState(QAbstractTransition* self, QAbstractState* target); -struct miqt_array QAbstractTransition_TargetStates(const QAbstractTransition* self); -void QAbstractTransition_SetTargetStates(QAbstractTransition* self, struct miqt_array /* of QAbstractState* */ targets); +struct miqt_array /* of QAbstractState* */ QAbstractTransition_TargetStates(const QAbstractTransition* self); +void QAbstractTransition_SetTargetStates(QAbstractTransition* self, struct miqt_array /* of QAbstractState* */ targets); int QAbstractTransition_TransitionType(const QAbstractTransition* self); void QAbstractTransition_SetTransitionType(QAbstractTransition* self, int typeVal); QStateMachine* QAbstractTransition_Machine(const QAbstractTransition* self); void QAbstractTransition_AddAnimation(QAbstractTransition* self, QAbstractAnimation* animation); void QAbstractTransition_RemoveAnimation(QAbstractTransition* self, QAbstractAnimation* animation); -struct miqt_array QAbstractTransition_Animations(const QAbstractTransition* self); +struct miqt_array /* of QAbstractAnimation* */ QAbstractTransition_Animations(const QAbstractTransition* self); struct miqt_string QAbstractTransition_Tr2(const char* s, const char* c); struct miqt_string QAbstractTransition_Tr3(const char* s, const char* c, int n); struct miqt_string QAbstractTransition_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qaccessible.cpp b/qt/gen_qaccessible.cpp index 7ba08c4d..b3db8f86 100644 --- a/qt/gen_qaccessible.cpp +++ b/qt/gen_qaccessible.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -83,6 +84,20 @@ void QAccessible_Cleanup() { QAccessible::cleanup(); } +struct miqt_map /* tuple of int and int */ QAccessible_QAccessibleTextBoundaryHelper(QTextCursor* cursor, int boundaryType) { + QPair _ret = QAccessible::qAccessibleTextBoundaryHelper(*cursor, static_cast(boundaryType)); + // Convert QPair<> from C++ memory to manually-managed C memory + int* _first_arr = static_cast(malloc(sizeof(int))); + int* _second_arr = static_cast(malloc(sizeof(int))); + _first_arr[0] = _ret.first; + _second_arr[0] = _ret.second; + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + void QAccessible_Delete(QAccessible* self) { delete self; } @@ -99,6 +114,30 @@ QWindow* QAccessibleInterface_Window(const QAccessibleInterface* self) { return self->window(); } +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleInterface_Relations(const QAccessibleInterface* self) { + QVector> _ret = self->relations(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of QAccessibleInterface* and int */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of QAccessibleInterface* and int */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair> _vv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + QAccessibleInterface** _vv_first_arr = static_cast(malloc(sizeof(QAccessibleInterface*))); + int* _vv_second_arr = static_cast(malloc(sizeof(int))); + _vv_first_arr[0] = _vv_ret.first; + QFlags _vv_second_ret = _vv_ret.second; + _vv_second_arr[0] = static_cast(_vv_second_ret); + struct miqt_map _vv_out; + _vv_out.len = 1; + _vv_out.keys = static_cast(_vv_first_arr); + _vv_out.values = static_cast(_vv_second_arr); + _arr[i] = _vv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + QAccessibleInterface* QAccessibleInterface_FocusChild(const QAccessibleInterface* self) { return self->focusChild(); } @@ -196,6 +235,30 @@ void* QAccessibleInterface_InterfaceCast(QAccessibleInterface* self, int param1) return self->interface_cast(static_cast(param1)); } +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleInterface_Relations1(const QAccessibleInterface* self, int match) { + QVector> _ret = self->relations(static_cast(match)); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of QAccessibleInterface* and int */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of QAccessibleInterface* and int */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair> _vv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + QAccessibleInterface** _vv_first_arr = static_cast(malloc(sizeof(QAccessibleInterface*))); + int* _vv_second_arr = static_cast(malloc(sizeof(int))); + _vv_first_arr[0] = _vv_ret.first; + QFlags _vv_second_ret = _vv_ret.second; + _vv_second_arr[0] = static_cast(_vv_second_ret); + struct miqt_map _vv_out; + _vv_out.len = 1; + _vv_out.keys = static_cast(_vv_first_arr); + _vv_out.values = static_cast(_vv_second_arr); + _arr[i] = _vv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + void QAccessibleTextInterface_Selection(const QAccessibleTextInterface* self, int selectionIndex, int* startOffset, int* endOffset) { self->selection(static_cast(selectionIndex), static_cast(startOffset), static_cast(endOffset)); } @@ -357,7 +420,7 @@ bool QAccessibleTableCellInterface_IsSelected(const QAccessibleTableCellInterfac return self->isSelected(); } -struct miqt_array QAccessibleTableCellInterface_ColumnHeaderCells(const QAccessibleTableCellInterface* self) { +struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableCellInterface_ColumnHeaderCells(const QAccessibleTableCellInterface* self) { QList _ret = self->columnHeaderCells(); // Convert QList<> from C++ memory to manually-managed C memory QAccessibleInterface** _arr = static_cast(malloc(sizeof(QAccessibleInterface*) * _ret.length())); @@ -370,7 +433,7 @@ struct miqt_array QAccessibleTableCellInterface_ColumnHeaderCells(const QAccessi return _out; } -struct miqt_array QAccessibleTableCellInterface_RowHeaderCells(const QAccessibleTableCellInterface* self) { +struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableCellInterface_RowHeaderCells(const QAccessibleTableCellInterface* self) { QList _ret = self->rowHeaderCells(); // Convert QList<> from C++ memory to manually-managed C memory QAccessibleInterface** _arr = static_cast(malloc(sizeof(QAccessibleInterface*) * _ret.length())); @@ -427,7 +490,7 @@ int QAccessibleTableInterface_SelectedCellCount(const QAccessibleTableInterface* return self->selectedCellCount(); } -struct miqt_array QAccessibleTableInterface_SelectedCells(const QAccessibleTableInterface* self) { +struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableInterface_SelectedCells(const QAccessibleTableInterface* self) { QList _ret = self->selectedCells(); // Convert QList<> from C++ memory to manually-managed C memory QAccessibleInterface** _arr = static_cast(malloc(sizeof(QAccessibleInterface*) * _ret.length())); @@ -478,7 +541,7 @@ int QAccessibleTableInterface_RowCount(const QAccessibleTableInterface* self) { return self->rowCount(); } -struct miqt_array QAccessibleTableInterface_SelectedColumns(const QAccessibleTableInterface* self) { +struct miqt_array /* of int */ QAccessibleTableInterface_SelectedColumns(const QAccessibleTableInterface* self) { QList _ret = self->selectedColumns(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -491,7 +554,7 @@ struct miqt_array QAccessibleTableInterface_SelectedColumns(const QAccessibleTab return _out; } -struct miqt_array QAccessibleTableInterface_SelectedRows(const QAccessibleTableInterface* self) { +struct miqt_array /* of int */ QAccessibleTableInterface_SelectedRows(const QAccessibleTableInterface* self) { QList _ret = self->selectedRows(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -558,7 +621,7 @@ struct miqt_string QAccessibleActionInterface_TrUtf8(const char* sourceText) { return _ms; } -struct miqt_array QAccessibleActionInterface_ActionNames(const QAccessibleActionInterface* self) { +struct miqt_array /* of struct miqt_string */ QAccessibleActionInterface_ActionNames(const QAccessibleActionInterface* self) { QStringList _ret = self->actionNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -607,7 +670,7 @@ void QAccessibleActionInterface_DoAction(QAccessibleActionInterface* self, struc self->doAction(actionName_QString); } -struct miqt_array QAccessibleActionInterface_KeyBindingsForAction(const QAccessibleActionInterface* self, struct miqt_string actionName) { +struct miqt_array /* of struct miqt_string */ QAccessibleActionInterface_KeyBindingsForAction(const QAccessibleActionInterface* self, struct miqt_string actionName) { QString actionName_QString = QString::fromUtf8(actionName.data, actionName.len); QStringList _ret = self->keyBindingsForAction(actionName_QString); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/gen_qaccessible.go b/qt/gen_qaccessible.go index bb9207cc..40308706 100644 --- a/qt/gen_qaccessible.go +++ b/qt/gen_qaccessible.go @@ -302,6 +302,23 @@ func QAccessible_Cleanup() { C.QAccessible_Cleanup() } +func QAccessible_QAccessibleTextBoundaryHelper(cursor *QTextCursor, boundaryType QAccessible__TextBoundaryType) struct { + First int + Second int +} { + var _mm C.struct_miqt_map = C.QAccessible_QAccessibleTextBoundaryHelper(cursor.cPointer(), (C.int)(boundaryType)) + _First_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.values)) + _entry_First := (int)(_First_CArray[0]) + + _entry_Second := (int)(_Second_CArray[0]) + + return struct { + First int + Second int + }{First: _entry_First, Second: _entry_Second} +} + // Delete this object from C++ memory. func (this *QAccessible) Delete() { C.QAccessible_Delete(this.h) @@ -357,6 +374,31 @@ func (this *QAccessibleInterface) Window() *QWindow { return UnsafeNewQWindow(unsafe.Pointer(C.QAccessibleInterface_Window(this.h))) } +func (this *QAccessibleInterface) Relations() []struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag +} { + var _ma C.struct_miqt_array = C.QAccessibleInterface_Relations(this.h) + _ret := make([]struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _vv_mm C.struct_miqt_map = _outCast[i] + _vv_First_CArray := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_vv_mm.keys)) + _vv_Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_vv_mm.values)) + _vv_entry_First := UnsafeNewQAccessibleInterface(unsafe.Pointer(_vv_First_CArray[0])) + _vv_entry_Second := (QAccessible__RelationFlag)(_vv_Second_CArray[0]) + + _ret[i] = struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }{First: _vv_entry_First, Second: _vv_entry_Second} + } + return _ret +} + func (this *QAccessibleInterface) FocusChild() *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleInterface_FocusChild(this.h))) } @@ -464,6 +506,31 @@ func (this *QAccessibleInterface) InterfaceCast(param1 QAccessible__InterfaceTyp return (unsafe.Pointer)(C.QAccessibleInterface_InterfaceCast(this.h, (C.int)(param1))) } +func (this *QAccessibleInterface) Relations1(match QAccessible__RelationFlag) []struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag +} { + var _ma C.struct_miqt_array = C.QAccessibleInterface_Relations1(this.h, (C.int)(match)) + _ret := make([]struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _vv_mm C.struct_miqt_map = _outCast[i] + _vv_First_CArray := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_vv_mm.keys)) + _vv_Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_vv_mm.values)) + _vv_entry_First := UnsafeNewQAccessibleInterface(unsafe.Pointer(_vv_First_CArray[0])) + _vv_entry_Second := (QAccessible__RelationFlag)(_vv_Second_CArray[0]) + + _ret[i] = struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }{First: _vv_entry_First, Second: _vv_entry_Second} + } + return _ret +} + type QAccessibleTextInterface struct { h *C.QAccessibleTextInterface } diff --git a/qt/gen_qaccessible.h b/qt/gen_qaccessible.h index c29acaef..52828843 100644 --- a/qt/gen_qaccessible.h +++ b/qt/gen_qaccessible.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACCESSIBLE_H -#define GEN_QACCESSIBLE_H +#pragma once +#ifndef MIQT_QT_GEN_QACCESSIBLE_H +#define MIQT_QT_GEN_QACCESSIBLE_H #include #include @@ -47,6 +48,7 @@ class QObject; class QPoint; class QRect; class QSize; +class QTextCursor; class QVariant; class QWindow; #else @@ -75,6 +77,7 @@ typedef struct QObject QObject; typedef struct QPoint QPoint; typedef struct QRect QRect; typedef struct QSize QSize; +typedef struct QTextCursor QTextCursor; typedef struct QVariant QVariant; typedef struct QWindow QWindow; #endif @@ -91,11 +94,13 @@ bool QAccessible_IsActive(); void QAccessible_SetActive(bool active); void QAccessible_SetRootObject(QObject* object); void QAccessible_Cleanup(); +struct miqt_map /* tuple of int and int */ QAccessible_QAccessibleTextBoundaryHelper(QTextCursor* cursor, int boundaryType); void QAccessible_Delete(QAccessible* self); bool QAccessibleInterface_IsValid(const QAccessibleInterface* self); QObject* QAccessibleInterface_Object(const QAccessibleInterface* self); QWindow* QAccessibleInterface_Window(const QAccessibleInterface* self); +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleInterface_Relations(const QAccessibleInterface* self); QAccessibleInterface* QAccessibleInterface_FocusChild(const QAccessibleInterface* self); QAccessibleInterface* QAccessibleInterface_ChildAt(const QAccessibleInterface* self, int x, int y); QAccessibleInterface* QAccessibleInterface_Parent(const QAccessibleInterface* self); @@ -118,6 +123,7 @@ QAccessibleTableInterface* QAccessibleInterface_TableInterface(QAccessibleInterf QAccessibleTableCellInterface* QAccessibleInterface_TableCellInterface(QAccessibleInterface* self); void QAccessibleInterface_VirtualHook(QAccessibleInterface* self, int id, void* data); void* QAccessibleInterface_InterfaceCast(QAccessibleInterface* self, int param1); +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleInterface_Relations1(const QAccessibleInterface* self, int match); void QAccessibleTextInterface_Selection(const QAccessibleTextInterface* self, int selectionIndex, int* startOffset, int* endOffset); int QAccessibleTextInterface_SelectionCount(const QAccessibleTextInterface* self); @@ -153,8 +159,8 @@ void QAccessibleValueInterface_OperatorAssign(QAccessibleValueInterface* self, Q void QAccessibleValueInterface_Delete(QAccessibleValueInterface* self); bool QAccessibleTableCellInterface_IsSelected(const QAccessibleTableCellInterface* self); -struct miqt_array QAccessibleTableCellInterface_ColumnHeaderCells(const QAccessibleTableCellInterface* self); -struct miqt_array QAccessibleTableCellInterface_RowHeaderCells(const QAccessibleTableCellInterface* self); +struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableCellInterface_ColumnHeaderCells(const QAccessibleTableCellInterface* self); +struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableCellInterface_RowHeaderCells(const QAccessibleTableCellInterface* self); int QAccessibleTableCellInterface_ColumnIndex(const QAccessibleTableCellInterface* self); int QAccessibleTableCellInterface_RowIndex(const QAccessibleTableCellInterface* self); int QAccessibleTableCellInterface_ColumnExtent(const QAccessibleTableCellInterface* self); @@ -167,15 +173,15 @@ QAccessibleInterface* QAccessibleTableInterface_Caption(const QAccessibleTableIn QAccessibleInterface* QAccessibleTableInterface_Summary(const QAccessibleTableInterface* self); QAccessibleInterface* QAccessibleTableInterface_CellAt(const QAccessibleTableInterface* self, int row, int column); int QAccessibleTableInterface_SelectedCellCount(const QAccessibleTableInterface* self); -struct miqt_array QAccessibleTableInterface_SelectedCells(const QAccessibleTableInterface* self); +struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableInterface_SelectedCells(const QAccessibleTableInterface* self); struct miqt_string QAccessibleTableInterface_ColumnDescription(const QAccessibleTableInterface* self, int column); struct miqt_string QAccessibleTableInterface_RowDescription(const QAccessibleTableInterface* self, int row); int QAccessibleTableInterface_SelectedColumnCount(const QAccessibleTableInterface* self); int QAccessibleTableInterface_SelectedRowCount(const QAccessibleTableInterface* self); int QAccessibleTableInterface_ColumnCount(const QAccessibleTableInterface* self); int QAccessibleTableInterface_RowCount(const QAccessibleTableInterface* self); -struct miqt_array QAccessibleTableInterface_SelectedColumns(const QAccessibleTableInterface* self); -struct miqt_array QAccessibleTableInterface_SelectedRows(const QAccessibleTableInterface* self); +struct miqt_array /* of int */ QAccessibleTableInterface_SelectedColumns(const QAccessibleTableInterface* self); +struct miqt_array /* of int */ QAccessibleTableInterface_SelectedRows(const QAccessibleTableInterface* self); bool QAccessibleTableInterface_IsColumnSelected(const QAccessibleTableInterface* self, int column); bool QAccessibleTableInterface_IsRowSelected(const QAccessibleTableInterface* self, int row); bool QAccessibleTableInterface_SelectRow(QAccessibleTableInterface* self, int row); @@ -187,11 +193,11 @@ void QAccessibleTableInterface_Delete(QAccessibleTableInterface* self); struct miqt_string QAccessibleActionInterface_Tr(const char* sourceText); struct miqt_string QAccessibleActionInterface_TrUtf8(const char* sourceText); -struct miqt_array QAccessibleActionInterface_ActionNames(const QAccessibleActionInterface* self); +struct miqt_array /* of struct miqt_string */ QAccessibleActionInterface_ActionNames(const QAccessibleActionInterface* self); struct miqt_string QAccessibleActionInterface_LocalizedActionName(const QAccessibleActionInterface* self, struct miqt_string name); struct miqt_string QAccessibleActionInterface_LocalizedActionDescription(const QAccessibleActionInterface* self, struct miqt_string name); void QAccessibleActionInterface_DoAction(QAccessibleActionInterface* self, struct miqt_string actionName); -struct miqt_array QAccessibleActionInterface_KeyBindingsForAction(const QAccessibleActionInterface* self, struct miqt_string actionName); +struct miqt_array /* of struct miqt_string */ QAccessibleActionInterface_KeyBindingsForAction(const QAccessibleActionInterface* self, struct miqt_string actionName); struct miqt_string QAccessibleActionInterface_PressAction(); struct miqt_string QAccessibleActionInterface_IncreaseAction(); struct miqt_string QAccessibleActionInterface_DecreaseAction(); diff --git a/qt/gen_qaccessiblebridge.h b/qt/gen_qaccessiblebridge.h index 3ab461a0..599582c6 100644 --- a/qt/gen_qaccessiblebridge.h +++ b/qt/gen_qaccessiblebridge.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACCESSIBLEBRIDGE_H -#define GEN_QACCESSIBLEBRIDGE_H +#pragma once +#ifndef MIQT_QT_GEN_QACCESSIBLEBRIDGE_H +#define MIQT_QT_GEN_QACCESSIBLEBRIDGE_H #include #include diff --git a/qt/gen_qaccessibleobject.h b/qt/gen_qaccessibleobject.h index aa2bfa4d..37da67f8 100644 --- a/qt/gen_qaccessibleobject.h +++ b/qt/gen_qaccessibleobject.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACCESSIBLEOBJECT_H -#define GEN_QACCESSIBLEOBJECT_H +#pragma once +#ifndef MIQT_QT_GEN_QACCESSIBLEOBJECT_H +#define MIQT_QT_GEN_QACCESSIBLEOBJECT_H #include #include diff --git a/qt/gen_qaccessibleplugin.h b/qt/gen_qaccessibleplugin.h index 36644950..d189dfc2 100644 --- a/qt/gen_qaccessibleplugin.h +++ b/qt/gen_qaccessibleplugin.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACCESSIBLEPLUGIN_H -#define GEN_QACCESSIBLEPLUGIN_H +#pragma once +#ifndef MIQT_QT_GEN_QACCESSIBLEPLUGIN_H +#define MIQT_QT_GEN_QACCESSIBLEPLUGIN_H #include #include diff --git a/qt/gen_qaccessiblewidget.cpp b/qt/gen_qaccessiblewidget.cpp index 3714d335..6a630903 100644 --- a/qt/gen_qaccessiblewidget.cpp +++ b/qt/gen_qaccessiblewidget.cpp @@ -42,6 +42,30 @@ int QAccessibleWidget_IndexOfChild(const QAccessibleWidget* self, QAccessibleInt return self->indexOfChild(child); } +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleWidget_Relations(const QAccessibleWidget* self) { + QVector> _ret = self->relations(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of QAccessibleInterface* and int */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of QAccessibleInterface* and int */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair> _vv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + QAccessibleInterface** _vv_first_arr = static_cast(malloc(sizeof(QAccessibleInterface*))); + int* _vv_second_arr = static_cast(malloc(sizeof(int))); + _vv_first_arr[0] = _vv_ret.first; + QFlags _vv_second_ret = _vv_ret.second; + _vv_second_arr[0] = static_cast(_vv_second_ret); + struct miqt_map _vv_out; + _vv_out.len = 1; + _vv_out.keys = static_cast(_vv_first_arr); + _vv_out.values = static_cast(_vv_second_arr); + _arr[i] = _vv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + QAccessibleInterface* QAccessibleWidget_FocusChild(const QAccessibleWidget* self) { return self->focusChild(); } @@ -90,7 +114,7 @@ void* QAccessibleWidget_InterfaceCast(QAccessibleWidget* self, int t) { return self->interface_cast(static_cast(t)); } -struct miqt_array QAccessibleWidget_ActionNames(const QAccessibleWidget* self) { +struct miqt_array /* of struct miqt_string */ QAccessibleWidget_ActionNames(const QAccessibleWidget* self) { QStringList _ret = self->actionNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -115,7 +139,7 @@ void QAccessibleWidget_DoAction(QAccessibleWidget* self, struct miqt_string acti self->doAction(actionName_QString); } -struct miqt_array QAccessibleWidget_KeyBindingsForAction(const QAccessibleWidget* self, struct miqt_string actionName) { +struct miqt_array /* of struct miqt_string */ QAccessibleWidget_KeyBindingsForAction(const QAccessibleWidget* self, struct miqt_string actionName) { QString actionName_QString = QString::fromUtf8(actionName.data, actionName.len); QStringList _ret = self->keyBindingsForAction(actionName_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -136,3 +160,27 @@ struct miqt_array QAccessibleWidget_KeyBindingsForAction(const QAccessibleWidget return _out; } +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleWidget_Relations1(const QAccessibleWidget* self, int match) { + QVector> _ret = self->relations(static_cast(match)); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of QAccessibleInterface* and int */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of QAccessibleInterface* and int */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair> _vv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + QAccessibleInterface** _vv_first_arr = static_cast(malloc(sizeof(QAccessibleInterface*))); + int* _vv_second_arr = static_cast(malloc(sizeof(int))); + _vv_first_arr[0] = _vv_ret.first; + QFlags _vv_second_ret = _vv_ret.second; + _vv_second_arr[0] = static_cast(_vv_second_ret); + struct miqt_map _vv_out; + _vv_out.len = 1; + _vv_out.keys = static_cast(_vv_first_arr); + _vv_out.values = static_cast(_vv_second_arr); + _arr[i] = _vv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + diff --git a/qt/gen_qaccessiblewidget.go b/qt/gen_qaccessiblewidget.go index 4c334d20..fb84cd65 100644 --- a/qt/gen_qaccessiblewidget.go +++ b/qt/gen_qaccessiblewidget.go @@ -81,6 +81,31 @@ func (this *QAccessibleWidget) IndexOfChild(child *QAccessibleInterface) int { return (int)(C.QAccessibleWidget_IndexOfChild(this.h, child.cPointer())) } +func (this *QAccessibleWidget) Relations() []struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag +} { + var _ma C.struct_miqt_array = C.QAccessibleWidget_Relations(this.h) + _ret := make([]struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _vv_mm C.struct_miqt_map = _outCast[i] + _vv_First_CArray := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_vv_mm.keys)) + _vv_Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_vv_mm.values)) + _vv_entry_First := UnsafeNewQAccessibleInterface(unsafe.Pointer(_vv_First_CArray[0])) + _vv_entry_Second := (QAccessible__RelationFlag)(_vv_Second_CArray[0]) + + _ret[i] = struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }{First: _vv_entry_First, Second: _vv_entry_Second} + } + return _ret +} + func (this *QAccessibleWidget) FocusChild() *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleWidget_FocusChild(this.h))) } @@ -173,3 +198,28 @@ func (this *QAccessibleWidget) KeyBindingsForAction(actionName string) []string } return _ret } + +func (this *QAccessibleWidget) Relations1(match QAccessible__RelationFlag) []struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag +} { + var _ma C.struct_miqt_array = C.QAccessibleWidget_Relations1(this.h, (C.int)(match)) + _ret := make([]struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _vv_mm C.struct_miqt_map = _outCast[i] + _vv_First_CArray := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_vv_mm.keys)) + _vv_Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_vv_mm.values)) + _vv_entry_First := UnsafeNewQAccessibleInterface(unsafe.Pointer(_vv_First_CArray[0])) + _vv_entry_Second := (QAccessible__RelationFlag)(_vv_Second_CArray[0]) + + _ret[i] = struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }{First: _vv_entry_First, Second: _vv_entry_Second} + } + return _ret +} diff --git a/qt/gen_qaccessiblewidget.h b/qt/gen_qaccessiblewidget.h index f6b7b643..acb35fe9 100644 --- a/qt/gen_qaccessiblewidget.h +++ b/qt/gen_qaccessiblewidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACCESSIBLEWIDGET_H -#define GEN_QACCESSIBLEWIDGET_H +#pragma once +#ifndef MIQT_QT_GEN_QACCESSIBLEWIDGET_H +#define MIQT_QT_GEN_QACCESSIBLEWIDGET_H #include #include @@ -42,6 +43,7 @@ bool QAccessibleWidget_IsValid(const QAccessibleWidget* self); QWindow* QAccessibleWidget_Window(const QAccessibleWidget* self); int QAccessibleWidget_ChildCount(const QAccessibleWidget* self); int QAccessibleWidget_IndexOfChild(const QAccessibleWidget* self, QAccessibleInterface* child); +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleWidget_Relations(const QAccessibleWidget* self); QAccessibleInterface* QAccessibleWidget_FocusChild(const QAccessibleWidget* self); QRect* QAccessibleWidget_Rect(const QAccessibleWidget* self); QAccessibleInterface* QAccessibleWidget_Parent(const QAccessibleWidget* self); @@ -52,9 +54,10 @@ 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); +struct miqt_array /* of struct miqt_string */ 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); +struct miqt_array /* of struct miqt_string */ QAccessibleWidget_KeyBindingsForAction(const QAccessibleWidget* self, struct miqt_string actionName); +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleWidget_Relations1(const QAccessibleWidget* self, int match); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qaction.cpp b/qt/gen_qaction.cpp index f6f9573b..1a20247f 100644 --- a/qt/gen_qaction.cpp +++ b/qt/gen_qaction.cpp @@ -204,7 +204,7 @@ QKeySequence* QAction_Shortcut(const QAction* self) { return new QKeySequence(self->shortcut()); } -void QAction_SetShortcuts(QAction* self, struct miqt_array /* of QKeySequence* */ shortcuts) { +void QAction_SetShortcuts(QAction* self, struct miqt_array /* of QKeySequence* */ shortcuts) { QList shortcuts_QList; shortcuts_QList.reserve(shortcuts.len); QKeySequence** shortcuts_arr = static_cast(shortcuts.data); @@ -218,7 +218,7 @@ void QAction_SetShortcutsWithShortcuts(QAction* self, int shortcuts) { self->setShortcuts(static_cast(shortcuts)); } -struct miqt_array QAction_Shortcuts(const QAction* self) { +struct miqt_array /* of QKeySequence* */ QAction_Shortcuts(const QAction* self) { QList _ret = self->shortcuts(); // Convert QList<> from C++ memory to manually-managed C memory QKeySequence** _arr = static_cast(malloc(sizeof(QKeySequence*) * _ret.length())); @@ -321,7 +321,7 @@ QWidget* QAction_ParentWidget(const QAction* self) { return self->parentWidget(); } -struct miqt_array QAction_AssociatedWidgets(const QAction* self) { +struct miqt_array /* of QWidget* */ QAction_AssociatedWidgets(const QAction* self) { QList _ret = self->associatedWidgets(); // Convert QList<> from C++ memory to manually-managed C memory QWidget** _arr = static_cast(malloc(sizeof(QWidget*) * _ret.length())); @@ -334,7 +334,7 @@ struct miqt_array QAction_AssociatedWidgets(const QAction* self) { return _out; } -struct miqt_array QAction_AssociatedGraphicsWidgets(const QAction* self) { +struct miqt_array /* of QGraphicsWidget* */ QAction_AssociatedGraphicsWidgets(const QAction* self) { QList _ret = self->associatedGraphicsWidgets(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsWidget** _arr = static_cast(malloc(sizeof(QGraphicsWidget*) * _ret.length())); diff --git a/qt/gen_qaction.h b/qt/gen_qaction.h index c5d8b8c1..7c8690bd 100644 --- a/qt/gen_qaction.h +++ b/qt/gen_qaction.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACTION_H -#define GEN_QACTION_H +#pragma once +#ifndef MIQT_QT_GEN_QACTION_H +#define MIQT_QT_GEN_QACTION_H #include #include @@ -71,9 +72,9 @@ void QAction_SetSeparator(QAction* self, bool b); bool QAction_IsSeparator(const QAction* self); void QAction_SetShortcut(QAction* self, QKeySequence* shortcut); QKeySequence* QAction_Shortcut(const QAction* self); -void QAction_SetShortcuts(QAction* self, struct miqt_array /* of QKeySequence* */ shortcuts); +void QAction_SetShortcuts(QAction* self, struct miqt_array /* of QKeySequence* */ shortcuts); void QAction_SetShortcutsWithShortcuts(QAction* self, int shortcuts); -struct miqt_array QAction_Shortcuts(const QAction* self); +struct miqt_array /* of QKeySequence* */ QAction_Shortcuts(const QAction* self); void QAction_SetShortcutContext(QAction* self, int context); int QAction_ShortcutContext(const QAction* self); void QAction_SetAutoRepeat(QAction* self, bool autoRepeat); @@ -96,8 +97,8 @@ bool QAction_IsIconVisibleInMenu(const QAction* self); void QAction_SetShortcutVisibleInContextMenu(QAction* self, bool show); bool QAction_IsShortcutVisibleInContextMenu(const QAction* self); QWidget* QAction_ParentWidget(const QAction* self); -struct miqt_array QAction_AssociatedWidgets(const QAction* self); -struct miqt_array QAction_AssociatedGraphicsWidgets(const QAction* self); +struct miqt_array /* of QWidget* */ QAction_AssociatedWidgets(const QAction* self); +struct miqt_array /* of QGraphicsWidget* */ QAction_AssociatedGraphicsWidgets(const QAction* self); void QAction_Trigger(QAction* self); void QAction_Hover(QAction* self); void QAction_SetChecked(QAction* self, bool checked); diff --git a/qt/gen_qactiongroup.cpp b/qt/gen_qactiongroup.cpp index c01cb599..4d1d31f2 100644 --- a/qt/gen_qactiongroup.cpp +++ b/qt/gen_qactiongroup.cpp @@ -63,7 +63,7 @@ void QActionGroup_RemoveAction(QActionGroup* self, QAction* a) { self->removeAction(a); } -struct miqt_array QActionGroup_Actions(const QActionGroup* self) { +struct miqt_array /* of QAction* */ QActionGroup_Actions(const QActionGroup* self) { QList _ret = self->actions(); // Convert QList<> from C++ memory to manually-managed C memory QAction** _arr = static_cast(malloc(sizeof(QAction*) * _ret.length())); diff --git a/qt/gen_qactiongroup.h b/qt/gen_qactiongroup.h index 5aaaa3d3..7627bc38 100644 --- a/qt/gen_qactiongroup.h +++ b/qt/gen_qactiongroup.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACTIONGROUP_H -#define GEN_QACTIONGROUP_H +#pragma once +#ifndef MIQT_QT_GEN_QACTIONGROUP_H +#define MIQT_QT_GEN_QACTIONGROUP_H #include #include @@ -36,7 +37,7 @@ QAction* QActionGroup_AddAction(QActionGroup* self, QAction* a); QAction* QActionGroup_AddActionWithText(QActionGroup* self, struct miqt_string text); QAction* QActionGroup_AddAction2(QActionGroup* self, QIcon* icon, struct miqt_string text); void QActionGroup_RemoveAction(QActionGroup* self, QAction* a); -struct miqt_array QActionGroup_Actions(const QActionGroup* self); +struct miqt_array /* of QAction* */ QActionGroup_Actions(const QActionGroup* self); QAction* QActionGroup_CheckedAction(const QActionGroup* self); bool QActionGroup_IsExclusive(const QActionGroup* self); bool QActionGroup_IsEnabled(const QActionGroup* self); diff --git a/qt/gen_qanimationgroup.h b/qt/gen_qanimationgroup.h index a85e8398..a8a7cbac 100644 --- a/qt/gen_qanimationgroup.h +++ b/qt/gen_qanimationgroup.h @@ -1,5 +1,6 @@ -#ifndef GEN_QANIMATIONGROUP_H -#define GEN_QANIMATIONGROUP_H +#pragma once +#ifndef MIQT_QT_GEN_QANIMATIONGROUP_H +#define MIQT_QT_GEN_QANIMATIONGROUP_H #include #include diff --git a/qt/gen_qapplication.cpp b/qt/gen_qapplication.cpp index fb22923f..619bb727 100644 --- a/qt/gen_qapplication.cpp +++ b/qt/gen_qapplication.cpp @@ -118,7 +118,7 @@ QIcon* QApplication_WindowIcon() { return new QIcon(QApplication::windowIcon()); } -struct miqt_array QApplication_AllWidgets() { +struct miqt_array /* of QWidget* */ QApplication_AllWidgets() { QWidgetList _ret = QApplication::allWidgets(); // Convert QList<> from C++ memory to manually-managed C memory QWidget** _arr = static_cast(malloc(sizeof(QWidget*) * _ret.length())); @@ -131,7 +131,7 @@ struct miqt_array QApplication_AllWidgets() { return _out; } -struct miqt_array QApplication_TopLevelWidgets() { +struct miqt_array /* of QWidget* */ QApplication_TopLevelWidgets() { QWidgetList _ret = QApplication::topLevelWidgets(); // Convert QList<> from C++ memory to manually-managed C memory QWidget** _arr = static_cast(malloc(sizeof(QWidget*) * _ret.length())); diff --git a/qt/gen_qapplication.h b/qt/gen_qapplication.h index d089db34..b0b628bf 100644 --- a/qt/gen_qapplication.h +++ b/qt/gen_qapplication.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAPPLICATION_H -#define GEN_QAPPLICATION_H +#pragma once +#ifndef MIQT_QT_GEN_QAPPLICATION_H +#define MIQT_QT_GEN_QAPPLICATION_H #include #include @@ -64,8 +65,8 @@ void QApplication_SetFont(QFont* param1); QFontMetrics* QApplication_FontMetrics(); void QApplication_SetWindowIcon(QIcon* icon); QIcon* QApplication_WindowIcon(); -struct miqt_array QApplication_AllWidgets(); -struct miqt_array QApplication_TopLevelWidgets(); +struct miqt_array /* of QWidget* */ QApplication_AllWidgets(); +struct miqt_array /* of QWidget* */ QApplication_TopLevelWidgets(); QDesktopWidget* QApplication_Desktop(); QWidget* QApplication_ActivePopupWidget(); QWidget* QApplication_ActiveModalWidget(); diff --git a/qt/gen_qarraydata.h b/qt/gen_qarraydata.h index eff2c2f6..27b27173 100644 --- a/qt/gen_qarraydata.h +++ b/qt/gen_qarraydata.h @@ -1,5 +1,6 @@ -#ifndef GEN_QARRAYDATA_H -#define GEN_QARRAYDATA_H +#pragma once +#ifndef MIQT_QT_GEN_QARRAYDATA_H +#define MIQT_QT_GEN_QARRAYDATA_H #include #include diff --git a/qt/gen_qbackingstore.h b/qt/gen_qbackingstore.h index 40e5d832..d64c54af 100644 --- a/qt/gen_qbackingstore.h +++ b/qt/gen_qbackingstore.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBACKINGSTORE_H -#define GEN_QBACKINGSTORE_H +#pragma once +#ifndef MIQT_QT_GEN_QBACKINGSTORE_H +#define MIQT_QT_GEN_QBACKINGSTORE_H #include #include diff --git a/qt/gen_qbasictimer.h b/qt/gen_qbasictimer.h index 46b34564..aae4d065 100644 --- a/qt/gen_qbasictimer.h +++ b/qt/gen_qbasictimer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBASICTIMER_H -#define GEN_QBASICTIMER_H +#pragma once +#ifndef MIQT_QT_GEN_QBASICTIMER_H +#define MIQT_QT_GEN_QBASICTIMER_H #include #include diff --git a/qt/gen_qbitarray.h b/qt/gen_qbitarray.h index 5fbcc471..1c614b76 100644 --- a/qt/gen_qbitarray.h +++ b/qt/gen_qbitarray.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBITARRAY_H -#define GEN_QBITARRAY_H +#pragma once +#ifndef MIQT_QT_GEN_QBITARRAY_H +#define MIQT_QT_GEN_QBITARRAY_H #include #include diff --git a/qt/gen_qbitmap.h b/qt/gen_qbitmap.h index ce298d89..522bc822 100644 --- a/qt/gen_qbitmap.h +++ b/qt/gen_qbitmap.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBITMAP_H -#define GEN_QBITMAP_H +#pragma once +#ifndef MIQT_QT_GEN_QBITMAP_H +#define MIQT_QT_GEN_QBITMAP_H #include #include diff --git a/qt/gen_qboxlayout.h b/qt/gen_qboxlayout.h index 74820e92..23c74efa 100644 --- a/qt/gen_qboxlayout.h +++ b/qt/gen_qboxlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBOXLAYOUT_H -#define GEN_QBOXLAYOUT_H +#pragma once +#ifndef MIQT_QT_GEN_QBOXLAYOUT_H +#define MIQT_QT_GEN_QBOXLAYOUT_H #include #include diff --git a/qt/gen_qbrush.cpp b/qt/gen_qbrush.cpp index 2edbbea8..5cb7ff4c 100644 --- a/qt/gen_qbrush.cpp +++ b/qt/gen_qbrush.cpp @@ -6,6 +6,7 @@ #define WORKAROUND_INNER_CLASS_DEFINITION_QGradient__QGradientData #include #include +#include #include #include #include @@ -194,6 +195,44 @@ void QGradient_SetColorAt(QGradient* self, double pos, QColor* color) { self->setColorAt(static_cast(pos), *color); } +void QGradient_SetStops(QGradient* self, struct miqt_array /* of struct miqt_map tuple of double and QColor* */ stops) { + QGradientStops stops_QList; + stops_QList.reserve(stops.len); + struct miqt_map /* tuple of double and QColor* */ * stops_arr = static_cast(stops.data); + for(size_t i = 0; i < stops.len; ++i) { + QPair stops_arr_i_QPair; + double* stops_arr_i_first_arr = static_cast(stops_arr[i].keys); + QColor** stops_arr_i_second_arr = static_cast(stops_arr[i].values); + stops_arr_i_QPair.first = static_cast(stops_arr_i_first_arr[0]); + stops_arr_i_QPair.second = *(stops_arr_i_second_arr[0]); + stops_QList.push_back(stops_arr_i_QPair); + } + self->setStops(stops_QList); +} + +struct miqt_array /* of struct miqt_map tuple of double and QColor* */ QGradient_Stops(const QGradient* self) { + QGradientStops _ret = self->stops(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of double and QColor* */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of double and QColor* */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _vv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + double* _vv_first_arr = static_cast(malloc(sizeof(double))); + QColor** _vv_second_arr = static_cast(malloc(sizeof(QColor*))); + _vv_first_arr[0] = _vv_ret.first; + _vv_second_arr[0] = new QColor(_vv_ret.second); + struct miqt_map _vv_out; + _vv_out.len = 1; + _vv_out.keys = static_cast(_vv_first_arr); + _vv_out.values = static_cast(_vv_second_arr); + _arr[i] = _vv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + int QGradient_CoordinateMode(const QGradient* self) { QGradient::CoordinateMode _ret = self->coordinateMode(); return static_cast(_ret); diff --git a/qt/gen_qbrush.go b/qt/gen_qbrush.go index 5baef776..a8279336 100644 --- a/qt/gen_qbrush.go +++ b/qt/gen_qbrush.go @@ -540,6 +540,59 @@ func (this *QGradient) SetColorAt(pos float64, color *QColor) { C.QGradient_SetColorAt(this.h, (C.double)(pos), color.cPointer()) } +func (this *QGradient) SetStops(stops []struct { + First float64 + Second QColor +}) { + stops_CArray := (*[0xffff]C.struct_miqt_map)(C.malloc(C.size_t(8 * len(stops)))) + defer C.free(unsafe.Pointer(stops_CArray)) + for i := range stops { + stops_i_First_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(stops_i_First_CArray)) + stops_i_Second_CArray := (*[0xffff]*C.QColor)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(stops_i_Second_CArray)) + stops_i_First_CArray[0] = (C.double)(stops[i].First) + stops_i_Second_CArray[0] = stops[i].Second.cPointer() + stops_i_pair := C.struct_miqt_map{ + len: 1, + keys: unsafe.Pointer(stops_i_First_CArray), + values: unsafe.Pointer(stops_i_Second_CArray), + } + stops_CArray[i] = stops_i_pair + } + stops_ma := C.struct_miqt_array{len: C.size_t(len(stops)), data: unsafe.Pointer(stops_CArray)} + C.QGradient_SetStops(this.h, stops_ma) +} + +func (this *QGradient) Stops() []struct { + First float64 + Second QColor +} { + var _ma C.struct_miqt_array = C.QGradient_Stops(this.h) + _ret := make([]struct { + First float64 + Second QColor + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _vv_mm C.struct_miqt_map = _outCast[i] + _vv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_vv_mm.keys)) + _vv_Second_CArray := (*[0xffff]*C.QColor)(unsafe.Pointer(_vv_mm.values)) + _vv_entry_First := (float64)(_vv_First_CArray[0]) + + _vv_second_ret := _vv_Second_CArray[0] + _vv_second_goptr := newQColor(_vv_second_ret) + _vv_second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _vv_entry_Second := *_vv_second_goptr + + _ret[i] = struct { + First float64 + Second QColor + }{First: _vv_entry_First, Second: _vv_entry_Second} + } + return _ret +} + func (this *QGradient) CoordinateMode() QGradient__CoordinateMode { return (QGradient__CoordinateMode)(C.QGradient_CoordinateMode(this.h)) } diff --git a/qt/gen_qbrush.h b/qt/gen_qbrush.h index cba6b2de..8a39597f 100644 --- a/qt/gen_qbrush.h +++ b/qt/gen_qbrush.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBRUSH_H -#define GEN_QBRUSH_H +#pragma once +#ifndef MIQT_QT_GEN_QBRUSH_H +#define MIQT_QT_GEN_QBRUSH_H #include #include @@ -92,6 +93,8 @@ int QGradient_Type(const QGradient* self); void QGradient_SetSpread(QGradient* self, int spread); int QGradient_Spread(const QGradient* self); void QGradient_SetColorAt(QGradient* self, double pos, QColor* color); +void QGradient_SetStops(QGradient* self, struct miqt_array /* of struct miqt_map tuple of double and QColor* */ stops); +struct miqt_array /* of struct miqt_map tuple of double and QColor* */ QGradient_Stops(const QGradient* self); int QGradient_CoordinateMode(const QGradient* self); void QGradient_SetCoordinateMode(QGradient* self, int mode); int QGradient_InterpolationMode(const QGradient* self); diff --git a/qt/gen_qbuffer.h b/qt/gen_qbuffer.h index 5f4a84c1..2ddfe6ab 100644 --- a/qt/gen_qbuffer.h +++ b/qt/gen_qbuffer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBUFFER_H -#define GEN_QBUFFER_H +#pragma once +#ifndef MIQT_QT_GEN_QBUFFER_H +#define MIQT_QT_GEN_QBUFFER_H #include #include diff --git a/qt/gen_qbuttongroup.cpp b/qt/gen_qbuttongroup.cpp index 99f07520..3ec2f8bd 100644 --- a/qt/gen_qbuttongroup.cpp +++ b/qt/gen_qbuttongroup.cpp @@ -64,7 +64,7 @@ void QButtonGroup_RemoveButton(QButtonGroup* self, QAbstractButton* param1) { self->removeButton(param1); } -struct miqt_array QButtonGroup_Buttons(const QButtonGroup* self) { +struct miqt_array /* of QAbstractButton* */ QButtonGroup_Buttons(const QButtonGroup* self) { QList _ret = self->buttons(); // Convert QList<> from C++ memory to manually-managed C memory QAbstractButton** _arr = static_cast(malloc(sizeof(QAbstractButton*) * _ret.length())); diff --git a/qt/gen_qbuttongroup.h b/qt/gen_qbuttongroup.h index b4a27c95..3c720624 100644 --- a/qt/gen_qbuttongroup.h +++ b/qt/gen_qbuttongroup.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBUTTONGROUP_H -#define GEN_QBUTTONGROUP_H +#pragma once +#ifndef MIQT_QT_GEN_QBUTTONGROUP_H +#define MIQT_QT_GEN_QBUTTONGROUP_H #include #include @@ -35,7 +36,7 @@ void QButtonGroup_SetExclusive(QButtonGroup* self, bool exclusive); bool QButtonGroup_Exclusive(const QButtonGroup* self); void QButtonGroup_AddButton(QButtonGroup* self, QAbstractButton* param1); void QButtonGroup_RemoveButton(QButtonGroup* self, QAbstractButton* param1); -struct miqt_array QButtonGroup_Buttons(const QButtonGroup* self); +struct miqt_array /* of QAbstractButton* */ QButtonGroup_Buttons(const QButtonGroup* self); QAbstractButton* QButtonGroup_CheckedButton(const QButtonGroup* self); QAbstractButton* QButtonGroup_Button(const QButtonGroup* self, int id); void QButtonGroup_SetId(QButtonGroup* self, QAbstractButton* button, int id); diff --git a/qt/gen_qbytearraymatcher.h b/qt/gen_qbytearraymatcher.h index b66b16c7..68928f33 100644 --- a/qt/gen_qbytearraymatcher.h +++ b/qt/gen_qbytearraymatcher.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBYTEARRAYMATCHER_H -#define GEN_QBYTEARRAYMATCHER_H +#pragma once +#ifndef MIQT_QT_GEN_QBYTEARRAYMATCHER_H +#define MIQT_QT_GEN_QBYTEARRAYMATCHER_H #include #include diff --git a/qt/gen_qcalendar.cpp b/qt/gen_qcalendar.cpp index 38a5828d..fff3bb48 100644 --- a/qt/gen_qcalendar.cpp +++ b/qt/gen_qcalendar.cpp @@ -149,7 +149,7 @@ struct miqt_string QCalendar_StandaloneWeekDayName(const QCalendar* self, QLocal return _ms; } -struct miqt_array QCalendar_AvailableCalendars() { +struct miqt_array /* of struct miqt_string */ QCalendar_AvailableCalendars() { QStringList _ret = QCalendar::availableCalendars(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qcalendar.h b/qt/gen_qcalendar.h index d57fa991..83c4e86d 100644 --- a/qt/gen_qcalendar.h +++ b/qt/gen_qcalendar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCALENDAR_H -#define GEN_QCALENDAR_H +#pragma once +#ifndef MIQT_QT_GEN_QCALENDAR_H +#define MIQT_QT_GEN_QCALENDAR_H #include #include @@ -55,7 +56,7 @@ struct miqt_string QCalendar_MonthName(const QCalendar* self, QLocale* locale, i struct miqt_string QCalendar_StandaloneMonthName(const QCalendar* self, QLocale* locale, int month); struct miqt_string QCalendar_WeekDayName(const QCalendar* self, QLocale* locale, int day); struct miqt_string QCalendar_StandaloneWeekDayName(const QCalendar* self, QLocale* locale, int day); -struct miqt_array QCalendar_AvailableCalendars(); +struct miqt_array /* of struct miqt_string */ QCalendar_AvailableCalendars(); int QCalendar_DaysInMonth2(const QCalendar* self, int month, int year); struct miqt_string QCalendar_MonthName3(const QCalendar* self, QLocale* locale, int month, int year); struct miqt_string QCalendar_MonthName4(const QCalendar* self, QLocale* locale, int month, int year, int format); diff --git a/qt/gen_qcalendarwidget.cpp b/qt/gen_qcalendarwidget.cpp index 0a901a64..3a91e67e 100644 --- a/qt/gen_qcalendarwidget.cpp +++ b/qt/gen_qcalendarwidget.cpp @@ -155,7 +155,7 @@ void QCalendarWidget_SetWeekdayTextFormat(QCalendarWidget* self, int dayOfWeek, self->setWeekdayTextFormat(static_cast(dayOfWeek), *format); } -struct miqt_map QCalendarWidget_DateTextFormat(const QCalendarWidget* self) { +struct miqt_map /* of QDate* to QTextCharFormat* */ QCalendarWidget_DateTextFormat(const QCalendarWidget* self) { QMap _ret = self->dateTextFormat(); // Convert QMap<> from C++ memory to manually-managed C memory QDate** _karr = static_cast(malloc(sizeof(QDate*) * _ret.size())); diff --git a/qt/gen_qcalendarwidget.h b/qt/gen_qcalendarwidget.h index 7b2f4d8d..c5d8126b 100644 --- a/qt/gen_qcalendarwidget.h +++ b/qt/gen_qcalendarwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCALENDARWIDGET_H -#define GEN_QCALENDARWIDGET_H +#pragma once +#ifndef MIQT_QT_GEN_QCALENDARWIDGET_H +#define MIQT_QT_GEN_QCALENDARWIDGET_H #include #include @@ -62,7 +63,7 @@ QTextCharFormat* QCalendarWidget_HeaderTextFormat(const QCalendarWidget* self); void QCalendarWidget_SetHeaderTextFormat(QCalendarWidget* self, QTextCharFormat* format); QTextCharFormat* QCalendarWidget_WeekdayTextFormat(const QCalendarWidget* self, int dayOfWeek); void QCalendarWidget_SetWeekdayTextFormat(QCalendarWidget* self, int dayOfWeek, QTextCharFormat* format); -struct miqt_map QCalendarWidget_DateTextFormat(const QCalendarWidget* self); +struct miqt_map /* of QDate* to QTextCharFormat* */ QCalendarWidget_DateTextFormat(const QCalendarWidget* self); QTextCharFormat* QCalendarWidget_DateTextFormatWithDate(const QCalendarWidget* self, QDate* date); void QCalendarWidget_SetDateTextFormat(QCalendarWidget* self, QDate* date, QTextCharFormat* format); bool QCalendarWidget_IsDateEditEnabled(const QCalendarWidget* self); diff --git a/qt/gen_qchar.h b/qt/gen_qchar.h index 14e05477..89fde30f 100644 --- a/qt/gen_qchar.h +++ b/qt/gen_qchar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCHAR_H -#define GEN_QCHAR_H +#pragma once +#ifndef MIQT_QT_GEN_QCHAR_H +#define MIQT_QT_GEN_QCHAR_H #include #include diff --git a/qt/gen_qcheckbox.h b/qt/gen_qcheckbox.h index 9638f12d..e497622d 100644 --- a/qt/gen_qcheckbox.h +++ b/qt/gen_qcheckbox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCHECKBOX_H -#define GEN_QCHECKBOX_H +#pragma once +#ifndef MIQT_QT_GEN_QCHECKBOX_H +#define MIQT_QT_GEN_QCHECKBOX_H #include #include diff --git a/qt/gen_qclipboard.h b/qt/gen_qclipboard.h index cfe70e21..28e0b49f 100644 --- a/qt/gen_qclipboard.h +++ b/qt/gen_qclipboard.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCLIPBOARD_H -#define GEN_QCLIPBOARD_H +#pragma once +#ifndef MIQT_QT_GEN_QCLIPBOARD_H +#define MIQT_QT_GEN_QCLIPBOARD_H #include #include diff --git a/qt/gen_qcollator.h b/qt/gen_qcollator.h index 6d9f845a..a5401369 100644 --- a/qt/gen_qcollator.h +++ b/qt/gen_qcollator.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOLLATOR_H -#define GEN_QCOLLATOR_H +#pragma once +#ifndef MIQT_QT_GEN_QCOLLATOR_H +#define MIQT_QT_GEN_QCOLLATOR_H #include #include diff --git a/qt/gen_qcolor.cpp b/qt/gen_qcolor.cpp index 59730269..6cbdf442 100644 --- a/qt/gen_qcolor.cpp +++ b/qt/gen_qcolor.cpp @@ -96,7 +96,7 @@ void QColor_SetNamedColor(QColor* self, struct miqt_string name) { self->setNamedColor(name_QString); } -struct miqt_array QColor_ColorNames() { +struct miqt_array /* of struct miqt_string */ QColor_ColorNames() { QStringList _ret = QColor::colorNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qcolor.h b/qt/gen_qcolor.h index ef70bea4..630f3b71 100644 --- a/qt/gen_qcolor.h +++ b/qt/gen_qcolor.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOLOR_H -#define GEN_QCOLOR_H +#pragma once +#ifndef MIQT_QT_GEN_QCOLOR_H +#define MIQT_QT_GEN_QCOLOR_H #include #include @@ -39,7 +40,7 @@ bool QColor_IsValid(const QColor* self); struct miqt_string QColor_Name(const QColor* self); struct miqt_string QColor_NameWithFormat(const QColor* self, int format); void QColor_SetNamedColor(QColor* self, struct miqt_string name); -struct miqt_array QColor_ColorNames(); +struct miqt_array /* of struct miqt_string */ QColor_ColorNames(); int QColor_Spec(const QColor* self); int QColor_Alpha(const QColor* self); void QColor_SetAlpha(QColor* self, int alpha); diff --git a/qt/gen_qcolordialog.h b/qt/gen_qcolordialog.h index 8b8380d9..349105d4 100644 --- a/qt/gen_qcolordialog.h +++ b/qt/gen_qcolordialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOLORDIALOG_H -#define GEN_QCOLORDIALOG_H +#pragma once +#ifndef MIQT_QT_GEN_QCOLORDIALOG_H +#define MIQT_QT_GEN_QCOLORDIALOG_H #include #include diff --git a/qt/gen_qcolormap.cpp b/qt/gen_qcolormap.cpp index cd0435c0..02268eb8 100644 --- a/qt/gen_qcolormap.cpp +++ b/qt/gen_qcolormap.cpp @@ -47,7 +47,7 @@ QColor* QColormap_ColorAt(const QColormap* self, unsigned int pixel) { return new QColor(self->colorAt(static_cast(pixel))); } -struct miqt_array QColormap_Colormap(const QColormap* self) { +struct miqt_array /* of QColor* */ QColormap_Colormap(const QColormap* self) { const QVector _ret = self->colormap(); // Convert QList<> from C++ memory to manually-managed C memory QColor** _arr = static_cast(malloc(sizeof(QColor*) * _ret.length())); diff --git a/qt/gen_qcolormap.h b/qt/gen_qcolormap.h index 980e81d9..6ac28e03 100644 --- a/qt/gen_qcolormap.h +++ b/qt/gen_qcolormap.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOLORMAP_H -#define GEN_QCOLORMAP_H +#pragma once +#ifndef MIQT_QT_GEN_QCOLORMAP_H +#define MIQT_QT_GEN_QCOLORMAP_H #include #include @@ -31,7 +32,7 @@ int QColormap_Depth(const QColormap* self); int QColormap_Size(const QColormap* self); unsigned int QColormap_Pixel(const QColormap* self, QColor* color); QColor* QColormap_ColorAt(const QColormap* self, unsigned int pixel); -struct miqt_array QColormap_Colormap(const QColormap* self); +struct miqt_array /* of QColor* */ QColormap_Colormap(const QColormap* self); QColormap* QColormap_Instance1(int screen); void QColormap_Delete(QColormap* self); diff --git a/qt/gen_qcolorspace.h b/qt/gen_qcolorspace.h index 7faf24c6..073e02f6 100644 --- a/qt/gen_qcolorspace.h +++ b/qt/gen_qcolorspace.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOLORSPACE_H -#define GEN_QCOLORSPACE_H +#pragma once +#ifndef MIQT_QT_GEN_QCOLORSPACE_H +#define MIQT_QT_GEN_QCOLORSPACE_H #include #include diff --git a/qt/gen_qcolortransform.h b/qt/gen_qcolortransform.h index 2a3446f9..8c609332 100644 --- a/qt/gen_qcolortransform.h +++ b/qt/gen_qcolortransform.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOLORTRANSFORM_H -#define GEN_QCOLORTRANSFORM_H +#pragma once +#ifndef MIQT_QT_GEN_QCOLORTRANSFORM_H +#define MIQT_QT_GEN_QCOLORTRANSFORM_H #include #include diff --git a/qt/gen_qcolumnview.cpp b/qt/gen_qcolumnview.cpp index 925a829f..f93ba2f4 100644 --- a/qt/gen_qcolumnview.cpp +++ b/qt/gen_qcolumnview.cpp @@ -114,7 +114,7 @@ void QColumnView_SetPreviewWidget(QColumnView* self, QWidget* widget) { self->setPreviewWidget(widget); } -void QColumnView_SetColumnWidths(QColumnView* self, struct miqt_array /* of int */ list) { +void QColumnView_SetColumnWidths(QColumnView* self, struct miqt_array /* of int */ list) { QList list_QList; list_QList.reserve(list.len); int* list_arr = static_cast(list.data); @@ -124,7 +124,7 @@ void QColumnView_SetColumnWidths(QColumnView* self, struct miqt_array /* of int self->setColumnWidths(list_QList); } -struct miqt_array QColumnView_ColumnWidths(const QColumnView* self) { +struct miqt_array /* of int */ QColumnView_ColumnWidths(const QColumnView* self) { QList _ret = self->columnWidths(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt/gen_qcolumnview.h b/qt/gen_qcolumnview.h index 08aa0f22..4ddea4f3 100644 --- a/qt/gen_qcolumnview.h +++ b/qt/gen_qcolumnview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOLUMNVIEW_H -#define GEN_QCOLUMNVIEW_H +#pragma once +#ifndef MIQT_QT_GEN_QCOLUMNVIEW_H +#define MIQT_QT_GEN_QCOLUMNVIEW_H #include #include @@ -55,8 +56,8 @@ void QColumnView_SetResizeGripsVisible(QColumnView* self, bool visible); bool QColumnView_ResizeGripsVisible(const QColumnView* self); QWidget* QColumnView_PreviewWidget(const QColumnView* self); void QColumnView_SetPreviewWidget(QColumnView* self, QWidget* widget); -void QColumnView_SetColumnWidths(QColumnView* self, struct miqt_array /* of int */ list); -struct miqt_array QColumnView_ColumnWidths(const QColumnView* self); +void QColumnView_SetColumnWidths(QColumnView* self, struct miqt_array /* of int */ list); +struct miqt_array /* of int */ QColumnView_ColumnWidths(const QColumnView* self); struct miqt_string QColumnView_Tr2(const char* s, const char* c); struct miqt_string QColumnView_Tr3(const char* s, const char* c, int n); struct miqt_string QColumnView_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qcombobox.cpp b/qt/gen_qcombobox.cpp index 6417ca58..8772dece 100644 --- a/qt/gen_qcombobox.cpp +++ b/qt/gen_qcombobox.cpp @@ -282,7 +282,7 @@ void QComboBox_AddItem2(QComboBox* self, QIcon* icon, struct miqt_string text) { self->addItem(*icon, text_QString); } -void QComboBox_AddItems(QComboBox* self, struct miqt_array /* of struct miqt_string */ texts) { +void QComboBox_AddItems(QComboBox* self, struct miqt_array /* of struct miqt_string */ texts) { QStringList texts_QList; texts_QList.reserve(texts.len); struct miqt_string* texts_arr = static_cast(texts.data); @@ -303,7 +303,7 @@ void QComboBox_InsertItem2(QComboBox* self, int index, QIcon* icon, struct miqt_ self->insertItem(static_cast(index), *icon, text_QString); } -void QComboBox_InsertItems(QComboBox* self, int index, struct miqt_array /* of struct miqt_string */ texts) { +void QComboBox_InsertItems(QComboBox* self, int index, struct miqt_array /* of struct miqt_string */ texts) { QStringList texts_QList; texts_QList.reserve(texts.len); struct miqt_string* texts_arr = static_cast(texts.data); diff --git a/qt/gen_qcombobox.h b/qt/gen_qcombobox.h index e682f042..6fd4e6ad 100644 --- a/qt/gen_qcombobox.h +++ b/qt/gen_qcombobox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOMBOBOX_H -#define GEN_QCOMBOBOX_H +#pragma once +#ifndef MIQT_QT_GEN_QCOMBOBOX_H +#define MIQT_QT_GEN_QCOMBOBOX_H #include #include @@ -100,10 +101,10 @@ QIcon* QComboBox_ItemIcon(const QComboBox* self, int index); QVariant* QComboBox_ItemData(const QComboBox* self, int index); void QComboBox_AddItem(QComboBox* self, struct miqt_string text); void QComboBox_AddItem2(QComboBox* self, QIcon* icon, struct miqt_string text); -void QComboBox_AddItems(QComboBox* self, struct miqt_array /* of struct miqt_string */ texts); +void QComboBox_AddItems(QComboBox* self, struct miqt_array /* of struct miqt_string */ texts); void QComboBox_InsertItem(QComboBox* self, int index, struct miqt_string text); void QComboBox_InsertItem2(QComboBox* self, int index, QIcon* icon, struct miqt_string text); -void QComboBox_InsertItems(QComboBox* self, int index, struct miqt_array /* of struct miqt_string */ texts); +void QComboBox_InsertItems(QComboBox* self, int index, struct miqt_array /* of struct miqt_string */ texts); void QComboBox_InsertSeparator(QComboBox* self, int index); void QComboBox_RemoveItem(QComboBox* self, int index); void QComboBox_SetItemText(QComboBox* self, int index, struct miqt_string text); diff --git a/qt/gen_qcommandlineoption.cpp b/qt/gen_qcommandlineoption.cpp index 9043b011..fd4e2fcf 100644 --- a/qt/gen_qcommandlineoption.cpp +++ b/qt/gen_qcommandlineoption.cpp @@ -12,7 +12,7 @@ QCommandLineOption* QCommandLineOption_new(struct miqt_string name) { return new QCommandLineOption(name_QString); } -QCommandLineOption* QCommandLineOption_new2(struct miqt_array /* of struct miqt_string */ names) { +QCommandLineOption* QCommandLineOption_new2(struct miqt_array /* of struct miqt_string */ names) { QStringList names_QList; names_QList.reserve(names.len); struct miqt_string* names_arr = static_cast(names.data); @@ -29,7 +29,7 @@ QCommandLineOption* QCommandLineOption_new3(struct miqt_string name, struct miqt return new QCommandLineOption(name_QString, description_QString); } -QCommandLineOption* QCommandLineOption_new4(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description) { +QCommandLineOption* QCommandLineOption_new4(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description) { QStringList names_QList; names_QList.reserve(names.len); struct miqt_string* names_arr = static_cast(names.data); @@ -60,7 +60,7 @@ QCommandLineOption* QCommandLineOption_new7(struct miqt_string name, struct miqt return new QCommandLineOption(name_QString, description_QString, valueName_QString, defaultValue_QString); } -QCommandLineOption* QCommandLineOption_new8(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName) { +QCommandLineOption* QCommandLineOption_new8(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName) { QStringList names_QList; names_QList.reserve(names.len); struct miqt_string* names_arr = static_cast(names.data); @@ -73,7 +73,7 @@ QCommandLineOption* QCommandLineOption_new8(struct miqt_array /* of struct miqt_ return new QCommandLineOption(names_QList, description_QString, valueName_QString); } -QCommandLineOption* QCommandLineOption_new9(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName, struct miqt_string defaultValue) { +QCommandLineOption* QCommandLineOption_new9(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName, struct miqt_string defaultValue) { QStringList names_QList; names_QList.reserve(names.len); struct miqt_string* names_arr = static_cast(names.data); @@ -95,7 +95,7 @@ void QCommandLineOption_Swap(QCommandLineOption* self, QCommandLineOption* other self->swap(*other); } -struct miqt_array QCommandLineOption_Names(const QCommandLineOption* self) { +struct miqt_array /* of struct miqt_string */ QCommandLineOption_Names(const QCommandLineOption* self) { QStringList _ret = self->names(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -152,7 +152,7 @@ void QCommandLineOption_SetDefaultValue(QCommandLineOption* self, struct miqt_st self->setDefaultValue(defaultValue_QString); } -void QCommandLineOption_SetDefaultValues(QCommandLineOption* self, struct miqt_array /* of struct miqt_string */ defaultValues) { +void QCommandLineOption_SetDefaultValues(QCommandLineOption* self, struct miqt_array /* of struct miqt_string */ defaultValues) { QStringList defaultValues_QList; defaultValues_QList.reserve(defaultValues.len); struct miqt_string* defaultValues_arr = static_cast(defaultValues.data); @@ -163,7 +163,7 @@ void QCommandLineOption_SetDefaultValues(QCommandLineOption* self, struct miqt_a self->setDefaultValues(defaultValues_QList); } -struct miqt_array QCommandLineOption_DefaultValues(const QCommandLineOption* self) { +struct miqt_array /* of struct miqt_string */ QCommandLineOption_DefaultValues(const QCommandLineOption* self) { QStringList _ret = self->defaultValues(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qcommandlineoption.h b/qt/gen_qcommandlineoption.h index f4f5047d..9ac919d7 100644 --- a/qt/gen_qcommandlineoption.h +++ b/qt/gen_qcommandlineoption.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOMMANDLINEOPTION_H -#define GEN_QCOMMANDLINEOPTION_H +#pragma once +#ifndef MIQT_QT_GEN_QCOMMANDLINEOPTION_H +#define MIQT_QT_GEN_QCOMMANDLINEOPTION_H #include #include @@ -20,24 +21,24 @@ typedef struct QCommandLineOption QCommandLineOption; #endif QCommandLineOption* QCommandLineOption_new(struct miqt_string name); -QCommandLineOption* QCommandLineOption_new2(struct miqt_array /* of struct miqt_string */ names); +QCommandLineOption* QCommandLineOption_new2(struct miqt_array /* of struct miqt_string */ names); QCommandLineOption* QCommandLineOption_new3(struct miqt_string name, struct miqt_string description); -QCommandLineOption* QCommandLineOption_new4(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description); +QCommandLineOption* QCommandLineOption_new4(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description); QCommandLineOption* QCommandLineOption_new5(QCommandLineOption* other); QCommandLineOption* QCommandLineOption_new6(struct miqt_string name, struct miqt_string description, struct miqt_string valueName); QCommandLineOption* QCommandLineOption_new7(struct miqt_string name, struct miqt_string description, struct miqt_string valueName, struct miqt_string defaultValue); -QCommandLineOption* QCommandLineOption_new8(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName); -QCommandLineOption* QCommandLineOption_new9(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName, struct miqt_string defaultValue); +QCommandLineOption* QCommandLineOption_new8(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName); +QCommandLineOption* QCommandLineOption_new9(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName, struct miqt_string defaultValue); void QCommandLineOption_OperatorAssign(QCommandLineOption* self, QCommandLineOption* other); void QCommandLineOption_Swap(QCommandLineOption* self, QCommandLineOption* other); -struct miqt_array QCommandLineOption_Names(const QCommandLineOption* self); +struct miqt_array /* of struct miqt_string */ QCommandLineOption_Names(const QCommandLineOption* self); void QCommandLineOption_SetValueName(QCommandLineOption* self, struct miqt_string name); struct miqt_string QCommandLineOption_ValueName(const QCommandLineOption* self); void QCommandLineOption_SetDescription(QCommandLineOption* self, struct miqt_string description); struct miqt_string QCommandLineOption_Description(const QCommandLineOption* self); void QCommandLineOption_SetDefaultValue(QCommandLineOption* self, struct miqt_string defaultValue); -void QCommandLineOption_SetDefaultValues(QCommandLineOption* self, struct miqt_array /* of struct miqt_string */ defaultValues); -struct miqt_array QCommandLineOption_DefaultValues(const QCommandLineOption* self); +void QCommandLineOption_SetDefaultValues(QCommandLineOption* self, struct miqt_array /* of struct miqt_string */ defaultValues); +struct miqt_array /* of struct miqt_string */ QCommandLineOption_DefaultValues(const QCommandLineOption* self); int QCommandLineOption_Flags(const QCommandLineOption* self); void QCommandLineOption_SetFlags(QCommandLineOption* self, int aflags); void QCommandLineOption_SetHidden(QCommandLineOption* self, bool hidden); diff --git a/qt/gen_qcommandlineparser.cpp b/qt/gen_qcommandlineparser.cpp index 1d204c39..1c8a6968 100644 --- a/qt/gen_qcommandlineparser.cpp +++ b/qt/gen_qcommandlineparser.cpp @@ -47,7 +47,7 @@ bool QCommandLineParser_AddOption(QCommandLineParser* self, QCommandLineOption* return self->addOption(*commandLineOption); } -bool QCommandLineParser_AddOptions(QCommandLineParser* self, struct miqt_array /* of QCommandLineOption* */ options) { +bool QCommandLineParser_AddOptions(QCommandLineParser* self, struct miqt_array /* of QCommandLineOption* */ options) { QList options_QList; options_QList.reserve(options.len); QCommandLineOption** options_arr = static_cast(options.data); @@ -91,7 +91,7 @@ void QCommandLineParser_ClearPositionalArguments(QCommandLineParser* self) { self->clearPositionalArguments(); } -void QCommandLineParser_Process(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments) { +void QCommandLineParser_Process(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments) { QStringList arguments_QList; arguments_QList.reserve(arguments.len); struct miqt_string* arguments_arr = static_cast(arguments.data); @@ -106,7 +106,7 @@ void QCommandLineParser_ProcessWithApp(QCommandLineParser* self, QCoreApplicatio self->process(*app); } -bool QCommandLineParser_Parse(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments) { +bool QCommandLineParser_Parse(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments) { QStringList arguments_QList; arguments_QList.reserve(arguments.len); struct miqt_string* arguments_arr = static_cast(arguments.data); @@ -145,7 +145,7 @@ struct miqt_string QCommandLineParser_Value(const QCommandLineParser* self, stru return _ms; } -struct miqt_array QCommandLineParser_Values(const QCommandLineParser* self, struct miqt_string name) { +struct miqt_array /* of struct miqt_string */ QCommandLineParser_Values(const QCommandLineParser* self, struct miqt_string name) { QString name_QString = QString::fromUtf8(name.data, name.len); QStringList _ret = self->values(name_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -181,7 +181,7 @@ struct miqt_string QCommandLineParser_ValueWithOption(const QCommandLineParser* return _ms; } -struct miqt_array QCommandLineParser_ValuesWithOption(const QCommandLineParser* self, QCommandLineOption* option) { +struct miqt_array /* of struct miqt_string */ QCommandLineParser_ValuesWithOption(const QCommandLineParser* self, QCommandLineOption* option) { QStringList _ret = self->values(*option); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -201,7 +201,7 @@ struct miqt_array QCommandLineParser_ValuesWithOption(const QCommandLineParser* return _out; } -struct miqt_array QCommandLineParser_PositionalArguments(const QCommandLineParser* self) { +struct miqt_array /* of struct miqt_string */ QCommandLineParser_PositionalArguments(const QCommandLineParser* self) { QStringList _ret = self->positionalArguments(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -221,7 +221,7 @@ struct miqt_array QCommandLineParser_PositionalArguments(const QCommandLineParse return _out; } -struct miqt_array QCommandLineParser_OptionNames(const QCommandLineParser* self) { +struct miqt_array /* of struct miqt_string */ QCommandLineParser_OptionNames(const QCommandLineParser* self) { QStringList _ret = self->optionNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -241,7 +241,7 @@ struct miqt_array QCommandLineParser_OptionNames(const QCommandLineParser* self) return _out; } -struct miqt_array QCommandLineParser_UnknownOptionNames(const QCommandLineParser* self) { +struct miqt_array /* of struct miqt_string */ QCommandLineParser_UnknownOptionNames(const QCommandLineParser* self) { QStringList _ret = self->unknownOptionNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qcommandlineparser.h b/qt/gen_qcommandlineparser.h index 0f86e3d7..67c8b4ae 100644 --- a/qt/gen_qcommandlineparser.h +++ b/qt/gen_qcommandlineparser.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOMMANDLINEPARSER_H -#define GEN_QCOMMANDLINEPARSER_H +#pragma once +#ifndef MIQT_QT_GEN_QCOMMANDLINEPARSER_H +#define MIQT_QT_GEN_QCOMMANDLINEPARSER_H #include #include @@ -29,26 +30,26 @@ struct miqt_string QCommandLineParser_TrUtf8(const char* sourceText); void QCommandLineParser_SetSingleDashWordOptionMode(QCommandLineParser* self, int parsingMode); void QCommandLineParser_SetOptionsAfterPositionalArgumentsMode(QCommandLineParser* self, int mode); bool QCommandLineParser_AddOption(QCommandLineParser* self, QCommandLineOption* commandLineOption); -bool QCommandLineParser_AddOptions(QCommandLineParser* self, struct miqt_array /* of QCommandLineOption* */ options); +bool QCommandLineParser_AddOptions(QCommandLineParser* self, struct miqt_array /* of QCommandLineOption* */ options); QCommandLineOption* QCommandLineParser_AddVersionOption(QCommandLineParser* self); QCommandLineOption* QCommandLineParser_AddHelpOption(QCommandLineParser* self); void QCommandLineParser_SetApplicationDescription(QCommandLineParser* self, struct miqt_string description); struct miqt_string QCommandLineParser_ApplicationDescription(const QCommandLineParser* self); void QCommandLineParser_AddPositionalArgument(QCommandLineParser* self, struct miqt_string name, struct miqt_string description); void QCommandLineParser_ClearPositionalArguments(QCommandLineParser* self); -void QCommandLineParser_Process(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments); +void QCommandLineParser_Process(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments); void QCommandLineParser_ProcessWithApp(QCommandLineParser* self, QCoreApplication* app); -bool QCommandLineParser_Parse(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments); +bool QCommandLineParser_Parse(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments); struct miqt_string QCommandLineParser_ErrorText(const QCommandLineParser* self); bool QCommandLineParser_IsSet(const QCommandLineParser* self, struct miqt_string name); struct miqt_string QCommandLineParser_Value(const QCommandLineParser* self, struct miqt_string name); -struct miqt_array QCommandLineParser_Values(const QCommandLineParser* self, struct miqt_string name); +struct miqt_array /* of struct miqt_string */ QCommandLineParser_Values(const QCommandLineParser* self, struct miqt_string name); bool QCommandLineParser_IsSetWithOption(const QCommandLineParser* self, QCommandLineOption* option); struct miqt_string QCommandLineParser_ValueWithOption(const QCommandLineParser* self, QCommandLineOption* option); -struct miqt_array QCommandLineParser_ValuesWithOption(const QCommandLineParser* self, QCommandLineOption* option); -struct miqt_array QCommandLineParser_PositionalArguments(const QCommandLineParser* self); -struct miqt_array QCommandLineParser_OptionNames(const QCommandLineParser* self); -struct miqt_array QCommandLineParser_UnknownOptionNames(const QCommandLineParser* self); +struct miqt_array /* of struct miqt_string */ QCommandLineParser_ValuesWithOption(const QCommandLineParser* self, QCommandLineOption* option); +struct miqt_array /* of struct miqt_string */ QCommandLineParser_PositionalArguments(const QCommandLineParser* self); +struct miqt_array /* of struct miqt_string */ QCommandLineParser_OptionNames(const QCommandLineParser* self); +struct miqt_array /* of struct miqt_string */ QCommandLineParser_UnknownOptionNames(const QCommandLineParser* self); struct miqt_string QCommandLineParser_HelpText(const QCommandLineParser* self); struct miqt_string QCommandLineParser_Tr2(const char* sourceText, const char* disambiguation); struct miqt_string QCommandLineParser_Tr3(const char* sourceText, const char* disambiguation, int n); diff --git a/qt/gen_qcommandlinkbutton.h b/qt/gen_qcommandlinkbutton.h index 4cee9bd3..6406cd3c 100644 --- a/qt/gen_qcommandlinkbutton.h +++ b/qt/gen_qcommandlinkbutton.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOMMANDLINKBUTTON_H -#define GEN_QCOMMANDLINKBUTTON_H +#pragma once +#ifndef MIQT_QT_GEN_QCOMMANDLINKBUTTON_H +#define MIQT_QT_GEN_QCOMMANDLINKBUTTON_H #include #include diff --git a/qt/gen_qcommonstyle.h b/qt/gen_qcommonstyle.h index e178959d..ff89babc 100644 --- a/qt/gen_qcommonstyle.h +++ b/qt/gen_qcommonstyle.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOMMONSTYLE_H -#define GEN_QCOMMONSTYLE_H +#pragma once +#ifndef MIQT_QT_GEN_QCOMMONSTYLE_H +#define MIQT_QT_GEN_QCOMMONSTYLE_H #include #include diff --git a/qt/gen_qcompleter.cpp b/qt/gen_qcompleter.cpp index eb11aa20..07226253 100644 --- a/qt/gen_qcompleter.cpp +++ b/qt/gen_qcompleter.cpp @@ -22,7 +22,7 @@ QCompleter* QCompleter_new2(QAbstractItemModel* model) { return new QCompleter(model); } -QCompleter* QCompleter_new3(struct miqt_array /* of struct miqt_string */ completions) { +QCompleter* QCompleter_new3(struct miqt_array /* of struct miqt_string */ completions) { QStringList completions_QList; completions_QList.reserve(completions.len); struct miqt_string* completions_arr = static_cast(completions.data); @@ -41,7 +41,7 @@ QCompleter* QCompleter_new5(QAbstractItemModel* model, QObject* parent) { return new QCompleter(model, parent); } -QCompleter* QCompleter_new6(struct miqt_array /* of struct miqt_string */ completions, QObject* parent) { +QCompleter* QCompleter_new6(struct miqt_array /* of struct miqt_string */ completions, QObject* parent) { QStringList completions_QList; completions_QList.reserve(completions.len); struct miqt_string* completions_arr = static_cast(completions.data); @@ -236,7 +236,7 @@ struct miqt_string QCompleter_PathFromIndex(const QCompleter* self, QModelIndex* return _ms; } -struct miqt_array QCompleter_SplitPath(const QCompleter* self, struct miqt_string path) { +struct miqt_array /* of struct miqt_string */ QCompleter_SplitPath(const QCompleter* self, struct miqt_string path) { QString path_QString = QString::fromUtf8(path.data, path.len); QStringList _ret = self->splitPath(path_QString); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/gen_qcompleter.h b/qt/gen_qcompleter.h index 1f5a4846..ed9992b3 100644 --- a/qt/gen_qcompleter.h +++ b/qt/gen_qcompleter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOMPLETER_H -#define GEN_QCOMPLETER_H +#pragma once +#ifndef MIQT_QT_GEN_QCOMPLETER_H +#define MIQT_QT_GEN_QCOMPLETER_H #include #include @@ -35,10 +36,10 @@ typedef struct QWidget QWidget; QCompleter* QCompleter_new(); QCompleter* QCompleter_new2(QAbstractItemModel* model); -QCompleter* QCompleter_new3(struct miqt_array /* of struct miqt_string */ completions); +QCompleter* QCompleter_new3(struct miqt_array /* of struct miqt_string */ completions); QCompleter* QCompleter_new4(QObject* parent); QCompleter* QCompleter_new5(QAbstractItemModel* model, QObject* parent); -QCompleter* QCompleter_new6(struct miqt_array /* of struct miqt_string */ completions, QObject* parent); +QCompleter* QCompleter_new6(struct miqt_array /* of struct miqt_string */ completions, QObject* parent); QMetaObject* QCompleter_MetaObject(const QCompleter* self); void* QCompleter_Metacast(QCompleter* self, const char* param1); struct miqt_string QCompleter_Tr(const char* s); @@ -75,7 +76,7 @@ void QCompleter_SetCompletionPrefix(QCompleter* self, struct miqt_string prefix) void QCompleter_Complete(QCompleter* self); void QCompleter_SetWrapAround(QCompleter* self, bool wrap); struct miqt_string QCompleter_PathFromIndex(const QCompleter* self, QModelIndex* index); -struct miqt_array QCompleter_SplitPath(const QCompleter* self, struct miqt_string path); +struct miqt_array /* of struct miqt_string */ QCompleter_SplitPath(const QCompleter* self, struct miqt_string path); void QCompleter_Activated(QCompleter* self, struct miqt_string text); void QCompleter_connect_Activated(QCompleter* self, intptr_t slot); void QCompleter_ActivatedWithIndex(QCompleter* self, QModelIndex* index); diff --git a/qt/gen_qconcatenatetablesproxymodel.cpp b/qt/gen_qconcatenatetablesproxymodel.cpp index c7d01401..50bfcc70 100644 --- a/qt/gen_qconcatenatetablesproxymodel.cpp +++ b/qt/gen_qconcatenatetablesproxymodel.cpp @@ -53,7 +53,7 @@ struct miqt_string QConcatenateTablesProxyModel_TrUtf8(const char* s) { return _ms; } -struct miqt_array QConcatenateTablesProxyModel_SourceModels(const QConcatenateTablesProxyModel* self) { +struct miqt_array /* of QAbstractItemModel* */ QConcatenateTablesProxyModel_SourceModels(const QConcatenateTablesProxyModel* self) { QList _ret = self->sourceModels(); // Convert QList<> from C++ memory to manually-managed C memory QAbstractItemModel** _arr = static_cast(malloc(sizeof(QAbstractItemModel*) * _ret.length())); @@ -90,7 +90,7 @@ bool QConcatenateTablesProxyModel_SetData(QConcatenateTablesProxyModel* self, QM return self->setData(*index, *value); } -struct miqt_map QConcatenateTablesProxyModel_ItemData(const QConcatenateTablesProxyModel* self, QModelIndex* proxyIndex) { +struct miqt_map /* of int to QVariant* */ QConcatenateTablesProxyModel_ItemData(const QConcatenateTablesProxyModel* self, QModelIndex* proxyIndex) { QMap _ret = self->itemData(*proxyIndex); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -108,7 +108,7 @@ struct miqt_map QConcatenateTablesProxyModel_ItemData(const QConcatenateTablesPr return _out; } -bool QConcatenateTablesProxyModel_SetItemData(QConcatenateTablesProxyModel* self, QModelIndex* index, struct miqt_map roles) { +bool QConcatenateTablesProxyModel_SetItemData(QConcatenateTablesProxyModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) { QMap roles_QMap; int* roles_karr = static_cast(roles.keys); QVariant** roles_varr = static_cast(roles.values); @@ -143,7 +143,7 @@ int QConcatenateTablesProxyModel_ColumnCount(const QConcatenateTablesProxyModel* return self->columnCount(); } -struct miqt_array QConcatenateTablesProxyModel_MimeTypes(const QConcatenateTablesProxyModel* self) { +struct miqt_array /* of struct miqt_string */ QConcatenateTablesProxyModel_MimeTypes(const QConcatenateTablesProxyModel* self) { QStringList _ret = self->mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -163,7 +163,7 @@ struct miqt_array QConcatenateTablesProxyModel_MimeTypes(const QConcatenateTable return _out; } -QMimeData* QConcatenateTablesProxyModel_MimeData(const QConcatenateTablesProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes) { +QMimeData* QConcatenateTablesProxyModel_MimeData(const QConcatenateTablesProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); diff --git a/qt/gen_qconcatenatetablesproxymodel.h b/qt/gen_qconcatenatetablesproxymodel.h index b23e87cf..cfb6ad16 100644 --- a/qt/gen_qconcatenatetablesproxymodel.h +++ b/qt/gen_qconcatenatetablesproxymodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCONCATENATETABLESPROXYMODEL_H -#define GEN_QCONCATENATETABLESPROXYMODEL_H +#pragma once +#ifndef MIQT_QT_GEN_QCONCATENATETABLESPROXYMODEL_H +#define MIQT_QT_GEN_QCONCATENATETABLESPROXYMODEL_H #include #include @@ -39,23 +40,23 @@ QMetaObject* QConcatenateTablesProxyModel_MetaObject(const QConcatenateTablesPro void* QConcatenateTablesProxyModel_Metacast(QConcatenateTablesProxyModel* self, const char* param1); struct miqt_string QConcatenateTablesProxyModel_Tr(const char* s); struct miqt_string QConcatenateTablesProxyModel_TrUtf8(const char* s); -struct miqt_array QConcatenateTablesProxyModel_SourceModels(const QConcatenateTablesProxyModel* self); +struct miqt_array /* of QAbstractItemModel* */ QConcatenateTablesProxyModel_SourceModels(const QConcatenateTablesProxyModel* self); void QConcatenateTablesProxyModel_AddSourceModel(QConcatenateTablesProxyModel* self, QAbstractItemModel* sourceModel); void QConcatenateTablesProxyModel_RemoveSourceModel(QConcatenateTablesProxyModel* self, QAbstractItemModel* sourceModel); QModelIndex* QConcatenateTablesProxyModel_MapFromSource(const QConcatenateTablesProxyModel* self, QModelIndex* sourceIndex); QModelIndex* QConcatenateTablesProxyModel_MapToSource(const QConcatenateTablesProxyModel* self, QModelIndex* proxyIndex); QVariant* QConcatenateTablesProxyModel_Data(const QConcatenateTablesProxyModel* self, QModelIndex* index); bool QConcatenateTablesProxyModel_SetData(QConcatenateTablesProxyModel* self, QModelIndex* index, QVariant* value); -struct miqt_map QConcatenateTablesProxyModel_ItemData(const QConcatenateTablesProxyModel* self, QModelIndex* proxyIndex); -bool QConcatenateTablesProxyModel_SetItemData(QConcatenateTablesProxyModel* self, QModelIndex* index, struct miqt_map roles); +struct miqt_map /* of int to QVariant* */ QConcatenateTablesProxyModel_ItemData(const QConcatenateTablesProxyModel* self, QModelIndex* proxyIndex); +bool QConcatenateTablesProxyModel_SetItemData(QConcatenateTablesProxyModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles); int QConcatenateTablesProxyModel_Flags(const QConcatenateTablesProxyModel* self, QModelIndex* index); QModelIndex* QConcatenateTablesProxyModel_Index(const QConcatenateTablesProxyModel* self, int row, int column); QModelIndex* QConcatenateTablesProxyModel_Parent(const QConcatenateTablesProxyModel* self, QModelIndex* index); int QConcatenateTablesProxyModel_RowCount(const QConcatenateTablesProxyModel* self); QVariant* QConcatenateTablesProxyModel_HeaderData(const QConcatenateTablesProxyModel* self, int section, int orientation); int QConcatenateTablesProxyModel_ColumnCount(const QConcatenateTablesProxyModel* self); -struct miqt_array QConcatenateTablesProxyModel_MimeTypes(const QConcatenateTablesProxyModel* self); -QMimeData* QConcatenateTablesProxyModel_MimeData(const QConcatenateTablesProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes); +struct miqt_array /* of struct miqt_string */ QConcatenateTablesProxyModel_MimeTypes(const QConcatenateTablesProxyModel* self); +QMimeData* QConcatenateTablesProxyModel_MimeData(const QConcatenateTablesProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes); bool QConcatenateTablesProxyModel_CanDropMimeData(const QConcatenateTablesProxyModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); bool QConcatenateTablesProxyModel_DropMimeData(QConcatenateTablesProxyModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); QSize* QConcatenateTablesProxyModel_Span(const QConcatenateTablesProxyModel* self, QModelIndex* index); diff --git a/qt/gen_qcontiguouscache.h b/qt/gen_qcontiguouscache.h index 012a01a0..39b612d4 100644 --- a/qt/gen_qcontiguouscache.h +++ b/qt/gen_qcontiguouscache.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCONTIGUOUSCACHE_H -#define GEN_QCONTIGUOUSCACHE_H +#pragma once +#ifndef MIQT_QT_GEN_QCONTIGUOUSCACHE_H +#define MIQT_QT_GEN_QCONTIGUOUSCACHE_H #include #include diff --git a/qt/gen_qcoreapplication.cpp b/qt/gen_qcoreapplication.cpp index ec25170b..fdd67150 100644 --- a/qt/gen_qcoreapplication.cpp +++ b/qt/gen_qcoreapplication.cpp @@ -51,7 +51,7 @@ struct miqt_string QCoreApplication_TrUtf8(const char* s) { return _ms; } -struct miqt_array QCoreApplication_Arguments() { +struct miqt_array /* of struct miqt_string */ QCoreApplication_Arguments() { QStringList _ret = QCoreApplication::arguments(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -238,7 +238,7 @@ long long QCoreApplication_ApplicationPid() { return static_cast(_ret); } -void QCoreApplication_SetLibraryPaths(struct miqt_array /* of struct miqt_string */ libraryPaths) { +void QCoreApplication_SetLibraryPaths(struct miqt_array /* of struct miqt_string */ libraryPaths) { QStringList libraryPaths_QList; libraryPaths_QList.reserve(libraryPaths.len); struct miqt_string* libraryPaths_arr = static_cast(libraryPaths.data); @@ -249,7 +249,7 @@ void QCoreApplication_SetLibraryPaths(struct miqt_array /* of struct miqt_string QCoreApplication::setLibraryPaths(libraryPaths_QList); } -struct miqt_array QCoreApplication_LibraryPaths() { +struct miqt_array /* of struct miqt_string */ QCoreApplication_LibraryPaths() { QStringList _ret = QCoreApplication::libraryPaths(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qcoreapplication.h b/qt/gen_qcoreapplication.h index 1cbd8b4c..e20f6733 100644 --- a/qt/gen_qcoreapplication.h +++ b/qt/gen_qcoreapplication.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOREAPPLICATION_H -#define GEN_QCOREAPPLICATION_H +#pragma once +#ifndef MIQT_QT_GEN_QCOREAPPLICATION_H +#define MIQT_QT_GEN_QCOREAPPLICATION_H #include #include @@ -37,7 +38,7 @@ QMetaObject* QCoreApplication_MetaObject(const QCoreApplication* self); void* QCoreApplication_Metacast(QCoreApplication* self, const char* param1); struct miqt_string QCoreApplication_Tr(const char* s); struct miqt_string QCoreApplication_TrUtf8(const char* s); -struct miqt_array QCoreApplication_Arguments(); +struct miqt_array /* of struct miqt_string */ QCoreApplication_Arguments(); void QCoreApplication_SetAttribute(int attribute); bool QCoreApplication_TestAttribute(int attribute); void QCoreApplication_SetOrganizationDomain(struct miqt_string orgDomain); @@ -68,8 +69,8 @@ bool QCoreApplication_ClosingDown(); struct miqt_string QCoreApplication_ApplicationDirPath(); struct miqt_string QCoreApplication_ApplicationFilePath(); long long QCoreApplication_ApplicationPid(); -void QCoreApplication_SetLibraryPaths(struct miqt_array /* of struct miqt_string */ libraryPaths); -struct miqt_array QCoreApplication_LibraryPaths(); +void QCoreApplication_SetLibraryPaths(struct miqt_array /* of struct miqt_string */ libraryPaths); +struct miqt_array /* of struct miqt_string */ QCoreApplication_LibraryPaths(); void QCoreApplication_AddLibraryPath(struct miqt_string param1); void QCoreApplication_RemoveLibraryPath(struct miqt_string param1); bool QCoreApplication_InstallTranslator(QTranslator* messageFile); diff --git a/qt/gen_qcoreevent.h b/qt/gen_qcoreevent.h index d3a9c71c..c6fdd80f 100644 --- a/qt/gen_qcoreevent.h +++ b/qt/gen_qcoreevent.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOREEVENT_H -#define GEN_QCOREEVENT_H +#pragma once +#ifndef MIQT_QT_GEN_QCOREEVENT_H +#define MIQT_QT_GEN_QCOREEVENT_H #include #include diff --git a/qt/gen_qcryptographichash.h b/qt/gen_qcryptographichash.h index d6da8778..62b9ab21 100644 --- a/qt/gen_qcryptographichash.h +++ b/qt/gen_qcryptographichash.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCRYPTOGRAPHICHASH_H -#define GEN_QCRYPTOGRAPHICHASH_H +#pragma once +#ifndef MIQT_QT_GEN_QCRYPTOGRAPHICHASH_H +#define MIQT_QT_GEN_QCRYPTOGRAPHICHASH_H #include #include diff --git a/qt/gen_qcursor.h b/qt/gen_qcursor.h index b6ea6726..c6f728fa 100644 --- a/qt/gen_qcursor.h +++ b/qt/gen_qcursor.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCURSOR_H -#define GEN_QCURSOR_H +#pragma once +#ifndef MIQT_QT_GEN_QCURSOR_H +#define MIQT_QT_GEN_QCURSOR_H #include #include diff --git a/qt/gen_qdatastream.h b/qt/gen_qdatastream.h index 01a74fe9..8ecf1ed4 100644 --- a/qt/gen_qdatastream.h +++ b/qt/gen_qdatastream.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDATASTREAM_H -#define GEN_QDATASTREAM_H +#pragma once +#ifndef MIQT_QT_GEN_QDATASTREAM_H +#define MIQT_QT_GEN_QDATASTREAM_H #include #include diff --git a/qt/gen_qdatawidgetmapper.h b/qt/gen_qdatawidgetmapper.h index fce289a8..b27a9c5e 100644 --- a/qt/gen_qdatawidgetmapper.h +++ b/qt/gen_qdatawidgetmapper.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDATAWIDGETMAPPER_H -#define GEN_QDATAWIDGETMAPPER_H +#pragma once +#ifndef MIQT_QT_GEN_QDATAWIDGETMAPPER_H +#define MIQT_QT_GEN_QDATAWIDGETMAPPER_H #include #include diff --git a/qt/gen_qdatetime.h b/qt/gen_qdatetime.h index 897055a7..da918af6 100644 --- a/qt/gen_qdatetime.h +++ b/qt/gen_qdatetime.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDATETIME_H -#define GEN_QDATETIME_H +#pragma once +#ifndef MIQT_QT_GEN_QDATETIME_H +#define MIQT_QT_GEN_QDATETIME_H #include #include diff --git a/qt/gen_qdatetimeedit.h b/qt/gen_qdatetimeedit.h index b373bda0..ea32d929 100644 --- a/qt/gen_qdatetimeedit.h +++ b/qt/gen_qdatetimeedit.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDATETIMEEDIT_H -#define GEN_QDATETIMEEDIT_H +#pragma once +#ifndef MIQT_QT_GEN_QDATETIMEEDIT_H +#define MIQT_QT_GEN_QDATETIMEEDIT_H #include #include diff --git a/qt/gen_qdeadlinetimer.cpp b/qt/gen_qdeadlinetimer.cpp index 2a93ec7b..d8172988 100644 --- a/qt/gen_qdeadlinetimer.cpp +++ b/qt/gen_qdeadlinetimer.cpp @@ -108,6 +108,20 @@ QDeadlineTimer* QDeadlineTimer_OperatorMinusAssign(QDeadlineTimer* self, long lo return &_ret; } +struct miqt_map /* tuple of long long and unsigned int */ QDeadlineTimer_QData(const QDeadlineTimer* self) { + QPair _ret = self->_q_data(); + // Convert QPair<> from C++ memory to manually-managed C memory + long long* _first_arr = static_cast(malloc(sizeof(long long))); + unsigned int* _second_arr = static_cast(malloc(sizeof(unsigned int))); + _first_arr[0] = _ret.first; + _second_arr[0] = _ret.second; + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + void QDeadlineTimer_OperatorAssign(QDeadlineTimer* self, QDeadlineTimer* param1) { self->operator=(*param1); } diff --git a/qt/gen_qdeadlinetimer.go b/qt/gen_qdeadlinetimer.go index 04b53016..23fa192a 100644 --- a/qt/gen_qdeadlinetimer.go +++ b/qt/gen_qdeadlinetimer.go @@ -164,6 +164,23 @@ func (this *QDeadlineTimer) OperatorMinusAssign(msecs int64) *QDeadlineTimer { return UnsafeNewQDeadlineTimer(unsafe.Pointer(C.QDeadlineTimer_OperatorMinusAssign(this.h, (C.longlong)(msecs)))) } +func (this *QDeadlineTimer) QData() struct { + First int64 + Second uint +} { + var _mm C.struct_miqt_map = C.QDeadlineTimer_QData(this.h) + _First_CArray := (*[0xffff]C.longlong)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]C.uint)(unsafe.Pointer(_mm.values)) + _entry_First := (int64)(_First_CArray[0]) + + _entry_Second := (uint)(_Second_CArray[0]) + + return struct { + First int64 + Second uint + }{First: _entry_First, Second: _entry_Second} +} + func (this *QDeadlineTimer) OperatorAssign(param1 *QDeadlineTimer) { C.QDeadlineTimer_OperatorAssign(this.h, param1.cPointer()) } diff --git a/qt/gen_qdeadlinetimer.h b/qt/gen_qdeadlinetimer.h index bae9d82c..195e5d5b 100644 --- a/qt/gen_qdeadlinetimer.h +++ b/qt/gen_qdeadlinetimer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDEADLINETIMER_H -#define GEN_QDEADLINETIMER_H +#pragma once +#ifndef MIQT_QT_GEN_QDEADLINETIMER_H +#define MIQT_QT_GEN_QDEADLINETIMER_H #include #include @@ -43,6 +44,7 @@ QDeadlineTimer* QDeadlineTimer_AddNSecs(QDeadlineTimer* dt, long long nsecs); QDeadlineTimer* QDeadlineTimer_Current(); QDeadlineTimer* QDeadlineTimer_OperatorPlusAssign(QDeadlineTimer* self, long long msecs); QDeadlineTimer* QDeadlineTimer_OperatorMinusAssign(QDeadlineTimer* self, long long msecs); +struct miqt_map /* tuple of long long and unsigned int */ QDeadlineTimer_QData(const QDeadlineTimer* self); void QDeadlineTimer_OperatorAssign(QDeadlineTimer* self, QDeadlineTimer* param1); void QDeadlineTimer_SetRemainingTime2(QDeadlineTimer* self, long long msecs, int typeVal); void QDeadlineTimer_SetPreciseRemainingTime2(QDeadlineTimer* self, long long secs, long long nsecs); diff --git a/qt/gen_qdebug.h b/qt/gen_qdebug.h index 0f5ee94c..2f391906 100644 --- a/qt/gen_qdebug.h +++ b/qt/gen_qdebug.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDEBUG_H -#define GEN_QDEBUG_H +#pragma once +#ifndef MIQT_QT_GEN_QDEBUG_H +#define MIQT_QT_GEN_QDEBUG_H #include #include diff --git a/qt/gen_qdesktopservices.h b/qt/gen_qdesktopservices.h index af8badb6..b77ac49b 100644 --- a/qt/gen_qdesktopservices.h +++ b/qt/gen_qdesktopservices.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDESKTOPSERVICES_H -#define GEN_QDESKTOPSERVICES_H +#pragma once +#ifndef MIQT_QT_GEN_QDESKTOPSERVICES_H +#define MIQT_QT_GEN_QDESKTOPSERVICES_H #include #include diff --git a/qt/gen_qdesktopwidget.h b/qt/gen_qdesktopwidget.h index dd143935..048ab1da 100644 --- a/qt/gen_qdesktopwidget.h +++ b/qt/gen_qdesktopwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDESKTOPWIDGET_H -#define GEN_QDESKTOPWIDGET_H +#pragma once +#ifndef MIQT_QT_GEN_QDESKTOPWIDGET_H +#define MIQT_QT_GEN_QDESKTOPWIDGET_H #include #include diff --git a/qt/gen_qdial.h b/qt/gen_qdial.h index 24e86746..12e663f5 100644 --- a/qt/gen_qdial.h +++ b/qt/gen_qdial.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDIAL_H -#define GEN_QDIAL_H +#pragma once +#ifndef MIQT_QT_GEN_QDIAL_H +#define MIQT_QT_GEN_QDIAL_H #include #include diff --git a/qt/gen_qdialog.h b/qt/gen_qdialog.h index 18e08c84..c368df75 100644 --- a/qt/gen_qdialog.h +++ b/qt/gen_qdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDIALOG_H -#define GEN_QDIALOG_H +#pragma once +#ifndef MIQT_QT_GEN_QDIALOG_H +#define MIQT_QT_GEN_QDIALOG_H #include #include diff --git a/qt/gen_qdialogbuttonbox.cpp b/qt/gen_qdialogbuttonbox.cpp index 35498144..038f420a 100644 --- a/qt/gen_qdialogbuttonbox.cpp +++ b/qt/gen_qdialogbuttonbox.cpp @@ -103,7 +103,7 @@ void QDialogButtonBox_Clear(QDialogButtonBox* self) { self->clear(); } -struct miqt_array QDialogButtonBox_Buttons(const QDialogButtonBox* self) { +struct miqt_array /* of QAbstractButton* */ QDialogButtonBox_Buttons(const QDialogButtonBox* self) { QList _ret = self->buttons(); // Convert QList<> from C++ memory to manually-managed C memory QAbstractButton** _arr = static_cast(malloc(sizeof(QAbstractButton*) * _ret.length())); diff --git a/qt/gen_qdialogbuttonbox.h b/qt/gen_qdialogbuttonbox.h index c7e486de..cf3b5dfd 100644 --- a/qt/gen_qdialogbuttonbox.h +++ b/qt/gen_qdialogbuttonbox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDIALOGBUTTONBOX_H -#define GEN_QDIALOGBUTTONBOX_H +#pragma once +#ifndef MIQT_QT_GEN_QDIALOGBUTTONBOX_H +#define MIQT_QT_GEN_QDIALOGBUTTONBOX_H #include #include @@ -46,7 +47,7 @@ QPushButton* QDialogButtonBox_AddButton2(QDialogButtonBox* self, struct miqt_str QPushButton* QDialogButtonBox_AddButtonWithButton(QDialogButtonBox* self, int button); void QDialogButtonBox_RemoveButton(QDialogButtonBox* self, QAbstractButton* button); void QDialogButtonBox_Clear(QDialogButtonBox* self); -struct miqt_array QDialogButtonBox_Buttons(const QDialogButtonBox* self); +struct miqt_array /* of QAbstractButton* */ QDialogButtonBox_Buttons(const QDialogButtonBox* self); int QDialogButtonBox_ButtonRole(const QDialogButtonBox* self, QAbstractButton* button); void QDialogButtonBox_SetStandardButtons(QDialogButtonBox* self, int buttons); int QDialogButtonBox_StandardButtons(const QDialogButtonBox* self); diff --git a/qt/gen_qdir.cpp b/qt/gen_qdir.cpp index a1ae8ed5..c1a3f4d8 100644 --- a/qt/gen_qdir.cpp +++ b/qt/gen_qdir.cpp @@ -96,7 +96,7 @@ void QDir_AddResourceSearchPath(struct miqt_string path) { QDir::addResourceSearchPath(path_QString); } -void QDir_SetSearchPaths(struct miqt_string prefix, struct miqt_array /* of struct miqt_string */ searchPaths) { +void QDir_SetSearchPaths(struct miqt_string prefix, struct miqt_array /* of struct miqt_string */ searchPaths) { QString prefix_QString = QString::fromUtf8(prefix.data, prefix.len); QStringList searchPaths_QList; searchPaths_QList.reserve(searchPaths.len); @@ -114,7 +114,7 @@ void QDir_AddSearchPath(struct miqt_string prefix, struct miqt_string path) { QDir::addSearchPath(prefix_QString, path_QString); } -struct miqt_array QDir_SearchPaths(struct miqt_string prefix) { +struct miqt_array /* of struct miqt_string */ QDir_SearchPaths(struct miqt_string prefix) { QString prefix_QString = QString::fromUtf8(prefix.data, prefix.len); QStringList _ret = QDir::searchPaths(prefix_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -215,7 +215,7 @@ bool QDir_CdUp(QDir* self) { return self->cdUp(); } -struct miqt_array QDir_NameFilters(const QDir* self) { +struct miqt_array /* of struct miqt_string */ QDir_NameFilters(const QDir* self) { QStringList _ret = self->nameFilters(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -235,7 +235,7 @@ struct miqt_array QDir_NameFilters(const QDir* self) { return _out; } -void QDir_SetNameFilters(QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters) { +void QDir_SetNameFilters(QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); @@ -284,7 +284,7 @@ struct miqt_string QDir_OperatorSubscript(const QDir* self, int param1) { return _ms; } -struct miqt_array QDir_NameFiltersFromString(struct miqt_string nameFilter) { +struct miqt_array /* of struct miqt_string */ QDir_NameFiltersFromString(struct miqt_string nameFilter) { QString nameFilter_QString = QString::fromUtf8(nameFilter.data, nameFilter.len); QStringList _ret = QDir::nameFiltersFromString(nameFilter_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -305,7 +305,7 @@ struct miqt_array QDir_NameFiltersFromString(struct miqt_string nameFilter) { return _out; } -struct miqt_array QDir_EntryList(const QDir* self) { +struct miqt_array /* of struct miqt_string */ QDir_EntryList(const QDir* self) { QStringList _ret = self->entryList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -325,7 +325,7 @@ struct miqt_array QDir_EntryList(const QDir* self) { return _out; } -struct miqt_array QDir_EntryListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters) { +struct miqt_array /* of struct miqt_string */ QDir_EntryListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); @@ -352,7 +352,7 @@ struct miqt_array QDir_EntryListWithNameFilters(const QDir* self, struct miqt_ar return _out; } -struct miqt_array QDir_EntryInfoList(const QDir* self) { +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList(const QDir* self) { QFileInfoList _ret = self->entryInfoList(); // Convert QList<> from C++ memory to manually-managed C memory QFileInfo** _arr = static_cast(malloc(sizeof(QFileInfo*) * _ret.length())); @@ -365,7 +365,7 @@ struct miqt_array QDir_EntryInfoList(const QDir* self) { return _out; } -struct miqt_array QDir_EntryInfoListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters) { +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); @@ -467,7 +467,7 @@ bool QDir_ExistsWithName(const QDir* self, struct miqt_string name) { return self->exists(name_QString); } -struct miqt_array QDir_Drives() { +struct miqt_array /* of QFileInfo* */ QDir_Drives() { QFileInfoList _ret = QDir::drives(); // Convert QList<> from C++ memory to manually-managed C memory QFileInfo** _arr = static_cast(malloc(sizeof(QFileInfo*) * _ret.length())); @@ -553,7 +553,7 @@ struct miqt_string QDir_TempPath() { return _ms; } -bool QDir_Match(struct miqt_array /* of struct miqt_string */ filters, struct miqt_string fileName) { +bool QDir_Match(struct miqt_array /* of struct miqt_string */ filters, struct miqt_string fileName) { QStringList filters_QList; filters_QList.reserve(filters.len); struct miqt_string* filters_arr = static_cast(filters.data); @@ -591,7 +591,7 @@ bool QDir_IsEmpty1(const QDir* self, int filters) { return self->isEmpty(static_cast(filters)); } -struct miqt_array QDir_EntryList1(const QDir* self, int filters) { +struct miqt_array /* of struct miqt_string */ QDir_EntryList1(const QDir* self, int filters) { QStringList _ret = self->entryList(static_cast(filters)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -611,7 +611,7 @@ struct miqt_array QDir_EntryList1(const QDir* self, int filters) { return _out; } -struct miqt_array QDir_EntryList2(const QDir* self, int filters, int sort) { +struct miqt_array /* of struct miqt_string */ QDir_EntryList2(const QDir* self, int filters, int sort) { QStringList _ret = self->entryList(static_cast(filters), static_cast(sort)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -631,7 +631,7 @@ struct miqt_array QDir_EntryList2(const QDir* self, int filters, int sort) { return _out; } -struct miqt_array QDir_EntryList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters) { +struct miqt_array /* of struct miqt_string */ QDir_EntryList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); @@ -658,7 +658,7 @@ struct miqt_array QDir_EntryList22(const QDir* self, struct miqt_array /* of str return _out; } -struct miqt_array QDir_EntryList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort) { +struct miqt_array /* of struct miqt_string */ QDir_EntryList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); @@ -685,7 +685,7 @@ struct miqt_array QDir_EntryList3(const QDir* self, struct miqt_array /* of stru return _out; } -struct miqt_array QDir_EntryInfoList1(const QDir* self, int filters) { +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList1(const QDir* self, int filters) { QFileInfoList _ret = self->entryInfoList(static_cast(filters)); // Convert QList<> from C++ memory to manually-managed C memory QFileInfo** _arr = static_cast(malloc(sizeof(QFileInfo*) * _ret.length())); @@ -698,7 +698,7 @@ struct miqt_array QDir_EntryInfoList1(const QDir* self, int filters) { return _out; } -struct miqt_array QDir_EntryInfoList2(const QDir* self, int filters, int sort) { +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList2(const QDir* self, int filters, int sort) { QFileInfoList _ret = self->entryInfoList(static_cast(filters), static_cast(sort)); // Convert QList<> from C++ memory to manually-managed C memory QFileInfo** _arr = static_cast(malloc(sizeof(QFileInfo*) * _ret.length())); @@ -711,7 +711,7 @@ struct miqt_array QDir_EntryInfoList2(const QDir* self, int filters, int sort) { return _out; } -struct miqt_array QDir_EntryInfoList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters) { +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); @@ -731,7 +731,7 @@ struct miqt_array QDir_EntryInfoList22(const QDir* self, struct miqt_array /* of return _out; } -struct miqt_array QDir_EntryInfoList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort) { +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); diff --git a/qt/gen_qdir.h b/qt/gen_qdir.h index 6265204d..a50789eb 100644 --- a/qt/gen_qdir.h +++ b/qt/gen_qdir.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDIR_H -#define GEN_QDIR_H +#pragma once +#ifndef MIQT_QT_GEN_QDIR_H +#define MIQT_QT_GEN_QDIR_H #include #include @@ -37,9 +38,9 @@ struct miqt_string QDir_Path(const QDir* self); struct miqt_string QDir_AbsolutePath(const QDir* self); struct miqt_string QDir_CanonicalPath(const QDir* self); void QDir_AddResourceSearchPath(struct miqt_string path); -void QDir_SetSearchPaths(struct miqt_string prefix, struct miqt_array /* of struct miqt_string */ searchPaths); +void QDir_SetSearchPaths(struct miqt_string prefix, struct miqt_array /* of struct miqt_string */ searchPaths); void QDir_AddSearchPath(struct miqt_string prefix, struct miqt_string path); -struct miqt_array QDir_SearchPaths(struct miqt_string prefix); +struct miqt_array /* of struct miqt_string */ QDir_SearchPaths(struct miqt_string prefix); struct miqt_string QDir_DirName(const QDir* self); struct miqt_string QDir_FilePath(const QDir* self, struct miqt_string fileName); struct miqt_string QDir_AbsoluteFilePath(const QDir* self, struct miqt_string fileName); @@ -48,8 +49,8 @@ struct miqt_string QDir_ToNativeSeparators(struct miqt_string pathName); struct miqt_string QDir_FromNativeSeparators(struct miqt_string pathName); bool QDir_Cd(QDir* self, struct miqt_string dirName); bool QDir_CdUp(QDir* self); -struct miqt_array QDir_NameFilters(const QDir* self); -void QDir_SetNameFilters(QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters); +struct miqt_array /* of struct miqt_string */ QDir_NameFilters(const QDir* self); +void QDir_SetNameFilters(QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters); int QDir_Filter(const QDir* self); void QDir_SetFilter(QDir* self, int filter); int QDir_Sorting(const QDir* self); @@ -57,11 +58,11 @@ void QDir_SetSorting(QDir* self, int sort); unsigned int QDir_Count(const QDir* self); bool QDir_IsEmpty(const QDir* self); struct miqt_string QDir_OperatorSubscript(const QDir* self, int param1); -struct miqt_array QDir_NameFiltersFromString(struct miqt_string nameFilter); -struct miqt_array QDir_EntryList(const QDir* self); -struct miqt_array QDir_EntryListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters); -struct miqt_array QDir_EntryInfoList(const QDir* self); -struct miqt_array QDir_EntryInfoListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters); +struct miqt_array /* of struct miqt_string */ QDir_NameFiltersFromString(struct miqt_string nameFilter); +struct miqt_array /* of struct miqt_string */ QDir_EntryList(const QDir* self); +struct miqt_array /* of struct miqt_string */ QDir_EntryListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters); +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList(const QDir* self); +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters); bool QDir_Mkdir(const QDir* self, struct miqt_string dirName); bool QDir_Rmdir(const QDir* self, struct miqt_string dirName); bool QDir_Mkpath(const QDir* self, struct miqt_string dirPath); @@ -80,7 +81,7 @@ bool QDir_OperatorNotEqual(const QDir* self, QDir* dir); bool QDir_Remove(QDir* self, struct miqt_string fileName); bool QDir_Rename(QDir* self, struct miqt_string oldName, struct miqt_string newName); bool QDir_ExistsWithName(const QDir* self, struct miqt_string name); -struct miqt_array QDir_Drives(); +struct miqt_array /* of QFileInfo* */ QDir_Drives(); QChar* QDir_ListSeparator(); QChar* QDir_Separator(); bool QDir_SetCurrent(struct miqt_string path); @@ -92,19 +93,19 @@ QDir* QDir_Root(); struct miqt_string QDir_RootPath(); QDir* QDir_Temp(); struct miqt_string QDir_TempPath(); -bool QDir_Match(struct miqt_array /* of struct miqt_string */ filters, struct miqt_string fileName); +bool QDir_Match(struct miqt_array /* of struct miqt_string */ filters, struct miqt_string fileName); bool QDir_Match2(struct miqt_string filter, struct miqt_string fileName); struct miqt_string QDir_CleanPath(struct miqt_string path); void QDir_Refresh(const QDir* self); bool QDir_IsEmpty1(const QDir* self, int filters); -struct miqt_array QDir_EntryList1(const QDir* self, int filters); -struct miqt_array QDir_EntryList2(const QDir* self, int filters, int sort); -struct miqt_array QDir_EntryList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters); -struct miqt_array QDir_EntryList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort); -struct miqt_array QDir_EntryInfoList1(const QDir* self, int filters); -struct miqt_array QDir_EntryInfoList2(const QDir* self, int filters, int sort); -struct miqt_array QDir_EntryInfoList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters); -struct miqt_array QDir_EntryInfoList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort); +struct miqt_array /* of struct miqt_string */ QDir_EntryList1(const QDir* self, int filters); +struct miqt_array /* of struct miqt_string */ QDir_EntryList2(const QDir* self, int filters, int sort); +struct miqt_array /* of struct miqt_string */ QDir_EntryList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters); +struct miqt_array /* of struct miqt_string */ QDir_EntryList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort); +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList1(const QDir* self, int filters); +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList2(const QDir* self, int filters, int sort); +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters); +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort); void QDir_Delete(QDir* self); #ifdef __cplusplus diff --git a/qt/gen_qdiriterator.cpp b/qt/gen_qdiriterator.cpp index b4f5043d..ba9bcbd5 100644 --- a/qt/gen_qdiriterator.cpp +++ b/qt/gen_qdiriterator.cpp @@ -23,7 +23,7 @@ QDirIterator* QDirIterator_new3(struct miqt_string path, int filter) { return new QDirIterator(path_QString, static_cast(filter)); } -QDirIterator* QDirIterator_new4(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters) { +QDirIterator* QDirIterator_new4(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters) { QString path_QString = QString::fromUtf8(path.data, path.len); QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); @@ -49,7 +49,7 @@ QDirIterator* QDirIterator_new7(struct miqt_string path, int filter, int flags) return new QDirIterator(path_QString, static_cast(filter), static_cast(flags)); } -QDirIterator* QDirIterator_new8(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters) { +QDirIterator* QDirIterator_new8(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters) { QString path_QString = QString::fromUtf8(path.data, path.len); QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); @@ -61,7 +61,7 @@ QDirIterator* QDirIterator_new8(struct miqt_string path, struct miqt_array /* of return new QDirIterator(path_QString, nameFilters_QList, static_cast(filters)); } -QDirIterator* QDirIterator_new9(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int flags) { +QDirIterator* QDirIterator_new9(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int flags) { QString path_QString = QString::fromUtf8(path.data, path.len); QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); diff --git a/qt/gen_qdiriterator.h b/qt/gen_qdiriterator.h index 8179e25b..c85400c1 100644 --- a/qt/gen_qdiriterator.h +++ b/qt/gen_qdiriterator.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDIRITERATOR_H -#define GEN_QDIRITERATOR_H +#pragma once +#ifndef MIQT_QT_GEN_QDIRITERATOR_H +#define MIQT_QT_GEN_QDIRITERATOR_H #include #include @@ -26,12 +27,12 @@ typedef struct QFileInfo QFileInfo; QDirIterator* QDirIterator_new(QDir* dir); QDirIterator* QDirIterator_new2(struct miqt_string path); QDirIterator* QDirIterator_new3(struct miqt_string path, int filter); -QDirIterator* QDirIterator_new4(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters); +QDirIterator* QDirIterator_new4(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters); QDirIterator* QDirIterator_new5(QDir* dir, int flags); QDirIterator* QDirIterator_new6(struct miqt_string path, int flags); QDirIterator* QDirIterator_new7(struct miqt_string path, int filter, int flags); -QDirIterator* QDirIterator_new8(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters); -QDirIterator* QDirIterator_new9(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int flags); +QDirIterator* QDirIterator_new8(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters); +QDirIterator* QDirIterator_new9(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int flags); struct miqt_string QDirIterator_Next(QDirIterator* self); bool QDirIterator_HasNext(const QDirIterator* self); struct miqt_string QDirIterator_FileName(const QDirIterator* self); diff --git a/qt/gen_qdirmodel.cpp b/qt/gen_qdirmodel.cpp index f8cabc80..a6e1c3f5 100644 --- a/qt/gen_qdirmodel.cpp +++ b/qt/gen_qdirmodel.cpp @@ -15,7 +15,7 @@ #include "gen_qdirmodel.h" #include "_cgo_export.h" -QDirModel* QDirModel_new(struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort) { +QDirModel* QDirModel_new(struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); @@ -30,7 +30,7 @@ QDirModel* QDirModel_new2() { return new QDirModel(); } -QDirModel* QDirModel_new3(struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort, QObject* parent) { +QDirModel* QDirModel_new3(struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort, QObject* parent) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); @@ -116,7 +116,7 @@ void QDirModel_Sort(QDirModel* self, int column) { self->sort(static_cast(column)); } -struct miqt_array QDirModel_MimeTypes(const QDirModel* self) { +struct miqt_array /* of struct miqt_string */ QDirModel_MimeTypes(const QDirModel* self) { QStringList _ret = self->mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -136,7 +136,7 @@ struct miqt_array QDirModel_MimeTypes(const QDirModel* self) { return _out; } -QMimeData* QDirModel_MimeData(const QDirModel* self, struct miqt_array /* of QModelIndex* */ indexes) { +QMimeData* QDirModel_MimeData(const QDirModel* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); @@ -163,7 +163,7 @@ QFileIconProvider* QDirModel_IconProvider(const QDirModel* self) { return self->iconProvider(); } -void QDirModel_SetNameFilters(QDirModel* self, struct miqt_array /* of struct miqt_string */ filters) { +void QDirModel_SetNameFilters(QDirModel* self, struct miqt_array /* of struct miqt_string */ filters) { QStringList filters_QList; filters_QList.reserve(filters.len); struct miqt_string* filters_arr = static_cast(filters.data); @@ -174,7 +174,7 @@ void QDirModel_SetNameFilters(QDirModel* self, struct miqt_array /* of struct mi self->setNameFilters(filters_QList); } -struct miqt_array QDirModel_NameFilters(const QDirModel* self) { +struct miqt_array /* of struct miqt_string */ QDirModel_NameFilters(const QDirModel* self) { QStringList _ret = self->nameFilters(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qdirmodel.h b/qt/gen_qdirmodel.h index bf1ef571..376b40d2 100644 --- a/qt/gen_qdirmodel.h +++ b/qt/gen_qdirmodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDIRMODEL_H -#define GEN_QDIRMODEL_H +#pragma once +#ifndef MIQT_QT_GEN_QDIRMODEL_H +#define MIQT_QT_GEN_QDIRMODEL_H #include #include @@ -35,9 +36,9 @@ typedef struct QObject QObject; typedef struct QVariant QVariant; #endif -QDirModel* QDirModel_new(struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort); +QDirModel* QDirModel_new(struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort); QDirModel* QDirModel_new2(); -QDirModel* QDirModel_new3(struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort, QObject* parent); +QDirModel* QDirModel_new3(struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort, QObject* parent); QDirModel* QDirModel_new4(QObject* parent); QMetaObject* QDirModel_MetaObject(const QDirModel* self); void* QDirModel_Metacast(QDirModel* self, const char* param1); @@ -53,14 +54,14 @@ QVariant* QDirModel_HeaderData(const QDirModel* self, int section, int orientati bool QDirModel_HasChildren(const QDirModel* self); int QDirModel_Flags(const QDirModel* self, QModelIndex* index); void QDirModel_Sort(QDirModel* self, int column); -struct miqt_array QDirModel_MimeTypes(const QDirModel* self); -QMimeData* QDirModel_MimeData(const QDirModel* self, struct miqt_array /* of QModelIndex* */ indexes); +struct miqt_array /* of struct miqt_string */ QDirModel_MimeTypes(const QDirModel* self); +QMimeData* QDirModel_MimeData(const QDirModel* self, struct miqt_array /* of QModelIndex* */ indexes); bool QDirModel_DropMimeData(QDirModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); int QDirModel_SupportedDropActions(const QDirModel* self); void QDirModel_SetIconProvider(QDirModel* self, QFileIconProvider* provider); QFileIconProvider* QDirModel_IconProvider(const QDirModel* self); -void QDirModel_SetNameFilters(QDirModel* self, struct miqt_array /* of struct miqt_string */ filters); -struct miqt_array QDirModel_NameFilters(const QDirModel* self); +void QDirModel_SetNameFilters(QDirModel* self, struct miqt_array /* of struct miqt_string */ filters); +struct miqt_array /* of struct miqt_string */ QDirModel_NameFilters(const QDirModel* self); void QDirModel_SetFilter(QDirModel* self, int filters); int QDirModel_Filter(const QDirModel* self); void QDirModel_SetSorting(QDirModel* self, int sort); diff --git a/qt/gen_qdockwidget.h b/qt/gen_qdockwidget.h index 1a538fa0..0b3a3327 100644 --- a/qt/gen_qdockwidget.h +++ b/qt/gen_qdockwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDOCKWIDGET_H -#define GEN_QDOCKWIDGET_H +#pragma once +#ifndef MIQT_QT_GEN_QDOCKWIDGET_H +#define MIQT_QT_GEN_QDOCKWIDGET_H #include #include diff --git a/qt/gen_qdrag.h b/qt/gen_qdrag.h index 9e66f73e..ab610745 100644 --- a/qt/gen_qdrag.h +++ b/qt/gen_qdrag.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDRAG_H -#define GEN_QDRAG_H +#pragma once +#ifndef MIQT_QT_GEN_QDRAG_H +#define MIQT_QT_GEN_QDRAG_H #include #include diff --git a/qt/gen_qdrawutil.h b/qt/gen_qdrawutil.h index dcab4e72..837c264c 100644 --- a/qt/gen_qdrawutil.h +++ b/qt/gen_qdrawutil.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDRAWUTIL_H -#define GEN_QDRAWUTIL_H +#pragma once +#ifndef MIQT_QT_GEN_QDRAWUTIL_H +#define MIQT_QT_GEN_QDRAWUTIL_H #include #include diff --git a/qt/gen_qeasingcurve.cpp b/qt/gen_qeasingcurve.cpp index 5ae0d963..98edb0bc 100644 --- a/qt/gen_qeasingcurve.cpp +++ b/qt/gen_qeasingcurve.cpp @@ -68,7 +68,7 @@ void QEasingCurve_AddTCBSegment(QEasingCurve* self, QPointF* nextPoint, double t self->addTCBSegment(*nextPoint, static_cast(t), static_cast(c), static_cast(b)); } -struct miqt_array QEasingCurve_ToCubicSpline(const QEasingCurve* self) { +struct miqt_array /* of QPointF* */ QEasingCurve_ToCubicSpline(const QEasingCurve* self) { QVector _ret = self->toCubicSpline(); // Convert QList<> from C++ memory to manually-managed C memory QPointF** _arr = static_cast(malloc(sizeof(QPointF*) * _ret.length())); diff --git a/qt/gen_qeasingcurve.h b/qt/gen_qeasingcurve.h index b70f923a..5eb672e5 100644 --- a/qt/gen_qeasingcurve.h +++ b/qt/gen_qeasingcurve.h @@ -1,5 +1,6 @@ -#ifndef GEN_QEASINGCURVE_H -#define GEN_QEASINGCURVE_H +#pragma once +#ifndef MIQT_QT_GEN_QEASINGCURVE_H +#define MIQT_QT_GEN_QEASINGCURVE_H #include #include @@ -36,7 +37,7 @@ double QEasingCurve_Overshoot(const QEasingCurve* self); void QEasingCurve_SetOvershoot(QEasingCurve* self, double overshoot); void QEasingCurve_AddCubicBezierSegment(QEasingCurve* self, QPointF* c1, QPointF* c2, QPointF* endPoint); void QEasingCurve_AddTCBSegment(QEasingCurve* self, QPointF* nextPoint, double t, double c, double b); -struct miqt_array QEasingCurve_ToCubicSpline(const QEasingCurve* self); +struct miqt_array /* of QPointF* */ QEasingCurve_ToCubicSpline(const QEasingCurve* self); int QEasingCurve_Type(const QEasingCurve* self); void QEasingCurve_SetType(QEasingCurve* self, int typeVal); double QEasingCurve_ValueForProgress(const QEasingCurve* self, double progress); diff --git a/qt/gen_qelapsedtimer.h b/qt/gen_qelapsedtimer.h index 21b90646..84623da3 100644 --- a/qt/gen_qelapsedtimer.h +++ b/qt/gen_qelapsedtimer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QELAPSEDTIMER_H -#define GEN_QELAPSEDTIMER_H +#pragma once +#ifndef MIQT_QT_GEN_QELAPSEDTIMER_H +#define MIQT_QT_GEN_QELAPSEDTIMER_H #include #include diff --git a/qt/gen_qerrormessage.h b/qt/gen_qerrormessage.h index 75ce7c75..854dc91f 100644 --- a/qt/gen_qerrormessage.h +++ b/qt/gen_qerrormessage.h @@ -1,5 +1,6 @@ -#ifndef GEN_QERRORMESSAGE_H -#define GEN_QERRORMESSAGE_H +#pragma once +#ifndef MIQT_QT_GEN_QERRORMESSAGE_H +#define MIQT_QT_GEN_QERRORMESSAGE_H #include #include diff --git a/qt/gen_qevent.cpp b/qt/gen_qevent.cpp index 7c972334..00ea6dec 100644 --- a/qt/gen_qevent.cpp +++ b/qt/gen_qevent.cpp @@ -935,7 +935,7 @@ QInputMethodEvent* QInputMethodEvent_new() { return new QInputMethodEvent(); } -QInputMethodEvent* QInputMethodEvent_new2(struct miqt_string preeditText, struct miqt_array /* of QInputMethodEvent__Attribute* */ attributes) { +QInputMethodEvent* QInputMethodEvent_new2(struct miqt_string preeditText, struct miqt_array /* of QInputMethodEvent__Attribute* */ attributes) { QString preeditText_QString = QString::fromUtf8(preeditText.data, preeditText.len); QList attributes_QList; attributes_QList.reserve(attributes.len); @@ -955,7 +955,7 @@ void QInputMethodEvent_SetCommitString(QInputMethodEvent* self, struct miqt_stri self->setCommitString(commitString_QString); } -struct miqt_array QInputMethodEvent_Attributes(const QInputMethodEvent* self) { +struct miqt_array /* of QInputMethodEvent__Attribute* */ QInputMethodEvent_Attributes(const QInputMethodEvent* self) { const QList& _ret = self->attributes(); // Convert QList<> from C++ memory to manually-managed C memory QInputMethodEvent__Attribute** _arr = static_cast(malloc(sizeof(QInputMethodEvent__Attribute*) * _ret.length())); @@ -1440,7 +1440,7 @@ QTouchEvent* QTouchEvent_new5(int eventType, QTouchDevice* device, int modifiers return new QTouchEvent(static_cast(eventType), device, static_cast(modifiers), static_cast(touchPointStates)); } -QTouchEvent* QTouchEvent_new6(int eventType, QTouchDevice* device, int modifiers, int touchPointStates, struct miqt_array /* of QTouchEvent__TouchPoint* */ touchPoints) { +QTouchEvent* QTouchEvent_new6(int eventType, QTouchDevice* device, int modifiers, int touchPointStates, struct miqt_array /* of QTouchEvent__TouchPoint* */ touchPoints) { QList touchPoints_QList; touchPoints_QList.reserve(touchPoints.len); QTouchEvent__TouchPoint** touchPoints_arr = static_cast(touchPoints.data); @@ -1463,7 +1463,7 @@ int QTouchEvent_TouchPointStates(const QTouchEvent* self) { return static_cast(_ret); } -struct miqt_array QTouchEvent_TouchPoints(const QTouchEvent* self) { +struct miqt_array /* of QTouchEvent__TouchPoint* */ QTouchEvent_TouchPoints(const QTouchEvent* self) { const QList& _ret = self->touchPoints(); // Convert QList<> from C++ memory to manually-managed C memory QTouchEvent__TouchPoint** _arr = static_cast(malloc(sizeof(QTouchEvent__TouchPoint*) * _ret.length())); @@ -1492,7 +1492,7 @@ void QTouchEvent_SetTouchPointStates(QTouchEvent* self, int aTouchPointStates) { self->setTouchPointStates(static_cast(aTouchPointStates)); } -void QTouchEvent_SetTouchPoints(QTouchEvent* self, struct miqt_array /* of QTouchEvent__TouchPoint* */ atouchPoints) { +void QTouchEvent_SetTouchPoints(QTouchEvent* self, struct miqt_array /* of QTouchEvent__TouchPoint* */ atouchPoints) { QList atouchPoints_QList; atouchPoints_QList.reserve(atouchPoints.len); QTouchEvent__TouchPoint** atouchPoints_arr = static_cast(atouchPoints.data); @@ -1761,7 +1761,7 @@ int QTouchEvent__TouchPoint_Flags(const QTouchEvent__TouchPoint* self) { return static_cast(_ret); } -struct miqt_array QTouchEvent__TouchPoint_RawScreenPositions(const QTouchEvent__TouchPoint* self) { +struct miqt_array /* of QPointF* */ QTouchEvent__TouchPoint_RawScreenPositions(const QTouchEvent__TouchPoint* self) { QVector _ret = self->rawScreenPositions(); // Convert QList<> from C++ memory to manually-managed C memory QPointF** _arr = static_cast(malloc(sizeof(QPointF*) * _ret.length())); @@ -1854,7 +1854,7 @@ void QTouchEvent__TouchPoint_SetFlags(QTouchEvent__TouchPoint* self, int flags) self->setFlags(static_cast(flags)); } -void QTouchEvent__TouchPoint_SetRawScreenPositions(QTouchEvent__TouchPoint* self, struct miqt_array /* of QPointF* */ positions) { +void QTouchEvent__TouchPoint_SetRawScreenPositions(QTouchEvent__TouchPoint* self, struct miqt_array /* of QPointF* */ positions) { QVector positions_QList; positions_QList.reserve(positions.len); QPointF** positions_arr = static_cast(positions.data); diff --git a/qt/gen_qevent.h b/qt/gen_qevent.h index eb43e595..14a30649 100644 --- a/qt/gen_qevent.h +++ b/qt/gen_qevent.h @@ -1,5 +1,6 @@ -#ifndef GEN_QEVENT_H -#define GEN_QEVENT_H +#pragma once +#ifndef MIQT_QT_GEN_QEVENT_H +#define MIQT_QT_GEN_QEVENT_H #include #include @@ -357,10 +358,10 @@ int QContextMenuEvent_Reason(const QContextMenuEvent* self); void QContextMenuEvent_Delete(QContextMenuEvent* self); QInputMethodEvent* QInputMethodEvent_new(); -QInputMethodEvent* QInputMethodEvent_new2(struct miqt_string preeditText, struct miqt_array /* of QInputMethodEvent__Attribute* */ attributes); +QInputMethodEvent* QInputMethodEvent_new2(struct miqt_string preeditText, struct miqt_array /* of QInputMethodEvent__Attribute* */ attributes); QInputMethodEvent* QInputMethodEvent_new3(QInputMethodEvent* other); void QInputMethodEvent_SetCommitString(QInputMethodEvent* self, struct miqt_string commitString); -struct miqt_array QInputMethodEvent_Attributes(const QInputMethodEvent* self); +struct miqt_array /* of QInputMethodEvent__Attribute* */ QInputMethodEvent_Attributes(const QInputMethodEvent* self); struct miqt_string QInputMethodEvent_PreeditString(const QInputMethodEvent* self); struct miqt_string QInputMethodEvent_CommitString(const QInputMethodEvent* self); int QInputMethodEvent_ReplacementStart(const QInputMethodEvent* self); @@ -480,16 +481,16 @@ QTouchEvent* QTouchEvent_new2(QTouchEvent* param1); QTouchEvent* QTouchEvent_new3(int eventType, QTouchDevice* device); QTouchEvent* QTouchEvent_new4(int eventType, QTouchDevice* device, int modifiers); QTouchEvent* QTouchEvent_new5(int eventType, QTouchDevice* device, int modifiers, int touchPointStates); -QTouchEvent* QTouchEvent_new6(int eventType, QTouchDevice* device, int modifiers, int touchPointStates, struct miqt_array /* of QTouchEvent__TouchPoint* */ touchPoints); +QTouchEvent* QTouchEvent_new6(int eventType, QTouchDevice* device, int modifiers, int touchPointStates, struct miqt_array /* of QTouchEvent__TouchPoint* */ touchPoints); QWindow* QTouchEvent_Window(const QTouchEvent* self); QObject* QTouchEvent_Target(const QTouchEvent* self); int QTouchEvent_TouchPointStates(const QTouchEvent* self); -struct miqt_array QTouchEvent_TouchPoints(const QTouchEvent* self); +struct miqt_array /* of QTouchEvent__TouchPoint* */ QTouchEvent_TouchPoints(const QTouchEvent* self); QTouchDevice* QTouchEvent_Device(const QTouchEvent* self); void QTouchEvent_SetWindow(QTouchEvent* self, QWindow* awindow); void QTouchEvent_SetTarget(QTouchEvent* self, QObject* atarget); void QTouchEvent_SetTouchPointStates(QTouchEvent* self, int aTouchPointStates); -void QTouchEvent_SetTouchPoints(QTouchEvent* self, struct miqt_array /* of QTouchEvent__TouchPoint* */ atouchPoints); +void QTouchEvent_SetTouchPoints(QTouchEvent* self, struct miqt_array /* of QTouchEvent__TouchPoint* */ atouchPoints); void QTouchEvent_SetDevice(QTouchEvent* self, QTouchDevice* adevice); void QTouchEvent_Delete(QTouchEvent* self); @@ -559,7 +560,7 @@ double QTouchEvent__TouchPoint_Rotation(const QTouchEvent__TouchPoint* self); QSizeF* QTouchEvent__TouchPoint_EllipseDiameters(const QTouchEvent__TouchPoint* self); QVector2D* QTouchEvent__TouchPoint_Velocity(const QTouchEvent__TouchPoint* self); int QTouchEvent__TouchPoint_Flags(const QTouchEvent__TouchPoint* self); -struct miqt_array QTouchEvent__TouchPoint_RawScreenPositions(const QTouchEvent__TouchPoint* self); +struct miqt_array /* of QPointF* */ QTouchEvent__TouchPoint_RawScreenPositions(const QTouchEvent__TouchPoint* self); void QTouchEvent__TouchPoint_SetId(QTouchEvent__TouchPoint* self, int id); void QTouchEvent__TouchPoint_SetUniqueId(QTouchEvent__TouchPoint* self, long long uid); void QTouchEvent__TouchPoint_SetState(QTouchEvent__TouchPoint* self, int state); @@ -580,7 +581,7 @@ void QTouchEvent__TouchPoint_SetRotation(QTouchEvent__TouchPoint* self, double a void QTouchEvent__TouchPoint_SetEllipseDiameters(QTouchEvent__TouchPoint* self, QSizeF* dia); void QTouchEvent__TouchPoint_SetVelocity(QTouchEvent__TouchPoint* self, QVector2D* v); void QTouchEvent__TouchPoint_SetFlags(QTouchEvent__TouchPoint* self, int flags); -void QTouchEvent__TouchPoint_SetRawScreenPositions(QTouchEvent__TouchPoint* self, struct miqt_array /* of QPointF* */ positions); +void QTouchEvent__TouchPoint_SetRawScreenPositions(QTouchEvent__TouchPoint* self, struct miqt_array /* of QPointF* */ positions); void QTouchEvent__TouchPoint_Delete(QTouchEvent__TouchPoint* self); #ifdef __cplusplus diff --git a/qt/gen_qeventloop.h b/qt/gen_qeventloop.h index 977ba9e0..f868c008 100644 --- a/qt/gen_qeventloop.h +++ b/qt/gen_qeventloop.h @@ -1,5 +1,6 @@ -#ifndef GEN_QEVENTLOOP_H -#define GEN_QEVENTLOOP_H +#pragma once +#ifndef MIQT_QT_GEN_QEVENTLOOP_H +#define MIQT_QT_GEN_QEVENTLOOP_H #include #include diff --git a/qt/gen_qeventtransition.h b/qt/gen_qeventtransition.h index ef669a32..c6e4a027 100644 --- a/qt/gen_qeventtransition.h +++ b/qt/gen_qeventtransition.h @@ -1,5 +1,6 @@ -#ifndef GEN_QEVENTTRANSITION_H -#define GEN_QEVENTTRANSITION_H +#pragma once +#ifndef MIQT_QT_GEN_QEVENTTRANSITION_H +#define MIQT_QT_GEN_QEVENTTRANSITION_H #include #include diff --git a/qt/gen_qexception.h b/qt/gen_qexception.h index 19f4b51f..919582dd 100644 --- a/qt/gen_qexception.h +++ b/qt/gen_qexception.h @@ -1,5 +1,6 @@ -#ifndef GEN_QEXCEPTION_H -#define GEN_QEXCEPTION_H +#pragma once +#ifndef MIQT_QT_GEN_QEXCEPTION_H +#define MIQT_QT_GEN_QEXCEPTION_H #include #include diff --git a/qt/gen_qfactoryinterface.cpp b/qt/gen_qfactoryinterface.cpp index dec46a8f..668f3c85 100644 --- a/qt/gen_qfactoryinterface.cpp +++ b/qt/gen_qfactoryinterface.cpp @@ -7,7 +7,7 @@ #include "gen_qfactoryinterface.h" #include "_cgo_export.h" -struct miqt_array QFactoryInterface_Keys(const QFactoryInterface* self) { +struct miqt_array /* of struct miqt_string */ QFactoryInterface_Keys(const QFactoryInterface* self) { QStringList _ret = self->keys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qfactoryinterface.h b/qt/gen_qfactoryinterface.h index e9f4546f..ea1b1736 100644 --- a/qt/gen_qfactoryinterface.h +++ b/qt/gen_qfactoryinterface.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFACTORYINTERFACE_H -#define GEN_QFACTORYINTERFACE_H +#pragma once +#ifndef MIQT_QT_GEN_QFACTORYINTERFACE_H +#define MIQT_QT_GEN_QFACTORYINTERFACE_H #include #include @@ -19,7 +20,7 @@ class QFactoryInterface; typedef struct QFactoryInterface QFactoryInterface; #endif -struct miqt_array QFactoryInterface_Keys(const QFactoryInterface* self); +struct miqt_array /* of struct miqt_string */ QFactoryInterface_Keys(const QFactoryInterface* self); void QFactoryInterface_Delete(QFactoryInterface* self); #ifdef __cplusplus diff --git a/qt/gen_qfile.h b/qt/gen_qfile.h index 30cc88ed..f82ce90a 100644 --- a/qt/gen_qfile.h +++ b/qt/gen_qfile.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILE_H -#define GEN_QFILE_H +#pragma once +#ifndef MIQT_QT_GEN_QFILE_H +#define MIQT_QT_GEN_QFILE_H #include #include diff --git a/qt/gen_qfiledevice.go b/qt/gen_qfiledevice.go index 5e527660..cae435e5 100644 --- a/qt/gen_qfiledevice.go +++ b/qt/gen_qfiledevice.go @@ -191,7 +191,7 @@ func (this *QFileDevice) SetPermissions(permissionSpec QFileDevice__Permission) } func (this *QFileDevice) Map(offset int64, size int64) *byte { - return (*byte)(C.QFileDevice_Map(this.h, (C.longlong)(offset), (C.longlong)(size))) + return (*byte)(unsafe.Pointer(C.QFileDevice_Map(this.h, (C.longlong)(offset), (C.longlong)(size)))) } func (this *QFileDevice) Unmap(address *byte) bool { @@ -254,7 +254,7 @@ func QFileDevice_TrUtf83(s string, c string, n int) string { } func (this *QFileDevice) Map3(offset int64, size int64, flags QFileDevice__MemoryMapFlags) *byte { - return (*byte)(C.QFileDevice_Map3(this.h, (C.longlong)(offset), (C.longlong)(size), (C.int)(flags))) + return (*byte)(unsafe.Pointer(C.QFileDevice_Map3(this.h, (C.longlong)(offset), (C.longlong)(size), (C.int)(flags)))) } // Delete this object from C++ memory. diff --git a/qt/gen_qfiledevice.h b/qt/gen_qfiledevice.h index 74328f51..b03245c4 100644 --- a/qt/gen_qfiledevice.h +++ b/qt/gen_qfiledevice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILEDEVICE_H -#define GEN_QFILEDEVICE_H +#pragma once +#ifndef MIQT_QT_GEN_QFILEDEVICE_H +#define MIQT_QT_GEN_QFILEDEVICE_H #include #include diff --git a/qt/gen_qfiledialog.cpp b/qt/gen_qfiledialog.cpp index 2f6ee920..2de7ec53 100644 --- a/qt/gen_qfiledialog.cpp +++ b/qt/gen_qfiledialog.cpp @@ -101,7 +101,7 @@ void QFileDialog_SelectFile(QFileDialog* self, struct miqt_string filename) { self->selectFile(filename_QString); } -struct miqt_array QFileDialog_SelectedFiles(const QFileDialog* self) { +struct miqt_array /* of struct miqt_string */ QFileDialog_SelectedFiles(const QFileDialog* self) { QStringList _ret = self->selectedFiles(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -125,7 +125,7 @@ void QFileDialog_SelectUrl(QFileDialog* self, QUrl* url) { self->selectUrl(*url); } -struct miqt_array QFileDialog_SelectedUrls(const QFileDialog* self) { +struct miqt_array /* of QUrl* */ QFileDialog_SelectedUrls(const QFileDialog* self) { QList _ret = self->selectedUrls(); // Convert QList<> from C++ memory to manually-managed C memory QUrl** _arr = static_cast(malloc(sizeof(QUrl*) * _ret.length())); @@ -151,7 +151,7 @@ void QFileDialog_SetNameFilter(QFileDialog* self, struct miqt_string filter) { self->setNameFilter(filter_QString); } -void QFileDialog_SetNameFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters) { +void QFileDialog_SetNameFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters) { QStringList filters_QList; filters_QList.reserve(filters.len); struct miqt_string* filters_arr = static_cast(filters.data); @@ -162,7 +162,7 @@ void QFileDialog_SetNameFilters(QFileDialog* self, struct miqt_array /* of struc self->setNameFilters(filters_QList); } -struct miqt_array QFileDialog_NameFilters(const QFileDialog* self) { +struct miqt_array /* of struct miqt_string */ QFileDialog_NameFilters(const QFileDialog* self) { QStringList _ret = self->nameFilters(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -209,7 +209,7 @@ struct miqt_string QFileDialog_SelectedNameFilter(const QFileDialog* self) { return _ms; } -void QFileDialog_SetMimeTypeFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters) { +void QFileDialog_SetMimeTypeFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters) { QStringList filters_QList; filters_QList.reserve(filters.len); struct miqt_string* filters_arr = static_cast(filters.data); @@ -220,7 +220,7 @@ void QFileDialog_SetMimeTypeFilters(QFileDialog* self, struct miqt_array /* of s self->setMimeTypeFilters(filters_QList); } -struct miqt_array QFileDialog_MimeTypeFilters(const QFileDialog* self) { +struct miqt_array /* of struct miqt_string */ QFileDialog_MimeTypeFilters(const QFileDialog* self) { QStringList _ret = self->mimeTypeFilters(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -297,7 +297,7 @@ bool QFileDialog_ResolveSymlinks(const QFileDialog* self) { return self->resolveSymlinks(); } -void QFileDialog_SetSidebarUrls(QFileDialog* self, struct miqt_array /* of QUrl* */ urls) { +void QFileDialog_SetSidebarUrls(QFileDialog* self, struct miqt_array /* of QUrl* */ urls) { QList urls_QList; urls_QList.reserve(urls.len); QUrl** urls_arr = static_cast(urls.data); @@ -307,7 +307,7 @@ void QFileDialog_SetSidebarUrls(QFileDialog* self, struct miqt_array /* of QUrl* self->setSidebarUrls(urls_QList); } -struct miqt_array QFileDialog_SidebarUrls(const QFileDialog* self) { +struct miqt_array /* of QUrl* */ QFileDialog_SidebarUrls(const QFileDialog* self) { QList _ret = self->sidebarUrls(); // Convert QList<> from C++ memory to manually-managed C memory QUrl** _arr = static_cast(malloc(sizeof(QUrl*) * _ret.length())); @@ -358,7 +358,7 @@ struct miqt_string QFileDialog_DefaultSuffix(const QFileDialog* self) { return _ms; } -void QFileDialog_SetHistory(QFileDialog* self, struct miqt_array /* of struct miqt_string */ paths) { +void QFileDialog_SetHistory(QFileDialog* self, struct miqt_array /* of struct miqt_string */ paths) { QStringList paths_QList; paths_QList.reserve(paths.len); struct miqt_string* paths_arr = static_cast(paths.data); @@ -369,7 +369,7 @@ void QFileDialog_SetHistory(QFileDialog* self, struct miqt_array /* of struct mi self->setHistory(paths_QList); } -struct miqt_array QFileDialog_History(const QFileDialog* self) { +struct miqt_array /* of struct miqt_string */ QFileDialog_History(const QFileDialog* self) { QStringList _ret = self->history(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -421,7 +421,7 @@ struct miqt_string QFileDialog_LabelText(const QFileDialog* self, int label) { return _ms; } -void QFileDialog_SetSupportedSchemes(QFileDialog* self, struct miqt_array /* of struct miqt_string */ schemes) { +void QFileDialog_SetSupportedSchemes(QFileDialog* self, struct miqt_array /* of struct miqt_string */ schemes) { QStringList schemes_QList; schemes_QList.reserve(schemes.len); struct miqt_string* schemes_arr = static_cast(schemes.data); @@ -432,7 +432,7 @@ void QFileDialog_SetSupportedSchemes(QFileDialog* self, struct miqt_array /* of self->setSupportedSchemes(schemes_QList); } -struct miqt_array QFileDialog_SupportedSchemes(const QFileDialog* self) { +struct miqt_array /* of struct miqt_string */ QFileDialog_SupportedSchemes(const QFileDialog* self) { QStringList _ret = self->supportedSchemes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -500,7 +500,7 @@ void QFileDialog_connect_FileSelected(QFileDialog* self, intptr_t slot) { }); } -void QFileDialog_FilesSelected(QFileDialog* self, struct miqt_array /* of struct miqt_string */ files) { +void QFileDialog_FilesSelected(QFileDialog* self, struct miqt_array /* of struct miqt_string */ files) { QStringList files_QList; files_QList.reserve(files.len); struct miqt_string* files_arr = static_cast(files.data); @@ -529,7 +529,7 @@ void QFileDialog_connect_FilesSelected(QFileDialog* self, intptr_t slot) { struct miqt_array files_out; files_out.len = files_ret.length(); files_out.data = static_cast(files_arr); - struct miqt_array sigval1 = files_out; + struct miqt_array /* of struct miqt_string */ sigval1 = files_out; miqt_exec_callback_QFileDialog_FilesSelected(slot, sigval1); }); } @@ -585,7 +585,7 @@ void QFileDialog_connect_UrlSelected(QFileDialog* self, intptr_t slot) { }); } -void QFileDialog_UrlsSelected(QFileDialog* self, struct miqt_array /* of QUrl* */ urls) { +void QFileDialog_UrlsSelected(QFileDialog* self, struct miqt_array /* of QUrl* */ urls) { QList urls_QList; urls_QList.reserve(urls.len); QUrl** urls_arr = static_cast(urls.data); @@ -606,7 +606,7 @@ void QFileDialog_connect_UrlsSelected(QFileDialog* self, intptr_t slot) { struct miqt_array urls_out; urls_out.len = urls_ret.length(); urls_out.data = static_cast(urls_arr); - struct miqt_array sigval1 = urls_out; + struct miqt_array /* of QUrl* */ sigval1 = urls_out; miqt_exec_callback_QFileDialog_UrlsSelected(slot, sigval1); }); } @@ -701,7 +701,7 @@ QUrl* QFileDialog_GetExistingDirectoryUrl() { return new QUrl(QFileDialog::getExistingDirectoryUrl()); } -struct miqt_array QFileDialog_GetOpenFileNames() { +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames() { QStringList _ret = QFileDialog::getOpenFileNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -721,7 +721,7 @@ struct miqt_array QFileDialog_GetOpenFileNames() { return _out; } -struct miqt_array QFileDialog_GetOpenFileUrls() { +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls() { QList _ret = QFileDialog::getOpenFileUrls(); // Convert QList<> from C++ memory to manually-managed C memory QUrl** _arr = static_cast(malloc(sizeof(QUrl*) * _ret.length())); @@ -996,7 +996,7 @@ QUrl* QFileDialog_GetExistingDirectoryUrl4(QWidget* parent, struct miqt_string c return new QUrl(QFileDialog::getExistingDirectoryUrl(parent, caption_QString, *dir, static_cast(options))); } -QUrl* QFileDialog_GetExistingDirectoryUrl5(QWidget* parent, struct miqt_string caption, QUrl* dir, int options, struct miqt_array /* of struct miqt_string */ supportedSchemes) { +QUrl* QFileDialog_GetExistingDirectoryUrl5(QWidget* parent, struct miqt_string caption, QUrl* dir, int options, struct miqt_array /* of struct miqt_string */ supportedSchemes) { QString caption_QString = QString::fromUtf8(caption.data, caption.len); QStringList supportedSchemes_QList; supportedSchemes_QList.reserve(supportedSchemes.len); @@ -1008,7 +1008,7 @@ QUrl* QFileDialog_GetExistingDirectoryUrl5(QWidget* parent, struct miqt_string c return new QUrl(QFileDialog::getExistingDirectoryUrl(parent, caption_QString, *dir, static_cast(options), supportedSchemes_QList)); } -struct miqt_array QFileDialog_GetOpenFileNames1(QWidget* parent) { +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames1(QWidget* parent) { QStringList _ret = QFileDialog::getOpenFileNames(parent); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -1028,7 +1028,7 @@ struct miqt_array QFileDialog_GetOpenFileNames1(QWidget* parent) { return _out; } -struct miqt_array QFileDialog_GetOpenFileNames2(QWidget* parent, struct miqt_string caption) { +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames2(QWidget* parent, struct miqt_string caption) { QString caption_QString = QString::fromUtf8(caption.data, caption.len); QStringList _ret = QFileDialog::getOpenFileNames(parent, caption_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -1049,7 +1049,7 @@ struct miqt_array QFileDialog_GetOpenFileNames2(QWidget* parent, struct miqt_str return _out; } -struct miqt_array QFileDialog_GetOpenFileNames3(QWidget* parent, struct miqt_string caption, struct miqt_string dir) { +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames3(QWidget* parent, struct miqt_string caption, struct miqt_string dir) { QString caption_QString = QString::fromUtf8(caption.data, caption.len); QString dir_QString = QString::fromUtf8(dir.data, dir.len); QStringList _ret = QFileDialog::getOpenFileNames(parent, caption_QString, dir_QString); @@ -1071,7 +1071,7 @@ struct miqt_array QFileDialog_GetOpenFileNames3(QWidget* parent, struct miqt_str return _out; } -struct miqt_array QFileDialog_GetOpenFileNames4(QWidget* parent, struct miqt_string caption, struct miqt_string dir, struct miqt_string filter) { +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames4(QWidget* parent, struct miqt_string caption, struct miqt_string dir, struct miqt_string filter) { QString caption_QString = QString::fromUtf8(caption.data, caption.len); QString dir_QString = QString::fromUtf8(dir.data, dir.len); QString filter_QString = QString::fromUtf8(filter.data, filter.len); @@ -1094,7 +1094,7 @@ struct miqt_array QFileDialog_GetOpenFileNames4(QWidget* parent, struct miqt_str return _out; } -struct miqt_array QFileDialog_GetOpenFileUrls1(QWidget* parent) { +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls1(QWidget* parent) { QList _ret = QFileDialog::getOpenFileUrls(parent); // Convert QList<> from C++ memory to manually-managed C memory QUrl** _arr = static_cast(malloc(sizeof(QUrl*) * _ret.length())); @@ -1107,7 +1107,7 @@ struct miqt_array QFileDialog_GetOpenFileUrls1(QWidget* parent) { return _out; } -struct miqt_array QFileDialog_GetOpenFileUrls2(QWidget* parent, struct miqt_string caption) { +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls2(QWidget* parent, struct miqt_string caption) { QString caption_QString = QString::fromUtf8(caption.data, caption.len); QList _ret = QFileDialog::getOpenFileUrls(parent, caption_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -1121,7 +1121,7 @@ struct miqt_array QFileDialog_GetOpenFileUrls2(QWidget* parent, struct miqt_stri return _out; } -struct miqt_array QFileDialog_GetOpenFileUrls3(QWidget* parent, struct miqt_string caption, QUrl* dir) { +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls3(QWidget* parent, struct miqt_string caption, QUrl* dir) { QString caption_QString = QString::fromUtf8(caption.data, caption.len); QList _ret = QFileDialog::getOpenFileUrls(parent, caption_QString, *dir); // Convert QList<> from C++ memory to manually-managed C memory @@ -1135,7 +1135,7 @@ struct miqt_array QFileDialog_GetOpenFileUrls3(QWidget* parent, struct miqt_stri return _out; } -struct miqt_array QFileDialog_GetOpenFileUrls4(QWidget* parent, struct miqt_string caption, QUrl* dir, struct miqt_string filter) { +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls4(QWidget* parent, struct miqt_string caption, QUrl* dir, struct miqt_string filter) { QString caption_QString = QString::fromUtf8(caption.data, caption.len); QString filter_QString = QString::fromUtf8(filter.data, filter.len); QList _ret = QFileDialog::getOpenFileUrls(parent, caption_QString, *dir, filter_QString); diff --git a/qt/gen_qfiledialog.h b/qt/gen_qfiledialog.h index abe997bb..c237e6c2 100644 --- a/qt/gen_qfiledialog.h +++ b/qt/gen_qfiledialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILEDIALOG_H -#define GEN_QFILEDIALOG_H +#pragma once +#ifndef MIQT_QT_GEN_QFILEDIALOG_H +#define MIQT_QT_GEN_QFILEDIALOG_H #include #include @@ -51,19 +52,19 @@ QDir* QFileDialog_Directory(const QFileDialog* self); void QFileDialog_SetDirectoryUrl(QFileDialog* self, QUrl* directory); QUrl* QFileDialog_DirectoryUrl(const QFileDialog* self); void QFileDialog_SelectFile(QFileDialog* self, struct miqt_string filename); -struct miqt_array QFileDialog_SelectedFiles(const QFileDialog* self); +struct miqt_array /* of struct miqt_string */ QFileDialog_SelectedFiles(const QFileDialog* self); void QFileDialog_SelectUrl(QFileDialog* self, QUrl* url); -struct miqt_array QFileDialog_SelectedUrls(const QFileDialog* self); +struct miqt_array /* of QUrl* */ QFileDialog_SelectedUrls(const QFileDialog* self); void QFileDialog_SetNameFilterDetailsVisible(QFileDialog* self, bool enabled); bool QFileDialog_IsNameFilterDetailsVisible(const QFileDialog* self); void QFileDialog_SetNameFilter(QFileDialog* self, struct miqt_string filter); -void QFileDialog_SetNameFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters); -struct miqt_array QFileDialog_NameFilters(const QFileDialog* self); +void QFileDialog_SetNameFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters); +struct miqt_array /* of struct miqt_string */ QFileDialog_NameFilters(const QFileDialog* self); void QFileDialog_SelectNameFilter(QFileDialog* self, struct miqt_string filter); struct miqt_string QFileDialog_SelectedMimeTypeFilter(const QFileDialog* self); struct miqt_string QFileDialog_SelectedNameFilter(const QFileDialog* self); -void QFileDialog_SetMimeTypeFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters); -struct miqt_array QFileDialog_MimeTypeFilters(const QFileDialog* self); +void QFileDialog_SetMimeTypeFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters); +struct miqt_array /* of struct miqt_string */ QFileDialog_MimeTypeFilters(const QFileDialog* self); void QFileDialog_SelectMimeTypeFilter(QFileDialog* self, struct miqt_string filter); int QFileDialog_Filter(const QFileDialog* self); void QFileDialog_SetFilter(QFileDialog* self, int filters); @@ -77,24 +78,24 @@ void QFileDialog_SetReadOnly(QFileDialog* self, bool enabled); bool QFileDialog_IsReadOnly(const QFileDialog* self); void QFileDialog_SetResolveSymlinks(QFileDialog* self, bool enabled); bool QFileDialog_ResolveSymlinks(const QFileDialog* self); -void QFileDialog_SetSidebarUrls(QFileDialog* self, struct miqt_array /* of QUrl* */ urls); -struct miqt_array QFileDialog_SidebarUrls(const QFileDialog* self); +void QFileDialog_SetSidebarUrls(QFileDialog* self, struct miqt_array /* of QUrl* */ urls); +struct miqt_array /* of QUrl* */ QFileDialog_SidebarUrls(const QFileDialog* self); struct miqt_string QFileDialog_SaveState(const QFileDialog* self); bool QFileDialog_RestoreState(QFileDialog* self, struct miqt_string state); void QFileDialog_SetConfirmOverwrite(QFileDialog* self, bool enabled); bool QFileDialog_ConfirmOverwrite(const QFileDialog* self); void QFileDialog_SetDefaultSuffix(QFileDialog* self, struct miqt_string suffix); struct miqt_string QFileDialog_DefaultSuffix(const QFileDialog* self); -void QFileDialog_SetHistory(QFileDialog* self, struct miqt_array /* of struct miqt_string */ paths); -struct miqt_array QFileDialog_History(const QFileDialog* self); +void QFileDialog_SetHistory(QFileDialog* self, struct miqt_array /* of struct miqt_string */ paths); +struct miqt_array /* of struct miqt_string */ QFileDialog_History(const QFileDialog* self); void QFileDialog_SetItemDelegate(QFileDialog* self, QAbstractItemDelegate* delegate); QAbstractItemDelegate* QFileDialog_ItemDelegate(const QFileDialog* self); void QFileDialog_SetIconProvider(QFileDialog* self, QFileIconProvider* provider); QFileIconProvider* QFileDialog_IconProvider(const QFileDialog* self); void QFileDialog_SetLabelText(QFileDialog* self, int label, struct miqt_string text); struct miqt_string QFileDialog_LabelText(const QFileDialog* self, int label); -void QFileDialog_SetSupportedSchemes(QFileDialog* self, struct miqt_array /* of struct miqt_string */ schemes); -struct miqt_array QFileDialog_SupportedSchemes(const QFileDialog* self); +void QFileDialog_SetSupportedSchemes(QFileDialog* self, struct miqt_array /* of struct miqt_string */ schemes); +struct miqt_array /* of struct miqt_string */ QFileDialog_SupportedSchemes(const QFileDialog* self); void QFileDialog_SetProxyModel(QFileDialog* self, QAbstractProxyModel* model); QAbstractProxyModel* QFileDialog_ProxyModel(const QFileDialog* self); void QFileDialog_SetOption(QFileDialog* self, int option); @@ -104,7 +105,7 @@ int QFileDialog_Options(const QFileDialog* self); void QFileDialog_SetVisible(QFileDialog* self, bool visible); void QFileDialog_FileSelected(QFileDialog* self, struct miqt_string file); void QFileDialog_connect_FileSelected(QFileDialog* self, intptr_t slot); -void QFileDialog_FilesSelected(QFileDialog* self, struct miqt_array /* of struct miqt_string */ files); +void QFileDialog_FilesSelected(QFileDialog* self, struct miqt_array /* of struct miqt_string */ files); void QFileDialog_connect_FilesSelected(QFileDialog* self, intptr_t slot); void QFileDialog_CurrentChanged(QFileDialog* self, struct miqt_string path); void QFileDialog_connect_CurrentChanged(QFileDialog* self, intptr_t slot); @@ -112,7 +113,7 @@ void QFileDialog_DirectoryEntered(QFileDialog* self, struct miqt_string director void QFileDialog_connect_DirectoryEntered(QFileDialog* self, intptr_t slot); void QFileDialog_UrlSelected(QFileDialog* self, QUrl* url); void QFileDialog_connect_UrlSelected(QFileDialog* self, intptr_t slot); -void QFileDialog_UrlsSelected(QFileDialog* self, struct miqt_array /* of QUrl* */ urls); +void QFileDialog_UrlsSelected(QFileDialog* self, struct miqt_array /* of QUrl* */ urls); void QFileDialog_connect_UrlsSelected(QFileDialog* self, intptr_t slot); void QFileDialog_CurrentUrlChanged(QFileDialog* self, QUrl* url); void QFileDialog_connect_CurrentUrlChanged(QFileDialog* self, intptr_t slot); @@ -126,8 +127,8 @@ struct miqt_string QFileDialog_GetSaveFileName(); QUrl* QFileDialog_GetSaveFileUrl(); struct miqt_string QFileDialog_GetExistingDirectory(); QUrl* QFileDialog_GetExistingDirectoryUrl(); -struct miqt_array QFileDialog_GetOpenFileNames(); -struct miqt_array QFileDialog_GetOpenFileUrls(); +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames(); +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls(); void QFileDialog_SaveFileContent(struct miqt_string fileContent, struct miqt_string fileNameHint); struct miqt_string QFileDialog_Tr2(const char* s, const char* c); struct miqt_string QFileDialog_Tr3(const char* s, const char* c, int n); @@ -158,15 +159,15 @@ QUrl* QFileDialog_GetExistingDirectoryUrl1(QWidget* parent); QUrl* QFileDialog_GetExistingDirectoryUrl2(QWidget* parent, struct miqt_string caption); QUrl* QFileDialog_GetExistingDirectoryUrl3(QWidget* parent, struct miqt_string caption, QUrl* dir); QUrl* QFileDialog_GetExistingDirectoryUrl4(QWidget* parent, struct miqt_string caption, QUrl* dir, int options); -QUrl* QFileDialog_GetExistingDirectoryUrl5(QWidget* parent, struct miqt_string caption, QUrl* dir, int options, struct miqt_array /* of struct miqt_string */ supportedSchemes); -struct miqt_array QFileDialog_GetOpenFileNames1(QWidget* parent); -struct miqt_array QFileDialog_GetOpenFileNames2(QWidget* parent, struct miqt_string caption); -struct miqt_array QFileDialog_GetOpenFileNames3(QWidget* parent, struct miqt_string caption, struct miqt_string dir); -struct miqt_array QFileDialog_GetOpenFileNames4(QWidget* parent, struct miqt_string caption, struct miqt_string dir, struct miqt_string filter); -struct miqt_array QFileDialog_GetOpenFileUrls1(QWidget* parent); -struct miqt_array QFileDialog_GetOpenFileUrls2(QWidget* parent, struct miqt_string caption); -struct miqt_array QFileDialog_GetOpenFileUrls3(QWidget* parent, struct miqt_string caption, QUrl* dir); -struct miqt_array QFileDialog_GetOpenFileUrls4(QWidget* parent, struct miqt_string caption, QUrl* dir, struct miqt_string filter); +QUrl* QFileDialog_GetExistingDirectoryUrl5(QWidget* parent, struct miqt_string caption, QUrl* dir, int options, struct miqt_array /* of struct miqt_string */ supportedSchemes); +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames1(QWidget* parent); +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames2(QWidget* parent, struct miqt_string caption); +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames3(QWidget* parent, struct miqt_string caption, struct miqt_string dir); +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames4(QWidget* parent, struct miqt_string caption, struct miqt_string dir, struct miqt_string filter); +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls1(QWidget* parent); +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls2(QWidget* parent, struct miqt_string caption); +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls3(QWidget* parent, struct miqt_string caption, QUrl* dir); +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls4(QWidget* parent, struct miqt_string caption, QUrl* dir, struct miqt_string filter); void QFileDialog_Delete(QFileDialog* self); #ifdef __cplusplus diff --git a/qt/gen_qfileiconprovider.h b/qt/gen_qfileiconprovider.h index 12b89ab7..53fcc208 100644 --- a/qt/gen_qfileiconprovider.h +++ b/qt/gen_qfileiconprovider.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILEICONPROVIDER_H -#define GEN_QFILEICONPROVIDER_H +#pragma once +#ifndef MIQT_QT_GEN_QFILEICONPROVIDER_H +#define MIQT_QT_GEN_QFILEICONPROVIDER_H #include #include diff --git a/qt/gen_qfileinfo.h b/qt/gen_qfileinfo.h index fbe016e7..b0de5e36 100644 --- a/qt/gen_qfileinfo.h +++ b/qt/gen_qfileinfo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILEINFO_H -#define GEN_QFILEINFO_H +#pragma once +#ifndef MIQT_QT_GEN_QFILEINFO_H +#define MIQT_QT_GEN_QFILEINFO_H #include #include diff --git a/qt/gen_qfileselector.cpp b/qt/gen_qfileselector.cpp index f9ef81e8..34218f54 100644 --- a/qt/gen_qfileselector.cpp +++ b/qt/gen_qfileselector.cpp @@ -64,7 +64,7 @@ QUrl* QFileSelector_SelectWithFilePath(const QFileSelector* self, QUrl* filePath return new QUrl(self->select(*filePath)); } -struct miqt_array QFileSelector_ExtraSelectors(const QFileSelector* self) { +struct miqt_array /* of struct miqt_string */ QFileSelector_ExtraSelectors(const QFileSelector* self) { QStringList _ret = self->extraSelectors(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -84,7 +84,7 @@ struct miqt_array QFileSelector_ExtraSelectors(const QFileSelector* self) { return _out; } -void QFileSelector_SetExtraSelectors(QFileSelector* self, struct miqt_array /* of struct miqt_string */ list) { +void QFileSelector_SetExtraSelectors(QFileSelector* self, struct miqt_array /* of struct miqt_string */ list) { QStringList list_QList; list_QList.reserve(list.len); struct miqt_string* list_arr = static_cast(list.data); @@ -95,7 +95,7 @@ void QFileSelector_SetExtraSelectors(QFileSelector* self, struct miqt_array /* o self->setExtraSelectors(list_QList); } -struct miqt_array QFileSelector_AllSelectors(const QFileSelector* self) { +struct miqt_array /* of struct miqt_string */ QFileSelector_AllSelectors(const QFileSelector* self) { QStringList _ret = self->allSelectors(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qfileselector.h b/qt/gen_qfileselector.h index 666a9818..b19fbb92 100644 --- a/qt/gen_qfileselector.h +++ b/qt/gen_qfileselector.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILESELECTOR_H -#define GEN_QFILESELECTOR_H +#pragma once +#ifndef MIQT_QT_GEN_QFILESELECTOR_H +#define MIQT_QT_GEN_QFILESELECTOR_H #include #include @@ -33,9 +34,9 @@ struct miqt_string QFileSelector_Tr(const char* s); struct miqt_string QFileSelector_TrUtf8(const char* s); struct miqt_string QFileSelector_Select(const QFileSelector* self, struct miqt_string filePath); QUrl* QFileSelector_SelectWithFilePath(const QFileSelector* self, QUrl* filePath); -struct miqt_array QFileSelector_ExtraSelectors(const QFileSelector* self); -void QFileSelector_SetExtraSelectors(QFileSelector* self, struct miqt_array /* of struct miqt_string */ list); -struct miqt_array QFileSelector_AllSelectors(const QFileSelector* self); +struct miqt_array /* of struct miqt_string */ QFileSelector_ExtraSelectors(const QFileSelector* self); +void QFileSelector_SetExtraSelectors(QFileSelector* self, struct miqt_array /* of struct miqt_string */ list); +struct miqt_array /* of struct miqt_string */ QFileSelector_AllSelectors(const QFileSelector* self); struct miqt_string QFileSelector_Tr2(const char* s, const char* c); struct miqt_string QFileSelector_Tr3(const char* s, const char* c, int n); struct miqt_string QFileSelector_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qfilesystemmodel.cpp b/qt/gen_qfilesystemmodel.cpp index a7b09ea0..7c53dd46 100644 --- a/qt/gen_qfilesystemmodel.cpp +++ b/qt/gen_qfilesystemmodel.cpp @@ -192,7 +192,7 @@ void QFileSystemModel_Sort(QFileSystemModel* self, int column) { self->sort(static_cast(column)); } -struct miqt_array QFileSystemModel_MimeTypes(const QFileSystemModel* self) { +struct miqt_array /* of struct miqt_string */ QFileSystemModel_MimeTypes(const QFileSystemModel* self) { QStringList _ret = self->mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -212,7 +212,7 @@ struct miqt_array QFileSystemModel_MimeTypes(const QFileSystemModel* self) { return _out; } -QMimeData* QFileSystemModel_MimeData(const QFileSystemModel* self, struct miqt_array /* of QModelIndex* */ indexes) { +QMimeData* QFileSystemModel_MimeData(const QFileSystemModel* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); @@ -292,7 +292,7 @@ bool QFileSystemModel_NameFilterDisables(const QFileSystemModel* self) { return self->nameFilterDisables(); } -void QFileSystemModel_SetNameFilters(QFileSystemModel* self, struct miqt_array /* of struct miqt_string */ filters) { +void QFileSystemModel_SetNameFilters(QFileSystemModel* self, struct miqt_array /* of struct miqt_string */ filters) { QStringList filters_QList; filters_QList.reserve(filters.len); struct miqt_string* filters_arr = static_cast(filters.data); @@ -303,7 +303,7 @@ void QFileSystemModel_SetNameFilters(QFileSystemModel* self, struct miqt_array / self->setNameFilters(filters_QList); } -struct miqt_array QFileSystemModel_NameFilters(const QFileSystemModel* self) { +struct miqt_array /* of struct miqt_string */ QFileSystemModel_NameFilters(const QFileSystemModel* self) { QStringList _ret = self->nameFilters(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qfilesystemmodel.h b/qt/gen_qfilesystemmodel.h index 92bce3ef..8c749ff9 100644 --- a/qt/gen_qfilesystemmodel.h +++ b/qt/gen_qfilesystemmodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILESYSTEMMODEL_H -#define GEN_QFILESYSTEMMODEL_H +#pragma once +#ifndef MIQT_QT_GEN_QFILESYSTEMMODEL_H +#define MIQT_QT_GEN_QFILESYSTEMMODEL_H #include #include @@ -66,8 +67,8 @@ bool QFileSystemModel_SetData(QFileSystemModel* self, QModelIndex* index, QVaria QVariant* QFileSystemModel_HeaderData(const QFileSystemModel* self, int section, int orientation); int QFileSystemModel_Flags(const QFileSystemModel* self, QModelIndex* index); void QFileSystemModel_Sort(QFileSystemModel* self, int column); -struct miqt_array QFileSystemModel_MimeTypes(const QFileSystemModel* self); -QMimeData* QFileSystemModel_MimeData(const QFileSystemModel* self, struct miqt_array /* of QModelIndex* */ indexes); +struct miqt_array /* of struct miqt_string */ QFileSystemModel_MimeTypes(const QFileSystemModel* self); +QMimeData* QFileSystemModel_MimeData(const QFileSystemModel* self, struct miqt_array /* of QModelIndex* */ indexes); bool QFileSystemModel_DropMimeData(QFileSystemModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); int QFileSystemModel_SupportedDropActions(const QFileSystemModel* self); QModelIndex* QFileSystemModel_SetRootPath(QFileSystemModel* self, struct miqt_string path); @@ -83,8 +84,8 @@ void QFileSystemModel_SetReadOnly(QFileSystemModel* self, bool enable); bool QFileSystemModel_IsReadOnly(const QFileSystemModel* self); void QFileSystemModel_SetNameFilterDisables(QFileSystemModel* self, bool enable); bool QFileSystemModel_NameFilterDisables(const QFileSystemModel* self); -void QFileSystemModel_SetNameFilters(QFileSystemModel* self, struct miqt_array /* of struct miqt_string */ filters); -struct miqt_array QFileSystemModel_NameFilters(const QFileSystemModel* self); +void QFileSystemModel_SetNameFilters(QFileSystemModel* self, struct miqt_array /* of struct miqt_string */ filters); +struct miqt_array /* of struct miqt_string */ QFileSystemModel_NameFilters(const QFileSystemModel* self); void QFileSystemModel_SetOption(QFileSystemModel* self, int option); bool QFileSystemModel_TestOption(const QFileSystemModel* self, int option); void QFileSystemModel_SetOptions(QFileSystemModel* self, int options); diff --git a/qt/gen_qfilesystemwatcher.cpp b/qt/gen_qfilesystemwatcher.cpp index c851edb6..8f778d14 100644 --- a/qt/gen_qfilesystemwatcher.cpp +++ b/qt/gen_qfilesystemwatcher.cpp @@ -13,7 +13,7 @@ QFileSystemWatcher* QFileSystemWatcher_new() { return new QFileSystemWatcher(); } -QFileSystemWatcher* QFileSystemWatcher_new2(struct miqt_array /* of struct miqt_string */ paths) { +QFileSystemWatcher* QFileSystemWatcher_new2(struct miqt_array /* of struct miqt_string */ paths) { QStringList paths_QList; paths_QList.reserve(paths.len); struct miqt_string* paths_arr = static_cast(paths.data); @@ -28,7 +28,7 @@ QFileSystemWatcher* QFileSystemWatcher_new3(QObject* parent) { return new QFileSystemWatcher(parent); } -QFileSystemWatcher* QFileSystemWatcher_new4(struct miqt_array /* of struct miqt_string */ paths, QObject* parent) { +QFileSystemWatcher* QFileSystemWatcher_new4(struct miqt_array /* of struct miqt_string */ paths, QObject* parent) { QStringList paths_QList; paths_QList.reserve(paths.len); struct miqt_string* paths_arr = static_cast(paths.data); @@ -74,7 +74,7 @@ bool QFileSystemWatcher_AddPath(QFileSystemWatcher* self, struct miqt_string fil return self->addPath(file_QString); } -struct miqt_array QFileSystemWatcher_AddPaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files) { +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_AddPaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files) { QStringList files_QList; files_QList.reserve(files.len); struct miqt_string* files_arr = static_cast(files.data); @@ -106,7 +106,7 @@ bool QFileSystemWatcher_RemovePath(QFileSystemWatcher* self, struct miqt_string return self->removePath(file_QString); } -struct miqt_array QFileSystemWatcher_RemovePaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files) { +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_RemovePaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files) { QStringList files_QList; files_QList.reserve(files.len); struct miqt_string* files_arr = static_cast(files.data); @@ -133,7 +133,7 @@ struct miqt_array QFileSystemWatcher_RemovePaths(QFileSystemWatcher* self, struc return _out; } -struct miqt_array QFileSystemWatcher_Files(const QFileSystemWatcher* self) { +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_Files(const QFileSystemWatcher* self) { QStringList _ret = self->files(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -153,7 +153,7 @@ struct miqt_array QFileSystemWatcher_Files(const QFileSystemWatcher* self) { return _out; } -struct miqt_array QFileSystemWatcher_Directories(const QFileSystemWatcher* self) { +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_Directories(const QFileSystemWatcher* self) { QStringList _ret = self->directories(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qfilesystemwatcher.h b/qt/gen_qfilesystemwatcher.h index bd582afa..0643691f 100644 --- a/qt/gen_qfilesystemwatcher.h +++ b/qt/gen_qfilesystemwatcher.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILESYSTEMWATCHER_H -#define GEN_QFILESYSTEMWATCHER_H +#pragma once +#ifndef MIQT_QT_GEN_QFILESYSTEMWATCHER_H +#define MIQT_QT_GEN_QFILESYSTEMWATCHER_H #include #include @@ -24,19 +25,19 @@ typedef struct QObject QObject; #endif QFileSystemWatcher* QFileSystemWatcher_new(); -QFileSystemWatcher* QFileSystemWatcher_new2(struct miqt_array /* of struct miqt_string */ paths); +QFileSystemWatcher* QFileSystemWatcher_new2(struct miqt_array /* of struct miqt_string */ paths); QFileSystemWatcher* QFileSystemWatcher_new3(QObject* parent); -QFileSystemWatcher* QFileSystemWatcher_new4(struct miqt_array /* of struct miqt_string */ paths, QObject* parent); +QFileSystemWatcher* QFileSystemWatcher_new4(struct miqt_array /* of struct miqt_string */ paths, QObject* parent); QMetaObject* QFileSystemWatcher_MetaObject(const QFileSystemWatcher* self); void* QFileSystemWatcher_Metacast(QFileSystemWatcher* self, const char* param1); struct miqt_string QFileSystemWatcher_Tr(const char* s); struct miqt_string QFileSystemWatcher_TrUtf8(const char* s); bool QFileSystemWatcher_AddPath(QFileSystemWatcher* self, struct miqt_string file); -struct miqt_array QFileSystemWatcher_AddPaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files); +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_AddPaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files); bool QFileSystemWatcher_RemovePath(QFileSystemWatcher* self, struct miqt_string file); -struct miqt_array QFileSystemWatcher_RemovePaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files); -struct miqt_array QFileSystemWatcher_Files(const QFileSystemWatcher* self); -struct miqt_array QFileSystemWatcher_Directories(const QFileSystemWatcher* self); +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_RemovePaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files); +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_Files(const QFileSystemWatcher* self); +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_Directories(const QFileSystemWatcher* self); struct miqt_string QFileSystemWatcher_Tr2(const char* s, const char* c); struct miqt_string QFileSystemWatcher_Tr3(const char* s, const char* c, int n); struct miqt_string QFileSystemWatcher_TrUtf82(const char* s, const char* c); diff --git a/qt/gen_qfinalstate.h b/qt/gen_qfinalstate.h index 6fba79f0..dd42b40a 100644 --- a/qt/gen_qfinalstate.h +++ b/qt/gen_qfinalstate.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFINALSTATE_H -#define GEN_QFINALSTATE_H +#pragma once +#ifndef MIQT_QT_GEN_QFINALSTATE_H +#define MIQT_QT_GEN_QFINALSTATE_H #include #include diff --git a/qt/gen_qfloat16.h b/qt/gen_qfloat16.h index e432a8ee..4905b54d 100644 --- a/qt/gen_qfloat16.h +++ b/qt/gen_qfloat16.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFLOAT16_H -#define GEN_QFLOAT16_H +#pragma once +#ifndef MIQT_QT_GEN_QFLOAT16_H +#define MIQT_QT_GEN_QFLOAT16_H #include #include diff --git a/qt/gen_qfocusframe.h b/qt/gen_qfocusframe.h index 2e9f1bba..f9c14e07 100644 --- a/qt/gen_qfocusframe.h +++ b/qt/gen_qfocusframe.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFOCUSFRAME_H -#define GEN_QFOCUSFRAME_H +#pragma once +#ifndef MIQT_QT_GEN_QFOCUSFRAME_H +#define MIQT_QT_GEN_QFOCUSFRAME_H #include #include diff --git a/qt/gen_qfont.cpp b/qt/gen_qfont.cpp index c24c6b12..7b24626a 100644 --- a/qt/gen_qfont.cpp +++ b/qt/gen_qfont.cpp @@ -64,7 +64,7 @@ void QFont_SetFamily(QFont* self, struct miqt_string family) { self->setFamily(family_QString); } -struct miqt_array QFont_Families(const QFont* self) { +struct miqt_array /* of struct miqt_string */ QFont_Families(const QFont* self) { QStringList _ret = self->families(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -84,7 +84,7 @@ struct miqt_array QFont_Families(const QFont* self) { return _out; } -void QFont_SetFamilies(QFont* self, struct miqt_array /* of struct miqt_string */ families) { +void QFont_SetFamilies(QFont* self, struct miqt_array /* of struct miqt_string */ families) { QStringList families_QList; families_QList.reserve(families.len); struct miqt_string* families_arr = static_cast(families.data); @@ -363,7 +363,7 @@ struct miqt_string QFont_Substitute(struct miqt_string param1) { return _ms; } -struct miqt_array QFont_Substitutes(struct miqt_string param1) { +struct miqt_array /* of struct miqt_string */ QFont_Substitutes(struct miqt_string param1) { QString param1_QString = QString::fromUtf8(param1.data, param1.len); QStringList _ret = QFont::substitutes(param1_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -384,7 +384,7 @@ struct miqt_array QFont_Substitutes(struct miqt_string param1) { return _out; } -struct miqt_array QFont_Substitutions() { +struct miqt_array /* of struct miqt_string */ QFont_Substitutions() { QStringList _ret = QFont::substitutions(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -410,7 +410,7 @@ void QFont_InsertSubstitution(struct miqt_string param1, struct miqt_string para QFont::insertSubstitution(param1_QString, param2_QString); } -void QFont_InsertSubstitutions(struct miqt_string param1, struct miqt_array /* of struct miqt_string */ param2) { +void QFont_InsertSubstitutions(struct miqt_string param1, struct miqt_array /* of struct miqt_string */ param2) { QString param1_QString = QString::fromUtf8(param1.data, param1.len); QStringList param2_QList; param2_QList.reserve(param2.len); diff --git a/qt/gen_qfont.h b/qt/gen_qfont.h index 24df58c2..b7f238e6 100644 --- a/qt/gen_qfont.h +++ b/qt/gen_qfont.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFONT_H -#define GEN_QFONT_H +#pragma once +#ifndef MIQT_QT_GEN_QFONT_H +#define MIQT_QT_GEN_QFONT_H #include #include @@ -32,8 +33,8 @@ QFont* QFont_new8(struct miqt_string family, int pointSize, int weight, bool ita void QFont_Swap(QFont* self, QFont* other); struct miqt_string QFont_Family(const QFont* self); void QFont_SetFamily(QFont* self, struct miqt_string family); -struct miqt_array QFont_Families(const QFont* self); -void QFont_SetFamilies(QFont* self, struct miqt_array /* of struct miqt_string */ families); +struct miqt_array /* of struct miqt_string */ QFont_Families(const QFont* self); +void QFont_SetFamilies(QFont* self, struct miqt_array /* of struct miqt_string */ families); struct miqt_string QFont_StyleName(const QFont* self); void QFont_SetStyleName(QFont* self, struct miqt_string styleName); int QFont_PointSize(const QFont* self); @@ -89,10 +90,10 @@ struct miqt_string QFont_Key(const QFont* self); struct miqt_string QFont_ToString(const QFont* self); bool QFont_FromString(QFont* self, struct miqt_string param1); struct miqt_string QFont_Substitute(struct miqt_string param1); -struct miqt_array QFont_Substitutes(struct miqt_string param1); -struct miqt_array QFont_Substitutions(); +struct miqt_array /* of struct miqt_string */ QFont_Substitutes(struct miqt_string param1); +struct miqt_array /* of struct miqt_string */ QFont_Substitutions(); void QFont_InsertSubstitution(struct miqt_string param1, struct miqt_string param2); -void QFont_InsertSubstitutions(struct miqt_string param1, struct miqt_array /* of struct miqt_string */ param2); +void QFont_InsertSubstitutions(struct miqt_string param1, struct miqt_array /* of struct miqt_string */ param2); void QFont_RemoveSubstitutions(struct miqt_string param1); void QFont_Initialize(); void QFont_Cleanup(); diff --git a/qt/gen_qfontcombobox.h b/qt/gen_qfontcombobox.h index bfc477c6..f449b9fa 100644 --- a/qt/gen_qfontcombobox.h +++ b/qt/gen_qfontcombobox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFONTCOMBOBOX_H -#define GEN_QFONTCOMBOBOX_H +#pragma once +#ifndef MIQT_QT_GEN_QFONTCOMBOBOX_H +#define MIQT_QT_GEN_QFONTCOMBOBOX_H #include #include diff --git a/qt/gen_qfontdatabase.cpp b/qt/gen_qfontdatabase.cpp index f108dff7..0acaf2d2 100644 --- a/qt/gen_qfontdatabase.cpp +++ b/qt/gen_qfontdatabase.cpp @@ -14,7 +14,7 @@ QFontDatabase* QFontDatabase_new() { return new QFontDatabase(); } -struct miqt_array QFontDatabase_StandardSizes() { +struct miqt_array /* of int */ QFontDatabase_StandardSizes() { QList _ret = QFontDatabase::standardSizes(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -27,7 +27,7 @@ struct miqt_array QFontDatabase_StandardSizes() { return _out; } -struct miqt_array QFontDatabase_WritingSystems(const QFontDatabase* self) { +struct miqt_array /* of int */ QFontDatabase_WritingSystems(const QFontDatabase* self) { QList _ret = self->writingSystems(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -41,7 +41,7 @@ struct miqt_array QFontDatabase_WritingSystems(const QFontDatabase* self) { return _out; } -struct miqt_array QFontDatabase_WritingSystemsWithFamily(const QFontDatabase* self, struct miqt_string family) { +struct miqt_array /* of int */ QFontDatabase_WritingSystemsWithFamily(const QFontDatabase* self, struct miqt_string family) { QString family_QString = QString::fromUtf8(family.data, family.len); QList _ret = self->writingSystems(family_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -56,7 +56,7 @@ struct miqt_array QFontDatabase_WritingSystemsWithFamily(const QFontDatabase* se return _out; } -struct miqt_array QFontDatabase_Families(const QFontDatabase* self) { +struct miqt_array /* of struct miqt_string */ QFontDatabase_Families(const QFontDatabase* self) { QStringList _ret = self->families(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -76,7 +76,7 @@ struct miqt_array QFontDatabase_Families(const QFontDatabase* self) { return _out; } -struct miqt_array QFontDatabase_Styles(const QFontDatabase* self, struct miqt_string family) { +struct miqt_array /* of struct miqt_string */ QFontDatabase_Styles(const QFontDatabase* self, struct miqt_string family) { QString family_QString = QString::fromUtf8(family.data, family.len); QStringList _ret = self->styles(family_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -97,7 +97,7 @@ struct miqt_array QFontDatabase_Styles(const QFontDatabase* self, struct miqt_st return _out; } -struct miqt_array QFontDatabase_PointSizes(QFontDatabase* self, struct miqt_string family) { +struct miqt_array /* of int */ QFontDatabase_PointSizes(QFontDatabase* self, struct miqt_string family) { QString family_QString = QString::fromUtf8(family.data, family.len); QList _ret = self->pointSizes(family_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -111,7 +111,7 @@ struct miqt_array QFontDatabase_PointSizes(QFontDatabase* self, struct miqt_stri return _out; } -struct miqt_array QFontDatabase_SmoothSizes(QFontDatabase* self, struct miqt_string family, struct miqt_string style) { +struct miqt_array /* of int */ QFontDatabase_SmoothSizes(QFontDatabase* self, struct miqt_string family, struct miqt_string style) { QString family_QString = QString::fromUtf8(family.data, family.len); QString style_QString = QString::fromUtf8(style.data, style.len); QList _ret = self->smoothSizes(family_QString, style_QString); @@ -234,7 +234,7 @@ int QFontDatabase_AddApplicationFontFromData(struct miqt_string fontData) { return QFontDatabase::addApplicationFontFromData(fontData_QByteArray); } -struct miqt_array QFontDatabase_ApplicationFontFamilies(int id) { +struct miqt_array /* of struct miqt_string */ QFontDatabase_ApplicationFontFamilies(int id) { QStringList _ret = QFontDatabase::applicationFontFamilies(static_cast(id)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -270,7 +270,7 @@ QFont* QFontDatabase_SystemFont(int typeVal) { return new QFont(QFontDatabase::systemFont(static_cast(typeVal))); } -struct miqt_array QFontDatabase_Families1(const QFontDatabase* self, int writingSystem) { +struct miqt_array /* of struct miqt_string */ QFontDatabase_Families1(const QFontDatabase* self, int writingSystem) { QStringList _ret = self->families(static_cast(writingSystem)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -290,7 +290,7 @@ struct miqt_array QFontDatabase_Families1(const QFontDatabase* self, int writing return _out; } -struct miqt_array QFontDatabase_PointSizes2(QFontDatabase* self, struct miqt_string family, struct miqt_string style) { +struct miqt_array /* of int */ QFontDatabase_PointSizes2(QFontDatabase* self, struct miqt_string family, struct miqt_string style) { QString family_QString = QString::fromUtf8(family.data, family.len); QString style_QString = QString::fromUtf8(style.data, style.len); QList _ret = self->pointSizes(family_QString, style_QString); diff --git a/qt/gen_qfontdatabase.h b/qt/gen_qfontdatabase.h index b486ce87..874786a2 100644 --- a/qt/gen_qfontdatabase.h +++ b/qt/gen_qfontdatabase.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFONTDATABASE_H -#define GEN_QFONTDATABASE_H +#pragma once +#ifndef MIQT_QT_GEN_QFONTDATABASE_H +#define MIQT_QT_GEN_QFONTDATABASE_H #include #include @@ -26,13 +27,13 @@ typedef struct QFontInfo QFontInfo; #endif QFontDatabase* QFontDatabase_new(); -struct miqt_array QFontDatabase_StandardSizes(); -struct miqt_array QFontDatabase_WritingSystems(const QFontDatabase* self); -struct miqt_array QFontDatabase_WritingSystemsWithFamily(const QFontDatabase* self, struct miqt_string family); -struct miqt_array QFontDatabase_Families(const QFontDatabase* self); -struct miqt_array QFontDatabase_Styles(const QFontDatabase* self, struct miqt_string family); -struct miqt_array QFontDatabase_PointSizes(QFontDatabase* self, struct miqt_string family); -struct miqt_array QFontDatabase_SmoothSizes(QFontDatabase* self, struct miqt_string family, struct miqt_string style); +struct miqt_array /* of int */ QFontDatabase_StandardSizes(); +struct miqt_array /* of int */ QFontDatabase_WritingSystems(const QFontDatabase* self); +struct miqt_array /* of int */ QFontDatabase_WritingSystemsWithFamily(const QFontDatabase* self, struct miqt_string family); +struct miqt_array /* of struct miqt_string */ QFontDatabase_Families(const QFontDatabase* self); +struct miqt_array /* of struct miqt_string */ QFontDatabase_Styles(const QFontDatabase* self, struct miqt_string family); +struct miqt_array /* of int */ QFontDatabase_PointSizes(QFontDatabase* self, struct miqt_string family); +struct miqt_array /* of int */ QFontDatabase_SmoothSizes(QFontDatabase* self, struct miqt_string family, struct miqt_string style); struct miqt_string QFontDatabase_StyleString(QFontDatabase* self, QFont* font); struct miqt_string QFontDatabase_StyleStringWithFontInfo(QFontDatabase* self, QFontInfo* fontInfo); QFont* QFontDatabase_Font(const QFontDatabase* self, struct miqt_string family, struct miqt_string style, int pointSize); @@ -49,13 +50,13 @@ struct miqt_string QFontDatabase_WritingSystemName(int writingSystem); struct miqt_string QFontDatabase_WritingSystemSample(int writingSystem); int QFontDatabase_AddApplicationFont(struct miqt_string fileName); int QFontDatabase_AddApplicationFontFromData(struct miqt_string fontData); -struct miqt_array QFontDatabase_ApplicationFontFamilies(int id); +struct miqt_array /* of struct miqt_string */ QFontDatabase_ApplicationFontFamilies(int id); bool QFontDatabase_RemoveApplicationFont(int id); bool QFontDatabase_RemoveAllApplicationFonts(); bool QFontDatabase_SupportsThreadedFontRendering(); QFont* QFontDatabase_SystemFont(int typeVal); -struct miqt_array QFontDatabase_Families1(const QFontDatabase* self, int writingSystem); -struct miqt_array QFontDatabase_PointSizes2(QFontDatabase* self, struct miqt_string family, struct miqt_string style); +struct miqt_array /* of struct miqt_string */ QFontDatabase_Families1(const QFontDatabase* self, int writingSystem); +struct miqt_array /* of int */ QFontDatabase_PointSizes2(QFontDatabase* self, struct miqt_string family, struct miqt_string style); bool QFontDatabase_IsBitmapScalable2(const QFontDatabase* self, struct miqt_string family, struct miqt_string style); bool QFontDatabase_IsSmoothlyScalable2(const QFontDatabase* self, struct miqt_string family, struct miqt_string style); bool QFontDatabase_IsScalable2(const QFontDatabase* self, struct miqt_string family, struct miqt_string style); diff --git a/qt/gen_qfontdialog.h b/qt/gen_qfontdialog.h index 150eaa8e..2f968d5f 100644 --- a/qt/gen_qfontdialog.h +++ b/qt/gen_qfontdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFONTDIALOG_H -#define GEN_QFONTDIALOG_H +#pragma once +#ifndef MIQT_QT_GEN_QFONTDIALOG_H +#define MIQT_QT_GEN_QFONTDIALOG_H #include #include diff --git a/qt/gen_qfontinfo.h b/qt/gen_qfontinfo.h index 410c0e43..fac66c28 100644 --- a/qt/gen_qfontinfo.h +++ b/qt/gen_qfontinfo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFONTINFO_H -#define GEN_QFONTINFO_H +#pragma once +#ifndef MIQT_QT_GEN_QFONTINFO_H +#define MIQT_QT_GEN_QFONTINFO_H #include #include diff --git a/qt/gen_qfontmetrics.h b/qt/gen_qfontmetrics.h index d6cfcbc0..ab7c1b03 100644 --- a/qt/gen_qfontmetrics.h +++ b/qt/gen_qfontmetrics.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFONTMETRICS_H -#define GEN_QFONTMETRICS_H +#pragma once +#ifndef MIQT_QT_GEN_QFONTMETRICS_H +#define MIQT_QT_GEN_QFONTMETRICS_H #include #include diff --git a/qt/gen_qformlayout.h b/qt/gen_qformlayout.h index dccb2a7b..269f5dcd 100644 --- a/qt/gen_qformlayout.h +++ b/qt/gen_qformlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFORMLAYOUT_H -#define GEN_QFORMLAYOUT_H +#pragma once +#ifndef MIQT_QT_GEN_QFORMLAYOUT_H +#define MIQT_QT_GEN_QFORMLAYOUT_H #include #include diff --git a/qt/gen_qframe.h b/qt/gen_qframe.h index 14d8570e..e3fcd219 100644 --- a/qt/gen_qframe.h +++ b/qt/gen_qframe.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFRAME_H -#define GEN_QFRAME_H +#pragma once +#ifndef MIQT_QT_GEN_QFRAME_H +#define MIQT_QT_GEN_QFRAME_H #include #include diff --git a/qt/gen_qfutureinterface.h b/qt/gen_qfutureinterface.h index 54d56422..f8cf4fb2 100644 --- a/qt/gen_qfutureinterface.h +++ b/qt/gen_qfutureinterface.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFUTUREINTERFACE_H -#define GEN_QFUTUREINTERFACE_H +#pragma once +#ifndef MIQT_QT_GEN_QFUTUREINTERFACE_H +#define MIQT_QT_GEN_QFUTUREINTERFACE_H #include #include diff --git a/qt/gen_qfuturewatcher.h b/qt/gen_qfuturewatcher.h index 559f6468..60fcbd6a 100644 --- a/qt/gen_qfuturewatcher.h +++ b/qt/gen_qfuturewatcher.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFUTUREWATCHER_H -#define GEN_QFUTUREWATCHER_H +#pragma once +#ifndef MIQT_QT_GEN_QFUTUREWATCHER_H +#define MIQT_QT_GEN_QFUTUREWATCHER_H #include #include diff --git a/qt/gen_qgenericplugin.h b/qt/gen_qgenericplugin.h index d92fd8f2..b27abfa5 100644 --- a/qt/gen_qgenericplugin.h +++ b/qt/gen_qgenericplugin.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGENERICPLUGIN_H -#define GEN_QGENERICPLUGIN_H +#pragma once +#ifndef MIQT_QT_GEN_QGENERICPLUGIN_H +#define MIQT_QT_GEN_QGENERICPLUGIN_H #include #include diff --git a/qt/gen_qgenericpluginfactory.cpp b/qt/gen_qgenericpluginfactory.cpp index 4292d5b1..2aa5ac9b 100644 --- a/qt/gen_qgenericpluginfactory.cpp +++ b/qt/gen_qgenericpluginfactory.cpp @@ -8,7 +8,7 @@ #include "gen_qgenericpluginfactory.h" #include "_cgo_export.h" -struct miqt_array QGenericPluginFactory_Keys() { +struct miqt_array /* of struct miqt_string */ QGenericPluginFactory_Keys() { QStringList _ret = QGenericPluginFactory::keys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qgenericpluginfactory.h b/qt/gen_qgenericpluginfactory.h index f7974818..2c0298c9 100644 --- a/qt/gen_qgenericpluginfactory.h +++ b/qt/gen_qgenericpluginfactory.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGENERICPLUGINFACTORY_H -#define GEN_QGENERICPLUGINFACTORY_H +#pragma once +#ifndef MIQT_QT_GEN_QGENERICPLUGINFACTORY_H +#define MIQT_QT_GEN_QGENERICPLUGINFACTORY_H #include #include @@ -21,7 +22,7 @@ typedef struct QGenericPluginFactory QGenericPluginFactory; typedef struct QObject QObject; #endif -struct miqt_array QGenericPluginFactory_Keys(); +struct miqt_array /* of struct miqt_string */ QGenericPluginFactory_Keys(); QObject* QGenericPluginFactory_Create(struct miqt_string param1, struct miqt_string param2); void QGenericPluginFactory_Delete(QGenericPluginFactory* self); diff --git a/qt/gen_qgesture.cpp b/qt/gen_qgesture.cpp index 8ec73f85..38e26957 100644 --- a/qt/gen_qgesture.cpp +++ b/qt/gen_qgesture.cpp @@ -736,7 +736,7 @@ void QTapAndHoldGesture_Delete(QTapAndHoldGesture* self) { delete self; } -QGestureEvent* QGestureEvent_new(struct miqt_array /* of QGesture* */ gestures) { +QGestureEvent* QGestureEvent_new(struct miqt_array /* of QGesture* */ gestures) { QList gestures_QList; gestures_QList.reserve(gestures.len); QGesture** gestures_arr = static_cast(gestures.data); @@ -750,7 +750,7 @@ QGestureEvent* QGestureEvent_new2(QGestureEvent* param1) { return new QGestureEvent(*param1); } -struct miqt_array QGestureEvent_Gestures(const QGestureEvent* self) { +struct miqt_array /* of QGesture* */ QGestureEvent_Gestures(const QGestureEvent* self) { QList _ret = self->gestures(); // Convert QList<> from C++ memory to manually-managed C memory QGesture** _arr = static_cast(malloc(sizeof(QGesture*) * _ret.length())); @@ -767,7 +767,7 @@ QGesture* QGestureEvent_Gesture(const QGestureEvent* self, int typeVal) { return self->gesture(static_cast(typeVal)); } -struct miqt_array QGestureEvent_ActiveGestures(const QGestureEvent* self) { +struct miqt_array /* of QGesture* */ QGestureEvent_ActiveGestures(const QGestureEvent* self) { QList _ret = self->activeGestures(); // Convert QList<> from C++ memory to manually-managed C memory QGesture** _arr = static_cast(malloc(sizeof(QGesture*) * _ret.length())); @@ -780,7 +780,7 @@ struct miqt_array QGestureEvent_ActiveGestures(const QGestureEvent* self) { return _out; } -struct miqt_array QGestureEvent_CanceledGestures(const QGestureEvent* self) { +struct miqt_array /* of QGesture* */ QGestureEvent_CanceledGestures(const QGestureEvent* self) { QList _ret = self->canceledGestures(); // Convert QList<> from C++ memory to manually-managed C memory QGesture** _arr = static_cast(malloc(sizeof(QGesture*) * _ret.length())); diff --git a/qt/gen_qgesture.h b/qt/gen_qgesture.h index 77d1b876..7d53e6cd 100644 --- a/qt/gen_qgesture.h +++ b/qt/gen_qgesture.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGESTURE_H -#define GEN_QGESTURE_H +#pragma once +#ifndef MIQT_QT_GEN_QGESTURE_H +#define MIQT_QT_GEN_QGESTURE_H #include #include @@ -158,12 +159,12 @@ struct miqt_string QTapAndHoldGesture_TrUtf82(const char* s, const char* c); struct miqt_string QTapAndHoldGesture_TrUtf83(const char* s, const char* c, int n); void QTapAndHoldGesture_Delete(QTapAndHoldGesture* self); -QGestureEvent* QGestureEvent_new(struct miqt_array /* of QGesture* */ gestures); +QGestureEvent* QGestureEvent_new(struct miqt_array /* of QGesture* */ gestures); QGestureEvent* QGestureEvent_new2(QGestureEvent* param1); -struct miqt_array QGestureEvent_Gestures(const QGestureEvent* self); +struct miqt_array /* of QGesture* */ QGestureEvent_Gestures(const QGestureEvent* self); QGesture* QGestureEvent_Gesture(const QGestureEvent* self, int typeVal); -struct miqt_array QGestureEvent_ActiveGestures(const QGestureEvent* self); -struct miqt_array QGestureEvent_CanceledGestures(const QGestureEvent* self); +struct miqt_array /* of QGesture* */ QGestureEvent_ActiveGestures(const QGestureEvent* self); +struct miqt_array /* of QGesture* */ QGestureEvent_CanceledGestures(const QGestureEvent* self); void QGestureEvent_SetAccepted(QGestureEvent* self, QGesture* param1, bool param2); void QGestureEvent_Accept(QGestureEvent* self, QGesture* param1); void QGestureEvent_Ignore(QGestureEvent* self, QGesture* param1); diff --git a/qt/gen_qgesturerecognizer.h b/qt/gen_qgesturerecognizer.h index fc676e1b..e561ac80 100644 --- a/qt/gen_qgesturerecognizer.h +++ b/qt/gen_qgesturerecognizer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGESTURERECOGNIZER_H -#define GEN_QGESTURERECOGNIZER_H +#pragma once +#ifndef MIQT_QT_GEN_QGESTURERECOGNIZER_H +#define MIQT_QT_GEN_QGESTURERECOGNIZER_H #include #include diff --git a/qt/gen_qglobal.h b/qt/gen_qglobal.h index 8f118017..b5d50993 100644 --- a/qt/gen_qglobal.h +++ b/qt/gen_qglobal.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGLOBAL_H -#define GEN_QGLOBAL_H +#pragma once +#ifndef MIQT_QT_GEN_QGLOBAL_H +#define MIQT_QT_GEN_QGLOBAL_H #include #include diff --git a/qt/gen_qglyphrun.cpp b/qt/gen_qglyphrun.cpp index a14ef44d..76791218 100644 --- a/qt/gen_qglyphrun.cpp +++ b/qt/gen_qglyphrun.cpp @@ -35,7 +35,7 @@ void QGlyphRun_SetRawData(QGlyphRun* self, const unsigned int* glyphIndexArray, self->setRawData(static_cast(glyphIndexArray), glyphPositionArray, static_cast(size)); } -struct miqt_array QGlyphRun_GlyphIndexes(const QGlyphRun* self) { +struct miqt_array /* of unsigned int */ QGlyphRun_GlyphIndexes(const QGlyphRun* self) { QVector _ret = self->glyphIndexes(); // Convert QList<> from C++ memory to manually-managed C memory unsigned int* _arr = static_cast(malloc(sizeof(unsigned int) * _ret.length())); @@ -48,7 +48,7 @@ struct miqt_array QGlyphRun_GlyphIndexes(const QGlyphRun* self) { return _out; } -void QGlyphRun_SetGlyphIndexes(QGlyphRun* self, struct miqt_array /* of unsigned int */ glyphIndexes) { +void QGlyphRun_SetGlyphIndexes(QGlyphRun* self, struct miqt_array /* of unsigned int */ glyphIndexes) { QVector glyphIndexes_QList; glyphIndexes_QList.reserve(glyphIndexes.len); unsigned int* glyphIndexes_arr = static_cast(glyphIndexes.data); @@ -58,7 +58,7 @@ void QGlyphRun_SetGlyphIndexes(QGlyphRun* self, struct miqt_array /* of unsigned self->setGlyphIndexes(glyphIndexes_QList); } -struct miqt_array QGlyphRun_Positions(const QGlyphRun* self) { +struct miqt_array /* of QPointF* */ QGlyphRun_Positions(const QGlyphRun* self) { QVector _ret = self->positions(); // Convert QList<> from C++ memory to manually-managed C memory QPointF** _arr = static_cast(malloc(sizeof(QPointF*) * _ret.length())); @@ -71,7 +71,7 @@ struct miqt_array QGlyphRun_Positions(const QGlyphRun* self) { return _out; } -void QGlyphRun_SetPositions(QGlyphRun* self, struct miqt_array /* of QPointF* */ positions) { +void QGlyphRun_SetPositions(QGlyphRun* self, struct miqt_array /* of QPointF* */ positions) { QVector positions_QList; positions_QList.reserve(positions.len); QPointF** positions_arr = static_cast(positions.data); diff --git a/qt/gen_qglyphrun.h b/qt/gen_qglyphrun.h index 88ba5bcd..7c723b62 100644 --- a/qt/gen_qglyphrun.h +++ b/qt/gen_qglyphrun.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGLYPHRUN_H -#define GEN_QGLYPHRUN_H +#pragma once +#ifndef MIQT_QT_GEN_QGLYPHRUN_H +#define MIQT_QT_GEN_QGLYPHRUN_H #include #include @@ -32,10 +33,10 @@ void QGlyphRun_Swap(QGlyphRun* self, QGlyphRun* other); QRawFont* QGlyphRun_RawFont(const QGlyphRun* self); void QGlyphRun_SetRawFont(QGlyphRun* self, QRawFont* rawFont); void QGlyphRun_SetRawData(QGlyphRun* self, const unsigned int* glyphIndexArray, QPointF* glyphPositionArray, int size); -struct miqt_array QGlyphRun_GlyphIndexes(const QGlyphRun* self); -void QGlyphRun_SetGlyphIndexes(QGlyphRun* self, struct miqt_array /* of unsigned int */ glyphIndexes); -struct miqt_array QGlyphRun_Positions(const QGlyphRun* self); -void QGlyphRun_SetPositions(QGlyphRun* self, struct miqt_array /* of QPointF* */ positions); +struct miqt_array /* of unsigned int */ QGlyphRun_GlyphIndexes(const QGlyphRun* self); +void QGlyphRun_SetGlyphIndexes(QGlyphRun* self, struct miqt_array /* of unsigned int */ glyphIndexes); +struct miqt_array /* of QPointF* */ QGlyphRun_Positions(const QGlyphRun* self); +void QGlyphRun_SetPositions(QGlyphRun* self, struct miqt_array /* of QPointF* */ positions); void QGlyphRun_Clear(QGlyphRun* self); bool QGlyphRun_OperatorEqual(const QGlyphRun* self, QGlyphRun* other); bool QGlyphRun_OperatorNotEqual(const QGlyphRun* self, QGlyphRun* other); diff --git a/qt/gen_qgraphicsanchorlayout.h b/qt/gen_qgraphicsanchorlayout.h index 73d4b7f1..6d2d02fe 100644 --- a/qt/gen_qgraphicsanchorlayout.h +++ b/qt/gen_qgraphicsanchorlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSANCHORLAYOUT_H -#define GEN_QGRAPHICSANCHORLAYOUT_H +#pragma once +#ifndef MIQT_QT_GEN_QGRAPHICSANCHORLAYOUT_H +#define MIQT_QT_GEN_QGRAPHICSANCHORLAYOUT_H #include #include diff --git a/qt/gen_qgraphicseffect.h b/qt/gen_qgraphicseffect.h index 714809dc..91e34b81 100644 --- a/qt/gen_qgraphicseffect.h +++ b/qt/gen_qgraphicseffect.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSEFFECT_H -#define GEN_QGRAPHICSEFFECT_H +#pragma once +#ifndef MIQT_QT_GEN_QGRAPHICSEFFECT_H +#define MIQT_QT_GEN_QGRAPHICSEFFECT_H #include #include diff --git a/qt/gen_qgraphicsgridlayout.h b/qt/gen_qgraphicsgridlayout.h index 18474a42..852e958c 100644 --- a/qt/gen_qgraphicsgridlayout.h +++ b/qt/gen_qgraphicsgridlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSGRIDLAYOUT_H -#define GEN_QGRAPHICSGRIDLAYOUT_H +#pragma once +#ifndef MIQT_QT_GEN_QGRAPHICSGRIDLAYOUT_H +#define MIQT_QT_GEN_QGRAPHICSGRIDLAYOUT_H #include #include diff --git a/qt/gen_qgraphicsitem.cpp b/qt/gen_qgraphicsitem.cpp index c1afcaff..ae17d726 100644 --- a/qt/gen_qgraphicsitem.cpp +++ b/qt/gen_qgraphicsitem.cpp @@ -79,7 +79,7 @@ void QGraphicsItem_SetParentItem(QGraphicsItem* self, QGraphicsItem* parent) { self->setParentItem(parent); } -struct miqt_array QGraphicsItem_ChildItems(const QGraphicsItem* self) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_ChildItems(const QGraphicsItem* self) { QList _ret = self->childItems(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -450,7 +450,7 @@ double QGraphicsItem_Scale(const QGraphicsItem* self) { return static_cast(_ret); } -struct miqt_array QGraphicsItem_Transformations(const QGraphicsItem* self) { +struct miqt_array /* of QGraphicsTransform* */ QGraphicsItem_Transformations(const QGraphicsItem* self) { QList _ret = self->transformations(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsTransform** _arr = static_cast(malloc(sizeof(QGraphicsTransform*) * _ret.length())); @@ -463,7 +463,7 @@ struct miqt_array QGraphicsItem_Transformations(const QGraphicsItem* self) { return _out; } -void QGraphicsItem_SetTransformations(QGraphicsItem* self, struct miqt_array /* of QGraphicsTransform* */ transformations) { +void QGraphicsItem_SetTransformations(QGraphicsItem* self, struct miqt_array /* of QGraphicsTransform* */ transformations) { QList transformations_QList; transformations_QList.reserve(transformations.len); QGraphicsTransform** transformations_arr = static_cast(transformations.data); @@ -538,7 +538,7 @@ bool QGraphicsItem_CollidesWithPath(const QGraphicsItem* self, QPainterPath* pat return self->collidesWithPath(*path); } -struct miqt_array QGraphicsItem_CollidingItems(const QGraphicsItem* self) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_CollidingItems(const QGraphicsItem* self) { QList _ret = self->collidingItems(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -809,7 +809,7 @@ bool QGraphicsItem_CollidesWithPath2(const QGraphicsItem* self, QPainterPath* pa return self->collidesWithPath(*path, static_cast(mode)); } -struct miqt_array QGraphicsItem_CollidingItems1(const QGraphicsItem* self, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_CollidingItems1(const QGraphicsItem* self, int mode) { QList _ret = self->collidingItems(static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); diff --git a/qt/gen_qgraphicsitem.h b/qt/gen_qgraphicsitem.h index df63f90a..3c0eaa88 100644 --- a/qt/gen_qgraphicsitem.h +++ b/qt/gen_qgraphicsitem.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSITEM_H -#define GEN_QGRAPHICSITEM_H +#pragma once +#ifndef MIQT_QT_GEN_QGRAPHICSITEM_H +#define MIQT_QT_GEN_QGRAPHICSITEM_H #include #include @@ -100,7 +101,7 @@ QGraphicsWidget* QGraphicsItem_TopLevelWidget(const QGraphicsItem* self); QGraphicsWidget* QGraphicsItem_Window(const QGraphicsItem* self); QGraphicsItem* QGraphicsItem_Panel(const QGraphicsItem* self); void QGraphicsItem_SetParentItem(QGraphicsItem* self, QGraphicsItem* parent); -struct miqt_array QGraphicsItem_ChildItems(const QGraphicsItem* self); +struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_ChildItems(const QGraphicsItem* self); bool QGraphicsItem_IsWidget(const QGraphicsItem* self); bool QGraphicsItem_IsWindow(const QGraphicsItem* self); bool QGraphicsItem_IsPanel(const QGraphicsItem* self); @@ -186,8 +187,8 @@ void QGraphicsItem_SetRotation(QGraphicsItem* self, double angle); double QGraphicsItem_Rotation(const QGraphicsItem* self); void QGraphicsItem_SetScale(QGraphicsItem* self, double scale); double QGraphicsItem_Scale(const QGraphicsItem* self); -struct miqt_array QGraphicsItem_Transformations(const QGraphicsItem* self); -void QGraphicsItem_SetTransformations(QGraphicsItem* self, struct miqt_array /* of QGraphicsTransform* */ transformations); +struct miqt_array /* of QGraphicsTransform* */ QGraphicsItem_Transformations(const QGraphicsItem* self); +void QGraphicsItem_SetTransformations(QGraphicsItem* self, struct miqt_array /* of QGraphicsTransform* */ transformations); QPointF* QGraphicsItem_TransformOriginPoint(const QGraphicsItem* self); void QGraphicsItem_SetTransformOriginPoint(QGraphicsItem* self, QPointF* origin); void QGraphicsItem_SetTransformOriginPoint2(QGraphicsItem* self, double ax, double ay); @@ -204,7 +205,7 @@ QPainterPath* QGraphicsItem_ClipPath(const QGraphicsItem* self); bool QGraphicsItem_Contains(const QGraphicsItem* self, QPointF* point); bool QGraphicsItem_CollidesWithItem(const QGraphicsItem* self, QGraphicsItem* other); bool QGraphicsItem_CollidesWithPath(const QGraphicsItem* self, QPainterPath* path); -struct miqt_array QGraphicsItem_CollidingItems(const QGraphicsItem* self); +struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_CollidingItems(const QGraphicsItem* self); bool QGraphicsItem_IsObscured(const QGraphicsItem* self); bool QGraphicsItem_IsObscured2(const QGraphicsItem* self, double x, double y, double w, double h); bool QGraphicsItem_IsObscuredBy(const QGraphicsItem* self, QGraphicsItem* item); @@ -269,7 +270,7 @@ QTransform* QGraphicsItem_ItemTransform2(const QGraphicsItem* self, QGraphicsIte void QGraphicsItem_SetTransform2(QGraphicsItem* self, QTransform* matrix, bool combine); bool QGraphicsItem_CollidesWithItem2(const QGraphicsItem* self, QGraphicsItem* other, int mode); bool QGraphicsItem_CollidesWithPath2(const QGraphicsItem* self, QPainterPath* path, int mode); -struct miqt_array QGraphicsItem_CollidingItems1(const QGraphicsItem* self, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_CollidingItems1(const QGraphicsItem* self, int mode); bool QGraphicsItem_IsObscured1(const QGraphicsItem* self, QRectF* rect); void QGraphicsItem_Paint3(QGraphicsItem* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget); void QGraphicsItem_Update1(QGraphicsItem* self, QRectF* rect); diff --git a/qt/gen_qgraphicsitemanimation.cpp b/qt/gen_qgraphicsitemanimation.cpp index f7251d6d..c8d53b28 100644 --- a/qt/gen_qgraphicsitemanimation.cpp +++ b/qt/gen_qgraphicsitemanimation.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -71,6 +72,29 @@ QPointF* QGraphicsItemAnimation_PosAt(const QGraphicsItemAnimation* self, double return new QPointF(self->posAt(static_cast(step))); } +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_PosList(const QGraphicsItemAnimation* self) { + QList> _ret = self->posList(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of double and QPointF* */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of double and QPointF* */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + double* _lv_first_arr = static_cast(malloc(sizeof(double))); + QPointF** _lv_second_arr = static_cast(malloc(sizeof(QPointF*))); + _lv_first_arr[0] = _lv_ret.first; + _lv_second_arr[0] = new QPointF(_lv_ret.second); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + void QGraphicsItemAnimation_SetPosAt(QGraphicsItemAnimation* self, double step, QPointF* pos) { self->setPosAt(static_cast(step), *pos); } @@ -88,6 +112,29 @@ double QGraphicsItemAnimation_RotationAt(const QGraphicsItemAnimation* self, dou return static_cast(_ret); } +struct miqt_array /* of struct miqt_map tuple of double and double */ QGraphicsItemAnimation_RotationList(const QGraphicsItemAnimation* self) { + QList> _ret = self->rotationList(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of double and double */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of double and double */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + double* _lv_first_arr = static_cast(malloc(sizeof(double))); + double* _lv_second_arr = static_cast(malloc(sizeof(double))); + _lv_first_arr[0] = _lv_ret.first; + _lv_second_arr[0] = _lv_ret.second; + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + void QGraphicsItemAnimation_SetRotationAt(QGraphicsItemAnimation* self, double step, double angle) { self->setRotationAt(static_cast(step), static_cast(angle)); } @@ -102,6 +149,29 @@ double QGraphicsItemAnimation_YTranslationAt(const QGraphicsItemAnimation* self, return static_cast(_ret); } +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_TranslationList(const QGraphicsItemAnimation* self) { + QList> _ret = self->translationList(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of double and QPointF* */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of double and QPointF* */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + double* _lv_first_arr = static_cast(malloc(sizeof(double))); + QPointF** _lv_second_arr = static_cast(malloc(sizeof(QPointF*))); + _lv_first_arr[0] = _lv_ret.first; + _lv_second_arr[0] = new QPointF(_lv_ret.second); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + void QGraphicsItemAnimation_SetTranslationAt(QGraphicsItemAnimation* self, double step, double dx, double dy) { self->setTranslationAt(static_cast(step), static_cast(dx), static_cast(dy)); } @@ -116,6 +186,29 @@ double QGraphicsItemAnimation_HorizontalScaleAt(const QGraphicsItemAnimation* se return static_cast(_ret); } +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_ScaleList(const QGraphicsItemAnimation* self) { + QList> _ret = self->scaleList(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of double and QPointF* */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of double and QPointF* */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + double* _lv_first_arr = static_cast(malloc(sizeof(double))); + QPointF** _lv_second_arr = static_cast(malloc(sizeof(QPointF*))); + _lv_first_arr[0] = _lv_ret.first; + _lv_second_arr[0] = new QPointF(_lv_ret.second); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + void QGraphicsItemAnimation_SetScaleAt(QGraphicsItemAnimation* self, double step, double sx, double sy) { self->setScaleAt(static_cast(step), static_cast(sx), static_cast(sy)); } @@ -130,6 +223,29 @@ double QGraphicsItemAnimation_HorizontalShearAt(const QGraphicsItemAnimation* se return static_cast(_ret); } +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_ShearList(const QGraphicsItemAnimation* self) { + QList> _ret = self->shearList(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of double and QPointF* */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of double and QPointF* */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + double* _lv_first_arr = static_cast(malloc(sizeof(double))); + QPointF** _lv_second_arr = static_cast(malloc(sizeof(QPointF*))); + _lv_first_arr[0] = _lv_ret.first; + _lv_second_arr[0] = new QPointF(_lv_ret.second); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + void QGraphicsItemAnimation_SetShearAt(QGraphicsItemAnimation* self, double step, double sh, double sv) { self->setShearAt(static_cast(step), static_cast(sh), static_cast(sv)); } diff --git a/qt/gen_qgraphicsitemanimation.go b/qt/gen_qgraphicsitemanimation.go index fbfd1603..ccd02269 100644 --- a/qt/gen_qgraphicsitemanimation.go +++ b/qt/gen_qgraphicsitemanimation.go @@ -106,6 +106,35 @@ func (this *QGraphicsItemAnimation) PosAt(step float64) *QPointF { return _goptr } +func (this *QGraphicsItemAnimation) PosList() []struct { + First float64 + Second QPointF +} { + var _ma C.struct_miqt_array = C.QGraphicsItemAnimation_PosList(this.h) + _ret := make([]struct { + First float64 + Second QPointF + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]*C.QPointF)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := (float64)(_lv_First_CArray[0]) + + _lv_second_ret := _lv_Second_CArray[0] + _lv_second_goptr := newQPointF(_lv_second_ret) + _lv_second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _lv_entry_Second := *_lv_second_goptr + + _ret[i] = struct { + First float64 + Second QPointF + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QGraphicsItemAnimation) SetPosAt(step float64, pos *QPointF) { C.QGraphicsItemAnimation_SetPosAt(this.h, (C.double)(step), pos.cPointer()) } @@ -128,6 +157,32 @@ func (this *QGraphicsItemAnimation) RotationAt(step float64) float64 { return (float64)(C.QGraphicsItemAnimation_RotationAt(this.h, (C.double)(step))) } +func (this *QGraphicsItemAnimation) RotationList() []struct { + First float64 + Second float64 +} { + var _ma C.struct_miqt_array = C.QGraphicsItemAnimation_RotationList(this.h) + _ret := make([]struct { + First float64 + Second float64 + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]C.double)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := (float64)(_lv_First_CArray[0]) + + _lv_entry_Second := (float64)(_lv_Second_CArray[0]) + + _ret[i] = struct { + First float64 + Second float64 + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QGraphicsItemAnimation) SetRotationAt(step float64, angle float64) { C.QGraphicsItemAnimation_SetRotationAt(this.h, (C.double)(step), (C.double)(angle)) } @@ -140,6 +195,35 @@ func (this *QGraphicsItemAnimation) YTranslationAt(step float64) float64 { return (float64)(C.QGraphicsItemAnimation_YTranslationAt(this.h, (C.double)(step))) } +func (this *QGraphicsItemAnimation) TranslationList() []struct { + First float64 + Second QPointF +} { + var _ma C.struct_miqt_array = C.QGraphicsItemAnimation_TranslationList(this.h) + _ret := make([]struct { + First float64 + Second QPointF + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]*C.QPointF)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := (float64)(_lv_First_CArray[0]) + + _lv_second_ret := _lv_Second_CArray[0] + _lv_second_goptr := newQPointF(_lv_second_ret) + _lv_second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _lv_entry_Second := *_lv_second_goptr + + _ret[i] = struct { + First float64 + Second QPointF + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QGraphicsItemAnimation) SetTranslationAt(step float64, dx float64, dy float64) { C.QGraphicsItemAnimation_SetTranslationAt(this.h, (C.double)(step), (C.double)(dx), (C.double)(dy)) } @@ -152,6 +236,35 @@ func (this *QGraphicsItemAnimation) HorizontalScaleAt(step float64) float64 { return (float64)(C.QGraphicsItemAnimation_HorizontalScaleAt(this.h, (C.double)(step))) } +func (this *QGraphicsItemAnimation) ScaleList() []struct { + First float64 + Second QPointF +} { + var _ma C.struct_miqt_array = C.QGraphicsItemAnimation_ScaleList(this.h) + _ret := make([]struct { + First float64 + Second QPointF + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]*C.QPointF)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := (float64)(_lv_First_CArray[0]) + + _lv_second_ret := _lv_Second_CArray[0] + _lv_second_goptr := newQPointF(_lv_second_ret) + _lv_second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _lv_entry_Second := *_lv_second_goptr + + _ret[i] = struct { + First float64 + Second QPointF + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QGraphicsItemAnimation) SetScaleAt(step float64, sx float64, sy float64) { C.QGraphicsItemAnimation_SetScaleAt(this.h, (C.double)(step), (C.double)(sx), (C.double)(sy)) } @@ -164,6 +277,35 @@ func (this *QGraphicsItemAnimation) HorizontalShearAt(step float64) float64 { return (float64)(C.QGraphicsItemAnimation_HorizontalShearAt(this.h, (C.double)(step))) } +func (this *QGraphicsItemAnimation) ShearList() []struct { + First float64 + Second QPointF +} { + var _ma C.struct_miqt_array = C.QGraphicsItemAnimation_ShearList(this.h) + _ret := make([]struct { + First float64 + Second QPointF + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]*C.QPointF)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := (float64)(_lv_First_CArray[0]) + + _lv_second_ret := _lv_Second_CArray[0] + _lv_second_goptr := newQPointF(_lv_second_ret) + _lv_second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _lv_entry_Second := *_lv_second_goptr + + _ret[i] = struct { + First float64 + Second QPointF + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QGraphicsItemAnimation) SetShearAt(step float64, sh float64, sv float64) { C.QGraphicsItemAnimation_SetShearAt(this.h, (C.double)(step), (C.double)(sh), (C.double)(sv)) } diff --git a/qt/gen_qgraphicsitemanimation.h b/qt/gen_qgraphicsitemanimation.h index da1f9bda..ef2e2a1b 100644 --- a/qt/gen_qgraphicsitemanimation.h +++ b/qt/gen_qgraphicsitemanimation.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSITEMANIMATION_H -#define GEN_QGRAPHICSITEMANIMATION_H +#pragma once +#ifndef MIQT_QT_GEN_QGRAPHICSITEMANIMATION_H +#define MIQT_QT_GEN_QGRAPHICSITEMANIMATION_H #include #include @@ -44,19 +45,24 @@ void QGraphicsItemAnimation_SetItem(QGraphicsItemAnimation* self, QGraphicsItem* QTimeLine* QGraphicsItemAnimation_TimeLine(const QGraphicsItemAnimation* self); void QGraphicsItemAnimation_SetTimeLine(QGraphicsItemAnimation* self, QTimeLine* timeLine); QPointF* QGraphicsItemAnimation_PosAt(const QGraphicsItemAnimation* self, double step); +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_PosList(const QGraphicsItemAnimation* self); void QGraphicsItemAnimation_SetPosAt(QGraphicsItemAnimation* self, double step, QPointF* pos); QMatrix* QGraphicsItemAnimation_MatrixAt(const QGraphicsItemAnimation* self, double step); QTransform* QGraphicsItemAnimation_TransformAt(const QGraphicsItemAnimation* self, double step); double QGraphicsItemAnimation_RotationAt(const QGraphicsItemAnimation* self, double step); +struct miqt_array /* of struct miqt_map tuple of double and double */ QGraphicsItemAnimation_RotationList(const QGraphicsItemAnimation* self); void QGraphicsItemAnimation_SetRotationAt(QGraphicsItemAnimation* self, double step, double angle); double QGraphicsItemAnimation_XTranslationAt(const QGraphicsItemAnimation* self, double step); double QGraphicsItemAnimation_YTranslationAt(const QGraphicsItemAnimation* self, double step); +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_TranslationList(const QGraphicsItemAnimation* self); void QGraphicsItemAnimation_SetTranslationAt(QGraphicsItemAnimation* self, double step, double dx, double dy); double QGraphicsItemAnimation_VerticalScaleAt(const QGraphicsItemAnimation* self, double step); double QGraphicsItemAnimation_HorizontalScaleAt(const QGraphicsItemAnimation* self, double step); +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_ScaleList(const QGraphicsItemAnimation* self); void QGraphicsItemAnimation_SetScaleAt(QGraphicsItemAnimation* self, double step, double sx, double sy); double QGraphicsItemAnimation_VerticalShearAt(const QGraphicsItemAnimation* self, double step); double QGraphicsItemAnimation_HorizontalShearAt(const QGraphicsItemAnimation* self, double step); +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_ShearList(const QGraphicsItemAnimation* self); void QGraphicsItemAnimation_SetShearAt(QGraphicsItemAnimation* self, double step, double sh, double sv); void QGraphicsItemAnimation_Clear(QGraphicsItemAnimation* self); void QGraphicsItemAnimation_SetStep(QGraphicsItemAnimation* self, double x); diff --git a/qt/gen_qgraphicslayout.h b/qt/gen_qgraphicslayout.h index 6d86cee3..ce14f15d 100644 --- a/qt/gen_qgraphicslayout.h +++ b/qt/gen_qgraphicslayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSLAYOUT_H -#define GEN_QGRAPHICSLAYOUT_H +#pragma once +#ifndef MIQT_QT_GEN_QGRAPHICSLAYOUT_H +#define MIQT_QT_GEN_QGRAPHICSLAYOUT_H #include #include diff --git a/qt/gen_qgraphicslayoutitem.h b/qt/gen_qgraphicslayoutitem.h index c989a1f2..f0c58a43 100644 --- a/qt/gen_qgraphicslayoutitem.h +++ b/qt/gen_qgraphicslayoutitem.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSLAYOUTITEM_H -#define GEN_QGRAPHICSLAYOUTITEM_H +#pragma once +#ifndef MIQT_QT_GEN_QGRAPHICSLAYOUTITEM_H +#define MIQT_QT_GEN_QGRAPHICSLAYOUTITEM_H #include #include diff --git a/qt/gen_qgraphicslinearlayout.h b/qt/gen_qgraphicslinearlayout.h index fbd39457..82c50d8f 100644 --- a/qt/gen_qgraphicslinearlayout.h +++ b/qt/gen_qgraphicslinearlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSLINEARLAYOUT_H -#define GEN_QGRAPHICSLINEARLAYOUT_H +#pragma once +#ifndef MIQT_QT_GEN_QGRAPHICSLINEARLAYOUT_H +#define MIQT_QT_GEN_QGRAPHICSLINEARLAYOUT_H #include #include diff --git a/qt/gen_qgraphicsproxywidget.h b/qt/gen_qgraphicsproxywidget.h index cf5461ca..e25deebb 100644 --- a/qt/gen_qgraphicsproxywidget.h +++ b/qt/gen_qgraphicsproxywidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSPROXYWIDGET_H -#define GEN_QGRAPHICSPROXYWIDGET_H +#pragma once +#ifndef MIQT_QT_GEN_QGRAPHICSPROXYWIDGET_H +#define MIQT_QT_GEN_QGRAPHICSPROXYWIDGET_H #include #include diff --git a/qt/gen_qgraphicsscene.cpp b/qt/gen_qgraphicsscene.cpp index ff20c023..7c86d115 100644 --- a/qt/gen_qgraphicsscene.cpp +++ b/qt/gen_qgraphicsscene.cpp @@ -145,7 +145,7 @@ QRectF* QGraphicsScene_ItemsBoundingRect(const QGraphicsScene* self) { return new QRectF(self->itemsBoundingRect()); } -struct miqt_array QGraphicsScene_Items(const QGraphicsScene* self) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items(const QGraphicsScene* self) { QList _ret = self->items(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -158,7 +158,7 @@ struct miqt_array QGraphicsScene_Items(const QGraphicsScene* self) { return _out; } -struct miqt_array QGraphicsScene_ItemsWithPos(const QGraphicsScene* self, QPointF* pos) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_ItemsWithPos(const QGraphicsScene* self, QPointF* pos) { QList _ret = self->items(*pos); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -171,7 +171,7 @@ struct miqt_array QGraphicsScene_ItemsWithPos(const QGraphicsScene* self, QPoint return _out; } -struct miqt_array QGraphicsScene_ItemsWithRect(const QGraphicsScene* self, QRectF* rect) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_ItemsWithRect(const QGraphicsScene* self, QRectF* rect) { QList _ret = self->items(*rect); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -184,7 +184,7 @@ struct miqt_array QGraphicsScene_ItemsWithRect(const QGraphicsScene* self, QRect return _out; } -struct miqt_array QGraphicsScene_ItemsWithPath(const QGraphicsScene* self, QPainterPath* path) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_ItemsWithPath(const QGraphicsScene* self, QPainterPath* path) { QList _ret = self->items(*path); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -197,7 +197,7 @@ struct miqt_array QGraphicsScene_ItemsWithPath(const QGraphicsScene* self, QPain return _out; } -struct miqt_array QGraphicsScene_CollidingItems(const QGraphicsScene* self, QGraphicsItem* item) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_CollidingItems(const QGraphicsScene* self, QGraphicsItem* item) { QList _ret = self->collidingItems(item); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -214,7 +214,7 @@ QGraphicsItem* QGraphicsScene_ItemAt(const QGraphicsScene* self, QPointF* pos, Q return self->itemAt(*pos, *deviceTransform); } -struct miqt_array QGraphicsScene_Items2(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items2(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order) { QList _ret = self->items(static_cast(x), static_cast(y), static_cast(w), static_cast(h), static_cast(mode), static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -231,7 +231,7 @@ QGraphicsItem* QGraphicsScene_ItemAt2(const QGraphicsScene* self, double x, doub return self->itemAt(static_cast(x), static_cast(y), *deviceTransform); } -struct miqt_array QGraphicsScene_SelectedItems(const QGraphicsScene* self) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_SelectedItems(const QGraphicsScene* self) { QList _ret = self->selectedItems(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -260,7 +260,7 @@ void QGraphicsScene_SetSelectionArea2(QGraphicsScene* self, QPainterPath* path, self->setSelectionArea(*path, static_cast(selectionOperation)); } -QGraphicsItemGroup* QGraphicsScene_CreateItemGroup(QGraphicsScene* self, struct miqt_array /* of QGraphicsItem* */ items) { +QGraphicsItemGroup* QGraphicsScene_CreateItemGroup(QGraphicsScene* self, struct miqt_array /* of QGraphicsItem* */ items) { QList items_QList; items_QList.reserve(items.len); QGraphicsItem** items_arr = static_cast(items.data); @@ -380,7 +380,7 @@ QVariant* QGraphicsScene_InputMethodQuery(const QGraphicsScene* self, int query) return new QVariant(self->inputMethodQuery(static_cast(query))); } -struct miqt_array QGraphicsScene_Views(const QGraphicsScene* self) { +struct miqt_array /* of QGraphicsView* */ QGraphicsScene_Views(const QGraphicsScene* self) { QList _ret = self->views(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsView** _arr = static_cast(malloc(sizeof(QGraphicsView*) * _ret.length())); @@ -486,7 +486,7 @@ void QGraphicsScene_Clear(QGraphicsScene* self) { self->clear(); } -void QGraphicsScene_Changed(QGraphicsScene* self, struct miqt_array /* of QRectF* */ region) { +void QGraphicsScene_Changed(QGraphicsScene* self, struct miqt_array /* of QRectF* */ region) { QList region_QList; region_QList.reserve(region.len); QRectF** region_arr = static_cast(region.data); @@ -507,7 +507,7 @@ void QGraphicsScene_connect_Changed(QGraphicsScene* self, intptr_t slot) { struct miqt_array region_out; region_out.len = region_ret.length(); region_out.data = static_cast(region_arr); - struct miqt_array sigval1 = region_out; + struct miqt_array /* of QRectF* */ sigval1 = region_out; miqt_exec_callback_QGraphicsScene_Changed(slot, sigval1); }); } @@ -605,7 +605,7 @@ void QGraphicsScene_Render4(QGraphicsScene* self, QPainter* painter, QRectF* tar self->render(painter, *target, *source, static_cast(aspectRatioMode)); } -struct miqt_array QGraphicsScene_Items1(const QGraphicsScene* self, int order) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items1(const QGraphicsScene* self, int order) { QList _ret = self->items(static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -618,7 +618,7 @@ struct miqt_array QGraphicsScene_Items1(const QGraphicsScene* self, int order) { return _out; } -struct miqt_array QGraphicsScene_Items22(const QGraphicsScene* self, QPointF* pos, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items22(const QGraphicsScene* self, QPointF* pos, int mode) { QList _ret = self->items(*pos, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -631,7 +631,7 @@ struct miqt_array QGraphicsScene_Items22(const QGraphicsScene* self, QPointF* po return _out; } -struct miqt_array QGraphicsScene_Items3(const QGraphicsScene* self, QPointF* pos, int mode, int order) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items3(const QGraphicsScene* self, QPointF* pos, int mode, int order) { QList _ret = self->items(*pos, static_cast(mode), static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -644,7 +644,7 @@ struct miqt_array QGraphicsScene_Items3(const QGraphicsScene* self, QPointF* pos return _out; } -struct miqt_array QGraphicsScene_Items4(const QGraphicsScene* self, QPointF* pos, int mode, int order, QTransform* deviceTransform) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items4(const QGraphicsScene* self, QPointF* pos, int mode, int order, QTransform* deviceTransform) { QList _ret = self->items(*pos, static_cast(mode), static_cast(order), *deviceTransform); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -657,7 +657,7 @@ struct miqt_array QGraphicsScene_Items4(const QGraphicsScene* self, QPointF* pos return _out; } -struct miqt_array QGraphicsScene_Items23(const QGraphicsScene* self, QRectF* rect, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items23(const QGraphicsScene* self, QRectF* rect, int mode) { QList _ret = self->items(*rect, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -670,7 +670,7 @@ struct miqt_array QGraphicsScene_Items23(const QGraphicsScene* self, QRectF* rec return _out; } -struct miqt_array QGraphicsScene_Items32(const QGraphicsScene* self, QRectF* rect, int mode, int order) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items32(const QGraphicsScene* self, QRectF* rect, int mode, int order) { QList _ret = self->items(*rect, static_cast(mode), static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -683,7 +683,7 @@ struct miqt_array QGraphicsScene_Items32(const QGraphicsScene* self, QRectF* rec return _out; } -struct miqt_array QGraphicsScene_Items42(const QGraphicsScene* self, QRectF* rect, int mode, int order, QTransform* deviceTransform) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items42(const QGraphicsScene* self, QRectF* rect, int mode, int order, QTransform* deviceTransform) { QList _ret = self->items(*rect, static_cast(mode), static_cast(order), *deviceTransform); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -696,7 +696,7 @@ struct miqt_array QGraphicsScene_Items42(const QGraphicsScene* self, QRectF* rec return _out; } -struct miqt_array QGraphicsScene_Items25(const QGraphicsScene* self, QPainterPath* path, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items25(const QGraphicsScene* self, QPainterPath* path, int mode) { QList _ret = self->items(*path, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -709,7 +709,7 @@ struct miqt_array QGraphicsScene_Items25(const QGraphicsScene* self, QPainterPat return _out; } -struct miqt_array QGraphicsScene_Items34(const QGraphicsScene* self, QPainterPath* path, int mode, int order) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items34(const QGraphicsScene* self, QPainterPath* path, int mode, int order) { QList _ret = self->items(*path, static_cast(mode), static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -722,7 +722,7 @@ struct miqt_array QGraphicsScene_Items34(const QGraphicsScene* self, QPainterPat return _out; } -struct miqt_array QGraphicsScene_Items44(const QGraphicsScene* self, QPainterPath* path, int mode, int order, QTransform* deviceTransform) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items44(const QGraphicsScene* self, QPainterPath* path, int mode, int order, QTransform* deviceTransform) { QList _ret = self->items(*path, static_cast(mode), static_cast(order), *deviceTransform); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -735,7 +735,7 @@ struct miqt_array QGraphicsScene_Items44(const QGraphicsScene* self, QPainterPat return _out; } -struct miqt_array QGraphicsScene_CollidingItems2(const QGraphicsScene* self, QGraphicsItem* item, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_CollidingItems2(const QGraphicsScene* self, QGraphicsItem* item, int mode) { QList _ret = self->collidingItems(item, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -748,7 +748,7 @@ struct miqt_array QGraphicsScene_CollidingItems2(const QGraphicsScene* self, QGr return _out; } -struct miqt_array QGraphicsScene_Items7(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order, QTransform* deviceTransform) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items7(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order, QTransform* deviceTransform) { QList _ret = self->items(static_cast(x), static_cast(y), static_cast(w), static_cast(h), static_cast(mode), static_cast(order), *deviceTransform); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); diff --git a/qt/gen_qgraphicsscene.h b/qt/gen_qgraphicsscene.h index 04ec433a..827a3f9d 100644 --- a/qt/gen_qgraphicsscene.h +++ b/qt/gen_qgraphicsscene.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSSCENE_H -#define GEN_QGRAPHICSSCENE_H +#pragma once +#ifndef MIQT_QT_GEN_QGRAPHICSSCENE_H +#define MIQT_QT_GEN_QGRAPHICSSCENE_H #include #include @@ -100,20 +101,20 @@ void QGraphicsScene_SetSortCacheEnabled(QGraphicsScene* self, bool enabled); int QGraphicsScene_BspTreeDepth(const QGraphicsScene* self); void QGraphicsScene_SetBspTreeDepth(QGraphicsScene* self, int depth); QRectF* QGraphicsScene_ItemsBoundingRect(const QGraphicsScene* self); -struct miqt_array QGraphicsScene_Items(const QGraphicsScene* self); -struct miqt_array QGraphicsScene_ItemsWithPos(const QGraphicsScene* self, QPointF* pos); -struct miqt_array QGraphicsScene_ItemsWithRect(const QGraphicsScene* self, QRectF* rect); -struct miqt_array QGraphicsScene_ItemsWithPath(const QGraphicsScene* self, QPainterPath* path); -struct miqt_array QGraphicsScene_CollidingItems(const QGraphicsScene* self, QGraphicsItem* item); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items(const QGraphicsScene* self); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_ItemsWithPos(const QGraphicsScene* self, QPointF* pos); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_ItemsWithRect(const QGraphicsScene* self, QRectF* rect); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_ItemsWithPath(const QGraphicsScene* self, QPainterPath* path); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_CollidingItems(const QGraphicsScene* self, QGraphicsItem* item); QGraphicsItem* QGraphicsScene_ItemAt(const QGraphicsScene* self, QPointF* pos, QTransform* deviceTransform); -struct miqt_array QGraphicsScene_Items2(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items2(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order); QGraphicsItem* QGraphicsScene_ItemAt2(const QGraphicsScene* self, double x, double y, QTransform* deviceTransform); -struct miqt_array QGraphicsScene_SelectedItems(const QGraphicsScene* self); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_SelectedItems(const QGraphicsScene* self); QPainterPath* QGraphicsScene_SelectionArea(const QGraphicsScene* self); void QGraphicsScene_SetSelectionArea(QGraphicsScene* self, QPainterPath* path, QTransform* deviceTransform); void QGraphicsScene_SetSelectionAreaWithPath(QGraphicsScene* self, QPainterPath* path); void QGraphicsScene_SetSelectionArea2(QGraphicsScene* self, QPainterPath* path, int selectionOperation); -QGraphicsItemGroup* QGraphicsScene_CreateItemGroup(QGraphicsScene* self, struct miqt_array /* of QGraphicsItem* */ items); +QGraphicsItemGroup* QGraphicsScene_CreateItemGroup(QGraphicsScene* self, struct miqt_array /* of QGraphicsItem* */ items); void QGraphicsScene_DestroyItemGroup(QGraphicsScene* self, QGraphicsItemGroup* group); void QGraphicsScene_AddItem(QGraphicsScene* self, QGraphicsItem* item); QGraphicsEllipseItem* QGraphicsScene_AddEllipse(QGraphicsScene* self, QRectF* rect); @@ -141,7 +142,7 @@ void QGraphicsScene_SetBackgroundBrush(QGraphicsScene* self, QBrush* brush); QBrush* QGraphicsScene_ForegroundBrush(const QGraphicsScene* self); void QGraphicsScene_SetForegroundBrush(QGraphicsScene* self, QBrush* brush); QVariant* QGraphicsScene_InputMethodQuery(const QGraphicsScene* self, int query); -struct miqt_array QGraphicsScene_Views(const QGraphicsScene* self); +struct miqt_array /* of QGraphicsView* */ QGraphicsScene_Views(const QGraphicsScene* self); void QGraphicsScene_Update(QGraphicsScene* self, double x, double y, double w, double h); void QGraphicsScene_Invalidate(QGraphicsScene* self, double x, double y, double w, double h); QStyle* QGraphicsScene_Style(const QGraphicsScene* self); @@ -165,7 +166,7 @@ void QGraphicsScene_Invalidate2(QGraphicsScene* self); void QGraphicsScene_Advance(QGraphicsScene* self); void QGraphicsScene_ClearSelection(QGraphicsScene* self); void QGraphicsScene_Clear(QGraphicsScene* self); -void QGraphicsScene_Changed(QGraphicsScene* self, struct miqt_array /* of QRectF* */ region); +void QGraphicsScene_Changed(QGraphicsScene* self, struct miqt_array /* of QRectF* */ region); void QGraphicsScene_connect_Changed(QGraphicsScene* self, intptr_t slot); void QGraphicsScene_SceneRectChanged(QGraphicsScene* self, QRectF* rect); void QGraphicsScene_connect_SceneRectChanged(QGraphicsScene* self, intptr_t slot); @@ -180,18 +181,18 @@ struct miqt_string QGraphicsScene_TrUtf83(const char* s, const char* c, int n); void QGraphicsScene_Render2(QGraphicsScene* self, QPainter* painter, QRectF* target); void QGraphicsScene_Render3(QGraphicsScene* self, QPainter* painter, QRectF* target, QRectF* source); void QGraphicsScene_Render4(QGraphicsScene* self, QPainter* painter, QRectF* target, QRectF* source, int aspectRatioMode); -struct miqt_array QGraphicsScene_Items1(const QGraphicsScene* self, int order); -struct miqt_array QGraphicsScene_Items22(const QGraphicsScene* self, QPointF* pos, int mode); -struct miqt_array QGraphicsScene_Items3(const QGraphicsScene* self, QPointF* pos, int mode, int order); -struct miqt_array QGraphicsScene_Items4(const QGraphicsScene* self, QPointF* pos, int mode, int order, QTransform* deviceTransform); -struct miqt_array QGraphicsScene_Items23(const QGraphicsScene* self, QRectF* rect, int mode); -struct miqt_array QGraphicsScene_Items32(const QGraphicsScene* self, QRectF* rect, int mode, int order); -struct miqt_array QGraphicsScene_Items42(const QGraphicsScene* self, QRectF* rect, int mode, int order, QTransform* deviceTransform); -struct miqt_array QGraphicsScene_Items25(const QGraphicsScene* self, QPainterPath* path, int mode); -struct miqt_array QGraphicsScene_Items34(const QGraphicsScene* self, QPainterPath* path, int mode, int order); -struct miqt_array QGraphicsScene_Items44(const QGraphicsScene* self, QPainterPath* path, int mode, int order, QTransform* deviceTransform); -struct miqt_array QGraphicsScene_CollidingItems2(const QGraphicsScene* self, QGraphicsItem* item, int mode); -struct miqt_array QGraphicsScene_Items7(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order, QTransform* deviceTransform); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items1(const QGraphicsScene* self, int order); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items22(const QGraphicsScene* self, QPointF* pos, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items3(const QGraphicsScene* self, QPointF* pos, int mode, int order); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items4(const QGraphicsScene* self, QPointF* pos, int mode, int order, QTransform* deviceTransform); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items23(const QGraphicsScene* self, QRectF* rect, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items32(const QGraphicsScene* self, QRectF* rect, int mode, int order); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items42(const QGraphicsScene* self, QRectF* rect, int mode, int order, QTransform* deviceTransform); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items25(const QGraphicsScene* self, QPainterPath* path, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items34(const QGraphicsScene* self, QPainterPath* path, int mode, int order); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items44(const QGraphicsScene* self, QPainterPath* path, int mode, int order, QTransform* deviceTransform); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_CollidingItems2(const QGraphicsScene* self, QGraphicsItem* item, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items7(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order, QTransform* deviceTransform); void QGraphicsScene_SetSelectionArea22(QGraphicsScene* self, QPainterPath* path, int mode); void QGraphicsScene_SetSelectionArea3(QGraphicsScene* self, QPainterPath* path, int mode, QTransform* deviceTransform); void QGraphicsScene_SetSelectionArea32(QGraphicsScene* self, QPainterPath* path, int selectionOperation, int mode); diff --git a/qt/gen_qgraphicssceneevent.h b/qt/gen_qgraphicssceneevent.h index 9654bb6e..8c87fde7 100644 --- a/qt/gen_qgraphicssceneevent.h +++ b/qt/gen_qgraphicssceneevent.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSSCENEEVENT_H -#define GEN_QGRAPHICSSCENEEVENT_H +#pragma once +#ifndef MIQT_QT_GEN_QGRAPHICSSCENEEVENT_H +#define MIQT_QT_GEN_QGRAPHICSSCENEEVENT_H #include #include diff --git a/qt/gen_qgraphicstransform.h b/qt/gen_qgraphicstransform.h index a299d299..3e7a3515 100644 --- a/qt/gen_qgraphicstransform.h +++ b/qt/gen_qgraphicstransform.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSTRANSFORM_H -#define GEN_QGRAPHICSTRANSFORM_H +#pragma once +#ifndef MIQT_QT_GEN_QGRAPHICSTRANSFORM_H +#define MIQT_QT_GEN_QGRAPHICSTRANSFORM_H #include #include diff --git a/qt/gen_qgraphicsview.cpp b/qt/gen_qgraphicsview.cpp index 8f50f029..c9636624 100644 --- a/qt/gen_qgraphicsview.cpp +++ b/qt/gen_qgraphicsview.cpp @@ -285,7 +285,7 @@ void QGraphicsView_Render(QGraphicsView* self, QPainter* painter) { self->render(painter); } -struct miqt_array QGraphicsView_Items(const QGraphicsView* self) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items(const QGraphicsView* self) { QList _ret = self->items(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -298,7 +298,7 @@ struct miqt_array QGraphicsView_Items(const QGraphicsView* self) { return _out; } -struct miqt_array QGraphicsView_ItemsWithPos(const QGraphicsView* self, QPoint* pos) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_ItemsWithPos(const QGraphicsView* self, QPoint* pos) { QList _ret = self->items(*pos); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -311,7 +311,7 @@ struct miqt_array QGraphicsView_ItemsWithPos(const QGraphicsView* self, QPoint* return _out; } -struct miqt_array QGraphicsView_Items2(const QGraphicsView* self, int x, int y) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items2(const QGraphicsView* self, int x, int y) { QList _ret = self->items(static_cast(x), static_cast(y)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -324,7 +324,7 @@ struct miqt_array QGraphicsView_Items2(const QGraphicsView* self, int x, int y) return _out; } -struct miqt_array QGraphicsView_ItemsWithRect(const QGraphicsView* self, QRect* rect) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_ItemsWithRect(const QGraphicsView* self, QRect* rect) { QList _ret = self->items(*rect); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -337,7 +337,7 @@ struct miqt_array QGraphicsView_ItemsWithRect(const QGraphicsView* self, QRect* return _out; } -struct miqt_array QGraphicsView_Items3(const QGraphicsView* self, int x, int y, int w, int h) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items3(const QGraphicsView* self, int x, int y, int w, int h) { QList _ret = self->items(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -350,7 +350,7 @@ struct miqt_array QGraphicsView_Items3(const QGraphicsView* self, int x, int y, return _out; } -struct miqt_array QGraphicsView_ItemsWithPath(const QGraphicsView* self, QPainterPath* path) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_ItemsWithPath(const QGraphicsView* self, QPainterPath* path) { QList _ret = self->items(*path); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -415,7 +415,7 @@ void QGraphicsView_SetForegroundBrush(QGraphicsView* self, QBrush* brush) { self->setForegroundBrush(*brush); } -void QGraphicsView_UpdateScene(QGraphicsView* self, struct miqt_array /* of QRectF* */ rects) { +void QGraphicsView_UpdateScene(QGraphicsView* self, struct miqt_array /* of QRectF* */ rects) { QList rects_QList; rects_QList.reserve(rects.len); QRectF** rects_arr = static_cast(rects.data); @@ -554,7 +554,7 @@ void QGraphicsView_Render4(QGraphicsView* self, QPainter* painter, QRectF* targe self->render(painter, *target, *source, static_cast(aspectRatioMode)); } -struct miqt_array QGraphicsView_Items22(const QGraphicsView* self, QRect* rect, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items22(const QGraphicsView* self, QRect* rect, int mode) { QList _ret = self->items(*rect, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -567,7 +567,7 @@ struct miqt_array QGraphicsView_Items22(const QGraphicsView* self, QRect* rect, return _out; } -struct miqt_array QGraphicsView_Items5(const QGraphicsView* self, int x, int y, int w, int h, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items5(const QGraphicsView* self, int x, int y, int w, int h, int mode) { QList _ret = self->items(static_cast(x), static_cast(y), static_cast(w), static_cast(h), static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -580,7 +580,7 @@ struct miqt_array QGraphicsView_Items5(const QGraphicsView* self, int x, int y, return _out; } -struct miqt_array QGraphicsView_Items24(const QGraphicsView* self, QPainterPath* path, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items24(const QGraphicsView* self, QPainterPath* path, int mode) { QList _ret = self->items(*path, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); diff --git a/qt/gen_qgraphicsview.h b/qt/gen_qgraphicsview.h index 08739cd2..1b264926 100644 --- a/qt/gen_qgraphicsview.h +++ b/qt/gen_qgraphicsview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSVIEW_H -#define GEN_QGRAPHICSVIEW_H +#pragma once +#ifndef MIQT_QT_GEN_QGRAPHICSVIEW_H +#define MIQT_QT_GEN_QGRAPHICSVIEW_H #include #include @@ -109,12 +110,12 @@ void QGraphicsView_FitInView(QGraphicsView* self, QRectF* rect); void QGraphicsView_FitInView2(QGraphicsView* self, double x, double y, double w, double h); void QGraphicsView_FitInViewWithItem(QGraphicsView* self, QGraphicsItem* item); void QGraphicsView_Render(QGraphicsView* self, QPainter* painter); -struct miqt_array QGraphicsView_Items(const QGraphicsView* self); -struct miqt_array QGraphicsView_ItemsWithPos(const QGraphicsView* self, QPoint* pos); -struct miqt_array QGraphicsView_Items2(const QGraphicsView* self, int x, int y); -struct miqt_array QGraphicsView_ItemsWithRect(const QGraphicsView* self, QRect* rect); -struct miqt_array QGraphicsView_Items3(const QGraphicsView* self, int x, int y, int w, int h); -struct miqt_array QGraphicsView_ItemsWithPath(const QGraphicsView* self, QPainterPath* path); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items(const QGraphicsView* self); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_ItemsWithPos(const QGraphicsView* self, QPoint* pos); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items2(const QGraphicsView* self, int x, int y); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_ItemsWithRect(const QGraphicsView* self, QRect* rect); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items3(const QGraphicsView* self, int x, int y, int w, int h); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_ItemsWithPath(const QGraphicsView* self, QPainterPath* path); QGraphicsItem* QGraphicsView_ItemAt(const QGraphicsView* self, QPoint* pos); QGraphicsItem* QGraphicsView_ItemAt2(const QGraphicsView* self, int x, int y); QPointF* QGraphicsView_MapToScene(const QGraphicsView* self, QPoint* point); @@ -128,7 +129,7 @@ QBrush* QGraphicsView_BackgroundBrush(const QGraphicsView* self); void QGraphicsView_SetBackgroundBrush(QGraphicsView* self, QBrush* brush); QBrush* QGraphicsView_ForegroundBrush(const QGraphicsView* self); void QGraphicsView_SetForegroundBrush(QGraphicsView* self, QBrush* brush); -void QGraphicsView_UpdateScene(QGraphicsView* self, struct miqt_array /* of QRectF* */ rects); +void QGraphicsView_UpdateScene(QGraphicsView* self, struct miqt_array /* of QRectF* */ rects); void QGraphicsView_InvalidateScene(QGraphicsView* self); void QGraphicsView_UpdateSceneRect(QGraphicsView* self, QRectF* rect); void QGraphicsView_RubberBandChanged(QGraphicsView* self, QRect* viewportRect, QPointF* fromScenePoint, QPointF* toScenePoint); @@ -153,9 +154,9 @@ void QGraphicsView_FitInView23(QGraphicsView* self, QGraphicsItem* item, int asp void QGraphicsView_Render2(QGraphicsView* self, QPainter* painter, QRectF* target); void QGraphicsView_Render3(QGraphicsView* self, QPainter* painter, QRectF* target, QRect* source); void QGraphicsView_Render4(QGraphicsView* self, QPainter* painter, QRectF* target, QRect* source, int aspectRatioMode); -struct miqt_array QGraphicsView_Items22(const QGraphicsView* self, QRect* rect, int mode); -struct miqt_array QGraphicsView_Items5(const QGraphicsView* self, int x, int y, int w, int h, int mode); -struct miqt_array QGraphicsView_Items24(const QGraphicsView* self, QPainterPath* path, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items22(const QGraphicsView* self, QRect* rect, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items5(const QGraphicsView* self, int x, int y, int w, int h, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items24(const QGraphicsView* self, QPainterPath* path, int mode); void QGraphicsView_InvalidateScene1(QGraphicsView* self, QRectF* rect); void QGraphicsView_InvalidateScene2(QGraphicsView* self, QRectF* rect, int layers); void QGraphicsView_Delete(QGraphicsView* self); diff --git a/qt/gen_qgraphicswidget.cpp b/qt/gen_qgraphicswidget.cpp index a9c70dd3..4c20e4b3 100644 --- a/qt/gen_qgraphicswidget.cpp +++ b/qt/gen_qgraphicswidget.cpp @@ -252,7 +252,7 @@ void QGraphicsWidget_AddAction(QGraphicsWidget* self, QAction* action) { self->addAction(action); } -void QGraphicsWidget_AddActions(QGraphicsWidget* self, struct miqt_array /* of QAction* */ actions) { +void QGraphicsWidget_AddActions(QGraphicsWidget* self, struct miqt_array /* of QAction* */ actions) { QList actions_QList; actions_QList.reserve(actions.len); QAction** actions_arr = static_cast(actions.data); @@ -262,7 +262,7 @@ void QGraphicsWidget_AddActions(QGraphicsWidget* self, struct miqt_array /* of Q self->addActions(actions_QList); } -void QGraphicsWidget_InsertActions(QGraphicsWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions) { +void QGraphicsWidget_InsertActions(QGraphicsWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions) { QList actions_QList; actions_QList.reserve(actions.len); QAction** actions_arr = static_cast(actions.data); @@ -280,7 +280,7 @@ void QGraphicsWidget_RemoveAction(QGraphicsWidget* self, QAction* action) { self->removeAction(action); } -struct miqt_array QGraphicsWidget_Actions(const QGraphicsWidget* self) { +struct miqt_array /* of QAction* */ QGraphicsWidget_Actions(const QGraphicsWidget* self) { QList _ret = self->actions(); // Convert QList<> from C++ memory to manually-managed C memory QAction** _arr = static_cast(malloc(sizeof(QAction*) * _ret.length())); diff --git a/qt/gen_qgraphicswidget.h b/qt/gen_qgraphicswidget.h index fa32c711..02112c16 100644 --- a/qt/gen_qgraphicswidget.h +++ b/qt/gen_qgraphicswidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSWIDGET_H -#define GEN_QGRAPHICSWIDGET_H +#pragma once +#ifndef MIQT_QT_GEN_QGRAPHICSWIDGET_H +#define MIQT_QT_GEN_QGRAPHICSWIDGET_H #include #include @@ -100,11 +101,11 @@ void QGraphicsWidget_ReleaseShortcut(QGraphicsWidget* self, int id); void QGraphicsWidget_SetShortcutEnabled(QGraphicsWidget* self, int id); void QGraphicsWidget_SetShortcutAutoRepeat(QGraphicsWidget* self, int id); void QGraphicsWidget_AddAction(QGraphicsWidget* self, QAction* action); -void QGraphicsWidget_AddActions(QGraphicsWidget* self, struct miqt_array /* of QAction* */ actions); -void QGraphicsWidget_InsertActions(QGraphicsWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions); +void QGraphicsWidget_AddActions(QGraphicsWidget* self, struct miqt_array /* of QAction* */ actions); +void QGraphicsWidget_InsertActions(QGraphicsWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions); void QGraphicsWidget_InsertAction(QGraphicsWidget* self, QAction* before, QAction* action); void QGraphicsWidget_RemoveAction(QGraphicsWidget* self, QAction* action); -struct miqt_array QGraphicsWidget_Actions(const QGraphicsWidget* self); +struct miqt_array /* of QAction* */ QGraphicsWidget_Actions(const QGraphicsWidget* self); void QGraphicsWidget_SetAttribute(QGraphicsWidget* self, int attribute); bool QGraphicsWidget_TestAttribute(const QGraphicsWidget* self, int attribute); int QGraphicsWidget_Type(const QGraphicsWidget* self); diff --git a/qt/gen_qgridlayout.h b/qt/gen_qgridlayout.h index 30f19a99..5e6448c1 100644 --- a/qt/gen_qgridlayout.h +++ b/qt/gen_qgridlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRIDLAYOUT_H -#define GEN_QGRIDLAYOUT_H +#pragma once +#ifndef MIQT_QT_GEN_QGRIDLAYOUT_H +#define MIQT_QT_GEN_QGRIDLAYOUT_H #include #include diff --git a/qt/gen_qgroupbox.h b/qt/gen_qgroupbox.h index 78cc328c..eeee29a5 100644 --- a/qt/gen_qgroupbox.h +++ b/qt/gen_qgroupbox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGROUPBOX_H -#define GEN_QGROUPBOX_H +#pragma once +#ifndef MIQT_QT_GEN_QGROUPBOX_H +#define MIQT_QT_GEN_QGROUPBOX_H #include #include diff --git a/qt/gen_qguiapplication.cpp b/qt/gen_qguiapplication.cpp index 54cfff9a..c1211083 100644 --- a/qt/gen_qguiapplication.cpp +++ b/qt/gen_qguiapplication.cpp @@ -91,7 +91,7 @@ struct miqt_string QGuiApplication_DesktopFileName() { return _ms; } -struct miqt_array QGuiApplication_AllWindows() { +struct miqt_array /* of QWindow* */ QGuiApplication_AllWindows() { QWindowList _ret = QGuiApplication::allWindows(); // Convert QList<> from C++ memory to manually-managed C memory QWindow** _arr = static_cast(malloc(sizeof(QWindow*) * _ret.length())); @@ -104,7 +104,7 @@ struct miqt_array QGuiApplication_AllWindows() { return _out; } -struct miqt_array QGuiApplication_TopLevelWindows() { +struct miqt_array /* of QWindow* */ QGuiApplication_TopLevelWindows() { QWindowList _ret = QGuiApplication::topLevelWindows(); // Convert QList<> from C++ memory to manually-managed C memory QWindow** _arr = static_cast(malloc(sizeof(QWindow*) * _ret.length())); @@ -156,7 +156,7 @@ QScreen* QGuiApplication_PrimaryScreen() { return QGuiApplication::primaryScreen(); } -struct miqt_array QGuiApplication_Screens() { +struct miqt_array /* of QScreen* */ QGuiApplication_Screens() { QList _ret = QGuiApplication::screens(); // Convert QList<> from C++ memory to manually-managed C memory QScreen** _arr = static_cast(malloc(sizeof(QScreen*) * _ret.length())); diff --git a/qt/gen_qguiapplication.h b/qt/gen_qguiapplication.h index cca8bbb9..ae4f5378 100644 --- a/qt/gen_qguiapplication.h +++ b/qt/gen_qguiapplication.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGUIAPPLICATION_H -#define GEN_QGUIAPPLICATION_H +#pragma once +#ifndef MIQT_QT_GEN_QGUIAPPLICATION_H +#define MIQT_QT_GEN_QGUIAPPLICATION_H #include #include @@ -57,8 +58,8 @@ void QGuiApplication_SetApplicationDisplayName(struct miqt_string name); struct miqt_string QGuiApplication_ApplicationDisplayName(); void QGuiApplication_SetDesktopFileName(struct miqt_string name); struct miqt_string QGuiApplication_DesktopFileName(); -struct miqt_array QGuiApplication_AllWindows(); -struct miqt_array QGuiApplication_TopLevelWindows(); +struct miqt_array /* of QWindow* */ QGuiApplication_AllWindows(); +struct miqt_array /* of QWindow* */ QGuiApplication_TopLevelWindows(); QWindow* QGuiApplication_TopLevelAt(QPoint* pos); void QGuiApplication_SetWindowIcon(QIcon* icon); QIcon* QGuiApplication_WindowIcon(); @@ -67,7 +68,7 @@ QWindow* QGuiApplication_ModalWindow(); QWindow* QGuiApplication_FocusWindow(); QObject* QGuiApplication_FocusObject(); QScreen* QGuiApplication_PrimaryScreen(); -struct miqt_array QGuiApplication_Screens(); +struct miqt_array /* of QScreen* */ QGuiApplication_Screens(); QScreen* QGuiApplication_ScreenAt(QPoint* point); double QGuiApplication_DevicePixelRatio(const QGuiApplication* self); QCursor* QGuiApplication_OverrideCursor(); diff --git a/qt/gen_qhashfunctions.h b/qt/gen_qhashfunctions.h index 7af9c7d0..fd704d68 100644 --- a/qt/gen_qhashfunctions.h +++ b/qt/gen_qhashfunctions.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHASHFUNCTIONS_H -#define GEN_QHASHFUNCTIONS_H +#pragma once +#ifndef MIQT_QT_GEN_QHASHFUNCTIONS_H +#define MIQT_QT_GEN_QHASHFUNCTIONS_H #include #include diff --git a/qt/gen_qheaderview.h b/qt/gen_qheaderview.h index 8c062413..1045ecc6 100644 --- a/qt/gen_qheaderview.h +++ b/qt/gen_qheaderview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHEADERVIEW_H -#define GEN_QHEADERVIEW_H +#pragma once +#ifndef MIQT_QT_GEN_QHEADERVIEW_H +#define MIQT_QT_GEN_QHEADERVIEW_H #include #include diff --git a/qt/gen_qhistorystate.h b/qt/gen_qhistorystate.h index dd04c809..79c9f49a 100644 --- a/qt/gen_qhistorystate.h +++ b/qt/gen_qhistorystate.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHISTORYSTATE_H -#define GEN_QHISTORYSTATE_H +#pragma once +#ifndef MIQT_QT_GEN_QHISTORYSTATE_H +#define MIQT_QT_GEN_QHISTORYSTATE_H #include #include diff --git a/qt/gen_qicon.cpp b/qt/gen_qicon.cpp index 1d960734..fbb04561 100644 --- a/qt/gen_qicon.cpp +++ b/qt/gen_qicon.cpp @@ -111,7 +111,7 @@ void QIcon_AddFile(QIcon* self, struct miqt_string fileName) { self->addFile(fileName_QString); } -struct miqt_array QIcon_AvailableSizes(const QIcon* self) { +struct miqt_array /* of QSize* */ QIcon_AvailableSizes(const QIcon* self) { QList _ret = self->availableSizes(); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -147,7 +147,7 @@ bool QIcon_HasThemeIcon(struct miqt_string name) { return QIcon::hasThemeIcon(name_QString); } -struct miqt_array QIcon_ThemeSearchPaths() { +struct miqt_array /* of struct miqt_string */ QIcon_ThemeSearchPaths() { QStringList _ret = QIcon::themeSearchPaths(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -167,7 +167,7 @@ struct miqt_array QIcon_ThemeSearchPaths() { return _out; } -void QIcon_SetThemeSearchPaths(struct miqt_array /* of struct miqt_string */ searchpath) { +void QIcon_SetThemeSearchPaths(struct miqt_array /* of struct miqt_string */ searchpath) { QStringList searchpath_QList; searchpath_QList.reserve(searchpath.len); struct miqt_string* searchpath_arr = static_cast(searchpath.data); @@ -178,7 +178,7 @@ void QIcon_SetThemeSearchPaths(struct miqt_array /* of struct miqt_string */ sea QIcon::setThemeSearchPaths(searchpath_QList); } -struct miqt_array QIcon_FallbackSearchPaths() { +struct miqt_array /* of struct miqt_string */ QIcon_FallbackSearchPaths() { QStringList _ret = QIcon::fallbackSearchPaths(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -198,7 +198,7 @@ struct miqt_array QIcon_FallbackSearchPaths() { return _out; } -void QIcon_SetFallbackSearchPaths(struct miqt_array /* of struct miqt_string */ paths) { +void QIcon_SetFallbackSearchPaths(struct miqt_array /* of struct miqt_string */ paths) { QStringList paths_QList; paths_QList.reserve(paths.len); struct miqt_string* paths_arr = static_cast(paths.data); @@ -336,7 +336,7 @@ void QIcon_AddFile4(QIcon* self, struct miqt_string fileName, QSize* size, int m self->addFile(fileName_QString, *size, static_cast(mode), static_cast(state)); } -struct miqt_array QIcon_AvailableSizes1(const QIcon* self, int mode) { +struct miqt_array /* of QSize* */ QIcon_AvailableSizes1(const QIcon* self, int mode) { QList _ret = self->availableSizes(static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -349,7 +349,7 @@ struct miqt_array QIcon_AvailableSizes1(const QIcon* self, int mode) { return _out; } -struct miqt_array QIcon_AvailableSizes2(const QIcon* self, int mode, int state) { +struct miqt_array /* of QSize* */ QIcon_AvailableSizes2(const QIcon* self, int mode, int state) { QList _ret = self->availableSizes(static_cast(mode), static_cast(state)); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); diff --git a/qt/gen_qicon.h b/qt/gen_qicon.h index bb8f73ae..3cd90633 100644 --- a/qt/gen_qicon.h +++ b/qt/gen_qicon.h @@ -1,5 +1,6 @@ -#ifndef GEN_QICON_H -#define GEN_QICON_H +#pragma once +#ifndef MIQT_QT_GEN_QICON_H +#define MIQT_QT_GEN_QICON_H #include #include @@ -53,16 +54,16 @@ void QIcon_Detach(QIcon* self); long long QIcon_CacheKey(const QIcon* self); void QIcon_AddPixmap(QIcon* self, QPixmap* pixmap); void QIcon_AddFile(QIcon* self, struct miqt_string fileName); -struct miqt_array QIcon_AvailableSizes(const QIcon* self); +struct miqt_array /* of QSize* */ QIcon_AvailableSizes(const QIcon* self); void QIcon_SetIsMask(QIcon* self, bool isMask); bool QIcon_IsMask(const QIcon* self); QIcon* QIcon_FromTheme(struct miqt_string name); QIcon* QIcon_FromTheme2(struct miqt_string name, QIcon* fallback); bool QIcon_HasThemeIcon(struct miqt_string name); -struct miqt_array QIcon_ThemeSearchPaths(); -void QIcon_SetThemeSearchPaths(struct miqt_array /* of struct miqt_string */ searchpath); -struct miqt_array QIcon_FallbackSearchPaths(); -void QIcon_SetFallbackSearchPaths(struct miqt_array /* of struct miqt_string */ paths); +struct miqt_array /* of struct miqt_string */ QIcon_ThemeSearchPaths(); +void QIcon_SetThemeSearchPaths(struct miqt_array /* of struct miqt_string */ searchpath); +struct miqt_array /* of struct miqt_string */ QIcon_FallbackSearchPaths(); +void QIcon_SetFallbackSearchPaths(struct miqt_array /* of struct miqt_string */ paths); struct miqt_string QIcon_ThemeName(); void QIcon_SetThemeName(struct miqt_string path); struct miqt_string QIcon_FallbackThemeName(); @@ -90,8 +91,8 @@ void QIcon_AddPixmap3(QIcon* self, QPixmap* pixmap, int mode, int state); void QIcon_AddFile2(QIcon* self, struct miqt_string fileName, QSize* size); void QIcon_AddFile3(QIcon* self, struct miqt_string fileName, QSize* size, int mode); void QIcon_AddFile4(QIcon* self, struct miqt_string fileName, QSize* size, int mode, int state); -struct miqt_array QIcon_AvailableSizes1(const QIcon* self, int mode); -struct miqt_array QIcon_AvailableSizes2(const QIcon* self, int mode, int state); +struct miqt_array /* of QSize* */ QIcon_AvailableSizes1(const QIcon* self, int mode); +struct miqt_array /* of QSize* */ QIcon_AvailableSizes2(const QIcon* self, int mode, int state); void QIcon_Delete(QIcon* self); #ifdef __cplusplus diff --git a/qt/gen_qiconengine.cpp b/qt/gen_qiconengine.cpp index d1fe6a35..9e9bff7a 100644 --- a/qt/gen_qiconengine.cpp +++ b/qt/gen_qiconengine.cpp @@ -58,7 +58,7 @@ bool QIconEngine_Write(const QIconEngine* self, QDataStream* out) { return self->write(*out); } -struct miqt_array QIconEngine_AvailableSizes(const QIconEngine* self) { +struct miqt_array /* of QSize* */ QIconEngine_AvailableSizes(const QIconEngine* self) { QList _ret = self->availableSizes(); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -94,7 +94,7 @@ void QIconEngine_VirtualHook(QIconEngine* self, int id, void* data) { self->virtual_hook(static_cast(id), data); } -struct miqt_array QIconEngine_AvailableSizes1(const QIconEngine* self, int mode) { +struct miqt_array /* of QSize* */ QIconEngine_AvailableSizes1(const QIconEngine* self, int mode) { QList _ret = self->availableSizes(static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -107,7 +107,7 @@ struct miqt_array QIconEngine_AvailableSizes1(const QIconEngine* self, int mode) return _out; } -struct miqt_array QIconEngine_AvailableSizes2(const QIconEngine* self, int mode, int state) { +struct miqt_array /* of QSize* */ QIconEngine_AvailableSizes2(const QIconEngine* self, int mode, int state) { QList _ret = self->availableSizes(static_cast(mode), static_cast(state)); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); diff --git a/qt/gen_qiconengine.h b/qt/gen_qiconengine.h index 91ed380f..d707ad43 100644 --- a/qt/gen_qiconengine.h +++ b/qt/gen_qiconengine.h @@ -1,5 +1,6 @@ -#ifndef GEN_QICONENGINE_H -#define GEN_QICONENGINE_H +#pragma once +#ifndef MIQT_QT_GEN_QICONENGINE_H +#define MIQT_QT_GEN_QICONENGINE_H #include #include @@ -50,13 +51,13 @@ struct miqt_string QIconEngine_Key(const QIconEngine* self); QIconEngine* QIconEngine_Clone(const QIconEngine* self); bool QIconEngine_Read(QIconEngine* self, QDataStream* in); bool QIconEngine_Write(const QIconEngine* self, QDataStream* out); -struct miqt_array QIconEngine_AvailableSizes(const QIconEngine* self); +struct miqt_array /* of QSize* */ QIconEngine_AvailableSizes(const QIconEngine* self); struct miqt_string QIconEngine_IconName(const QIconEngine* self); bool QIconEngine_IsNull(const QIconEngine* self); QPixmap* QIconEngine_ScaledPixmap(QIconEngine* self, QSize* size, int mode, int state, double scale); void QIconEngine_VirtualHook(QIconEngine* self, int id, void* data); -struct miqt_array QIconEngine_AvailableSizes1(const QIconEngine* self, int mode); -struct miqt_array QIconEngine_AvailableSizes2(const QIconEngine* self, int mode, int state); +struct miqt_array /* of QSize* */ QIconEngine_AvailableSizes1(const QIconEngine* self, int mode); +struct miqt_array /* of QSize* */ QIconEngine_AvailableSizes2(const QIconEngine* self, int mode, int state); void QIconEngine_Delete(QIconEngine* self); QIconEngine__AvailableSizesArgument* QIconEngine__AvailableSizesArgument_new(QIconEngine__AvailableSizesArgument* param1); diff --git a/qt/gen_qiconengineplugin.h b/qt/gen_qiconengineplugin.h index 6b098d41..12db2968 100644 --- a/qt/gen_qiconengineplugin.h +++ b/qt/gen_qiconengineplugin.h @@ -1,5 +1,6 @@ -#ifndef GEN_QICONENGINEPLUGIN_H -#define GEN_QICONENGINEPLUGIN_H +#pragma once +#ifndef MIQT_QT_GEN_QICONENGINEPLUGIN_H +#define MIQT_QT_GEN_QICONENGINEPLUGIN_H #include #include diff --git a/qt/gen_qidentityproxymodel.cpp b/qt/gen_qidentityproxymodel.cpp index 2988d5b1..28b22c80 100644 --- a/qt/gen_qidentityproxymodel.cpp +++ b/qt/gen_qidentityproxymodel.cpp @@ -87,7 +87,7 @@ QModelIndex* QIdentityProxyModel_Sibling(const QIdentityProxyModel* self, int ro return new QModelIndex(self->sibling(static_cast(row), static_cast(column), *idx)); } -struct miqt_array QIdentityProxyModel_Match(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value) { +struct miqt_array /* of QModelIndex* */ QIdentityProxyModel_Match(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value) { QModelIndexList _ret = self->match(*start, static_cast(role), *value); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -188,7 +188,7 @@ QVariant* QIdentityProxyModel_HeaderData3(const QIdentityProxyModel* self, int s return new QVariant(self->headerData(static_cast(section), static_cast(orientation), static_cast(role))); } -struct miqt_array QIdentityProxyModel_Match4(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits) { +struct miqt_array /* of QModelIndex* */ QIdentityProxyModel_Match4(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits) { QModelIndexList _ret = self->match(*start, static_cast(role), *value, static_cast(hits)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -201,7 +201,7 @@ struct miqt_array QIdentityProxyModel_Match4(const QIdentityProxyModel* self, QM return _out; } -struct miqt_array QIdentityProxyModel_Match5(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) { +struct miqt_array /* of QModelIndex* */ QIdentityProxyModel_Match5(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) { QModelIndexList _ret = self->match(*start, static_cast(role), *value, static_cast(hits), static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); diff --git a/qt/gen_qidentityproxymodel.h b/qt/gen_qidentityproxymodel.h index 649231e4..8b78dfa1 100644 --- a/qt/gen_qidentityproxymodel.h +++ b/qt/gen_qidentityproxymodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIDENTITYPROXYMODEL_H -#define GEN_QIDENTITYPROXYMODEL_H +#pragma once +#ifndef MIQT_QT_GEN_QIDENTITYPROXYMODEL_H +#define MIQT_QT_GEN_QIDENTITYPROXYMODEL_H #include #include @@ -46,7 +47,7 @@ int QIdentityProxyModel_RowCount(const QIdentityProxyModel* self); QVariant* QIdentityProxyModel_HeaderData(const QIdentityProxyModel* self, int section, int orientation); bool QIdentityProxyModel_DropMimeData(QIdentityProxyModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); QModelIndex* QIdentityProxyModel_Sibling(const QIdentityProxyModel* self, int row, int column, QModelIndex* idx); -struct miqt_array QIdentityProxyModel_Match(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value); +struct miqt_array /* of QModelIndex* */ QIdentityProxyModel_Match(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value); void QIdentityProxyModel_SetSourceModel(QIdentityProxyModel* self, QAbstractItemModel* sourceModel); bool QIdentityProxyModel_InsertColumns(QIdentityProxyModel* self, int column, int count); bool QIdentityProxyModel_InsertRows(QIdentityProxyModel* self, int row, int count); @@ -62,8 +63,8 @@ int QIdentityProxyModel_ColumnCount1(const QIdentityProxyModel* self, QModelInde QModelIndex* QIdentityProxyModel_Index3(const QIdentityProxyModel* self, int row, int column, QModelIndex* parent); int QIdentityProxyModel_RowCount1(const QIdentityProxyModel* self, QModelIndex* parent); QVariant* QIdentityProxyModel_HeaderData3(const QIdentityProxyModel* self, int section, int orientation, int role); -struct miqt_array QIdentityProxyModel_Match4(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits); -struct miqt_array QIdentityProxyModel_Match5(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags); +struct miqt_array /* of QModelIndex* */ QIdentityProxyModel_Match4(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits); +struct miqt_array /* of QModelIndex* */ QIdentityProxyModel_Match5(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags); bool QIdentityProxyModel_InsertColumns3(QIdentityProxyModel* self, int column, int count, QModelIndex* parent); bool QIdentityProxyModel_InsertRows3(QIdentityProxyModel* self, int row, int count, QModelIndex* parent); bool QIdentityProxyModel_RemoveColumns3(QIdentityProxyModel* self, int column, int count, QModelIndex* parent); diff --git a/qt/gen_qimage.cpp b/qt/gen_qimage.cpp index 9acee4b6..da79f0a1 100644 --- a/qt/gen_qimage.cpp +++ b/qt/gen_qimage.cpp @@ -110,7 +110,7 @@ QImage* QImage_ConvertToFormat(const QImage* self, int f) { return new QImage(self->convertToFormat(static_cast(f))); } -QImage* QImage_ConvertToFormat2(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable) { +QImage* QImage_ConvertToFormat2(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable) { QVector colorTable_QList; colorTable_QList.reserve(colorTable.len); unsigned int* colorTable_arr = static_cast(colorTable.data); @@ -270,7 +270,7 @@ void QImage_SetPixelColor2(QImage* self, QPoint* pt, QColor* c) { self->setPixelColor(*pt, *c); } -struct miqt_array QImage_ColorTable(const QImage* self) { +struct miqt_array /* of unsigned int */ QImage_ColorTable(const QImage* self) { QVector _ret = self->colorTable(); // Convert QList<> from C++ memory to manually-managed C memory unsigned int* _arr = static_cast(malloc(sizeof(unsigned int) * _ret.length())); @@ -283,7 +283,7 @@ struct miqt_array QImage_ColorTable(const QImage* self) { return _out; } -void QImage_SetColorTable(QImage* self, struct miqt_array /* of unsigned int */ colors) { +void QImage_SetColorTable(QImage* self, struct miqt_array /* of unsigned int */ colors) { QVector colors_QList; colors_QList.reserve(colors.len); unsigned int* colors_arr = static_cast(colors.data); @@ -471,7 +471,7 @@ void QImage_SetOffset(QImage* self, QPoint* offset) { self->setOffset(*offset); } -struct miqt_array QImage_TextKeys(const QImage* self) { +struct miqt_array /* of struct miqt_string */ QImage_TextKeys(const QImage* self) { QStringList _ret = self->textKeys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -529,7 +529,7 @@ QImage* QImage_ConvertToFormat22(const QImage* self, int f, int flags) { return new QImage(self->convertToFormat(static_cast(f), static_cast(flags))); } -QImage* QImage_ConvertToFormat3(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable, int flags) { +QImage* QImage_ConvertToFormat3(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable, int flags) { QVector colorTable_QList; colorTable_QList.reserve(colorTable.len); unsigned int* colorTable_arr = static_cast(colorTable.data); diff --git a/qt/gen_qimage.go b/qt/gen_qimage.go index dbcf3c9e..29b39e5c 100644 --- a/qt/gen_qimage.go +++ b/qt/gen_qimage.go @@ -289,15 +289,15 @@ func (this *QImage) IsGrayscale() bool { } func (this *QImage) Bits() *byte { - return (*byte)(C.QImage_Bits(this.h)) + return (*byte)(unsafe.Pointer(C.QImage_Bits(this.h))) } func (this *QImage) Bits2() *byte { - return (*byte)(C.QImage_Bits2(this.h)) + return (*byte)(unsafe.Pointer(C.QImage_Bits2(this.h))) } func (this *QImage) ConstBits() *byte { - return (*byte)(C.QImage_ConstBits(this.h)) + return (*byte)(unsafe.Pointer(C.QImage_ConstBits(this.h))) } func (this *QImage) ByteCount() int { @@ -309,15 +309,15 @@ func (this *QImage) SizeInBytes() int64 { } func (this *QImage) ScanLine(param1 int) *byte { - return (*byte)(C.QImage_ScanLine(this.h, (C.int)(param1))) + return (*byte)(unsafe.Pointer(C.QImage_ScanLine(this.h, (C.int)(param1)))) } func (this *QImage) ScanLineWithInt(param1 int) *byte { - return (*byte)(C.QImage_ScanLineWithInt(this.h, (C.int)(param1))) + return (*byte)(unsafe.Pointer(C.QImage_ScanLineWithInt(this.h, (C.int)(param1)))) } func (this *QImage) ConstScanLine(param1 int) *byte { - return (*byte)(C.QImage_ConstScanLine(this.h, (C.int)(param1))) + return (*byte)(unsafe.Pointer(C.QImage_ConstScanLine(this.h, (C.int)(param1)))) } func (this *QImage) BytesPerLine() int { diff --git a/qt/gen_qimage.h b/qt/gen_qimage.h index 0465e211..b32b87ee 100644 --- a/qt/gen_qimage.h +++ b/qt/gen_qimage.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIMAGE_H -#define GEN_QIMAGE_H +#pragma once +#ifndef MIQT_QT_GEN_QIMAGE_H +#define MIQT_QT_GEN_QIMAGE_H #include #include @@ -65,7 +66,7 @@ QImage* QImage_Copy(const QImage* self); QImage* QImage_Copy2(const QImage* self, int x, int y, int w, int h); int QImage_Format(const QImage* self); QImage* QImage_ConvertToFormat(const QImage* self, int f); -QImage* QImage_ConvertToFormat2(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable); +QImage* QImage_ConvertToFormat2(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable); bool QImage_ReinterpretAsFormat(QImage* self, int f); void QImage_ConvertTo(QImage* self, int f); int QImage_Width(const QImage* self); @@ -101,8 +102,8 @@ QColor* QImage_PixelColor(const QImage* self, int x, int y); QColor* QImage_PixelColorWithPt(const QImage* self, QPoint* pt); void QImage_SetPixelColor(QImage* self, int x, int y, QColor* c); void QImage_SetPixelColor2(QImage* self, QPoint* pt, QColor* c); -struct miqt_array QImage_ColorTable(const QImage* self); -void QImage_SetColorTable(QImage* self, struct miqt_array /* of unsigned int */ colors); +struct miqt_array /* of unsigned int */ QImage_ColorTable(const QImage* self); +void QImage_SetColorTable(QImage* self, struct miqt_array /* of unsigned int */ colors); double QImage_DevicePixelRatio(const QImage* self); void QImage_SetDevicePixelRatio(QImage* self, double scaleFactor); void QImage_Fill(QImage* self, unsigned int pixel); @@ -146,7 +147,7 @@ void QImage_SetDotsPerMeterX(QImage* self, int dotsPerMeterX); void QImage_SetDotsPerMeterY(QImage* self, int dotsPerMeterY); QPoint* QImage_Offset(const QImage* self); void QImage_SetOffset(QImage* self, QPoint* offset); -struct miqt_array QImage_TextKeys(const QImage* self); +struct miqt_array /* of struct miqt_string */ QImage_TextKeys(const QImage* self); struct miqt_string QImage_Text(const QImage* self); void QImage_SetText(QImage* self, struct miqt_string key, struct miqt_string value); QPixelFormat* QImage_PixelFormat(const QImage* self); @@ -154,7 +155,7 @@ QPixelFormat* QImage_ToPixelFormat(int format); int QImage_ToImageFormat(QPixelFormat* format); QImage* QImage_Copy1(const QImage* self, QRect* rect); QImage* QImage_ConvertToFormat22(const QImage* self, int f, int flags); -QImage* QImage_ConvertToFormat3(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable, int flags); +QImage* QImage_ConvertToFormat3(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable, int flags); void QImage_ConvertTo2(QImage* self, int f, int flags); QImage* QImage_CreateAlphaMask1(const QImage* self, int flags); QImage* QImage_CreateHeuristicMask1(const QImage* self, bool clipTight); diff --git a/qt/gen_qimageiohandler.h b/qt/gen_qimageiohandler.h index 6d8bda97..76a3e985 100644 --- a/qt/gen_qimageiohandler.h +++ b/qt/gen_qimageiohandler.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIMAGEIOHANDLER_H -#define GEN_QIMAGEIOHANDLER_H +#pragma once +#ifndef MIQT_QT_GEN_QIMAGEIOHANDLER_H +#define MIQT_QT_GEN_QIMAGEIOHANDLER_H #include #include diff --git a/qt/gen_qimagereader.cpp b/qt/gen_qimagereader.cpp index ae906ef5..d406e9cd 100644 --- a/qt/gen_qimagereader.cpp +++ b/qt/gen_qimagereader.cpp @@ -122,7 +122,7 @@ int QImageReader_ImageFormat(const QImageReader* self) { return static_cast(_ret); } -struct miqt_array QImageReader_TextKeys(const QImageReader* self) { +struct miqt_array /* of struct miqt_string */ QImageReader_TextKeys(const QImageReader* self) { QStringList _ret = self->textKeys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -228,7 +228,7 @@ struct miqt_string QImageReader_SubType(const QImageReader* self) { return _ms; } -struct miqt_array QImageReader_SupportedSubTypes(const QImageReader* self) { +struct miqt_array /* of struct miqt_string */ QImageReader_SupportedSubTypes(const QImageReader* self) { QList _ret = self->supportedSubTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -325,7 +325,7 @@ struct miqt_string QImageReader_ImageFormatWithDevice(QIODevice* device) { return _ms; } -struct miqt_array QImageReader_SupportedImageFormats() { +struct miqt_array /* of struct miqt_string */ QImageReader_SupportedImageFormats() { QList _ret = QImageReader::supportedImageFormats(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -343,7 +343,7 @@ struct miqt_array QImageReader_SupportedImageFormats() { return _out; } -struct miqt_array QImageReader_SupportedMimeTypes() { +struct miqt_array /* of struct miqt_string */ QImageReader_SupportedMimeTypes() { QList _ret = QImageReader::supportedMimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -361,7 +361,7 @@ struct miqt_array QImageReader_SupportedMimeTypes() { return _out; } -struct miqt_array QImageReader_ImageFormatsForMimeType(struct miqt_string mimeType) { +struct miqt_array /* of struct miqt_string */ QImageReader_ImageFormatsForMimeType(struct miqt_string mimeType) { QByteArray mimeType_QByteArray(mimeType.data, mimeType.len); QList _ret = QImageReader::imageFormatsForMimeType(mimeType_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/gen_qimagereader.h b/qt/gen_qimagereader.h index 9114f512..1de5efbd 100644 --- a/qt/gen_qimagereader.h +++ b/qt/gen_qimagereader.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIMAGEREADER_H -#define GEN_QIMAGEREADER_H +#pragma once +#ifndef MIQT_QT_GEN_QIMAGEREADER_H +#define MIQT_QT_GEN_QIMAGEREADER_H #include #include @@ -50,7 +51,7 @@ void QImageReader_SetFileName(QImageReader* self, struct miqt_string fileName); struct miqt_string QImageReader_FileName(const QImageReader* self); QSize* QImageReader_Size(const QImageReader* self); int QImageReader_ImageFormat(const QImageReader* self); -struct miqt_array QImageReader_TextKeys(const QImageReader* self); +struct miqt_array /* of struct miqt_string */ QImageReader_TextKeys(const QImageReader* self); struct miqt_string QImageReader_Text(const QImageReader* self, struct miqt_string key); void QImageReader_SetClipRect(QImageReader* self, QRect* rect); QRect* QImageReader_ClipRect(const QImageReader* self); @@ -69,7 +70,7 @@ bool QImageReader_AutoTransform(const QImageReader* self); void QImageReader_SetGamma(QImageReader* self, float gamma); float QImageReader_Gamma(const QImageReader* self); struct miqt_string QImageReader_SubType(const QImageReader* self); -struct miqt_array QImageReader_SupportedSubTypes(const QImageReader* self); +struct miqt_array /* of struct miqt_string */ QImageReader_SupportedSubTypes(const QImageReader* self); bool QImageReader_CanRead(const QImageReader* self); QImage* QImageReader_Read(QImageReader* self); bool QImageReader_ReadWithImage(QImageReader* self, QImage* image); @@ -85,9 +86,9 @@ struct miqt_string QImageReader_ErrorString(const QImageReader* self); bool QImageReader_SupportsOption(const QImageReader* self, int option); struct miqt_string QImageReader_ImageFormatWithFileName(struct miqt_string fileName); struct miqt_string QImageReader_ImageFormatWithDevice(QIODevice* device); -struct miqt_array QImageReader_SupportedImageFormats(); -struct miqt_array QImageReader_SupportedMimeTypes(); -struct miqt_array QImageReader_ImageFormatsForMimeType(struct miqt_string mimeType); +struct miqt_array /* of struct miqt_string */ QImageReader_SupportedImageFormats(); +struct miqt_array /* of struct miqt_string */ QImageReader_SupportedMimeTypes(); +struct miqt_array /* of struct miqt_string */ QImageReader_ImageFormatsForMimeType(struct miqt_string mimeType); struct miqt_string QImageReader_Tr2(const char* sourceText, const char* disambiguation); struct miqt_string QImageReader_Tr3(const char* sourceText, const char* disambiguation, int n); struct miqt_string QImageReader_TrUtf82(const char* sourceText, const char* disambiguation); diff --git a/qt/gen_qimagewriter.cpp b/qt/gen_qimagewriter.cpp index 2bda95a8..38766ced 100644 --- a/qt/gen_qimagewriter.cpp +++ b/qt/gen_qimagewriter.cpp @@ -128,7 +128,7 @@ struct miqt_string QImageWriter_SubType(const QImageWriter* self) { return _ms; } -struct miqt_array QImageWriter_SupportedSubTypes(const QImageWriter* self) { +struct miqt_array /* of struct miqt_string */ QImageWriter_SupportedSubTypes(const QImageWriter* self) { QList _ret = self->supportedSubTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -221,7 +221,7 @@ bool QImageWriter_SupportsOption(const QImageWriter* self, int option) { return self->supportsOption(static_cast(option)); } -struct miqt_array QImageWriter_SupportedImageFormats() { +struct miqt_array /* of struct miqt_string */ QImageWriter_SupportedImageFormats() { QList _ret = QImageWriter::supportedImageFormats(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -239,7 +239,7 @@ struct miqt_array QImageWriter_SupportedImageFormats() { return _out; } -struct miqt_array QImageWriter_SupportedMimeTypes() { +struct miqt_array /* of struct miqt_string */ QImageWriter_SupportedMimeTypes() { QList _ret = QImageWriter::supportedMimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -257,7 +257,7 @@ struct miqt_array QImageWriter_SupportedMimeTypes() { return _out; } -struct miqt_array QImageWriter_ImageFormatsForMimeType(struct miqt_string mimeType) { +struct miqt_array /* of struct miqt_string */ QImageWriter_ImageFormatsForMimeType(struct miqt_string mimeType) { QByteArray mimeType_QByteArray(mimeType.data, mimeType.len); QList _ret = QImageWriter::imageFormatsForMimeType(mimeType_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/gen_qimagewriter.h b/qt/gen_qimagewriter.h index 5e09675f..93e74960 100644 --- a/qt/gen_qimagewriter.h +++ b/qt/gen_qimagewriter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIMAGEWRITER_H -#define GEN_QIMAGEWRITER_H +#pragma once +#ifndef MIQT_QT_GEN_QIMAGEWRITER_H +#define MIQT_QT_GEN_QIMAGEWRITER_H #include #include @@ -45,7 +46,7 @@ void QImageWriter_SetGamma(QImageWriter* self, float gamma); float QImageWriter_Gamma(const QImageWriter* self); void QImageWriter_SetSubType(QImageWriter* self, struct miqt_string typeVal); struct miqt_string QImageWriter_SubType(const QImageWriter* self); -struct miqt_array QImageWriter_SupportedSubTypes(const QImageWriter* self); +struct miqt_array /* of struct miqt_string */ QImageWriter_SupportedSubTypes(const QImageWriter* self); void QImageWriter_SetOptimizedWrite(QImageWriter* self, bool optimize); bool QImageWriter_OptimizedWrite(const QImageWriter* self); void QImageWriter_SetProgressiveScanWrite(QImageWriter* self, bool progressive); @@ -60,9 +61,9 @@ bool QImageWriter_Write(QImageWriter* self, QImage* image); int QImageWriter_Error(const QImageWriter* self); struct miqt_string QImageWriter_ErrorString(const QImageWriter* self); bool QImageWriter_SupportsOption(const QImageWriter* self, int option); -struct miqt_array QImageWriter_SupportedImageFormats(); -struct miqt_array QImageWriter_SupportedMimeTypes(); -struct miqt_array QImageWriter_ImageFormatsForMimeType(struct miqt_string mimeType); +struct miqt_array /* of struct miqt_string */ QImageWriter_SupportedImageFormats(); +struct miqt_array /* of struct miqt_string */ QImageWriter_SupportedMimeTypes(); +struct miqt_array /* of struct miqt_string */ QImageWriter_ImageFormatsForMimeType(struct miqt_string mimeType); struct miqt_string QImageWriter_Tr2(const char* sourceText, const char* disambiguation); struct miqt_string QImageWriter_Tr3(const char* sourceText, const char* disambiguation, int n); struct miqt_string QImageWriter_TrUtf82(const char* sourceText, const char* disambiguation); diff --git a/qt/gen_qinputdialog.cpp b/qt/gen_qinputdialog.cpp index d22e92b5..18a0490e 100644 --- a/qt/gen_qinputdialog.cpp +++ b/qt/gen_qinputdialog.cpp @@ -127,7 +127,7 @@ bool QInputDialog_IsComboBoxEditable(const QInputDialog* self) { return self->isComboBoxEditable(); } -void QInputDialog_SetComboBoxItems(QInputDialog* self, struct miqt_array /* of struct miqt_string */ items) { +void QInputDialog_SetComboBoxItems(QInputDialog* self, struct miqt_array /* of struct miqt_string */ items) { QStringList items_QList; items_QList.reserve(items.len); struct miqt_string* items_arr = static_cast(items.data); @@ -138,7 +138,7 @@ void QInputDialog_SetComboBoxItems(QInputDialog* self, struct miqt_array /* of s self->setComboBoxItems(items_QList); } -struct miqt_array QInputDialog_ComboBoxItems(const QInputDialog* self) { +struct miqt_array /* of struct miqt_string */ QInputDialog_ComboBoxItems(const QInputDialog* self) { QStringList _ret = self->comboBoxItems(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -300,7 +300,7 @@ struct miqt_string QInputDialog_GetMultiLineText(QWidget* parent, struct miqt_st return _ms; } -struct miqt_string QInputDialog_GetItem(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items) { +struct miqt_string QInputDialog_GetItem(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items) { QString title_QString = QString::fromUtf8(title.data, title.len); QString label_QString = QString::fromUtf8(label.data, label.len); QStringList items_QList; @@ -605,7 +605,7 @@ struct miqt_string QInputDialog_GetMultiLineText7(QWidget* parent, struct miqt_s return _ms; } -struct miqt_string QInputDialog_GetItem5(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current) { +struct miqt_string QInputDialog_GetItem5(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current) { QString title_QString = QString::fromUtf8(title.data, title.len); QString label_QString = QString::fromUtf8(label.data, label.len); QStringList items_QList; @@ -625,7 +625,7 @@ struct miqt_string QInputDialog_GetItem5(QWidget* parent, struct miqt_string tit return _ms; } -struct miqt_string QInputDialog_GetItem6(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable) { +struct miqt_string QInputDialog_GetItem6(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable) { QString title_QString = QString::fromUtf8(title.data, title.len); QString label_QString = QString::fromUtf8(label.data, label.len); QStringList items_QList; @@ -645,7 +645,7 @@ struct miqt_string QInputDialog_GetItem6(QWidget* parent, struct miqt_string tit return _ms; } -struct miqt_string QInputDialog_GetItem7(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok) { +struct miqt_string QInputDialog_GetItem7(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok) { QString title_QString = QString::fromUtf8(title.data, title.len); QString label_QString = QString::fromUtf8(label.data, label.len); QStringList items_QList; @@ -665,7 +665,7 @@ struct miqt_string QInputDialog_GetItem7(QWidget* parent, struct miqt_string tit return _ms; } -struct miqt_string QInputDialog_GetItem8(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags) { +struct miqt_string QInputDialog_GetItem8(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags) { QString title_QString = QString::fromUtf8(title.data, title.len); QString label_QString = QString::fromUtf8(label.data, label.len); QStringList items_QList; @@ -685,7 +685,7 @@ struct miqt_string QInputDialog_GetItem8(QWidget* parent, struct miqt_string tit return _ms; } -struct miqt_string QInputDialog_GetItem9(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags, int inputMethodHints) { +struct miqt_string QInputDialog_GetItem9(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags, int inputMethodHints) { QString title_QString = QString::fromUtf8(title.data, title.len); QString label_QString = QString::fromUtf8(label.data, label.len); QStringList items_QList; diff --git a/qt/gen_qinputdialog.h b/qt/gen_qinputdialog.h index ad4173f5..bf192456 100644 --- a/qt/gen_qinputdialog.h +++ b/qt/gen_qinputdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QINPUTDIALOG_H -#define GEN_QINPUTDIALOG_H +#pragma once +#ifndef MIQT_QT_GEN_QINPUTDIALOG_H +#define MIQT_QT_GEN_QINPUTDIALOG_H #include #include @@ -46,8 +47,8 @@ void QInputDialog_SetTextEchoMode(QInputDialog* self, int mode); int QInputDialog_TextEchoMode(const QInputDialog* self); void QInputDialog_SetComboBoxEditable(QInputDialog* self, bool editable); bool QInputDialog_IsComboBoxEditable(const QInputDialog* self); -void QInputDialog_SetComboBoxItems(QInputDialog* self, struct miqt_array /* of struct miqt_string */ items); -struct miqt_array QInputDialog_ComboBoxItems(const QInputDialog* self); +void QInputDialog_SetComboBoxItems(QInputDialog* self, struct miqt_array /* of struct miqt_string */ items); +struct miqt_array /* of struct miqt_string */ QInputDialog_ComboBoxItems(const QInputDialog* self); void QInputDialog_SetIntValue(QInputDialog* self, int value); int QInputDialog_IntValue(const QInputDialog* self); void QInputDialog_SetIntMinimum(QInputDialog* self, int min); @@ -75,7 +76,7 @@ QSize* QInputDialog_SizeHint(const QInputDialog* self); void QInputDialog_SetVisible(QInputDialog* self, bool visible); struct miqt_string QInputDialog_GetText(QWidget* parent, struct miqt_string title, struct miqt_string label); struct miqt_string QInputDialog_GetMultiLineText(QWidget* parent, struct miqt_string title, struct miqt_string label); -struct miqt_string QInputDialog_GetItem(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items); +struct miqt_string QInputDialog_GetItem(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items); int QInputDialog_GetInt(QWidget* parent, struct miqt_string title, struct miqt_string label); double QInputDialog_GetDouble(QWidget* parent, struct miqt_string title, struct miqt_string label); double QInputDialog_GetDouble2(QWidget* parent, struct miqt_string title, struct miqt_string label, double value, double minValue, double maxValue, int decimals, bool* ok, int flags, double step); @@ -108,11 +109,11 @@ struct miqt_string QInputDialog_GetMultiLineText4(QWidget* parent, struct miqt_s struct miqt_string QInputDialog_GetMultiLineText5(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_string text, bool* ok); struct miqt_string QInputDialog_GetMultiLineText6(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_string text, bool* ok, int flags); struct miqt_string QInputDialog_GetMultiLineText7(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_string text, bool* ok, int flags, int inputMethodHints); -struct miqt_string QInputDialog_GetItem5(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current); -struct miqt_string QInputDialog_GetItem6(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable); -struct miqt_string QInputDialog_GetItem7(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok); -struct miqt_string QInputDialog_GetItem8(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags); -struct miqt_string QInputDialog_GetItem9(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags, int inputMethodHints); +struct miqt_string QInputDialog_GetItem5(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current); +struct miqt_string QInputDialog_GetItem6(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable); +struct miqt_string QInputDialog_GetItem7(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok); +struct miqt_string QInputDialog_GetItem8(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags); +struct miqt_string QInputDialog_GetItem9(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags, int inputMethodHints); int QInputDialog_GetInt4(QWidget* parent, struct miqt_string title, struct miqt_string label, int value); int QInputDialog_GetInt5(QWidget* parent, struct miqt_string title, struct miqt_string label, int value, int minValue); int QInputDialog_GetInt6(QWidget* parent, struct miqt_string title, struct miqt_string label, int value, int minValue, int maxValue); diff --git a/qt/gen_qinputmethod.h b/qt/gen_qinputmethod.h index b1fa0242..32002f30 100644 --- a/qt/gen_qinputmethod.h +++ b/qt/gen_qinputmethod.h @@ -1,5 +1,6 @@ -#ifndef GEN_QINPUTMETHOD_H -#define GEN_QINPUTMETHOD_H +#pragma once +#ifndef MIQT_QT_GEN_QINPUTMETHOD_H +#define MIQT_QT_GEN_QINPUTMETHOD_H #include #include diff --git a/qt/gen_qiodevice.h b/qt/gen_qiodevice.h index 9606a60a..a38d45d0 100644 --- a/qt/gen_qiodevice.h +++ b/qt/gen_qiodevice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIODEVICE_H -#define GEN_QIODEVICE_H +#pragma once +#ifndef MIQT_QT_GEN_QIODEVICE_H +#define MIQT_QT_GEN_QIODEVICE_H #include #include diff --git a/qt/gen_qitemdelegate.h b/qt/gen_qitemdelegate.h index 513dec57..e0f3061e 100644 --- a/qt/gen_qitemdelegate.h +++ b/qt/gen_qitemdelegate.h @@ -1,5 +1,6 @@ -#ifndef GEN_QITEMDELEGATE_H -#define GEN_QITEMDELEGATE_H +#pragma once +#ifndef MIQT_QT_GEN_QITEMDELEGATE_H +#define MIQT_QT_GEN_QITEMDELEGATE_H #include #include diff --git a/qt/gen_qitemeditorfactory.h b/qt/gen_qitemeditorfactory.h index 2060ba9c..5b3cfc8f 100644 --- a/qt/gen_qitemeditorfactory.h +++ b/qt/gen_qitemeditorfactory.h @@ -1,5 +1,6 @@ -#ifndef GEN_QITEMEDITORFACTORY_H -#define GEN_QITEMEDITORFACTORY_H +#pragma once +#ifndef MIQT_QT_GEN_QITEMEDITORFACTORY_H +#define MIQT_QT_GEN_QITEMEDITORFACTORY_H #include #include diff --git a/qt/gen_qitemselectionmodel.cpp b/qt/gen_qitemselectionmodel.cpp index 5b765f56..30b6ce0a 100644 --- a/qt/gen_qitemselectionmodel.cpp +++ b/qt/gen_qitemselectionmodel.cpp @@ -117,7 +117,7 @@ bool QItemSelectionRange_IsEmpty(const QItemSelectionRange* self) { return self->isEmpty(); } -struct miqt_array QItemSelectionRange_Indexes(const QItemSelectionRange* self) { +struct miqt_array /* of QModelIndex* */ QItemSelectionRange_Indexes(const QItemSelectionRange* self) { QModelIndexList _ret = self->indexes(); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -204,7 +204,7 @@ bool QItemSelectionModel_HasSelection(const QItemSelectionModel* self) { return self->hasSelection(); } -struct miqt_array QItemSelectionModel_SelectedIndexes(const QItemSelectionModel* self) { +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedIndexes(const QItemSelectionModel* self) { QModelIndexList _ret = self->selectedIndexes(); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -217,7 +217,7 @@ struct miqt_array QItemSelectionModel_SelectedIndexes(const QItemSelectionModel* return _out; } -struct miqt_array QItemSelectionModel_SelectedRows(const QItemSelectionModel* self) { +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedRows(const QItemSelectionModel* self) { QModelIndexList _ret = self->selectedRows(); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -230,7 +230,7 @@ struct miqt_array QItemSelectionModel_SelectedRows(const QItemSelectionModel* se return _out; } -struct miqt_array QItemSelectionModel_SelectedColumns(const QItemSelectionModel* self) { +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedColumns(const QItemSelectionModel* self) { QModelIndexList _ret = self->selectedColumns(); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -398,7 +398,7 @@ bool QItemSelectionModel_ColumnIntersectsSelection2(const QItemSelectionModel* s return self->columnIntersectsSelection(static_cast(column), *parent); } -struct miqt_array QItemSelectionModel_SelectedRows1(const QItemSelectionModel* self, int column) { +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedRows1(const QItemSelectionModel* self, int column) { QModelIndexList _ret = self->selectedRows(static_cast(column)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -411,7 +411,7 @@ struct miqt_array QItemSelectionModel_SelectedRows1(const QItemSelectionModel* s return _out; } -struct miqt_array QItemSelectionModel_SelectedColumns1(const QItemSelectionModel* self, int row) { +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedColumns1(const QItemSelectionModel* self, int row) { QModelIndexList _ret = self->selectedColumns(static_cast(row)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); diff --git a/qt/gen_qitemselectionmodel.h b/qt/gen_qitemselectionmodel.h index cdf19d78..bf7e2270 100644 --- a/qt/gen_qitemselectionmodel.h +++ b/qt/gen_qitemselectionmodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QITEMSELECTIONMODEL_H -#define GEN_QITEMSELECTIONMODEL_H +#pragma once +#ifndef MIQT_QT_GEN_QITEMSELECTIONMODEL_H +#define MIQT_QT_GEN_QITEMSELECTIONMODEL_H #include #include @@ -56,7 +57,7 @@ bool QItemSelectionRange_OperatorNotEqual(const QItemSelectionRange* self, QItem bool QItemSelectionRange_OperatorLesser(const QItemSelectionRange* self, QItemSelectionRange* other); bool QItemSelectionRange_IsValid(const QItemSelectionRange* self); bool QItemSelectionRange_IsEmpty(const QItemSelectionRange* self); -struct miqt_array QItemSelectionRange_Indexes(const QItemSelectionRange* self); +struct miqt_array /* of QModelIndex* */ QItemSelectionRange_Indexes(const QItemSelectionRange* self); void QItemSelectionRange_Delete(QItemSelectionRange* self); QItemSelectionModel* QItemSelectionModel_new(); @@ -73,9 +74,9 @@ bool QItemSelectionModel_IsColumnSelected(const QItemSelectionModel* self, int c bool QItemSelectionModel_RowIntersectsSelection(const QItemSelectionModel* self, int row); bool QItemSelectionModel_ColumnIntersectsSelection(const QItemSelectionModel* self, int column); bool QItemSelectionModel_HasSelection(const QItemSelectionModel* self); -struct miqt_array QItemSelectionModel_SelectedIndexes(const QItemSelectionModel* self); -struct miqt_array QItemSelectionModel_SelectedRows(const QItemSelectionModel* self); -struct miqt_array QItemSelectionModel_SelectedColumns(const QItemSelectionModel* self); +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedIndexes(const QItemSelectionModel* self); +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedRows(const QItemSelectionModel* self); +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedColumns(const QItemSelectionModel* self); QAbstractItemModel* QItemSelectionModel_Model(const QItemSelectionModel* self); QAbstractItemModel* QItemSelectionModel_Model2(QItemSelectionModel* self); void QItemSelectionModel_SetModel(QItemSelectionModel* self, QAbstractItemModel* model); @@ -101,8 +102,8 @@ bool QItemSelectionModel_IsRowSelected2(const QItemSelectionModel* self, int row bool QItemSelectionModel_IsColumnSelected2(const QItemSelectionModel* self, int column, QModelIndex* parent); bool QItemSelectionModel_RowIntersectsSelection2(const QItemSelectionModel* self, int row, QModelIndex* parent); bool QItemSelectionModel_ColumnIntersectsSelection2(const QItemSelectionModel* self, int column, QModelIndex* parent); -struct miqt_array QItemSelectionModel_SelectedRows1(const QItemSelectionModel* self, int column); -struct miqt_array QItemSelectionModel_SelectedColumns1(const QItemSelectionModel* self, int row); +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedRows1(const QItemSelectionModel* self, int column); +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedColumns1(const QItemSelectionModel* self, int row); void QItemSelectionModel_Delete(QItemSelectionModel* self); #ifdef __cplusplus diff --git a/qt/gen_qjsonarray.cpp b/qt/gen_qjsonarray.cpp index b447c0a5..460fa974 100644 --- a/qt/gen_qjsonarray.cpp +++ b/qt/gen_qjsonarray.cpp @@ -25,7 +25,7 @@ void QJsonArray_OperatorAssign(QJsonArray* self, QJsonArray* other) { self->operator=(*other); } -QJsonArray* QJsonArray_FromStringList(struct miqt_array /* of struct miqt_string */ list) { +QJsonArray* QJsonArray_FromStringList(struct miqt_array /* of struct miqt_string */ list) { QStringList list_QList; list_QList.reserve(list.len); struct miqt_string* list_arr = static_cast(list.data); diff --git a/qt/gen_qjsonarray.h b/qt/gen_qjsonarray.h index 3b49d298..667e3e2c 100644 --- a/qt/gen_qjsonarray.h +++ b/qt/gen_qjsonarray.h @@ -1,5 +1,6 @@ -#ifndef GEN_QJSONARRAY_H -#define GEN_QJSONARRAY_H +#pragma once +#ifndef MIQT_QT_GEN_QJSONARRAY_H +#define MIQT_QT_GEN_QJSONARRAY_H #include #include @@ -42,7 +43,7 @@ typedef struct QJsonValueRefPtr QJsonValueRefPtr; QJsonArray* QJsonArray_new(); QJsonArray* QJsonArray_new2(QJsonArray* other); void QJsonArray_OperatorAssign(QJsonArray* self, QJsonArray* other); -QJsonArray* QJsonArray_FromStringList(struct miqt_array /* of struct miqt_string */ list); +QJsonArray* QJsonArray_FromStringList(struct miqt_array /* of struct miqt_string */ list); int QJsonArray_Size(const QJsonArray* self); int QJsonArray_Count(const QJsonArray* self); bool QJsonArray_IsEmpty(const QJsonArray* self); diff --git a/qt/gen_qjsondocument.h b/qt/gen_qjsondocument.h index 072ec09f..bfa9ed66 100644 --- a/qt/gen_qjsondocument.h +++ b/qt/gen_qjsondocument.h @@ -1,5 +1,6 @@ -#ifndef GEN_QJSONDOCUMENT_H -#define GEN_QJSONDOCUMENT_H +#pragma once +#ifndef MIQT_QT_GEN_QJSONDOCUMENT_H +#define MIQT_QT_GEN_QJSONDOCUMENT_H #include #include diff --git a/qt/gen_qjsonobject.cpp b/qt/gen_qjsonobject.cpp index d19db201..81aa65e9 100644 --- a/qt/gen_qjsonobject.cpp +++ b/qt/gen_qjsonobject.cpp @@ -31,7 +31,7 @@ void QJsonObject_Swap(QJsonObject* self, QJsonObject* other) { self->swap(*other); } -QJsonObject* QJsonObject_FromVariantMap(struct miqt_map mapVal) { +QJsonObject* QJsonObject_FromVariantMap(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal) { QVariantMap mapVal_QMap; struct miqt_string* mapVal_karr = static_cast(mapVal.keys); QVariant** mapVal_varr = static_cast(mapVal.values); @@ -42,7 +42,7 @@ QJsonObject* QJsonObject_FromVariantMap(struct miqt_map mapVal) { return new QJsonObject(QJsonObject::fromVariantMap(mapVal_QMap)); } -struct miqt_map QJsonObject_ToVariantMap(const QJsonObject* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QJsonObject_ToVariantMap(const QJsonObject* self) { QVariantMap _ret = self->toVariantMap(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); @@ -67,7 +67,7 @@ struct miqt_map QJsonObject_ToVariantMap(const QJsonObject* self) { return _out; } -QJsonObject* QJsonObject_FromVariantHash(struct miqt_map mapVal) { +QJsonObject* QJsonObject_FromVariantHash(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal) { QVariantHash mapVal_QMap; mapVal_QMap.reserve(mapVal.len); struct miqt_string* mapVal_karr = static_cast(mapVal.keys); @@ -79,7 +79,7 @@ QJsonObject* QJsonObject_FromVariantHash(struct miqt_map mapVal) { return new QJsonObject(QJsonObject::fromVariantHash(mapVal_QMap)); } -struct miqt_map QJsonObject_ToVariantHash(const QJsonObject* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QJsonObject_ToVariantHash(const QJsonObject* self) { QVariantHash _ret = self->toVariantHash(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); @@ -104,7 +104,7 @@ struct miqt_map QJsonObject_ToVariantHash(const QJsonObject* self) { return _out; } -struct miqt_array QJsonObject_Keys(const QJsonObject* self) { +struct miqt_array /* of struct miqt_string */ QJsonObject_Keys(const QJsonObject* self) { QStringList _ret = self->keys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qjsonobject.h b/qt/gen_qjsonobject.h index 69662925..6b903a38 100644 --- a/qt/gen_qjsonobject.h +++ b/qt/gen_qjsonobject.h @@ -1,5 +1,6 @@ -#ifndef GEN_QJSONOBJECT_H -#define GEN_QJSONOBJECT_H +#pragma once +#ifndef MIQT_QT_GEN_QJSONOBJECT_H +#define MIQT_QT_GEN_QJSONOBJECT_H #include #include @@ -45,11 +46,11 @@ QJsonObject* QJsonObject_new(); QJsonObject* QJsonObject_new2(QJsonObject* other); void QJsonObject_OperatorAssign(QJsonObject* self, QJsonObject* other); void QJsonObject_Swap(QJsonObject* self, QJsonObject* other); -QJsonObject* QJsonObject_FromVariantMap(struct miqt_map mapVal); -struct miqt_map QJsonObject_ToVariantMap(const QJsonObject* self); -QJsonObject* QJsonObject_FromVariantHash(struct miqt_map mapVal); -struct miqt_map QJsonObject_ToVariantHash(const QJsonObject* self); -struct miqt_array QJsonObject_Keys(const QJsonObject* self); +QJsonObject* QJsonObject_FromVariantMap(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal); +struct miqt_map /* of struct miqt_string to QVariant* */ QJsonObject_ToVariantMap(const QJsonObject* self); +QJsonObject* QJsonObject_FromVariantHash(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal); +struct miqt_map /* of struct miqt_string to QVariant* */ QJsonObject_ToVariantHash(const QJsonObject* self); +struct miqt_array /* of struct miqt_string */ QJsonObject_Keys(const QJsonObject* self); int QJsonObject_Size(const QJsonObject* self); int QJsonObject_Count(const QJsonObject* self); int QJsonObject_Length(const QJsonObject* self); diff --git a/qt/gen_qjsonvalue.h b/qt/gen_qjsonvalue.h index 42d22d63..c4225e30 100644 --- a/qt/gen_qjsonvalue.h +++ b/qt/gen_qjsonvalue.h @@ -1,5 +1,6 @@ -#ifndef GEN_QJSONVALUE_H -#define GEN_QJSONVALUE_H +#pragma once +#ifndef MIQT_QT_GEN_QJSONVALUE_H +#define MIQT_QT_GEN_QJSONVALUE_H #include #include diff --git a/qt/gen_qkeyeventtransition.h b/qt/gen_qkeyeventtransition.h index 9c10914b..e5011a7a 100644 --- a/qt/gen_qkeyeventtransition.h +++ b/qt/gen_qkeyeventtransition.h @@ -1,5 +1,6 @@ -#ifndef GEN_QKEYEVENTTRANSITION_H -#define GEN_QKEYEVENTTRANSITION_H +#pragma once +#ifndef MIQT_QT_GEN_QKEYEVENTTRANSITION_H +#define MIQT_QT_GEN_QKEYEVENTTRANSITION_H #include #include diff --git a/qt/gen_qkeysequence.cpp b/qt/gen_qkeysequence.cpp index e489487b..359cd818 100644 --- a/qt/gen_qkeysequence.cpp +++ b/qt/gen_qkeysequence.cpp @@ -69,7 +69,7 @@ QKeySequence* QKeySequence_FromString(struct miqt_string str) { return new QKeySequence(QKeySequence::fromString(str_QString)); } -struct miqt_array QKeySequence_ListFromString(struct miqt_string str) { +struct miqt_array /* of QKeySequence* */ QKeySequence_ListFromString(struct miqt_string str) { QString str_QString = QString::fromUtf8(str.data, str.len); QList _ret = QKeySequence::listFromString(str_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -83,7 +83,7 @@ struct miqt_array QKeySequence_ListFromString(struct miqt_string str) { return _out; } -struct miqt_string QKeySequence_ListToString(struct miqt_array /* of QKeySequence* */ list) { +struct miqt_string QKeySequence_ListToString(struct miqt_array /* of QKeySequence* */ list) { QList list_QList; list_QList.reserve(list.len); QKeySequence** list_arr = static_cast(list.data); @@ -110,7 +110,7 @@ QKeySequence* QKeySequence_Mnemonic(struct miqt_string text) { return new QKeySequence(QKeySequence::mnemonic(text_QString)); } -struct miqt_array QKeySequence_KeyBindings(int key) { +struct miqt_array /* of QKeySequence* */ QKeySequence_KeyBindings(int key) { QList _ret = QKeySequence::keyBindings(static_cast(key)); // Convert QList<> from C++ memory to manually-managed C memory QKeySequence** _arr = static_cast(malloc(sizeof(QKeySequence*) * _ret.length())); @@ -179,7 +179,7 @@ QKeySequence* QKeySequence_FromString2(struct miqt_string str, int format) { return new QKeySequence(QKeySequence::fromString(str_QString, static_cast(format))); } -struct miqt_array QKeySequence_ListFromString2(struct miqt_string str, int format) { +struct miqt_array /* of QKeySequence* */ QKeySequence_ListFromString2(struct miqt_string str, int format) { QString str_QString = QString::fromUtf8(str.data, str.len); QList _ret = QKeySequence::listFromString(str_QString, static_cast(format)); // Convert QList<> from C++ memory to manually-managed C memory @@ -193,7 +193,7 @@ struct miqt_array QKeySequence_ListFromString2(struct miqt_string str, int forma return _out; } -struct miqt_string QKeySequence_ListToString2(struct miqt_array /* of QKeySequence* */ list, int format) { +struct miqt_string QKeySequence_ListToString2(struct miqt_array /* of QKeySequence* */ list, int format) { QList list_QList; list_QList.reserve(list.len); QKeySequence** list_arr = static_cast(list.data); diff --git a/qt/gen_qkeysequence.h b/qt/gen_qkeysequence.h index 4912eabc..77b3e169 100644 --- a/qt/gen_qkeysequence.h +++ b/qt/gen_qkeysequence.h @@ -1,5 +1,6 @@ -#ifndef GEN_QKEYSEQUENCE_H -#define GEN_QKEYSEQUENCE_H +#pragma once +#ifndef MIQT_QT_GEN_QKEYSEQUENCE_H +#define MIQT_QT_GEN_QKEYSEQUENCE_H #include #include @@ -32,11 +33,11 @@ int QKeySequence_Count(const QKeySequence* self); bool QKeySequence_IsEmpty(const QKeySequence* self); struct miqt_string QKeySequence_ToString(const QKeySequence* self); QKeySequence* QKeySequence_FromString(struct miqt_string str); -struct miqt_array QKeySequence_ListFromString(struct miqt_string str); -struct miqt_string QKeySequence_ListToString(struct miqt_array /* of QKeySequence* */ list); +struct miqt_array /* of QKeySequence* */ QKeySequence_ListFromString(struct miqt_string str); +struct miqt_string QKeySequence_ListToString(struct miqt_array /* of QKeySequence* */ list); int QKeySequence_Matches(const QKeySequence* self, QKeySequence* seq); QKeySequence* QKeySequence_Mnemonic(struct miqt_string text); -struct miqt_array QKeySequence_KeyBindings(int key); +struct miqt_array /* of QKeySequence* */ QKeySequence_KeyBindings(int key); int QKeySequence_OperatorSubscript(const QKeySequence* self, unsigned int i); void QKeySequence_OperatorAssign(QKeySequence* self, QKeySequence* other); void QKeySequence_Swap(QKeySequence* self, QKeySequence* other); @@ -49,8 +50,8 @@ bool QKeySequence_OperatorGreaterOrEqual(const QKeySequence* self, QKeySequence* bool QKeySequence_IsDetached(const QKeySequence* self); struct miqt_string QKeySequence_ToString1(const QKeySequence* self, int format); QKeySequence* QKeySequence_FromString2(struct miqt_string str, int format); -struct miqt_array QKeySequence_ListFromString2(struct miqt_string str, int format); -struct miqt_string QKeySequence_ListToString2(struct miqt_array /* of QKeySequence* */ list, int format); +struct miqt_array /* of QKeySequence* */ QKeySequence_ListFromString2(struct miqt_string str, int format); +struct miqt_string QKeySequence_ListToString2(struct miqt_array /* of QKeySequence* */ list, int format); void QKeySequence_Delete(QKeySequence* self); #ifdef __cplusplus diff --git a/qt/gen_qkeysequenceedit.h b/qt/gen_qkeysequenceedit.h index 74b3b730..3d681564 100644 --- a/qt/gen_qkeysequenceedit.h +++ b/qt/gen_qkeysequenceedit.h @@ -1,5 +1,6 @@ -#ifndef GEN_QKEYSEQUENCEEDIT_H -#define GEN_QKEYSEQUENCEEDIT_H +#pragma once +#ifndef MIQT_QT_GEN_QKEYSEQUENCEEDIT_H +#define MIQT_QT_GEN_QKEYSEQUENCEEDIT_H #include #include diff --git a/qt/gen_qlabel.h b/qt/gen_qlabel.h index 6f390164..59d713a4 100644 --- a/qt/gen_qlabel.h +++ b/qt/gen_qlabel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLABEL_H -#define GEN_QLABEL_H +#pragma once +#ifndef MIQT_QT_GEN_QLABEL_H +#define MIQT_QT_GEN_QLABEL_H #include #include diff --git a/qt/gen_qlayout.h b/qt/gen_qlayout.h index 5df81243..b415a920 100644 --- a/qt/gen_qlayout.h +++ b/qt/gen_qlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLAYOUT_H -#define GEN_QLAYOUT_H +#pragma once +#ifndef MIQT_QT_GEN_QLAYOUT_H +#define MIQT_QT_GEN_QLAYOUT_H #include #include diff --git a/qt/gen_qlayoutitem.h b/qt/gen_qlayoutitem.h index 290d0569..c3400785 100644 --- a/qt/gen_qlayoutitem.h +++ b/qt/gen_qlayoutitem.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLAYOUTITEM_H -#define GEN_QLAYOUTITEM_H +#pragma once +#ifndef MIQT_QT_GEN_QLAYOUTITEM_H +#define MIQT_QT_GEN_QLAYOUTITEM_H #include #include diff --git a/qt/gen_qlcdnumber.h b/qt/gen_qlcdnumber.h index 60ee24ec..9a23c1b3 100644 --- a/qt/gen_qlcdnumber.h +++ b/qt/gen_qlcdnumber.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLCDNUMBER_H -#define GEN_QLCDNUMBER_H +#pragma once +#ifndef MIQT_QT_GEN_QLCDNUMBER_H +#define MIQT_QT_GEN_QLCDNUMBER_H #include #include diff --git a/qt/gen_qlibrary.h b/qt/gen_qlibrary.h index 94c0a312..b3cb98c0 100644 --- a/qt/gen_qlibrary.h +++ b/qt/gen_qlibrary.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLIBRARY_H -#define GEN_QLIBRARY_H +#pragma once +#ifndef MIQT_QT_GEN_QLIBRARY_H +#define MIQT_QT_GEN_QLIBRARY_H #include #include diff --git a/qt/gen_qlibraryinfo.cpp b/qt/gen_qlibraryinfo.cpp index 858fa062..68ec74fd 100644 --- a/qt/gen_qlibraryinfo.cpp +++ b/qt/gen_qlibraryinfo.cpp @@ -58,7 +58,7 @@ struct miqt_string QLibraryInfo_Location(int param1) { return _ms; } -struct miqt_array QLibraryInfo_PlatformPluginArguments(struct miqt_string platformName) { +struct miqt_array /* of struct miqt_string */ QLibraryInfo_PlatformPluginArguments(struct miqt_string platformName) { QString platformName_QString = QString::fromUtf8(platformName.data, platformName.len); QStringList _ret = QLibraryInfo::platformPluginArguments(platformName_QString); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/gen_qlibraryinfo.h b/qt/gen_qlibraryinfo.h index d97a08ab..27fde647 100644 --- a/qt/gen_qlibraryinfo.h +++ b/qt/gen_qlibraryinfo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLIBRARYINFO_H -#define GEN_QLIBRARYINFO_H +#pragma once +#ifndef MIQT_QT_GEN_QLIBRARYINFO_H +#define MIQT_QT_GEN_QLIBRARYINFO_H #include #include @@ -30,7 +31,7 @@ const char* QLibraryInfo_Build(); bool QLibraryInfo_IsDebugBuild(); QVersionNumber* QLibraryInfo_Version(); struct miqt_string QLibraryInfo_Location(int param1); -struct miqt_array QLibraryInfo_PlatformPluginArguments(struct miqt_string platformName); +struct miqt_array /* of struct miqt_string */ QLibraryInfo_PlatformPluginArguments(struct miqt_string platformName); void QLibraryInfo_Delete(QLibraryInfo* self); #ifdef __cplusplus diff --git a/qt/gen_qline.h b/qt/gen_qline.h index a7e2b37a..d13d5233 100644 --- a/qt/gen_qline.h +++ b/qt/gen_qline.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLINE_H -#define GEN_QLINE_H +#pragma once +#ifndef MIQT_QT_GEN_QLINE_H +#define MIQT_QT_GEN_QLINE_H #include #include diff --git a/qt/gen_qlineedit.h b/qt/gen_qlineedit.h index b11152ec..18de77b5 100644 --- a/qt/gen_qlineedit.h +++ b/qt/gen_qlineedit.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLINEEDIT_H -#define GEN_QLINEEDIT_H +#pragma once +#ifndef MIQT_QT_GEN_QLINEEDIT_H +#define MIQT_QT_GEN_QLINEEDIT_H #include #include diff --git a/qt/gen_qlinkedlist.h b/qt/gen_qlinkedlist.h index 95515013..654f36f1 100644 --- a/qt/gen_qlinkedlist.h +++ b/qt/gen_qlinkedlist.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLINKEDLIST_H -#define GEN_QLINKEDLIST_H +#pragma once +#ifndef MIQT_QT_GEN_QLINKEDLIST_H +#define MIQT_QT_GEN_QLINKEDLIST_H #include #include diff --git a/qt/gen_qlistview.cpp b/qt/gen_qlistview.cpp index 1018d1e9..f34fa1f6 100644 --- a/qt/gen_qlistview.cpp +++ b/qt/gen_qlistview.cpp @@ -205,7 +205,7 @@ void QListView_SetRootIndex(QListView* self, QModelIndex* index) { self->setRootIndex(*index); } -void QListView_IndexesMoved(QListView* self, struct miqt_array /* of QModelIndex* */ indexes) { +void QListView_IndexesMoved(QListView* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); @@ -226,7 +226,7 @@ void QListView_connect_IndexesMoved(QListView* self, intptr_t slot) { struct miqt_array indexes_out; indexes_out.len = indexes_ret.length(); indexes_out.data = static_cast(indexes_arr); - struct miqt_array sigval1 = indexes_out; + struct miqt_array /* of QModelIndex* */ sigval1 = indexes_out; miqt_exec_callback_QListView_IndexesMoved(slot, sigval1); }); } diff --git a/qt/gen_qlistview.h b/qt/gen_qlistview.h index b479ce9d..10567c70 100644 --- a/qt/gen_qlistview.h +++ b/qt/gen_qlistview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLISTVIEW_H -#define GEN_QLISTVIEW_H +#pragma once +#ifndef MIQT_QT_GEN_QLISTVIEW_H +#define MIQT_QT_GEN_QLISTVIEW_H #include #include @@ -74,7 +75,7 @@ QModelIndex* QListView_IndexAt(const QListView* self, QPoint* p); void QListView_DoItemsLayout(QListView* self); void QListView_Reset(QListView* self); void QListView_SetRootIndex(QListView* self, QModelIndex* index); -void QListView_IndexesMoved(QListView* self, struct miqt_array /* of QModelIndex* */ indexes); +void QListView_IndexesMoved(QListView* self, struct miqt_array /* of QModelIndex* */ indexes); void QListView_connect_IndexesMoved(QListView* self, intptr_t slot); struct miqt_string QListView_Tr2(const char* s, const char* c); struct miqt_string QListView_Tr3(const char* s, const char* c, int n); diff --git a/qt/gen_qlistwidget.cpp b/qt/gen_qlistwidget.cpp index 46e7d37e..45d76c9a 100644 --- a/qt/gen_qlistwidget.cpp +++ b/qt/gen_qlistwidget.cpp @@ -328,7 +328,7 @@ void QListWidget_InsertItem2(QListWidget* self, int row, struct miqt_string labe self->insertItem(static_cast(row), label_QString); } -void QListWidget_InsertItems(QListWidget* self, int row, struct miqt_array /* of struct miqt_string */ labels) { +void QListWidget_InsertItems(QListWidget* self, int row, struct miqt_array /* of struct miqt_string */ labels) { QStringList labels_QList; labels_QList.reserve(labels.len); struct miqt_string* labels_arr = static_cast(labels.data); @@ -348,7 +348,7 @@ void QListWidget_AddItemWithItem(QListWidget* self, QListWidgetItem* item) { self->addItem(item); } -void QListWidget_AddItems(QListWidget* self, struct miqt_array /* of struct miqt_string */ labels) { +void QListWidget_AddItems(QListWidget* self, struct miqt_array /* of struct miqt_string */ labels) { QStringList labels_QList; labels_QList.reserve(labels.len); struct miqt_string* labels_arr = static_cast(labels.data); @@ -451,7 +451,7 @@ void QListWidget_SetItemSelected(QListWidget* self, QListWidgetItem* item, bool self->setItemSelected(item, selectVal); } -struct miqt_array QListWidget_SelectedItems(const QListWidget* self) { +struct miqt_array /* of QListWidgetItem* */ QListWidget_SelectedItems(const QListWidget* self) { QList _ret = self->selectedItems(); // Convert QList<> from C++ memory to manually-managed C memory QListWidgetItem** _arr = static_cast(malloc(sizeof(QListWidgetItem*) * _ret.length())); @@ -464,7 +464,7 @@ struct miqt_array QListWidget_SelectedItems(const QListWidget* self) { return _out; } -struct miqt_array QListWidget_FindItems(const QListWidget* self, struct miqt_string text, int flags) { +struct miqt_array /* of QListWidgetItem* */ QListWidget_FindItems(const QListWidget* self, struct miqt_string text, int flags) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->findItems(text_QString, static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/gen_qlistwidget.h b/qt/gen_qlistwidget.h index 2ca95971..3c747f1a 100644 --- a/qt/gen_qlistwidget.h +++ b/qt/gen_qlistwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLISTWIDGET_H -#define GEN_QLISTWIDGET_H +#pragma once +#ifndef MIQT_QT_GEN_QLISTWIDGET_H +#define MIQT_QT_GEN_QLISTWIDGET_H #include #include @@ -111,10 +112,10 @@ QListWidgetItem* QListWidget_Item(const QListWidget* self, int row); int QListWidget_Row(const QListWidget* self, QListWidgetItem* item); void QListWidget_InsertItem(QListWidget* self, int row, QListWidgetItem* item); void QListWidget_InsertItem2(QListWidget* self, int row, struct miqt_string label); -void QListWidget_InsertItems(QListWidget* self, int row, struct miqt_array /* of struct miqt_string */ labels); +void QListWidget_InsertItems(QListWidget* self, int row, struct miqt_array /* of struct miqt_string */ labels); void QListWidget_AddItem(QListWidget* self, struct miqt_string label); void QListWidget_AddItemWithItem(QListWidget* self, QListWidgetItem* item); -void QListWidget_AddItems(QListWidget* self, struct miqt_array /* of struct miqt_string */ labels); +void QListWidget_AddItems(QListWidget* self, struct miqt_array /* of struct miqt_string */ labels); QListWidgetItem* QListWidget_TakeItem(QListWidget* self, int row); int QListWidget_Count(const QListWidget* self); QListWidgetItem* QListWidget_CurrentItem(const QListWidget* self); @@ -138,8 +139,8 @@ void QListWidget_SetItemWidget(QListWidget* self, QListWidgetItem* item, QWidget void QListWidget_RemoveItemWidget(QListWidget* self, QListWidgetItem* item); bool QListWidget_IsItemSelected(const QListWidget* self, QListWidgetItem* item); void QListWidget_SetItemSelected(QListWidget* self, QListWidgetItem* item, bool selectVal); -struct miqt_array QListWidget_SelectedItems(const QListWidget* self); -struct miqt_array QListWidget_FindItems(const QListWidget* self, struct miqt_string text, int flags); +struct miqt_array /* of QListWidgetItem* */ QListWidget_SelectedItems(const QListWidget* self); +struct miqt_array /* of QListWidgetItem* */ QListWidget_FindItems(const QListWidget* self, struct miqt_string text, int flags); bool QListWidget_IsItemHidden(const QListWidget* self, QListWidgetItem* item); void QListWidget_SetItemHidden(QListWidget* self, QListWidgetItem* item, bool hide); void QListWidget_DropEvent(QListWidget* self, QDropEvent* event); diff --git a/qt/gen_qlocale.cpp b/qt/gen_qlocale.cpp index f7edd2ca..29eb15fa 100644 --- a/qt/gen_qlocale.cpp +++ b/qt/gen_qlocale.cpp @@ -536,7 +536,7 @@ int QLocale_FirstDayOfWeek(const QLocale* self) { return static_cast(_ret); } -struct miqt_array QLocale_Weekdays(const QLocale* self) { +struct miqt_array /* of int */ QLocale_Weekdays(const QLocale* self) { QList _ret = self->weekdays(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -755,7 +755,7 @@ struct miqt_string QLocale_FormattedDataSizeWithBytes(const QLocale* self, long return _ms; } -struct miqt_array QLocale_UiLanguages(const QLocale* self) { +struct miqt_array /* of struct miqt_string */ QLocale_UiLanguages(const QLocale* self) { QStringList _ret = self->uiLanguages(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -828,7 +828,7 @@ QLocale* QLocale_System() { return new QLocale(QLocale::system()); } -struct miqt_array QLocale_MatchingLocales(int language, int script, int country) { +struct miqt_array /* of QLocale* */ QLocale_MatchingLocales(int language, int script, int country) { QList _ret = QLocale::matchingLocales(static_cast(language), static_cast(script), static_cast(country)); // Convert QList<> from C++ memory to manually-managed C memory QLocale** _arr = static_cast(malloc(sizeof(QLocale*) * _ret.length())); @@ -841,7 +841,7 @@ struct miqt_array QLocale_MatchingLocales(int language, int script, int country) return _out; } -struct miqt_array QLocale_CountriesForLanguage(int lang) { +struct miqt_array /* of int */ QLocale_CountriesForLanguage(int lang) { QList _ret = QLocale::countriesForLanguage(static_cast(lang)); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -876,7 +876,7 @@ struct miqt_string QLocale_QuoteString(const QLocale* self, struct miqt_string s return _ms; } -struct miqt_string QLocale_CreateSeparatedList(const QLocale* self, struct miqt_array /* of struct miqt_string */ strl) { +struct miqt_string QLocale_CreateSeparatedList(const QLocale* self, struct miqt_array /* of struct miqt_string */ strl) { QStringList strl_QList; strl_QList.reserve(strl.len); struct miqt_string* strl_arr = static_cast(strl.data); diff --git a/qt/gen_qlocale.h b/qt/gen_qlocale.h index ee9ad185..fbb3c92d 100644 --- a/qt/gen_qlocale.h +++ b/qt/gen_qlocale.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLOCALE_H -#define GEN_QLOCALE_H +#pragma once +#ifndef MIQT_QT_GEN_QLOCALE_H +#define MIQT_QT_GEN_QLOCALE_H #include #include @@ -99,7 +100,7 @@ struct miqt_string QLocale_StandaloneMonthName(const QLocale* self, int param1); struct miqt_string QLocale_DayName(const QLocale* self, int param1); struct miqt_string QLocale_StandaloneDayName(const QLocale* self, int param1); int QLocale_FirstDayOfWeek(const QLocale* self); -struct miqt_array QLocale_Weekdays(const QLocale* self); +struct miqt_array /* of int */ QLocale_Weekdays(const QLocale* self); struct miqt_string QLocale_AmText(const QLocale* self); struct miqt_string QLocale_PmText(const QLocale* self); int QLocale_MeasurementSystem(const QLocale* self); @@ -120,7 +121,7 @@ struct miqt_string QLocale_ToCurrencyStringWithFloat(const QLocale* self, float struct miqt_string QLocale_ToCurrencyString3(const QLocale* self, float i, struct miqt_string symbol, int precision); struct miqt_string QLocale_FormattedDataSize(QLocale* self, long long bytes); struct miqt_string QLocale_FormattedDataSizeWithBytes(const QLocale* self, long long bytes); -struct miqt_array QLocale_UiLanguages(const QLocale* self); +struct miqt_array /* of struct miqt_string */ QLocale_UiLanguages(const QLocale* self); bool QLocale_OperatorEqual(const QLocale* self, QLocale* other); bool QLocale_OperatorNotEqual(const QLocale* self, QLocale* other); struct miqt_string QLocale_LanguageToString(int language); @@ -129,12 +130,12 @@ struct miqt_string QLocale_ScriptToString(int script); void QLocale_SetDefault(QLocale* locale); QLocale* QLocale_C(); QLocale* QLocale_System(); -struct miqt_array QLocale_MatchingLocales(int language, int script, int country); -struct miqt_array QLocale_CountriesForLanguage(int lang); +struct miqt_array /* of QLocale* */ QLocale_MatchingLocales(int language, int script, int country); +struct miqt_array /* of int */ QLocale_CountriesForLanguage(int lang); void QLocale_SetNumberOptions(QLocale* self, int options); int QLocale_NumberOptions(const QLocale* self); struct miqt_string QLocale_QuoteString(const QLocale* self, struct miqt_string str); -struct miqt_string QLocale_CreateSeparatedList(const QLocale* self, struct miqt_array /* of struct miqt_string */ strl); +struct miqt_string QLocale_CreateSeparatedList(const QLocale* self, struct miqt_array /* of struct miqt_string */ strl); int16_t QLocale_ToShort2(const QLocale* self, struct miqt_string s, bool* ok); uint16_t QLocale_ToUShort2(const QLocale* self, struct miqt_string s, bool* ok); int QLocale_ToInt2(const QLocale* self, struct miqt_string s, bool* ok); diff --git a/qt/gen_qlockfile.h b/qt/gen_qlockfile.h index 8d8a5920..09497f8b 100644 --- a/qt/gen_qlockfile.h +++ b/qt/gen_qlockfile.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLOCKFILE_H -#define GEN_QLOCKFILE_H +#pragma once +#ifndef MIQT_QT_GEN_QLOCKFILE_H +#define MIQT_QT_GEN_QLOCKFILE_H #include #include diff --git a/qt/gen_qloggingcategory.h b/qt/gen_qloggingcategory.h index c512c522..8dacc814 100644 --- a/qt/gen_qloggingcategory.h +++ b/qt/gen_qloggingcategory.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLOGGINGCATEGORY_H -#define GEN_QLOGGINGCATEGORY_H +#pragma once +#ifndef MIQT_QT_GEN_QLOGGINGCATEGORY_H +#define MIQT_QT_GEN_QLOGGINGCATEGORY_H #include #include diff --git a/qt/gen_qmainwindow.cpp b/qt/gen_qmainwindow.cpp index 505ad4bf..b233cd88 100644 --- a/qt/gen_qmainwindow.cpp +++ b/qt/gen_qmainwindow.cpp @@ -230,7 +230,7 @@ void QMainWindow_TabifyDockWidget(QMainWindow* self, QDockWidget* first, QDockWi self->tabifyDockWidget(first, second); } -struct miqt_array QMainWindow_TabifiedDockWidgets(const QMainWindow* self, QDockWidget* dockwidget) { +struct miqt_array /* of QDockWidget* */ QMainWindow_TabifiedDockWidgets(const QMainWindow* self, QDockWidget* dockwidget) { QList _ret = self->tabifiedDockWidgets(dockwidget); // Convert QList<> from C++ memory to manually-managed C memory QDockWidget** _arr = static_cast(malloc(sizeof(QDockWidget*) * _ret.length())); @@ -256,7 +256,7 @@ int QMainWindow_DockWidgetArea(const QMainWindow* self, QDockWidget* dockwidget) return static_cast(_ret); } -void QMainWindow_ResizeDocks(QMainWindow* self, struct miqt_array /* of QDockWidget* */ docks, struct miqt_array /* of int */ sizes, int orientation) { +void QMainWindow_ResizeDocks(QMainWindow* self, struct miqt_array /* of QDockWidget* */ docks, struct miqt_array /* of int */ sizes, int orientation) { QList docks_QList; docks_QList.reserve(docks.len); QDockWidget** docks_arr = static_cast(docks.data); diff --git a/qt/gen_qmainwindow.h b/qt/gen_qmainwindow.h index f09ed318..99151b47 100644 --- a/qt/gen_qmainwindow.h +++ b/qt/gen_qmainwindow.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMAINWINDOW_H -#define GEN_QMAINWINDOW_H +#pragma once +#ifndef MIQT_QT_GEN_QMAINWINDOW_H +#define MIQT_QT_GEN_QMAINWINDOW_H #include #include @@ -87,11 +88,11 @@ void QMainWindow_AddDockWidget(QMainWindow* self, int area, QDockWidget* dockwid void QMainWindow_AddDockWidget2(QMainWindow* self, int area, QDockWidget* dockwidget, int orientation); void QMainWindow_SplitDockWidget(QMainWindow* self, QDockWidget* after, QDockWidget* dockwidget, int orientation); void QMainWindow_TabifyDockWidget(QMainWindow* self, QDockWidget* first, QDockWidget* second); -struct miqt_array QMainWindow_TabifiedDockWidgets(const QMainWindow* self, QDockWidget* dockwidget); +struct miqt_array /* of QDockWidget* */ QMainWindow_TabifiedDockWidgets(const QMainWindow* self, QDockWidget* dockwidget); void QMainWindow_RemoveDockWidget(QMainWindow* self, QDockWidget* dockwidget); bool QMainWindow_RestoreDockWidget(QMainWindow* self, QDockWidget* dockwidget); int QMainWindow_DockWidgetArea(const QMainWindow* self, QDockWidget* dockwidget); -void QMainWindow_ResizeDocks(QMainWindow* self, struct miqt_array /* of QDockWidget* */ docks, struct miqt_array /* of int */ sizes, int orientation); +void QMainWindow_ResizeDocks(QMainWindow* self, struct miqt_array /* of QDockWidget* */ docks, struct miqt_array /* of int */ sizes, int orientation); struct miqt_string QMainWindow_SaveState(const QMainWindow* self); bool QMainWindow_RestoreState(QMainWindow* self, struct miqt_string state); QMenu* QMainWindow_CreatePopupMenu(QMainWindow* self); diff --git a/qt/gen_qmargins.h b/qt/gen_qmargins.h index 2d403ec0..3e3d9958 100644 --- a/qt/gen_qmargins.h +++ b/qt/gen_qmargins.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMARGINS_H -#define GEN_QMARGINS_H +#pragma once +#ifndef MIQT_QT_GEN_QMARGINS_H +#define MIQT_QT_GEN_QMARGINS_H #include #include diff --git a/qt/gen_qmatrix.h b/qt/gen_qmatrix.h index 7dd4d12e..caa711c6 100644 --- a/qt/gen_qmatrix.h +++ b/qt/gen_qmatrix.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMATRIX_H -#define GEN_QMATRIX_H +#pragma once +#ifndef MIQT_QT_GEN_QMATRIX_H +#define MIQT_QT_GEN_QMATRIX_H #include #include diff --git a/qt/gen_qmatrix4x4.go b/qt/gen_qmatrix4x4.go index fa323284..61720528 100644 --- a/qt/gen_qmatrix4x4.go +++ b/qt/gen_qmatrix4x4.go @@ -325,15 +325,15 @@ func (this *QMatrix4x4) MapRectWithRect(rect *QRectF) *QRectF { } func (this *QMatrix4x4) Data() *float32 { - return (*float32)(C.QMatrix4x4_Data(this.h)) + return (*float32)(unsafe.Pointer(C.QMatrix4x4_Data(this.h))) } func (this *QMatrix4x4) Data2() *float32 { - return (*float32)(C.QMatrix4x4_Data2(this.h)) + return (*float32)(unsafe.Pointer(C.QMatrix4x4_Data2(this.h))) } func (this *QMatrix4x4) ConstData() *float32 { - return (*float32)(C.QMatrix4x4_ConstData(this.h)) + return (*float32)(unsafe.Pointer(C.QMatrix4x4_ConstData(this.h))) } func (this *QMatrix4x4) Optimize() { diff --git a/qt/gen_qmatrix4x4.h b/qt/gen_qmatrix4x4.h index 0f956c82..abbe7774 100644 --- a/qt/gen_qmatrix4x4.h +++ b/qt/gen_qmatrix4x4.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMATRIX4X4_H -#define GEN_QMATRIX4X4_H +#pragma once +#ifndef MIQT_QT_GEN_QMATRIX4X4_H +#define MIQT_QT_GEN_QMATRIX4X4_H #include #include diff --git a/qt/gen_qmdiarea.cpp b/qt/gen_qmdiarea.cpp index 40b0cc96..007e0951 100644 --- a/qt/gen_qmdiarea.cpp +++ b/qt/gen_qmdiarea.cpp @@ -66,7 +66,7 @@ QMdiSubWindow* QMdiArea_ActiveSubWindow(const QMdiArea* self) { return self->activeSubWindow(); } -struct miqt_array QMdiArea_SubWindowList(const QMdiArea* self) { +struct miqt_array /* of QMdiSubWindow* */ QMdiArea_SubWindowList(const QMdiArea* self) { QList _ret = self->subWindowList(); // Convert QList<> from C++ memory to manually-managed C memory QMdiSubWindow** _arr = static_cast(malloc(sizeof(QMdiSubWindow*) * _ret.length())); @@ -246,7 +246,7 @@ struct miqt_string QMdiArea_TrUtf83(const char* s, const char* c, int n) { return _ms; } -struct miqt_array QMdiArea_SubWindowList1(const QMdiArea* self, int order) { +struct miqt_array /* of QMdiSubWindow* */ QMdiArea_SubWindowList1(const QMdiArea* self, int order) { QList _ret = self->subWindowList(static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QMdiSubWindow** _arr = static_cast(malloc(sizeof(QMdiSubWindow*) * _ret.length())); diff --git a/qt/gen_qmdiarea.h b/qt/gen_qmdiarea.h index ed6bd2d7..1c86a840 100644 --- a/qt/gen_qmdiarea.h +++ b/qt/gen_qmdiarea.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMDIAREA_H -#define GEN_QMDIAREA_H +#pragma once +#ifndef MIQT_QT_GEN_QMDIAREA_H +#define MIQT_QT_GEN_QMDIAREA_H #include #include @@ -39,7 +40,7 @@ QSize* QMdiArea_SizeHint(const QMdiArea* self); QSize* QMdiArea_MinimumSizeHint(const QMdiArea* self); QMdiSubWindow* QMdiArea_CurrentSubWindow(const QMdiArea* self); QMdiSubWindow* QMdiArea_ActiveSubWindow(const QMdiArea* self); -struct miqt_array QMdiArea_SubWindowList(const QMdiArea* self); +struct miqt_array /* of QMdiSubWindow* */ QMdiArea_SubWindowList(const QMdiArea* self); QMdiSubWindow* QMdiArea_AddSubWindow(QMdiArea* self, QWidget* widget); void QMdiArea_RemoveSubWindow(QMdiArea* self, QWidget* widget); QBrush* QMdiArea_Background(const QMdiArea* self); @@ -73,7 +74,7 @@ struct miqt_string QMdiArea_Tr2(const char* s, const char* c); struct miqt_string QMdiArea_Tr3(const char* s, const char* c, int n); struct miqt_string QMdiArea_TrUtf82(const char* s, const char* c); struct miqt_string QMdiArea_TrUtf83(const char* s, const char* c, int n); -struct miqt_array QMdiArea_SubWindowList1(const QMdiArea* self, int order); +struct miqt_array /* of QMdiSubWindow* */ QMdiArea_SubWindowList1(const QMdiArea* self, int order); QMdiSubWindow* QMdiArea_AddSubWindow2(QMdiArea* self, QWidget* widget, int flags); void QMdiArea_SetOption2(QMdiArea* self, int option, bool on); void QMdiArea_Delete(QMdiArea* self); diff --git a/qt/gen_qmdisubwindow.h b/qt/gen_qmdisubwindow.h index c5ad380e..dc179162 100644 --- a/qt/gen_qmdisubwindow.h +++ b/qt/gen_qmdisubwindow.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMDISUBWINDOW_H -#define GEN_QMDISUBWINDOW_H +#pragma once +#ifndef MIQT_QT_GEN_QMDISUBWINDOW_H +#define MIQT_QT_GEN_QMDISUBWINDOW_H #include #include diff --git a/qt/gen_qmenu.cpp b/qt/gen_qmenu.cpp index 9203aed4..a5a2af79 100644 --- a/qt/gen_qmenu.cpp +++ b/qt/gen_qmenu.cpp @@ -178,7 +178,7 @@ QAction* QMenu_ExecWithPos(QMenu* self, QPoint* pos) { return self->exec(*pos); } -QAction* QMenu_Exec2(struct miqt_array /* of QAction* */ actions, QPoint* pos) { +QAction* QMenu_Exec2(struct miqt_array /* of QAction* */ actions, QPoint* pos) { QList actions_QList; actions_QList.reserve(actions.len); QAction** actions_arr = static_cast(actions.data); @@ -342,7 +342,7 @@ QAction* QMenu_Exec22(QMenu* self, QPoint* pos, QAction* at) { return self->exec(*pos, at); } -QAction* QMenu_Exec3(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at) { +QAction* QMenu_Exec3(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at) { QList actions_QList; actions_QList.reserve(actions.len); QAction** actions_arr = static_cast(actions.data); @@ -352,7 +352,7 @@ QAction* QMenu_Exec3(struct miqt_array /* of QAction* */ actions, QPoint* pos, Q return QMenu::exec(actions_QList, *pos, at); } -QAction* QMenu_Exec4(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at, QWidget* parent) { +QAction* QMenu_Exec4(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at, QWidget* parent) { QList actions_QList; actions_QList.reserve(actions.len); QAction** actions_arr = static_cast(actions.data); diff --git a/qt/gen_qmenu.h b/qt/gen_qmenu.h index 14b4d980..1e751f9d 100644 --- a/qt/gen_qmenu.h +++ b/qt/gen_qmenu.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMENU_H -#define GEN_QMENU_H +#pragma once +#ifndef MIQT_QT_GEN_QMENU_H +#define MIQT_QT_GEN_QMENU_H #include #include @@ -68,7 +69,7 @@ QAction* QMenu_ActiveAction(const QMenu* self); void QMenu_Popup(QMenu* self, QPoint* pos); QAction* QMenu_Exec(QMenu* self); QAction* QMenu_ExecWithPos(QMenu* self, QPoint* pos); -QAction* QMenu_Exec2(struct miqt_array /* of QAction* */ actions, QPoint* pos); +QAction* QMenu_Exec2(struct miqt_array /* of QAction* */ actions, QPoint* pos); QSize* QMenu_SizeHint(const QMenu* self); QRect* QMenu_ActionGeometry(const QMenu* self, QAction* param1); QAction* QMenu_ActionAt(const QMenu* self, QPoint* param1); @@ -96,8 +97,8 @@ struct miqt_string QMenu_TrUtf82(const char* s, const char* c); struct miqt_string QMenu_TrUtf83(const char* s, const char* c, int n); void QMenu_Popup2(QMenu* self, QPoint* pos, QAction* at); QAction* QMenu_Exec22(QMenu* self, QPoint* pos, QAction* at); -QAction* QMenu_Exec3(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at); -QAction* QMenu_Exec4(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at, QWidget* parent); +QAction* QMenu_Exec3(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at); +QAction* QMenu_Exec4(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at, QWidget* parent); void QMenu_Delete(QMenu* self); #ifdef __cplusplus diff --git a/qt/gen_qmenubar.h b/qt/gen_qmenubar.h index 68350330..3a378e40 100644 --- a/qt/gen_qmenubar.h +++ b/qt/gen_qmenubar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMENUBAR_H -#define GEN_QMENUBAR_H +#pragma once +#ifndef MIQT_QT_GEN_QMENUBAR_H +#define MIQT_QT_GEN_QMENUBAR_H #include #include diff --git a/qt/gen_qmessageauthenticationcode.h b/qt/gen_qmessageauthenticationcode.h index cb45dd79..932225f0 100644 --- a/qt/gen_qmessageauthenticationcode.h +++ b/qt/gen_qmessageauthenticationcode.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMESSAGEAUTHENTICATIONCODE_H -#define GEN_QMESSAGEAUTHENTICATIONCODE_H +#pragma once +#ifndef MIQT_QT_GEN_QMESSAGEAUTHENTICATIONCODE_H +#define MIQT_QT_GEN_QMESSAGEAUTHENTICATIONCODE_H #include #include diff --git a/qt/gen_qmessagebox.cpp b/qt/gen_qmessagebox.cpp index bc44bbb1..e8f408c9 100644 --- a/qt/gen_qmessagebox.cpp +++ b/qt/gen_qmessagebox.cpp @@ -110,7 +110,7 @@ void QMessageBox_RemoveButton(QMessageBox* self, QAbstractButton* button) { self->removeButton(button); } -struct miqt_array QMessageBox_Buttons(const QMessageBox* self) { +struct miqt_array /* of QAbstractButton* */ QMessageBox_Buttons(const QMessageBox* self) { QList _ret = self->buttons(); // Convert QList<> from C++ memory to manually-managed C memory QAbstractButton** _arr = static_cast(malloc(sizeof(QAbstractButton*) * _ret.length())); diff --git a/qt/gen_qmessagebox.h b/qt/gen_qmessagebox.h index 38ca3256..4b73c67c 100644 --- a/qt/gen_qmessagebox.h +++ b/qt/gen_qmessagebox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMESSAGEBOX_H -#define GEN_QMESSAGEBOX_H +#pragma once +#ifndef MIQT_QT_GEN_QMESSAGEBOX_H +#define MIQT_QT_GEN_QMESSAGEBOX_H #include #include @@ -48,7 +49,7 @@ void QMessageBox_AddButton(QMessageBox* self, QAbstractButton* button, int role) QPushButton* QMessageBox_AddButton2(QMessageBox* self, struct miqt_string text, int role); QPushButton* QMessageBox_AddButtonWithButton(QMessageBox* self, int button); void QMessageBox_RemoveButton(QMessageBox* self, QAbstractButton* button); -struct miqt_array QMessageBox_Buttons(const QMessageBox* self); +struct miqt_array /* of QAbstractButton* */ QMessageBox_Buttons(const QMessageBox* self); int QMessageBox_ButtonRole(const QMessageBox* self, QAbstractButton* button); void QMessageBox_SetStandardButtons(QMessageBox* self, int buttons); int QMessageBox_StandardButtons(const QMessageBox* self); diff --git a/qt/gen_qmetaobject.cpp b/qt/gen_qmetaobject.cpp index e1a06c0f..b8fe2a5f 100644 --- a/qt/gen_qmetaobject.cpp +++ b/qt/gen_qmetaobject.cpp @@ -59,7 +59,7 @@ void QMetaMethod_GetParameterTypes(const QMetaMethod* self, int* types) { self->getParameterTypes(static_cast(types)); } -struct miqt_array QMetaMethod_ParameterTypes(const QMetaMethod* self) { +struct miqt_array /* of struct miqt_string */ QMetaMethod_ParameterTypes(const QMetaMethod* self) { QList _ret = self->parameterTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -77,7 +77,7 @@ struct miqt_array QMetaMethod_ParameterTypes(const QMetaMethod* self) { return _out; } -struct miqt_array QMetaMethod_ParameterNames(const QMetaMethod* self) { +struct miqt_array /* of struct miqt_string */ QMetaMethod_ParameterNames(const QMetaMethod* self) { QList _ret = self->parameterNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qmetaobject.h b/qt/gen_qmetaobject.h index 1db64fb5..df778b04 100644 --- a/qt/gen_qmetaobject.h +++ b/qt/gen_qmetaobject.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMETAOBJECT_H -#define GEN_QMETAOBJECT_H +#pragma once +#ifndef MIQT_QT_GEN_QMETAOBJECT_H +#define MIQT_QT_GEN_QMETAOBJECT_H #include #include @@ -46,8 +47,8 @@ int QMetaMethod_ReturnType(const QMetaMethod* self); int QMetaMethod_ParameterCount(const QMetaMethod* self); int QMetaMethod_ParameterType(const QMetaMethod* self, int index); void QMetaMethod_GetParameterTypes(const QMetaMethod* self, int* types); -struct miqt_array QMetaMethod_ParameterTypes(const QMetaMethod* self); -struct miqt_array QMetaMethod_ParameterNames(const QMetaMethod* self); +struct miqt_array /* of struct miqt_string */ QMetaMethod_ParameterTypes(const QMetaMethod* self); +struct miqt_array /* of struct miqt_string */ QMetaMethod_ParameterNames(const QMetaMethod* self); const char* QMetaMethod_Tag(const QMetaMethod* self); int QMetaMethod_Access(const QMetaMethod* self); int QMetaMethod_MethodType(const QMetaMethod* self); diff --git a/qt/gen_qmetatype.h b/qt/gen_qmetatype.h index 5aab0b59..350eca79 100644 --- a/qt/gen_qmetatype.h +++ b/qt/gen_qmetatype.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMETATYPE_H -#define GEN_QMETATYPE_H +#pragma once +#ifndef MIQT_QT_GEN_QMETATYPE_H +#define MIQT_QT_GEN_QMETATYPE_H #include #include diff --git a/qt/gen_qmimedata.cpp b/qt/gen_qmimedata.cpp index 46fdcc6d..57fd2027 100644 --- a/qt/gen_qmimedata.cpp +++ b/qt/gen_qmimedata.cpp @@ -45,7 +45,7 @@ struct miqt_string QMimeData_TrUtf8(const char* s) { return _ms; } -struct miqt_array QMimeData_Urls(const QMimeData* self) { +struct miqt_array /* of QUrl* */ QMimeData_Urls(const QMimeData* self) { QList _ret = self->urls(); // Convert QList<> from C++ memory to manually-managed C memory QUrl** _arr = static_cast(malloc(sizeof(QUrl*) * _ret.length())); @@ -58,7 +58,7 @@ struct miqt_array QMimeData_Urls(const QMimeData* self) { return _out; } -void QMimeData_SetUrls(QMimeData* self, struct miqt_array /* of QUrl* */ urls) { +void QMimeData_SetUrls(QMimeData* self, struct miqt_array /* of QUrl* */ urls) { QList urls_QList; urls_QList.reserve(urls.len); QUrl** urls_arr = static_cast(urls.data); @@ -162,7 +162,7 @@ bool QMimeData_HasFormat(const QMimeData* self, struct miqt_string mimetype) { return self->hasFormat(mimetype_QString); } -struct miqt_array QMimeData_Formats(const QMimeData* self) { +struct miqt_array /* of struct miqt_string */ QMimeData_Formats(const QMimeData* self) { QStringList _ret = self->formats(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qmimedata.h b/qt/gen_qmimedata.h index a9a500ca..fb7734f2 100644 --- a/qt/gen_qmimedata.h +++ b/qt/gen_qmimedata.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMIMEDATA_H -#define GEN_QMIMEDATA_H +#pragma once +#ifndef MIQT_QT_GEN_QMIMEDATA_H +#define MIQT_QT_GEN_QMIMEDATA_H #include #include @@ -32,8 +33,8 @@ QMetaObject* QMimeData_MetaObject(const QMimeData* self); void* QMimeData_Metacast(QMimeData* self, const char* param1); struct miqt_string QMimeData_Tr(const char* s); struct miqt_string QMimeData_TrUtf8(const char* s); -struct miqt_array QMimeData_Urls(const QMimeData* self); -void QMimeData_SetUrls(QMimeData* self, struct miqt_array /* of QUrl* */ urls); +struct miqt_array /* of QUrl* */ QMimeData_Urls(const QMimeData* self); +void QMimeData_SetUrls(QMimeData* self, struct miqt_array /* of QUrl* */ urls); bool QMimeData_HasUrls(const QMimeData* self); struct miqt_string QMimeData_Text(const QMimeData* self); void QMimeData_SetText(QMimeData* self, struct miqt_string text); @@ -51,7 +52,7 @@ struct miqt_string QMimeData_Data(const QMimeData* self, struct miqt_string mime void QMimeData_SetData(QMimeData* self, struct miqt_string mimetype, struct miqt_string data); void QMimeData_RemoveFormat(QMimeData* self, struct miqt_string mimetype); bool QMimeData_HasFormat(const QMimeData* self, struct miqt_string mimetype); -struct miqt_array QMimeData_Formats(const QMimeData* self); +struct miqt_array /* of struct miqt_string */ QMimeData_Formats(const QMimeData* self); void QMimeData_Clear(QMimeData* self); struct miqt_string QMimeData_Tr2(const char* s, const char* c); struct miqt_string QMimeData_Tr3(const char* s, const char* c, int n); diff --git a/qt/gen_qmimedatabase.cpp b/qt/gen_qmimedatabase.cpp index 13efa053..0e4cc76b 100644 --- a/qt/gen_qmimedatabase.cpp +++ b/qt/gen_qmimedatabase.cpp @@ -30,7 +30,7 @@ QMimeType* QMimeDatabase_MimeTypeForFileWithFileInfo(const QMimeDatabase* self, return new QMimeType(self->mimeTypeForFile(*fileInfo)); } -struct miqt_array QMimeDatabase_MimeTypesForFileName(const QMimeDatabase* self, struct miqt_string fileName) { +struct miqt_array /* of QMimeType* */ QMimeDatabase_MimeTypesForFileName(const QMimeDatabase* self, struct miqt_string fileName) { QString fileName_QString = QString::fromUtf8(fileName.data, fileName.len); QList _ret = self->mimeTypesForFileName(fileName_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -80,7 +80,7 @@ struct miqt_string QMimeDatabase_SuffixForFileName(const QMimeDatabase* self, st return _ms; } -struct miqt_array QMimeDatabase_AllMimeTypes(const QMimeDatabase* self) { +struct miqt_array /* of QMimeType* */ QMimeDatabase_AllMimeTypes(const QMimeDatabase* self) { QList _ret = self->allMimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory QMimeType** _arr = static_cast(malloc(sizeof(QMimeType*) * _ret.length())); diff --git a/qt/gen_qmimedatabase.h b/qt/gen_qmimedatabase.h index 4df66c7c..67adf35e 100644 --- a/qt/gen_qmimedatabase.h +++ b/qt/gen_qmimedatabase.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMIMEDATABASE_H -#define GEN_QMIMEDATABASE_H +#pragma once +#ifndef MIQT_QT_GEN_QMIMEDATABASE_H +#define MIQT_QT_GEN_QMIMEDATABASE_H #include #include @@ -33,14 +34,14 @@ QMimeDatabase* QMimeDatabase_new(); QMimeType* QMimeDatabase_MimeTypeForName(const QMimeDatabase* self, struct miqt_string nameOrAlias); QMimeType* QMimeDatabase_MimeTypeForFile(const QMimeDatabase* self, struct miqt_string fileName); QMimeType* QMimeDatabase_MimeTypeForFileWithFileInfo(const QMimeDatabase* self, QFileInfo* fileInfo); -struct miqt_array QMimeDatabase_MimeTypesForFileName(const QMimeDatabase* self, struct miqt_string fileName); +struct miqt_array /* of QMimeType* */ QMimeDatabase_MimeTypesForFileName(const QMimeDatabase* self, struct miqt_string fileName); QMimeType* QMimeDatabase_MimeTypeForData(const QMimeDatabase* self, struct miqt_string data); QMimeType* QMimeDatabase_MimeTypeForDataWithDevice(const QMimeDatabase* self, QIODevice* device); QMimeType* QMimeDatabase_MimeTypeForUrl(const QMimeDatabase* self, QUrl* url); QMimeType* QMimeDatabase_MimeTypeForFileNameAndData(const QMimeDatabase* self, struct miqt_string fileName, QIODevice* device); QMimeType* QMimeDatabase_MimeTypeForFileNameAndData2(const QMimeDatabase* self, struct miqt_string fileName, struct miqt_string data); struct miqt_string QMimeDatabase_SuffixForFileName(const QMimeDatabase* self, struct miqt_string fileName); -struct miqt_array QMimeDatabase_AllMimeTypes(const QMimeDatabase* self); +struct miqt_array /* of QMimeType* */ QMimeDatabase_AllMimeTypes(const QMimeDatabase* self); QMimeType* QMimeDatabase_MimeTypeForFile2(const QMimeDatabase* self, struct miqt_string fileName, int mode); QMimeType* QMimeDatabase_MimeTypeForFile22(const QMimeDatabase* self, QFileInfo* fileInfo, int mode); void QMimeDatabase_Delete(QMimeDatabase* self); diff --git a/qt/gen_qmimetype.cpp b/qt/gen_qmimetype.cpp index b02978a3..a2e96d57 100644 --- a/qt/gen_qmimetype.cpp +++ b/qt/gen_qmimetype.cpp @@ -83,7 +83,7 @@ struct miqt_string QMimeType_IconName(const QMimeType* self) { return _ms; } -struct miqt_array QMimeType_GlobPatterns(const QMimeType* self) { +struct miqt_array /* of struct miqt_string */ QMimeType_GlobPatterns(const QMimeType* self) { QStringList _ret = self->globPatterns(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -103,7 +103,7 @@ struct miqt_array QMimeType_GlobPatterns(const QMimeType* self) { return _out; } -struct miqt_array QMimeType_ParentMimeTypes(const QMimeType* self) { +struct miqt_array /* of struct miqt_string */ QMimeType_ParentMimeTypes(const QMimeType* self) { QStringList _ret = self->parentMimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -123,7 +123,7 @@ struct miqt_array QMimeType_ParentMimeTypes(const QMimeType* self) { return _out; } -struct miqt_array QMimeType_AllAncestors(const QMimeType* self) { +struct miqt_array /* of struct miqt_string */ QMimeType_AllAncestors(const QMimeType* self) { QStringList _ret = self->allAncestors(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -143,7 +143,7 @@ struct miqt_array QMimeType_AllAncestors(const QMimeType* self) { return _out; } -struct miqt_array QMimeType_Aliases(const QMimeType* self) { +struct miqt_array /* of struct miqt_string */ QMimeType_Aliases(const QMimeType* self) { QStringList _ret = self->aliases(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -163,7 +163,7 @@ struct miqt_array QMimeType_Aliases(const QMimeType* self) { return _out; } -struct miqt_array QMimeType_Suffixes(const QMimeType* self) { +struct miqt_array /* of struct miqt_string */ QMimeType_Suffixes(const QMimeType* self) { QStringList _ret = self->suffixes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qmimetype.h b/qt/gen_qmimetype.h index eb2b597b..56cc7e9c 100644 --- a/qt/gen_qmimetype.h +++ b/qt/gen_qmimetype.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMIMETYPE_H -#define GEN_QMIMETYPE_H +#pragma once +#ifndef MIQT_QT_GEN_QMIMETYPE_H +#define MIQT_QT_GEN_QMIMETYPE_H #include #include @@ -31,11 +32,11 @@ struct miqt_string QMimeType_Name(const QMimeType* self); struct miqt_string QMimeType_Comment(const QMimeType* self); struct miqt_string QMimeType_GenericIconName(const QMimeType* self); struct miqt_string QMimeType_IconName(const QMimeType* self); -struct miqt_array QMimeType_GlobPatterns(const QMimeType* self); -struct miqt_array QMimeType_ParentMimeTypes(const QMimeType* self); -struct miqt_array QMimeType_AllAncestors(const QMimeType* self); -struct miqt_array QMimeType_Aliases(const QMimeType* self); -struct miqt_array QMimeType_Suffixes(const QMimeType* self); +struct miqt_array /* of struct miqt_string */ QMimeType_GlobPatterns(const QMimeType* self); +struct miqt_array /* of struct miqt_string */ QMimeType_ParentMimeTypes(const QMimeType* self); +struct miqt_array /* of struct miqt_string */ QMimeType_AllAncestors(const QMimeType* self); +struct miqt_array /* of struct miqt_string */ QMimeType_Aliases(const QMimeType* self); +struct miqt_array /* of struct miqt_string */ QMimeType_Suffixes(const QMimeType* self); struct miqt_string QMimeType_PreferredSuffix(const QMimeType* self); bool QMimeType_Inherits(const QMimeType* self, struct miqt_string mimeTypeName); struct miqt_string QMimeType_FilterString(const QMimeType* self); diff --git a/qt/gen_qmouseeventtransition.h b/qt/gen_qmouseeventtransition.h index d2421a2e..3a3b8ed4 100644 --- a/qt/gen_qmouseeventtransition.h +++ b/qt/gen_qmouseeventtransition.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMOUSEEVENTTRANSITION_H -#define GEN_QMOUSEEVENTTRANSITION_H +#pragma once +#ifndef MIQT_QT_GEN_QMOUSEEVENTTRANSITION_H +#define MIQT_QT_GEN_QMOUSEEVENTTRANSITION_H #include #include diff --git a/qt/gen_qmovie.cpp b/qt/gen_qmovie.cpp index 7cd5a688..5a83f807 100644 --- a/qt/gen_qmovie.cpp +++ b/qt/gen_qmovie.cpp @@ -85,7 +85,7 @@ struct miqt_string QMovie_TrUtf8(const char* s) { return _ms; } -struct miqt_array QMovie_SupportedFormats() { +struct miqt_array /* of struct miqt_string */ QMovie_SupportedFormats() { QList _ret = QMovie::supportedFormats(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qmovie.h b/qt/gen_qmovie.h index db68279f..f54ef5a0 100644 --- a/qt/gen_qmovie.h +++ b/qt/gen_qmovie.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMOVIE_H -#define GEN_QMOVIE_H +#pragma once +#ifndef MIQT_QT_GEN_QMOVIE_H +#define MIQT_QT_GEN_QMOVIE_H #include #include @@ -49,7 +50,7 @@ QMetaObject* QMovie_MetaObject(const QMovie* self); void* QMovie_Metacast(QMovie* self, const char* param1); struct miqt_string QMovie_Tr(const char* s); struct miqt_string QMovie_TrUtf8(const char* s); -struct miqt_array QMovie_SupportedFormats(); +struct miqt_array /* of struct miqt_string */ QMovie_SupportedFormats(); void QMovie_SetDevice(QMovie* self, QIODevice* device); QIODevice* QMovie_Device(const QMovie* self); void QMovie_SetFileName(QMovie* self, struct miqt_string fileName); diff --git a/qt/gen_qmutex.h b/qt/gen_qmutex.h index 8b306d99..4c9efc68 100644 --- a/qt/gen_qmutex.h +++ b/qt/gen_qmutex.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMUTEX_H -#define GEN_QMUTEX_H +#pragma once +#ifndef MIQT_QT_GEN_QMUTEX_H +#define MIQT_QT_GEN_QMUTEX_H #include #include diff --git a/qt/gen_qnamespace.h b/qt/gen_qnamespace.h index d5d277b6..0e475d6b 100644 --- a/qt/gen_qnamespace.h +++ b/qt/gen_qnamespace.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNAMESPACE_H -#define GEN_QNAMESPACE_H +#pragma once +#ifndef MIQT_QT_GEN_QNAMESPACE_H +#define MIQT_QT_GEN_QNAMESPACE_H #include #include diff --git a/qt/gen_qobject.cpp b/qt/gen_qobject.cpp index f6077599..f60acc43 100644 --- a/qt/gen_qobject.cpp +++ b/qt/gen_qobject.cpp @@ -119,7 +119,7 @@ void QObject_KillTimer(QObject* self, int id) { self->killTimer(static_cast(id)); } -struct miqt_array QObject_Children(const QObject* self) { +struct miqt_array /* of QObject* */ QObject_Children(const QObject* self) { const QObjectList& _ret = self->children(); // Convert QList<> from C++ memory to manually-managed C memory QObject** _arr = static_cast(malloc(sizeof(QObject*) * _ret.length())); @@ -184,7 +184,7 @@ QVariant* QObject_Property(const QObject* self, const char* name) { return new QVariant(self->property(name)); } -struct miqt_array QObject_DynamicPropertyNames(const QObject* self) { +struct miqt_array /* of struct miqt_string */ QObject_DynamicPropertyNames(const QObject* self) { QList _ret = self->dynamicPropertyNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qobject.h b/qt/gen_qobject.h index bac7fbcb..9ef93f8a 100644 --- a/qt/gen_qobject.h +++ b/qt/gen_qobject.h @@ -1,5 +1,6 @@ -#ifndef GEN_QOBJECT_H -#define GEN_QOBJECT_H +#pragma once +#ifndef MIQT_QT_GEN_QOBJECT_H +#define MIQT_QT_GEN_QOBJECT_H #include #include @@ -64,7 +65,7 @@ QThread* QObject_Thread(const QObject* self); void QObject_MoveToThread(QObject* self, QThread* thread); int QObject_StartTimer(QObject* self, int interval); void QObject_KillTimer(QObject* self, int id); -struct miqt_array QObject_Children(const QObject* self); +struct miqt_array /* of QObject* */ QObject_Children(const QObject* self); void QObject_SetParent(QObject* self, QObject* parent); void QObject_InstallEventFilter(QObject* self, QObject* filterObj); void QObject_RemoveEventFilter(QObject* self, QObject* obj); @@ -78,7 +79,7 @@ void QObject_DumpObjectTree2(const QObject* self); void QObject_DumpObjectInfo2(const QObject* self); bool QObject_SetProperty(QObject* self, const char* name, QVariant* value); QVariant* QObject_Property(const QObject* self, const char* name); -struct miqt_array QObject_DynamicPropertyNames(const QObject* self); +struct miqt_array /* of struct miqt_string */ QObject_DynamicPropertyNames(const QObject* self); unsigned int QObject_RegisterUserData(); void QObject_SetUserData(QObject* self, unsigned int id, QObjectUserData* data); QObjectUserData* QObject_UserData(const QObject* self, unsigned int id); diff --git a/qt/gen_qobjectcleanuphandler.h b/qt/gen_qobjectcleanuphandler.h index 4bae73c6..b44672e8 100644 --- a/qt/gen_qobjectcleanuphandler.h +++ b/qt/gen_qobjectcleanuphandler.h @@ -1,5 +1,6 @@ -#ifndef GEN_QOBJECTCLEANUPHANDLER_H -#define GEN_QOBJECTCLEANUPHANDLER_H +#pragma once +#ifndef MIQT_QT_GEN_QOBJECTCLEANUPHANDLER_H +#define MIQT_QT_GEN_QOBJECTCLEANUPHANDLER_H #include #include diff --git a/qt/gen_qobjectdefs.h b/qt/gen_qobjectdefs.h index f9935002..ea400587 100644 --- a/qt/gen_qobjectdefs.h +++ b/qt/gen_qobjectdefs.h @@ -1,5 +1,6 @@ -#ifndef GEN_QOBJECTDEFS_H -#define GEN_QOBJECTDEFS_H +#pragma once +#ifndef MIQT_QT_GEN_QOBJECTDEFS_H +#define MIQT_QT_GEN_QOBJECTDEFS_H #include #include diff --git a/qt/gen_qoffscreensurface.h b/qt/gen_qoffscreensurface.h index 32ac2e8a..73771354 100644 --- a/qt/gen_qoffscreensurface.h +++ b/qt/gen_qoffscreensurface.h @@ -1,5 +1,6 @@ -#ifndef GEN_QOFFSCREENSURFACE_H -#define GEN_QOFFSCREENSURFACE_H +#pragma once +#ifndef MIQT_QT_GEN_QOFFSCREENSURFACE_H +#define MIQT_QT_GEN_QOFFSCREENSURFACE_H #include #include diff --git a/qt/gen_qoperatingsystemversion.h b/qt/gen_qoperatingsystemversion.h index a86d2f70..fe4215a7 100644 --- a/qt/gen_qoperatingsystemversion.h +++ b/qt/gen_qoperatingsystemversion.h @@ -1,5 +1,6 @@ -#ifndef GEN_QOPERATINGSYSTEMVERSION_H -#define GEN_QOPERATINGSYSTEMVERSION_H +#pragma once +#ifndef MIQT_QT_GEN_QOPERATINGSYSTEMVERSION_H +#define MIQT_QT_GEN_QOPERATINGSYSTEMVERSION_H #include #include diff --git a/qt/gen_qpagedpaintdevice.h b/qt/gen_qpagedpaintdevice.h index 2d578628..83db5495 100644 --- a/qt/gen_qpagedpaintdevice.h +++ b/qt/gen_qpagedpaintdevice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAGEDPAINTDEVICE_H -#define GEN_QPAGEDPAINTDEVICE_H +#pragma once +#ifndef MIQT_QT_GEN_QPAGEDPAINTDEVICE_H +#define MIQT_QT_GEN_QPAGEDPAINTDEVICE_H #include #include diff --git a/qt/gen_qpagelayout.h b/qt/gen_qpagelayout.h index 4ec6026b..98baca3f 100644 --- a/qt/gen_qpagelayout.h +++ b/qt/gen_qpagelayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAGELAYOUT_H -#define GEN_QPAGELAYOUT_H +#pragma once +#ifndef MIQT_QT_GEN_QPAGELAYOUT_H +#define MIQT_QT_GEN_QPAGELAYOUT_H #include #include diff --git a/qt/gen_qpagesize.h b/qt/gen_qpagesize.h index 13f067f3..7afb23bf 100644 --- a/qt/gen_qpagesize.h +++ b/qt/gen_qpagesize.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAGESIZE_H -#define GEN_QPAGESIZE_H +#pragma once +#ifndef MIQT_QT_GEN_QPAGESIZE_H +#define MIQT_QT_GEN_QPAGESIZE_H #include #include diff --git a/qt/gen_qpaintdevice.h b/qt/gen_qpaintdevice.h index 31f93d76..b6f389ae 100644 --- a/qt/gen_qpaintdevice.h +++ b/qt/gen_qpaintdevice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAINTDEVICE_H -#define GEN_QPAINTDEVICE_H +#pragma once +#ifndef MIQT_QT_GEN_QPAINTDEVICE_H +#define MIQT_QT_GEN_QPAINTDEVICE_H #include #include diff --git a/qt/gen_qpaintdevicewindow.h b/qt/gen_qpaintdevicewindow.h index 7c9e4f57..f19fd63b 100644 --- a/qt/gen_qpaintdevicewindow.h +++ b/qt/gen_qpaintdevicewindow.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAINTDEVICEWINDOW_H -#define GEN_QPAINTDEVICEWINDOW_H +#pragma once +#ifndef MIQT_QT_GEN_QPAINTDEVICEWINDOW_H +#define MIQT_QT_GEN_QPAINTDEVICEWINDOW_H #include #include diff --git a/qt/gen_qpaintengine.h b/qt/gen_qpaintengine.h index 86b05ee5..f262fef4 100644 --- a/qt/gen_qpaintengine.h +++ b/qt/gen_qpaintengine.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAINTENGINE_H -#define GEN_QPAINTENGINE_H +#pragma once +#ifndef MIQT_QT_GEN_QPAINTENGINE_H +#define MIQT_QT_GEN_QPAINTENGINE_H #include #include diff --git a/qt/gen_qpainter.cpp b/qt/gen_qpainter.cpp index e374180c..aacab2b6 100644 --- a/qt/gen_qpainter.cpp +++ b/qt/gen_qpainter.cpp @@ -408,7 +408,7 @@ void QPainter_DrawLines(QPainter* self, QLineF* lines, int lineCount) { self->drawLines(lines, static_cast(lineCount)); } -void QPainter_DrawLinesWithLines(QPainter* self, struct miqt_array /* of QLineF* */ lines) { +void QPainter_DrawLinesWithLines(QPainter* self, struct miqt_array /* of QLineF* */ lines) { QVector lines_QList; lines_QList.reserve(lines.len); QLineF** lines_arr = static_cast(lines.data); @@ -422,7 +422,7 @@ void QPainter_DrawLines2(QPainter* self, QPointF* pointPairs, int lineCount) { self->drawLines(pointPairs, static_cast(lineCount)); } -void QPainter_DrawLinesWithPointPairs(QPainter* self, struct miqt_array /* of QPointF* */ pointPairs) { +void QPainter_DrawLinesWithPointPairs(QPainter* self, struct miqt_array /* of QPointF* */ pointPairs) { QVector pointPairs_QList; pointPairs_QList.reserve(pointPairs.len); QPointF** pointPairs_arr = static_cast(pointPairs.data); @@ -436,7 +436,7 @@ void QPainter_DrawLines3(QPainter* self, QLine* lines, int lineCount) { self->drawLines(lines, static_cast(lineCount)); } -void QPainter_DrawLines4(QPainter* self, struct miqt_array /* of QLine* */ lines) { +void QPainter_DrawLines4(QPainter* self, struct miqt_array /* of QLine* */ lines) { QVector lines_QList; lines_QList.reserve(lines.len); QLine** lines_arr = static_cast(lines.data); @@ -450,7 +450,7 @@ void QPainter_DrawLines5(QPainter* self, QPoint* pointPairs, int lineCount) { self->drawLines(pointPairs, static_cast(lineCount)); } -void QPainter_DrawLines6(QPainter* self, struct miqt_array /* of QPoint* */ pointPairs) { +void QPainter_DrawLines6(QPainter* self, struct miqt_array /* of QPoint* */ pointPairs) { QVector pointPairs_QList; pointPairs_QList.reserve(pointPairs.len); QPoint** pointPairs_arr = static_cast(pointPairs.data); @@ -476,7 +476,7 @@ void QPainter_DrawRects(QPainter* self, QRectF* rects, int rectCount) { self->drawRects(rects, static_cast(rectCount)); } -void QPainter_DrawRectsWithRectangles(QPainter* self, struct miqt_array /* of QRectF* */ rectangles) { +void QPainter_DrawRectsWithRectangles(QPainter* self, struct miqt_array /* of QRectF* */ rectangles) { QVector rectangles_QList; rectangles_QList.reserve(rectangles.len); QRectF** rectangles_arr = static_cast(rectangles.data); @@ -490,7 +490,7 @@ void QPainter_DrawRects2(QPainter* self, QRect* rects, int rectCount) { self->drawRects(rects, static_cast(rectCount)); } -void QPainter_DrawRects3(QPainter* self, struct miqt_array /* of QRect* */ rectangles) { +void QPainter_DrawRects3(QPainter* self, struct miqt_array /* of QRect* */ rectangles) { QVector rectangles_QList; rectangles_QList.reserve(rectangles.len); QRect** rectangles_arr = static_cast(rectangles.data); diff --git a/qt/gen_qpainter.h b/qt/gen_qpainter.h index 02da7266..2d3b33bf 100644 --- a/qt/gen_qpainter.h +++ b/qt/gen_qpainter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAINTER_H -#define GEN_QPAINTER_H +#pragma once +#ifndef MIQT_QT_GEN_QPAINTER_H +#define MIQT_QT_GEN_QPAINTER_H #include #include @@ -163,20 +164,20 @@ void QPainter_DrawLine2(QPainter* self, int x1, int y1, int x2, int y2); void QPainter_DrawLine3(QPainter* self, QPoint* p1, QPoint* p2); void QPainter_DrawLine4(QPainter* self, QPointF* p1, QPointF* p2); void QPainter_DrawLines(QPainter* self, QLineF* lines, int lineCount); -void QPainter_DrawLinesWithLines(QPainter* self, struct miqt_array /* of QLineF* */ lines); +void QPainter_DrawLinesWithLines(QPainter* self, struct miqt_array /* of QLineF* */ lines); void QPainter_DrawLines2(QPainter* self, QPointF* pointPairs, int lineCount); -void QPainter_DrawLinesWithPointPairs(QPainter* self, struct miqt_array /* of QPointF* */ pointPairs); +void QPainter_DrawLinesWithPointPairs(QPainter* self, struct miqt_array /* of QPointF* */ pointPairs); void QPainter_DrawLines3(QPainter* self, QLine* lines, int lineCount); -void QPainter_DrawLines4(QPainter* self, struct miqt_array /* of QLine* */ lines); +void QPainter_DrawLines4(QPainter* self, struct miqt_array /* of QLine* */ lines); void QPainter_DrawLines5(QPainter* self, QPoint* pointPairs, int lineCount); -void QPainter_DrawLines6(QPainter* self, struct miqt_array /* of QPoint* */ pointPairs); +void QPainter_DrawLines6(QPainter* self, struct miqt_array /* of QPoint* */ pointPairs); void QPainter_DrawRect(QPainter* self, QRectF* rect); void QPainter_DrawRect2(QPainter* self, int x1, int y1, int w, int h); void QPainter_DrawRectWithRect(QPainter* self, QRect* rect); void QPainter_DrawRects(QPainter* self, QRectF* rects, int rectCount); -void QPainter_DrawRectsWithRectangles(QPainter* self, struct miqt_array /* of QRectF* */ rectangles); +void QPainter_DrawRectsWithRectangles(QPainter* self, struct miqt_array /* of QRectF* */ rectangles); void QPainter_DrawRects2(QPainter* self, QRect* rects, int rectCount); -void QPainter_DrawRects3(QPainter* self, struct miqt_array /* of QRect* */ rectangles); +void QPainter_DrawRects3(QPainter* self, struct miqt_array /* of QRect* */ rectangles); void QPainter_DrawEllipse(QPainter* self, QRectF* r); void QPainter_DrawEllipseWithQRect(QPainter* self, QRect* r); void QPainter_DrawEllipse2(QPainter* self, int x, int y, int w, int h); diff --git a/qt/gen_qpainterpath.cpp b/qt/gen_qpainterpath.cpp index 0866704d..0ac8236c 100644 --- a/qt/gen_qpainterpath.cpp +++ b/qt/gen_qpainterpath.cpp @@ -398,7 +398,7 @@ void QPainterPathStroker_SetDashPattern(QPainterPathStroker* self, int dashPatte self->setDashPattern(static_cast(dashPattern)); } -void QPainterPathStroker_SetDashPatternWithDashPattern(QPainterPathStroker* self, struct miqt_array /* of double */ dashPattern) { +void QPainterPathStroker_SetDashPatternWithDashPattern(QPainterPathStroker* self, struct miqt_array /* of double */ dashPattern) { QVector dashPattern_QList; dashPattern_QList.reserve(dashPattern.len); double* dashPattern_arr = static_cast(dashPattern.data); @@ -408,7 +408,7 @@ void QPainterPathStroker_SetDashPatternWithDashPattern(QPainterPathStroker* self self->setDashPattern(dashPattern_QList); } -struct miqt_array QPainterPathStroker_DashPattern(const QPainterPathStroker* self) { +struct miqt_array /* of double */ QPainterPathStroker_DashPattern(const QPainterPathStroker* self) { QVector _ret = self->dashPattern(); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); diff --git a/qt/gen_qpainterpath.h b/qt/gen_qpainterpath.h index d142e25c..9f712f6e 100644 --- a/qt/gen_qpainterpath.h +++ b/qt/gen_qpainterpath.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAINTERPATH_H -#define GEN_QPAINTERPATH_H +#pragma once +#ifndef MIQT_QT_GEN_QPAINTERPATH_H +#define MIQT_QT_GEN_QPAINTERPATH_H #include #include @@ -130,8 +131,8 @@ double QPainterPathStroker_MiterLimit(const QPainterPathStroker* self); void QPainterPathStroker_SetCurveThreshold(QPainterPathStroker* self, double threshold); double QPainterPathStroker_CurveThreshold(const QPainterPathStroker* self); void QPainterPathStroker_SetDashPattern(QPainterPathStroker* self, int dashPattern); -void QPainterPathStroker_SetDashPatternWithDashPattern(QPainterPathStroker* self, struct miqt_array /* of double */ dashPattern); -struct miqt_array QPainterPathStroker_DashPattern(const QPainterPathStroker* self); +void QPainterPathStroker_SetDashPatternWithDashPattern(QPainterPathStroker* self, struct miqt_array /* of double */ dashPattern); +struct miqt_array /* of double */ QPainterPathStroker_DashPattern(const QPainterPathStroker* self); void QPainterPathStroker_SetDashOffset(QPainterPathStroker* self, double offset); double QPainterPathStroker_DashOffset(const QPainterPathStroker* self); QPainterPath* QPainterPathStroker_CreateStroke(const QPainterPathStroker* self, QPainterPath* path); diff --git a/qt/gen_qpalette.h b/qt/gen_qpalette.h index 307b20f0..9f72ae10 100644 --- a/qt/gen_qpalette.h +++ b/qt/gen_qpalette.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPALETTE_H -#define GEN_QPALETTE_H +#pragma once +#ifndef MIQT_QT_GEN_QPALETTE_H +#define MIQT_QT_GEN_QPALETTE_H #include #include diff --git a/qt/gen_qparallelanimationgroup.h b/qt/gen_qparallelanimationgroup.h index ffe18b73..ade222c4 100644 --- a/qt/gen_qparallelanimationgroup.h +++ b/qt/gen_qparallelanimationgroup.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPARALLELANIMATIONGROUP_H -#define GEN_QPARALLELANIMATIONGROUP_H +#pragma once +#ifndef MIQT_QT_GEN_QPARALLELANIMATIONGROUP_H +#define MIQT_QT_GEN_QPARALLELANIMATIONGROUP_H #include #include diff --git a/qt/gen_qpauseanimation.h b/qt/gen_qpauseanimation.h index 9223ec62..88c22dac 100644 --- a/qt/gen_qpauseanimation.h +++ b/qt/gen_qpauseanimation.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAUSEANIMATION_H -#define GEN_QPAUSEANIMATION_H +#pragma once +#ifndef MIQT_QT_GEN_QPAUSEANIMATION_H +#define MIQT_QT_GEN_QPAUSEANIMATION_H #include #include diff --git a/qt/gen_qpdfwriter.h b/qt/gen_qpdfwriter.h index 76e48292..ed502c63 100644 --- a/qt/gen_qpdfwriter.h +++ b/qt/gen_qpdfwriter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPDFWRITER_H -#define GEN_QPDFWRITER_H +#pragma once +#ifndef MIQT_QT_GEN_QPDFWRITER_H +#define MIQT_QT_GEN_QPDFWRITER_H #include #include diff --git a/qt/gen_qpen.cpp b/qt/gen_qpen.cpp index 5c3ad981..26e58812 100644 --- a/qt/gen_qpen.cpp +++ b/qt/gen_qpen.cpp @@ -55,7 +55,7 @@ void QPen_SetStyle(QPen* self, int style) { self->setStyle(static_cast(style)); } -struct miqt_array QPen_DashPattern(const QPen* self) { +struct miqt_array /* of double */ QPen_DashPattern(const QPen* self) { QVector _ret = self->dashPattern(); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); @@ -68,7 +68,7 @@ struct miqt_array QPen_DashPattern(const QPen* self) { return _out; } -void QPen_SetDashPattern(QPen* self, struct miqt_array /* of double */ pattern) { +void QPen_SetDashPattern(QPen* self, struct miqt_array /* of double */ pattern) { QVector pattern_QList; pattern_QList.reserve(pattern.len); double* pattern_arr = static_cast(pattern.data); diff --git a/qt/gen_qpen.h b/qt/gen_qpen.h index 8c50b282..0d8a8c13 100644 --- a/qt/gen_qpen.h +++ b/qt/gen_qpen.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPEN_H -#define GEN_QPEN_H +#pragma once +#ifndef MIQT_QT_GEN_QPEN_H +#define MIQT_QT_GEN_QPEN_H #include #include @@ -35,8 +36,8 @@ void QPen_OperatorAssign(QPen* self, QPen* pen); void QPen_Swap(QPen* self, QPen* other); int QPen_Style(const QPen* self); void QPen_SetStyle(QPen* self, int style); -struct miqt_array QPen_DashPattern(const QPen* self); -void QPen_SetDashPattern(QPen* self, struct miqt_array /* of double */ pattern); +struct miqt_array /* of double */ QPen_DashPattern(const QPen* self); +void QPen_SetDashPattern(QPen* self, struct miqt_array /* of double */ pattern); double QPen_DashOffset(const QPen* self); void QPen_SetDashOffset(QPen* self, double doffset); double QPen_MiterLimit(const QPen* self); diff --git a/qt/gen_qpicture.cpp b/qt/gen_qpicture.cpp index 0ddcdde2..e767d202 100644 --- a/qt/gen_qpicture.cpp +++ b/qt/gen_qpicture.cpp @@ -97,7 +97,7 @@ const char* QPicture_PictureFormat(struct miqt_string fileName) { return (const char*) QPicture::pictureFormat(fileName_QString); } -struct miqt_array QPicture_InputFormats() { +struct miqt_array /* of struct miqt_string */ QPicture_InputFormats() { QList _ret = QPicture::inputFormats(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -115,7 +115,7 @@ struct miqt_array QPicture_InputFormats() { return _out; } -struct miqt_array QPicture_OutputFormats() { +struct miqt_array /* of struct miqt_string */ QPicture_OutputFormats() { QList _ret = QPicture::outputFormats(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -133,7 +133,7 @@ struct miqt_array QPicture_OutputFormats() { return _out; } -struct miqt_array QPicture_InputFormatList() { +struct miqt_array /* of struct miqt_string */ QPicture_InputFormatList() { QStringList _ret = QPicture::inputFormatList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -153,7 +153,7 @@ struct miqt_array QPicture_InputFormatList() { return _out; } -struct miqt_array QPicture_OutputFormatList() { +struct miqt_array /* of struct miqt_string */ QPicture_OutputFormatList() { QStringList _ret = QPicture::outputFormatList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -329,7 +329,7 @@ struct miqt_string QPictureIO_PictureFormatWithQIODevice(QIODevice* param1) { return _ms; } -struct miqt_array QPictureIO_InputFormats() { +struct miqt_array /* of struct miqt_string */ QPictureIO_InputFormats() { QList _ret = QPictureIO::inputFormats(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -347,7 +347,7 @@ struct miqt_array QPictureIO_InputFormats() { return _out; } -struct miqt_array QPictureIO_OutputFormats() { +struct miqt_array /* of struct miqt_string */ QPictureIO_OutputFormats() { QList _ret = QPictureIO::outputFormats(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qpicture.h b/qt/gen_qpicture.h index bee588b5..21930fe8 100644 --- a/qt/gen_qpicture.h +++ b/qt/gen_qpicture.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPICTURE_H -#define GEN_QPICTURE_H +#pragma once +#ifndef MIQT_QT_GEN_QPICTURE_H +#define MIQT_QT_GEN_QPICTURE_H #include #include @@ -51,10 +52,10 @@ void QPicture_Swap(QPicture* self, QPicture* other); void QPicture_Detach(QPicture* self); bool QPicture_IsDetached(const QPicture* self); const char* QPicture_PictureFormat(struct miqt_string fileName); -struct miqt_array QPicture_InputFormats(); -struct miqt_array QPicture_OutputFormats(); -struct miqt_array QPicture_InputFormatList(); -struct miqt_array QPicture_OutputFormatList(); +struct miqt_array /* of struct miqt_string */ QPicture_InputFormats(); +struct miqt_array /* of struct miqt_string */ QPicture_OutputFormats(); +struct miqt_array /* of struct miqt_string */ QPicture_InputFormatList(); +struct miqt_array /* of struct miqt_string */ QPicture_OutputFormatList(); QPaintEngine* QPicture_PaintEngine(const QPicture* self); bool QPicture_Load2(QPicture* self, QIODevice* dev, const char* format); bool QPicture_Load22(QPicture* self, struct miqt_string fileName, const char* format); @@ -87,8 +88,8 @@ bool QPictureIO_Read(QPictureIO* self); bool QPictureIO_Write(QPictureIO* self); struct miqt_string QPictureIO_PictureFormat(struct miqt_string fileName); struct miqt_string QPictureIO_PictureFormatWithQIODevice(QIODevice* param1); -struct miqt_array QPictureIO_InputFormats(); -struct miqt_array QPictureIO_OutputFormats(); +struct miqt_array /* of struct miqt_string */ QPictureIO_InputFormats(); +struct miqt_array /* of struct miqt_string */ QPictureIO_OutputFormats(); void QPictureIO_Delete(QPictureIO* self); #ifdef __cplusplus diff --git a/qt/gen_qpictureformatplugin.h b/qt/gen_qpictureformatplugin.h index ab41dbb9..89535d80 100644 --- a/qt/gen_qpictureformatplugin.h +++ b/qt/gen_qpictureformatplugin.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPICTUREFORMATPLUGIN_H -#define GEN_QPICTUREFORMATPLUGIN_H +#pragma once +#ifndef MIQT_QT_GEN_QPICTUREFORMATPLUGIN_H +#define MIQT_QT_GEN_QPICTUREFORMATPLUGIN_H #include #include diff --git a/qt/gen_qpixelformat.h b/qt/gen_qpixelformat.h index 43d957f2..54d8f91d 100644 --- a/qt/gen_qpixelformat.h +++ b/qt/gen_qpixelformat.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPIXELFORMAT_H -#define GEN_QPIXELFORMAT_H +#pragma once +#ifndef MIQT_QT_GEN_QPIXELFORMAT_H +#define MIQT_QT_GEN_QPIXELFORMAT_H #include #include diff --git a/qt/gen_qpixmap.h b/qt/gen_qpixmap.h index 2faee706..9151cd3f 100644 --- a/qt/gen_qpixmap.h +++ b/qt/gen_qpixmap.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPIXMAP_H -#define GEN_QPIXMAP_H +#pragma once +#ifndef MIQT_QT_GEN_QPIXMAP_H +#define MIQT_QT_GEN_QPIXMAP_H #include #include diff --git a/qt/gen_qpixmapcache.h b/qt/gen_qpixmapcache.h index 4ff6c898..db73126d 100644 --- a/qt/gen_qpixmapcache.h +++ b/qt/gen_qpixmapcache.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPIXMAPCACHE_H -#define GEN_QPIXMAPCACHE_H +#pragma once +#ifndef MIQT_QT_GEN_QPIXMAPCACHE_H +#define MIQT_QT_GEN_QPIXMAPCACHE_H #include #include diff --git a/qt/gen_qplaintextedit.cpp b/qt/gen_qplaintextedit.cpp index dd8cc77d..d1e64363 100644 --- a/qt/gen_qplaintextedit.cpp +++ b/qt/gen_qplaintextedit.cpp @@ -308,7 +308,7 @@ void QPlainTextEdit_SetCursorWidth(QPlainTextEdit* self, int width) { self->setCursorWidth(static_cast(width)); } -void QPlainTextEdit_SetExtraSelections(QPlainTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections) { +void QPlainTextEdit_SetExtraSelections(QPlainTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections) { QList selections_QList; selections_QList.reserve(selections.len); QTextEdit__ExtraSelection** selections_arr = static_cast(selections.data); @@ -318,7 +318,7 @@ void QPlainTextEdit_SetExtraSelections(QPlainTextEdit* self, struct miqt_array / self->setExtraSelections(selections_QList); } -struct miqt_array QPlainTextEdit_ExtraSelections(const QPlainTextEdit* self) { +struct miqt_array /* of QTextEdit__ExtraSelection* */ QPlainTextEdit_ExtraSelections(const QPlainTextEdit* self) { QList _ret = self->extraSelections(); // Convert QList<> from C++ memory to manually-managed C memory QTextEdit__ExtraSelection** _arr = static_cast(malloc(sizeof(QTextEdit__ExtraSelection*) * _ret.length())); diff --git a/qt/gen_qplaintextedit.h b/qt/gen_qplaintextedit.h index c1945b92..3d233c11 100644 --- a/qt/gen_qplaintextedit.h +++ b/qt/gen_qplaintextedit.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPLAINTEXTEDIT_H -#define GEN_QPLAINTEXTEDIT_H +#pragma once +#ifndef MIQT_QT_GEN_QPLAINTEXTEDIT_H +#define MIQT_QT_GEN_QPLAINTEXTEDIT_H #include #include @@ -128,8 +129,8 @@ double QPlainTextEdit_TabStopDistance(const QPlainTextEdit* self); void QPlainTextEdit_SetTabStopDistance(QPlainTextEdit* self, double distance); int QPlainTextEdit_CursorWidth(const QPlainTextEdit* self); void QPlainTextEdit_SetCursorWidth(QPlainTextEdit* self, int width); -void QPlainTextEdit_SetExtraSelections(QPlainTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections); -struct miqt_array QPlainTextEdit_ExtraSelections(const QPlainTextEdit* self); +void QPlainTextEdit_SetExtraSelections(QPlainTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections); +struct miqt_array /* of QTextEdit__ExtraSelection* */ QPlainTextEdit_ExtraSelections(const QPlainTextEdit* self); void QPlainTextEdit_MoveCursor(QPlainTextEdit* self, int operation); bool QPlainTextEdit_CanPaste(const QPlainTextEdit* self); void QPlainTextEdit_Print(const QPlainTextEdit* self, QPagedPaintDevice* printer); diff --git a/qt/gen_qplugin.h b/qt/gen_qplugin.h index 2e552521..4ea0fda4 100644 --- a/qt/gen_qplugin.h +++ b/qt/gen_qplugin.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPLUGIN_H -#define GEN_QPLUGIN_H +#pragma once +#ifndef MIQT_QT_GEN_QPLUGIN_H +#define MIQT_QT_GEN_QPLUGIN_H #include #include diff --git a/qt/gen_qpluginloader.cpp b/qt/gen_qpluginloader.cpp index e4879ba1..e93437db 100644 --- a/qt/gen_qpluginloader.cpp +++ b/qt/gen_qpluginloader.cpp @@ -67,7 +67,7 @@ QJsonObject* QPluginLoader_MetaData(const QPluginLoader* self) { return new QJsonObject(self->metaData()); } -struct miqt_array QPluginLoader_StaticInstances() { +struct miqt_array /* of QObject* */ QPluginLoader_StaticInstances() { QObjectList _ret = QPluginLoader::staticInstances(); // Convert QList<> from C++ memory to manually-managed C memory QObject** _arr = static_cast(malloc(sizeof(QObject*) * _ret.length())); @@ -80,7 +80,7 @@ struct miqt_array QPluginLoader_StaticInstances() { return _out; } -struct miqt_array QPluginLoader_StaticPlugins() { +struct miqt_array /* of QStaticPlugin* */ QPluginLoader_StaticPlugins() { QVector _ret = QPluginLoader::staticPlugins(); // Convert QList<> from C++ memory to manually-managed C memory QStaticPlugin** _arr = static_cast(malloc(sizeof(QStaticPlugin*) * _ret.length())); diff --git a/qt/gen_qpluginloader.h b/qt/gen_qpluginloader.h index 14aa471b..b942dc3c 100644 --- a/qt/gen_qpluginloader.h +++ b/qt/gen_qpluginloader.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPLUGINLOADER_H -#define GEN_QPLUGINLOADER_H +#pragma once +#ifndef MIQT_QT_GEN_QPLUGINLOADER_H +#define MIQT_QT_GEN_QPLUGINLOADER_H #include #include @@ -37,8 +38,8 @@ struct miqt_string QPluginLoader_Tr(const char* s); struct miqt_string QPluginLoader_TrUtf8(const char* s); QObject* QPluginLoader_Instance(QPluginLoader* self); QJsonObject* QPluginLoader_MetaData(const QPluginLoader* self); -struct miqt_array QPluginLoader_StaticInstances(); -struct miqt_array QPluginLoader_StaticPlugins(); +struct miqt_array /* of QObject* */ QPluginLoader_StaticInstances(); +struct miqt_array /* of QStaticPlugin* */ QPluginLoader_StaticPlugins(); bool QPluginLoader_Load(QPluginLoader* self); bool QPluginLoader_Unload(QPluginLoader* self); bool QPluginLoader_IsLoaded(const QPluginLoader* self); diff --git a/qt/gen_qpoint.h b/qt/gen_qpoint.h index cd3a378e..e8b349ee 100644 --- a/qt/gen_qpoint.h +++ b/qt/gen_qpoint.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPOINT_H -#define GEN_QPOINT_H +#pragma once +#ifndef MIQT_QT_GEN_QPOINT_H +#define MIQT_QT_GEN_QPOINT_H #include #include diff --git a/qt/gen_qprocess.cpp b/qt/gen_qprocess.cpp index 76f6754d..cb92d296 100644 --- a/qt/gen_qprocess.cpp +++ b/qt/gen_qprocess.cpp @@ -71,7 +71,7 @@ struct miqt_string QProcessEnvironment_Value(const QProcessEnvironment* self, st return _ms; } -struct miqt_array QProcessEnvironment_ToStringList(const QProcessEnvironment* self) { +struct miqt_array /* of struct miqt_string */ QProcessEnvironment_ToStringList(const QProcessEnvironment* self) { QStringList _ret = self->toStringList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -91,7 +91,7 @@ struct miqt_array QProcessEnvironment_ToStringList(const QProcessEnvironment* se return _out; } -struct miqt_array QProcessEnvironment_Keys(const QProcessEnvironment* self) { +struct miqt_array /* of struct miqt_string */ QProcessEnvironment_Keys(const QProcessEnvironment* self) { QStringList _ret = self->keys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -174,7 +174,7 @@ struct miqt_string QProcess_TrUtf8(const char* s) { return _ms; } -void QProcess_Start(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments) { +void QProcess_Start(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments) { QString program_QString = QString::fromUtf8(program.data, program.len); QStringList arguments_QList; arguments_QList.reserve(arguments.len); @@ -219,7 +219,7 @@ void QProcess_SetProgram(QProcess* self, struct miqt_string program) { self->setProgram(program_QString); } -struct miqt_array QProcess_Arguments(const QProcess* self) { +struct miqt_array /* of struct miqt_string */ QProcess_Arguments(const QProcess* self) { QStringList _ret = self->arguments(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -239,7 +239,7 @@ struct miqt_array QProcess_Arguments(const QProcess* self) { return _out; } -void QProcess_SetArguments(QProcess* self, struct miqt_array /* of struct miqt_string */ arguments) { +void QProcess_SetArguments(QProcess* self, struct miqt_array /* of struct miqt_string */ arguments) { QStringList arguments_QList; arguments_QList.reserve(arguments.len); struct miqt_string* arguments_arr = static_cast(arguments.data); @@ -329,7 +329,7 @@ void QProcess_SetWorkingDirectory(QProcess* self, struct miqt_string dir) { self->setWorkingDirectory(dir_QString); } -void QProcess_SetEnvironment(QProcess* self, struct miqt_array /* of struct miqt_string */ environment) { +void QProcess_SetEnvironment(QProcess* self, struct miqt_array /* of struct miqt_string */ environment) { QStringList environment_QList; environment_QList.reserve(environment.len); struct miqt_string* environment_arr = static_cast(environment.data); @@ -340,7 +340,7 @@ void QProcess_SetEnvironment(QProcess* self, struct miqt_array /* of struct miqt self->setEnvironment(environment_QList); } -struct miqt_array QProcess_Environment(const QProcess* self) { +struct miqt_array /* of struct miqt_string */ QProcess_Environment(const QProcess* self) { QStringList _ret = self->environment(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -462,7 +462,7 @@ bool QProcess_AtEnd(const QProcess* self) { return self->atEnd(); } -int QProcess_Execute(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments) { +int QProcess_Execute(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments) { QString program_QString = QString::fromUtf8(program.data, program.len); QStringList arguments_QList; arguments_QList.reserve(arguments.len); @@ -479,7 +479,7 @@ int QProcess_ExecuteWithCommand(struct miqt_string command) { return QProcess::execute(command_QString); } -bool QProcess_StartDetached2(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory) { +bool QProcess_StartDetached2(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory) { QString program_QString = QString::fromUtf8(program.data, program.len); QStringList arguments_QList; arguments_QList.reserve(arguments.len); @@ -492,7 +492,7 @@ bool QProcess_StartDetached2(struct miqt_string program, struct miqt_array /* of return QProcess::startDetached(program_QString, arguments_QList, workingDirectory_QString); } -bool QProcess_StartDetached3(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments) { +bool QProcess_StartDetached3(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments) { QString program_QString = QString::fromUtf8(program.data, program.len); QStringList arguments_QList; arguments_QList.reserve(arguments.len); @@ -509,7 +509,7 @@ bool QProcess_StartDetachedWithCommand(struct miqt_string command) { return QProcess::startDetached(command_QString); } -struct miqt_array QProcess_SystemEnvironment() { +struct miqt_array /* of struct miqt_string */ QProcess_SystemEnvironment() { QStringList _ret = QProcess::systemEnvironment(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -640,7 +640,7 @@ struct miqt_string QProcess_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QProcess_Start3(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, int mode) { +void QProcess_Start3(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, int mode) { QString program_QString = QString::fromUtf8(program.data, program.len); QStringList arguments_QList; arguments_QList.reserve(arguments.len); @@ -695,7 +695,7 @@ bool QProcess_WaitForFinished1(QProcess* self, int msecs) { return self->waitForFinished(static_cast(msecs)); } -bool QProcess_StartDetached4(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory, long long* pid) { +bool QProcess_StartDetached4(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory, long long* pid) { QString program_QString = QString::fromUtf8(program.data, program.len); QStringList arguments_QList; arguments_QList.reserve(arguments.len); diff --git a/qt/gen_qprocess.h b/qt/gen_qprocess.h index 5a5e7a25..dd16f854 100644 --- a/qt/gen_qprocess.h +++ b/qt/gen_qprocess.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPROCESS_H -#define GEN_QPROCESS_H +#pragma once +#ifndef MIQT_QT_GEN_QPROCESS_H +#define MIQT_QT_GEN_QPROCESS_H #include #include @@ -39,8 +40,8 @@ bool QProcessEnvironment_Contains(const QProcessEnvironment* self, struct miqt_s void QProcessEnvironment_Insert(QProcessEnvironment* self, struct miqt_string name, struct miqt_string value); void QProcessEnvironment_Remove(QProcessEnvironment* self, struct miqt_string name); struct miqt_string QProcessEnvironment_Value(const QProcessEnvironment* self, struct miqt_string name); -struct miqt_array QProcessEnvironment_ToStringList(const QProcessEnvironment* self); -struct miqt_array QProcessEnvironment_Keys(const QProcessEnvironment* self); +struct miqt_array /* of struct miqt_string */ QProcessEnvironment_ToStringList(const QProcessEnvironment* self); +struct miqt_array /* of struct miqt_string */ QProcessEnvironment_Keys(const QProcessEnvironment* self); void QProcessEnvironment_InsertWithQProcessEnvironment(QProcessEnvironment* self, QProcessEnvironment* e); QProcessEnvironment* QProcessEnvironment_SystemEnvironment(); struct miqt_string QProcessEnvironment_Value2(const QProcessEnvironment* self, struct miqt_string name, struct miqt_string defaultValue); @@ -52,15 +53,15 @@ QMetaObject* QProcess_MetaObject(const QProcess* self); void* QProcess_Metacast(QProcess* self, const char* param1); struct miqt_string QProcess_Tr(const char* s); struct miqt_string QProcess_TrUtf8(const char* s); -void QProcess_Start(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments); +void QProcess_Start(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments); void QProcess_StartWithCommand(QProcess* self, struct miqt_string command); void QProcess_Start2(QProcess* self); bool QProcess_StartDetached(QProcess* self); bool QProcess_Open(QProcess* self); struct miqt_string QProcess_Program(const QProcess* self); void QProcess_SetProgram(QProcess* self, struct miqt_string program); -struct miqt_array QProcess_Arguments(const QProcess* self); -void QProcess_SetArguments(QProcess* self, struct miqt_array /* of struct miqt_string */ arguments); +struct miqt_array /* of struct miqt_string */ QProcess_Arguments(const QProcess* self); +void QProcess_SetArguments(QProcess* self, struct miqt_array /* of struct miqt_string */ arguments); int QProcess_ReadChannelMode(const QProcess* self); void QProcess_SetReadChannelMode(QProcess* self, int mode); int QProcess_ProcessChannelMode(const QProcess* self); @@ -77,8 +78,8 @@ void QProcess_SetStandardErrorFile(QProcess* self, struct miqt_string fileName); void QProcess_SetStandardOutputProcess(QProcess* self, QProcess* destination); struct miqt_string QProcess_WorkingDirectory(const QProcess* self); void QProcess_SetWorkingDirectory(QProcess* self, struct miqt_string dir); -void QProcess_SetEnvironment(QProcess* self, struct miqt_array /* of struct miqt_string */ environment); -struct miqt_array QProcess_Environment(const QProcess* self); +void QProcess_SetEnvironment(QProcess* self, struct miqt_array /* of struct miqt_string */ environment); +struct miqt_array /* of struct miqt_string */ QProcess_Environment(const QProcess* self); void QProcess_SetProcessEnvironment(QProcess* self, QProcessEnvironment* environment); QProcessEnvironment* QProcess_ProcessEnvironment(const QProcess* self); int QProcess_Error(const QProcess* self); @@ -99,12 +100,12 @@ bool QProcess_IsSequential(const QProcess* self); bool QProcess_CanReadLine(const QProcess* self); void QProcess_Close(QProcess* self); bool QProcess_AtEnd(const QProcess* self); -int QProcess_Execute(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments); +int QProcess_Execute(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments); int QProcess_ExecuteWithCommand(struct miqt_string command); -bool QProcess_StartDetached2(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory); -bool QProcess_StartDetached3(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments); +bool QProcess_StartDetached2(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory); +bool QProcess_StartDetached3(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments); bool QProcess_StartDetachedWithCommand(struct miqt_string command); -struct miqt_array QProcess_SystemEnvironment(); +struct miqt_array /* of struct miqt_string */ QProcess_SystemEnvironment(); struct miqt_string QProcess_NullDevice(); void QProcess_Terminate(QProcess* self); void QProcess_Kill(QProcess* self); @@ -120,7 +121,7 @@ struct miqt_string QProcess_Tr2(const char* s, const char* c); struct miqt_string QProcess_Tr3(const char* s, const char* c, int n); struct miqt_string QProcess_TrUtf82(const char* s, const char* c); struct miqt_string QProcess_TrUtf83(const char* s, const char* c, int n); -void QProcess_Start3(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, int mode); +void QProcess_Start3(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, int mode); void QProcess_Start22(QProcess* self, struct miqt_string command, int mode); void QProcess_Start1(QProcess* self, int mode); bool QProcess_StartDetached1(QProcess* self, long long* pid); @@ -131,7 +132,7 @@ bool QProcess_WaitForStarted1(QProcess* self, int msecs); bool QProcess_WaitForReadyRead1(QProcess* self, int msecs); bool QProcess_WaitForBytesWritten1(QProcess* self, int msecs); bool QProcess_WaitForFinished1(QProcess* self, int msecs); -bool QProcess_StartDetached4(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory, long long* pid); +bool QProcess_StartDetached4(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory, long long* pid); void QProcess_Delete(QProcess* self); #ifdef __cplusplus diff --git a/qt/gen_qprogressbar.h b/qt/gen_qprogressbar.h index dc1ea1cf..d6094207 100644 --- a/qt/gen_qprogressbar.h +++ b/qt/gen_qprogressbar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPROGRESSBAR_H -#define GEN_QPROGRESSBAR_H +#pragma once +#ifndef MIQT_QT_GEN_QPROGRESSBAR_H +#define MIQT_QT_GEN_QPROGRESSBAR_H #include #include diff --git a/qt/gen_qprogressdialog.h b/qt/gen_qprogressdialog.h index d51e1b7c..4f29a071 100644 --- a/qt/gen_qprogressdialog.h +++ b/qt/gen_qprogressdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPROGRESSDIALOG_H -#define GEN_QPROGRESSDIALOG_H +#pragma once +#ifndef MIQT_QT_GEN_QPROGRESSDIALOG_H +#define MIQT_QT_GEN_QPROGRESSDIALOG_H #include #include diff --git a/qt/gen_qpropertyanimation.h b/qt/gen_qpropertyanimation.h index ad2762bc..e1ca79b7 100644 --- a/qt/gen_qpropertyanimation.h +++ b/qt/gen_qpropertyanimation.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPROPERTYANIMATION_H -#define GEN_QPROPERTYANIMATION_H +#pragma once +#ifndef MIQT_QT_GEN_QPROPERTYANIMATION_H +#define MIQT_QT_GEN_QPROPERTYANIMATION_H #include #include diff --git a/qt/gen_qproxystyle.h b/qt/gen_qproxystyle.h index 6ea5d9ba..d3d09e8e 100644 --- a/qt/gen_qproxystyle.h +++ b/qt/gen_qproxystyle.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPROXYSTYLE_H -#define GEN_QPROXYSTYLE_H +#pragma once +#ifndef MIQT_QT_GEN_QPROXYSTYLE_H +#define MIQT_QT_GEN_QPROXYSTYLE_H #include #include diff --git a/qt/gen_qpushbutton.h b/qt/gen_qpushbutton.h index 065ac8bf..20f27748 100644 --- a/qt/gen_qpushbutton.h +++ b/qt/gen_qpushbutton.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPUSHBUTTON_H -#define GEN_QPUSHBUTTON_H +#pragma once +#ifndef MIQT_QT_GEN_QPUSHBUTTON_H +#define MIQT_QT_GEN_QPUSHBUTTON_H #include #include diff --git a/qt/gen_qquaternion.h b/qt/gen_qquaternion.h index bbe6dd13..8da76fdb 100644 --- a/qt/gen_qquaternion.h +++ b/qt/gen_qquaternion.h @@ -1,5 +1,6 @@ -#ifndef GEN_QQUATERNION_H -#define GEN_QQUATERNION_H +#pragma once +#ifndef MIQT_QT_GEN_QQUATERNION_H +#define MIQT_QT_GEN_QQUATERNION_H #include #include diff --git a/qt/gen_qradiobutton.h b/qt/gen_qradiobutton.h index 8151ed41..6ebf43a8 100644 --- a/qt/gen_qradiobutton.h +++ b/qt/gen_qradiobutton.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRADIOBUTTON_H -#define GEN_QRADIOBUTTON_H +#pragma once +#ifndef MIQT_QT_GEN_QRADIOBUTTON_H +#define MIQT_QT_GEN_QRADIOBUTTON_H #include #include diff --git a/qt/gen_qrandom.h b/qt/gen_qrandom.h index bba02a29..0a18a7bb 100644 --- a/qt/gen_qrandom.h +++ b/qt/gen_qrandom.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRANDOM_H -#define GEN_QRANDOM_H +#pragma once +#ifndef MIQT_QT_GEN_QRANDOM_H +#define MIQT_QT_GEN_QRANDOM_H #include #include diff --git a/qt/gen_qrasterwindow.h b/qt/gen_qrasterwindow.h index f58fc78b..573c08d3 100644 --- a/qt/gen_qrasterwindow.h +++ b/qt/gen_qrasterwindow.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRASTERWINDOW_H -#define GEN_QRASTERWINDOW_H +#pragma once +#ifndef MIQT_QT_GEN_QRASTERWINDOW_H +#define MIQT_QT_GEN_QRASTERWINDOW_H #include #include diff --git a/qt/gen_qrawfont.cpp b/qt/gen_qrawfont.cpp index 54557acb..a129da43 100644 --- a/qt/gen_qrawfont.cpp +++ b/qt/gen_qrawfont.cpp @@ -94,7 +94,7 @@ int QRawFont_Weight(const QRawFont* self) { return self->weight(); } -struct miqt_array QRawFont_GlyphIndexesForString(const QRawFont* self, struct miqt_string text) { +struct miqt_array /* of unsigned int */ QRawFont_GlyphIndexesForString(const QRawFont* self, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); QVector _ret = self->glyphIndexesForString(text_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -108,7 +108,7 @@ struct miqt_array QRawFont_GlyphIndexesForString(const QRawFont* self, struct mi return _out; } -struct miqt_array QRawFont_AdvancesForGlyphIndexes(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes) { +struct miqt_array /* of QPointF* */ QRawFont_AdvancesForGlyphIndexes(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes) { QVector glyphIndexes_QList; glyphIndexes_QList.reserve(glyphIndexes.len); unsigned int* glyphIndexes_arr = static_cast(glyphIndexes.data); @@ -127,7 +127,7 @@ struct miqt_array QRawFont_AdvancesForGlyphIndexes(const QRawFont* self, struct return _out; } -struct miqt_array QRawFont_AdvancesForGlyphIndexes2(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes, int layoutFlags) { +struct miqt_array /* of QPointF* */ QRawFont_AdvancesForGlyphIndexes2(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes, int layoutFlags) { QVector glyphIndexes_QList; glyphIndexes_QList.reserve(glyphIndexes.len); unsigned int* glyphIndexes_arr = static_cast(glyphIndexes.data); @@ -252,7 +252,7 @@ bool QRawFont_SupportsCharacterWithCharacter(const QRawFont* self, QChar* charac return self->supportsCharacter(*character); } -struct miqt_array QRawFont_SupportedWritingSystems(const QRawFont* self) { +struct miqt_array /* of int */ QRawFont_SupportedWritingSystems(const QRawFont* self) { QList _ret = self->supportedWritingSystems(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt/gen_qrawfont.h b/qt/gen_qrawfont.h index d13c72d4..63faec09 100644 --- a/qt/gen_qrawfont.h +++ b/qt/gen_qrawfont.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRAWFONT_H -#define GEN_QRAWFONT_H +#pragma once +#ifndef MIQT_QT_GEN_QRAWFONT_H +#define MIQT_QT_GEN_QRAWFONT_H #include #include @@ -50,9 +51,9 @@ struct miqt_string QRawFont_FamilyName(const QRawFont* self); struct miqt_string QRawFont_StyleName(const QRawFont* self); int QRawFont_Style(const QRawFont* self); int QRawFont_Weight(const QRawFont* self); -struct miqt_array QRawFont_GlyphIndexesForString(const QRawFont* self, struct miqt_string text); -struct miqt_array QRawFont_AdvancesForGlyphIndexes(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes); -struct miqt_array QRawFont_AdvancesForGlyphIndexes2(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes, int layoutFlags); +struct miqt_array /* of unsigned int */ QRawFont_GlyphIndexesForString(const QRawFont* self, struct miqt_string text); +struct miqt_array /* of QPointF* */ QRawFont_AdvancesForGlyphIndexes(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes); +struct miqt_array /* of QPointF* */ QRawFont_AdvancesForGlyphIndexes2(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes, int layoutFlags); bool QRawFont_GlyphIndexesForChars(const QRawFont* self, QChar* chars, int numChars, unsigned int* glyphIndexes, int* numGlyphs); bool QRawFont_AdvancesForGlyphIndexes3(const QRawFont* self, const unsigned int* glyphIndexes, QPointF* advances, int numGlyphs); bool QRawFont_AdvancesForGlyphIndexes4(const QRawFont* self, const unsigned int* glyphIndexes, QPointF* advances, int numGlyphs, int layoutFlags); @@ -76,7 +77,7 @@ void QRawFont_LoadFromFile(QRawFont* self, struct miqt_string fileName, double p void QRawFont_LoadFromData(QRawFont* self, struct miqt_string fontData, double pixelSize, int hintingPreference); bool QRawFont_SupportsCharacter(const QRawFont* self, unsigned int ucs4); bool QRawFont_SupportsCharacterWithCharacter(const QRawFont* self, QChar* character); -struct miqt_array QRawFont_SupportedWritingSystems(const QRawFont* self); +struct miqt_array /* of int */ QRawFont_SupportedWritingSystems(const QRawFont* self); struct miqt_string QRawFont_FontTable(const QRawFont* self, const char* tagName); QRawFont* QRawFont_FromFont(QFont* font); QImage* QRawFont_AlphaMapForGlyph2(const QRawFont* self, unsigned int glyphIndex, int antialiasingType); diff --git a/qt/gen_qreadwritelock.h b/qt/gen_qreadwritelock.h index 913b96b0..0398ca40 100644 --- a/qt/gen_qreadwritelock.h +++ b/qt/gen_qreadwritelock.h @@ -1,5 +1,6 @@ -#ifndef GEN_QREADWRITELOCK_H -#define GEN_QREADWRITELOCK_H +#pragma once +#ifndef MIQT_QT_GEN_QREADWRITELOCK_H +#define MIQT_QT_GEN_QREADWRITELOCK_H #include #include diff --git a/qt/gen_qrect.h b/qt/gen_qrect.h index 1b9d8d9c..856185ef 100644 --- a/qt/gen_qrect.h +++ b/qt/gen_qrect.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRECT_H -#define GEN_QRECT_H +#pragma once +#ifndef MIQT_QT_GEN_QRECT_H +#define MIQT_QT_GEN_QRECT_H #include #include diff --git a/qt/gen_qrefcount.h b/qt/gen_qrefcount.h index c245c7da..4d7f2601 100644 --- a/qt/gen_qrefcount.h +++ b/qt/gen_qrefcount.h @@ -1,5 +1,6 @@ -#ifndef GEN_QREFCOUNT_H -#define GEN_QREFCOUNT_H +#pragma once +#ifndef MIQT_QT_GEN_QREFCOUNT_H +#define MIQT_QT_GEN_QREFCOUNT_H #include #include diff --git a/qt/gen_qregexp.cpp b/qt/gen_qregexp.cpp index 85243281..3c049b47 100644 --- a/qt/gen_qregexp.cpp +++ b/qt/gen_qregexp.cpp @@ -119,7 +119,7 @@ int QRegExp_CaptureCount(const QRegExp* self) { return self->captureCount(); } -struct miqt_array QRegExp_CapturedTexts(const QRegExp* self) { +struct miqt_array /* of struct miqt_string */ QRegExp_CapturedTexts(const QRegExp* self) { QStringList _ret = self->capturedTexts(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -139,7 +139,7 @@ struct miqt_array QRegExp_CapturedTexts(const QRegExp* self) { return _out; } -struct miqt_array QRegExp_CapturedTexts2(QRegExp* self) { +struct miqt_array /* of struct miqt_string */ QRegExp_CapturedTexts2(QRegExp* self) { QStringList _ret = self->capturedTexts(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qregexp.h b/qt/gen_qregexp.h index c9aef7a5..0843e13a 100644 --- a/qt/gen_qregexp.h +++ b/qt/gen_qregexp.h @@ -1,5 +1,6 @@ -#ifndef GEN_QREGEXP_H -#define GEN_QREGEXP_H +#pragma once +#ifndef MIQT_QT_GEN_QREGEXP_H +#define MIQT_QT_GEN_QREGEXP_H #include #include @@ -43,8 +44,8 @@ int QRegExp_IndexIn(const QRegExp* self, struct miqt_string str); int QRegExp_LastIndexIn(const QRegExp* self, struct miqt_string str); int QRegExp_MatchedLength(const QRegExp* self); int QRegExp_CaptureCount(const QRegExp* self); -struct miqt_array QRegExp_CapturedTexts(const QRegExp* self); -struct miqt_array QRegExp_CapturedTexts2(QRegExp* self); +struct miqt_array /* of struct miqt_string */ QRegExp_CapturedTexts(const QRegExp* self); +struct miqt_array /* of struct miqt_string */ QRegExp_CapturedTexts2(QRegExp* self); struct miqt_string QRegExp_Cap(const QRegExp* self); struct miqt_string QRegExp_Cap2(QRegExp* self); int QRegExp_Pos(const QRegExp* self); diff --git a/qt/gen_qregion.cpp b/qt/gen_qregion.cpp index 0b3e6b9c..aab8a815 100644 --- a/qt/gen_qregion.cpp +++ b/qt/gen_qregion.cpp @@ -131,7 +131,7 @@ QRect* QRegion_BoundingRect(const QRegion* self) { return new QRect(self->boundingRect()); } -struct miqt_array QRegion_Rects(const QRegion* self) { +struct miqt_array /* of QRect* */ QRegion_Rects(const QRegion* self) { QVector _ret = self->rects(); // Convert QList<> from C++ memory to manually-managed C memory QRect** _arr = static_cast(malloc(sizeof(QRect*) * _ret.length())); diff --git a/qt/gen_qregion.h b/qt/gen_qregion.h index cabf37c8..86eccb81 100644 --- a/qt/gen_qregion.h +++ b/qt/gen_qregion.h @@ -1,5 +1,6 @@ -#ifndef GEN_QREGION_H -#define GEN_QREGION_H +#pragma once +#ifndef MIQT_QT_GEN_QREGION_H +#define MIQT_QT_GEN_QREGION_H #include #include @@ -55,7 +56,7 @@ QRegion* QRegion_Xored(const QRegion* self, QRegion* r); bool QRegion_Intersects(const QRegion* self, QRegion* r); bool QRegion_IntersectsWithQRect(const QRegion* self, QRect* r); QRect* QRegion_BoundingRect(const QRegion* self); -struct miqt_array QRegion_Rects(const QRegion* self); +struct miqt_array /* of QRect* */ QRegion_Rects(const QRegion* self); void QRegion_SetRects(QRegion* self, QRect* rect, int num); int QRegion_RectCount(const QRegion* self); QRegion* QRegion_OperatorBitwiseOr(const QRegion* self, QRegion* r); diff --git a/qt/gen_qregularexpression.cpp b/qt/gen_qregularexpression.cpp index 85f6d76e..a5ae9acb 100644 --- a/qt/gen_qregularexpression.cpp +++ b/qt/gen_qregularexpression.cpp @@ -83,7 +83,7 @@ int QRegularExpression_CaptureCount(const QRegularExpression* self) { return self->captureCount(); } -struct miqt_array QRegularExpression_NamedCaptureGroups(const QRegularExpression* self) { +struct miqt_array /* of struct miqt_string */ QRegularExpression_NamedCaptureGroups(const QRegularExpression* self) { QStringList _ret = self->namedCaptureGroups(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -264,7 +264,7 @@ struct miqt_string QRegularExpressionMatch_CapturedWithName(const QRegularExpres return _ms; } -struct miqt_array QRegularExpressionMatch_CapturedTexts(const QRegularExpressionMatch* self) { +struct miqt_array /* of struct miqt_string */ QRegularExpressionMatch_CapturedTexts(const QRegularExpressionMatch* self) { QStringList _ret = self->capturedTexts(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qregularexpression.h b/qt/gen_qregularexpression.h index f1ebcedf..5ce9116f 100644 --- a/qt/gen_qregularexpression.h +++ b/qt/gen_qregularexpression.h @@ -1,5 +1,6 @@ -#ifndef GEN_QREGULAREXPRESSION_H -#define GEN_QREGULAREXPRESSION_H +#pragma once +#ifndef MIQT_QT_GEN_QREGULAREXPRESSION_H +#define MIQT_QT_GEN_QREGULAREXPRESSION_H #include #include @@ -37,7 +38,7 @@ bool QRegularExpression_IsValid(const QRegularExpression* self); int QRegularExpression_PatternErrorOffset(const QRegularExpression* self); struct miqt_string QRegularExpression_ErrorString(const QRegularExpression* self); int QRegularExpression_CaptureCount(const QRegularExpression* self); -struct miqt_array QRegularExpression_NamedCaptureGroups(const QRegularExpression* self); +struct miqt_array /* of struct miqt_string */ QRegularExpression_NamedCaptureGroups(const QRegularExpression* self); QRegularExpressionMatch* QRegularExpression_Match(const QRegularExpression* self, struct miqt_string subject); QRegularExpressionMatchIterator* QRegularExpression_GlobalMatch(const QRegularExpression* self, struct miqt_string subject); void QRegularExpression_Optimize(const QRegularExpression* self); @@ -67,7 +68,7 @@ bool QRegularExpressionMatch_IsValid(const QRegularExpressionMatch* self); int QRegularExpressionMatch_LastCapturedIndex(const QRegularExpressionMatch* self); struct miqt_string QRegularExpressionMatch_Captured(const QRegularExpressionMatch* self); struct miqt_string QRegularExpressionMatch_CapturedWithName(const QRegularExpressionMatch* self, struct miqt_string name); -struct miqt_array QRegularExpressionMatch_CapturedTexts(const QRegularExpressionMatch* self); +struct miqt_array /* of struct miqt_string */ QRegularExpressionMatch_CapturedTexts(const QRegularExpressionMatch* self); int QRegularExpressionMatch_CapturedStart(const QRegularExpressionMatch* self); int QRegularExpressionMatch_CapturedLength(const QRegularExpressionMatch* self); int QRegularExpressionMatch_CapturedEnd(const QRegularExpressionMatch* self); diff --git a/qt/gen_qresource.cpp b/qt/gen_qresource.cpp index 6f121659..aa259eb4 100644 --- a/qt/gen_qresource.cpp +++ b/qt/gen_qresource.cpp @@ -101,7 +101,7 @@ void QResource_AddSearchPath(struct miqt_string path) { QResource::addSearchPath(path_QString); } -struct miqt_array QResource_SearchPaths() { +struct miqt_array /* of struct miqt_string */ QResource_SearchPaths() { QStringList _ret = QResource::searchPaths(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qresource.go b/qt/gen_qresource.go index 477b17fe..1f02f28c 100644 --- a/qt/gen_qresource.go +++ b/qt/gen_qresource.go @@ -122,7 +122,7 @@ func (this *QResource) Size() int64 { } func (this *QResource) Data() *byte { - return (*byte)(C.QResource_Data(this.h)) + return (*byte)(unsafe.Pointer(C.QResource_Data(this.h))) } func (this *QResource) UncompressedSize() int64 { diff --git a/qt/gen_qresource.h b/qt/gen_qresource.h index a8994545..b6d60048 100644 --- a/qt/gen_qresource.h +++ b/qt/gen_qresource.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRESOURCE_H -#define GEN_QRESOURCE_H +#pragma once +#ifndef MIQT_QT_GEN_QRESOURCE_H +#define MIQT_QT_GEN_QRESOURCE_H #include #include @@ -41,7 +42,7 @@ long long QResource_UncompressedSize(const QResource* self); struct miqt_string QResource_UncompressedData(const QResource* self); QDateTime* QResource_LastModified(const QResource* self); void QResource_AddSearchPath(struct miqt_string path); -struct miqt_array QResource_SearchPaths(); +struct miqt_array /* of struct miqt_string */ QResource_SearchPaths(); bool QResource_IsCompressed(const QResource* self); bool QResource_RegisterResource(struct miqt_string rccFilename); bool QResource_UnregisterResource(struct miqt_string rccFilename); diff --git a/qt/gen_qresultstore.h b/qt/gen_qresultstore.h index 65e2b6e9..469e8177 100644 --- a/qt/gen_qresultstore.h +++ b/qt/gen_qresultstore.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRESULTSTORE_H -#define GEN_QRESULTSTORE_H +#pragma once +#ifndef MIQT_QT_GEN_QRESULTSTORE_H +#define MIQT_QT_GEN_QRESULTSTORE_H #include #include diff --git a/qt/gen_qrgba64.h b/qt/gen_qrgba64.h index 17800e13..fe888173 100644 --- a/qt/gen_qrgba64.h +++ b/qt/gen_qrgba64.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRGBA64_H -#define GEN_QRGBA64_H +#pragma once +#ifndef MIQT_QT_GEN_QRGBA64_H +#define MIQT_QT_GEN_QRGBA64_H #include #include diff --git a/qt/gen_qrubberband.h b/qt/gen_qrubberband.h index 96364691..1a2192ed 100644 --- a/qt/gen_qrubberband.h +++ b/qt/gen_qrubberband.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRUBBERBAND_H -#define GEN_QRUBBERBAND_H +#pragma once +#ifndef MIQT_QT_GEN_QRUBBERBAND_H +#define MIQT_QT_GEN_QRUBBERBAND_H #include #include diff --git a/qt/gen_qrunnable.h b/qt/gen_qrunnable.h index 0b6e4b67..4e9a1924 100644 --- a/qt/gen_qrunnable.h +++ b/qt/gen_qrunnable.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRUNNABLE_H -#define GEN_QRUNNABLE_H +#pragma once +#ifndef MIQT_QT_GEN_QRUNNABLE_H +#define MIQT_QT_GEN_QRUNNABLE_H #include #include diff --git a/qt/gen_qsavefile.h b/qt/gen_qsavefile.h index 0d53dc9b..0fa71b5c 100644 --- a/qt/gen_qsavefile.h +++ b/qt/gen_qsavefile.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSAVEFILE_H -#define GEN_QSAVEFILE_H +#pragma once +#ifndef MIQT_QT_GEN_QSAVEFILE_H +#define MIQT_QT_GEN_QSAVEFILE_H #include #include diff --git a/qt/gen_qscopedpointer.h b/qt/gen_qscopedpointer.h index 1ab85034..6b21b77a 100644 --- a/qt/gen_qscopedpointer.h +++ b/qt/gen_qscopedpointer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCOPEDPOINTER_H -#define GEN_QSCOPEDPOINTER_H +#pragma once +#ifndef MIQT_QT_GEN_QSCOPEDPOINTER_H +#define MIQT_QT_GEN_QSCOPEDPOINTER_H #include #include diff --git a/qt/gen_qscreen.cpp b/qt/gen_qscreen.cpp index f0a895dd..60e92be0 100644 --- a/qt/gen_qscreen.cpp +++ b/qt/gen_qscreen.cpp @@ -147,7 +147,7 @@ QRect* QScreen_AvailableGeometry(const QScreen* self) { return new QRect(self->availableGeometry()); } -struct miqt_array QScreen_VirtualSiblings(const QScreen* self) { +struct miqt_array /* of QScreen* */ QScreen_VirtualSiblings(const QScreen* self) { QList _ret = self->virtualSiblings(); // Convert QList<> from C++ memory to manually-managed C memory QScreen** _arr = static_cast(malloc(sizeof(QScreen*) * _ret.length())); diff --git a/qt/gen_qscreen.h b/qt/gen_qscreen.h index 8f165630..528335f3 100644 --- a/qt/gen_qscreen.h +++ b/qt/gen_qscreen.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCREEN_H -#define GEN_QSCREEN_H +#pragma once +#ifndef MIQT_QT_GEN_QSCREEN_H +#define MIQT_QT_GEN_QSCREEN_H #include #include @@ -54,7 +55,7 @@ double QScreen_LogicalDotsPerInch(const QScreen* self); double QScreen_DevicePixelRatio(const QScreen* self); QSize* QScreen_AvailableSize(const QScreen* self); QRect* QScreen_AvailableGeometry(const QScreen* self); -struct miqt_array QScreen_VirtualSiblings(const QScreen* self); +struct miqt_array /* of QScreen* */ QScreen_VirtualSiblings(const QScreen* self); QScreen* QScreen_VirtualSiblingAt(QScreen* self, QPoint* point); QSize* QScreen_VirtualSize(const QScreen* self); QRect* QScreen_VirtualGeometry(const QScreen* self); diff --git a/qt/gen_qscrollarea.h b/qt/gen_qscrollarea.h index bcd4f9e5..eda80c0c 100644 --- a/qt/gen_qscrollarea.h +++ b/qt/gen_qscrollarea.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCROLLAREA_H -#define GEN_QSCROLLAREA_H +#pragma once +#ifndef MIQT_QT_GEN_QSCROLLAREA_H +#define MIQT_QT_GEN_QSCROLLAREA_H #include #include diff --git a/qt/gen_qscrollbar.h b/qt/gen_qscrollbar.h index aa36e002..c7b9eea2 100644 --- a/qt/gen_qscrollbar.h +++ b/qt/gen_qscrollbar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCROLLBAR_H -#define GEN_QSCROLLBAR_H +#pragma once +#ifndef MIQT_QT_GEN_QSCROLLBAR_H +#define MIQT_QT_GEN_QSCROLLBAR_H #include #include diff --git a/qt/gen_qscroller.cpp b/qt/gen_qscroller.cpp index 018fcb67..42c48098 100644 --- a/qt/gen_qscroller.cpp +++ b/qt/gen_qscroller.cpp @@ -68,7 +68,7 @@ void QScroller_UngrabGesture(QObject* target) { QScroller::ungrabGesture(target); } -struct miqt_array QScroller_ActiveScrollers() { +struct miqt_array /* of QScroller* */ QScroller_ActiveScrollers() { QList _ret = QScroller::activeScrollers(); // Convert QList<> from C++ memory to manually-managed C memory QScroller** _arr = static_cast(malloc(sizeof(QScroller*) * _ret.length())); @@ -114,7 +114,7 @@ QScrollerProperties* QScroller_ScrollerProperties(const QScroller* self) { return new QScrollerProperties(self->scrollerProperties()); } -void QScroller_SetSnapPositionsX(QScroller* self, struct miqt_array /* of double */ positions) { +void QScroller_SetSnapPositionsX(QScroller* self, struct miqt_array /* of double */ positions) { QList positions_QList; positions_QList.reserve(positions.len); double* positions_arr = static_cast(positions.data); @@ -128,7 +128,7 @@ void QScroller_SetSnapPositionsX2(QScroller* self, double first, double interval self->setSnapPositionsX(static_cast(first), static_cast(interval)); } -void QScroller_SetSnapPositionsY(QScroller* self, struct miqt_array /* of double */ positions) { +void QScroller_SetSnapPositionsY(QScroller* self, struct miqt_array /* of double */ positions) { QList positions_QList; positions_QList.reserve(positions.len); double* positions_arr = static_cast(positions.data); diff --git a/qt/gen_qscroller.h b/qt/gen_qscroller.h index cfb737c4..390d2683 100644 --- a/qt/gen_qscroller.h +++ b/qt/gen_qscroller.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCROLLER_H -#define GEN_QSCROLLER_H +#pragma once +#ifndef MIQT_QT_GEN_QSCROLLER_H +#define MIQT_QT_GEN_QSCROLLER_H #include #include @@ -39,7 +40,7 @@ QScroller* QScroller_ScrollerWithTarget(QObject* target); int QScroller_GrabGesture(QObject* target); int QScroller_GrabbedGesture(QObject* target); void QScroller_UngrabGesture(QObject* target); -struct miqt_array QScroller_ActiveScrollers(); +struct miqt_array /* of QScroller* */ QScroller_ActiveScrollers(); QObject* QScroller_Target(const QScroller* self); int QScroller_State(const QScroller* self); bool QScroller_HandleInput(QScroller* self, int input, QPointF* position); @@ -48,9 +49,9 @@ QPointF* QScroller_Velocity(const QScroller* self); QPointF* QScroller_FinalPosition(const QScroller* self); QPointF* QScroller_PixelPerMeter(const QScroller* self); QScrollerProperties* QScroller_ScrollerProperties(const QScroller* self); -void QScroller_SetSnapPositionsX(QScroller* self, struct miqt_array /* of double */ positions); +void QScroller_SetSnapPositionsX(QScroller* self, struct miqt_array /* of double */ positions); void QScroller_SetSnapPositionsX2(QScroller* self, double first, double interval); -void QScroller_SetSnapPositionsY(QScroller* self, struct miqt_array /* of double */ positions); +void QScroller_SetSnapPositionsY(QScroller* self, struct miqt_array /* of double */ positions); void QScroller_SetSnapPositionsY2(QScroller* self, double first, double interval); void QScroller_SetScrollerProperties(QScroller* self, QScrollerProperties* prop); void QScroller_ScrollTo(QScroller* self, QPointF* pos); diff --git a/qt/gen_qscrollerproperties.h b/qt/gen_qscrollerproperties.h index 898cabea..36bd6275 100644 --- a/qt/gen_qscrollerproperties.h +++ b/qt/gen_qscrollerproperties.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCROLLERPROPERTIES_H -#define GEN_QSCROLLERPROPERTIES_H +#pragma once +#ifndef MIQT_QT_GEN_QSCROLLERPROPERTIES_H +#define MIQT_QT_GEN_QSCROLLERPROPERTIES_H #include #include diff --git a/qt/gen_qsemaphore.h b/qt/gen_qsemaphore.h index c6577dc6..d92862ad 100644 --- a/qt/gen_qsemaphore.h +++ b/qt/gen_qsemaphore.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSEMAPHORE_H -#define GEN_QSEMAPHORE_H +#pragma once +#ifndef MIQT_QT_GEN_QSEMAPHORE_H +#define MIQT_QT_GEN_QSEMAPHORE_H #include #include diff --git a/qt/gen_qsequentialanimationgroup.h b/qt/gen_qsequentialanimationgroup.h index 512e318e..7296a9d2 100644 --- a/qt/gen_qsequentialanimationgroup.h +++ b/qt/gen_qsequentialanimationgroup.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSEQUENTIALANIMATIONGROUP_H -#define GEN_QSEQUENTIALANIMATIONGROUP_H +#pragma once +#ifndef MIQT_QT_GEN_QSEQUENTIALANIMATIONGROUP_H +#define MIQT_QT_GEN_QSEQUENTIALANIMATIONGROUP_H #include #include diff --git a/qt/gen_qsessionmanager.cpp b/qt/gen_qsessionmanager.cpp index 67600341..95e79c97 100644 --- a/qt/gen_qsessionmanager.cpp +++ b/qt/gen_qsessionmanager.cpp @@ -85,7 +85,7 @@ int QSessionManager_RestartHint(const QSessionManager* self) { return static_cast(_ret); } -void QSessionManager_SetRestartCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ restartCommand) { +void QSessionManager_SetRestartCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ restartCommand) { QStringList restartCommand_QList; restartCommand_QList.reserve(restartCommand.len); struct miqt_string* restartCommand_arr = static_cast(restartCommand.data); @@ -96,7 +96,7 @@ void QSessionManager_SetRestartCommand(QSessionManager* self, struct miqt_array self->setRestartCommand(restartCommand_QList); } -struct miqt_array QSessionManager_RestartCommand(const QSessionManager* self) { +struct miqt_array /* of struct miqt_string */ QSessionManager_RestartCommand(const QSessionManager* self) { QStringList _ret = self->restartCommand(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -116,7 +116,7 @@ struct miqt_array QSessionManager_RestartCommand(const QSessionManager* self) { return _out; } -void QSessionManager_SetDiscardCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ discardCommand) { +void QSessionManager_SetDiscardCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ discardCommand) { QStringList discardCommand_QList; discardCommand_QList.reserve(discardCommand.len); struct miqt_string* discardCommand_arr = static_cast(discardCommand.data); @@ -127,7 +127,7 @@ void QSessionManager_SetDiscardCommand(QSessionManager* self, struct miqt_array self->setDiscardCommand(discardCommand_QList); } -struct miqt_array QSessionManager_DiscardCommand(const QSessionManager* self) { +struct miqt_array /* of struct miqt_string */ QSessionManager_DiscardCommand(const QSessionManager* self) { QStringList _ret = self->discardCommand(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -153,7 +153,7 @@ void QSessionManager_SetManagerProperty(QSessionManager* self, struct miqt_strin self->setManagerProperty(name_QString, value_QString); } -void QSessionManager_SetManagerProperty2(QSessionManager* self, struct miqt_string name, struct miqt_array /* of struct miqt_string */ value) { +void QSessionManager_SetManagerProperty2(QSessionManager* self, struct miqt_string name, struct miqt_array /* of struct miqt_string */ value) { QString name_QString = QString::fromUtf8(name.data, name.len); QStringList value_QList; value_QList.reserve(value.len); diff --git a/qt/gen_qsessionmanager.h b/qt/gen_qsessionmanager.h index b59a0a81..468391dc 100644 --- a/qt/gen_qsessionmanager.h +++ b/qt/gen_qsessionmanager.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSESSIONMANAGER_H -#define GEN_QSESSIONMANAGER_H +#pragma once +#ifndef MIQT_QT_GEN_QSESSIONMANAGER_H +#define MIQT_QT_GEN_QSESSIONMANAGER_H #include #include @@ -33,12 +34,12 @@ void QSessionManager_Release(QSessionManager* self); void QSessionManager_Cancel(QSessionManager* self); void QSessionManager_SetRestartHint(QSessionManager* self, int restartHint); int QSessionManager_RestartHint(const QSessionManager* self); -void QSessionManager_SetRestartCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ restartCommand); -struct miqt_array QSessionManager_RestartCommand(const QSessionManager* self); -void QSessionManager_SetDiscardCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ discardCommand); -struct miqt_array QSessionManager_DiscardCommand(const QSessionManager* self); +void QSessionManager_SetRestartCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ restartCommand); +struct miqt_array /* of struct miqt_string */ QSessionManager_RestartCommand(const QSessionManager* self); +void QSessionManager_SetDiscardCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ discardCommand); +struct miqt_array /* of struct miqt_string */ QSessionManager_DiscardCommand(const QSessionManager* self); void QSessionManager_SetManagerProperty(QSessionManager* self, struct miqt_string name, struct miqt_string value); -void QSessionManager_SetManagerProperty2(QSessionManager* self, struct miqt_string name, struct miqt_array /* of struct miqt_string */ value); +void QSessionManager_SetManagerProperty2(QSessionManager* self, struct miqt_string name, struct miqt_array /* of struct miqt_string */ value); bool QSessionManager_IsPhase2(const QSessionManager* self); void QSessionManager_RequestPhase2(QSessionManager* self); struct miqt_string QSessionManager_Tr2(const char* s, const char* c); diff --git a/qt/gen_qsettings.cpp b/qt/gen_qsettings.cpp index f99f40b1..e4044235 100644 --- a/qt/gen_qsettings.cpp +++ b/qt/gen_qsettings.cpp @@ -177,7 +177,7 @@ void QSettings_SetArrayIndex(QSettings* self, int i) { self->setArrayIndex(static_cast(i)); } -struct miqt_array QSettings_AllKeys(const QSettings* self) { +struct miqt_array /* of struct miqt_string */ QSettings_AllKeys(const QSettings* self) { QStringList _ret = self->allKeys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -197,7 +197,7 @@ struct miqt_array QSettings_AllKeys(const QSettings* self) { return _out; } -struct miqt_array QSettings_ChildKeys(const QSettings* self) { +struct miqt_array /* of struct miqt_string */ QSettings_ChildKeys(const QSettings* self) { QStringList _ret = self->childKeys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -217,7 +217,7 @@ struct miqt_array QSettings_ChildKeys(const QSettings* self) { return _out; } -struct miqt_array QSettings_ChildGroups(const QSettings* self) { +struct miqt_array /* of struct miqt_string */ QSettings_ChildGroups(const QSettings* self) { QStringList _ret = self->childGroups(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qsettings.h b/qt/gen_qsettings.h index 1d5c35ab..b11b74e8 100644 --- a/qt/gen_qsettings.h +++ b/qt/gen_qsettings.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSETTINGS_H -#define GEN_QSETTINGS_H +#pragma once +#ifndef MIQT_QT_GEN_QSETTINGS_H +#define MIQT_QT_GEN_QSETTINGS_H #include #include @@ -58,9 +59,9 @@ int QSettings_BeginReadArray(QSettings* self, struct miqt_string prefix); void QSettings_BeginWriteArray(QSettings* self, struct miqt_string prefix); void QSettings_EndArray(QSettings* self); void QSettings_SetArrayIndex(QSettings* self, int i); -struct miqt_array QSettings_AllKeys(const QSettings* self); -struct miqt_array QSettings_ChildKeys(const QSettings* self); -struct miqt_array QSettings_ChildGroups(const QSettings* self); +struct miqt_array /* of struct miqt_string */ QSettings_AllKeys(const QSettings* self); +struct miqt_array /* of struct miqt_string */ QSettings_ChildKeys(const QSettings* self); +struct miqt_array /* of struct miqt_string */ QSettings_ChildGroups(const QSettings* self); bool QSettings_IsWritable(const QSettings* self); void QSettings_SetValue(QSettings* self, struct miqt_string key, QVariant* value); QVariant* QSettings_Value(const QSettings* self, struct miqt_string key); diff --git a/qt/gen_qshareddata.h b/qt/gen_qshareddata.h index 355501c7..d6cd260d 100644 --- a/qt/gen_qshareddata.h +++ b/qt/gen_qshareddata.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSHAREDDATA_H -#define GEN_QSHAREDDATA_H +#pragma once +#ifndef MIQT_QT_GEN_QSHAREDDATA_H +#define MIQT_QT_GEN_QSHAREDDATA_H #include #include diff --git a/qt/gen_qsharedmemory.h b/qt/gen_qsharedmemory.h index fef42dd1..78cbd8cb 100644 --- a/qt/gen_qsharedmemory.h +++ b/qt/gen_qsharedmemory.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSHAREDMEMORY_H -#define GEN_QSHAREDMEMORY_H +#pragma once +#ifndef MIQT_QT_GEN_QSHAREDMEMORY_H +#define MIQT_QT_GEN_QSHAREDMEMORY_H #include #include diff --git a/qt/gen_qshortcut.h b/qt/gen_qshortcut.h index 64858cbc..16b321da 100644 --- a/qt/gen_qshortcut.h +++ b/qt/gen_qshortcut.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSHORTCUT_H -#define GEN_QSHORTCUT_H +#pragma once +#ifndef MIQT_QT_GEN_QSHORTCUT_H +#define MIQT_QT_GEN_QSHORTCUT_H #include #include diff --git a/qt/gen_qsignalmapper.h b/qt/gen_qsignalmapper.h index 1a564112..16a3e831 100644 --- a/qt/gen_qsignalmapper.h +++ b/qt/gen_qsignalmapper.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSIGNALMAPPER_H -#define GEN_QSIGNALMAPPER_H +#pragma once +#ifndef MIQT_QT_GEN_QSIGNALMAPPER_H +#define MIQT_QT_GEN_QSIGNALMAPPER_H #include #include diff --git a/qt/gen_qsignaltransition.h b/qt/gen_qsignaltransition.h index de99edb2..7a7c23ae 100644 --- a/qt/gen_qsignaltransition.h +++ b/qt/gen_qsignaltransition.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSIGNALTRANSITION_H -#define GEN_QSIGNALTRANSITION_H +#pragma once +#ifndef MIQT_QT_GEN_QSIGNALTRANSITION_H +#define MIQT_QT_GEN_QSIGNALTRANSITION_H #include #include diff --git a/qt/gen_qsize.h b/qt/gen_qsize.h index 9d9213d4..eacdd411 100644 --- a/qt/gen_qsize.h +++ b/qt/gen_qsize.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSIZE_H -#define GEN_QSIZE_H +#pragma once +#ifndef MIQT_QT_GEN_QSIZE_H +#define MIQT_QT_GEN_QSIZE_H #include #include diff --git a/qt/gen_qsizegrip.h b/qt/gen_qsizegrip.h index 880977e0..4c1d7648 100644 --- a/qt/gen_qsizegrip.h +++ b/qt/gen_qsizegrip.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSIZEGRIP_H -#define GEN_QSIZEGRIP_H +#pragma once +#ifndef MIQT_QT_GEN_QSIZEGRIP_H +#define MIQT_QT_GEN_QSIZEGRIP_H #include #include diff --git a/qt/gen_qsizepolicy.h b/qt/gen_qsizepolicy.h index 6ead5792..1fa77f89 100644 --- a/qt/gen_qsizepolicy.h +++ b/qt/gen_qsizepolicy.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSIZEPOLICY_H -#define GEN_QSIZEPOLICY_H +#pragma once +#ifndef MIQT_QT_GEN_QSIZEPOLICY_H +#define MIQT_QT_GEN_QSIZEPOLICY_H #include #include diff --git a/qt/gen_qslider.h b/qt/gen_qslider.h index 3f83fcc0..5721ba6f 100644 --- a/qt/gen_qslider.h +++ b/qt/gen_qslider.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSLIDER_H -#define GEN_QSLIDER_H +#pragma once +#ifndef MIQT_QT_GEN_QSLIDER_H +#define MIQT_QT_GEN_QSLIDER_H #include #include diff --git a/qt/gen_qsocketnotifier.h b/qt/gen_qsocketnotifier.h index b3a02720..8201847c 100644 --- a/qt/gen_qsocketnotifier.h +++ b/qt/gen_qsocketnotifier.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSOCKETNOTIFIER_H -#define GEN_QSOCKETNOTIFIER_H +#pragma once +#ifndef MIQT_QT_GEN_QSOCKETNOTIFIER_H +#define MIQT_QT_GEN_QSOCKETNOTIFIER_H #include #include diff --git a/qt/gen_qsortfilterproxymodel.cpp b/qt/gen_qsortfilterproxymodel.cpp index eb03ccf2..334532d5 100644 --- a/qt/gen_qsortfilterproxymodel.cpp +++ b/qt/gen_qsortfilterproxymodel.cpp @@ -225,7 +225,7 @@ bool QSortFilterProxyModel_SetHeaderData(QSortFilterProxyModel* self, int sectio return self->setHeaderData(static_cast(section), static_cast(orientation), *value); } -QMimeData* QSortFilterProxyModel_MimeData(const QSortFilterProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes) { +QMimeData* QSortFilterProxyModel_MimeData(const QSortFilterProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); @@ -272,7 +272,7 @@ QModelIndex* QSortFilterProxyModel_Buddy(const QSortFilterProxyModel* self, QMod return new QModelIndex(self->buddy(*index)); } -struct miqt_array QSortFilterProxyModel_Match(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value) { +struct miqt_array /* of QModelIndex* */ QSortFilterProxyModel_Match(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value) { QModelIndexList _ret = self->match(*start, static_cast(role), *value); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -293,7 +293,7 @@ void QSortFilterProxyModel_Sort(QSortFilterProxyModel* self, int column) { self->sort(static_cast(column)); } -struct miqt_array QSortFilterProxyModel_MimeTypes(const QSortFilterProxyModel* self) { +struct miqt_array /* of struct miqt_string */ QSortFilterProxyModel_MimeTypes(const QSortFilterProxyModel* self) { QStringList _ret = self->mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -489,7 +489,7 @@ bool QSortFilterProxyModel_RemoveColumns3(QSortFilterProxyModel* self, int colum return self->removeColumns(static_cast(column), static_cast(count), *parent); } -struct miqt_array QSortFilterProxyModel_Match4(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits) { +struct miqt_array /* of QModelIndex* */ QSortFilterProxyModel_Match4(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits) { QModelIndexList _ret = self->match(*start, static_cast(role), *value, static_cast(hits)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -502,7 +502,7 @@ struct miqt_array QSortFilterProxyModel_Match4(const QSortFilterProxyModel* self return _out; } -struct miqt_array QSortFilterProxyModel_Match5(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) { +struct miqt_array /* of QModelIndex* */ QSortFilterProxyModel_Match5(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) { QModelIndexList _ret = self->match(*start, static_cast(role), *value, static_cast(hits), static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); diff --git a/qt/gen_qsortfilterproxymodel.h b/qt/gen_qsortfilterproxymodel.h index 42a2988d..702c2772 100644 --- a/qt/gen_qsortfilterproxymodel.h +++ b/qt/gen_qsortfilterproxymodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSORTFILTERPROXYMODEL_H -#define GEN_QSORTFILTERPROXYMODEL_H +#pragma once +#ifndef MIQT_QT_GEN_QSORTFILTERPROXYMODEL_H +#define MIQT_QT_GEN_QSORTFILTERPROXYMODEL_H #include #include @@ -84,7 +85,7 @@ QVariant* QSortFilterProxyModel_Data(const QSortFilterProxyModel* self, QModelIn bool QSortFilterProxyModel_SetData(QSortFilterProxyModel* self, QModelIndex* index, QVariant* value); QVariant* QSortFilterProxyModel_HeaderData(const QSortFilterProxyModel* self, int section, int orientation); bool QSortFilterProxyModel_SetHeaderData(QSortFilterProxyModel* self, int section, int orientation, QVariant* value); -QMimeData* QSortFilterProxyModel_MimeData(const QSortFilterProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes); +QMimeData* QSortFilterProxyModel_MimeData(const QSortFilterProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes); bool QSortFilterProxyModel_DropMimeData(QSortFilterProxyModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); bool QSortFilterProxyModel_InsertRows(QSortFilterProxyModel* self, int row, int count); bool QSortFilterProxyModel_InsertColumns(QSortFilterProxyModel* self, int column, int count); @@ -94,10 +95,10 @@ void QSortFilterProxyModel_FetchMore(QSortFilterProxyModel* self, QModelIndex* p bool QSortFilterProxyModel_CanFetchMore(const QSortFilterProxyModel* self, QModelIndex* parent); int QSortFilterProxyModel_Flags(const QSortFilterProxyModel* self, QModelIndex* index); QModelIndex* QSortFilterProxyModel_Buddy(const QSortFilterProxyModel* self, QModelIndex* index); -struct miqt_array QSortFilterProxyModel_Match(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value); +struct miqt_array /* of QModelIndex* */ QSortFilterProxyModel_Match(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value); QSize* QSortFilterProxyModel_Span(const QSortFilterProxyModel* self, QModelIndex* index); void QSortFilterProxyModel_Sort(QSortFilterProxyModel* self, int column); -struct miqt_array QSortFilterProxyModel_MimeTypes(const QSortFilterProxyModel* self); +struct miqt_array /* of struct miqt_string */ QSortFilterProxyModel_MimeTypes(const QSortFilterProxyModel* self); int QSortFilterProxyModel_SupportedDropActions(const QSortFilterProxyModel* self); void QSortFilterProxyModel_DynamicSortFilterChanged(QSortFilterProxyModel* self, bool dynamicSortFilter); void QSortFilterProxyModel_connect_DynamicSortFilterChanged(QSortFilterProxyModel* self, intptr_t slot); @@ -129,8 +130,8 @@ bool QSortFilterProxyModel_InsertRows3(QSortFilterProxyModel* self, int row, int bool QSortFilterProxyModel_InsertColumns3(QSortFilterProxyModel* self, int column, int count, QModelIndex* parent); bool QSortFilterProxyModel_RemoveRows3(QSortFilterProxyModel* self, int row, int count, QModelIndex* parent); bool QSortFilterProxyModel_RemoveColumns3(QSortFilterProxyModel* self, int column, int count, QModelIndex* parent); -struct miqt_array QSortFilterProxyModel_Match4(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits); -struct miqt_array QSortFilterProxyModel_Match5(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags); +struct miqt_array /* of QModelIndex* */ QSortFilterProxyModel_Match4(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits); +struct miqt_array /* of QModelIndex* */ QSortFilterProxyModel_Match5(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags); void QSortFilterProxyModel_Sort2(QSortFilterProxyModel* self, int column, int order); void QSortFilterProxyModel_Delete(QSortFilterProxyModel* self); diff --git a/qt/gen_qspinbox.h b/qt/gen_qspinbox.h index 407b03cb..d883e8fc 100644 --- a/qt/gen_qspinbox.h +++ b/qt/gen_qspinbox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSPINBOX_H -#define GEN_QSPINBOX_H +#pragma once +#ifndef MIQT_QT_GEN_QSPINBOX_H +#define MIQT_QT_GEN_QSPINBOX_H #include #include diff --git a/qt/gen_qsplashscreen.h b/qt/gen_qsplashscreen.h index d973f177..5dc4d3b4 100644 --- a/qt/gen_qsplashscreen.h +++ b/qt/gen_qsplashscreen.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSPLASHSCREEN_H -#define GEN_QSPLASHSCREEN_H +#pragma once +#ifndef MIQT_QT_GEN_QSPLASHSCREEN_H +#define MIQT_QT_GEN_QSPLASHSCREEN_H #include #include diff --git a/qt/gen_qsplitter.cpp b/qt/gen_qsplitter.cpp index c98ba072..0198508a 100644 --- a/qt/gen_qsplitter.cpp +++ b/qt/gen_qsplitter.cpp @@ -115,7 +115,7 @@ QSize* QSplitter_MinimumSizeHint(const QSplitter* self) { return new QSize(self->minimumSizeHint()); } -struct miqt_array QSplitter_Sizes(const QSplitter* self) { +struct miqt_array /* of int */ QSplitter_Sizes(const QSplitter* self) { QList _ret = self->sizes(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -128,7 +128,7 @@ struct miqt_array QSplitter_Sizes(const QSplitter* self) { return _out; } -void QSplitter_SetSizes(QSplitter* self, struct miqt_array /* of int */ list) { +void QSplitter_SetSizes(QSplitter* self, struct miqt_array /* of int */ list) { QList list_QList; list_QList.reserve(list.len); int* list_arr = static_cast(list.data); diff --git a/qt/gen_qsplitter.h b/qt/gen_qsplitter.h index 098b14e4..f9f8818d 100644 --- a/qt/gen_qsplitter.h +++ b/qt/gen_qsplitter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSPLITTER_H -#define GEN_QSPLITTER_H +#pragma once +#ifndef MIQT_QT_GEN_QSPLITTER_H +#define MIQT_QT_GEN_QSPLITTER_H #include #include @@ -51,8 +52,8 @@ bool QSplitter_OpaqueResize(const QSplitter* self); void QSplitter_Refresh(QSplitter* self); QSize* QSplitter_SizeHint(const QSplitter* self); QSize* QSplitter_MinimumSizeHint(const QSplitter* self); -struct miqt_array QSplitter_Sizes(const QSplitter* self); -void QSplitter_SetSizes(QSplitter* self, struct miqt_array /* of int */ list); +struct miqt_array /* of int */ QSplitter_Sizes(const QSplitter* self); +void QSplitter_SetSizes(QSplitter* self, struct miqt_array /* of int */ list); struct miqt_string QSplitter_SaveState(const QSplitter* self); bool QSplitter_RestoreState(QSplitter* self, struct miqt_string state); int QSplitter_HandleWidth(const QSplitter* self); diff --git a/qt/gen_qstackedlayout.h b/qt/gen_qstackedlayout.h index 9b5a026a..63ca449b 100644 --- a/qt/gen_qstackedlayout.h +++ b/qt/gen_qstackedlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTACKEDLAYOUT_H -#define GEN_QSTACKEDLAYOUT_H +#pragma once +#ifndef MIQT_QT_GEN_QSTACKEDLAYOUT_H +#define MIQT_QT_GEN_QSTACKEDLAYOUT_H #include #include diff --git a/qt/gen_qstackedwidget.h b/qt/gen_qstackedwidget.h index db132b56..e7a1e958 100644 --- a/qt/gen_qstackedwidget.h +++ b/qt/gen_qstackedwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTACKEDWIDGET_H -#define GEN_QSTACKEDWIDGET_H +#pragma once +#ifndef MIQT_QT_GEN_QSTACKEDWIDGET_H +#define MIQT_QT_GEN_QSTACKEDWIDGET_H #include #include diff --git a/qt/gen_qstandarditemmodel.cpp b/qt/gen_qstandarditemmodel.cpp index ceb4465d..2f407cea 100644 --- a/qt/gen_qstandarditemmodel.cpp +++ b/qt/gen_qstandarditemmodel.cpp @@ -341,7 +341,7 @@ void QStandardItem_SetChild2(QStandardItem* self, int row, QStandardItem* item) self->setChild(static_cast(row), item); } -void QStandardItem_InsertRow(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItem_InsertRow(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -351,7 +351,7 @@ void QStandardItem_InsertRow(QStandardItem* self, int row, struct miqt_array /* self->insertRow(static_cast(row), items_QList); } -void QStandardItem_InsertColumn(QStandardItem* self, int column, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItem_InsertColumn(QStandardItem* self, int column, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -361,7 +361,7 @@ void QStandardItem_InsertColumn(QStandardItem* self, int column, struct miqt_arr self->insertColumn(static_cast(column), items_QList); } -void QStandardItem_InsertRows(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItem_InsertRows(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -395,7 +395,7 @@ void QStandardItem_RemoveColumns(QStandardItem* self, int column, int count) { self->removeColumns(static_cast(column), static_cast(count)); } -void QStandardItem_AppendRow(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItem_AppendRow(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -405,7 +405,7 @@ void QStandardItem_AppendRow(QStandardItem* self, struct miqt_array /* of QStand self->appendRow(items_QList); } -void QStandardItem_AppendRows(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItem_AppendRows(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -415,7 +415,7 @@ void QStandardItem_AppendRows(QStandardItem* self, struct miqt_array /* of QStan self->appendRows(items_QList); } -void QStandardItem_AppendColumn(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItem_AppendColumn(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -437,7 +437,7 @@ QStandardItem* QStandardItem_TakeChild(QStandardItem* self, int row) { return self->takeChild(static_cast(row)); } -struct miqt_array QStandardItem_TakeRow(QStandardItem* self, int row) { +struct miqt_array /* of QStandardItem* */ QStandardItem_TakeRow(QStandardItem* self, int row) { QList _ret = self->takeRow(static_cast(row)); // Convert QList<> from C++ memory to manually-managed C memory QStandardItem** _arr = static_cast(malloc(sizeof(QStandardItem*) * _ret.length())); @@ -450,7 +450,7 @@ struct miqt_array QStandardItem_TakeRow(QStandardItem* self, int row) { return _out; } -struct miqt_array QStandardItem_TakeColumn(QStandardItem* self, int column) { +struct miqt_array /* of QStandardItem* */ QStandardItem_TakeColumn(QStandardItem* self, int column) { QList _ret = self->takeColumn(static_cast(column)); // Convert QList<> from C++ memory to manually-managed C memory QStandardItem** _arr = static_cast(malloc(sizeof(QStandardItem*) * _ret.length())); @@ -557,7 +557,7 @@ struct miqt_string QStandardItemModel_TrUtf8(const char* s) { return _ms; } -void QStandardItemModel_SetItemRoleNames(QStandardItemModel* self, struct miqt_map roleNames) { +void QStandardItemModel_SetItemRoleNames(QStandardItemModel* self, struct miqt_map /* of int to struct miqt_string */ roleNames) { QHash roleNames_QMap; roleNames_QMap.reserve(roleNames.len); int* roleNames_karr = static_cast(roleNames.keys); @@ -639,7 +639,7 @@ int QStandardItemModel_SupportedDropActions(const QStandardItemModel* self) { return static_cast(_ret); } -struct miqt_map QStandardItemModel_ItemData(const QStandardItemModel* self, QModelIndex* index) { +struct miqt_map /* of int to QVariant* */ QStandardItemModel_ItemData(const QStandardItemModel* self, QModelIndex* index) { QMap _ret = self->itemData(*index); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -657,7 +657,7 @@ struct miqt_map QStandardItemModel_ItemData(const QStandardItemModel* self, QMod return _out; } -bool QStandardItemModel_SetItemData(QStandardItemModel* self, QModelIndex* index, struct miqt_map roles) { +bool QStandardItemModel_SetItemData(QStandardItemModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) { QMap roles_QMap; int* roles_karr = static_cast(roles.keys); QVariant** roles_varr = static_cast(roles.values); @@ -715,7 +715,7 @@ void QStandardItemModel_SetVerticalHeaderItem(QStandardItemModel* self, int row, self->setVerticalHeaderItem(static_cast(row), item); } -void QStandardItemModel_SetHorizontalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels) { +void QStandardItemModel_SetHorizontalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels) { QStringList labels_QList; labels_QList.reserve(labels.len); struct miqt_string* labels_arr = static_cast(labels.data); @@ -726,7 +726,7 @@ void QStandardItemModel_SetHorizontalHeaderLabels(QStandardItemModel* self, stru self->setHorizontalHeaderLabels(labels_QList); } -void QStandardItemModel_SetVerticalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels) { +void QStandardItemModel_SetVerticalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels) { QStringList labels_QList; labels_QList.reserve(labels.len); struct miqt_string* labels_arr = static_cast(labels.data); @@ -745,7 +745,7 @@ void QStandardItemModel_SetColumnCount(QStandardItemModel* self, int columns) { self->setColumnCount(static_cast(columns)); } -void QStandardItemModel_AppendRow(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItemModel_AppendRow(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -755,7 +755,7 @@ void QStandardItemModel_AppendRow(QStandardItemModel* self, struct miqt_array /* self->appendRow(items_QList); } -void QStandardItemModel_AppendColumn(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItemModel_AppendColumn(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -769,7 +769,7 @@ void QStandardItemModel_AppendRowWithItem(QStandardItemModel* self, QStandardIte self->appendRow(item); } -void QStandardItemModel_InsertRow(QStandardItemModel* self, int row, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItemModel_InsertRow(QStandardItemModel* self, int row, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -779,7 +779,7 @@ void QStandardItemModel_InsertRow(QStandardItemModel* self, int row, struct miqt self->insertRow(static_cast(row), items_QList); } -void QStandardItemModel_InsertColumn(QStandardItemModel* self, int column, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItemModel_InsertColumn(QStandardItemModel* self, int column, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -805,7 +805,7 @@ QStandardItem* QStandardItemModel_TakeItem(QStandardItemModel* self, int row) { return self->takeItem(static_cast(row)); } -struct miqt_array QStandardItemModel_TakeRow(QStandardItemModel* self, int row) { +struct miqt_array /* of QStandardItem* */ QStandardItemModel_TakeRow(QStandardItemModel* self, int row) { QList _ret = self->takeRow(static_cast(row)); // Convert QList<> from C++ memory to manually-managed C memory QStandardItem** _arr = static_cast(malloc(sizeof(QStandardItem*) * _ret.length())); @@ -818,7 +818,7 @@ struct miqt_array QStandardItemModel_TakeRow(QStandardItemModel* self, int row) return _out; } -struct miqt_array QStandardItemModel_TakeColumn(QStandardItemModel* self, int column) { +struct miqt_array /* of QStandardItem* */ QStandardItemModel_TakeColumn(QStandardItemModel* self, int column) { QList _ret = self->takeColumn(static_cast(column)); // Convert QList<> from C++ memory to manually-managed C memory QStandardItem** _arr = static_cast(malloc(sizeof(QStandardItem*) * _ret.length())); @@ -847,7 +847,7 @@ void QStandardItemModel_SetItemPrototype(QStandardItemModel* self, QStandardItem self->setItemPrototype(item); } -struct miqt_array QStandardItemModel_FindItems(const QStandardItemModel* self, struct miqt_string text) { +struct miqt_array /* of QStandardItem* */ QStandardItemModel_FindItems(const QStandardItemModel* self, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->findItems(text_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -869,7 +869,7 @@ void QStandardItemModel_SetSortRole(QStandardItemModel* self, int role) { self->setSortRole(static_cast(role)); } -struct miqt_array QStandardItemModel_MimeTypes(const QStandardItemModel* self) { +struct miqt_array /* of struct miqt_string */ QStandardItemModel_MimeTypes(const QStandardItemModel* self) { QStringList _ret = self->mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -889,7 +889,7 @@ struct miqt_array QStandardItemModel_MimeTypes(const QStandardItemModel* self) { return _out; } -QMimeData* QStandardItemModel_MimeData(const QStandardItemModel* self, struct miqt_array /* of QModelIndex* */ indexes) { +QMimeData* QStandardItemModel_MimeData(const QStandardItemModel* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); @@ -1026,7 +1026,7 @@ QStandardItem* QStandardItemModel_TakeItem2(QStandardItemModel* self, int row, i return self->takeItem(static_cast(row), static_cast(column)); } -struct miqt_array QStandardItemModel_FindItems2(const QStandardItemModel* self, struct miqt_string text, int flags) { +struct miqt_array /* of QStandardItem* */ QStandardItemModel_FindItems2(const QStandardItemModel* self, struct miqt_string text, int flags) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->findItems(text_QString, static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory @@ -1040,7 +1040,7 @@ struct miqt_array QStandardItemModel_FindItems2(const QStandardItemModel* self, return _out; } -struct miqt_array QStandardItemModel_FindItems3(const QStandardItemModel* self, struct miqt_string text, int flags, int column) { +struct miqt_array /* of QStandardItem* */ QStandardItemModel_FindItems3(const QStandardItemModel* self, struct miqt_string text, int flags, int column) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->findItems(text_QString, static_cast(flags), static_cast(column)); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/gen_qstandarditemmodel.h b/qt/gen_qstandarditemmodel.h index a91cadf4..3b4e94ab 100644 --- a/qt/gen_qstandarditemmodel.h +++ b/qt/gen_qstandarditemmodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTANDARDITEMMODEL_H -#define GEN_QSTANDARDITEMMODEL_H +#pragma once +#ifndef MIQT_QT_GEN_QSTANDARDITEMMODEL_H +#define MIQT_QT_GEN_QSTANDARDITEMMODEL_H #include #include @@ -110,23 +111,23 @@ bool QStandardItem_HasChildren(const QStandardItem* self); QStandardItem* QStandardItem_Child(const QStandardItem* self, int row); void QStandardItem_SetChild(QStandardItem* self, int row, int column, QStandardItem* item); void QStandardItem_SetChild2(QStandardItem* self, int row, QStandardItem* item); -void QStandardItem_InsertRow(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items); -void QStandardItem_InsertColumn(QStandardItem* self, int column, struct miqt_array /* of QStandardItem* */ items); -void QStandardItem_InsertRows(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items); +void QStandardItem_InsertRow(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items); +void QStandardItem_InsertColumn(QStandardItem* self, int column, struct miqt_array /* of QStandardItem* */ items); +void QStandardItem_InsertRows(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items); void QStandardItem_InsertRows2(QStandardItem* self, int row, int count); void QStandardItem_InsertColumns(QStandardItem* self, int column, int count); void QStandardItem_RemoveRow(QStandardItem* self, int row); void QStandardItem_RemoveColumn(QStandardItem* self, int column); void QStandardItem_RemoveRows(QStandardItem* self, int row, int count); void QStandardItem_RemoveColumns(QStandardItem* self, int column, int count); -void QStandardItem_AppendRow(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items); -void QStandardItem_AppendRows(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items); -void QStandardItem_AppendColumn(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items); +void QStandardItem_AppendRow(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items); +void QStandardItem_AppendRows(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items); +void QStandardItem_AppendColumn(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items); void QStandardItem_InsertRow2(QStandardItem* self, int row, QStandardItem* item); void QStandardItem_AppendRowWithItem(QStandardItem* self, QStandardItem* item); QStandardItem* QStandardItem_TakeChild(QStandardItem* self, int row); -struct miqt_array QStandardItem_TakeRow(QStandardItem* self, int row); -struct miqt_array QStandardItem_TakeColumn(QStandardItem* self, int column); +struct miqt_array /* of QStandardItem* */ QStandardItem_TakeRow(QStandardItem* self, int row); +struct miqt_array /* of QStandardItem* */ QStandardItem_TakeColumn(QStandardItem* self, int column); void QStandardItem_SortChildren(QStandardItem* self, int column); QStandardItem* QStandardItem_Clone(const QStandardItem* self); int QStandardItem_Type(const QStandardItem* self); @@ -148,7 +149,7 @@ QMetaObject* QStandardItemModel_MetaObject(const QStandardItemModel* self); void* QStandardItemModel_Metacast(QStandardItemModel* self, const char* param1); struct miqt_string QStandardItemModel_Tr(const char* s); struct miqt_string QStandardItemModel_TrUtf8(const char* s); -void QStandardItemModel_SetItemRoleNames(QStandardItemModel* self, struct miqt_map roleNames); +void QStandardItemModel_SetItemRoleNames(QStandardItemModel* self, struct miqt_map /* of int to struct miqt_string */ roleNames); QModelIndex* QStandardItemModel_Index(const QStandardItemModel* self, int row, int column); QModelIndex* QStandardItemModel_Parent(const QStandardItemModel* self, QModelIndex* child); int QStandardItemModel_RowCount(const QStandardItemModel* self); @@ -166,8 +167,8 @@ bool QStandardItemModel_RemoveRows(QStandardItemModel* self, int row, int count) bool QStandardItemModel_RemoveColumns(QStandardItemModel* self, int column, int count); int QStandardItemModel_Flags(const QStandardItemModel* self, QModelIndex* index); int QStandardItemModel_SupportedDropActions(const QStandardItemModel* self); -struct miqt_map QStandardItemModel_ItemData(const QStandardItemModel* self, QModelIndex* index); -bool QStandardItemModel_SetItemData(QStandardItemModel* self, QModelIndex* index, struct miqt_map roles); +struct miqt_map /* of int to QVariant* */ QStandardItemModel_ItemData(const QStandardItemModel* self, QModelIndex* index); +bool QStandardItemModel_SetItemData(QStandardItemModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles); void QStandardItemModel_Clear(QStandardItemModel* self); void QStandardItemModel_Sort(QStandardItemModel* self, int column); QStandardItem* QStandardItemModel_ItemFromIndex(const QStandardItemModel* self, QModelIndex* index); @@ -180,30 +181,30 @@ QStandardItem* QStandardItemModel_HorizontalHeaderItem(const QStandardItemModel* void QStandardItemModel_SetHorizontalHeaderItem(QStandardItemModel* self, int column, QStandardItem* item); QStandardItem* QStandardItemModel_VerticalHeaderItem(const QStandardItemModel* self, int row); void QStandardItemModel_SetVerticalHeaderItem(QStandardItemModel* self, int row, QStandardItem* item); -void QStandardItemModel_SetHorizontalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels); -void QStandardItemModel_SetVerticalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels); +void QStandardItemModel_SetHorizontalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels); +void QStandardItemModel_SetVerticalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels); void QStandardItemModel_SetRowCount(QStandardItemModel* self, int rows); void QStandardItemModel_SetColumnCount(QStandardItemModel* self, int columns); -void QStandardItemModel_AppendRow(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items); -void QStandardItemModel_AppendColumn(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items); +void QStandardItemModel_AppendRow(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items); +void QStandardItemModel_AppendColumn(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items); void QStandardItemModel_AppendRowWithItem(QStandardItemModel* self, QStandardItem* item); -void QStandardItemModel_InsertRow(QStandardItemModel* self, int row, struct miqt_array /* of QStandardItem* */ items); -void QStandardItemModel_InsertColumn(QStandardItemModel* self, int column, struct miqt_array /* of QStandardItem* */ items); +void QStandardItemModel_InsertRow(QStandardItemModel* self, int row, struct miqt_array /* of QStandardItem* */ items); +void QStandardItemModel_InsertColumn(QStandardItemModel* self, int column, struct miqt_array /* of QStandardItem* */ items); void QStandardItemModel_InsertRow2(QStandardItemModel* self, int row, QStandardItem* item); bool QStandardItemModel_InsertRowWithRow(QStandardItemModel* self, int row); bool QStandardItemModel_InsertColumnWithColumn(QStandardItemModel* self, int column); QStandardItem* QStandardItemModel_TakeItem(QStandardItemModel* self, int row); -struct miqt_array QStandardItemModel_TakeRow(QStandardItemModel* self, int row); -struct miqt_array QStandardItemModel_TakeColumn(QStandardItemModel* self, int column); +struct miqt_array /* of QStandardItem* */ QStandardItemModel_TakeRow(QStandardItemModel* self, int row); +struct miqt_array /* of QStandardItem* */ QStandardItemModel_TakeColumn(QStandardItemModel* self, int column); QStandardItem* QStandardItemModel_TakeHorizontalHeaderItem(QStandardItemModel* self, int column); QStandardItem* QStandardItemModel_TakeVerticalHeaderItem(QStandardItemModel* self, int row); QStandardItem* QStandardItemModel_ItemPrototype(const QStandardItemModel* self); void QStandardItemModel_SetItemPrototype(QStandardItemModel* self, QStandardItem* item); -struct miqt_array QStandardItemModel_FindItems(const QStandardItemModel* self, struct miqt_string text); +struct miqt_array /* of QStandardItem* */ QStandardItemModel_FindItems(const QStandardItemModel* self, struct miqt_string text); int QStandardItemModel_SortRole(const QStandardItemModel* self); void QStandardItemModel_SetSortRole(QStandardItemModel* self, int role); -struct miqt_array QStandardItemModel_MimeTypes(const QStandardItemModel* self); -QMimeData* QStandardItemModel_MimeData(const QStandardItemModel* self, struct miqt_array /* of QModelIndex* */ indexes); +struct miqt_array /* of struct miqt_string */ QStandardItemModel_MimeTypes(const QStandardItemModel* self); +QMimeData* QStandardItemModel_MimeData(const QStandardItemModel* self, struct miqt_array /* of QModelIndex* */ indexes); bool QStandardItemModel_DropMimeData(QStandardItemModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); void QStandardItemModel_ItemChanged(QStandardItemModel* self, QStandardItem* item); void QStandardItemModel_connect_ItemChanged(QStandardItemModel* self, intptr_t slot); @@ -228,8 +229,8 @@ QStandardItem* QStandardItemModel_Item2(const QStandardItemModel* self, int row, bool QStandardItemModel_InsertRow22(QStandardItemModel* self, int row, QModelIndex* parent); bool QStandardItemModel_InsertColumn2(QStandardItemModel* self, int column, QModelIndex* parent); QStandardItem* QStandardItemModel_TakeItem2(QStandardItemModel* self, int row, int column); -struct miqt_array QStandardItemModel_FindItems2(const QStandardItemModel* self, struct miqt_string text, int flags); -struct miqt_array QStandardItemModel_FindItems3(const QStandardItemModel* self, struct miqt_string text, int flags, int column); +struct miqt_array /* of QStandardItem* */ QStandardItemModel_FindItems2(const QStandardItemModel* self, struct miqt_string text, int flags); +struct miqt_array /* of QStandardItem* */ QStandardItemModel_FindItems3(const QStandardItemModel* self, struct miqt_string text, int flags, int column); void QStandardItemModel_Delete(QStandardItemModel* self); #ifdef __cplusplus diff --git a/qt/gen_qstandardpaths.cpp b/qt/gen_qstandardpaths.cpp index 7f72f56e..913ebf0f 100644 --- a/qt/gen_qstandardpaths.cpp +++ b/qt/gen_qstandardpaths.cpp @@ -18,7 +18,7 @@ struct miqt_string QStandardPaths_WritableLocation(int typeVal) { return _ms; } -struct miqt_array QStandardPaths_StandardLocations(int typeVal) { +struct miqt_array /* of struct miqt_string */ QStandardPaths_StandardLocations(int typeVal) { QStringList _ret = QStandardPaths::standardLocations(static_cast(typeVal)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -50,7 +50,7 @@ struct miqt_string QStandardPaths_Locate(int typeVal, struct miqt_string fileNam return _ms; } -struct miqt_array QStandardPaths_LocateAll(int typeVal, struct miqt_string fileName) { +struct miqt_array /* of struct miqt_string */ QStandardPaths_LocateAll(int typeVal, struct miqt_string fileName) { QString fileName_QString = QString::fromUtf8(fileName.data, fileName.len); QStringList _ret = QStandardPaths::locateAll(static_cast(typeVal), fileName_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -118,7 +118,7 @@ struct miqt_string QStandardPaths_Locate3(int typeVal, struct miqt_string fileNa return _ms; } -struct miqt_array QStandardPaths_LocateAll3(int typeVal, struct miqt_string fileName, int options) { +struct miqt_array /* of struct miqt_string */ QStandardPaths_LocateAll3(int typeVal, struct miqt_string fileName, int options) { QString fileName_QString = QString::fromUtf8(fileName.data, fileName.len); QStringList _ret = QStandardPaths::locateAll(static_cast(typeVal), fileName_QString, static_cast(options)); // Convert QList<> from C++ memory to manually-managed C memory @@ -139,7 +139,7 @@ struct miqt_array QStandardPaths_LocateAll3(int typeVal, struct miqt_string file return _out; } -struct miqt_string QStandardPaths_FindExecutable2(struct miqt_string executableName, struct miqt_array /* of struct miqt_string */ paths) { +struct miqt_string QStandardPaths_FindExecutable2(struct miqt_string executableName, struct miqt_array /* of struct miqt_string */ paths) { QString executableName_QString = QString::fromUtf8(executableName.data, executableName.len); QStringList paths_QList; paths_QList.reserve(paths.len); diff --git a/qt/gen_qstandardpaths.h b/qt/gen_qstandardpaths.h index 0258fd06..fd1e2ff5 100644 --- a/qt/gen_qstandardpaths.h +++ b/qt/gen_qstandardpaths.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTANDARDPATHS_H -#define GEN_QSTANDARDPATHS_H +#pragma once +#ifndef MIQT_QT_GEN_QSTANDARDPATHS_H +#define MIQT_QT_GEN_QSTANDARDPATHS_H #include #include @@ -20,17 +21,17 @@ typedef struct QStandardPaths QStandardPaths; #endif struct miqt_string QStandardPaths_WritableLocation(int typeVal); -struct miqt_array QStandardPaths_StandardLocations(int typeVal); +struct miqt_array /* of struct miqt_string */ QStandardPaths_StandardLocations(int typeVal); struct miqt_string QStandardPaths_Locate(int typeVal, struct miqt_string fileName); -struct miqt_array QStandardPaths_LocateAll(int typeVal, struct miqt_string fileName); +struct miqt_array /* of struct miqt_string */ QStandardPaths_LocateAll(int typeVal, struct miqt_string fileName); struct miqt_string QStandardPaths_DisplayName(int typeVal); struct miqt_string QStandardPaths_FindExecutable(struct miqt_string executableName); void QStandardPaths_EnableTestMode(bool testMode); void QStandardPaths_SetTestModeEnabled(bool testMode); bool QStandardPaths_IsTestModeEnabled(); struct miqt_string QStandardPaths_Locate3(int typeVal, struct miqt_string fileName, int options); -struct miqt_array QStandardPaths_LocateAll3(int typeVal, struct miqt_string fileName, int options); -struct miqt_string QStandardPaths_FindExecutable2(struct miqt_string executableName, struct miqt_array /* of struct miqt_string */ paths); +struct miqt_array /* of struct miqt_string */ QStandardPaths_LocateAll3(int typeVal, struct miqt_string fileName, int options); +struct miqt_string QStandardPaths_FindExecutable2(struct miqt_string executableName, struct miqt_array /* of struct miqt_string */ paths); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstate.cpp b/qt/gen_qstate.cpp index 08b172cc..70d0227a 100644 --- a/qt/gen_qstate.cpp +++ b/qt/gen_qstate.cpp @@ -83,7 +83,7 @@ void QState_RemoveTransition(QState* self, QAbstractTransition* transition) { self->removeTransition(transition); } -struct miqt_array QState_Transitions(const QState* self) { +struct miqt_array /* of QAbstractTransition* */ QState_Transitions(const QState* self) { QList _ret = self->transitions(); // Convert QList<> from C++ memory to manually-managed C memory QAbstractTransition** _arr = static_cast(malloc(sizeof(QAbstractTransition*) * _ret.length())); diff --git a/qt/gen_qstate.h b/qt/gen_qstate.h index 8436979e..51ceef5e 100644 --- a/qt/gen_qstate.h +++ b/qt/gen_qstate.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTATE_H -#define GEN_QSTATE_H +#pragma once +#ifndef MIQT_QT_GEN_QSTATE_H +#define MIQT_QT_GEN_QSTATE_H #include #include @@ -45,7 +46,7 @@ void QState_AddTransition(QState* self, QAbstractTransition* transition); QSignalTransition* QState_AddTransition2(QState* self, QObject* sender, const char* signal, QAbstractState* target); QAbstractTransition* QState_AddTransitionWithTarget(QState* self, QAbstractState* target); void QState_RemoveTransition(QState* self, QAbstractTransition* transition); -struct miqt_array QState_Transitions(const QState* self); +struct miqt_array /* of QAbstractTransition* */ QState_Transitions(const QState* self); QAbstractState* QState_InitialState(const QState* self); void QState_SetInitialState(QState* self, QAbstractState* state); int QState_ChildMode(const QState* self); diff --git a/qt/gen_qstatemachine.cpp b/qt/gen_qstatemachine.cpp index f0c81f7f..2e7fa769 100644 --- a/qt/gen_qstatemachine.cpp +++ b/qt/gen_qstatemachine.cpp @@ -104,7 +104,7 @@ void QStateMachine_AddDefaultAnimation(QStateMachine* self, QAbstractAnimation* self->addDefaultAnimation(animation); } -struct miqt_array QStateMachine_DefaultAnimations(const QStateMachine* self) { +struct miqt_array /* of QAbstractAnimation* */ QStateMachine_DefaultAnimations(const QStateMachine* self) { QList _ret = self->defaultAnimations(); // Convert QList<> from C++ memory to manually-managed C memory QAbstractAnimation** _arr = static_cast(malloc(sizeof(QAbstractAnimation*) * _ret.length())); @@ -142,7 +142,7 @@ bool QStateMachine_CancelDelayedEvent(QStateMachine* self, int id) { return self->cancelDelayedEvent(static_cast(id)); } -struct miqt_array QStateMachine_Configuration(const QStateMachine* self) { +struct miqt_array /* set of QAbstractState* */ QStateMachine_Configuration(const QStateMachine* self) { QSet _ret = self->configuration(); // Convert QSet<> from C++ memory to manually-managed C memory QAbstractState** _arr = static_cast(malloc(sizeof(QAbstractState*) * _ret.size())); diff --git a/qt/gen_qstatemachine.h b/qt/gen_qstatemachine.h index 88963d89..0e61dd69 100644 --- a/qt/gen_qstatemachine.h +++ b/qt/gen_qstatemachine.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTATEMACHINE_H -#define GEN_QSTATEMACHINE_H +#pragma once +#ifndef MIQT_QT_GEN_QSTATEMACHINE_H +#define MIQT_QT_GEN_QSTATEMACHINE_H #include #include @@ -58,14 +59,14 @@ bool QStateMachine_IsRunning(const QStateMachine* self); bool QStateMachine_IsAnimated(const QStateMachine* self); void QStateMachine_SetAnimated(QStateMachine* self, bool enabled); void QStateMachine_AddDefaultAnimation(QStateMachine* self, QAbstractAnimation* animation); -struct miqt_array QStateMachine_DefaultAnimations(const QStateMachine* self); +struct miqt_array /* of QAbstractAnimation* */ QStateMachine_DefaultAnimations(const QStateMachine* self); void QStateMachine_RemoveDefaultAnimation(QStateMachine* self, QAbstractAnimation* animation); int QStateMachine_GlobalRestorePolicy(const QStateMachine* self); void QStateMachine_SetGlobalRestorePolicy(QStateMachine* self, int restorePolicy); void QStateMachine_PostEvent(QStateMachine* self, QEvent* event); int QStateMachine_PostDelayedEvent(QStateMachine* self, QEvent* event, int delay); bool QStateMachine_CancelDelayedEvent(QStateMachine* self, int id); -struct miqt_array QStateMachine_Configuration(const QStateMachine* self); +struct miqt_array /* set of QAbstractState* */ QStateMachine_Configuration(const QStateMachine* self); bool QStateMachine_EventFilter(QStateMachine* self, QObject* watched, QEvent* event); void QStateMachine_Start(QStateMachine* self); void QStateMachine_Stop(QStateMachine* self); diff --git a/qt/gen_qstatictext.h b/qt/gen_qstatictext.h index bb867d0a..17fb7af7 100644 --- a/qt/gen_qstatictext.h +++ b/qt/gen_qstatictext.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTATICTEXT_H -#define GEN_QSTATICTEXT_H +#pragma once +#ifndef MIQT_QT_GEN_QSTATICTEXT_H +#define MIQT_QT_GEN_QSTATICTEXT_H #include #include diff --git a/qt/gen_qstatusbar.h b/qt/gen_qstatusbar.h index a4d14559..bfebbc75 100644 --- a/qt/gen_qstatusbar.h +++ b/qt/gen_qstatusbar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTATUSBAR_H -#define GEN_QSTATUSBAR_H +#pragma once +#ifndef MIQT_QT_GEN_QSTATUSBAR_H +#define MIQT_QT_GEN_QSTATUSBAR_H #include #include diff --git a/qt/gen_qstorageinfo.cpp b/qt/gen_qstorageinfo.cpp index b5f91814..35a393c3 100644 --- a/qt/gen_qstorageinfo.cpp +++ b/qt/gen_qstorageinfo.cpp @@ -138,7 +138,7 @@ void QStorageInfo_Refresh(QStorageInfo* self) { self->refresh(); } -struct miqt_array QStorageInfo_MountedVolumes() { +struct miqt_array /* of QStorageInfo* */ QStorageInfo_MountedVolumes() { QList _ret = QStorageInfo::mountedVolumes(); // Convert QList<> from C++ memory to manually-managed C memory QStorageInfo** _arr = static_cast(malloc(sizeof(QStorageInfo*) * _ret.length())); diff --git a/qt/gen_qstorageinfo.h b/qt/gen_qstorageinfo.h index 03ebafa5..4fa2db8b 100644 --- a/qt/gen_qstorageinfo.h +++ b/qt/gen_qstorageinfo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTORAGEINFO_H -#define GEN_QSTORAGEINFO_H +#pragma once +#ifndef MIQT_QT_GEN_QSTORAGEINFO_H +#define MIQT_QT_GEN_QSTORAGEINFO_H #include #include @@ -45,7 +46,7 @@ bool QStorageInfo_IsReadOnly(const QStorageInfo* self); bool QStorageInfo_IsReady(const QStorageInfo* self); bool QStorageInfo_IsValid(const QStorageInfo* self); void QStorageInfo_Refresh(QStorageInfo* self); -struct miqt_array QStorageInfo_MountedVolumes(); +struct miqt_array /* of QStorageInfo* */ QStorageInfo_MountedVolumes(); QStorageInfo* QStorageInfo_Root(); void QStorageInfo_Delete(QStorageInfo* self); diff --git a/qt/gen_qstringbuilder.h b/qt/gen_qstringbuilder.h index 1a556ddb..b4e4643d 100644 --- a/qt/gen_qstringbuilder.h +++ b/qt/gen_qstringbuilder.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTRINGBUILDER_H -#define GEN_QSTRINGBUILDER_H +#pragma once +#ifndef MIQT_QT_GEN_QSTRINGBUILDER_H +#define MIQT_QT_GEN_QSTRINGBUILDER_H #include #include diff --git a/qt/gen_qstringlistmodel.cpp b/qt/gen_qstringlistmodel.cpp index 89d45c01..61e468c0 100644 --- a/qt/gen_qstringlistmodel.cpp +++ b/qt/gen_qstringlistmodel.cpp @@ -16,7 +16,7 @@ QStringListModel* QStringListModel_new() { return new QStringListModel(); } -QStringListModel* QStringListModel_new2(struct miqt_array /* of struct miqt_string */ strings) { +QStringListModel* QStringListModel_new2(struct miqt_array /* of struct miqt_string */ strings) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -31,7 +31,7 @@ QStringListModel* QStringListModel_new3(QObject* parent) { return new QStringListModel(parent); } -QStringListModel* QStringListModel_new4(struct miqt_array /* of struct miqt_string */ strings, QObject* parent) { +QStringListModel* QStringListModel_new4(struct miqt_array /* of struct miqt_string */ strings, QObject* parent) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -105,7 +105,7 @@ bool QStringListModel_MoveRows(QStringListModel* self, QModelIndex* sourceParent return self->moveRows(*sourceParent, static_cast(sourceRow), static_cast(count), *destinationParent, static_cast(destinationChild)); } -struct miqt_map QStringListModel_ItemData(const QStringListModel* self, QModelIndex* index) { +struct miqt_map /* of int to QVariant* */ QStringListModel_ItemData(const QStringListModel* self, QModelIndex* index) { QMap _ret = self->itemData(*index); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -123,7 +123,7 @@ struct miqt_map QStringListModel_ItemData(const QStringListModel* self, QModelIn return _out; } -bool QStringListModel_SetItemData(QStringListModel* self, QModelIndex* index, struct miqt_map roles) { +bool QStringListModel_SetItemData(QStringListModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) { QMap roles_QMap; int* roles_karr = static_cast(roles.keys); QVariant** roles_varr = static_cast(roles.values); @@ -137,7 +137,7 @@ void QStringListModel_Sort(QStringListModel* self, int column) { self->sort(static_cast(column)); } -struct miqt_array QStringListModel_StringList(const QStringListModel* self) { +struct miqt_array /* of struct miqt_string */ QStringListModel_StringList(const QStringListModel* self) { QStringList _ret = self->stringList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -157,7 +157,7 @@ struct miqt_array QStringListModel_StringList(const QStringListModel* self) { return _out; } -void QStringListModel_SetStringList(QStringListModel* self, struct miqt_array /* of struct miqt_string */ strings) { +void QStringListModel_SetStringList(QStringListModel* self, struct miqt_array /* of struct miqt_string */ strings) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); diff --git a/qt/gen_qstringlistmodel.h b/qt/gen_qstringlistmodel.h index 5ed490ad..a110c1c7 100644 --- a/qt/gen_qstringlistmodel.h +++ b/qt/gen_qstringlistmodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTRINGLISTMODEL_H -#define GEN_QSTRINGLISTMODEL_H +#pragma once +#ifndef MIQT_QT_GEN_QSTRINGLISTMODEL_H +#define MIQT_QT_GEN_QSTRINGLISTMODEL_H #include #include @@ -28,9 +29,9 @@ typedef struct QVariant QVariant; #endif QStringListModel* QStringListModel_new(); -QStringListModel* QStringListModel_new2(struct miqt_array /* of struct miqt_string */ strings); +QStringListModel* QStringListModel_new2(struct miqt_array /* of struct miqt_string */ strings); QStringListModel* QStringListModel_new3(QObject* parent); -QStringListModel* QStringListModel_new4(struct miqt_array /* of struct miqt_string */ strings, QObject* parent); +QStringListModel* QStringListModel_new4(struct miqt_array /* of struct miqt_string */ strings, QObject* parent); QMetaObject* QStringListModel_MetaObject(const QStringListModel* self); void* QStringListModel_Metacast(QStringListModel* self, const char* param1); struct miqt_string QStringListModel_Tr(const char* s); @@ -43,11 +44,11 @@ int QStringListModel_Flags(const QStringListModel* self, QModelIndex* index); bool QStringListModel_InsertRows(QStringListModel* self, int row, int count); bool QStringListModel_RemoveRows(QStringListModel* self, int row, int count); bool QStringListModel_MoveRows(QStringListModel* self, QModelIndex* sourceParent, int sourceRow, int count, QModelIndex* destinationParent, int destinationChild); -struct miqt_map QStringListModel_ItemData(const QStringListModel* self, QModelIndex* index); -bool QStringListModel_SetItemData(QStringListModel* self, QModelIndex* index, struct miqt_map roles); +struct miqt_map /* of int to QVariant* */ QStringListModel_ItemData(const QStringListModel* self, QModelIndex* index); +bool QStringListModel_SetItemData(QStringListModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles); void QStringListModel_Sort(QStringListModel* self, int column); -struct miqt_array QStringListModel_StringList(const QStringListModel* self); -void QStringListModel_SetStringList(QStringListModel* self, struct miqt_array /* of struct miqt_string */ strings); +struct miqt_array /* of struct miqt_string */ QStringListModel_StringList(const QStringListModel* self); +void QStringListModel_SetStringList(QStringListModel* self, struct miqt_array /* of struct miqt_string */ strings); int QStringListModel_SupportedDropActions(const QStringListModel* self); struct miqt_string QStringListModel_Tr2(const char* s, const char* c); struct miqt_string QStringListModel_Tr3(const char* s, const char* c, int n); diff --git a/qt/gen_qstringliteral.h b/qt/gen_qstringliteral.h index f14d6999..929b889a 100644 --- a/qt/gen_qstringliteral.h +++ b/qt/gen_qstringliteral.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTRINGLITERAL_H -#define GEN_QSTRINGLITERAL_H +#pragma once +#ifndef MIQT_QT_GEN_QSTRINGLITERAL_H +#define MIQT_QT_GEN_QSTRINGLITERAL_H #include #include diff --git a/qt/gen_qstringmatcher.h b/qt/gen_qstringmatcher.h index b8ad4d25..8536c01d 100644 --- a/qt/gen_qstringmatcher.h +++ b/qt/gen_qstringmatcher.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTRINGMATCHER_H -#define GEN_QSTRINGMATCHER_H +#pragma once +#ifndef MIQT_QT_GEN_QSTRINGMATCHER_H +#define MIQT_QT_GEN_QSTRINGMATCHER_H #include #include diff --git a/qt/gen_qstringview.cpp b/qt/gen_qstringview.cpp index 1feee5af..ab4438e2 100644 --- a/qt/gen_qstringview.cpp +++ b/qt/gen_qstringview.cpp @@ -65,7 +65,7 @@ struct miqt_string QStringView_ToLocal8Bit(const QStringView* self) { return _ms; } -struct miqt_array QStringView_ToUcs4(const QStringView* self) { +struct miqt_array /* of unsigned int */ QStringView_ToUcs4(const QStringView* self) { QVector _ret = self->toUcs4(); // Convert QList<> from C++ memory to manually-managed C memory unsigned int* _arr = static_cast(malloc(sizeof(unsigned int) * _ret.length())); diff --git a/qt/gen_qstringview.h b/qt/gen_qstringview.h index 9c27b89c..f3968756 100644 --- a/qt/gen_qstringview.h +++ b/qt/gen_qstringview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTRINGVIEW_H -#define GEN_QSTRINGVIEW_H +#pragma once +#ifndef MIQT_QT_GEN_QSTRINGVIEW_H +#define MIQT_QT_GEN_QSTRINGVIEW_H #include #include @@ -31,7 +32,7 @@ QChar* QStringView_OperatorSubscript(const QStringView* self, ptrdiff_t n); struct miqt_string QStringView_ToLatin1(const QStringView* self); struct miqt_string QStringView_ToUtf8(const QStringView* self); struct miqt_string QStringView_ToLocal8Bit(const QStringView* self); -struct miqt_array QStringView_ToUcs4(const QStringView* self); +struct miqt_array /* of unsigned int */ QStringView_ToUcs4(const QStringView* self); QChar* QStringView_At(const QStringView* self, ptrdiff_t n); void QStringView_Truncate(QStringView* self, ptrdiff_t n); void QStringView_Chop(QStringView* self, ptrdiff_t n); diff --git a/qt/gen_qstyle.h b/qt/gen_qstyle.h index 884ed263..8f6d606b 100644 --- a/qt/gen_qstyle.h +++ b/qt/gen_qstyle.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTYLE_H -#define GEN_QSTYLE_H +#pragma once +#ifndef MIQT_QT_GEN_QSTYLE_H +#define MIQT_QT_GEN_QSTYLE_H #include #include diff --git a/qt/gen_qstyleditemdelegate.h b/qt/gen_qstyleditemdelegate.h index 49eb90fc..162e20b7 100644 --- a/qt/gen_qstyleditemdelegate.h +++ b/qt/gen_qstyleditemdelegate.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTYLEDITEMDELEGATE_H -#define GEN_QSTYLEDITEMDELEGATE_H +#pragma once +#ifndef MIQT_QT_GEN_QSTYLEDITEMDELEGATE_H +#define MIQT_QT_GEN_QSTYLEDITEMDELEGATE_H #include #include diff --git a/qt/gen_qstylefactory.cpp b/qt/gen_qstylefactory.cpp index 2a4035f8..2e2586b0 100644 --- a/qt/gen_qstylefactory.cpp +++ b/qt/gen_qstylefactory.cpp @@ -8,7 +8,7 @@ #include "gen_qstylefactory.h" #include "_cgo_export.h" -struct miqt_array QStyleFactory_Keys() { +struct miqt_array /* of struct miqt_string */ QStyleFactory_Keys() { QStringList _ret = QStyleFactory::keys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qstylefactory.h b/qt/gen_qstylefactory.h index 4e0ef7c7..7feebabd 100644 --- a/qt/gen_qstylefactory.h +++ b/qt/gen_qstylefactory.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTYLEFACTORY_H -#define GEN_QSTYLEFACTORY_H +#pragma once +#ifndef MIQT_QT_GEN_QSTYLEFACTORY_H +#define MIQT_QT_GEN_QSTYLEFACTORY_H #include #include @@ -21,7 +22,7 @@ typedef struct QStyle QStyle; typedef struct QStyleFactory QStyleFactory; #endif -struct miqt_array QStyleFactory_Keys(); +struct miqt_array /* of struct miqt_string */ QStyleFactory_Keys(); QStyle* QStyleFactory_Create(struct miqt_string param1); void QStyleFactory_Delete(QStyleFactory* self); diff --git a/qt/gen_qstylehints.h b/qt/gen_qstylehints.h index 404920e0..0bc781a5 100644 --- a/qt/gen_qstylehints.h +++ b/qt/gen_qstylehints.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTYLEHINTS_H -#define GEN_QSTYLEHINTS_H +#pragma once +#ifndef MIQT_QT_GEN_QSTYLEHINTS_H +#define MIQT_QT_GEN_QSTYLEHINTS_H #include #include diff --git a/qt/gen_qstyleoption.h b/qt/gen_qstyleoption.h index 7c5457f1..fc6ca0cc 100644 --- a/qt/gen_qstyleoption.h +++ b/qt/gen_qstyleoption.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTYLEOPTION_H -#define GEN_QSTYLEOPTION_H +#pragma once +#ifndef MIQT_QT_GEN_QSTYLEOPTION_H +#define MIQT_QT_GEN_QSTYLEOPTION_H #include #include diff --git a/qt/gen_qstylepainter.h b/qt/gen_qstylepainter.h index b2c8efab..a5d114a9 100644 --- a/qt/gen_qstylepainter.h +++ b/qt/gen_qstylepainter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTYLEPAINTER_H -#define GEN_QSTYLEPAINTER_H +#pragma once +#ifndef MIQT_QT_GEN_QSTYLEPAINTER_H +#define MIQT_QT_GEN_QSTYLEPAINTER_H #include #include diff --git a/qt/gen_qstyleplugin.h b/qt/gen_qstyleplugin.h index 4c063d46..0c0243c0 100644 --- a/qt/gen_qstyleplugin.h +++ b/qt/gen_qstyleplugin.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTYLEPLUGIN_H -#define GEN_QSTYLEPLUGIN_H +#pragma once +#ifndef MIQT_QT_GEN_QSTYLEPLUGIN_H +#define MIQT_QT_GEN_QSTYLEPLUGIN_H #include #include diff --git a/qt/gen_qsurface.h b/qt/gen_qsurface.h index 0ad58a32..af826665 100644 --- a/qt/gen_qsurface.h +++ b/qt/gen_qsurface.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSURFACE_H -#define GEN_QSURFACE_H +#pragma once +#ifndef MIQT_QT_GEN_QSURFACE_H +#define MIQT_QT_GEN_QSURFACE_H #include #include diff --git a/qt/gen_qsurfaceformat.cpp b/qt/gen_qsurfaceformat.cpp index c7f60b03..6b41bb94 100644 --- a/qt/gen_qsurfaceformat.cpp +++ b/qt/gen_qsurfaceformat.cpp @@ -122,6 +122,20 @@ int QSurfaceFormat_MinorVersion(const QSurfaceFormat* self) { return self->minorVersion(); } +struct miqt_map /* tuple of int and int */ QSurfaceFormat_Version(const QSurfaceFormat* self) { + QPair _ret = self->version(); + // Convert QPair<> from C++ memory to manually-managed C memory + int* _first_arr = static_cast(malloc(sizeof(int))); + int* _second_arr = static_cast(malloc(sizeof(int))); + _first_arr[0] = _ret.first; + _second_arr[0] = _ret.second; + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + void QSurfaceFormat_SetVersion(QSurfaceFormat* self, int major, int minor) { self->setVersion(static_cast(major), static_cast(minor)); } diff --git a/qt/gen_qsurfaceformat.go b/qt/gen_qsurfaceformat.go index 6ada05be..7ba5dfc4 100644 --- a/qt/gen_qsurfaceformat.go +++ b/qt/gen_qsurfaceformat.go @@ -206,6 +206,23 @@ func (this *QSurfaceFormat) MinorVersion() int { return (int)(C.QSurfaceFormat_MinorVersion(this.h)) } +func (this *QSurfaceFormat) Version() struct { + First int + Second int +} { + var _mm C.struct_miqt_map = C.QSurfaceFormat_Version(this.h) + _First_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.values)) + _entry_First := (int)(_First_CArray[0]) + + _entry_Second := (int)(_Second_CArray[0]) + + return struct { + First int + Second int + }{First: _entry_First, Second: _entry_Second} +} + func (this *QSurfaceFormat) SetVersion(major int, minor int) { C.QSurfaceFormat_SetVersion(this.h, (C.int)(major), (C.int)(minor)) } diff --git a/qt/gen_qsurfaceformat.h b/qt/gen_qsurfaceformat.h index 58474399..841ae32f 100644 --- a/qt/gen_qsurfaceformat.h +++ b/qt/gen_qsurfaceformat.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSURFACEFORMAT_H -#define GEN_QSURFACEFORMAT_H +#pragma once +#ifndef MIQT_QT_GEN_QSURFACEFORMAT_H +#define MIQT_QT_GEN_QSURFACEFORMAT_H #include #include @@ -48,6 +49,7 @@ void QSurfaceFormat_SetMajorVersion(QSurfaceFormat* self, int majorVersion); int QSurfaceFormat_MajorVersion(const QSurfaceFormat* self); void QSurfaceFormat_SetMinorVersion(QSurfaceFormat* self, int minorVersion); int QSurfaceFormat_MinorVersion(const QSurfaceFormat* self); +struct miqt_map /* tuple of int and int */ QSurfaceFormat_Version(const QSurfaceFormat* self); void QSurfaceFormat_SetVersion(QSurfaceFormat* self, int major, int minor); bool QSurfaceFormat_Stereo(const QSurfaceFormat* self); void QSurfaceFormat_SetStereo(QSurfaceFormat* self, bool enable); diff --git a/qt/gen_qsyntaxhighlighter.h b/qt/gen_qsyntaxhighlighter.h index bdc5b1ac..7c7aea52 100644 --- a/qt/gen_qsyntaxhighlighter.h +++ b/qt/gen_qsyntaxhighlighter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSYNTAXHIGHLIGHTER_H -#define GEN_QSYNTAXHIGHLIGHTER_H +#pragma once +#ifndef MIQT_QT_GEN_QSYNTAXHIGHLIGHTER_H +#define MIQT_QT_GEN_QSYNTAXHIGHLIGHTER_H #include #include diff --git a/qt/gen_qsystemsemaphore.h b/qt/gen_qsystemsemaphore.h index 83761746..f3258d21 100644 --- a/qt/gen_qsystemsemaphore.h +++ b/qt/gen_qsystemsemaphore.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSYSTEMSEMAPHORE_H -#define GEN_QSYSTEMSEMAPHORE_H +#pragma once +#ifndef MIQT_QT_GEN_QSYSTEMSEMAPHORE_H +#define MIQT_QT_GEN_QSYSTEMSEMAPHORE_H #include #include diff --git a/qt/gen_qsystemtrayicon.h b/qt/gen_qsystemtrayicon.h index dbece986..d0a17d52 100644 --- a/qt/gen_qsystemtrayicon.h +++ b/qt/gen_qsystemtrayicon.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSYSTEMTRAYICON_H -#define GEN_QSYSTEMTRAYICON_H +#pragma once +#ifndef MIQT_QT_GEN_QSYSTEMTRAYICON_H +#define MIQT_QT_GEN_QSYSTEMTRAYICON_H #include #include diff --git a/qt/gen_qtabbar.h b/qt/gen_qtabbar.h index f4e718ca..7aa2baa6 100644 --- a/qt/gen_qtabbar.h +++ b/qt/gen_qtabbar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTABBAR_H -#define GEN_QTABBAR_H +#pragma once +#ifndef MIQT_QT_GEN_QTABBAR_H +#define MIQT_QT_GEN_QTABBAR_H #include #include diff --git a/qt/gen_qtableview.h b/qt/gen_qtableview.h index 445594b8..29de2c12 100644 --- a/qt/gen_qtableview.h +++ b/qt/gen_qtableview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTABLEVIEW_H -#define GEN_QTABLEVIEW_H +#pragma once +#ifndef MIQT_QT_GEN_QTABLEVIEW_H +#define MIQT_QT_GEN_QTABLEVIEW_H #include #include diff --git a/qt/gen_qtablewidget.cpp b/qt/gen_qtablewidget.cpp index c9a841e3..05386211 100644 --- a/qt/gen_qtablewidget.cpp +++ b/qt/gen_qtablewidget.cpp @@ -404,7 +404,7 @@ QTableWidgetItem* QTableWidget_TakeHorizontalHeaderItem(QTableWidget* self, int return self->takeHorizontalHeaderItem(static_cast(column)); } -void QTableWidget_SetVerticalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels) { +void QTableWidget_SetVerticalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels) { QStringList labels_QList; labels_QList.reserve(labels.len); struct miqt_string* labels_arr = static_cast(labels.data); @@ -415,7 +415,7 @@ void QTableWidget_SetVerticalHeaderLabels(QTableWidget* self, struct miqt_array self->setVerticalHeaderLabels(labels_QList); } -void QTableWidget_SetHorizontalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels) { +void QTableWidget_SetHorizontalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels) { QStringList labels_QList; labels_QList.reserve(labels.len); struct miqt_string* labels_arr = static_cast(labels.data); @@ -506,7 +506,7 @@ void QTableWidget_SetRangeSelected(QTableWidget* self, QTableWidgetSelectionRang self->setRangeSelected(*rangeVal, selectVal); } -struct miqt_array QTableWidget_SelectedRanges(const QTableWidget* self) { +struct miqt_array /* of QTableWidgetSelectionRange* */ QTableWidget_SelectedRanges(const QTableWidget* self) { QList _ret = self->selectedRanges(); // Convert QList<> from C++ memory to manually-managed C memory QTableWidgetSelectionRange** _arr = static_cast(malloc(sizeof(QTableWidgetSelectionRange*) * _ret.length())); @@ -519,7 +519,7 @@ struct miqt_array QTableWidget_SelectedRanges(const QTableWidget* self) { return _out; } -struct miqt_array QTableWidget_SelectedItems(const QTableWidget* self) { +struct miqt_array /* of QTableWidgetItem* */ QTableWidget_SelectedItems(const QTableWidget* self) { QList _ret = self->selectedItems(); // Convert QList<> from C++ memory to manually-managed C memory QTableWidgetItem** _arr = static_cast(malloc(sizeof(QTableWidgetItem*) * _ret.length())); @@ -532,7 +532,7 @@ struct miqt_array QTableWidget_SelectedItems(const QTableWidget* self) { return _out; } -struct miqt_array QTableWidget_FindItems(const QTableWidget* self, struct miqt_string text, int flags) { +struct miqt_array /* of QTableWidgetItem* */ QTableWidget_FindItems(const QTableWidget* self, struct miqt_string text, int flags) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->findItems(text_QString, static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/gen_qtablewidget.h b/qt/gen_qtablewidget.h index 022e0e78..ee7b4681 100644 --- a/qt/gen_qtablewidget.h +++ b/qt/gen_qtablewidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTABLEWIDGET_H -#define GEN_QTABLEWIDGET_H +#pragma once +#ifndef MIQT_QT_GEN_QTABLEWIDGET_H +#define MIQT_QT_GEN_QTABLEWIDGET_H #include #include @@ -130,8 +131,8 @@ QTableWidgetItem* QTableWidget_TakeVerticalHeaderItem(QTableWidget* self, int ro QTableWidgetItem* QTableWidget_HorizontalHeaderItem(const QTableWidget* self, int column); void QTableWidget_SetHorizontalHeaderItem(QTableWidget* self, int column, QTableWidgetItem* item); QTableWidgetItem* QTableWidget_TakeHorizontalHeaderItem(QTableWidget* self, int column); -void QTableWidget_SetVerticalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels); -void QTableWidget_SetHorizontalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels); +void QTableWidget_SetVerticalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels); +void QTableWidget_SetHorizontalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels); int QTableWidget_CurrentRow(const QTableWidget* self); int QTableWidget_CurrentColumn(const QTableWidget* self); QTableWidgetItem* QTableWidget_CurrentItem(const QTableWidget* self); @@ -152,9 +153,9 @@ void QTableWidget_RemoveCellWidget(QTableWidget* self, int row, int column); bool QTableWidget_IsItemSelected(const QTableWidget* self, QTableWidgetItem* item); void QTableWidget_SetItemSelected(QTableWidget* self, QTableWidgetItem* item, bool selectVal); void QTableWidget_SetRangeSelected(QTableWidget* self, QTableWidgetSelectionRange* rangeVal, bool selectVal); -struct miqt_array QTableWidget_SelectedRanges(const QTableWidget* self); -struct miqt_array QTableWidget_SelectedItems(const QTableWidget* self); -struct miqt_array QTableWidget_FindItems(const QTableWidget* self, struct miqt_string text, int flags); +struct miqt_array /* of QTableWidgetSelectionRange* */ QTableWidget_SelectedRanges(const QTableWidget* self); +struct miqt_array /* of QTableWidgetItem* */ QTableWidget_SelectedItems(const QTableWidget* self); +struct miqt_array /* of QTableWidgetItem* */ QTableWidget_FindItems(const QTableWidget* self, struct miqt_string text, int flags); int QTableWidget_VisualRow(const QTableWidget* self, int logicalRow); int QTableWidget_VisualColumn(const QTableWidget* self, int logicalColumn); QTableWidgetItem* QTableWidget_ItemAt(const QTableWidget* self, QPoint* p); diff --git a/qt/gen_qtabwidget.h b/qt/gen_qtabwidget.h index 7c48fc3e..57a37f6b 100644 --- a/qt/gen_qtabwidget.h +++ b/qt/gen_qtabwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTABWIDGET_H -#define GEN_QTABWIDGET_H +#pragma once +#ifndef MIQT_QT_GEN_QTABWIDGET_H +#define MIQT_QT_GEN_QTABWIDGET_H #include #include diff --git a/qt/gen_qtemporarydir.h b/qt/gen_qtemporarydir.h index b4103844..30d5f889 100644 --- a/qt/gen_qtemporarydir.h +++ b/qt/gen_qtemporarydir.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEMPORARYDIR_H -#define GEN_QTEMPORARYDIR_H +#pragma once +#ifndef MIQT_QT_GEN_QTEMPORARYDIR_H +#define MIQT_QT_GEN_QTEMPORARYDIR_H #include #include diff --git a/qt/gen_qtemporaryfile.h b/qt/gen_qtemporaryfile.h index cddc2a11..94045b96 100644 --- a/qt/gen_qtemporaryfile.h +++ b/qt/gen_qtemporaryfile.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEMPORARYFILE_H -#define GEN_QTEMPORARYFILE_H +#pragma once +#ifndef MIQT_QT_GEN_QTEMPORARYFILE_H +#define MIQT_QT_GEN_QTEMPORARYFILE_H #include #include diff --git a/qt/gen_qtextboundaryfinder.h b/qt/gen_qtextboundaryfinder.h index 3c4106fb..c0b5b38f 100644 --- a/qt/gen_qtextboundaryfinder.h +++ b/qt/gen_qtextboundaryfinder.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTBOUNDARYFINDER_H -#define GEN_QTEXTBOUNDARYFINDER_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTBOUNDARYFINDER_H +#define MIQT_QT_GEN_QTEXTBOUNDARYFINDER_H #include #include diff --git a/qt/gen_qtextbrowser.cpp b/qt/gen_qtextbrowser.cpp index 6e872e7a..e0578246 100644 --- a/qt/gen_qtextbrowser.cpp +++ b/qt/gen_qtextbrowser.cpp @@ -58,7 +58,7 @@ int QTextBrowser_SourceType(const QTextBrowser* self) { return static_cast(_ret); } -struct miqt_array QTextBrowser_SearchPaths(const QTextBrowser* self) { +struct miqt_array /* of struct miqt_string */ QTextBrowser_SearchPaths(const QTextBrowser* self) { QStringList _ret = self->searchPaths(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -78,7 +78,7 @@ struct miqt_array QTextBrowser_SearchPaths(const QTextBrowser* self) { return _out; } -void QTextBrowser_SetSearchPaths(QTextBrowser* self, struct miqt_array /* of struct miqt_string */ paths) { +void QTextBrowser_SetSearchPaths(QTextBrowser* self, struct miqt_array /* of struct miqt_string */ paths) { QStringList paths_QList; paths_QList.reserve(paths.len); struct miqt_string* paths_arr = static_cast(paths.data); diff --git a/qt/gen_qtextbrowser.h b/qt/gen_qtextbrowser.h index 239f8b21..e46dffe8 100644 --- a/qt/gen_qtextbrowser.h +++ b/qt/gen_qtextbrowser.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTBROWSER_H -#define GEN_QTEXTBROWSER_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTBROWSER_H +#define MIQT_QT_GEN_QTEXTBROWSER_H #include #include @@ -35,8 +36,8 @@ struct miqt_string QTextBrowser_Tr(const char* s); struct miqt_string QTextBrowser_TrUtf8(const char* s); QUrl* QTextBrowser_Source(const QTextBrowser* self); int QTextBrowser_SourceType(const QTextBrowser* self); -struct miqt_array QTextBrowser_SearchPaths(const QTextBrowser* self); -void QTextBrowser_SetSearchPaths(QTextBrowser* self, struct miqt_array /* of struct miqt_string */ paths); +struct miqt_array /* of struct miqt_string */ QTextBrowser_SearchPaths(const QTextBrowser* self); +void QTextBrowser_SetSearchPaths(QTextBrowser* self, struct miqt_array /* of struct miqt_string */ paths); QVariant* QTextBrowser_LoadResource(QTextBrowser* self, int typeVal, QUrl* name); bool QTextBrowser_IsBackwardAvailable(const QTextBrowser* self); bool QTextBrowser_IsForwardAvailable(const QTextBrowser* self); diff --git a/qt/gen_qtextcodec.cpp b/qt/gen_qtextcodec.cpp index c8c43e14..8d405203 100644 --- a/qt/gen_qtextcodec.cpp +++ b/qt/gen_qtextcodec.cpp @@ -25,7 +25,7 @@ QTextCodec* QTextCodec_CodecForMib(int mib) { return QTextCodec::codecForMib(static_cast(mib)); } -struct miqt_array QTextCodec_AvailableCodecs() { +struct miqt_array /* of struct miqt_string */ QTextCodec_AvailableCodecs() { QList _ret = QTextCodec::availableCodecs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -43,7 +43,7 @@ struct miqt_array QTextCodec_AvailableCodecs() { return _out; } -struct miqt_array QTextCodec_AvailableMibs() { +struct miqt_array /* of int */ QTextCodec_AvailableMibs() { QList _ret = QTextCodec::availableMibs(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -163,7 +163,7 @@ struct miqt_string QTextCodec_Name(const QTextCodec* self) { return _ms; } -struct miqt_array QTextCodec_Aliases(const QTextCodec* self) { +struct miqt_array /* of struct miqt_string */ QTextCodec_Aliases(const QTextCodec* self) { QList _ret = self->aliases(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qtextcodec.h b/qt/gen_qtextcodec.h index 106d974b..b1ebefd9 100644 --- a/qt/gen_qtextcodec.h +++ b/qt/gen_qtextcodec.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTCODEC_H -#define GEN_QTEXTCODEC_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTCODEC_H +#define MIQT_QT_GEN_QTEXTCODEC_H #include #include @@ -36,8 +37,8 @@ typedef struct QTextEncoder QTextEncoder; QTextCodec* QTextCodec_CodecForName(struct miqt_string name); QTextCodec* QTextCodec_CodecForNameWithName(const char* name); QTextCodec* QTextCodec_CodecForMib(int mib); -struct miqt_array QTextCodec_AvailableCodecs(); -struct miqt_array QTextCodec_AvailableMibs(); +struct miqt_array /* of struct miqt_string */ QTextCodec_AvailableCodecs(); +struct miqt_array /* of int */ QTextCodec_AvailableMibs(); QTextCodec* QTextCodec_CodecForLocale(); void QTextCodec_SetCodecForLocale(QTextCodec* c); QTextCodec* QTextCodec_CodecForHtml(struct miqt_string ba); @@ -54,7 +55,7 @@ struct miqt_string QTextCodec_FromUnicode2(const QTextCodec* self, QChar* in, in QTextDecoder* QTextCodec_MakeDecoder(const QTextCodec* self); QTextEncoder* QTextCodec_MakeEncoder(const QTextCodec* self); struct miqt_string QTextCodec_Name(const QTextCodec* self); -struct miqt_array QTextCodec_Aliases(const QTextCodec* self); +struct miqt_array /* of struct miqt_string */ QTextCodec_Aliases(const QTextCodec* self); int QTextCodec_MibEnum(const QTextCodec* self); struct miqt_string QTextCodec_ToUnicode3(const QTextCodec* self, const char* in, int length, QTextCodec__ConverterState* state); struct miqt_string QTextCodec_FromUnicode3(const QTextCodec* self, QChar* in, int length, QTextCodec__ConverterState* state); diff --git a/qt/gen_qtextcursor.h b/qt/gen_qtextcursor.h index 17cc8d1b..8550cc3a 100644 --- a/qt/gen_qtextcursor.h +++ b/qt/gen_qtextcursor.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTCURSOR_H -#define GEN_QTEXTCURSOR_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTCURSOR_H +#define MIQT_QT_GEN_QTEXTCURSOR_H #include #include diff --git a/qt/gen_qtextdocument.cpp b/qt/gen_qtextdocument.cpp index f57132ac..7183a8dd 100644 --- a/qt/gen_qtextdocument.cpp +++ b/qt/gen_qtextdocument.cpp @@ -325,7 +325,7 @@ void QTextDocument_AddResource(QTextDocument* self, int typeVal, QUrl* name, QVa self->addResource(static_cast(typeVal), *name, *resource); } -struct miqt_array QTextDocument_AllFormats(const QTextDocument* self) { +struct miqt_array /* of QTextFormat* */ QTextDocument_AllFormats(const QTextDocument* self) { QVector _ret = self->allFormats(); // Convert QList<> from C++ memory to manually-managed C memory QTextFormat** _arr = static_cast(malloc(sizeof(QTextFormat*) * _ret.length())); diff --git a/qt/gen_qtextdocument.h b/qt/gen_qtextdocument.h index 29a40241..f28f1994 100644 --- a/qt/gen_qtextdocument.h +++ b/qt/gen_qtextdocument.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTDOCUMENT_H -#define GEN_QTEXTDOCUMENT_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTDOCUMENT_H +#define MIQT_QT_GEN_QTEXTDOCUMENT_H #include #include @@ -122,7 +123,7 @@ bool QTextDocument_IsModified(const QTextDocument* self); void QTextDocument_Print(const QTextDocument* self, QPagedPaintDevice* printer); QVariant* QTextDocument_Resource(const QTextDocument* self, int typeVal, QUrl* name); void QTextDocument_AddResource(QTextDocument* self, int typeVal, QUrl* name, QVariant* resource); -struct miqt_array QTextDocument_AllFormats(const QTextDocument* self); +struct miqt_array /* of QTextFormat* */ QTextDocument_AllFormats(const QTextDocument* self); void QTextDocument_MarkContentsDirty(QTextDocument* self, int from, int length); void QTextDocument_SetUseDesignMetrics(QTextDocument* self, bool b); bool QTextDocument_UseDesignMetrics(const QTextDocument* self); diff --git a/qt/gen_qtextdocumentfragment.h b/qt/gen_qtextdocumentfragment.h index a0235752..53b5a244 100644 --- a/qt/gen_qtextdocumentfragment.h +++ b/qt/gen_qtextdocumentfragment.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTDOCUMENTFRAGMENT_H -#define GEN_QTEXTDOCUMENTFRAGMENT_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTDOCUMENTFRAGMENT_H +#define MIQT_QT_GEN_QTEXTDOCUMENTFRAGMENT_H #include #include diff --git a/qt/gen_qtextdocumentwriter.cpp b/qt/gen_qtextdocumentwriter.cpp index de68a11f..db5ee319 100644 --- a/qt/gen_qtextdocumentwriter.cpp +++ b/qt/gen_qtextdocumentwriter.cpp @@ -86,7 +86,7 @@ QTextCodec* QTextDocumentWriter_Codec(const QTextDocumentWriter* self) { return self->codec(); } -struct miqt_array QTextDocumentWriter_SupportedDocumentFormats() { +struct miqt_array /* of struct miqt_string */ QTextDocumentWriter_SupportedDocumentFormats() { QList _ret = QTextDocumentWriter::supportedDocumentFormats(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/gen_qtextdocumentwriter.h b/qt/gen_qtextdocumentwriter.h index 824e7c43..b71e3544 100644 --- a/qt/gen_qtextdocumentwriter.h +++ b/qt/gen_qtextdocumentwriter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTDOCUMENTWRITER_H -#define GEN_QTEXTDOCUMENTWRITER_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTDOCUMENTWRITER_H +#define MIQT_QT_GEN_QTEXTDOCUMENTWRITER_H #include #include @@ -43,7 +44,7 @@ bool QTextDocumentWriter_Write(QTextDocumentWriter* self, QTextDocument* documen bool QTextDocumentWriter_WriteWithFragment(QTextDocumentWriter* self, QTextDocumentFragment* fragment); void QTextDocumentWriter_SetCodec(QTextDocumentWriter* self, QTextCodec* codec); QTextCodec* QTextDocumentWriter_Codec(const QTextDocumentWriter* self); -struct miqt_array QTextDocumentWriter_SupportedDocumentFormats(); +struct miqt_array /* of struct miqt_string */ QTextDocumentWriter_SupportedDocumentFormats(); void QTextDocumentWriter_Delete(QTextDocumentWriter* self); #ifdef __cplusplus diff --git a/qt/gen_qtextedit.cpp b/qt/gen_qtextedit.cpp index 82283b26..aaff37f2 100644 --- a/qt/gen_qtextedit.cpp +++ b/qt/gen_qtextedit.cpp @@ -370,7 +370,7 @@ void QTextEdit_SetAcceptRichText(QTextEdit* self, bool accept) { self->setAcceptRichText(accept); } -void QTextEdit_SetExtraSelections(QTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections) { +void QTextEdit_SetExtraSelections(QTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections) { QList selections_QList; selections_QList.reserve(selections.len); QTextEdit__ExtraSelection** selections_arr = static_cast(selections.data); @@ -380,7 +380,7 @@ void QTextEdit_SetExtraSelections(QTextEdit* self, struct miqt_array /* of QText self->setExtraSelections(selections_QList); } -struct miqt_array QTextEdit_ExtraSelections(const QTextEdit* self) { +struct miqt_array /* of QTextEdit__ExtraSelection* */ QTextEdit_ExtraSelections(const QTextEdit* self) { QList _ret = self->extraSelections(); // Convert QList<> from C++ memory to manually-managed C memory QTextEdit__ExtraSelection** _arr = static_cast(malloc(sizeof(QTextEdit__ExtraSelection*) * _ret.length())); diff --git a/qt/gen_qtextedit.h b/qt/gen_qtextedit.h index b97caa08..b8acdd31 100644 --- a/qt/gen_qtextedit.h +++ b/qt/gen_qtextedit.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTEDIT_H -#define GEN_QTEXTEDIT_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTEDIT_H +#define MIQT_QT_GEN_QTEXTEDIT_H #include #include @@ -123,8 +124,8 @@ int QTextEdit_CursorWidth(const QTextEdit* self); void QTextEdit_SetCursorWidth(QTextEdit* self, int width); bool QTextEdit_AcceptRichText(const QTextEdit* self); void QTextEdit_SetAcceptRichText(QTextEdit* self, bool accept); -void QTextEdit_SetExtraSelections(QTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections); -struct miqt_array QTextEdit_ExtraSelections(const QTextEdit* self); +void QTextEdit_SetExtraSelections(QTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections); +struct miqt_array /* of QTextEdit__ExtraSelection* */ QTextEdit_ExtraSelections(const QTextEdit* self); void QTextEdit_MoveCursor(QTextEdit* self, int operation); bool QTextEdit_CanPaste(const QTextEdit* self); void QTextEdit_Print(const QTextEdit* self, QPagedPaintDevice* printer); diff --git a/qt/gen_qtextformat.cpp b/qt/gen_qtextformat.cpp index ea06dd89..29e50015 100644 --- a/qt/gen_qtextformat.cpp +++ b/qt/gen_qtextformat.cpp @@ -161,7 +161,7 @@ QTextLength* QTextFormat_LengthProperty(const QTextFormat* self, int propertyId) return new QTextLength(self->lengthProperty(static_cast(propertyId))); } -struct miqt_array QTextFormat_LengthVectorProperty(const QTextFormat* self, int propertyId) { +struct miqt_array /* of QTextLength* */ QTextFormat_LengthVectorProperty(const QTextFormat* self, int propertyId) { QVector _ret = self->lengthVectorProperty(static_cast(propertyId)); // Convert QList<> from C++ memory to manually-managed C memory QTextLength** _arr = static_cast(malloc(sizeof(QTextLength*) * _ret.length())); @@ -174,7 +174,7 @@ struct miqt_array QTextFormat_LengthVectorProperty(const QTextFormat* self, int return _out; } -void QTextFormat_SetProperty2(QTextFormat* self, int propertyId, struct miqt_array /* of QTextLength* */ lengths) { +void QTextFormat_SetProperty2(QTextFormat* self, int propertyId, struct miqt_array /* of QTextLength* */ lengths) { QVector lengths_QList; lengths_QList.reserve(lengths.len); QTextLength** lengths_arr = static_cast(lengths.data); @@ -184,7 +184,7 @@ void QTextFormat_SetProperty2(QTextFormat* self, int propertyId, struct miqt_arr self->setProperty(static_cast(propertyId), lengths_QList); } -struct miqt_map QTextFormat_Properties(const QTextFormat* self) { +struct miqt_map /* of int to QVariant* */ QTextFormat_Properties(const QTextFormat* self) { QMap _ret = self->properties(); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -355,7 +355,7 @@ struct miqt_string QTextCharFormat_FontFamily(const QTextCharFormat* self) { return _ms; } -void QTextCharFormat_SetFontFamilies(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ families) { +void QTextCharFormat_SetFontFamilies(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ families) { QStringList families_QList; families_QList.reserve(families.len); struct miqt_string* families_arr = static_cast(families.data); @@ -605,7 +605,7 @@ struct miqt_string QTextCharFormat_AnchorName(const QTextCharFormat* self) { return _ms; } -void QTextCharFormat_SetAnchorNames(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ names) { +void QTextCharFormat_SetAnchorNames(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ names) { QStringList names_QList; names_QList.reserve(names.len); struct miqt_string* names_arr = static_cast(names.data); @@ -616,7 +616,7 @@ void QTextCharFormat_SetAnchorNames(QTextCharFormat* self, struct miqt_array /* self->setAnchorNames(names_QList); } -struct miqt_array QTextCharFormat_AnchorNames(const QTextCharFormat* self) { +struct miqt_array /* of struct miqt_string */ QTextCharFormat_AnchorNames(const QTextCharFormat* self) { QStringList _ret = self->anchorNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -777,7 +777,7 @@ int QTextBlockFormat_PageBreakPolicy(const QTextBlockFormat* self) { return static_cast(_ret); } -void QTextBlockFormat_SetTabPositions(QTextBlockFormat* self, struct miqt_array /* of QTextOption__Tab* */ tabs) { +void QTextBlockFormat_SetTabPositions(QTextBlockFormat* self, struct miqt_array /* of QTextOption__Tab* */ tabs) { QList tabs_QList; tabs_QList.reserve(tabs.len); QTextOption__Tab** tabs_arr = static_cast(tabs.data); @@ -787,7 +787,7 @@ void QTextBlockFormat_SetTabPositions(QTextBlockFormat* self, struct miqt_array self->setTabPositions(tabs_QList); } -struct miqt_array QTextBlockFormat_TabPositions(const QTextBlockFormat* self) { +struct miqt_array /* of QTextOption__Tab* */ QTextBlockFormat_TabPositions(const QTextBlockFormat* self) { QList _ret = self->tabPositions(); // Convert QList<> from C++ memory to manually-managed C memory QTextOption__Tab** _arr = static_cast(malloc(sizeof(QTextOption__Tab*) * _ret.length())); @@ -1090,7 +1090,7 @@ void QTextTableFormat_SetColumns(QTextTableFormat* self, int columns) { self->setColumns(static_cast(columns)); } -void QTextTableFormat_SetColumnWidthConstraints(QTextTableFormat* self, struct miqt_array /* of QTextLength* */ constraints) { +void QTextTableFormat_SetColumnWidthConstraints(QTextTableFormat* self, struct miqt_array /* of QTextLength* */ constraints) { QVector constraints_QList; constraints_QList.reserve(constraints.len); QTextLength** constraints_arr = static_cast(constraints.data); @@ -1100,7 +1100,7 @@ void QTextTableFormat_SetColumnWidthConstraints(QTextTableFormat* self, struct m self->setColumnWidthConstraints(constraints_QList); } -struct miqt_array QTextTableFormat_ColumnWidthConstraints(const QTextTableFormat* self) { +struct miqt_array /* of QTextLength* */ QTextTableFormat_ColumnWidthConstraints(const QTextTableFormat* self) { QVector _ret = self->columnWidthConstraints(); // Convert QList<> from C++ memory to manually-managed C memory QTextLength** _arr = static_cast(malloc(sizeof(QTextLength*) * _ret.length())); diff --git a/qt/gen_qtextformat.h b/qt/gen_qtextformat.h index 41e06146..f21e9f09 100644 --- a/qt/gen_qtextformat.h +++ b/qt/gen_qtextformat.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTFORMAT_H -#define GEN_QTEXTFORMAT_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTFORMAT_H +#define MIQT_QT_GEN_QTEXTFORMAT_H #include #include @@ -84,9 +85,9 @@ QColor* QTextFormat_ColorProperty(const QTextFormat* self, int propertyId); QPen* QTextFormat_PenProperty(const QTextFormat* self, int propertyId); QBrush* QTextFormat_BrushProperty(const QTextFormat* self, int propertyId); QTextLength* QTextFormat_LengthProperty(const QTextFormat* self, int propertyId); -struct miqt_array QTextFormat_LengthVectorProperty(const QTextFormat* self, int propertyId); -void QTextFormat_SetProperty2(QTextFormat* self, int propertyId, struct miqt_array /* of QTextLength* */ lengths); -struct miqt_map QTextFormat_Properties(const QTextFormat* self); +struct miqt_array /* of QTextLength* */ QTextFormat_LengthVectorProperty(const QTextFormat* self, int propertyId); +void QTextFormat_SetProperty2(QTextFormat* self, int propertyId, struct miqt_array /* of QTextLength* */ lengths); +struct miqt_map /* of int to QVariant* */ QTextFormat_Properties(const QTextFormat* self); int QTextFormat_PropertyCount(const QTextFormat* self); void QTextFormat_SetObjectType(QTextFormat* self, int typeVal); int QTextFormat_ObjectType(const QTextFormat* self); @@ -124,7 +125,7 @@ void QTextCharFormat_SetFontWithFont(QTextCharFormat* self, QFont* font); QFont* QTextCharFormat_Font(const QTextCharFormat* self); void QTextCharFormat_SetFontFamily(QTextCharFormat* self, struct miqt_string family); struct miqt_string QTextCharFormat_FontFamily(const QTextCharFormat* self); -void QTextCharFormat_SetFontFamilies(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ families); +void QTextCharFormat_SetFontFamilies(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ families); QVariant* QTextCharFormat_FontFamilies(const QTextCharFormat* self); void QTextCharFormat_SetFontStyleName(QTextCharFormat* self, struct miqt_string styleName); QVariant* QTextCharFormat_FontStyleName(const QTextCharFormat* self); @@ -176,8 +177,8 @@ void QTextCharFormat_SetAnchorHref(QTextCharFormat* self, struct miqt_string val struct miqt_string QTextCharFormat_AnchorHref(const QTextCharFormat* self); void QTextCharFormat_SetAnchorName(QTextCharFormat* self, struct miqt_string name); struct miqt_string QTextCharFormat_AnchorName(const QTextCharFormat* self); -void QTextCharFormat_SetAnchorNames(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ names); -struct miqt_array QTextCharFormat_AnchorNames(const QTextCharFormat* self); +void QTextCharFormat_SetAnchorNames(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ names); +struct miqt_array /* of struct miqt_string */ QTextCharFormat_AnchorNames(const QTextCharFormat* self); void QTextCharFormat_SetTableCellRowSpan(QTextCharFormat* self, int tableCellRowSpan); int QTextCharFormat_TableCellRowSpan(const QTextCharFormat* self); void QTextCharFormat_SetTableCellColumnSpan(QTextCharFormat* self, int tableCellColumnSpan); @@ -212,8 +213,8 @@ void QTextBlockFormat_SetNonBreakableLines(QTextBlockFormat* self, bool b); bool QTextBlockFormat_NonBreakableLines(const QTextBlockFormat* self); void QTextBlockFormat_SetPageBreakPolicy(QTextBlockFormat* self, int flags); int QTextBlockFormat_PageBreakPolicy(const QTextBlockFormat* self); -void QTextBlockFormat_SetTabPositions(QTextBlockFormat* self, struct miqt_array /* of QTextOption__Tab* */ tabs); -struct miqt_array QTextBlockFormat_TabPositions(const QTextBlockFormat* self); +void QTextBlockFormat_SetTabPositions(QTextBlockFormat* self, struct miqt_array /* of QTextOption__Tab* */ tabs); +struct miqt_array /* of QTextOption__Tab* */ QTextBlockFormat_TabPositions(const QTextBlockFormat* self); void QTextBlockFormat_SetMarker(QTextBlockFormat* self, int marker); int QTextBlockFormat_Marker(const QTextBlockFormat* self); void QTextBlockFormat_Delete(QTextBlockFormat* self); @@ -281,8 +282,8 @@ QTextTableFormat* QTextTableFormat_new(); bool QTextTableFormat_IsValid(const QTextTableFormat* self); int QTextTableFormat_Columns(const QTextTableFormat* self); void QTextTableFormat_SetColumns(QTextTableFormat* self, int columns); -void QTextTableFormat_SetColumnWidthConstraints(QTextTableFormat* self, struct miqt_array /* of QTextLength* */ constraints); -struct miqt_array QTextTableFormat_ColumnWidthConstraints(const QTextTableFormat* self); +void QTextTableFormat_SetColumnWidthConstraints(QTextTableFormat* self, struct miqt_array /* of QTextLength* */ constraints); +struct miqt_array /* of QTextLength* */ QTextTableFormat_ColumnWidthConstraints(const QTextTableFormat* self); void QTextTableFormat_ClearColumnWidthConstraints(QTextTableFormat* self); double QTextTableFormat_CellSpacing(const QTextTableFormat* self); void QTextTableFormat_SetCellSpacing(QTextTableFormat* self, double spacing); diff --git a/qt/gen_qtextlayout.cpp b/qt/gen_qtextlayout.cpp index 21d7ba51..fd7d30f2 100644 --- a/qt/gen_qtextlayout.cpp +++ b/qt/gen_qtextlayout.cpp @@ -166,7 +166,7 @@ struct miqt_string QTextLayout_PreeditAreaText(const QTextLayout* self) { return _ms; } -void QTextLayout_SetAdditionalFormats(QTextLayout* self, struct miqt_array /* of QTextLayout__FormatRange* */ overrides) { +void QTextLayout_SetAdditionalFormats(QTextLayout* self, struct miqt_array /* of QTextLayout__FormatRange* */ overrides) { QList overrides_QList; overrides_QList.reserve(overrides.len); QTextLayout__FormatRange** overrides_arr = static_cast(overrides.data); @@ -176,7 +176,7 @@ void QTextLayout_SetAdditionalFormats(QTextLayout* self, struct miqt_array /* of self->setAdditionalFormats(overrides_QList); } -struct miqt_array QTextLayout_AdditionalFormats(const QTextLayout* self) { +struct miqt_array /* of QTextLayout__FormatRange* */ QTextLayout_AdditionalFormats(const QTextLayout* self) { QList _ret = self->additionalFormats(); // Convert QList<> from C++ memory to manually-managed C memory QTextLayout__FormatRange** _arr = static_cast(malloc(sizeof(QTextLayout__FormatRange*) * _ret.length())); @@ -193,7 +193,7 @@ void QTextLayout_ClearAdditionalFormats(QTextLayout* self) { self->clearAdditionalFormats(); } -void QTextLayout_SetFormats(QTextLayout* self, struct miqt_array /* of QTextLayout__FormatRange* */ overrides) { +void QTextLayout_SetFormats(QTextLayout* self, struct miqt_array /* of QTextLayout__FormatRange* */ overrides) { QVector overrides_QList; overrides_QList.reserve(overrides.len); QTextLayout__FormatRange** overrides_arr = static_cast(overrides.data); @@ -203,7 +203,7 @@ void QTextLayout_SetFormats(QTextLayout* self, struct miqt_array /* of QTextLayo self->setFormats(overrides_QList); } -struct miqt_array QTextLayout_Formats(const QTextLayout* self) { +struct miqt_array /* of QTextLayout__FormatRange* */ QTextLayout_Formats(const QTextLayout* self) { QVector _ret = self->formats(); // Convert QList<> from C++ memory to manually-managed C memory QTextLayout__FormatRange** _arr = static_cast(malloc(sizeof(QTextLayout__FormatRange*) * _ret.length())); @@ -319,7 +319,7 @@ double QTextLayout_MaximumWidth(const QTextLayout* self) { return static_cast(_ret); } -struct miqt_array QTextLayout_GlyphRuns(const QTextLayout* self) { +struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns(const QTextLayout* self) { QList _ret = self->glyphRuns(); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); @@ -344,7 +344,7 @@ int QTextLayout_PreviousCursorPosition2(const QTextLayout* self, int oldPos, int return self->previousCursorPosition(static_cast(oldPos), static_cast(mode)); } -void QTextLayout_Draw3(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections) { +void QTextLayout_Draw3(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections) { QVector selections_QList; selections_QList.reserve(selections.len); QTextLayout__FormatRange** selections_arr = static_cast(selections.data); @@ -354,7 +354,7 @@ void QTextLayout_Draw3(const QTextLayout* self, QPainter* p, QPointF* pos, struc self->draw(p, *pos, selections_QList); } -void QTextLayout_Draw4(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections, QRectF* clip) { +void QTextLayout_Draw4(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections, QRectF* clip) { QVector selections_QList; selections_QList.reserve(selections.len); QTextLayout__FormatRange** selections_arr = static_cast(selections.data); @@ -364,7 +364,7 @@ void QTextLayout_Draw4(const QTextLayout* self, QPainter* p, QPointF* pos, struc self->draw(p, *pos, selections_QList, *clip); } -struct miqt_array QTextLayout_GlyphRuns1(const QTextLayout* self, int from) { +struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns1(const QTextLayout* self, int from) { QList _ret = self->glyphRuns(static_cast(from)); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); @@ -377,7 +377,7 @@ struct miqt_array QTextLayout_GlyphRuns1(const QTextLayout* self, int from) { return _out; } -struct miqt_array QTextLayout_GlyphRuns2(const QTextLayout* self, int from, int length) { +struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns2(const QTextLayout* self, int from, int length) { QList _ret = self->glyphRuns(static_cast(from), static_cast(length)); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); @@ -513,7 +513,7 @@ void QTextLine_Draw(const QTextLine* self, QPainter* p, QPointF* point) { self->draw(p, *point); } -struct miqt_array QTextLine_GlyphRuns(const QTextLine* self) { +struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns(const QTextLine* self) { QList _ret = self->glyphRuns(); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); @@ -544,7 +544,7 @@ void QTextLine_Draw3(const QTextLine* self, QPainter* p, QPointF* point, QTextLa self->draw(p, *point, selection); } -struct miqt_array QTextLine_GlyphRuns1(const QTextLine* self, int from) { +struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns1(const QTextLine* self, int from) { QList _ret = self->glyphRuns(static_cast(from)); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); @@ -557,7 +557,7 @@ struct miqt_array QTextLine_GlyphRuns1(const QTextLine* self, int from) { return _out; } -struct miqt_array QTextLine_GlyphRuns2(const QTextLine* self, int from, int length) { +struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns2(const QTextLine* self, int from, int length) { QList _ret = self->glyphRuns(static_cast(from), static_cast(length)); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); diff --git a/qt/gen_qtextlayout.h b/qt/gen_qtextlayout.h index 4e9dccf6..34e42c75 100644 --- a/qt/gen_qtextlayout.h +++ b/qt/gen_qtextlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTLAYOUT_H -#define GEN_QTEXTLAYOUT_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTLAYOUT_H +#define MIQT_QT_GEN_QTEXTLAYOUT_H #include #include @@ -80,11 +81,11 @@ QTextOption* QTextLayout_TextOption(const QTextLayout* self); void QTextLayout_SetPreeditArea(QTextLayout* self, int position, struct miqt_string text); int QTextLayout_PreeditAreaPosition(const QTextLayout* self); struct miqt_string QTextLayout_PreeditAreaText(const QTextLayout* self); -void QTextLayout_SetAdditionalFormats(QTextLayout* self, struct miqt_array /* of QTextLayout__FormatRange* */ overrides); -struct miqt_array QTextLayout_AdditionalFormats(const QTextLayout* self); +void QTextLayout_SetAdditionalFormats(QTextLayout* self, struct miqt_array /* of QTextLayout__FormatRange* */ overrides); +struct miqt_array /* of QTextLayout__FormatRange* */ QTextLayout_AdditionalFormats(const QTextLayout* self); void QTextLayout_ClearAdditionalFormats(QTextLayout* self); -void QTextLayout_SetFormats(QTextLayout* self, struct miqt_array /* of QTextLayout__FormatRange* */ overrides); -struct miqt_array QTextLayout_Formats(const QTextLayout* self); +void QTextLayout_SetFormats(QTextLayout* self, struct miqt_array /* of QTextLayout__FormatRange* */ overrides); +struct miqt_array /* of QTextLayout__FormatRange* */ QTextLayout_Formats(const QTextLayout* self); void QTextLayout_ClearFormats(QTextLayout* self); void QTextLayout_SetCacheEnabled(QTextLayout* self, bool enable); bool QTextLayout_CacheEnabled(const QTextLayout* self); @@ -110,14 +111,14 @@ void QTextLayout_SetPosition(QTextLayout* self, QPointF* p); QRectF* QTextLayout_BoundingRect(const QTextLayout* self); double QTextLayout_MinimumWidth(const QTextLayout* self); double QTextLayout_MaximumWidth(const QTextLayout* self); -struct miqt_array QTextLayout_GlyphRuns(const QTextLayout* self); +struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns(const QTextLayout* self); void QTextLayout_SetFlags(QTextLayout* self, int flags); int QTextLayout_NextCursorPosition2(const QTextLayout* self, int oldPos, int mode); int QTextLayout_PreviousCursorPosition2(const QTextLayout* self, int oldPos, int mode); -void QTextLayout_Draw3(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections); -void QTextLayout_Draw4(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections, QRectF* clip); -struct miqt_array QTextLayout_GlyphRuns1(const QTextLayout* self, int from); -struct miqt_array QTextLayout_GlyphRuns2(const QTextLayout* self, int from, int length); +void QTextLayout_Draw3(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections); +void QTextLayout_Draw4(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections, QRectF* clip); +struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns1(const QTextLayout* self, int from); +struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns2(const QTextLayout* self, int from, int length); void QTextLayout_Delete(QTextLayout* self); QTextLine* QTextLine_new(); @@ -147,13 +148,13 @@ int QTextLine_TextStart(const QTextLine* self); int QTextLine_TextLength(const QTextLine* self); int QTextLine_LineNumber(const QTextLine* self); void QTextLine_Draw(const QTextLine* self, QPainter* p, QPointF* point); -struct miqt_array QTextLine_GlyphRuns(const QTextLine* self); +struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns(const QTextLine* self); double QTextLine_CursorToX2(const QTextLine* self, int* cursorPos, int edge); double QTextLine_CursorToX22(const QTextLine* self, int cursorPos, int edge); int QTextLine_XToCursor2(const QTextLine* self, double x, int param2); void QTextLine_Draw3(const QTextLine* self, QPainter* p, QPointF* point, QTextLayout__FormatRange* selection); -struct miqt_array QTextLine_GlyphRuns1(const QTextLine* self, int from); -struct miqt_array QTextLine_GlyphRuns2(const QTextLine* self, int from, int length); +struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns1(const QTextLine* self, int from); +struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns2(const QTextLine* self, int from, int length); void QTextLine_Delete(QTextLine* self); void QTextLayout__FormatRange_Delete(QTextLayout__FormatRange* self); diff --git a/qt/gen_qtextlist.h b/qt/gen_qtextlist.h index ff130def..a6c22090 100644 --- a/qt/gen_qtextlist.h +++ b/qt/gen_qtextlist.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTLIST_H -#define GEN_QTEXTLIST_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTLIST_H +#define MIQT_QT_GEN_QTEXTLIST_H #include #include diff --git a/qt/gen_qtextobject.cpp b/qt/gen_qtextobject.cpp index 6ee4e9d3..49b0d1e8 100644 --- a/qt/gen_qtextobject.cpp +++ b/qt/gen_qtextobject.cpp @@ -264,7 +264,7 @@ void QTextFrame_SetLayoutData(QTextFrame* self, QTextFrameLayoutData* data) { self->setLayoutData(data); } -struct miqt_array QTextFrame_ChildFrames(const QTextFrame* self) { +struct miqt_array /* of QTextFrame* */ QTextFrame_ChildFrames(const QTextFrame* self) { QList _ret = self->childFrames(); // Convert QList<> from C++ memory to manually-managed C memory QTextFrame** _arr = static_cast(malloc(sizeof(QTextFrame*) * _ret.length())); @@ -425,7 +425,7 @@ struct miqt_string QTextBlock_Text(const QTextBlock* self) { return _ms; } -struct miqt_array QTextBlock_TextFormats(const QTextBlock* self) { +struct miqt_array /* of QTextLayout__FormatRange* */ QTextBlock_TextFormats(const QTextBlock* self) { QVector _ret = self->textFormats(); // Convert QList<> from C++ memory to manually-managed C memory QTextLayout__FormatRange** _arr = static_cast(malloc(sizeof(QTextLayout__FormatRange*) * _ret.length())); @@ -577,7 +577,7 @@ struct miqt_string QTextFragment_Text(const QTextFragment* self) { return _ms; } -struct miqt_array QTextFragment_GlyphRuns(const QTextFragment* self) { +struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns(const QTextFragment* self) { QList _ret = self->glyphRuns(); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); @@ -590,7 +590,7 @@ struct miqt_array QTextFragment_GlyphRuns(const QTextFragment* self) { return _out; } -struct miqt_array QTextFragment_GlyphRuns1(const QTextFragment* self, int from) { +struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns1(const QTextFragment* self, int from) { QList _ret = self->glyphRuns(static_cast(from)); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); @@ -603,7 +603,7 @@ struct miqt_array QTextFragment_GlyphRuns1(const QTextFragment* self, int from) return _out; } -struct miqt_array QTextFragment_GlyphRuns2(const QTextFragment* self, int from, int length) { +struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns2(const QTextFragment* self, int from, int length) { QList _ret = self->glyphRuns(static_cast(from), static_cast(length)); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); diff --git a/qt/gen_qtextobject.h b/qt/gen_qtextobject.h index b4a4a009..f55da8fa 100644 --- a/qt/gen_qtextobject.h +++ b/qt/gen_qtextobject.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTOBJECT_H -#define GEN_QTEXTOBJECT_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTOBJECT_H +#define MIQT_QT_GEN_QTEXTOBJECT_H #include #include @@ -107,7 +108,7 @@ int QTextFrame_FirstPosition(const QTextFrame* self); int QTextFrame_LastPosition(const QTextFrame* self); QTextFrameLayoutData* QTextFrame_LayoutData(const QTextFrame* self); void QTextFrame_SetLayoutData(QTextFrame* self, QTextFrameLayoutData* data); -struct miqt_array QTextFrame_ChildFrames(const QTextFrame* self); +struct miqt_array /* of QTextFrame* */ QTextFrame_ChildFrames(const QTextFrame* self); QTextFrame* QTextFrame_ParentFrame(const QTextFrame* self); QTextFrame__iterator* QTextFrame_Begin(const QTextFrame* self); QTextFrame__iterator* QTextFrame_End(const QTextFrame* self); @@ -138,7 +139,7 @@ QTextCharFormat* QTextBlock_CharFormat(const QTextBlock* self); int QTextBlock_CharFormatIndex(const QTextBlock* self); int QTextBlock_TextDirection(const QTextBlock* self); struct miqt_string QTextBlock_Text(const QTextBlock* self); -struct miqt_array QTextBlock_TextFormats(const QTextBlock* self); +struct miqt_array /* of QTextLayout__FormatRange* */ QTextBlock_TextFormats(const QTextBlock* self); QTextDocument* QTextBlock_Document(const QTextBlock* self); QTextList* QTextBlock_TextList(const QTextBlock* self); QTextBlockUserData* QTextBlock_UserData(const QTextBlock* self); @@ -173,9 +174,9 @@ bool QTextFragment_Contains(const QTextFragment* self, int position); QTextCharFormat* QTextFragment_CharFormat(const QTextFragment* self); int QTextFragment_CharFormatIndex(const QTextFragment* self); struct miqt_string QTextFragment_Text(const QTextFragment* self); -struct miqt_array QTextFragment_GlyphRuns(const QTextFragment* self); -struct miqt_array QTextFragment_GlyphRuns1(const QTextFragment* self, int from); -struct miqt_array QTextFragment_GlyphRuns2(const QTextFragment* self, int from, int length); +struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns(const QTextFragment* self); +struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns1(const QTextFragment* self, int from); +struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns2(const QTextFragment* self, int from, int length); void QTextFragment_Delete(QTextFragment* self); QTextFrame__iterator* QTextFrame__iterator_new(); diff --git a/qt/gen_qtextoption.cpp b/qt/gen_qtextoption.cpp index b2a1008f..4ba70521 100644 --- a/qt/gen_qtextoption.cpp +++ b/qt/gen_qtextoption.cpp @@ -76,7 +76,7 @@ double QTextOption_TabStopDistance(const QTextOption* self) { return static_cast(_ret); } -void QTextOption_SetTabArray(QTextOption* self, struct miqt_array /* of double */ tabStops) { +void QTextOption_SetTabArray(QTextOption* self, struct miqt_array /* of double */ tabStops) { QList tabStops_QList; tabStops_QList.reserve(tabStops.len); double* tabStops_arr = static_cast(tabStops.data); @@ -86,7 +86,7 @@ void QTextOption_SetTabArray(QTextOption* self, struct miqt_array /* of double * self->setTabArray(tabStops_QList); } -struct miqt_array QTextOption_TabArray(const QTextOption* self) { +struct miqt_array /* of double */ QTextOption_TabArray(const QTextOption* self) { QList _ret = self->tabArray(); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); @@ -99,7 +99,7 @@ struct miqt_array QTextOption_TabArray(const QTextOption* self) { return _out; } -void QTextOption_SetTabs(QTextOption* self, struct miqt_array /* of QTextOption__Tab* */ tabStops) { +void QTextOption_SetTabs(QTextOption* self, struct miqt_array /* of QTextOption__Tab* */ tabStops) { QList tabStops_QList; tabStops_QList.reserve(tabStops.len); QTextOption__Tab** tabStops_arr = static_cast(tabStops.data); @@ -109,7 +109,7 @@ void QTextOption_SetTabs(QTextOption* self, struct miqt_array /* of QTextOption_ self->setTabs(tabStops_QList); } -struct miqt_array QTextOption_Tabs(const QTextOption* self) { +struct miqt_array /* of QTextOption__Tab* */ QTextOption_Tabs(const QTextOption* self) { QList _ret = self->tabs(); // Convert QList<> from C++ memory to manually-managed C memory QTextOption__Tab** _arr = static_cast(malloc(sizeof(QTextOption__Tab*) * _ret.length())); diff --git a/qt/gen_qtextoption.h b/qt/gen_qtextoption.h index cbf4e02b..d5a7c28a 100644 --- a/qt/gen_qtextoption.h +++ b/qt/gen_qtextoption.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTOPTION_H -#define GEN_QTEXTOPTION_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTOPTION_H +#define MIQT_QT_GEN_QTEXTOPTION_H #include #include @@ -43,10 +44,10 @@ void QTextOption_SetTabStop(QTextOption* self, double tabStop); double QTextOption_TabStop(const QTextOption* self); void QTextOption_SetTabStopDistance(QTextOption* self, double tabStopDistance); double QTextOption_TabStopDistance(const QTextOption* self); -void QTextOption_SetTabArray(QTextOption* self, struct miqt_array /* of double */ tabStops); -struct miqt_array QTextOption_TabArray(const QTextOption* self); -void QTextOption_SetTabs(QTextOption* self, struct miqt_array /* of QTextOption__Tab* */ tabStops); -struct miqt_array QTextOption_Tabs(const QTextOption* self); +void QTextOption_SetTabArray(QTextOption* self, struct miqt_array /* of double */ tabStops); +struct miqt_array /* of double */ QTextOption_TabArray(const QTextOption* self); +void QTextOption_SetTabs(QTextOption* self, struct miqt_array /* of QTextOption__Tab* */ tabStops); +struct miqt_array /* of QTextOption__Tab* */ QTextOption_Tabs(const QTextOption* self); void QTextOption_SetUseDesignMetrics(QTextOption* self, bool b); bool QTextOption_UseDesignMetrics(const QTextOption* self); void QTextOption_Delete(QTextOption* self); diff --git a/qt/gen_qtextstream.h b/qt/gen_qtextstream.h index ed0a8bc5..6a2eccc8 100644 --- a/qt/gen_qtextstream.h +++ b/qt/gen_qtextstream.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTSTREAM_H -#define GEN_QTEXTSTREAM_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTSTREAM_H +#define MIQT_QT_GEN_QTEXTSTREAM_H #include #include diff --git a/qt/gen_qtexttable.h b/qt/gen_qtexttable.h index edd5ecff..2636e742 100644 --- a/qt/gen_qtexttable.h +++ b/qt/gen_qtexttable.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTTABLE_H -#define GEN_QTEXTTABLE_H +#pragma once +#ifndef MIQT_QT_GEN_QTEXTTABLE_H +#define MIQT_QT_GEN_QTEXTTABLE_H #include #include diff --git a/qt/gen_qthread.h b/qt/gen_qthread.h index 23c8a1ad..b961ab70 100644 --- a/qt/gen_qthread.h +++ b/qt/gen_qthread.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTHREAD_H -#define GEN_QTHREAD_H +#pragma once +#ifndef MIQT_QT_GEN_QTHREAD_H +#define MIQT_QT_GEN_QTHREAD_H #include #include diff --git a/qt/gen_qthreadpool.h b/qt/gen_qthreadpool.h index 910a9a08..97d69d5b 100644 --- a/qt/gen_qthreadpool.h +++ b/qt/gen_qthreadpool.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTHREADPOOL_H -#define GEN_QTHREADPOOL_H +#pragma once +#ifndef MIQT_QT_GEN_QTHREADPOOL_H +#define MIQT_QT_GEN_QTHREADPOOL_H #include #include diff --git a/qt/gen_qthreadstorage.h b/qt/gen_qthreadstorage.h index c32ed704..571f3356 100644 --- a/qt/gen_qthreadstorage.h +++ b/qt/gen_qthreadstorage.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTHREADSTORAGE_H -#define GEN_QTHREADSTORAGE_H +#pragma once +#ifndef MIQT_QT_GEN_QTHREADSTORAGE_H +#define MIQT_QT_GEN_QTHREADSTORAGE_H #include #include diff --git a/qt/gen_qtimeline.h b/qt/gen_qtimeline.h index b89863bf..05ccab08 100644 --- a/qt/gen_qtimeline.h +++ b/qt/gen_qtimeline.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTIMELINE_H -#define GEN_QTIMELINE_H +#pragma once +#ifndef MIQT_QT_GEN_QTIMELINE_H +#define MIQT_QT_GEN_QTIMELINE_H #include #include diff --git a/qt/gen_qtimer.h b/qt/gen_qtimer.h index fd0feec7..3460ea20 100644 --- a/qt/gen_qtimer.h +++ b/qt/gen_qtimer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTIMER_H -#define GEN_QTIMER_H +#pragma once +#ifndef MIQT_QT_GEN_QTIMER_H +#define MIQT_QT_GEN_QTIMER_H #include #include diff --git a/qt/gen_qtimezone.cpp b/qt/gen_qtimezone.cpp index 26d4a5ee..755534e1 100644 --- a/qt/gen_qtimezone.cpp +++ b/qt/gen_qtimezone.cpp @@ -156,7 +156,7 @@ QTimeZone__OffsetData* QTimeZone_PreviousTransition(const QTimeZone* self, QDate return new QTimeZone::OffsetData(self->previousTransition(*beforeDateTime)); } -struct miqt_array QTimeZone_Transitions(const QTimeZone* self, QDateTime* fromDateTime, QDateTime* toDateTime) { +struct miqt_array /* of QTimeZone__OffsetData* */ QTimeZone_Transitions(const QTimeZone* self, QDateTime* fromDateTime, QDateTime* toDateTime) { QTimeZone::OffsetDataList _ret = self->transitions(*fromDateTime, *toDateTime); // Convert QList<> from C++ memory to manually-managed C memory QTimeZone__OffsetData** _arr = static_cast(malloc(sizeof(QTimeZone__OffsetData*) * _ret.length())); @@ -191,7 +191,7 @@ bool QTimeZone_IsTimeZoneIdAvailable(struct miqt_string ianaId) { return QTimeZone::isTimeZoneIdAvailable(ianaId_QByteArray); } -struct miqt_array QTimeZone_AvailableTimeZoneIds() { +struct miqt_array /* of struct miqt_string */ QTimeZone_AvailableTimeZoneIds() { QList _ret = QTimeZone::availableTimeZoneIds(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -209,7 +209,7 @@ struct miqt_array QTimeZone_AvailableTimeZoneIds() { return _out; } -struct miqt_array QTimeZone_AvailableTimeZoneIdsWithCountry(int country) { +struct miqt_array /* of struct miqt_string */ QTimeZone_AvailableTimeZoneIdsWithCountry(int country) { QList _ret = QTimeZone::availableTimeZoneIds(static_cast(country)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -227,7 +227,7 @@ struct miqt_array QTimeZone_AvailableTimeZoneIdsWithCountry(int country) { return _out; } -struct miqt_array QTimeZone_AvailableTimeZoneIdsWithOffsetSeconds(int offsetSeconds) { +struct miqt_array /* of struct miqt_string */ QTimeZone_AvailableTimeZoneIdsWithOffsetSeconds(int offsetSeconds) { QList _ret = QTimeZone::availableTimeZoneIds(static_cast(offsetSeconds)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -275,7 +275,7 @@ struct miqt_string QTimeZone_WindowsIdToDefaultIanaId2(struct miqt_string window return _ms; } -struct miqt_array QTimeZone_WindowsIdToIanaIds(struct miqt_string windowsId) { +struct miqt_array /* of struct miqt_string */ QTimeZone_WindowsIdToIanaIds(struct miqt_string windowsId) { QByteArray windowsId_QByteArray(windowsId.data, windowsId.len); QList _ret = QTimeZone::windowsIdToIanaIds(windowsId_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory @@ -294,7 +294,7 @@ struct miqt_array QTimeZone_WindowsIdToIanaIds(struct miqt_string windowsId) { return _out; } -struct miqt_array QTimeZone_WindowsIdToIanaIds2(struct miqt_string windowsId, int country) { +struct miqt_array /* of struct miqt_string */ QTimeZone_WindowsIdToIanaIds2(struct miqt_string windowsId, int country) { QByteArray windowsId_QByteArray(windowsId.data, windowsId.len); QList _ret = QTimeZone::windowsIdToIanaIds(windowsId_QByteArray, static_cast(country)); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/gen_qtimezone.h b/qt/gen_qtimezone.h index 477021e3..11371928 100644 --- a/qt/gen_qtimezone.h +++ b/qt/gen_qtimezone.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTIMEZONE_H -#define GEN_QTIMEZONE_H +#pragma once +#ifndef MIQT_QT_GEN_QTIMEZONE_H +#define MIQT_QT_GEN_QTIMEZONE_H #include #include @@ -56,19 +57,19 @@ QTimeZone__OffsetData* QTimeZone_OffsetData(const QTimeZone* self, QDateTime* fo bool QTimeZone_HasTransitions(const QTimeZone* self); QTimeZone__OffsetData* QTimeZone_NextTransition(const QTimeZone* self, QDateTime* afterDateTime); QTimeZone__OffsetData* QTimeZone_PreviousTransition(const QTimeZone* self, QDateTime* beforeDateTime); -struct miqt_array QTimeZone_Transitions(const QTimeZone* self, QDateTime* fromDateTime, QDateTime* toDateTime); +struct miqt_array /* of QTimeZone__OffsetData* */ QTimeZone_Transitions(const QTimeZone* self, QDateTime* fromDateTime, QDateTime* toDateTime); struct miqt_string QTimeZone_SystemTimeZoneId(); QTimeZone* QTimeZone_SystemTimeZone(); QTimeZone* QTimeZone_Utc(); bool QTimeZone_IsTimeZoneIdAvailable(struct miqt_string ianaId); -struct miqt_array QTimeZone_AvailableTimeZoneIds(); -struct miqt_array QTimeZone_AvailableTimeZoneIdsWithCountry(int country); -struct miqt_array QTimeZone_AvailableTimeZoneIdsWithOffsetSeconds(int offsetSeconds); +struct miqt_array /* of struct miqt_string */ QTimeZone_AvailableTimeZoneIds(); +struct miqt_array /* of struct miqt_string */ QTimeZone_AvailableTimeZoneIdsWithCountry(int country); +struct miqt_array /* of struct miqt_string */ QTimeZone_AvailableTimeZoneIdsWithOffsetSeconds(int offsetSeconds); struct miqt_string QTimeZone_IanaIdToWindowsId(struct miqt_string ianaId); struct miqt_string QTimeZone_WindowsIdToDefaultIanaId(struct miqt_string windowsId); struct miqt_string QTimeZone_WindowsIdToDefaultIanaId2(struct miqt_string windowsId, int country); -struct miqt_array QTimeZone_WindowsIdToIanaIds(struct miqt_string windowsId); -struct miqt_array QTimeZone_WindowsIdToIanaIds2(struct miqt_string windowsId, int country); +struct miqt_array /* of struct miqt_string */ QTimeZone_WindowsIdToIanaIds(struct miqt_string windowsId); +struct miqt_array /* of struct miqt_string */ QTimeZone_WindowsIdToIanaIds2(struct miqt_string windowsId, int country); struct miqt_string QTimeZone_DisplayName2(const QTimeZone* self, QDateTime* atDateTime, int nameType); struct miqt_string QTimeZone_DisplayName3(const QTimeZone* self, QDateTime* atDateTime, int nameType, QLocale* locale); struct miqt_string QTimeZone_DisplayName22(const QTimeZone* self, int timeType, int nameType); diff --git a/qt/gen_qtoolbar.h b/qt/gen_qtoolbar.h index e5402ffc..fe40805c 100644 --- a/qt/gen_qtoolbar.h +++ b/qt/gen_qtoolbar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTOOLBAR_H -#define GEN_QTOOLBAR_H +#pragma once +#ifndef MIQT_QT_GEN_QTOOLBAR_H +#define MIQT_QT_GEN_QTOOLBAR_H #include #include diff --git a/qt/gen_qtoolbox.h b/qt/gen_qtoolbox.h index 07e5851f..3f3b47fe 100644 --- a/qt/gen_qtoolbox.h +++ b/qt/gen_qtoolbox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTOOLBOX_H -#define GEN_QTOOLBOX_H +#pragma once +#ifndef MIQT_QT_GEN_QTOOLBOX_H +#define MIQT_QT_GEN_QTOOLBOX_H #include #include diff --git a/qt/gen_qtoolbutton.h b/qt/gen_qtoolbutton.h index eff72f9c..184fb430 100644 --- a/qt/gen_qtoolbutton.h +++ b/qt/gen_qtoolbutton.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTOOLBUTTON_H -#define GEN_QTOOLBUTTON_H +#pragma once +#ifndef MIQT_QT_GEN_QTOOLBUTTON_H +#define MIQT_QT_GEN_QTOOLBUTTON_H #include #include diff --git a/qt/gen_qtooltip.h b/qt/gen_qtooltip.h index f7d19385..b4d1eb7c 100644 --- a/qt/gen_qtooltip.h +++ b/qt/gen_qtooltip.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTOOLTIP_H -#define GEN_QTOOLTIP_H +#pragma once +#ifndef MIQT_QT_GEN_QTOOLTIP_H +#define MIQT_QT_GEN_QTOOLTIP_H #include #include diff --git a/qt/gen_qtouchdevice.cpp b/qt/gen_qtouchdevice.cpp index afe7db7a..ed06ae17 100644 --- a/qt/gen_qtouchdevice.cpp +++ b/qt/gen_qtouchdevice.cpp @@ -11,7 +11,7 @@ QTouchDevice* QTouchDevice_new() { return new QTouchDevice(); } -struct miqt_array QTouchDevice_Devices() { +struct miqt_array /* of QTouchDevice* */ QTouchDevice_Devices() { QList _ret = QTouchDevice::devices(); // Convert QList<> from C++ memory to manually-managed C memory QTouchDevice** _arr = static_cast(malloc(sizeof(QTouchDevice*) * _ret.length())); diff --git a/qt/gen_qtouchdevice.h b/qt/gen_qtouchdevice.h index 7345b193..e84f5c83 100644 --- a/qt/gen_qtouchdevice.h +++ b/qt/gen_qtouchdevice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTOUCHDEVICE_H -#define GEN_QTOUCHDEVICE_H +#pragma once +#ifndef MIQT_QT_GEN_QTOUCHDEVICE_H +#define MIQT_QT_GEN_QTOUCHDEVICE_H #include #include @@ -20,7 +21,7 @@ typedef struct QTouchDevice QTouchDevice; #endif QTouchDevice* QTouchDevice_new(); -struct miqt_array QTouchDevice_Devices(); +struct miqt_array /* of QTouchDevice* */ QTouchDevice_Devices(); struct miqt_string QTouchDevice_Name(const QTouchDevice* self); int QTouchDevice_Type(const QTouchDevice* self); int QTouchDevice_Capabilities(const QTouchDevice* self); diff --git a/qt/gen_qtransform.h b/qt/gen_qtransform.h index ad07f7e6..f5c13c2e 100644 --- a/qt/gen_qtransform.h +++ b/qt/gen_qtransform.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTRANSFORM_H -#define GEN_QTRANSFORM_H +#pragma once +#ifndef MIQT_QT_GEN_QTRANSFORM_H +#define MIQT_QT_GEN_QTRANSFORM_H #include #include diff --git a/qt/gen_qtranslator.h b/qt/gen_qtranslator.h index d46f5642..69fe5347 100644 --- a/qt/gen_qtranslator.h +++ b/qt/gen_qtranslator.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTRANSLATOR_H -#define GEN_QTRANSLATOR_H +#pragma once +#ifndef MIQT_QT_GEN_QTRANSLATOR_H +#define MIQT_QT_GEN_QTRANSLATOR_H #include #include diff --git a/qt/gen_qtransposeproxymodel.cpp b/qt/gen_qtransposeproxymodel.cpp index 9fe0bbac..c2cb1873 100644 --- a/qt/gen_qtransposeproxymodel.cpp +++ b/qt/gen_qtransposeproxymodel.cpp @@ -71,7 +71,7 @@ bool QTransposeProxyModel_SetHeaderData(QTransposeProxyModel* self, int section, return self->setHeaderData(static_cast(section), static_cast(orientation), *value); } -bool QTransposeProxyModel_SetItemData(QTransposeProxyModel* self, QModelIndex* index, struct miqt_map roles) { +bool QTransposeProxyModel_SetItemData(QTransposeProxyModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) { QMap roles_QMap; int* roles_karr = static_cast(roles.keys); QVariant** roles_varr = static_cast(roles.values); @@ -85,7 +85,7 @@ QSize* QTransposeProxyModel_Span(const QTransposeProxyModel* self, QModelIndex* return new QSize(self->span(*index)); } -struct miqt_map QTransposeProxyModel_ItemData(const QTransposeProxyModel* self, QModelIndex* index) { +struct miqt_map /* of int to QVariant* */ QTransposeProxyModel_ItemData(const QTransposeProxyModel* self, QModelIndex* index) { QMap _ret = self->itemData(*index); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); diff --git a/qt/gen_qtransposeproxymodel.h b/qt/gen_qtransposeproxymodel.h index e5e11ed0..47beb06a 100644 --- a/qt/gen_qtransposeproxymodel.h +++ b/qt/gen_qtransposeproxymodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTRANSPOSEPROXYMODEL_H -#define GEN_QTRANSPOSEPROXYMODEL_H +#pragma once +#ifndef MIQT_QT_GEN_QTRANSPOSEPROXYMODEL_H +#define MIQT_QT_GEN_QTRANSPOSEPROXYMODEL_H #include #include @@ -42,9 +43,9 @@ int QTransposeProxyModel_RowCount(const QTransposeProxyModel* self); int QTransposeProxyModel_ColumnCount(const QTransposeProxyModel* self); QVariant* QTransposeProxyModel_HeaderData(const QTransposeProxyModel* self, int section, int orientation); bool QTransposeProxyModel_SetHeaderData(QTransposeProxyModel* self, int section, int orientation, QVariant* value); -bool QTransposeProxyModel_SetItemData(QTransposeProxyModel* self, QModelIndex* index, struct miqt_map roles); +bool QTransposeProxyModel_SetItemData(QTransposeProxyModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles); QSize* QTransposeProxyModel_Span(const QTransposeProxyModel* self, QModelIndex* index); -struct miqt_map QTransposeProxyModel_ItemData(const QTransposeProxyModel* self, QModelIndex* index); +struct miqt_map /* of int to QVariant* */ QTransposeProxyModel_ItemData(const QTransposeProxyModel* self, QModelIndex* index); QModelIndex* QTransposeProxyModel_MapFromSource(const QTransposeProxyModel* self, QModelIndex* sourceIndex); QModelIndex* QTransposeProxyModel_MapToSource(const QTransposeProxyModel* self, QModelIndex* proxyIndex); QModelIndex* QTransposeProxyModel_Parent(const QTransposeProxyModel* self, QModelIndex* index); diff --git a/qt/gen_qtreeview.cpp b/qt/gen_qtreeview.cpp index 63b60dcd..d3022d9f 100644 --- a/qt/gen_qtreeview.cpp +++ b/qt/gen_qtreeview.cpp @@ -380,7 +380,7 @@ void QTreeView_ScrollTo2(QTreeView* self, QModelIndex* index, int hint) { self->scrollTo(*index, static_cast(hint)); } -void QTreeView_DataChanged3(QTreeView* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles) { +void QTreeView_DataChanged3(QTreeView* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles) { QVector roles_QList; roles_QList.reserve(roles.len); int* roles_arr = static_cast(roles.data); diff --git a/qt/gen_qtreeview.h b/qt/gen_qtreeview.h index 333f4789..feff4dfc 100644 --- a/qt/gen_qtreeview.h +++ b/qt/gen_qtreeview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTREEVIEW_H -#define GEN_QTREEVIEW_H +#pragma once +#ifndef MIQT_QT_GEN_QTREEVIEW_H +#define MIQT_QT_GEN_QTREEVIEW_H #include #include @@ -113,7 +114,7 @@ struct miqt_string QTreeView_Tr3(const char* s, const char* c, int n); struct miqt_string QTreeView_TrUtf82(const char* s, const char* c); struct miqt_string QTreeView_TrUtf83(const char* s, const char* c, int n); void QTreeView_ScrollTo2(QTreeView* self, QModelIndex* index, int hint); -void QTreeView_DataChanged3(QTreeView* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles); +void QTreeView_DataChanged3(QTreeView* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles); void QTreeView_ExpandRecursively2(QTreeView* self, QModelIndex* index, int depth); void QTreeView_Delete(QTreeView* self); diff --git a/qt/gen_qtreewidget.cpp b/qt/gen_qtreewidget.cpp index df3e36e9..9e8bd917 100644 --- a/qt/gen_qtreewidget.cpp +++ b/qt/gen_qtreewidget.cpp @@ -24,7 +24,7 @@ QTreeWidgetItem* QTreeWidgetItem_new() { return new QTreeWidgetItem(); } -QTreeWidgetItem* QTreeWidgetItem_new2(struct miqt_array /* of struct miqt_string */ strings) { +QTreeWidgetItem* QTreeWidgetItem_new2(struct miqt_array /* of struct miqt_string */ strings) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -39,7 +39,7 @@ QTreeWidgetItem* QTreeWidgetItem_new3(QTreeWidget* treeview) { return new QTreeWidgetItem(treeview); } -QTreeWidgetItem* QTreeWidgetItem_new4(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings) { +QTreeWidgetItem* QTreeWidgetItem_new4(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -58,7 +58,7 @@ QTreeWidgetItem* QTreeWidgetItem_new6(QTreeWidgetItem* parent) { return new QTreeWidgetItem(parent); } -QTreeWidgetItem* QTreeWidgetItem_new7(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings) { +QTreeWidgetItem* QTreeWidgetItem_new7(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -81,7 +81,7 @@ QTreeWidgetItem* QTreeWidgetItem_new10(int typeVal) { return new QTreeWidgetItem(static_cast(typeVal)); } -QTreeWidgetItem* QTreeWidgetItem_new11(struct miqt_array /* of struct miqt_string */ strings, int typeVal) { +QTreeWidgetItem* QTreeWidgetItem_new11(struct miqt_array /* of struct miqt_string */ strings, int typeVal) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -96,7 +96,7 @@ QTreeWidgetItem* QTreeWidgetItem_new12(QTreeWidget* treeview, int typeVal) { return new QTreeWidgetItem(treeview, static_cast(typeVal)); } -QTreeWidgetItem* QTreeWidgetItem_new13(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings, int typeVal) { +QTreeWidgetItem* QTreeWidgetItem_new13(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings, int typeVal) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -115,7 +115,7 @@ QTreeWidgetItem* QTreeWidgetItem_new15(QTreeWidgetItem* parent, int typeVal) { return new QTreeWidgetItem(parent, static_cast(typeVal)); } -QTreeWidgetItem* QTreeWidgetItem_new16(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings, int typeVal) { +QTreeWidgetItem* QTreeWidgetItem_new16(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings, int typeVal) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -393,7 +393,7 @@ QTreeWidgetItem* QTreeWidgetItem_TakeChild(QTreeWidgetItem* self, int index) { return self->takeChild(static_cast(index)); } -void QTreeWidgetItem_AddChildren(QTreeWidgetItem* self, struct miqt_array /* of QTreeWidgetItem* */ children) { +void QTreeWidgetItem_AddChildren(QTreeWidgetItem* self, struct miqt_array /* of QTreeWidgetItem* */ children) { QList children_QList; children_QList.reserve(children.len); QTreeWidgetItem** children_arr = static_cast(children.data); @@ -403,7 +403,7 @@ void QTreeWidgetItem_AddChildren(QTreeWidgetItem* self, struct miqt_array /* of self->addChildren(children_QList); } -void QTreeWidgetItem_InsertChildren(QTreeWidgetItem* self, int index, struct miqt_array /* of QTreeWidgetItem* */ children) { +void QTreeWidgetItem_InsertChildren(QTreeWidgetItem* self, int index, struct miqt_array /* of QTreeWidgetItem* */ children) { QList children_QList; children_QList.reserve(children.len); QTreeWidgetItem** children_arr = static_cast(children.data); @@ -413,7 +413,7 @@ void QTreeWidgetItem_InsertChildren(QTreeWidgetItem* self, int index, struct miq self->insertChildren(static_cast(index), children_QList); } -struct miqt_array QTreeWidgetItem_TakeChildren(QTreeWidgetItem* self) { +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidgetItem_TakeChildren(QTreeWidgetItem* self) { QList _ret = self->takeChildren(); // Convert QList<> from C++ memory to manually-managed C memory QTreeWidgetItem** _arr = static_cast(malloc(sizeof(QTreeWidgetItem*) * _ret.length())); @@ -512,7 +512,7 @@ int QTreeWidget_IndexOfTopLevelItem(const QTreeWidget* self, QTreeWidgetItem* it return self->indexOfTopLevelItem(item); } -void QTreeWidget_InsertTopLevelItems(QTreeWidget* self, int index, struct miqt_array /* of QTreeWidgetItem* */ items) { +void QTreeWidget_InsertTopLevelItems(QTreeWidget* self, int index, struct miqt_array /* of QTreeWidgetItem* */ items) { QList items_QList; items_QList.reserve(items.len); QTreeWidgetItem** items_arr = static_cast(items.data); @@ -522,7 +522,7 @@ void QTreeWidget_InsertTopLevelItems(QTreeWidget* self, int index, struct miqt_a self->insertTopLevelItems(static_cast(index), items_QList); } -void QTreeWidget_AddTopLevelItems(QTreeWidget* self, struct miqt_array /* of QTreeWidgetItem* */ items) { +void QTreeWidget_AddTopLevelItems(QTreeWidget* self, struct miqt_array /* of QTreeWidgetItem* */ items) { QList items_QList; items_QList.reserve(items.len); QTreeWidgetItem** items_arr = static_cast(items.data); @@ -540,7 +540,7 @@ void QTreeWidget_SetHeaderItem(QTreeWidget* self, QTreeWidgetItem* item) { self->setHeaderItem(item); } -void QTreeWidget_SetHeaderLabels(QTreeWidget* self, struct miqt_array /* of struct miqt_string */ labels) { +void QTreeWidget_SetHeaderLabels(QTreeWidget* self, struct miqt_array /* of struct miqt_string */ labels) { QStringList labels_QList; labels_QList.reserve(labels.len); struct miqt_string* labels_arr = static_cast(labels.data); @@ -632,7 +632,7 @@ void QTreeWidget_SetItemSelected(QTreeWidget* self, QTreeWidgetItem* item, bool self->setItemSelected(item, selectVal); } -struct miqt_array QTreeWidget_SelectedItems(const QTreeWidget* self) { +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidget_SelectedItems(const QTreeWidget* self) { QList _ret = self->selectedItems(); // Convert QList<> from C++ memory to manually-managed C memory QTreeWidgetItem** _arr = static_cast(malloc(sizeof(QTreeWidgetItem*) * _ret.length())); @@ -645,7 +645,7 @@ struct miqt_array QTreeWidget_SelectedItems(const QTreeWidget* self) { return _out; } -struct miqt_array QTreeWidget_FindItems(const QTreeWidget* self, struct miqt_string text, int flags) { +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidget_FindItems(const QTreeWidget* self, struct miqt_string text, int flags) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->findItems(text_QString, static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory @@ -887,7 +887,7 @@ bool QTreeWidget_IsPersistentEditorOpen2(const QTreeWidget* self, QTreeWidgetIte return self->isPersistentEditorOpen(item, static_cast(column)); } -struct miqt_array QTreeWidget_FindItems3(const QTreeWidget* self, struct miqt_string text, int flags, int column) { +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidget_FindItems3(const QTreeWidget* self, struct miqt_string text, int flags, int column) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->findItems(text_QString, static_cast(flags), static_cast(column)); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/gen_qtreewidget.h b/qt/gen_qtreewidget.h index c3a5c91f..2875f4a0 100644 --- a/qt/gen_qtreewidget.h +++ b/qt/gen_qtreewidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTREEWIDGET_H -#define GEN_QTREEWIDGET_H +#pragma once +#ifndef MIQT_QT_GEN_QTREEWIDGET_H +#define MIQT_QT_GEN_QTREEWIDGET_H #include #include @@ -46,21 +47,21 @@ typedef struct QWidget QWidget; #endif QTreeWidgetItem* QTreeWidgetItem_new(); -QTreeWidgetItem* QTreeWidgetItem_new2(struct miqt_array /* of struct miqt_string */ strings); +QTreeWidgetItem* QTreeWidgetItem_new2(struct miqt_array /* of struct miqt_string */ strings); QTreeWidgetItem* QTreeWidgetItem_new3(QTreeWidget* treeview); -QTreeWidgetItem* QTreeWidgetItem_new4(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings); +QTreeWidgetItem* QTreeWidgetItem_new4(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings); QTreeWidgetItem* QTreeWidgetItem_new5(QTreeWidget* treeview, QTreeWidgetItem* after); QTreeWidgetItem* QTreeWidgetItem_new6(QTreeWidgetItem* parent); -QTreeWidgetItem* QTreeWidgetItem_new7(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings); +QTreeWidgetItem* QTreeWidgetItem_new7(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings); QTreeWidgetItem* QTreeWidgetItem_new8(QTreeWidgetItem* parent, QTreeWidgetItem* after); QTreeWidgetItem* QTreeWidgetItem_new9(QTreeWidgetItem* other); QTreeWidgetItem* QTreeWidgetItem_new10(int typeVal); -QTreeWidgetItem* QTreeWidgetItem_new11(struct miqt_array /* of struct miqt_string */ strings, int typeVal); +QTreeWidgetItem* QTreeWidgetItem_new11(struct miqt_array /* of struct miqt_string */ strings, int typeVal); QTreeWidgetItem* QTreeWidgetItem_new12(QTreeWidget* treeview, int typeVal); -QTreeWidgetItem* QTreeWidgetItem_new13(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings, int typeVal); +QTreeWidgetItem* QTreeWidgetItem_new13(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings, int typeVal); QTreeWidgetItem* QTreeWidgetItem_new14(QTreeWidget* treeview, QTreeWidgetItem* after, int typeVal); QTreeWidgetItem* QTreeWidgetItem_new15(QTreeWidgetItem* parent, int typeVal); -QTreeWidgetItem* QTreeWidgetItem_new16(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings, int typeVal); +QTreeWidgetItem* QTreeWidgetItem_new16(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings, int typeVal); QTreeWidgetItem* QTreeWidgetItem_new17(QTreeWidgetItem* parent, QTreeWidgetItem* after, int typeVal); QTreeWidgetItem* QTreeWidgetItem_Clone(const QTreeWidgetItem* self); QTreeWidget* QTreeWidgetItem_TreeWidget(const QTreeWidgetItem* self); @@ -119,9 +120,9 @@ void QTreeWidgetItem_AddChild(QTreeWidgetItem* self, QTreeWidgetItem* child); void QTreeWidgetItem_InsertChild(QTreeWidgetItem* self, int index, QTreeWidgetItem* child); void QTreeWidgetItem_RemoveChild(QTreeWidgetItem* self, QTreeWidgetItem* child); QTreeWidgetItem* QTreeWidgetItem_TakeChild(QTreeWidgetItem* self, int index); -void QTreeWidgetItem_AddChildren(QTreeWidgetItem* self, struct miqt_array /* of QTreeWidgetItem* */ children); -void QTreeWidgetItem_InsertChildren(QTreeWidgetItem* self, int index, struct miqt_array /* of QTreeWidgetItem* */ children); -struct miqt_array QTreeWidgetItem_TakeChildren(QTreeWidgetItem* self); +void QTreeWidgetItem_AddChildren(QTreeWidgetItem* self, struct miqt_array /* of QTreeWidgetItem* */ children); +void QTreeWidgetItem_InsertChildren(QTreeWidgetItem* self, int index, struct miqt_array /* of QTreeWidgetItem* */ children); +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidgetItem_TakeChildren(QTreeWidgetItem* self); int QTreeWidgetItem_Type(const QTreeWidgetItem* self); void QTreeWidgetItem_SortChildren(QTreeWidgetItem* self, int column, int order); void QTreeWidgetItem_Delete(QTreeWidgetItem* self); @@ -141,11 +142,11 @@ void QTreeWidget_InsertTopLevelItem(QTreeWidget* self, int index, QTreeWidgetIte void QTreeWidget_AddTopLevelItem(QTreeWidget* self, QTreeWidgetItem* item); QTreeWidgetItem* QTreeWidget_TakeTopLevelItem(QTreeWidget* self, int index); int QTreeWidget_IndexOfTopLevelItem(const QTreeWidget* self, QTreeWidgetItem* item); -void QTreeWidget_InsertTopLevelItems(QTreeWidget* self, int index, struct miqt_array /* of QTreeWidgetItem* */ items); -void QTreeWidget_AddTopLevelItems(QTreeWidget* self, struct miqt_array /* of QTreeWidgetItem* */ items); +void QTreeWidget_InsertTopLevelItems(QTreeWidget* self, int index, struct miqt_array /* of QTreeWidgetItem* */ items); +void QTreeWidget_AddTopLevelItems(QTreeWidget* self, struct miqt_array /* of QTreeWidgetItem* */ items); QTreeWidgetItem* QTreeWidget_HeaderItem(const QTreeWidget* self); void QTreeWidget_SetHeaderItem(QTreeWidget* self, QTreeWidgetItem* item); -void QTreeWidget_SetHeaderLabels(QTreeWidget* self, struct miqt_array /* of struct miqt_string */ labels); +void QTreeWidget_SetHeaderLabels(QTreeWidget* self, struct miqt_array /* of struct miqt_string */ labels); void QTreeWidget_SetHeaderLabel(QTreeWidget* self, struct miqt_string label); QTreeWidgetItem* QTreeWidget_CurrentItem(const QTreeWidget* self); int QTreeWidget_CurrentColumn(const QTreeWidget* self); @@ -166,8 +167,8 @@ void QTreeWidget_SetItemWidget(QTreeWidget* self, QTreeWidgetItem* item, int col void QTreeWidget_RemoveItemWidget(QTreeWidget* self, QTreeWidgetItem* item, int column); bool QTreeWidget_IsItemSelected(const QTreeWidget* self, QTreeWidgetItem* item); void QTreeWidget_SetItemSelected(QTreeWidget* self, QTreeWidgetItem* item, bool selectVal); -struct miqt_array QTreeWidget_SelectedItems(const QTreeWidget* self); -struct miqt_array QTreeWidget_FindItems(const QTreeWidget* self, struct miqt_string text, int flags); +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidget_SelectedItems(const QTreeWidget* self); +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidget_FindItems(const QTreeWidget* self, struct miqt_string text, int flags); bool QTreeWidget_IsItemHidden(const QTreeWidget* self, QTreeWidgetItem* item); void QTreeWidget_SetItemHidden(QTreeWidget* self, QTreeWidgetItem* item, bool hide); bool QTreeWidget_IsItemExpanded(const QTreeWidget* self, QTreeWidgetItem* item); @@ -209,7 +210,7 @@ void QTreeWidget_EditItem2(QTreeWidget* self, QTreeWidgetItem* item, int column) void QTreeWidget_OpenPersistentEditor2(QTreeWidget* self, QTreeWidgetItem* item, int column); void QTreeWidget_ClosePersistentEditor2(QTreeWidget* self, QTreeWidgetItem* item, int column); bool QTreeWidget_IsPersistentEditorOpen2(const QTreeWidget* self, QTreeWidgetItem* item, int column); -struct miqt_array QTreeWidget_FindItems3(const QTreeWidget* self, struct miqt_string text, int flags, int column); +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidget_FindItems3(const QTreeWidget* self, struct miqt_string text, int flags, int column); void QTreeWidget_ScrollToItem2(QTreeWidget* self, QTreeWidgetItem* item, int hint); void QTreeWidget_Delete(QTreeWidget* self); diff --git a/qt/gen_qtreewidgetitemiterator.h b/qt/gen_qtreewidgetitemiterator.h index 90b67f44..572e9e22 100644 --- a/qt/gen_qtreewidgetitemiterator.h +++ b/qt/gen_qtreewidgetitemiterator.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTREEWIDGETITEMITERATOR_H -#define GEN_QTREEWIDGETITEMITERATOR_H +#pragma once +#ifndef MIQT_QT_GEN_QTREEWIDGETITEMITERATOR_H +#define MIQT_QT_GEN_QTREEWIDGETITEMITERATOR_H #include #include diff --git a/qt/gen_qundogroup.cpp b/qt/gen_qundogroup.cpp index 6e8f01c7..a236b489 100644 --- a/qt/gen_qundogroup.cpp +++ b/qt/gen_qundogroup.cpp @@ -57,7 +57,7 @@ void QUndoGroup_RemoveStack(QUndoGroup* self, QUndoStack* stack) { self->removeStack(stack); } -struct miqt_array QUndoGroup_Stacks(const QUndoGroup* self) { +struct miqt_array /* of QUndoStack* */ QUndoGroup_Stacks(const QUndoGroup* self) { QList _ret = self->stacks(); // Convert QList<> from C++ memory to manually-managed C memory QUndoStack** _arr = static_cast(malloc(sizeof(QUndoStack*) * _ret.length())); diff --git a/qt/gen_qundogroup.h b/qt/gen_qundogroup.h index 7a333ee1..212f3894 100644 --- a/qt/gen_qundogroup.h +++ b/qt/gen_qundogroup.h @@ -1,5 +1,6 @@ -#ifndef GEN_QUNDOGROUP_H -#define GEN_QUNDOGROUP_H +#pragma once +#ifndef MIQT_QT_GEN_QUNDOGROUP_H +#define MIQT_QT_GEN_QUNDOGROUP_H #include #include @@ -35,7 +36,7 @@ struct miqt_string QUndoGroup_Tr(const char* s); struct miqt_string QUndoGroup_TrUtf8(const char* s); void QUndoGroup_AddStack(QUndoGroup* self, QUndoStack* stack); void QUndoGroup_RemoveStack(QUndoGroup* self, QUndoStack* stack); -struct miqt_array QUndoGroup_Stacks(const QUndoGroup* self); +struct miqt_array /* of QUndoStack* */ QUndoGroup_Stacks(const QUndoGroup* self); QUndoStack* QUndoGroup_ActiveStack(const QUndoGroup* self); QAction* QUndoGroup_CreateUndoAction(const QUndoGroup* self, QObject* parent); QAction* QUndoGroup_CreateRedoAction(const QUndoGroup* self, QObject* parent); diff --git a/qt/gen_qundostack.h b/qt/gen_qundostack.h index c6bac477..9a19144d 100644 --- a/qt/gen_qundostack.h +++ b/qt/gen_qundostack.h @@ -1,5 +1,6 @@ -#ifndef GEN_QUNDOSTACK_H -#define GEN_QUNDOSTACK_H +#pragma once +#ifndef MIQT_QT_GEN_QUNDOSTACK_H +#define MIQT_QT_GEN_QUNDOSTACK_H #include #include diff --git a/qt/gen_qundoview.h b/qt/gen_qundoview.h index a7977ae8..405de00a 100644 --- a/qt/gen_qundoview.h +++ b/qt/gen_qundoview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QUNDOVIEW_H -#define GEN_QUNDOVIEW_H +#pragma once +#ifndef MIQT_QT_GEN_QUNDOVIEW_H +#define MIQT_QT_GEN_QUNDOVIEW_H #include #include diff --git a/qt/gen_qurl.cpp b/qt/gen_qurl.cpp index 5fa72983..258ad5a8 100644 --- a/qt/gen_qurl.cpp +++ b/qt/gen_qurl.cpp @@ -408,7 +408,7 @@ struct miqt_string QUrl_ToAce(struct miqt_string param1) { return _ms; } -struct miqt_array QUrl_IdnWhitelist() { +struct miqt_array /* of struct miqt_string */ QUrl_IdnWhitelist() { QStringList _ret = QUrl::idnWhitelist(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -428,7 +428,7 @@ struct miqt_array QUrl_IdnWhitelist() { return _out; } -struct miqt_array QUrl_ToStringList(struct miqt_array /* of QUrl* */ uris) { +struct miqt_array /* of struct miqt_string */ QUrl_ToStringList(struct miqt_array /* of QUrl* */ uris) { QList uris_QList; uris_QList.reserve(uris.len); QUrl** uris_arr = static_cast(uris.data); @@ -454,7 +454,7 @@ struct miqt_array QUrl_ToStringList(struct miqt_array /* of QUrl* */ uris) { return _out; } -struct miqt_array QUrl_FromStringList(struct miqt_array /* of struct miqt_string */ uris) { +struct miqt_array /* of QUrl* */ QUrl_FromStringList(struct miqt_array /* of struct miqt_string */ uris) { QStringList uris_QList; uris_QList.reserve(uris.len); struct miqt_string* uris_arr = static_cast(uris.data); @@ -474,7 +474,7 @@ struct miqt_array QUrl_FromStringList(struct miqt_array /* of struct miqt_string return _out; } -void QUrl_SetIdnWhitelist(struct miqt_array /* of struct miqt_string */ idnWhitelist) { +void QUrl_SetIdnWhitelist(struct miqt_array /* of struct miqt_string */ idnWhitelist) { QStringList idnWhitelist_QList; idnWhitelist_QList.reserve(idnWhitelist.len); struct miqt_string* idnWhitelist_arr = static_cast(idnWhitelist.data); @@ -678,7 +678,7 @@ struct miqt_string QUrl_ToPercentEncoding3(struct miqt_string param1, struct miq return _ms; } -struct miqt_array QUrl_FromStringList2(struct miqt_array /* of struct miqt_string */ uris, int mode) { +struct miqt_array /* of QUrl* */ QUrl_FromStringList2(struct miqt_array /* of struct miqt_string */ uris, int mode) { QStringList uris_QList; uris_QList.reserve(uris.len); struct miqt_string* uris_arr = static_cast(uris.data); diff --git a/qt/gen_qurl.h b/qt/gen_qurl.h index 4c6595ac..22ce55dc 100644 --- a/qt/gen_qurl.h +++ b/qt/gen_qurl.h @@ -1,5 +1,6 @@ -#ifndef GEN_QURL_H -#define GEN_QURL_H +#pragma once +#ifndef MIQT_QT_GEN_QURL_H +#define MIQT_QT_GEN_QURL_H #include #include @@ -82,10 +83,10 @@ struct miqt_string QUrl_FromPercentEncoding(struct miqt_string param1); struct miqt_string QUrl_ToPercentEncoding(struct miqt_string param1); struct miqt_string QUrl_FromAce(struct miqt_string param1); struct miqt_string QUrl_ToAce(struct miqt_string param1); -struct miqt_array QUrl_IdnWhitelist(); -struct miqt_array QUrl_ToStringList(struct miqt_array /* of QUrl* */ uris); -struct miqt_array QUrl_FromStringList(struct miqt_array /* of struct miqt_string */ uris); -void QUrl_SetIdnWhitelist(struct miqt_array /* of struct miqt_string */ idnWhitelist); +struct miqt_array /* of struct miqt_string */ QUrl_IdnWhitelist(); +struct miqt_array /* of struct miqt_string */ QUrl_ToStringList(struct miqt_array /* of QUrl* */ uris); +struct miqt_array /* of QUrl* */ QUrl_FromStringList(struct miqt_array /* of struct miqt_string */ uris); +void QUrl_SetIdnWhitelist(struct miqt_array /* of struct miqt_string */ idnWhitelist); void QUrl_SetUrl2(QUrl* self, struct miqt_string url, int mode); QUrl* QUrl_FromEncoded2(struct miqt_string url, int mode); QUrl* QUrl_FromUserInput3(struct miqt_string userInput, struct miqt_string workingDirectory, int options); @@ -110,7 +111,7 @@ struct miqt_string QUrl_Fragment1(const QUrl* self, int options); void QUrl_SetFragment2(QUrl* self, struct miqt_string fragment, int mode); struct miqt_string QUrl_ToPercentEncoding2(struct miqt_string param1, struct miqt_string exclude); struct miqt_string QUrl_ToPercentEncoding3(struct miqt_string param1, struct miqt_string exclude, struct miqt_string include); -struct miqt_array QUrl_FromStringList2(struct miqt_array /* of struct miqt_string */ uris, int mode); +struct miqt_array /* of QUrl* */ QUrl_FromStringList2(struct miqt_array /* of struct miqt_string */ uris, int mode); void QUrl_Delete(QUrl* self); #ifdef __cplusplus diff --git a/qt/gen_qurlquery.cpp b/qt/gen_qurlquery.cpp index 82a16dbc..e1b6edc1 100644 --- a/qt/gen_qurlquery.cpp +++ b/qt/gen_qurlquery.cpp @@ -93,6 +93,60 @@ QChar* QUrlQuery_QueryPairDelimiter(const QUrlQuery* self) { return new QChar(self->queryPairDelimiter()); } +void QUrlQuery_SetQueryItems(QUrlQuery* self, struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ query) { + QList> query_QList; + query_QList.reserve(query.len); + struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ * query_arr = static_cast(query.data); + for(size_t i = 0; i < query.len; ++i) { + QPair query_arr_i_QPair; + struct miqt_string* query_arr_i_first_arr = static_cast(query_arr[i].keys); + struct miqt_string* query_arr_i_second_arr = static_cast(query_arr[i].values); + QString query_arr_i_first_arr_0_QString = QString::fromUtf8(query_arr_i_first_arr[0].data, query_arr_i_first_arr[0].len); + QString query_arr_i_second_arr_0_QString = QString::fromUtf8(query_arr_i_second_arr[0].data, query_arr_i_second_arr[0].len); + query_arr_i_QPair.first = query_arr_i_first_arr_0_QString; + query_arr_i_QPair.second = query_arr_i_second_arr_0_QString; + query_QList.push_back(query_arr_i_QPair); + } + self->setQueryItems(query_QList); +} + +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QUrlQuery_QueryItems(const QUrlQuery* self) { + QList> _ret = self->queryItems(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + struct miqt_string* _lv_first_arr = static_cast(malloc(sizeof(struct miqt_string))); + struct miqt_string* _lv_second_arr = static_cast(malloc(sizeof(struct miqt_string))); + QString _lv_first_ret = _lv_ret.first; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_first_b = _lv_first_ret.toUtf8(); + struct miqt_string _lv_first_ms; + _lv_first_ms.len = _lv_first_b.length(); + _lv_first_ms.data = static_cast(malloc(_lv_first_ms.len)); + memcpy(_lv_first_ms.data, _lv_first_b.data(), _lv_first_ms.len); + _lv_first_arr[0] = _lv_first_ms; + QString _lv_second_ret = _lv_ret.second; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_second_b = _lv_second_ret.toUtf8(); + struct miqt_string _lv_second_ms; + _lv_second_ms.len = _lv_second_b.length(); + _lv_second_ms.data = static_cast(malloc(_lv_second_ms.len)); + memcpy(_lv_second_ms.data, _lv_second_b.data(), _lv_second_ms.len); + _lv_second_arr[0] = _lv_second_ms; + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + bool QUrlQuery_HasQueryItem(const QUrlQuery* self, struct miqt_string key) { QString key_QString = QString::fromUtf8(key.data, key.len); return self->hasQueryItem(key_QString); @@ -121,7 +175,7 @@ struct miqt_string QUrlQuery_QueryItemValue(const QUrlQuery* self, struct miqt_s return _ms; } -struct miqt_array QUrlQuery_AllQueryItemValues(const QUrlQuery* self, struct miqt_string key) { +struct miqt_array /* of struct miqt_string */ QUrlQuery_AllQueryItemValues(const QUrlQuery* self, struct miqt_string key) { QString key_QString = QString::fromUtf8(key.data, key.len); QStringList _ret = self->allQueryItemValues(key_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -177,6 +231,43 @@ struct miqt_string QUrlQuery_ToString1(const QUrlQuery* self, int encoding) { return _ms; } +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QUrlQuery_QueryItems1(const QUrlQuery* self, int encoding) { + QList> _ret = self->queryItems(static_cast(encoding)); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + struct miqt_string* _lv_first_arr = static_cast(malloc(sizeof(struct miqt_string))); + struct miqt_string* _lv_second_arr = static_cast(malloc(sizeof(struct miqt_string))); + QString _lv_first_ret = _lv_ret.first; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_first_b = _lv_first_ret.toUtf8(); + struct miqt_string _lv_first_ms; + _lv_first_ms.len = _lv_first_b.length(); + _lv_first_ms.data = static_cast(malloc(_lv_first_ms.len)); + memcpy(_lv_first_ms.data, _lv_first_b.data(), _lv_first_ms.len); + _lv_first_arr[0] = _lv_first_ms; + QString _lv_second_ret = _lv_ret.second; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_second_b = _lv_second_ret.toUtf8(); + struct miqt_string _lv_second_ms; + _lv_second_ms.len = _lv_second_b.length(); + _lv_second_ms.data = static_cast(malloc(_lv_second_ms.len)); + memcpy(_lv_second_ms.data, _lv_second_b.data(), _lv_second_ms.len); + _lv_second_arr[0] = _lv_second_ms; + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + struct miqt_string QUrlQuery_QueryItemValue2(const QUrlQuery* self, struct miqt_string key, int encoding) { QString key_QString = QString::fromUtf8(key.data, key.len); QString _ret = self->queryItemValue(key_QString, static_cast(encoding)); @@ -189,7 +280,7 @@ struct miqt_string QUrlQuery_QueryItemValue2(const QUrlQuery* self, struct miqt_ return _ms; } -struct miqt_array QUrlQuery_AllQueryItemValues2(const QUrlQuery* self, struct miqt_string key, int encoding) { +struct miqt_array /* of struct miqt_string */ QUrlQuery_AllQueryItemValues2(const QUrlQuery* self, struct miqt_string key, int encoding) { QString key_QString = QString::fromUtf8(key.data, key.len); QStringList _ret = self->allQueryItemValues(key_QString, static_cast(encoding)); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/gen_qurlquery.go b/qt/gen_qurlquery.go index 380c3a7d..8795671a 100644 --- a/qt/gen_qurlquery.go +++ b/qt/gen_qurlquery.go @@ -138,6 +138,68 @@ func (this *QUrlQuery) QueryPairDelimiter() *QChar { return _goptr } +func (this *QUrlQuery) SetQueryItems(query []struct { + First string + Second string +}) { + query_CArray := (*[0xffff]C.struct_miqt_map)(C.malloc(C.size_t(8 * len(query)))) + defer C.free(unsafe.Pointer(query_CArray)) + for i := range query { + query_i_First_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{}))))) + defer C.free(unsafe.Pointer(query_i_First_CArray)) + query_i_Second_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{}))))) + defer C.free(unsafe.Pointer(query_i_Second_CArray)) + query_i_First_ms := C.struct_miqt_string{} + query_i_First_ms.data = C.CString(query[i].First) + query_i_First_ms.len = C.size_t(len(query[i].First)) + defer C.free(unsafe.Pointer(query_i_First_ms.data)) + query_i_First_CArray[0] = query_i_First_ms + query_i_Second_ms := C.struct_miqt_string{} + query_i_Second_ms.data = C.CString(query[i].Second) + query_i_Second_ms.len = C.size_t(len(query[i].Second)) + defer C.free(unsafe.Pointer(query_i_Second_ms.data)) + query_i_Second_CArray[0] = query_i_Second_ms + query_i_pair := C.struct_miqt_map{ + len: 1, + keys: unsafe.Pointer(query_i_First_CArray), + values: unsafe.Pointer(query_i_Second_CArray), + } + query_CArray[i] = query_i_pair + } + query_ma := C.struct_miqt_array{len: C.size_t(len(query)), data: unsafe.Pointer(query_CArray)} + C.QUrlQuery_SetQueryItems(this.h, query_ma) +} + +func (this *QUrlQuery) QueryItems() []struct { + First string + Second string +} { + var _ma C.struct_miqt_array = C.QUrlQuery_QueryItems(this.h) + _ret := make([]struct { + First string + Second string + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.values)) + var _lv_first_ms C.struct_miqt_string = _lv_First_CArray[0] + _lv_first_ret := C.GoStringN(_lv_first_ms.data, C.int(int64(_lv_first_ms.len))) + C.free(unsafe.Pointer(_lv_first_ms.data)) + _lv_entry_First := _lv_first_ret + var _lv_second_ms C.struct_miqt_string = _lv_Second_CArray[0] + _lv_second_ret := C.GoStringN(_lv_second_ms.data, C.int(int64(_lv_second_ms.len))) + C.free(unsafe.Pointer(_lv_second_ms.data)) + _lv_entry_Second := _lv_second_ret + _ret[i] = struct { + First string + Second string + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QUrlQuery) HasQueryItem(key string) bool { key_ms := C.struct_miqt_string{} key_ms.data = C.CString(key) @@ -230,6 +292,36 @@ func (this *QUrlQuery) ToString1(encoding QUrl__ComponentFormattingOption) strin return _ret } +func (this *QUrlQuery) QueryItems1(encoding QUrl__ComponentFormattingOption) []struct { + First string + Second string +} { + var _ma C.struct_miqt_array = C.QUrlQuery_QueryItems1(this.h, (C.int)(encoding)) + _ret := make([]struct { + First string + Second string + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.values)) + var _lv_first_ms C.struct_miqt_string = _lv_First_CArray[0] + _lv_first_ret := C.GoStringN(_lv_first_ms.data, C.int(int64(_lv_first_ms.len))) + C.free(unsafe.Pointer(_lv_first_ms.data)) + _lv_entry_First := _lv_first_ret + var _lv_second_ms C.struct_miqt_string = _lv_Second_CArray[0] + _lv_second_ret := C.GoStringN(_lv_second_ms.data, C.int(int64(_lv_second_ms.len))) + C.free(unsafe.Pointer(_lv_second_ms.data)) + _lv_entry_Second := _lv_second_ret + _ret[i] = struct { + First string + Second string + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QUrlQuery) QueryItemValue2(key string, encoding QUrl__ComponentFormattingOption) string { key_ms := C.struct_miqt_string{} key_ms.data = C.CString(key) diff --git a/qt/gen_qurlquery.h b/qt/gen_qurlquery.h index 415b1da4..75e1df65 100644 --- a/qt/gen_qurlquery.h +++ b/qt/gen_qurlquery.h @@ -1,5 +1,6 @@ -#ifndef GEN_QURLQUERY_H -#define GEN_QURLQUERY_H +#pragma once +#ifndef MIQT_QT_GEN_QURLQUERY_H +#define MIQT_QT_GEN_QURLQUERY_H #include #include @@ -40,18 +41,21 @@ struct miqt_string QUrlQuery_ToString(const QUrlQuery* self); void QUrlQuery_SetQueryDelimiters(QUrlQuery* self, QChar* valueDelimiter, QChar* pairDelimiter); QChar* QUrlQuery_QueryValueDelimiter(const QUrlQuery* self); QChar* QUrlQuery_QueryPairDelimiter(const QUrlQuery* self); +void QUrlQuery_SetQueryItems(QUrlQuery* self, struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ query); +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QUrlQuery_QueryItems(const QUrlQuery* self); bool QUrlQuery_HasQueryItem(const QUrlQuery* self, struct miqt_string key); void QUrlQuery_AddQueryItem(QUrlQuery* self, struct miqt_string key, struct miqt_string value); void QUrlQuery_RemoveQueryItem(QUrlQuery* self, struct miqt_string key); struct miqt_string QUrlQuery_QueryItemValue(const QUrlQuery* self, struct miqt_string key); -struct miqt_array QUrlQuery_AllQueryItemValues(const QUrlQuery* self, struct miqt_string key); +struct miqt_array /* of struct miqt_string */ QUrlQuery_AllQueryItemValues(const QUrlQuery* self, struct miqt_string key); void QUrlQuery_RemoveAllQueryItems(QUrlQuery* self, struct miqt_string key); QChar* QUrlQuery_DefaultQueryValueDelimiter(); QChar* QUrlQuery_DefaultQueryPairDelimiter(); struct miqt_string QUrlQuery_Query1(const QUrlQuery* self, int encoding); struct miqt_string QUrlQuery_ToString1(const QUrlQuery* self, int encoding); +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QUrlQuery_QueryItems1(const QUrlQuery* self, int encoding); struct miqt_string QUrlQuery_QueryItemValue2(const QUrlQuery* self, struct miqt_string key, int encoding); -struct miqt_array QUrlQuery_AllQueryItemValues2(const QUrlQuery* self, struct miqt_string key, int encoding); +struct miqt_array /* of struct miqt_string */ QUrlQuery_AllQueryItemValues2(const QUrlQuery* self, struct miqt_string key, int encoding); void QUrlQuery_Delete(QUrlQuery* self); #ifdef __cplusplus diff --git a/qt/gen_quuid.h b/qt/gen_quuid.h index 39942490..816ce9d9 100644 --- a/qt/gen_quuid.h +++ b/qt/gen_quuid.h @@ -1,5 +1,6 @@ -#ifndef GEN_QUUID_H -#define GEN_QUUID_H +#pragma once +#ifndef MIQT_QT_GEN_QUUID_H +#define MIQT_QT_GEN_QUUID_H #include #include diff --git a/qt/gen_qvalidator.h b/qt/gen_qvalidator.h index 1452e8e0..78285a9c 100644 --- a/qt/gen_qvalidator.h +++ b/qt/gen_qvalidator.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVALIDATOR_H -#define GEN_QVALIDATOR_H +#pragma once +#ifndef MIQT_QT_GEN_QVALIDATOR_H +#define MIQT_QT_GEN_QVALIDATOR_H #include #include diff --git a/qt/gen_qvariant.cpp b/qt/gen_qvariant.cpp index d8371b16..d6bbc8dc 100644 --- a/qt/gen_qvariant.cpp +++ b/qt/gen_qvariant.cpp @@ -110,7 +110,7 @@ QVariant* QVariant_new17(struct miqt_string stringVal) { return new QVariant(stringVal_QString); } -QVariant* QVariant_new18(struct miqt_array /* of struct miqt_string */ stringlist) { +QVariant* QVariant_new18(struct miqt_array /* of struct miqt_string */ stringlist) { QStringList stringlist_QList; stringlist_QList.reserve(stringlist.len); struct miqt_string* stringlist_arr = static_cast(stringlist.data); @@ -137,7 +137,7 @@ QVariant* QVariant_new22(QDateTime* datetime) { return new QVariant(*datetime); } -QVariant* QVariant_new23(struct miqt_map mapVal) { +QVariant* QVariant_new23(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal) { QMap mapVal_QMap; struct miqt_string* mapVal_karr = static_cast(mapVal.keys); QVariant** mapVal_varr = static_cast(mapVal.values); @@ -148,7 +148,7 @@ QVariant* QVariant_new23(struct miqt_map mapVal) { return new QVariant(mapVal_QMap); } -QVariant* QVariant_new24(struct miqt_map hash) { +QVariant* QVariant_new24(struct miqt_map /* of struct miqt_string to QVariant* */ hash) { QHash hash_QMap; hash_QMap.reserve(hash.len); struct miqt_string* hash_karr = static_cast(hash.keys); @@ -349,7 +349,7 @@ struct miqt_string QVariant_ToString(const QVariant* self) { return _ms; } -struct miqt_array QVariant_ToStringList(const QVariant* self) { +struct miqt_array /* of struct miqt_string */ QVariant_ToStringList(const QVariant* self) { QStringList _ret = self->toStringList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -385,7 +385,7 @@ QDateTime* QVariant_ToDateTime(const QVariant* self) { return new QDateTime(self->toDateTime()); } -struct miqt_map QVariant_ToMap(const QVariant* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QVariant_ToMap(const QVariant* self) { QMap _ret = self->toMap(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); @@ -410,7 +410,7 @@ struct miqt_map QVariant_ToMap(const QVariant* self) { return _out; } -struct miqt_map QVariant_ToHash(const QVariant* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QVariant_ToHash(const QVariant* self) { QHash _ret = self->toHash(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); diff --git a/qt/gen_qvariant.h b/qt/gen_qvariant.h index 30d2b83a..295621f0 100644 --- a/qt/gen_qvariant.h +++ b/qt/gen_qvariant.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVARIANT_H -#define GEN_QVARIANT_H +#pragma once +#ifndef MIQT_QT_GEN_QVARIANT_H +#define MIQT_QT_GEN_QVARIANT_H #include #include @@ -116,13 +117,13 @@ QVariant* QVariant_new14(const char* str); QVariant* QVariant_new15(struct miqt_string bytearray); QVariant* QVariant_new16(QBitArray* bitarray); QVariant* QVariant_new17(struct miqt_string stringVal); -QVariant* QVariant_new18(struct miqt_array /* of struct miqt_string */ stringlist); +QVariant* QVariant_new18(struct miqt_array /* of struct miqt_string */ stringlist); QVariant* QVariant_new19(QChar* qchar); QVariant* QVariant_new20(QDate* date); QVariant* QVariant_new21(QTime* time); QVariant* QVariant_new22(QDateTime* datetime); -QVariant* QVariant_new23(struct miqt_map mapVal); -QVariant* QVariant_new24(struct miqt_map hash); +QVariant* QVariant_new23(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal); +QVariant* QVariant_new24(struct miqt_map /* of struct miqt_string to QVariant* */ hash); QVariant* QVariant_new25(QSize* size); QVariant* QVariant_new26(QSizeF* size); QVariant* QVariant_new27(QPoint* pt); @@ -166,13 +167,13 @@ double QVariant_ToReal(const QVariant* self); struct miqt_string QVariant_ToByteArray(const QVariant* self); QBitArray* QVariant_ToBitArray(const QVariant* self); struct miqt_string QVariant_ToString(const QVariant* self); -struct miqt_array QVariant_ToStringList(const QVariant* self); +struct miqt_array /* of struct miqt_string */ QVariant_ToStringList(const QVariant* self); QChar* QVariant_ToChar(const QVariant* self); QDate* QVariant_ToDate(const QVariant* self); QTime* QVariant_ToTime(const QVariant* self); QDateTime* QVariant_ToDateTime(const QVariant* self); -struct miqt_map QVariant_ToMap(const QVariant* self); -struct miqt_map QVariant_ToHash(const QVariant* self); +struct miqt_map /* of struct miqt_string to QVariant* */ QVariant_ToMap(const QVariant* self); +struct miqt_map /* of struct miqt_string to QVariant* */ QVariant_ToHash(const QVariant* self); QPoint* QVariant_ToPoint(const QVariant* self); QPointF* QVariant_ToPointF(const QVariant* self); QRect* QVariant_ToRect(const QVariant* self); diff --git a/qt/gen_qvariantanimation.cpp b/qt/gen_qvariantanimation.cpp index aeb60290..775f0732 100644 --- a/qt/gen_qvariantanimation.cpp +++ b/qt/gen_qvariantanimation.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -72,6 +73,44 @@ void QVariantAnimation_SetKeyValueAt(QVariantAnimation* self, double step, QVari self->setKeyValueAt(static_cast(step), *value); } +struct miqt_array /* of struct miqt_map tuple of double and QVariant* */ QVariantAnimation_KeyValues(const QVariantAnimation* self) { + QVariantAnimation::KeyValues _ret = self->keyValues(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of double and QVariant* */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of double and QVariant* */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _vv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + double* _vv_first_arr = static_cast(malloc(sizeof(double))); + QVariant** _vv_second_arr = static_cast(malloc(sizeof(QVariant*))); + _vv_first_arr[0] = _vv_ret.first; + _vv_second_arr[0] = new QVariant(_vv_ret.second); + struct miqt_map _vv_out; + _vv_out.len = 1; + _vv_out.keys = static_cast(_vv_first_arr); + _vv_out.values = static_cast(_vv_second_arr); + _arr[i] = _vv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + +void QVariantAnimation_SetKeyValues(QVariantAnimation* self, struct miqt_array /* of struct miqt_map tuple of double and QVariant* */ values) { + QVariantAnimation::KeyValues values_QList; + values_QList.reserve(values.len); + struct miqt_map /* tuple of double and QVariant* */ * values_arr = static_cast(values.data); + for(size_t i = 0; i < values.len; ++i) { + QPair values_arr_i_QPair; + double* values_arr_i_first_arr = static_cast(values_arr[i].keys); + QVariant** values_arr_i_second_arr = static_cast(values_arr[i].values); + values_arr_i_QPair.first = static_cast(values_arr_i_first_arr[0]); + values_arr_i_QPair.second = *(values_arr_i_second_arr[0]); + values_QList.push_back(values_arr_i_QPair); + } + self->setKeyValues(values_QList); +} + QVariant* QVariantAnimation_CurrentValue(const QVariantAnimation* self) { return new QVariant(self->currentValue()); } diff --git a/qt/gen_qvariantanimation.go b/qt/gen_qvariantanimation.go index 74a9573a..48fa3d49 100644 --- a/qt/gen_qvariantanimation.go +++ b/qt/gen_qvariantanimation.go @@ -117,6 +117,59 @@ func (this *QVariantAnimation) SetKeyValueAt(step float64, value *QVariant) { C.QVariantAnimation_SetKeyValueAt(this.h, (C.double)(step), value.cPointer()) } +func (this *QVariantAnimation) KeyValues() []struct { + First float64 + Second QVariant +} { + var _ma C.struct_miqt_array = C.QVariantAnimation_KeyValues(this.h) + _ret := make([]struct { + First float64 + Second QVariant + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _vv_mm C.struct_miqt_map = _outCast[i] + _vv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_vv_mm.keys)) + _vv_Second_CArray := (*[0xffff]*C.QVariant)(unsafe.Pointer(_vv_mm.values)) + _vv_entry_First := (float64)(_vv_First_CArray[0]) + + _vv_second_ret := _vv_Second_CArray[0] + _vv_second_goptr := newQVariant(_vv_second_ret) + _vv_second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _vv_entry_Second := *_vv_second_goptr + + _ret[i] = struct { + First float64 + Second QVariant + }{First: _vv_entry_First, Second: _vv_entry_Second} + } + return _ret +} + +func (this *QVariantAnimation) SetKeyValues(values []struct { + First float64 + Second QVariant +}) { + values_CArray := (*[0xffff]C.struct_miqt_map)(C.malloc(C.size_t(8 * len(values)))) + defer C.free(unsafe.Pointer(values_CArray)) + for i := range values { + values_i_First_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(values_i_First_CArray)) + values_i_Second_CArray := (*[0xffff]*C.QVariant)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(values_i_Second_CArray)) + values_i_First_CArray[0] = (C.double)(values[i].First) + values_i_Second_CArray[0] = values[i].Second.cPointer() + values_i_pair := C.struct_miqt_map{ + len: 1, + keys: unsafe.Pointer(values_i_First_CArray), + values: unsafe.Pointer(values_i_Second_CArray), + } + values_CArray[i] = values_i_pair + } + values_ma := C.struct_miqt_array{len: C.size_t(len(values)), data: unsafe.Pointer(values_CArray)} + C.QVariantAnimation_SetKeyValues(this.h, values_ma) +} + func (this *QVariantAnimation) CurrentValue() *QVariant { _ret := C.QVariantAnimation_CurrentValue(this.h) _goptr := newQVariant(_ret) diff --git a/qt/gen_qvariantanimation.h b/qt/gen_qvariantanimation.h index f211c1b8..d6534118 100644 --- a/qt/gen_qvariantanimation.h +++ b/qt/gen_qvariantanimation.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVARIANTANIMATION_H -#define GEN_QVARIANTANIMATION_H +#pragma once +#ifndef MIQT_QT_GEN_QVARIANTANIMATION_H +#define MIQT_QT_GEN_QVARIANTANIMATION_H #include #include @@ -39,6 +40,8 @@ QVariant* QVariantAnimation_EndValue(const QVariantAnimation* self); void QVariantAnimation_SetEndValue(QVariantAnimation* self, QVariant* value); QVariant* QVariantAnimation_KeyValueAt(const QVariantAnimation* self, double step); void QVariantAnimation_SetKeyValueAt(QVariantAnimation* self, double step, QVariant* value); +struct miqt_array /* of struct miqt_map tuple of double and QVariant* */ QVariantAnimation_KeyValues(const QVariantAnimation* self); +void QVariantAnimation_SetKeyValues(QVariantAnimation* self, struct miqt_array /* of struct miqt_map tuple of double and QVariant* */ values); QVariant* QVariantAnimation_CurrentValue(const QVariantAnimation* self); int QVariantAnimation_Duration(const QVariantAnimation* self); void QVariantAnimation_SetDuration(QVariantAnimation* self, int msecs); diff --git a/qt/gen_qvector2d.h b/qt/gen_qvector2d.h index 2495697c..eab07434 100644 --- a/qt/gen_qvector2d.h +++ b/qt/gen_qvector2d.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVECTOR2D_H -#define GEN_QVECTOR2D_H +#pragma once +#ifndef MIQT_QT_GEN_QVECTOR2D_H +#define MIQT_QT_GEN_QVECTOR2D_H #include #include diff --git a/qt/gen_qvector3d.h b/qt/gen_qvector3d.h index fa5b72a0..12fa5637 100644 --- a/qt/gen_qvector3d.h +++ b/qt/gen_qvector3d.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVECTOR3D_H -#define GEN_QVECTOR3D_H +#pragma once +#ifndef MIQT_QT_GEN_QVECTOR3D_H +#define MIQT_QT_GEN_QVECTOR3D_H #include #include diff --git a/qt/gen_qvector4d.h b/qt/gen_qvector4d.h index a64644b7..1912a936 100644 --- a/qt/gen_qvector4d.h +++ b/qt/gen_qvector4d.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVECTOR4D_H -#define GEN_QVECTOR4D_H +#pragma once +#ifndef MIQT_QT_GEN_QVECTOR4D_H +#define MIQT_QT_GEN_QVECTOR4D_H #include #include diff --git a/qt/gen_qversionnumber.cpp b/qt/gen_qversionnumber.cpp index b7bc000a..28a00d27 100644 --- a/qt/gen_qversionnumber.cpp +++ b/qt/gen_qversionnumber.cpp @@ -11,7 +11,7 @@ QVersionNumber* QVersionNumber_new() { return new QVersionNumber(); } -QVersionNumber* QVersionNumber_new2(struct miqt_array /* of int */ seg) { +QVersionNumber* QVersionNumber_new2(struct miqt_array /* of int */ seg) { QVector seg_QList; seg_QList.reserve(seg.len); int* seg_arr = static_cast(seg.data); @@ -57,7 +57,7 @@ QVersionNumber* QVersionNumber_Normalized(const QVersionNumber* self) { return new QVersionNumber(self->normalized()); } -struct miqt_array QVersionNumber_Segments(const QVersionNumber* self) { +struct miqt_array /* of int */ QVersionNumber_Segments(const QVersionNumber* self) { QVector _ret = self->segments(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt/gen_qversionnumber.h b/qt/gen_qversionnumber.h index 624ce2d0..cedddfe5 100644 --- a/qt/gen_qversionnumber.h +++ b/qt/gen_qversionnumber.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVERSIONNUMBER_H -#define GEN_QVERSIONNUMBER_H +#pragma once +#ifndef MIQT_QT_GEN_QVERSIONNUMBER_H +#define MIQT_QT_GEN_QVERSIONNUMBER_H #include #include @@ -20,7 +21,7 @@ typedef struct QVersionNumber QVersionNumber; #endif QVersionNumber* QVersionNumber_new(); -QVersionNumber* QVersionNumber_new2(struct miqt_array /* of int */ seg); +QVersionNumber* QVersionNumber_new2(struct miqt_array /* of int */ seg); QVersionNumber* QVersionNumber_new3(int maj); QVersionNumber* QVersionNumber_new4(int maj, int min); QVersionNumber* QVersionNumber_new5(int maj, int min, int mic); @@ -30,7 +31,7 @@ int QVersionNumber_MajorVersion(const QVersionNumber* self); int QVersionNumber_MinorVersion(const QVersionNumber* self); int QVersionNumber_MicroVersion(const QVersionNumber* self); QVersionNumber* QVersionNumber_Normalized(const QVersionNumber* self); -struct miqt_array QVersionNumber_Segments(const QVersionNumber* self); +struct miqt_array /* of int */ QVersionNumber_Segments(const QVersionNumber* self); int QVersionNumber_SegmentAt(const QVersionNumber* self, int index); int QVersionNumber_SegmentCount(const QVersionNumber* self); bool QVersionNumber_IsPrefixOf(const QVersionNumber* self, QVersionNumber* other); diff --git a/qt/gen_qwaitcondition.h b/qt/gen_qwaitcondition.h index a1fdefef..5abaaf5b 100644 --- a/qt/gen_qwaitcondition.h +++ b/qt/gen_qwaitcondition.h @@ -1,5 +1,6 @@ -#ifndef GEN_QWAITCONDITION_H -#define GEN_QWAITCONDITION_H +#pragma once +#ifndef MIQT_QT_GEN_QWAITCONDITION_H +#define MIQT_QT_GEN_QWAITCONDITION_H #include #include diff --git a/qt/gen_qwhatsthis.h b/qt/gen_qwhatsthis.h index e427a89a..0ed60fdd 100644 --- a/qt/gen_qwhatsthis.h +++ b/qt/gen_qwhatsthis.h @@ -1,5 +1,6 @@ -#ifndef GEN_QWHATSTHIS_H -#define GEN_QWHATSTHIS_H +#pragma once +#ifndef MIQT_QT_GEN_QWHATSTHIS_H +#define MIQT_QT_GEN_QWHATSTHIS_H #include #include diff --git a/qt/gen_qwidget.cpp b/qt/gen_qwidget.cpp index da52a3a3..6ccc078b 100644 --- a/qt/gen_qwidget.cpp +++ b/qt/gen_qwidget.cpp @@ -1071,7 +1071,7 @@ void QWidget_AddAction(QWidget* self, QAction* action) { self->addAction(action); } -void QWidget_AddActions(QWidget* self, struct miqt_array /* of QAction* */ actions) { +void QWidget_AddActions(QWidget* self, struct miqt_array /* of QAction* */ actions) { QList actions_QList; actions_QList.reserve(actions.len); QAction** actions_arr = static_cast(actions.data); @@ -1081,7 +1081,7 @@ void QWidget_AddActions(QWidget* self, struct miqt_array /* of QAction* */ actio self->addActions(actions_QList); } -void QWidget_InsertActions(QWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions) { +void QWidget_InsertActions(QWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions) { QList actions_QList; actions_QList.reserve(actions.len); QAction** actions_arr = static_cast(actions.data); @@ -1099,7 +1099,7 @@ void QWidget_RemoveAction(QWidget* self, QAction* action) { self->removeAction(action); } -struct miqt_array QWidget_Actions(const QWidget* self) { +struct miqt_array /* of QAction* */ QWidget_Actions(const QWidget* self) { QList _ret = self->actions(); // Convert QList<> from C++ memory to manually-managed C memory QAction** _arr = static_cast(malloc(sizeof(QAction*) * _ret.length())); diff --git a/qt/gen_qwidget.h b/qt/gen_qwidget.h index ac924644..27af310d 100644 --- a/qt/gen_qwidget.h +++ b/qt/gen_qwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QWIDGET_H -#define GEN_QWIDGET_H +#pragma once +#ifndef MIQT_QT_GEN_QWIDGET_H +#define MIQT_QT_GEN_QWIDGET_H #include #include @@ -311,11 +312,11 @@ QWidget* QWidget_PreviousInFocusChain(const QWidget* self); bool QWidget_AcceptDrops(const QWidget* self); void QWidget_SetAcceptDrops(QWidget* self, bool on); void QWidget_AddAction(QWidget* self, QAction* action); -void QWidget_AddActions(QWidget* self, struct miqt_array /* of QAction* */ actions); -void QWidget_InsertActions(QWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions); +void QWidget_AddActions(QWidget* self, struct miqt_array /* of QAction* */ actions); +void QWidget_InsertActions(QWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions); void QWidget_InsertAction(QWidget* self, QAction* before, QAction* action); void QWidget_RemoveAction(QWidget* self, QAction* action); -struct miqt_array QWidget_Actions(const QWidget* self); +struct miqt_array /* of QAction* */ QWidget_Actions(const QWidget* self); QWidget* QWidget_ParentWidget(const QWidget* self); void QWidget_SetWindowFlags(QWidget* self, int typeVal); int QWidget_WindowFlags(const QWidget* self); diff --git a/qt/gen_qwidgetaction.h b/qt/gen_qwidgetaction.h index f3c10e6c..e54602e2 100644 --- a/qt/gen_qwidgetaction.h +++ b/qt/gen_qwidgetaction.h @@ -1,5 +1,6 @@ -#ifndef GEN_QWIDGETACTION_H -#define GEN_QWIDGETACTION_H +#pragma once +#ifndef MIQT_QT_GEN_QWIDGETACTION_H +#define MIQT_QT_GEN_QWIDGETACTION_H #include #include diff --git a/qt/gen_qwindow.h b/qt/gen_qwindow.h index 28943690..341bca59 100644 --- a/qt/gen_qwindow.h +++ b/qt/gen_qwindow.h @@ -1,5 +1,6 @@ -#ifndef GEN_QWINDOW_H -#define GEN_QWINDOW_H +#pragma once +#ifndef MIQT_QT_GEN_QWINDOW_H +#define MIQT_QT_GEN_QWINDOW_H #include #include diff --git a/qt/gen_qwizard.cpp b/qt/gen_qwizard.cpp index 2e202e97..415a3c59 100644 --- a/qt/gen_qwizard.cpp +++ b/qt/gen_qwizard.cpp @@ -76,7 +76,7 @@ bool QWizard_HasVisitedPage(const QWizard* self, int id) { return self->hasVisitedPage(static_cast(id)); } -struct miqt_array QWizard_VisitedPages(const QWizard* self) { +struct miqt_array /* of int */ QWizard_VisitedPages(const QWizard* self) { QList _ret = self->visitedPages(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -89,7 +89,7 @@ struct miqt_array QWizard_VisitedPages(const QWizard* self) { return _out; } -struct miqt_array QWizard_VisitedIds(const QWizard* self) { +struct miqt_array /* of int */ QWizard_VisitedIds(const QWizard* self) { QList _ret = self->visitedIds(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -102,7 +102,7 @@ struct miqt_array QWizard_VisitedIds(const QWizard* self) { return _out; } -struct miqt_array QWizard_PageIds(const QWizard* self) { +struct miqt_array /* of int */ QWizard_PageIds(const QWizard* self) { QList _ret = self->pageIds(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -191,7 +191,7 @@ struct miqt_string QWizard_ButtonText(const QWizard* self, int which) { return _ms; } -void QWizard_SetButtonLayout(QWizard* self, struct miqt_array /* of int */ layout) { +void QWizard_SetButtonLayout(QWizard* self, struct miqt_array /* of int */ layout) { QList layout_QList; layout_QList.reserve(layout.len); int* layout_arr = static_cast(layout.data); diff --git a/qt/gen_qwizard.h b/qt/gen_qwizard.h index 2251a684..eb1a31d4 100644 --- a/qt/gen_qwizard.h +++ b/qt/gen_qwizard.h @@ -1,5 +1,6 @@ -#ifndef GEN_QWIZARD_H -#define GEN_QWIZARD_H +#pragma once +#ifndef MIQT_QT_GEN_QWIZARD_H +#define MIQT_QT_GEN_QWIZARD_H #include #include @@ -45,9 +46,9 @@ void QWizard_SetPage(QWizard* self, int id, QWizardPage* page); void QWizard_RemovePage(QWizard* self, int id); QWizardPage* QWizard_Page(const QWizard* self, int id); bool QWizard_HasVisitedPage(const QWizard* self, int id); -struct miqt_array QWizard_VisitedPages(const QWizard* self); -struct miqt_array QWizard_VisitedIds(const QWizard* self); -struct miqt_array QWizard_PageIds(const QWizard* self); +struct miqt_array /* of int */ QWizard_VisitedPages(const QWizard* self); +struct miqt_array /* of int */ QWizard_VisitedIds(const QWizard* self); +struct miqt_array /* of int */ QWizard_PageIds(const QWizard* self); void QWizard_SetStartId(QWizard* self, int id); int QWizard_StartId(const QWizard* self); QWizardPage* QWizard_CurrentPage(const QWizard* self); @@ -64,7 +65,7 @@ void QWizard_SetOptions(QWizard* self, int options); int QWizard_Options(const QWizard* self); void QWizard_SetButtonText(QWizard* self, int which, struct miqt_string text); struct miqt_string QWizard_ButtonText(const QWizard* self, int which); -void QWizard_SetButtonLayout(QWizard* self, struct miqt_array /* of int */ layout); +void QWizard_SetButtonLayout(QWizard* self, struct miqt_array /* of int */ layout); void QWizard_SetButton(QWizard* self, int which, QAbstractButton* button); QAbstractButton* QWizard_Button(const QWizard* self, int which); void QWizard_SetTitleFormat(QWizard* self, int format); diff --git a/qt/gen_qxmlstream.cpp b/qt/gen_qxmlstream.cpp index 51059922..92b39c07 100644 --- a/qt/gen_qxmlstream.cpp +++ b/qt/gen_qxmlstream.cpp @@ -380,7 +380,7 @@ struct miqt_string QXmlStreamReader_ReadElementText(QXmlStreamReader* self) { return _ms; } -struct miqt_array QXmlStreamReader_NamespaceDeclarations(const QXmlStreamReader* self) { +struct miqt_array /* of QXmlStreamNamespaceDeclaration* */ QXmlStreamReader_NamespaceDeclarations(const QXmlStreamReader* self) { QXmlStreamNamespaceDeclarations _ret = self->namespaceDeclarations(); // Convert QList<> from C++ memory to manually-managed C memory QXmlStreamNamespaceDeclaration** _arr = static_cast(malloc(sizeof(QXmlStreamNamespaceDeclaration*) * _ret.length())); @@ -397,7 +397,7 @@ void QXmlStreamReader_AddExtraNamespaceDeclaration(QXmlStreamReader* self, QXmlS self->addExtraNamespaceDeclaration(*extraNamespaceDeclaraction); } -void QXmlStreamReader_AddExtraNamespaceDeclarations(QXmlStreamReader* self, struct miqt_array /* of QXmlStreamNamespaceDeclaration* */ extraNamespaceDeclaractions) { +void QXmlStreamReader_AddExtraNamespaceDeclarations(QXmlStreamReader* self, struct miqt_array /* of QXmlStreamNamespaceDeclaration* */ extraNamespaceDeclaractions) { QXmlStreamNamespaceDeclarations extraNamespaceDeclaractions_QList; extraNamespaceDeclaractions_QList.reserve(extraNamespaceDeclaractions.len); QXmlStreamNamespaceDeclaration** extraNamespaceDeclaractions_arr = static_cast(extraNamespaceDeclaractions.data); @@ -407,7 +407,7 @@ void QXmlStreamReader_AddExtraNamespaceDeclarations(QXmlStreamReader* self, stru self->addExtraNamespaceDeclarations(extraNamespaceDeclaractions_QList); } -struct miqt_array QXmlStreamReader_NotationDeclarations(const QXmlStreamReader* self) { +struct miqt_array /* of QXmlStreamNotationDeclaration* */ QXmlStreamReader_NotationDeclarations(const QXmlStreamReader* self) { QXmlStreamNotationDeclarations _ret = self->notationDeclarations(); // Convert QList<> from C++ memory to manually-managed C memory QXmlStreamNotationDeclaration** _arr = static_cast(malloc(sizeof(QXmlStreamNotationDeclaration*) * _ret.length())); @@ -420,7 +420,7 @@ struct miqt_array QXmlStreamReader_NotationDeclarations(const QXmlStreamReader* return _out; } -struct miqt_array QXmlStreamReader_EntityDeclarations(const QXmlStreamReader* self) { +struct miqt_array /* of QXmlStreamEntityDeclaration* */ QXmlStreamReader_EntityDeclarations(const QXmlStreamReader* self) { QXmlStreamEntityDeclarations _ret = self->entityDeclarations(); // Convert QList<> from C++ memory to manually-managed C memory QXmlStreamEntityDeclaration** _arr = static_cast(malloc(sizeof(QXmlStreamEntityDeclaration*) * _ret.length())); diff --git a/qt/gen_qxmlstream.h b/qt/gen_qxmlstream.h index a6d27efc..5df522d7 100644 --- a/qt/gen_qxmlstream.h +++ b/qt/gen_qxmlstream.h @@ -1,5 +1,6 @@ -#ifndef GEN_QXMLSTREAM_H -#define GEN_QXMLSTREAM_H +#pragma once +#ifndef MIQT_QT_GEN_QXMLSTREAM_H +#define MIQT_QT_GEN_QXMLSTREAM_H #include #include @@ -122,11 +123,11 @@ long long QXmlStreamReader_LineNumber(const QXmlStreamReader* self); long long QXmlStreamReader_ColumnNumber(const QXmlStreamReader* self); long long QXmlStreamReader_CharacterOffset(const QXmlStreamReader* self); struct miqt_string QXmlStreamReader_ReadElementText(QXmlStreamReader* self); -struct miqt_array QXmlStreamReader_NamespaceDeclarations(const QXmlStreamReader* self); +struct miqt_array /* of QXmlStreamNamespaceDeclaration* */ QXmlStreamReader_NamespaceDeclarations(const QXmlStreamReader* self); void QXmlStreamReader_AddExtraNamespaceDeclaration(QXmlStreamReader* self, QXmlStreamNamespaceDeclaration* extraNamespaceDeclaraction); -void QXmlStreamReader_AddExtraNamespaceDeclarations(QXmlStreamReader* self, struct miqt_array /* of QXmlStreamNamespaceDeclaration* */ extraNamespaceDeclaractions); -struct miqt_array QXmlStreamReader_NotationDeclarations(const QXmlStreamReader* self); -struct miqt_array QXmlStreamReader_EntityDeclarations(const QXmlStreamReader* self); +void QXmlStreamReader_AddExtraNamespaceDeclarations(QXmlStreamReader* self, struct miqt_array /* of QXmlStreamNamespaceDeclaration* */ extraNamespaceDeclaractions); +struct miqt_array /* of QXmlStreamNotationDeclaration* */ QXmlStreamReader_NotationDeclarations(const QXmlStreamReader* self); +struct miqt_array /* of QXmlStreamEntityDeclaration* */ QXmlStreamReader_EntityDeclarations(const QXmlStreamReader* self); int QXmlStreamReader_EntityExpansionLimit(const QXmlStreamReader* self); void QXmlStreamReader_SetEntityExpansionLimit(QXmlStreamReader* self, int limit); void QXmlStreamReader_RaiseError(QXmlStreamReader* self); diff --git a/qt/multimedia/gen_qabstractvideobuffer.go b/qt/multimedia/gen_qabstractvideobuffer.go index 9e9df564..60caa35d 100644 --- a/qt/multimedia/gen_qabstractvideobuffer.go +++ b/qt/multimedia/gen_qabstractvideobuffer.go @@ -78,7 +78,7 @@ func (this *QAbstractVideoBuffer) MapMode() QAbstractVideoBuffer__MapMode { } func (this *QAbstractVideoBuffer) Map(mode QAbstractVideoBuffer__MapMode, numBytes *int, bytesPerLine *int) *byte { - return (*byte)(C.QAbstractVideoBuffer_Map(this.h, (C.int)(mode), (*C.int)(unsafe.Pointer(numBytes)), (*C.int)(unsafe.Pointer(bytesPerLine)))) + return (*byte)(unsafe.Pointer(C.QAbstractVideoBuffer_Map(this.h, (C.int)(mode), (*C.int)(unsafe.Pointer(numBytes)), (*C.int)(unsafe.Pointer(bytesPerLine))))) } func (this *QAbstractVideoBuffer) Unmap() { @@ -137,7 +137,7 @@ func UnsafeNewQAbstractPlanarVideoBuffer(h unsafe.Pointer) *QAbstractPlanarVideo } func (this *QAbstractPlanarVideoBuffer) Map(mode QAbstractVideoBuffer__MapMode, numBytes *int, bytesPerLine *int) *byte { - return (*byte)(C.QAbstractPlanarVideoBuffer_Map(this.h, (C.int)(mode), (*C.int)(unsafe.Pointer(numBytes)), (*C.int)(unsafe.Pointer(bytesPerLine)))) + return (*byte)(unsafe.Pointer(C.QAbstractPlanarVideoBuffer_Map(this.h, (C.int)(mode), (*C.int)(unsafe.Pointer(numBytes)), (*C.int)(unsafe.Pointer(bytesPerLine))))) } // Delete this object from C++ memory. diff --git a/qt/multimedia/gen_qabstractvideobuffer.h b/qt/multimedia/gen_qabstractvideobuffer.h index fccf8329..4a056529 100644 --- a/qt/multimedia/gen_qabstractvideobuffer.h +++ b/qt/multimedia/gen_qabstractvideobuffer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTVIDEOBUFFER_H -#define GEN_QABSTRACTVIDEOBUFFER_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QABSTRACTVIDEOBUFFER_H +#define MIQT_QT_MULTIMEDIA_GEN_QABSTRACTVIDEOBUFFER_H #include #include diff --git a/qt/multimedia/gen_qabstractvideofilter.h b/qt/multimedia/gen_qabstractvideofilter.h index 82d285a1..3f5ad51f 100644 --- a/qt/multimedia/gen_qabstractvideofilter.h +++ b/qt/multimedia/gen_qabstractvideofilter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTVIDEOFILTER_H -#define GEN_QABSTRACTVIDEOFILTER_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QABSTRACTVIDEOFILTER_H +#define MIQT_QT_MULTIMEDIA_GEN_QABSTRACTVIDEOFILTER_H #include #include diff --git a/qt/multimedia/gen_qabstractvideosurface.cpp b/qt/multimedia/gen_qabstractvideosurface.cpp index 1de68cac..93e9a116 100644 --- a/qt/multimedia/gen_qabstractvideosurface.cpp +++ b/qt/multimedia/gen_qabstractvideosurface.cpp @@ -41,7 +41,7 @@ struct miqt_string QAbstractVideoSurface_TrUtf8(const char* s) { return _ms; } -struct miqt_array QAbstractVideoSurface_SupportedPixelFormats(const QAbstractVideoSurface* self) { +struct miqt_array /* of int */ QAbstractVideoSurface_SupportedPixelFormats(const QAbstractVideoSurface* self) { QList _ret = self->supportedPixelFormats(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -183,7 +183,7 @@ struct miqt_string QAbstractVideoSurface_TrUtf83(const char* s, const char* c, i return _ms; } -struct miqt_array QAbstractVideoSurface_SupportedPixelFormats1(const QAbstractVideoSurface* self, int typeVal) { +struct miqt_array /* of int */ QAbstractVideoSurface_SupportedPixelFormats1(const QAbstractVideoSurface* self, int typeVal) { QList _ret = self->supportedPixelFormats(static_cast(typeVal)); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt/multimedia/gen_qabstractvideosurface.h b/qt/multimedia/gen_qabstractvideosurface.h index 53fc8838..1e9f0fa3 100644 --- a/qt/multimedia/gen_qabstractvideosurface.h +++ b/qt/multimedia/gen_qabstractvideosurface.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTVIDEOSURFACE_H -#define GEN_QABSTRACTVIDEOSURFACE_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QABSTRACTVIDEOSURFACE_H +#define MIQT_QT_MULTIMEDIA_GEN_QABSTRACTVIDEOSURFACE_H #include #include @@ -31,7 +32,7 @@ QMetaObject* QAbstractVideoSurface_MetaObject(const QAbstractVideoSurface* self) void* QAbstractVideoSurface_Metacast(QAbstractVideoSurface* self, const char* param1); struct miqt_string QAbstractVideoSurface_Tr(const char* s); struct miqt_string QAbstractVideoSurface_TrUtf8(const char* s); -struct miqt_array QAbstractVideoSurface_SupportedPixelFormats(const QAbstractVideoSurface* self); +struct miqt_array /* of int */ QAbstractVideoSurface_SupportedPixelFormats(const QAbstractVideoSurface* self); bool QAbstractVideoSurface_IsFormatSupported(const QAbstractVideoSurface* self, QVideoSurfaceFormat* format); QVideoSurfaceFormat* QAbstractVideoSurface_NearestFormat(const QAbstractVideoSurface* self, QVideoSurfaceFormat* format); QVideoSurfaceFormat* QAbstractVideoSurface_SurfaceFormat(const QAbstractVideoSurface* self); @@ -53,7 +54,7 @@ struct miqt_string QAbstractVideoSurface_Tr2(const char* s, const char* c); struct miqt_string QAbstractVideoSurface_Tr3(const char* s, const char* c, int n); struct miqt_string QAbstractVideoSurface_TrUtf82(const char* s, const char* c); struct miqt_string QAbstractVideoSurface_TrUtf83(const char* s, const char* c, int n); -struct miqt_array QAbstractVideoSurface_SupportedPixelFormats1(const QAbstractVideoSurface* self, int typeVal); +struct miqt_array /* of int */ QAbstractVideoSurface_SupportedPixelFormats1(const QAbstractVideoSurface* self, int typeVal); void QAbstractVideoSurface_Delete(QAbstractVideoSurface* self); #ifdef __cplusplus diff --git a/qt/multimedia/gen_qaudio.h b/qt/multimedia/gen_qaudio.h index fd053642..97c3eb3d 100644 --- a/qt/multimedia/gen_qaudio.h +++ b/qt/multimedia/gen_qaudio.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIO_H -#define GEN_QAUDIO_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIO_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIO_H #include #include diff --git a/qt/multimedia/gen_qaudiobuffer.h b/qt/multimedia/gen_qaudiobuffer.h index 955d9c38..f8f914a7 100644 --- a/qt/multimedia/gen_qaudiobuffer.h +++ b/qt/multimedia/gen_qaudiobuffer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOBUFFER_H -#define GEN_QAUDIOBUFFER_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIOBUFFER_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIOBUFFER_H #include #include diff --git a/qt/multimedia/gen_qaudiodecoder.cpp b/qt/multimedia/gen_qaudiodecoder.cpp index 055e62cb..f7cc9870 100644 --- a/qt/multimedia/gen_qaudiodecoder.cpp +++ b/qt/multimedia/gen_qaudiodecoder.cpp @@ -289,7 +289,7 @@ struct miqt_string QAudioDecoder_TrUtf83(const char* s, const char* c, int n) { return _ms; } -int QAudioDecoder_HasSupport2(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs) { +int QAudioDecoder_HasSupport2(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs) { QString mimeType_QString = QString::fromUtf8(mimeType.data, mimeType.len); QStringList codecs_QList; codecs_QList.reserve(codecs.len); diff --git a/qt/multimedia/gen_qaudiodecoder.h b/qt/multimedia/gen_qaudiodecoder.h index 2949a564..5392b5b4 100644 --- a/qt/multimedia/gen_qaudiodecoder.h +++ b/qt/multimedia/gen_qaudiodecoder.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIODECODER_H -#define GEN_QAUDIODECODER_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIODECODER_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIODECODER_H #include #include @@ -75,7 +76,7 @@ struct miqt_string QAudioDecoder_Tr2(const char* s, const char* c); struct miqt_string QAudioDecoder_Tr3(const char* s, const char* c, int n); struct miqt_string QAudioDecoder_TrUtf82(const char* s, const char* c); struct miqt_string QAudioDecoder_TrUtf83(const char* s, const char* c, int n); -int QAudioDecoder_HasSupport2(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs); +int QAudioDecoder_HasSupport2(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs); void QAudioDecoder_Delete(QAudioDecoder* self); #ifdef __cplusplus diff --git a/qt/multimedia/gen_qaudiodecodercontrol.h b/qt/multimedia/gen_qaudiodecodercontrol.h index e5e9e604..37cdfbc0 100644 --- a/qt/multimedia/gen_qaudiodecodercontrol.h +++ b/qt/multimedia/gen_qaudiodecodercontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIODECODERCONTROL_H -#define GEN_QAUDIODECODERCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIODECODERCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIODECODERCONTROL_H #include #include diff --git a/qt/multimedia/gen_qaudiodeviceinfo.cpp b/qt/multimedia/gen_qaudiodeviceinfo.cpp index bbd3c580..4e804ff2 100644 --- a/qt/multimedia/gen_qaudiodeviceinfo.cpp +++ b/qt/multimedia/gen_qaudiodeviceinfo.cpp @@ -55,7 +55,7 @@ QAudioFormat* QAudioDeviceInfo_NearestFormat(const QAudioDeviceInfo* self, QAudi return new QAudioFormat(self->nearestFormat(*format)); } -struct miqt_array QAudioDeviceInfo_SupportedCodecs(const QAudioDeviceInfo* self) { +struct miqt_array /* of struct miqt_string */ QAudioDeviceInfo_SupportedCodecs(const QAudioDeviceInfo* self) { QStringList _ret = self->supportedCodecs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -75,7 +75,7 @@ struct miqt_array QAudioDeviceInfo_SupportedCodecs(const QAudioDeviceInfo* self) return _out; } -struct miqt_array QAudioDeviceInfo_SupportedSampleRates(const QAudioDeviceInfo* self) { +struct miqt_array /* of int */ QAudioDeviceInfo_SupportedSampleRates(const QAudioDeviceInfo* self) { QList _ret = self->supportedSampleRates(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -88,7 +88,7 @@ struct miqt_array QAudioDeviceInfo_SupportedSampleRates(const QAudioDeviceInfo* return _out; } -struct miqt_array QAudioDeviceInfo_SupportedChannelCounts(const QAudioDeviceInfo* self) { +struct miqt_array /* of int */ QAudioDeviceInfo_SupportedChannelCounts(const QAudioDeviceInfo* self) { QList _ret = self->supportedChannelCounts(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -101,7 +101,7 @@ struct miqt_array QAudioDeviceInfo_SupportedChannelCounts(const QAudioDeviceInfo return _out; } -struct miqt_array QAudioDeviceInfo_SupportedSampleSizes(const QAudioDeviceInfo* self) { +struct miqt_array /* of int */ QAudioDeviceInfo_SupportedSampleSizes(const QAudioDeviceInfo* self) { QList _ret = self->supportedSampleSizes(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -114,7 +114,7 @@ struct miqt_array QAudioDeviceInfo_SupportedSampleSizes(const QAudioDeviceInfo* return _out; } -struct miqt_array QAudioDeviceInfo_SupportedByteOrders(const QAudioDeviceInfo* self) { +struct miqt_array /* of int */ QAudioDeviceInfo_SupportedByteOrders(const QAudioDeviceInfo* self) { QList _ret = self->supportedByteOrders(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -128,7 +128,7 @@ struct miqt_array QAudioDeviceInfo_SupportedByteOrders(const QAudioDeviceInfo* s return _out; } -struct miqt_array QAudioDeviceInfo_SupportedSampleTypes(const QAudioDeviceInfo* self) { +struct miqt_array /* of int */ QAudioDeviceInfo_SupportedSampleTypes(const QAudioDeviceInfo* self) { QList _ret = self->supportedSampleTypes(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -161,7 +161,7 @@ QAudioDeviceInfo* QAudioDeviceInfo_DefaultOutputDevice() { return new QAudioDeviceInfo(QAudioDeviceInfo::defaultOutputDevice()); } -struct miqt_array QAudioDeviceInfo_AvailableDevices(int mode) { +struct miqt_array /* of QAudioDeviceInfo* */ QAudioDeviceInfo_AvailableDevices(int mode) { QList _ret = QAudioDeviceInfo::availableDevices(static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QAudioDeviceInfo** _arr = static_cast(malloc(sizeof(QAudioDeviceInfo*) * _ret.length())); diff --git a/qt/multimedia/gen_qaudiodeviceinfo.h b/qt/multimedia/gen_qaudiodeviceinfo.h index 66b36a3e..d83ab0c0 100644 --- a/qt/multimedia/gen_qaudiodeviceinfo.h +++ b/qt/multimedia/gen_qaudiodeviceinfo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIODEVICEINFO_H -#define GEN_QAUDIODEVICEINFO_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIODEVICEINFO_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIODEVICEINFO_H #include #include @@ -31,16 +32,16 @@ struct miqt_string QAudioDeviceInfo_DeviceName(const QAudioDeviceInfo* self); bool QAudioDeviceInfo_IsFormatSupported(const QAudioDeviceInfo* self, QAudioFormat* format); QAudioFormat* QAudioDeviceInfo_PreferredFormat(const QAudioDeviceInfo* self); QAudioFormat* QAudioDeviceInfo_NearestFormat(const QAudioDeviceInfo* self, QAudioFormat* format); -struct miqt_array QAudioDeviceInfo_SupportedCodecs(const QAudioDeviceInfo* self); -struct miqt_array QAudioDeviceInfo_SupportedSampleRates(const QAudioDeviceInfo* self); -struct miqt_array QAudioDeviceInfo_SupportedChannelCounts(const QAudioDeviceInfo* self); -struct miqt_array QAudioDeviceInfo_SupportedSampleSizes(const QAudioDeviceInfo* self); -struct miqt_array QAudioDeviceInfo_SupportedByteOrders(const QAudioDeviceInfo* self); -struct miqt_array QAudioDeviceInfo_SupportedSampleTypes(const QAudioDeviceInfo* self); +struct miqt_array /* of struct miqt_string */ QAudioDeviceInfo_SupportedCodecs(const QAudioDeviceInfo* self); +struct miqt_array /* of int */ QAudioDeviceInfo_SupportedSampleRates(const QAudioDeviceInfo* self); +struct miqt_array /* of int */ QAudioDeviceInfo_SupportedChannelCounts(const QAudioDeviceInfo* self); +struct miqt_array /* of int */ QAudioDeviceInfo_SupportedSampleSizes(const QAudioDeviceInfo* self); +struct miqt_array /* of int */ QAudioDeviceInfo_SupportedByteOrders(const QAudioDeviceInfo* self); +struct miqt_array /* of int */ QAudioDeviceInfo_SupportedSampleTypes(const QAudioDeviceInfo* self); struct miqt_string QAudioDeviceInfo_Realm(const QAudioDeviceInfo* self); QAudioDeviceInfo* QAudioDeviceInfo_DefaultInputDevice(); QAudioDeviceInfo* QAudioDeviceInfo_DefaultOutputDevice(); -struct miqt_array QAudioDeviceInfo_AvailableDevices(int mode); +struct miqt_array /* of QAudioDeviceInfo* */ QAudioDeviceInfo_AvailableDevices(int mode); void QAudioDeviceInfo_Delete(QAudioDeviceInfo* self); #ifdef __cplusplus diff --git a/qt/multimedia/gen_qaudioencodersettingscontrol.cpp b/qt/multimedia/gen_qaudioencodersettingscontrol.cpp index 277908b0..9978f16c 100644 --- a/qt/multimedia/gen_qaudioencodersettingscontrol.cpp +++ b/qt/multimedia/gen_qaudioencodersettingscontrol.cpp @@ -39,7 +39,7 @@ struct miqt_string QAudioEncoderSettingsControl_TrUtf8(const char* s) { return _ms; } -struct miqt_array QAudioEncoderSettingsControl_SupportedAudioCodecs(const QAudioEncoderSettingsControl* self) { +struct miqt_array /* of struct miqt_string */ QAudioEncoderSettingsControl_SupportedAudioCodecs(const QAudioEncoderSettingsControl* self) { QStringList _ret = self->supportedAudioCodecs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -71,7 +71,7 @@ struct miqt_string QAudioEncoderSettingsControl_CodecDescription(const QAudioEnc return _ms; } -struct miqt_array QAudioEncoderSettingsControl_SupportedSampleRates(const QAudioEncoderSettingsControl* self, QAudioEncoderSettings* settings) { +struct miqt_array /* of int */ QAudioEncoderSettingsControl_SupportedSampleRates(const QAudioEncoderSettingsControl* self, QAudioEncoderSettings* settings) { QList _ret = self->supportedSampleRates(*settings); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -136,7 +136,7 @@ struct miqt_string QAudioEncoderSettingsControl_TrUtf83(const char* s, const cha return _ms; } -struct miqt_array QAudioEncoderSettingsControl_SupportedSampleRates2(const QAudioEncoderSettingsControl* self, QAudioEncoderSettings* settings, bool* continuous) { +struct miqt_array /* of int */ QAudioEncoderSettingsControl_SupportedSampleRates2(const QAudioEncoderSettingsControl* self, QAudioEncoderSettings* settings, bool* continuous) { QList _ret = self->supportedSampleRates(*settings, continuous); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt/multimedia/gen_qaudioencodersettingscontrol.h b/qt/multimedia/gen_qaudioencodersettingscontrol.h index d31ee2f0..23c699d1 100644 --- a/qt/multimedia/gen_qaudioencodersettingscontrol.h +++ b/qt/multimedia/gen_qaudioencodersettingscontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOENCODERSETTINGSCONTROL_H -#define GEN_QAUDIOENCODERSETTINGSCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIOENCODERSETTINGSCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIOENCODERSETTINGSCONTROL_H #include #include @@ -27,16 +28,16 @@ QMetaObject* QAudioEncoderSettingsControl_MetaObject(const QAudioEncoderSettings void* QAudioEncoderSettingsControl_Metacast(QAudioEncoderSettingsControl* self, const char* param1); struct miqt_string QAudioEncoderSettingsControl_Tr(const char* s); struct miqt_string QAudioEncoderSettingsControl_TrUtf8(const char* s); -struct miqt_array QAudioEncoderSettingsControl_SupportedAudioCodecs(const QAudioEncoderSettingsControl* self); +struct miqt_array /* of struct miqt_string */ QAudioEncoderSettingsControl_SupportedAudioCodecs(const QAudioEncoderSettingsControl* self); struct miqt_string QAudioEncoderSettingsControl_CodecDescription(const QAudioEncoderSettingsControl* self, struct miqt_string codecName); -struct miqt_array QAudioEncoderSettingsControl_SupportedSampleRates(const QAudioEncoderSettingsControl* self, QAudioEncoderSettings* settings); +struct miqt_array /* of int */ QAudioEncoderSettingsControl_SupportedSampleRates(const QAudioEncoderSettingsControl* self, QAudioEncoderSettings* settings); QAudioEncoderSettings* QAudioEncoderSettingsControl_AudioSettings(const QAudioEncoderSettingsControl* self); void QAudioEncoderSettingsControl_SetAudioSettings(QAudioEncoderSettingsControl* self, QAudioEncoderSettings* settings); struct miqt_string QAudioEncoderSettingsControl_Tr2(const char* s, const char* c); struct miqt_string QAudioEncoderSettingsControl_Tr3(const char* s, const char* c, int n); struct miqt_string QAudioEncoderSettingsControl_TrUtf82(const char* s, const char* c); struct miqt_string QAudioEncoderSettingsControl_TrUtf83(const char* s, const char* c, int n); -struct miqt_array QAudioEncoderSettingsControl_SupportedSampleRates2(const QAudioEncoderSettingsControl* self, QAudioEncoderSettings* settings, bool* continuous); +struct miqt_array /* of int */ QAudioEncoderSettingsControl_SupportedSampleRates2(const QAudioEncoderSettingsControl* self, QAudioEncoderSettings* settings, bool* continuous); void QAudioEncoderSettingsControl_Delete(QAudioEncoderSettingsControl* self); #ifdef __cplusplus diff --git a/qt/multimedia/gen_qaudioformat.h b/qt/multimedia/gen_qaudioformat.h index 326c84e4..f0203455 100644 --- a/qt/multimedia/gen_qaudioformat.h +++ b/qt/multimedia/gen_qaudioformat.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOFORMAT_H -#define GEN_QAUDIOFORMAT_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIOFORMAT_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIOFORMAT_H #include #include diff --git a/qt/multimedia/gen_qaudioinput.h b/qt/multimedia/gen_qaudioinput.h index 3844413f..c8e73455 100644 --- a/qt/multimedia/gen_qaudioinput.h +++ b/qt/multimedia/gen_qaudioinput.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOINPUT_H -#define GEN_QAUDIOINPUT_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIOINPUT_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIOINPUT_H #include #include diff --git a/qt/multimedia/gen_qaudioinputselectorcontrol.cpp b/qt/multimedia/gen_qaudioinputselectorcontrol.cpp index 63f08a32..699d0f85 100644 --- a/qt/multimedia/gen_qaudioinputselectorcontrol.cpp +++ b/qt/multimedia/gen_qaudioinputselectorcontrol.cpp @@ -38,7 +38,7 @@ struct miqt_string QAudioInputSelectorControl_TrUtf8(const char* s) { return _ms; } -struct miqt_array QAudioInputSelectorControl_AvailableInputs(const QAudioInputSelectorControl* self) { +struct miqt_array /* of struct miqt_string */ QAudioInputSelectorControl_AvailableInputs(const QAudioInputSelectorControl* self) { QList _ret = self->availableInputs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/multimedia/gen_qaudioinputselectorcontrol.h b/qt/multimedia/gen_qaudioinputselectorcontrol.h index 1189fa6c..8ef137a5 100644 --- a/qt/multimedia/gen_qaudioinputselectorcontrol.h +++ b/qt/multimedia/gen_qaudioinputselectorcontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOINPUTSELECTORCONTROL_H -#define GEN_QAUDIOINPUTSELECTORCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIOINPUTSELECTORCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIOINPUTSELECTORCONTROL_H #include #include @@ -25,7 +26,7 @@ QMetaObject* QAudioInputSelectorControl_MetaObject(const QAudioInputSelectorCont void* QAudioInputSelectorControl_Metacast(QAudioInputSelectorControl* self, const char* param1); struct miqt_string QAudioInputSelectorControl_Tr(const char* s); struct miqt_string QAudioInputSelectorControl_TrUtf8(const char* s); -struct miqt_array QAudioInputSelectorControl_AvailableInputs(const QAudioInputSelectorControl* self); +struct miqt_array /* of struct miqt_string */ QAudioInputSelectorControl_AvailableInputs(const QAudioInputSelectorControl* self); struct miqt_string QAudioInputSelectorControl_InputDescription(const QAudioInputSelectorControl* self, struct miqt_string name); struct miqt_string QAudioInputSelectorControl_DefaultInput(const QAudioInputSelectorControl* self); struct miqt_string QAudioInputSelectorControl_ActiveInput(const QAudioInputSelectorControl* self); diff --git a/qt/multimedia/gen_qaudiooutput.h b/qt/multimedia/gen_qaudiooutput.h index dc6dc070..0556b550 100644 --- a/qt/multimedia/gen_qaudiooutput.h +++ b/qt/multimedia/gen_qaudiooutput.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOOUTPUT_H -#define GEN_QAUDIOOUTPUT_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIOOUTPUT_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIOOUTPUT_H #include #include diff --git a/qt/multimedia/gen_qaudiooutputselectorcontrol.cpp b/qt/multimedia/gen_qaudiooutputselectorcontrol.cpp index ca5358c5..7af3fdb5 100644 --- a/qt/multimedia/gen_qaudiooutputselectorcontrol.cpp +++ b/qt/multimedia/gen_qaudiooutputselectorcontrol.cpp @@ -38,7 +38,7 @@ struct miqt_string QAudioOutputSelectorControl_TrUtf8(const char* s) { return _ms; } -struct miqt_array QAudioOutputSelectorControl_AvailableOutputs(const QAudioOutputSelectorControl* self) { +struct miqt_array /* of struct miqt_string */ QAudioOutputSelectorControl_AvailableOutputs(const QAudioOutputSelectorControl* self) { QList _ret = self->availableOutputs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/multimedia/gen_qaudiooutputselectorcontrol.h b/qt/multimedia/gen_qaudiooutputselectorcontrol.h index b2a622b5..9f0b834d 100644 --- a/qt/multimedia/gen_qaudiooutputselectorcontrol.h +++ b/qt/multimedia/gen_qaudiooutputselectorcontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOOUTPUTSELECTORCONTROL_H -#define GEN_QAUDIOOUTPUTSELECTORCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIOOUTPUTSELECTORCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIOOUTPUTSELECTORCONTROL_H #include #include @@ -25,7 +26,7 @@ QMetaObject* QAudioOutputSelectorControl_MetaObject(const QAudioOutputSelectorCo void* QAudioOutputSelectorControl_Metacast(QAudioOutputSelectorControl* self, const char* param1); struct miqt_string QAudioOutputSelectorControl_Tr(const char* s); struct miqt_string QAudioOutputSelectorControl_TrUtf8(const char* s); -struct miqt_array QAudioOutputSelectorControl_AvailableOutputs(const QAudioOutputSelectorControl* self); +struct miqt_array /* of struct miqt_string */ QAudioOutputSelectorControl_AvailableOutputs(const QAudioOutputSelectorControl* self); struct miqt_string QAudioOutputSelectorControl_OutputDescription(const QAudioOutputSelectorControl* self, struct miqt_string name); struct miqt_string QAudioOutputSelectorControl_DefaultOutput(const QAudioOutputSelectorControl* self); struct miqt_string QAudioOutputSelectorControl_ActiveOutput(const QAudioOutputSelectorControl* self); diff --git a/qt/multimedia/gen_qaudioprobe.h b/qt/multimedia/gen_qaudioprobe.h index a435f95c..5c88fea5 100644 --- a/qt/multimedia/gen_qaudioprobe.h +++ b/qt/multimedia/gen_qaudioprobe.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOPROBE_H -#define GEN_QAUDIOPROBE_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIOPROBE_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIOPROBE_H #include #include diff --git a/qt/multimedia/gen_qaudiorecorder.cpp b/qt/multimedia/gen_qaudiorecorder.cpp index 0b7ced7c..d0d06e4e 100644 --- a/qt/multimedia/gen_qaudiorecorder.cpp +++ b/qt/multimedia/gen_qaudiorecorder.cpp @@ -47,7 +47,7 @@ struct miqt_string QAudioRecorder_TrUtf8(const char* s) { return _ms; } -struct miqt_array QAudioRecorder_AudioInputs(const QAudioRecorder* self) { +struct miqt_array /* of struct miqt_string */ QAudioRecorder_AudioInputs(const QAudioRecorder* self) { QStringList _ret = self->audioInputs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/multimedia/gen_qaudiorecorder.h b/qt/multimedia/gen_qaudiorecorder.h index 328d6a88..1b04a8ee 100644 --- a/qt/multimedia/gen_qaudiorecorder.h +++ b/qt/multimedia/gen_qaudiorecorder.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIORECORDER_H -#define GEN_QAUDIORECORDER_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIORECORDER_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIORECORDER_H #include #include @@ -29,7 +30,7 @@ QMetaObject* QAudioRecorder_MetaObject(const QAudioRecorder* self); void* QAudioRecorder_Metacast(QAudioRecorder* self, const char* param1); struct miqt_string QAudioRecorder_Tr(const char* s); struct miqt_string QAudioRecorder_TrUtf8(const char* s); -struct miqt_array QAudioRecorder_AudioInputs(const QAudioRecorder* self); +struct miqt_array /* of struct miqt_string */ QAudioRecorder_AudioInputs(const QAudioRecorder* self); struct miqt_string QAudioRecorder_DefaultAudioInput(const QAudioRecorder* self); struct miqt_string QAudioRecorder_AudioInputDescription(const QAudioRecorder* self, struct miqt_string name); struct miqt_string QAudioRecorder_AudioInput(const QAudioRecorder* self); diff --git a/qt/multimedia/gen_qaudiorolecontrol.cpp b/qt/multimedia/gen_qaudiorolecontrol.cpp index c403d726..3e5bd3da 100644 --- a/qt/multimedia/gen_qaudiorolecontrol.cpp +++ b/qt/multimedia/gen_qaudiorolecontrol.cpp @@ -47,7 +47,7 @@ void QAudioRoleControl_SetAudioRole(QAudioRoleControl* self, int role) { self->setAudioRole(static_cast(role)); } -struct miqt_array QAudioRoleControl_SupportedAudioRoles(const QAudioRoleControl* self) { +struct miqt_array /* of int */ QAudioRoleControl_SupportedAudioRoles(const QAudioRoleControl* self) { QList _ret = self->supportedAudioRoles(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt/multimedia/gen_qaudiorolecontrol.h b/qt/multimedia/gen_qaudiorolecontrol.h index 08480212..eff19a63 100644 --- a/qt/multimedia/gen_qaudiorolecontrol.h +++ b/qt/multimedia/gen_qaudiorolecontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOROLECONTROL_H -#define GEN_QAUDIOROLECONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIOROLECONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIOROLECONTROL_H #include #include @@ -27,7 +28,7 @@ struct miqt_string QAudioRoleControl_Tr(const char* s); struct miqt_string QAudioRoleControl_TrUtf8(const char* s); int QAudioRoleControl_AudioRole(const QAudioRoleControl* self); void QAudioRoleControl_SetAudioRole(QAudioRoleControl* self, int role); -struct miqt_array QAudioRoleControl_SupportedAudioRoles(const QAudioRoleControl* self); +struct miqt_array /* of int */ QAudioRoleControl_SupportedAudioRoles(const QAudioRoleControl* self); void QAudioRoleControl_AudioRoleChanged(QAudioRoleControl* self, int role); void QAudioRoleControl_connect_AudioRoleChanged(QAudioRoleControl* self, intptr_t slot); struct miqt_string QAudioRoleControl_Tr2(const char* s, const char* c); diff --git a/qt/multimedia/gen_qaudiosystem.cpp b/qt/multimedia/gen_qaudiosystem.cpp index ecd2085f..477e3c7a 100644 --- a/qt/multimedia/gen_qaudiosystem.cpp +++ b/qt/multimedia/gen_qaudiosystem.cpp @@ -61,7 +61,7 @@ struct miqt_string QAbstractAudioDeviceInfo_DeviceName(const QAbstractAudioDevic return _ms; } -struct miqt_array QAbstractAudioDeviceInfo_SupportedCodecs(QAbstractAudioDeviceInfo* self) { +struct miqt_array /* of struct miqt_string */ QAbstractAudioDeviceInfo_SupportedCodecs(QAbstractAudioDeviceInfo* self) { QStringList _ret = self->supportedCodecs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -81,7 +81,7 @@ struct miqt_array QAbstractAudioDeviceInfo_SupportedCodecs(QAbstractAudioDeviceI return _out; } -struct miqt_array QAbstractAudioDeviceInfo_SupportedSampleRates(QAbstractAudioDeviceInfo* self) { +struct miqt_array /* of int */ QAbstractAudioDeviceInfo_SupportedSampleRates(QAbstractAudioDeviceInfo* self) { QList _ret = self->supportedSampleRates(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -94,7 +94,7 @@ struct miqt_array QAbstractAudioDeviceInfo_SupportedSampleRates(QAbstractAudioDe return _out; } -struct miqt_array QAbstractAudioDeviceInfo_SupportedChannelCounts(QAbstractAudioDeviceInfo* self) { +struct miqt_array /* of int */ QAbstractAudioDeviceInfo_SupportedChannelCounts(QAbstractAudioDeviceInfo* self) { QList _ret = self->supportedChannelCounts(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -107,7 +107,7 @@ struct miqt_array QAbstractAudioDeviceInfo_SupportedChannelCounts(QAbstractAudio return _out; } -struct miqt_array QAbstractAudioDeviceInfo_SupportedSampleSizes(QAbstractAudioDeviceInfo* self) { +struct miqt_array /* of int */ QAbstractAudioDeviceInfo_SupportedSampleSizes(QAbstractAudioDeviceInfo* self) { QList _ret = self->supportedSampleSizes(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -120,7 +120,7 @@ struct miqt_array QAbstractAudioDeviceInfo_SupportedSampleSizes(QAbstractAudioDe return _out; } -struct miqt_array QAbstractAudioDeviceInfo_SupportedByteOrders(QAbstractAudioDeviceInfo* self) { +struct miqt_array /* of int */ QAbstractAudioDeviceInfo_SupportedByteOrders(QAbstractAudioDeviceInfo* self) { QList _ret = self->supportedByteOrders(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -134,7 +134,7 @@ struct miqt_array QAbstractAudioDeviceInfo_SupportedByteOrders(QAbstractAudioDev return _out; } -struct miqt_array QAbstractAudioDeviceInfo_SupportedSampleTypes(QAbstractAudioDeviceInfo* self) { +struct miqt_array /* of int */ QAbstractAudioDeviceInfo_SupportedSampleTypes(QAbstractAudioDeviceInfo* self) { QList _ret = self->supportedSampleTypes(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt/multimedia/gen_qaudiosystem.h b/qt/multimedia/gen_qaudiosystem.h index e5ef16dd..091764f9 100644 --- a/qt/multimedia/gen_qaudiosystem.h +++ b/qt/multimedia/gen_qaudiosystem.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOSYSTEM_H -#define GEN_QAUDIOSYSTEM_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIOSYSTEM_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIOSYSTEM_H #include #include @@ -36,12 +37,12 @@ struct miqt_string QAbstractAudioDeviceInfo_TrUtf8(const char* s); QAudioFormat* QAbstractAudioDeviceInfo_PreferredFormat(const QAbstractAudioDeviceInfo* self); bool QAbstractAudioDeviceInfo_IsFormatSupported(const QAbstractAudioDeviceInfo* self, QAudioFormat* format); struct miqt_string QAbstractAudioDeviceInfo_DeviceName(const QAbstractAudioDeviceInfo* self); -struct miqt_array QAbstractAudioDeviceInfo_SupportedCodecs(QAbstractAudioDeviceInfo* self); -struct miqt_array QAbstractAudioDeviceInfo_SupportedSampleRates(QAbstractAudioDeviceInfo* self); -struct miqt_array QAbstractAudioDeviceInfo_SupportedChannelCounts(QAbstractAudioDeviceInfo* self); -struct miqt_array QAbstractAudioDeviceInfo_SupportedSampleSizes(QAbstractAudioDeviceInfo* self); -struct miqt_array QAbstractAudioDeviceInfo_SupportedByteOrders(QAbstractAudioDeviceInfo* self); -struct miqt_array QAbstractAudioDeviceInfo_SupportedSampleTypes(QAbstractAudioDeviceInfo* self); +struct miqt_array /* of struct miqt_string */ QAbstractAudioDeviceInfo_SupportedCodecs(QAbstractAudioDeviceInfo* self); +struct miqt_array /* of int */ QAbstractAudioDeviceInfo_SupportedSampleRates(QAbstractAudioDeviceInfo* self); +struct miqt_array /* of int */ QAbstractAudioDeviceInfo_SupportedChannelCounts(QAbstractAudioDeviceInfo* self); +struct miqt_array /* of int */ QAbstractAudioDeviceInfo_SupportedSampleSizes(QAbstractAudioDeviceInfo* self); +struct miqt_array /* of int */ QAbstractAudioDeviceInfo_SupportedByteOrders(QAbstractAudioDeviceInfo* self); +struct miqt_array /* of int */ QAbstractAudioDeviceInfo_SupportedSampleTypes(QAbstractAudioDeviceInfo* self); struct miqt_string QAbstractAudioDeviceInfo_Tr2(const char* s, const char* c); struct miqt_string QAbstractAudioDeviceInfo_Tr3(const char* s, const char* c, int n); struct miqt_string QAbstractAudioDeviceInfo_TrUtf82(const char* s, const char* c); diff --git a/qt/multimedia/gen_qaudiosystemplugin.cpp b/qt/multimedia/gen_qaudiosystemplugin.cpp index 12a6b2e4..e652eaf3 100644 --- a/qt/multimedia/gen_qaudiosystemplugin.cpp +++ b/qt/multimedia/gen_qaudiosystemplugin.cpp @@ -13,7 +13,7 @@ #include "gen_qaudiosystemplugin.h" #include "_cgo_export.h" -struct miqt_array QAudioSystemFactoryInterface_AvailableDevices(const QAudioSystemFactoryInterface* self, int param1) { +struct miqt_array /* of struct miqt_string */ QAudioSystemFactoryInterface_AvailableDevices(const QAudioSystemFactoryInterface* self, int param1) { QList _ret = self->availableDevices(static_cast(param1)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -84,7 +84,7 @@ struct miqt_string QAudioSystemPlugin_TrUtf8(const char* s) { return _ms; } -struct miqt_array QAudioSystemPlugin_AvailableDevices(const QAudioSystemPlugin* self, int param1) { +struct miqt_array /* of struct miqt_string */ QAudioSystemPlugin_AvailableDevices(const QAudioSystemPlugin* self, int param1) { QList _ret = self->availableDevices(static_cast(param1)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/multimedia/gen_qaudiosystemplugin.h b/qt/multimedia/gen_qaudiosystemplugin.h index 3f5e7870..63706611 100644 --- a/qt/multimedia/gen_qaudiosystemplugin.h +++ b/qt/multimedia/gen_qaudiosystemplugin.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOSYSTEMPLUGIN_H -#define GEN_QAUDIOSYSTEMPLUGIN_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIOSYSTEMPLUGIN_H +#define MIQT_QT_MULTIMEDIA_GEN_QAUDIOSYSTEMPLUGIN_H #include #include @@ -31,7 +32,7 @@ typedef struct QByteArray QByteArray; typedef struct QMetaObject QMetaObject; #endif -struct miqt_array QAudioSystemFactoryInterface_AvailableDevices(const QAudioSystemFactoryInterface* self, int param1); +struct miqt_array /* of struct miqt_string */ QAudioSystemFactoryInterface_AvailableDevices(const QAudioSystemFactoryInterface* self, int param1); QAbstractAudioInput* QAudioSystemFactoryInterface_CreateInput(QAudioSystemFactoryInterface* self, struct miqt_string device); QAbstractAudioOutput* QAudioSystemFactoryInterface_CreateOutput(QAudioSystemFactoryInterface* self, struct miqt_string device); QAbstractAudioDeviceInfo* QAudioSystemFactoryInterface_CreateDeviceInfo(QAudioSystemFactoryInterface* self, struct miqt_string device, int mode); @@ -42,7 +43,7 @@ QMetaObject* QAudioSystemPlugin_MetaObject(const QAudioSystemPlugin* self); void* QAudioSystemPlugin_Metacast(QAudioSystemPlugin* self, const char* param1); struct miqt_string QAudioSystemPlugin_Tr(const char* s); struct miqt_string QAudioSystemPlugin_TrUtf8(const char* s); -struct miqt_array QAudioSystemPlugin_AvailableDevices(const QAudioSystemPlugin* self, int param1); +struct miqt_array /* of struct miqt_string */ QAudioSystemPlugin_AvailableDevices(const QAudioSystemPlugin* self, int param1); QAbstractAudioInput* QAudioSystemPlugin_CreateInput(QAudioSystemPlugin* self, struct miqt_string device); QAbstractAudioOutput* QAudioSystemPlugin_CreateOutput(QAudioSystemPlugin* self, struct miqt_string device); QAbstractAudioDeviceInfo* QAudioSystemPlugin_CreateDeviceInfo(QAudioSystemPlugin* self, struct miqt_string device, int mode); diff --git a/qt/multimedia/gen_qcamera.cpp b/qt/multimedia/gen_qcamera.cpp index a238a8d4..ba050b3c 100644 --- a/qt/multimedia/gen_qcamera.cpp +++ b/qt/multimedia/gen_qcamera.cpp @@ -84,7 +84,7 @@ struct miqt_string QCamera_TrUtf8(const char* s) { return _ms; } -struct miqt_array QCamera_AvailableDevices() { +struct miqt_array /* of struct miqt_string */ QCamera_AvailableDevices() { QList _ret = QCamera::availableDevices(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -170,7 +170,7 @@ void QCamera_SetViewfinderSettings(QCamera* self, QCameraViewfinderSettings* set self->setViewfinderSettings(*settings); } -struct miqt_array QCamera_SupportedViewfinderSettings(const QCamera* self) { +struct miqt_array /* of QCameraViewfinderSettings* */ QCamera_SupportedViewfinderSettings(const QCamera* self) { QList _ret = self->supportedViewfinderSettings(); // Convert QList<> from C++ memory to manually-managed C memory QCameraViewfinderSettings** _arr = static_cast(malloc(sizeof(QCameraViewfinderSettings*) * _ret.length())); @@ -183,7 +183,7 @@ struct miqt_array QCamera_SupportedViewfinderSettings(const QCamera* self) { return _out; } -struct miqt_array QCamera_SupportedViewfinderResolutions(const QCamera* self) { +struct miqt_array /* of QSize* */ QCamera_SupportedViewfinderResolutions(const QCamera* self) { QList _ret = self->supportedViewfinderResolutions(); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -196,7 +196,7 @@ struct miqt_array QCamera_SupportedViewfinderResolutions(const QCamera* self) { return _out; } -struct miqt_array QCamera_SupportedViewfinderFrameRateRanges(const QCamera* self) { +struct miqt_array /* of QCamera__FrameRateRange* */ QCamera_SupportedViewfinderFrameRateRanges(const QCamera* self) { QList _ret = self->supportedViewfinderFrameRateRanges(); // Convert QList<> from C++ memory to manually-managed C memory QCamera__FrameRateRange** _arr = static_cast(malloc(sizeof(QCamera__FrameRateRange*) * _ret.length())); @@ -209,7 +209,7 @@ struct miqt_array QCamera_SupportedViewfinderFrameRateRanges(const QCamera* self return _out; } -struct miqt_array QCamera_SupportedViewfinderPixelFormats(const QCamera* self) { +struct miqt_array /* of int */ QCamera_SupportedViewfinderPixelFormats(const QCamera* self) { QList _ret = self->supportedViewfinderPixelFormats(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -449,7 +449,7 @@ struct miqt_string QCamera_TrUtf83(const char* s, const char* c, int n) { return _ms; } -struct miqt_array QCamera_SupportedViewfinderSettings1(const QCamera* self, QCameraViewfinderSettings* settings) { +struct miqt_array /* of QCameraViewfinderSettings* */ QCamera_SupportedViewfinderSettings1(const QCamera* self, QCameraViewfinderSettings* settings) { QList _ret = self->supportedViewfinderSettings(*settings); // Convert QList<> from C++ memory to manually-managed C memory QCameraViewfinderSettings** _arr = static_cast(malloc(sizeof(QCameraViewfinderSettings*) * _ret.length())); @@ -462,7 +462,7 @@ struct miqt_array QCamera_SupportedViewfinderSettings1(const QCamera* self, QCam return _out; } -struct miqt_array QCamera_SupportedViewfinderResolutions1(const QCamera* self, QCameraViewfinderSettings* settings) { +struct miqt_array /* of QSize* */ QCamera_SupportedViewfinderResolutions1(const QCamera* self, QCameraViewfinderSettings* settings) { QList _ret = self->supportedViewfinderResolutions(*settings); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -475,7 +475,7 @@ struct miqt_array QCamera_SupportedViewfinderResolutions1(const QCamera* self, Q return _out; } -struct miqt_array QCamera_SupportedViewfinderFrameRateRanges1(const QCamera* self, QCameraViewfinderSettings* settings) { +struct miqt_array /* of QCamera__FrameRateRange* */ QCamera_SupportedViewfinderFrameRateRanges1(const QCamera* self, QCameraViewfinderSettings* settings) { QList _ret = self->supportedViewfinderFrameRateRanges(*settings); // Convert QList<> from C++ memory to manually-managed C memory QCamera__FrameRateRange** _arr = static_cast(malloc(sizeof(QCamera__FrameRateRange*) * _ret.length())); @@ -488,7 +488,7 @@ struct miqt_array QCamera_SupportedViewfinderFrameRateRanges1(const QCamera* sel return _out; } -struct miqt_array QCamera_SupportedViewfinderPixelFormats1(const QCamera* self, QCameraViewfinderSettings* settings) { +struct miqt_array /* of int */ QCamera_SupportedViewfinderPixelFormats1(const QCamera* self, QCameraViewfinderSettings* settings) { QList _ret = self->supportedViewfinderPixelFormats(*settings); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt/multimedia/gen_qcamera.h b/qt/multimedia/gen_qcamera.h index da1d8e96..48dc1ede 100644 --- a/qt/multimedia/gen_qcamera.h +++ b/qt/multimedia/gen_qcamera.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERA_H -#define GEN_QCAMERA_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERA_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERA_H #include #include @@ -61,7 +62,7 @@ QMetaObject* QCamera_MetaObject(const QCamera* self); void* QCamera_Metacast(QCamera* self, const char* param1); struct miqt_string QCamera_Tr(const char* s); struct miqt_string QCamera_TrUtf8(const char* s); -struct miqt_array QCamera_AvailableDevices(); +struct miqt_array /* of struct miqt_string */ QCamera_AvailableDevices(); struct miqt_string QCamera_DeviceDescription(struct miqt_string device); int QCamera_Availability(const QCamera* self); int QCamera_State(const QCamera* self); @@ -76,10 +77,10 @@ void QCamera_SetViewfinderWithViewfinder(QCamera* self, QGraphicsVideoItem* view void QCamera_SetViewfinderWithSurface(QCamera* self, QAbstractVideoSurface* surface); QCameraViewfinderSettings* QCamera_ViewfinderSettings(const QCamera* self); void QCamera_SetViewfinderSettings(QCamera* self, QCameraViewfinderSettings* settings); -struct miqt_array QCamera_SupportedViewfinderSettings(const QCamera* self); -struct miqt_array QCamera_SupportedViewfinderResolutions(const QCamera* self); -struct miqt_array QCamera_SupportedViewfinderFrameRateRanges(const QCamera* self); -struct miqt_array QCamera_SupportedViewfinderPixelFormats(const QCamera* self); +struct miqt_array /* of QCameraViewfinderSettings* */ QCamera_SupportedViewfinderSettings(const QCamera* self); +struct miqt_array /* of QSize* */ QCamera_SupportedViewfinderResolutions(const QCamera* self); +struct miqt_array /* of QCamera__FrameRateRange* */ QCamera_SupportedViewfinderFrameRateRanges(const QCamera* self); +struct miqt_array /* of int */ QCamera_SupportedViewfinderPixelFormats(const QCamera* self); int QCamera_Error(const QCamera* self); struct miqt_string QCamera_ErrorString(const QCamera* self); int QCamera_SupportedLocks(const QCamera* self); @@ -117,10 +118,10 @@ struct miqt_string QCamera_Tr2(const char* s, const char* c); struct miqt_string QCamera_Tr3(const char* s, const char* c, int n); struct miqt_string QCamera_TrUtf82(const char* s, const char* c); struct miqt_string QCamera_TrUtf83(const char* s, const char* c, int n); -struct miqt_array QCamera_SupportedViewfinderSettings1(const QCamera* self, QCameraViewfinderSettings* settings); -struct miqt_array QCamera_SupportedViewfinderResolutions1(const QCamera* self, QCameraViewfinderSettings* settings); -struct miqt_array QCamera_SupportedViewfinderFrameRateRanges1(const QCamera* self, QCameraViewfinderSettings* settings); -struct miqt_array QCamera_SupportedViewfinderPixelFormats1(const QCamera* self, QCameraViewfinderSettings* settings); +struct miqt_array /* of QCameraViewfinderSettings* */ QCamera_SupportedViewfinderSettings1(const QCamera* self, QCameraViewfinderSettings* settings); +struct miqt_array /* of QSize* */ QCamera_SupportedViewfinderResolutions1(const QCamera* self, QCameraViewfinderSettings* settings); +struct miqt_array /* of QCamera__FrameRateRange* */ QCamera_SupportedViewfinderFrameRateRanges1(const QCamera* self, QCameraViewfinderSettings* settings); +struct miqt_array /* of int */ QCamera_SupportedViewfinderPixelFormats1(const QCamera* self, QCameraViewfinderSettings* settings); void QCamera_Delete(QCamera* self); QCamera__FrameRateRange* QCamera__FrameRateRange_new(); diff --git a/qt/multimedia/gen_qcameracapturebufferformatcontrol.cpp b/qt/multimedia/gen_qcameracapturebufferformatcontrol.cpp index cc519b83..3ce6a2b4 100644 --- a/qt/multimedia/gen_qcameracapturebufferformatcontrol.cpp +++ b/qt/multimedia/gen_qcameracapturebufferformatcontrol.cpp @@ -38,7 +38,7 @@ struct miqt_string QCameraCaptureBufferFormatControl_TrUtf8(const char* s) { return _ms; } -struct miqt_array QCameraCaptureBufferFormatControl_SupportedBufferFormats(const QCameraCaptureBufferFormatControl* self) { +struct miqt_array /* of int */ QCameraCaptureBufferFormatControl_SupportedBufferFormats(const QCameraCaptureBufferFormatControl* self) { QList _ret = self->supportedBufferFormats(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt/multimedia/gen_qcameracapturebufferformatcontrol.h b/qt/multimedia/gen_qcameracapturebufferformatcontrol.h index e9462d8f..5e67135b 100644 --- a/qt/multimedia/gen_qcameracapturebufferformatcontrol.h +++ b/qt/multimedia/gen_qcameracapturebufferformatcontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERACAPTUREBUFFERFORMATCONTROL_H -#define GEN_QCAMERACAPTUREBUFFERFORMATCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERACAPTUREBUFFERFORMATCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERACAPTUREBUFFERFORMATCONTROL_H #include #include @@ -25,7 +26,7 @@ QMetaObject* QCameraCaptureBufferFormatControl_MetaObject(const QCameraCaptureBu void* QCameraCaptureBufferFormatControl_Metacast(QCameraCaptureBufferFormatControl* self, const char* param1); struct miqt_string QCameraCaptureBufferFormatControl_Tr(const char* s); struct miqt_string QCameraCaptureBufferFormatControl_TrUtf8(const char* s); -struct miqt_array QCameraCaptureBufferFormatControl_SupportedBufferFormats(const QCameraCaptureBufferFormatControl* self); +struct miqt_array /* of int */ QCameraCaptureBufferFormatControl_SupportedBufferFormats(const QCameraCaptureBufferFormatControl* self); int QCameraCaptureBufferFormatControl_BufferFormat(const QCameraCaptureBufferFormatControl* self); void QCameraCaptureBufferFormatControl_SetBufferFormat(QCameraCaptureBufferFormatControl* self, int format); void QCameraCaptureBufferFormatControl_BufferFormatChanged(QCameraCaptureBufferFormatControl* self, int format); diff --git a/qt/multimedia/gen_qcameracapturedestinationcontrol.h b/qt/multimedia/gen_qcameracapturedestinationcontrol.h index a510b562..3a608a3c 100644 --- a/qt/multimedia/gen_qcameracapturedestinationcontrol.h +++ b/qt/multimedia/gen_qcameracapturedestinationcontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERACAPTUREDESTINATIONCONTROL_H -#define GEN_QCAMERACAPTUREDESTINATIONCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERACAPTUREDESTINATIONCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERACAPTUREDESTINATIONCONTROL_H #include #include diff --git a/qt/multimedia/gen_qcameracontrol.h b/qt/multimedia/gen_qcameracontrol.h index e0ee8b82..bd9f437d 100644 --- a/qt/multimedia/gen_qcameracontrol.h +++ b/qt/multimedia/gen_qcameracontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERACONTROL_H -#define GEN_QCAMERACONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERACONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERACONTROL_H #include #include diff --git a/qt/multimedia/gen_qcameraexposure.cpp b/qt/multimedia/gen_qcameraexposure.cpp index 90a67165..2d8f6219 100644 --- a/qt/multimedia/gen_qcameraexposure.cpp +++ b/qt/multimedia/gen_qcameraexposure.cpp @@ -115,7 +115,7 @@ double QCameraExposure_RequestedShutterSpeed(const QCameraExposure* self) { return static_cast(_ret); } -struct miqt_array QCameraExposure_SupportedIsoSensitivities(const QCameraExposure* self) { +struct miqt_array /* of int */ QCameraExposure_SupportedIsoSensitivities(const QCameraExposure* self) { QList _ret = self->supportedIsoSensitivities(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -128,7 +128,7 @@ struct miqt_array QCameraExposure_SupportedIsoSensitivities(const QCameraExposur return _out; } -struct miqt_array QCameraExposure_SupportedApertures(const QCameraExposure* self) { +struct miqt_array /* of double */ QCameraExposure_SupportedApertures(const QCameraExposure* self) { QList _ret = self->supportedApertures(); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); @@ -141,7 +141,7 @@ struct miqt_array QCameraExposure_SupportedApertures(const QCameraExposure* self return _out; } -struct miqt_array QCameraExposure_SupportedShutterSpeeds(const QCameraExposure* self) { +struct miqt_array /* of double */ QCameraExposure_SupportedShutterSpeeds(const QCameraExposure* self) { QList _ret = self->supportedShutterSpeeds(); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); @@ -316,7 +316,7 @@ struct miqt_string QCameraExposure_TrUtf83(const char* s, const char* c, int n) return _ms; } -struct miqt_array QCameraExposure_SupportedIsoSensitivities1(const QCameraExposure* self, bool* continuous) { +struct miqt_array /* of int */ QCameraExposure_SupportedIsoSensitivities1(const QCameraExposure* self, bool* continuous) { QList _ret = self->supportedIsoSensitivities(continuous); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -329,7 +329,7 @@ struct miqt_array QCameraExposure_SupportedIsoSensitivities1(const QCameraExposu return _out; } -struct miqt_array QCameraExposure_SupportedApertures1(const QCameraExposure* self, bool* continuous) { +struct miqt_array /* of double */ QCameraExposure_SupportedApertures1(const QCameraExposure* self, bool* continuous) { QList _ret = self->supportedApertures(continuous); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); @@ -342,7 +342,7 @@ struct miqt_array QCameraExposure_SupportedApertures1(const QCameraExposure* sel return _out; } -struct miqt_array QCameraExposure_SupportedShutterSpeeds1(const QCameraExposure* self, bool* continuous) { +struct miqt_array /* of double */ QCameraExposure_SupportedShutterSpeeds1(const QCameraExposure* self, bool* continuous) { QList _ret = self->supportedShutterSpeeds(continuous); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); diff --git a/qt/multimedia/gen_qcameraexposure.h b/qt/multimedia/gen_qcameraexposure.h index 56b09e4d..3c70d4fc 100644 --- a/qt/multimedia/gen_qcameraexposure.h +++ b/qt/multimedia/gen_qcameraexposure.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAEXPOSURE_H -#define GEN_QCAMERAEXPOSURE_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAEXPOSURE_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAEXPOSURE_H #include #include @@ -44,9 +45,9 @@ double QCameraExposure_ShutterSpeed(const QCameraExposure* self); int QCameraExposure_RequestedIsoSensitivity(const QCameraExposure* self); double QCameraExposure_RequestedAperture(const QCameraExposure* self); double QCameraExposure_RequestedShutterSpeed(const QCameraExposure* self); -struct miqt_array QCameraExposure_SupportedIsoSensitivities(const QCameraExposure* self); -struct miqt_array QCameraExposure_SupportedApertures(const QCameraExposure* self); -struct miqt_array QCameraExposure_SupportedShutterSpeeds(const QCameraExposure* self); +struct miqt_array /* of int */ QCameraExposure_SupportedIsoSensitivities(const QCameraExposure* self); +struct miqt_array /* of double */ QCameraExposure_SupportedApertures(const QCameraExposure* self); +struct miqt_array /* of double */ QCameraExposure_SupportedShutterSpeeds(const QCameraExposure* self); void QCameraExposure_SetFlashMode(QCameraExposure* self, int mode); void QCameraExposure_SetExposureMode(QCameraExposure* self, int mode); void QCameraExposure_SetMeteringMode(QCameraExposure* self, int mode); @@ -75,9 +76,9 @@ struct miqt_string QCameraExposure_Tr2(const char* s, const char* c); struct miqt_string QCameraExposure_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraExposure_TrUtf82(const char* s, const char* c); struct miqt_string QCameraExposure_TrUtf83(const char* s, const char* c, int n); -struct miqt_array QCameraExposure_SupportedIsoSensitivities1(const QCameraExposure* self, bool* continuous); -struct miqt_array QCameraExposure_SupportedApertures1(const QCameraExposure* self, bool* continuous); -struct miqt_array QCameraExposure_SupportedShutterSpeeds1(const QCameraExposure* self, bool* continuous); +struct miqt_array /* of int */ QCameraExposure_SupportedIsoSensitivities1(const QCameraExposure* self, bool* continuous); +struct miqt_array /* of double */ QCameraExposure_SupportedApertures1(const QCameraExposure* self, bool* continuous); +struct miqt_array /* of double */ QCameraExposure_SupportedShutterSpeeds1(const QCameraExposure* self, bool* continuous); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcameraexposurecontrol.h b/qt/multimedia/gen_qcameraexposurecontrol.h index 6e5ce51d..4dad2e18 100644 --- a/qt/multimedia/gen_qcameraexposurecontrol.h +++ b/qt/multimedia/gen_qcameraexposurecontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAEXPOSURECONTROL_H -#define GEN_QCAMERAEXPOSURECONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAEXPOSURECONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAEXPOSURECONTROL_H #include #include diff --git a/qt/multimedia/gen_qcamerafeedbackcontrol.h b/qt/multimedia/gen_qcamerafeedbackcontrol.h index 8228091f..abdb8227 100644 --- a/qt/multimedia/gen_qcamerafeedbackcontrol.h +++ b/qt/multimedia/gen_qcamerafeedbackcontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAFEEDBACKCONTROL_H -#define GEN_QCAMERAFEEDBACKCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAFEEDBACKCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAFEEDBACKCONTROL_H #include #include diff --git a/qt/multimedia/gen_qcameraflashcontrol.h b/qt/multimedia/gen_qcameraflashcontrol.h index 7377ef6b..80acfecd 100644 --- a/qt/multimedia/gen_qcameraflashcontrol.h +++ b/qt/multimedia/gen_qcameraflashcontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAFLASHCONTROL_H -#define GEN_QCAMERAFLASHCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAFLASHCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAFLASHCONTROL_H #include #include diff --git a/qt/multimedia/gen_qcamerafocus.cpp b/qt/multimedia/gen_qcamerafocus.cpp index 292eb7d7..5e66c2dd 100644 --- a/qt/multimedia/gen_qcamerafocus.cpp +++ b/qt/multimedia/gen_qcamerafocus.cpp @@ -128,7 +128,7 @@ void QCameraFocus_SetCustomFocusPoint(QCameraFocus* self, QPointF* point) { self->setCustomFocusPoint(*point); } -struct miqt_array QCameraFocus_FocusZones(const QCameraFocus* self) { +struct miqt_array /* of QCameraFocusZone* */ QCameraFocus_FocusZones(const QCameraFocus* self) { QCameraFocusZoneList _ret = self->focusZones(); // Convert QList<> from C++ memory to manually-managed C memory QCameraFocusZone** _arr = static_cast(malloc(sizeof(QCameraFocusZone*) * _ret.length())); diff --git a/qt/multimedia/gen_qcamerafocus.h b/qt/multimedia/gen_qcamerafocus.h index 3cdf25bd..e4396178 100644 --- a/qt/multimedia/gen_qcamerafocus.h +++ b/qt/multimedia/gen_qcamerafocus.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAFOCUS_H -#define GEN_QCAMERAFOCUS_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAFOCUS_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAFOCUS_H #include #include @@ -53,7 +54,7 @@ void QCameraFocus_SetFocusPointMode(QCameraFocus* self, int mode); bool QCameraFocus_IsFocusPointModeSupported(const QCameraFocus* self, int param1); QPointF* QCameraFocus_CustomFocusPoint(const QCameraFocus* self); void QCameraFocus_SetCustomFocusPoint(QCameraFocus* self, QPointF* point); -struct miqt_array QCameraFocus_FocusZones(const QCameraFocus* self); +struct miqt_array /* of QCameraFocusZone* */ QCameraFocus_FocusZones(const QCameraFocus* self); double QCameraFocus_MaximumOpticalZoom(const QCameraFocus* self); double QCameraFocus_MaximumDigitalZoom(const QCameraFocus* self); double QCameraFocus_OpticalZoom(const QCameraFocus* self); diff --git a/qt/multimedia/gen_qcamerafocuscontrol.cpp b/qt/multimedia/gen_qcamerafocuscontrol.cpp index 3f9a1c16..6b60023b 100644 --- a/qt/multimedia/gen_qcamerafocuscontrol.cpp +++ b/qt/multimedia/gen_qcamerafocuscontrol.cpp @@ -74,7 +74,7 @@ void QCameraFocusControl_SetCustomFocusPoint(QCameraFocusControl* self, QPointF* self->setCustomFocusPoint(*point); } -struct miqt_array QCameraFocusControl_FocusZones(const QCameraFocusControl* self) { +struct miqt_array /* of QCameraFocusZone* */ QCameraFocusControl_FocusZones(const QCameraFocusControl* self) { QCameraFocusZoneList _ret = self->focusZones(); // Convert QList<> from C++ memory to manually-managed C memory QCameraFocusZone** _arr = static_cast(malloc(sizeof(QCameraFocusZone*) * _ret.length())); diff --git a/qt/multimedia/gen_qcamerafocuscontrol.h b/qt/multimedia/gen_qcamerafocuscontrol.h index ca61e24d..55229fe3 100644 --- a/qt/multimedia/gen_qcamerafocuscontrol.h +++ b/qt/multimedia/gen_qcamerafocuscontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAFOCUSCONTROL_H -#define GEN_QCAMERAFOCUSCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAFOCUSCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAFOCUSCONTROL_H #include #include @@ -37,7 +38,7 @@ void QCameraFocusControl_SetFocusPointMode(QCameraFocusControl* self, int mode); bool QCameraFocusControl_IsFocusPointModeSupported(const QCameraFocusControl* self, int mode); QPointF* QCameraFocusControl_CustomFocusPoint(const QCameraFocusControl* self); void QCameraFocusControl_SetCustomFocusPoint(QCameraFocusControl* self, QPointF* point); -struct miqt_array QCameraFocusControl_FocusZones(const QCameraFocusControl* self); +struct miqt_array /* of QCameraFocusZone* */ QCameraFocusControl_FocusZones(const QCameraFocusControl* self); void QCameraFocusControl_FocusModeChanged(QCameraFocusControl* self, int mode); void QCameraFocusControl_connect_FocusModeChanged(QCameraFocusControl* self, intptr_t slot); void QCameraFocusControl_FocusPointModeChanged(QCameraFocusControl* self, int mode); diff --git a/qt/multimedia/gen_qcameraimagecapture.cpp b/qt/multimedia/gen_qcameraimagecapture.cpp index a4c68566..3cf5a923 100644 --- a/qt/multimedia/gen_qcameraimagecapture.cpp +++ b/qt/multimedia/gen_qcameraimagecapture.cpp @@ -86,7 +86,7 @@ bool QCameraImageCapture_IsReadyForCapture(const QCameraImageCapture* self) { return self->isReadyForCapture(); } -struct miqt_array QCameraImageCapture_SupportedImageCodecs(const QCameraImageCapture* self) { +struct miqt_array /* of struct miqt_string */ QCameraImageCapture_SupportedImageCodecs(const QCameraImageCapture* self) { QStringList _ret = self->supportedImageCodecs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -118,7 +118,7 @@ struct miqt_string QCameraImageCapture_ImageCodecDescription(const QCameraImageC return _ms; } -struct miqt_array QCameraImageCapture_SupportedResolutions(const QCameraImageCapture* self) { +struct miqt_array /* of QSize* */ QCameraImageCapture_SupportedResolutions(const QCameraImageCapture* self) { QList _ret = self->supportedResolutions(); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -139,7 +139,7 @@ void QCameraImageCapture_SetEncodingSettings(QCameraImageCapture* self, QImageEn self->setEncodingSettings(*settings); } -struct miqt_array QCameraImageCapture_SupportedBufferFormats(const QCameraImageCapture* self) { +struct miqt_array /* of int */ QCameraImageCapture_SupportedBufferFormats(const QCameraImageCapture* self) { QList _ret = self->supportedBufferFormats(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -366,7 +366,7 @@ struct miqt_string QCameraImageCapture_TrUtf83(const char* s, const char* c, int return _ms; } -struct miqt_array QCameraImageCapture_SupportedResolutions1(const QCameraImageCapture* self, QImageEncoderSettings* settings) { +struct miqt_array /* of QSize* */ QCameraImageCapture_SupportedResolutions1(const QCameraImageCapture* self, QImageEncoderSettings* settings) { QList _ret = self->supportedResolutions(*settings); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -379,7 +379,7 @@ struct miqt_array QCameraImageCapture_SupportedResolutions1(const QCameraImageCa return _out; } -struct miqt_array QCameraImageCapture_SupportedResolutions2(const QCameraImageCapture* self, QImageEncoderSettings* settings, bool* continuous) { +struct miqt_array /* of QSize* */ QCameraImageCapture_SupportedResolutions2(const QCameraImageCapture* self, QImageEncoderSettings* settings, bool* continuous) { QList _ret = self->supportedResolutions(*settings, continuous); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); diff --git a/qt/multimedia/gen_qcameraimagecapture.h b/qt/multimedia/gen_qcameraimagecapture.h index ea278d39..123e3659 100644 --- a/qt/multimedia/gen_qcameraimagecapture.h +++ b/qt/multimedia/gen_qcameraimagecapture.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAIMAGECAPTURE_H -#define GEN_QCAMERAIMAGECAPTURE_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAIMAGECAPTURE_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAIMAGECAPTURE_H #include #include @@ -47,12 +48,12 @@ QMediaObject* QCameraImageCapture_MediaObject(const QCameraImageCapture* self); int QCameraImageCapture_Error(const QCameraImageCapture* self); struct miqt_string QCameraImageCapture_ErrorString(const QCameraImageCapture* self); bool QCameraImageCapture_IsReadyForCapture(const QCameraImageCapture* self); -struct miqt_array QCameraImageCapture_SupportedImageCodecs(const QCameraImageCapture* self); +struct miqt_array /* of struct miqt_string */ QCameraImageCapture_SupportedImageCodecs(const QCameraImageCapture* self); struct miqt_string QCameraImageCapture_ImageCodecDescription(const QCameraImageCapture* self, struct miqt_string codecName); -struct miqt_array QCameraImageCapture_SupportedResolutions(const QCameraImageCapture* self); +struct miqt_array /* of QSize* */ QCameraImageCapture_SupportedResolutions(const QCameraImageCapture* self); QImageEncoderSettings* QCameraImageCapture_EncodingSettings(const QCameraImageCapture* self); void QCameraImageCapture_SetEncodingSettings(QCameraImageCapture* self, QImageEncoderSettings* settings); -struct miqt_array QCameraImageCapture_SupportedBufferFormats(const QCameraImageCapture* self); +struct miqt_array /* of int */ QCameraImageCapture_SupportedBufferFormats(const QCameraImageCapture* self); int QCameraImageCapture_BufferFormat(const QCameraImageCapture* self); void QCameraImageCapture_SetBufferFormat(QCameraImageCapture* self, int format); bool QCameraImageCapture_IsCaptureDestinationSupported(const QCameraImageCapture* self, int destination); @@ -82,8 +83,8 @@ struct miqt_string QCameraImageCapture_Tr2(const char* s, const char* c); struct miqt_string QCameraImageCapture_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraImageCapture_TrUtf82(const char* s, const char* c); struct miqt_string QCameraImageCapture_TrUtf83(const char* s, const char* c, int n); -struct miqt_array QCameraImageCapture_SupportedResolutions1(const QCameraImageCapture* self, QImageEncoderSettings* settings); -struct miqt_array QCameraImageCapture_SupportedResolutions2(const QCameraImageCapture* self, QImageEncoderSettings* settings, bool* continuous); +struct miqt_array /* of QSize* */ QCameraImageCapture_SupportedResolutions1(const QCameraImageCapture* self, QImageEncoderSettings* settings); +struct miqt_array /* of QSize* */ QCameraImageCapture_SupportedResolutions2(const QCameraImageCapture* self, QImageEncoderSettings* settings, bool* continuous); int QCameraImageCapture_Capture1(QCameraImageCapture* self, struct miqt_string location); void QCameraImageCapture_Delete(QCameraImageCapture* self); diff --git a/qt/multimedia/gen_qcameraimagecapturecontrol.h b/qt/multimedia/gen_qcameraimagecapturecontrol.h index a99b7bbd..8800eef0 100644 --- a/qt/multimedia/gen_qcameraimagecapturecontrol.h +++ b/qt/multimedia/gen_qcameraimagecapturecontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAIMAGECAPTURECONTROL_H -#define GEN_QCAMERAIMAGECAPTURECONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAIMAGECAPTURECONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAIMAGECAPTURECONTROL_H #include #include diff --git a/qt/multimedia/gen_qcameraimageprocessing.h b/qt/multimedia/gen_qcameraimageprocessing.h index 5b151c2a..05cbdf99 100644 --- a/qt/multimedia/gen_qcameraimageprocessing.h +++ b/qt/multimedia/gen_qcameraimageprocessing.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAIMAGEPROCESSING_H -#define GEN_QCAMERAIMAGEPROCESSING_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAIMAGEPROCESSING_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAIMAGEPROCESSING_H #include #include diff --git a/qt/multimedia/gen_qcameraimageprocessingcontrol.h b/qt/multimedia/gen_qcameraimageprocessingcontrol.h index a9759d57..608d2609 100644 --- a/qt/multimedia/gen_qcameraimageprocessingcontrol.h +++ b/qt/multimedia/gen_qcameraimageprocessingcontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAIMAGEPROCESSINGCONTROL_H -#define GEN_QCAMERAIMAGEPROCESSINGCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAIMAGEPROCESSINGCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAIMAGEPROCESSINGCONTROL_H #include #include diff --git a/qt/multimedia/gen_qcamerainfo.cpp b/qt/multimedia/gen_qcamerainfo.cpp index a97db70c..e10efba6 100644 --- a/qt/multimedia/gen_qcamerainfo.cpp +++ b/qt/multimedia/gen_qcamerainfo.cpp @@ -77,7 +77,7 @@ QCameraInfo* QCameraInfo_DefaultCamera() { return new QCameraInfo(QCameraInfo::defaultCamera()); } -struct miqt_array QCameraInfo_AvailableCameras() { +struct miqt_array /* of QCameraInfo* */ QCameraInfo_AvailableCameras() { QList _ret = QCameraInfo::availableCameras(); // Convert QList<> from C++ memory to manually-managed C memory QCameraInfo** _arr = static_cast(malloc(sizeof(QCameraInfo*) * _ret.length())); @@ -90,7 +90,7 @@ struct miqt_array QCameraInfo_AvailableCameras() { return _out; } -struct miqt_array QCameraInfo_AvailableCameras1(int position) { +struct miqt_array /* of QCameraInfo* */ QCameraInfo_AvailableCameras1(int position) { QList _ret = QCameraInfo::availableCameras(static_cast(position)); // Convert QList<> from C++ memory to manually-managed C memory QCameraInfo** _arr = static_cast(malloc(sizeof(QCameraInfo*) * _ret.length())); diff --git a/qt/multimedia/gen_qcamerainfo.h b/qt/multimedia/gen_qcamerainfo.h index 1d31de68..828f17ca 100644 --- a/qt/multimedia/gen_qcamerainfo.h +++ b/qt/multimedia/gen_qcamerainfo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAINFO_H -#define GEN_QCAMERAINFO_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAINFO_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAINFO_H #include #include @@ -36,8 +37,8 @@ struct miqt_string QCameraInfo_Description(const QCameraInfo* self); int QCameraInfo_Position(const QCameraInfo* self); int QCameraInfo_Orientation(const QCameraInfo* self); QCameraInfo* QCameraInfo_DefaultCamera(); -struct miqt_array QCameraInfo_AvailableCameras(); -struct miqt_array QCameraInfo_AvailableCameras1(int position); +struct miqt_array /* of QCameraInfo* */ QCameraInfo_AvailableCameras(); +struct miqt_array /* of QCameraInfo* */ QCameraInfo_AvailableCameras1(int position); void QCameraInfo_Delete(QCameraInfo* self); #ifdef __cplusplus diff --git a/qt/multimedia/gen_qcamerainfocontrol.h b/qt/multimedia/gen_qcamerainfocontrol.h index 5cbccd75..a4458e72 100644 --- a/qt/multimedia/gen_qcamerainfocontrol.h +++ b/qt/multimedia/gen_qcamerainfocontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAINFOCONTROL_H -#define GEN_QCAMERAINFOCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAINFOCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAINFOCONTROL_H #include #include diff --git a/qt/multimedia/gen_qcameralockscontrol.h b/qt/multimedia/gen_qcameralockscontrol.h index 3d767b4f..4c20c0dd 100644 --- a/qt/multimedia/gen_qcameralockscontrol.h +++ b/qt/multimedia/gen_qcameralockscontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERALOCKSCONTROL_H -#define GEN_QCAMERALOCKSCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERALOCKSCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERALOCKSCONTROL_H #include #include diff --git a/qt/multimedia/gen_qcameraviewfinder.h b/qt/multimedia/gen_qcameraviewfinder.h index 484d55a1..aa5e8f62 100644 --- a/qt/multimedia/gen_qcameraviewfinder.h +++ b/qt/multimedia/gen_qcameraviewfinder.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAVIEWFINDER_H -#define GEN_QCAMERAVIEWFINDER_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAVIEWFINDER_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAVIEWFINDER_H #include #include diff --git a/qt/multimedia/gen_qcameraviewfindersettings.h b/qt/multimedia/gen_qcameraviewfindersettings.h index 7034a7d6..46266176 100644 --- a/qt/multimedia/gen_qcameraviewfindersettings.h +++ b/qt/multimedia/gen_qcameraviewfindersettings.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAVIEWFINDERSETTINGS_H -#define GEN_QCAMERAVIEWFINDERSETTINGS_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAVIEWFINDERSETTINGS_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAVIEWFINDERSETTINGS_H #include #include diff --git a/qt/multimedia/gen_qcameraviewfindersettingscontrol.cpp b/qt/multimedia/gen_qcameraviewfindersettingscontrol.cpp index ea88fe76..49693b38 100644 --- a/qt/multimedia/gen_qcameraviewfindersettingscontrol.cpp +++ b/qt/multimedia/gen_qcameraviewfindersettingscontrol.cpp @@ -131,7 +131,7 @@ struct miqt_string QCameraViewfinderSettingsControl2_TrUtf8(const char* s) { return _ms; } -struct miqt_array QCameraViewfinderSettingsControl2_SupportedViewfinderSettings(const QCameraViewfinderSettingsControl2* self) { +struct miqt_array /* of QCameraViewfinderSettings* */ QCameraViewfinderSettingsControl2_SupportedViewfinderSettings(const QCameraViewfinderSettingsControl2* self) { QList _ret = self->supportedViewfinderSettings(); // Convert QList<> from C++ memory to manually-managed C memory QCameraViewfinderSettings** _arr = static_cast(malloc(sizeof(QCameraViewfinderSettings*) * _ret.length())); diff --git a/qt/multimedia/gen_qcameraviewfindersettingscontrol.h b/qt/multimedia/gen_qcameraviewfindersettingscontrol.h index 39654ed3..540de906 100644 --- a/qt/multimedia/gen_qcameraviewfindersettingscontrol.h +++ b/qt/multimedia/gen_qcameraviewfindersettingscontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAVIEWFINDERSETTINGSCONTROL_H -#define GEN_QCAMERAVIEWFINDERSETTINGSCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAVIEWFINDERSETTINGSCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAVIEWFINDERSETTINGSCONTROL_H #include #include @@ -44,7 +45,7 @@ QMetaObject* QCameraViewfinderSettingsControl2_MetaObject(const QCameraViewfinde void* QCameraViewfinderSettingsControl2_Metacast(QCameraViewfinderSettingsControl2* self, const char* param1); struct miqt_string QCameraViewfinderSettingsControl2_Tr(const char* s); struct miqt_string QCameraViewfinderSettingsControl2_TrUtf8(const char* s); -struct miqt_array QCameraViewfinderSettingsControl2_SupportedViewfinderSettings(const QCameraViewfinderSettingsControl2* self); +struct miqt_array /* of QCameraViewfinderSettings* */ QCameraViewfinderSettingsControl2_SupportedViewfinderSettings(const QCameraViewfinderSettingsControl2* self); QCameraViewfinderSettings* QCameraViewfinderSettingsControl2_ViewfinderSettings(const QCameraViewfinderSettingsControl2* self); void QCameraViewfinderSettingsControl2_SetViewfinderSettings(QCameraViewfinderSettingsControl2* self, QCameraViewfinderSettings* settings); struct miqt_string QCameraViewfinderSettingsControl2_Tr2(const char* s, const char* c); diff --git a/qt/multimedia/gen_qcamerazoomcontrol.h b/qt/multimedia/gen_qcamerazoomcontrol.h index 8038fff9..c680a400 100644 --- a/qt/multimedia/gen_qcamerazoomcontrol.h +++ b/qt/multimedia/gen_qcamerazoomcontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERAZOOMCONTROL_H -#define GEN_QCAMERAZOOMCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCAMERAZOOMCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QCAMERAZOOMCONTROL_H #include #include diff --git a/qt/multimedia/gen_qcustomaudiorolecontrol.cpp b/qt/multimedia/gen_qcustomaudiorolecontrol.cpp index f8a2edf6..50d75c9b 100644 --- a/qt/multimedia/gen_qcustomaudiorolecontrol.cpp +++ b/qt/multimedia/gen_qcustomaudiorolecontrol.cpp @@ -54,7 +54,7 @@ void QCustomAudioRoleControl_SetCustomAudioRole(QCustomAudioRoleControl* self, s self->setCustomAudioRole(role_QString); } -struct miqt_array QCustomAudioRoleControl_SupportedCustomAudioRoles(const QCustomAudioRoleControl* self) { +struct miqt_array /* of struct miqt_string */ QCustomAudioRoleControl_SupportedCustomAudioRoles(const QCustomAudioRoleControl* self) { QStringList _ret = self->supportedCustomAudioRoles(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/multimedia/gen_qcustomaudiorolecontrol.h b/qt/multimedia/gen_qcustomaudiorolecontrol.h index b25067b5..27db964a 100644 --- a/qt/multimedia/gen_qcustomaudiorolecontrol.h +++ b/qt/multimedia/gen_qcustomaudiorolecontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCUSTOMAUDIOROLECONTROL_H -#define GEN_QCUSTOMAUDIOROLECONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QCUSTOMAUDIOROLECONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QCUSTOMAUDIOROLECONTROL_H #include #include @@ -27,7 +28,7 @@ struct miqt_string QCustomAudioRoleControl_Tr(const char* s); struct miqt_string QCustomAudioRoleControl_TrUtf8(const char* s); struct miqt_string QCustomAudioRoleControl_CustomAudioRole(const QCustomAudioRoleControl* self); void QCustomAudioRoleControl_SetCustomAudioRole(QCustomAudioRoleControl* self, struct miqt_string role); -struct miqt_array QCustomAudioRoleControl_SupportedCustomAudioRoles(const QCustomAudioRoleControl* self); +struct miqt_array /* of struct miqt_string */ QCustomAudioRoleControl_SupportedCustomAudioRoles(const QCustomAudioRoleControl* self); void QCustomAudioRoleControl_CustomAudioRoleChanged(QCustomAudioRoleControl* self, struct miqt_string role); void QCustomAudioRoleControl_connect_CustomAudioRoleChanged(QCustomAudioRoleControl* self, intptr_t slot); struct miqt_string QCustomAudioRoleControl_Tr2(const char* s, const char* c); diff --git a/qt/multimedia/gen_qgraphicsvideoitem.h b/qt/multimedia/gen_qgraphicsvideoitem.h index 2b4b5ac1..8af7094a 100644 --- a/qt/multimedia/gen_qgraphicsvideoitem.h +++ b/qt/multimedia/gen_qgraphicsvideoitem.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSVIDEOITEM_H -#define GEN_QGRAPHICSVIDEOITEM_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QGRAPHICSVIDEOITEM_H +#define MIQT_QT_MULTIMEDIA_GEN_QGRAPHICSVIDEOITEM_H #include #include diff --git a/qt/multimedia/gen_qimageencodercontrol.cpp b/qt/multimedia/gen_qimageencodercontrol.cpp index e759e291..ba19ce42 100644 --- a/qt/multimedia/gen_qimageencodercontrol.cpp +++ b/qt/multimedia/gen_qimageencodercontrol.cpp @@ -40,7 +40,7 @@ struct miqt_string QImageEncoderControl_TrUtf8(const char* s) { return _ms; } -struct miqt_array QImageEncoderControl_SupportedImageCodecs(const QImageEncoderControl* self) { +struct miqt_array /* of struct miqt_string */ QImageEncoderControl_SupportedImageCodecs(const QImageEncoderControl* self) { QStringList _ret = self->supportedImageCodecs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -72,7 +72,7 @@ struct miqt_string QImageEncoderControl_ImageCodecDescription(const QImageEncode return _ms; } -struct miqt_array QImageEncoderControl_SupportedResolutions(const QImageEncoderControl* self, QImageEncoderSettings* settings) { +struct miqt_array /* of QSize* */ QImageEncoderControl_SupportedResolutions(const QImageEncoderControl* self, QImageEncoderSettings* settings) { QList _ret = self->supportedResolutions(*settings); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -137,7 +137,7 @@ struct miqt_string QImageEncoderControl_TrUtf83(const char* s, const char* c, in return _ms; } -struct miqt_array QImageEncoderControl_SupportedResolutions2(const QImageEncoderControl* self, QImageEncoderSettings* settings, bool* continuous) { +struct miqt_array /* of QSize* */ QImageEncoderControl_SupportedResolutions2(const QImageEncoderControl* self, QImageEncoderSettings* settings, bool* continuous) { QList _ret = self->supportedResolutions(*settings, continuous); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); diff --git a/qt/multimedia/gen_qimageencodercontrol.h b/qt/multimedia/gen_qimageencodercontrol.h index 3a590969..c45691c1 100644 --- a/qt/multimedia/gen_qimageencodercontrol.h +++ b/qt/multimedia/gen_qimageencodercontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIMAGEENCODERCONTROL_H -#define GEN_QIMAGEENCODERCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QIMAGEENCODERCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QIMAGEENCODERCONTROL_H #include #include @@ -29,16 +30,16 @@ QMetaObject* QImageEncoderControl_MetaObject(const QImageEncoderControl* self); void* QImageEncoderControl_Metacast(QImageEncoderControl* self, const char* param1); struct miqt_string QImageEncoderControl_Tr(const char* s); struct miqt_string QImageEncoderControl_TrUtf8(const char* s); -struct miqt_array QImageEncoderControl_SupportedImageCodecs(const QImageEncoderControl* self); +struct miqt_array /* of struct miqt_string */ QImageEncoderControl_SupportedImageCodecs(const QImageEncoderControl* self); struct miqt_string QImageEncoderControl_ImageCodecDescription(const QImageEncoderControl* self, struct miqt_string codec); -struct miqt_array QImageEncoderControl_SupportedResolutions(const QImageEncoderControl* self, QImageEncoderSettings* settings); +struct miqt_array /* of QSize* */ QImageEncoderControl_SupportedResolutions(const QImageEncoderControl* self, QImageEncoderSettings* settings); QImageEncoderSettings* QImageEncoderControl_ImageSettings(const QImageEncoderControl* self); void QImageEncoderControl_SetImageSettings(QImageEncoderControl* self, QImageEncoderSettings* settings); struct miqt_string QImageEncoderControl_Tr2(const char* s, const char* c); struct miqt_string QImageEncoderControl_Tr3(const char* s, const char* c, int n); struct miqt_string QImageEncoderControl_TrUtf82(const char* s, const char* c); struct miqt_string QImageEncoderControl_TrUtf83(const char* s, const char* c, int n); -struct miqt_array QImageEncoderControl_SupportedResolutions2(const QImageEncoderControl* self, QImageEncoderSettings* settings, bool* continuous); +struct miqt_array /* of QSize* */ QImageEncoderControl_SupportedResolutions2(const QImageEncoderControl* self, QImageEncoderSettings* settings, bool* continuous); void QImageEncoderControl_Delete(QImageEncoderControl* self); #ifdef __cplusplus diff --git a/qt/multimedia/gen_qmediaaudioprobecontrol.h b/qt/multimedia/gen_qmediaaudioprobecontrol.h index 9c5dd5da..98d5a19f 100644 --- a/qt/multimedia/gen_qmediaaudioprobecontrol.h +++ b/qt/multimedia/gen_qmediaaudioprobecontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIAAUDIOPROBECONTROL_H -#define GEN_QMEDIAAUDIOPROBECONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIAAUDIOPROBECONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIAAUDIOPROBECONTROL_H #include #include diff --git a/qt/multimedia/gen_qmediaavailabilitycontrol.h b/qt/multimedia/gen_qmediaavailabilitycontrol.h index ff0fb7c5..8ca5d175 100644 --- a/qt/multimedia/gen_qmediaavailabilitycontrol.h +++ b/qt/multimedia/gen_qmediaavailabilitycontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIAAVAILABILITYCONTROL_H -#define GEN_QMEDIAAVAILABILITYCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIAAVAILABILITYCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIAAVAILABILITYCONTROL_H #include #include diff --git a/qt/multimedia/gen_qmediabindableinterface.h b/qt/multimedia/gen_qmediabindableinterface.h index 87fd4101..c855c4eb 100644 --- a/qt/multimedia/gen_qmediabindableinterface.h +++ b/qt/multimedia/gen_qmediabindableinterface.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIABINDABLEINTERFACE_H -#define GEN_QMEDIABINDABLEINTERFACE_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIABINDABLEINTERFACE_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIABINDABLEINTERFACE_H #include #include diff --git a/qt/multimedia/gen_qmediacontainercontrol.cpp b/qt/multimedia/gen_qmediacontainercontrol.cpp index 664f2f6c..c9efbe90 100644 --- a/qt/multimedia/gen_qmediacontainercontrol.cpp +++ b/qt/multimedia/gen_qmediacontainercontrol.cpp @@ -38,7 +38,7 @@ struct miqt_string QMediaContainerControl_TrUtf8(const char* s) { return _ms; } -struct miqt_array QMediaContainerControl_SupportedContainers(const QMediaContainerControl* self) { +struct miqt_array /* of struct miqt_string */ QMediaContainerControl_SupportedContainers(const QMediaContainerControl* self) { QStringList _ret = self->supportedContainers(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/multimedia/gen_qmediacontainercontrol.h b/qt/multimedia/gen_qmediacontainercontrol.h index 01267c6c..4e5917e9 100644 --- a/qt/multimedia/gen_qmediacontainercontrol.h +++ b/qt/multimedia/gen_qmediacontainercontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIACONTAINERCONTROL_H -#define GEN_QMEDIACONTAINERCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIACONTAINERCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIACONTAINERCONTROL_H #include #include @@ -25,7 +26,7 @@ QMetaObject* QMediaContainerControl_MetaObject(const QMediaContainerControl* sel void* QMediaContainerControl_Metacast(QMediaContainerControl* self, const char* param1); struct miqt_string QMediaContainerControl_Tr(const char* s); struct miqt_string QMediaContainerControl_TrUtf8(const char* s); -struct miqt_array QMediaContainerControl_SupportedContainers(const QMediaContainerControl* self); +struct miqt_array /* of struct miqt_string */ QMediaContainerControl_SupportedContainers(const QMediaContainerControl* self); struct miqt_string QMediaContainerControl_ContainerFormat(const QMediaContainerControl* self); void QMediaContainerControl_SetContainerFormat(QMediaContainerControl* self, struct miqt_string format); struct miqt_string QMediaContainerControl_ContainerDescription(const QMediaContainerControl* self, struct miqt_string formatMimeType); diff --git a/qt/multimedia/gen_qmediacontent.cpp b/qt/multimedia/gen_qmediacontent.cpp index c12aa769..fd7414eb 100644 --- a/qt/multimedia/gen_qmediacontent.cpp +++ b/qt/multimedia/gen_qmediacontent.cpp @@ -24,7 +24,7 @@ QMediaContent* QMediaContent_new4(QMediaResource* contentResource) { return new QMediaContent(*contentResource); } -QMediaContent* QMediaContent_new5(struct miqt_array /* of QMediaResource* */ resources) { +QMediaContent* QMediaContent_new5(struct miqt_array /* of QMediaResource* */ resources) { QMediaResourceList resources_QList; resources_QList.reserve(resources.len); QMediaResource** resources_arr = static_cast(resources.data); @@ -82,7 +82,7 @@ QMediaResource* QMediaContent_CanonicalResource(const QMediaContent* self) { return new QMediaResource(self->canonicalResource()); } -struct miqt_array QMediaContent_Resources(const QMediaContent* self) { +struct miqt_array /* of QMediaResource* */ QMediaContent_Resources(const QMediaContent* self) { QMediaResourceList _ret = self->resources(); // Convert QList<> from C++ memory to manually-managed C memory QMediaResource** _arr = static_cast(malloc(sizeof(QMediaResource*) * _ret.length())); diff --git a/qt/multimedia/gen_qmediacontent.h b/qt/multimedia/gen_qmediacontent.h index a804e4ca..036321f5 100644 --- a/qt/multimedia/gen_qmediacontent.h +++ b/qt/multimedia/gen_qmediacontent.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIACONTENT_H -#define GEN_QMEDIACONTENT_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIACONTENT_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIACONTENT_H #include #include @@ -31,7 +32,7 @@ QMediaContent* QMediaContent_new(); QMediaContent* QMediaContent_new2(QUrl* contentUrl); QMediaContent* QMediaContent_new3(QNetworkRequest* contentRequest); QMediaContent* QMediaContent_new4(QMediaResource* contentResource); -QMediaContent* QMediaContent_new5(struct miqt_array /* of QMediaResource* */ resources); +QMediaContent* QMediaContent_new5(struct miqt_array /* of QMediaResource* */ resources); QMediaContent* QMediaContent_new6(QMediaContent* other); QMediaContent* QMediaContent_new7(QMediaPlaylist* playlist); QMediaContent* QMediaContent_new8(QMediaPlaylist* playlist, QUrl* contentUrl); @@ -44,7 +45,7 @@ QNetworkRequest* QMediaContent_Request(const QMediaContent* self); QUrl* QMediaContent_CanonicalUrl(const QMediaContent* self); QNetworkRequest* QMediaContent_CanonicalRequest(const QMediaContent* self); QMediaResource* QMediaContent_CanonicalResource(const QMediaContent* self); -struct miqt_array QMediaContent_Resources(const QMediaContent* self); +struct miqt_array /* of QMediaResource* */ QMediaContent_Resources(const QMediaContent* self); QMediaPlaylist* QMediaContent_Playlist(const QMediaContent* self); void QMediaContent_Delete(QMediaContent* self); diff --git a/qt/multimedia/gen_qmediacontrol.h b/qt/multimedia/gen_qmediacontrol.h index 8c9e2952..10da5cdf 100644 --- a/qt/multimedia/gen_qmediacontrol.h +++ b/qt/multimedia/gen_qmediacontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIACONTROL_H -#define GEN_QMEDIACONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIACONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIACONTROL_H #include #include diff --git a/qt/multimedia/gen_qmediaencodersettings.cpp b/qt/multimedia/gen_qmediaencodersettings.cpp index 9f7ca8ef..cfa98e72 100644 --- a/qt/multimedia/gen_qmediaencodersettings.cpp +++ b/qt/multimedia/gen_qmediaencodersettings.cpp @@ -98,7 +98,7 @@ QVariant* QAudioEncoderSettings_EncodingOption(const QAudioEncoderSettings* self return new QVariant(self->encodingOption(option_QString)); } -struct miqt_map QAudioEncoderSettings_EncodingOptions(const QAudioEncoderSettings* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QAudioEncoderSettings_EncodingOptions(const QAudioEncoderSettings* self) { QVariantMap _ret = self->encodingOptions(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); @@ -128,7 +128,7 @@ void QAudioEncoderSettings_SetEncodingOption(QAudioEncoderSettings* self, struct self->setEncodingOption(option_QString, *value); } -void QAudioEncoderSettings_SetEncodingOptions(QAudioEncoderSettings* self, struct miqt_map options) { +void QAudioEncoderSettings_SetEncodingOptions(QAudioEncoderSettings* self, struct miqt_map /* of struct miqt_string to QVariant* */ options) { QVariantMap options_QMap; struct miqt_string* options_karr = static_cast(options.keys); QVariant** options_varr = static_cast(options.values); @@ -235,7 +235,7 @@ QVariant* QVideoEncoderSettings_EncodingOption(const QVideoEncoderSettings* self return new QVariant(self->encodingOption(option_QString)); } -struct miqt_map QVideoEncoderSettings_EncodingOptions(const QVideoEncoderSettings* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QVideoEncoderSettings_EncodingOptions(const QVideoEncoderSettings* self) { QVariantMap _ret = self->encodingOptions(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); @@ -265,7 +265,7 @@ void QVideoEncoderSettings_SetEncodingOption(QVideoEncoderSettings* self, struct self->setEncodingOption(option_QString, *value); } -void QVideoEncoderSettings_SetEncodingOptions(QVideoEncoderSettings* self, struct miqt_map options) { +void QVideoEncoderSettings_SetEncodingOptions(QVideoEncoderSettings* self, struct miqt_map /* of struct miqt_string to QVariant* */ options) { QVariantMap options_QMap; struct miqt_string* options_karr = static_cast(options.keys); QVariant** options_varr = static_cast(options.values); @@ -346,7 +346,7 @@ QVariant* QImageEncoderSettings_EncodingOption(const QImageEncoderSettings* self return new QVariant(self->encodingOption(option_QString)); } -struct miqt_map QImageEncoderSettings_EncodingOptions(const QImageEncoderSettings* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QImageEncoderSettings_EncodingOptions(const QImageEncoderSettings* self) { QVariantMap _ret = self->encodingOptions(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); @@ -376,7 +376,7 @@ void QImageEncoderSettings_SetEncodingOption(QImageEncoderSettings* self, struct self->setEncodingOption(option_QString, *value); } -void QImageEncoderSettings_SetEncodingOptions(QImageEncoderSettings* self, struct miqt_map options) { +void QImageEncoderSettings_SetEncodingOptions(QImageEncoderSettings* self, struct miqt_map /* of struct miqt_string to QVariant* */ options) { QVariantMap options_QMap; struct miqt_string* options_karr = static_cast(options.keys); QVariant** options_varr = static_cast(options.values); diff --git a/qt/multimedia/gen_qmediaencodersettings.h b/qt/multimedia/gen_qmediaencodersettings.h index dc9f20dc..cacab251 100644 --- a/qt/multimedia/gen_qmediaencodersettings.h +++ b/qt/multimedia/gen_qmediaencodersettings.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIAENCODERSETTINGS_H -#define GEN_QMEDIAENCODERSETTINGS_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIAENCODERSETTINGS_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIAENCODERSETTINGS_H #include #include @@ -46,9 +47,9 @@ void QAudioEncoderSettings_SetSampleRate(QAudioEncoderSettings* self, int rate); int QAudioEncoderSettings_Quality(const QAudioEncoderSettings* self); void QAudioEncoderSettings_SetQuality(QAudioEncoderSettings* self, int quality); QVariant* QAudioEncoderSettings_EncodingOption(const QAudioEncoderSettings* self, struct miqt_string option); -struct miqt_map QAudioEncoderSettings_EncodingOptions(const QAudioEncoderSettings* self); +struct miqt_map /* of struct miqt_string to QVariant* */ QAudioEncoderSettings_EncodingOptions(const QAudioEncoderSettings* self); void QAudioEncoderSettings_SetEncodingOption(QAudioEncoderSettings* self, struct miqt_string option, QVariant* value); -void QAudioEncoderSettings_SetEncodingOptions(QAudioEncoderSettings* self, struct miqt_map options); +void QAudioEncoderSettings_SetEncodingOptions(QAudioEncoderSettings* self, struct miqt_map /* of struct miqt_string to QVariant* */ options); void QAudioEncoderSettings_Delete(QAudioEncoderSettings* self); QVideoEncoderSettings* QVideoEncoderSettings_new(); @@ -71,9 +72,9 @@ void QVideoEncoderSettings_SetBitRate(QVideoEncoderSettings* self, int bitrate); int QVideoEncoderSettings_Quality(const QVideoEncoderSettings* self); void QVideoEncoderSettings_SetQuality(QVideoEncoderSettings* self, int quality); QVariant* QVideoEncoderSettings_EncodingOption(const QVideoEncoderSettings* self, struct miqt_string option); -struct miqt_map QVideoEncoderSettings_EncodingOptions(const QVideoEncoderSettings* self); +struct miqt_map /* of struct miqt_string to QVariant* */ QVideoEncoderSettings_EncodingOptions(const QVideoEncoderSettings* self); void QVideoEncoderSettings_SetEncodingOption(QVideoEncoderSettings* self, struct miqt_string option, QVariant* value); -void QVideoEncoderSettings_SetEncodingOptions(QVideoEncoderSettings* self, struct miqt_map options); +void QVideoEncoderSettings_SetEncodingOptions(QVideoEncoderSettings* self, struct miqt_map /* of struct miqt_string to QVariant* */ options); void QVideoEncoderSettings_Delete(QVideoEncoderSettings* self); QImageEncoderSettings* QImageEncoderSettings_new(); @@ -90,9 +91,9 @@ void QImageEncoderSettings_SetResolution2(QImageEncoderSettings* self, int width int QImageEncoderSettings_Quality(const QImageEncoderSettings* self); void QImageEncoderSettings_SetQuality(QImageEncoderSettings* self, int quality); QVariant* QImageEncoderSettings_EncodingOption(const QImageEncoderSettings* self, struct miqt_string option); -struct miqt_map QImageEncoderSettings_EncodingOptions(const QImageEncoderSettings* self); +struct miqt_map /* of struct miqt_string to QVariant* */ QImageEncoderSettings_EncodingOptions(const QImageEncoderSettings* self); void QImageEncoderSettings_SetEncodingOption(QImageEncoderSettings* self, struct miqt_string option, QVariant* value); -void QImageEncoderSettings_SetEncodingOptions(QImageEncoderSettings* self, struct miqt_map options); +void QImageEncoderSettings_SetEncodingOptions(QImageEncoderSettings* self, struct miqt_map /* of struct miqt_string to QVariant* */ options); void QImageEncoderSettings_Delete(QImageEncoderSettings* self); #ifdef __cplusplus diff --git a/qt/multimedia/gen_qmediagaplessplaybackcontrol.h b/qt/multimedia/gen_qmediagaplessplaybackcontrol.h index 171dd427..7e40bb0e 100644 --- a/qt/multimedia/gen_qmediagaplessplaybackcontrol.h +++ b/qt/multimedia/gen_qmediagaplessplaybackcontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIAGAPLESSPLAYBACKCONTROL_H -#define GEN_QMEDIAGAPLESSPLAYBACKCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIAGAPLESSPLAYBACKCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIAGAPLESSPLAYBACKCONTROL_H #include #include diff --git a/qt/multimedia/gen_qmedianetworkaccesscontrol.cpp b/qt/multimedia/gen_qmedianetworkaccesscontrol.cpp index 19f23968..bb51a338 100644 --- a/qt/multimedia/gen_qmedianetworkaccesscontrol.cpp +++ b/qt/multimedia/gen_qmedianetworkaccesscontrol.cpp @@ -39,7 +39,7 @@ struct miqt_string QMediaNetworkAccessControl_TrUtf8(const char* s) { return _ms; } -void QMediaNetworkAccessControl_SetConfigurations(QMediaNetworkAccessControl* self, struct miqt_array /* of QNetworkConfiguration* */ configuration) { +void QMediaNetworkAccessControl_SetConfigurations(QMediaNetworkAccessControl* self, struct miqt_array /* of QNetworkConfiguration* */ configuration) { QList configuration_QList; configuration_QList.reserve(configuration.len); QNetworkConfiguration** configuration_arr = static_cast(configuration.data); diff --git a/qt/multimedia/gen_qmedianetworkaccesscontrol.h b/qt/multimedia/gen_qmedianetworkaccesscontrol.h index 0fb3be1f..6783e44e 100644 --- a/qt/multimedia/gen_qmedianetworkaccesscontrol.h +++ b/qt/multimedia/gen_qmedianetworkaccesscontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIANETWORKACCESSCONTROL_H -#define GEN_QMEDIANETWORKACCESSCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIANETWORKACCESSCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIANETWORKACCESSCONTROL_H #include #include @@ -27,7 +28,7 @@ QMetaObject* QMediaNetworkAccessControl_MetaObject(const QMediaNetworkAccessCont void* QMediaNetworkAccessControl_Metacast(QMediaNetworkAccessControl* self, const char* param1); struct miqt_string QMediaNetworkAccessControl_Tr(const char* s); struct miqt_string QMediaNetworkAccessControl_TrUtf8(const char* s); -void QMediaNetworkAccessControl_SetConfigurations(QMediaNetworkAccessControl* self, struct miqt_array /* of QNetworkConfiguration* */ configuration); +void QMediaNetworkAccessControl_SetConfigurations(QMediaNetworkAccessControl* self, struct miqt_array /* of QNetworkConfiguration* */ configuration); QNetworkConfiguration* QMediaNetworkAccessControl_CurrentConfiguration(const QMediaNetworkAccessControl* self); void QMediaNetworkAccessControl_ConfigurationChanged(QMediaNetworkAccessControl* self, QNetworkConfiguration* configuration); void QMediaNetworkAccessControl_connect_ConfigurationChanged(QMediaNetworkAccessControl* self, intptr_t slot); diff --git a/qt/multimedia/gen_qmediaobject.cpp b/qt/multimedia/gen_qmediaobject.cpp index 10c4e525..56855a37 100644 --- a/qt/multimedia/gen_qmediaobject.cpp +++ b/qt/multimedia/gen_qmediaobject.cpp @@ -79,7 +79,7 @@ QVariant* QMediaObject_MetaData(const QMediaObject* self, struct miqt_string key return new QVariant(self->metaData(key_QString)); } -struct miqt_array QMediaObject_AvailableMetaData(const QMediaObject* self) { +struct miqt_array /* of struct miqt_string */ QMediaObject_AvailableMetaData(const QMediaObject* self) { QStringList _ret = self->availableMetaData(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/multimedia/gen_qmediaobject.h b/qt/multimedia/gen_qmediaobject.h index c0dcb51a..e2a324da 100644 --- a/qt/multimedia/gen_qmediaobject.h +++ b/qt/multimedia/gen_qmediaobject.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIAOBJECT_H -#define GEN_QMEDIAOBJECT_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIAOBJECT_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIAOBJECT_H #include #include @@ -40,7 +41,7 @@ bool QMediaObject_Bind(QMediaObject* self, QObject* param1); void QMediaObject_Unbind(QMediaObject* self, QObject* param1); bool QMediaObject_IsMetaDataAvailable(const QMediaObject* self); QVariant* QMediaObject_MetaData(const QMediaObject* self, struct miqt_string key); -struct miqt_array QMediaObject_AvailableMetaData(const QMediaObject* self); +struct miqt_array /* of struct miqt_string */ QMediaObject_AvailableMetaData(const QMediaObject* self); void QMediaObject_NotifyIntervalChanged(QMediaObject* self, int milliSeconds); void QMediaObject_connect_NotifyIntervalChanged(QMediaObject* self, intptr_t slot); void QMediaObject_MetaDataAvailableChanged(QMediaObject* self, bool available); diff --git a/qt/multimedia/gen_qmediaplayer.cpp b/qt/multimedia/gen_qmediaplayer.cpp index 6bf62c57..708fdff1 100644 --- a/qt/multimedia/gen_qmediaplayer.cpp +++ b/qt/multimedia/gen_qmediaplayer.cpp @@ -64,7 +64,7 @@ int QMediaPlayer_HasSupport(struct miqt_string mimeType) { return static_cast(_ret); } -struct miqt_array QMediaPlayer_SupportedMimeTypes() { +struct miqt_array /* of struct miqt_string */ QMediaPlayer_SupportedMimeTypes() { QStringList _ret = QMediaPlayer::supportedMimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -96,7 +96,7 @@ void QMediaPlayer_SetVideoOutputWithSurface(QMediaPlayer* self, QAbstractVideoSu self->setVideoOutput(surface); } -void QMediaPlayer_SetVideoOutputWithSurfaces(QMediaPlayer* self, struct miqt_array /* of QAbstractVideoSurface* */ surfaces) { +void QMediaPlayer_SetVideoOutputWithSurfaces(QMediaPlayer* self, struct miqt_array /* of QAbstractVideoSurface* */ surfaces) { QVector surfaces_QList; surfaces_QList.reserve(surfaces.len); QAbstractVideoSurface** surfaces_arr = static_cast(surfaces.data); @@ -205,7 +205,7 @@ void QMediaPlayer_SetAudioRole(QMediaPlayer* self, int audioRole) { self->setAudioRole(static_cast(audioRole)); } -struct miqt_array QMediaPlayer_SupportedAudioRoles(const QMediaPlayer* self) { +struct miqt_array /* of int */ QMediaPlayer_SupportedAudioRoles(const QMediaPlayer* self) { QList _ret = self->supportedAudioRoles(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -235,7 +235,7 @@ void QMediaPlayer_SetCustomAudioRole(QMediaPlayer* self, struct miqt_string audi self->setCustomAudioRole(audioRole_QString); } -struct miqt_array QMediaPlayer_SupportedCustomAudioRoles(const QMediaPlayer* self) { +struct miqt_array /* of struct miqt_string */ QMediaPlayer_SupportedCustomAudioRoles(const QMediaPlayer* self) { QStringList _ret = self->supportedCustomAudioRoles(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -291,7 +291,7 @@ void QMediaPlayer_SetPlaylist(QMediaPlayer* self, QMediaPlaylist* playlist) { self->setPlaylist(playlist); } -void QMediaPlayer_SetNetworkConfigurations(QMediaPlayer* self, struct miqt_array /* of QNetworkConfiguration* */ configurations) { +void QMediaPlayer_SetNetworkConfigurations(QMediaPlayer* self, struct miqt_array /* of QNetworkConfiguration* */ configurations) { QList configurations_QList; configurations_QList.reserve(configurations.len); QNetworkConfiguration** configurations_arr = static_cast(configurations.data); @@ -561,7 +561,7 @@ struct miqt_string QMediaPlayer_TrUtf83(const char* s, const char* c, int n) { return _ms; } -int QMediaPlayer_HasSupport2(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs) { +int QMediaPlayer_HasSupport2(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs) { QString mimeType_QString = QString::fromUtf8(mimeType.data, mimeType.len); QStringList codecs_QList; codecs_QList.reserve(codecs.len); @@ -574,7 +574,7 @@ int QMediaPlayer_HasSupport2(struct miqt_string mimeType, struct miqt_array /* o return static_cast(_ret); } -int QMediaPlayer_HasSupport3(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs, int flags) { +int QMediaPlayer_HasSupport3(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs, int flags) { QString mimeType_QString = QString::fromUtf8(mimeType.data, mimeType.len); QStringList codecs_QList; codecs_QList.reserve(codecs.len); @@ -587,7 +587,7 @@ int QMediaPlayer_HasSupport3(struct miqt_string mimeType, struct miqt_array /* o return static_cast(_ret); } -struct miqt_array QMediaPlayer_SupportedMimeTypes1(int flags) { +struct miqt_array /* of struct miqt_string */ QMediaPlayer_SupportedMimeTypes1(int flags) { QStringList _ret = QMediaPlayer::supportedMimeTypes(static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/multimedia/gen_qmediaplayer.h b/qt/multimedia/gen_qmediaplayer.h index fe86a98a..672a3753 100644 --- a/qt/multimedia/gen_qmediaplayer.h +++ b/qt/multimedia/gen_qmediaplayer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIAPLAYER_H -#define GEN_QMEDIAPLAYER_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIAPLAYER_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIAPLAYER_H #include #include @@ -45,11 +46,11 @@ void* QMediaPlayer_Metacast(QMediaPlayer* self, const char* param1); struct miqt_string QMediaPlayer_Tr(const char* s); struct miqt_string QMediaPlayer_TrUtf8(const char* s); int QMediaPlayer_HasSupport(struct miqt_string mimeType); -struct miqt_array QMediaPlayer_SupportedMimeTypes(); +struct miqt_array /* of struct miqt_string */ QMediaPlayer_SupportedMimeTypes(); void QMediaPlayer_SetVideoOutput(QMediaPlayer* self, QVideoWidget* videoOutput); void QMediaPlayer_SetVideoOutputWithVideoOutput(QMediaPlayer* self, QGraphicsVideoItem* videoOutput); void QMediaPlayer_SetVideoOutputWithSurface(QMediaPlayer* self, QAbstractVideoSurface* surface); -void QMediaPlayer_SetVideoOutputWithSurfaces(QMediaPlayer* self, struct miqt_array /* of QAbstractVideoSurface* */ surfaces); +void QMediaPlayer_SetVideoOutputWithSurfaces(QMediaPlayer* self, struct miqt_array /* of QAbstractVideoSurface* */ surfaces); QMediaContent* QMediaPlayer_Media(const QMediaPlayer* self); QIODevice* QMediaPlayer_MediaStream(const QMediaPlayer* self); QMediaPlaylist* QMediaPlayer_Playlist(const QMediaPlayer* self); @@ -71,10 +72,10 @@ QNetworkConfiguration* QMediaPlayer_CurrentNetworkConfiguration(const QMediaPlay int QMediaPlayer_Availability(const QMediaPlayer* self); int QMediaPlayer_AudioRole(const QMediaPlayer* self); void QMediaPlayer_SetAudioRole(QMediaPlayer* self, int audioRole); -struct miqt_array QMediaPlayer_SupportedAudioRoles(const QMediaPlayer* self); +struct miqt_array /* of int */ QMediaPlayer_SupportedAudioRoles(const QMediaPlayer* self); struct miqt_string QMediaPlayer_CustomAudioRole(const QMediaPlayer* self); void QMediaPlayer_SetCustomAudioRole(QMediaPlayer* self, struct miqt_string audioRole); -struct miqt_array QMediaPlayer_SupportedCustomAudioRoles(const QMediaPlayer* self); +struct miqt_array /* of struct miqt_string */ QMediaPlayer_SupportedCustomAudioRoles(const QMediaPlayer* self); void QMediaPlayer_Play(QMediaPlayer* self); void QMediaPlayer_Pause(QMediaPlayer* self); void QMediaPlayer_Stop(QMediaPlayer* self); @@ -84,7 +85,7 @@ void QMediaPlayer_SetMuted(QMediaPlayer* self, bool muted); void QMediaPlayer_SetPlaybackRate(QMediaPlayer* self, double rate); void QMediaPlayer_SetMedia(QMediaPlayer* self, QMediaContent* media); void QMediaPlayer_SetPlaylist(QMediaPlayer* self, QMediaPlaylist* playlist); -void QMediaPlayer_SetNetworkConfigurations(QMediaPlayer* self, struct miqt_array /* of QNetworkConfiguration* */ configurations); +void QMediaPlayer_SetNetworkConfigurations(QMediaPlayer* self, struct miqt_array /* of QNetworkConfiguration* */ configurations); void QMediaPlayer_MediaChanged(QMediaPlayer* self, QMediaContent* media); void QMediaPlayer_connect_MediaChanged(QMediaPlayer* self, intptr_t slot); void QMediaPlayer_CurrentMediaChanged(QMediaPlayer* self, QMediaContent* media); @@ -125,9 +126,9 @@ struct miqt_string QMediaPlayer_Tr2(const char* s, const char* c); struct miqt_string QMediaPlayer_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaPlayer_TrUtf82(const char* s, const char* c); struct miqt_string QMediaPlayer_TrUtf83(const char* s, const char* c, int n); -int QMediaPlayer_HasSupport2(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs); -int QMediaPlayer_HasSupport3(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs, int flags); -struct miqt_array QMediaPlayer_SupportedMimeTypes1(int flags); +int QMediaPlayer_HasSupport2(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs); +int QMediaPlayer_HasSupport3(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs, int flags); +struct miqt_array /* of struct miqt_string */ QMediaPlayer_SupportedMimeTypes1(int flags); void QMediaPlayer_SetMedia2(QMediaPlayer* self, QMediaContent* media, QIODevice* stream); void QMediaPlayer_Delete(QMediaPlayer* self); diff --git a/qt/multimedia/gen_qmediaplayercontrol.h b/qt/multimedia/gen_qmediaplayercontrol.h index 53cdd180..0f64be43 100644 --- a/qt/multimedia/gen_qmediaplayercontrol.h +++ b/qt/multimedia/gen_qmediaplayercontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIAPLAYERCONTROL_H -#define GEN_QMEDIAPLAYERCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIAPLAYERCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIAPLAYERCONTROL_H #include #include diff --git a/qt/multimedia/gen_qmediaplaylist.cpp b/qt/multimedia/gen_qmediaplaylist.cpp index 42af2ea5..90f52f91 100644 --- a/qt/multimedia/gen_qmediaplaylist.cpp +++ b/qt/multimedia/gen_qmediaplaylist.cpp @@ -101,7 +101,7 @@ bool QMediaPlaylist_AddMedia(QMediaPlaylist* self, QMediaContent* content) { return self->addMedia(*content); } -bool QMediaPlaylist_AddMediaWithItems(QMediaPlaylist* self, struct miqt_array /* of QMediaContent* */ items) { +bool QMediaPlaylist_AddMediaWithItems(QMediaPlaylist* self, struct miqt_array /* of QMediaContent* */ items) { QList items_QList; items_QList.reserve(items.len); QMediaContent** items_arr = static_cast(items.data); @@ -115,7 +115,7 @@ bool QMediaPlaylist_InsertMedia(QMediaPlaylist* self, int index, QMediaContent* return self->insertMedia(static_cast(index), *content); } -bool QMediaPlaylist_InsertMedia2(QMediaPlaylist* self, int index, struct miqt_array /* of QMediaContent* */ items) { +bool QMediaPlaylist_InsertMedia2(QMediaPlaylist* self, int index, struct miqt_array /* of QMediaContent* */ items) { QList items_QList; items_QList.reserve(items.len); QMediaContent** items_arr = static_cast(items.data); diff --git a/qt/multimedia/gen_qmediaplaylist.h b/qt/multimedia/gen_qmediaplaylist.h index 98d1c53e..c063dd85 100644 --- a/qt/multimedia/gen_qmediaplaylist.h +++ b/qt/multimedia/gen_qmediaplaylist.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIAPLAYLIST_H -#define GEN_QMEDIAPLAYLIST_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIAPLAYLIST_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIAPLAYLIST_H #include #include @@ -51,9 +52,9 @@ int QMediaPlaylist_MediaCount(const QMediaPlaylist* self); bool QMediaPlaylist_IsEmpty(const QMediaPlaylist* self); bool QMediaPlaylist_IsReadOnly(const QMediaPlaylist* self); bool QMediaPlaylist_AddMedia(QMediaPlaylist* self, QMediaContent* content); -bool QMediaPlaylist_AddMediaWithItems(QMediaPlaylist* self, struct miqt_array /* of QMediaContent* */ items); +bool QMediaPlaylist_AddMediaWithItems(QMediaPlaylist* self, struct miqt_array /* of QMediaContent* */ items); bool QMediaPlaylist_InsertMedia(QMediaPlaylist* self, int index, QMediaContent* content); -bool QMediaPlaylist_InsertMedia2(QMediaPlaylist* self, int index, struct miqt_array /* of QMediaContent* */ items); +bool QMediaPlaylist_InsertMedia2(QMediaPlaylist* self, int index, struct miqt_array /* of QMediaContent* */ items); bool QMediaPlaylist_MoveMedia(QMediaPlaylist* self, int from, int to); bool QMediaPlaylist_RemoveMedia(QMediaPlaylist* self, int pos); bool QMediaPlaylist_RemoveMedia2(QMediaPlaylist* self, int start, int end); diff --git a/qt/multimedia/gen_qmediarecorder.cpp b/qt/multimedia/gen_qmediarecorder.cpp index 4f3dbf76..7ec0d668 100644 --- a/qt/multimedia/gen_qmediarecorder.cpp +++ b/qt/multimedia/gen_qmediarecorder.cpp @@ -118,7 +118,7 @@ double QMediaRecorder_Volume(const QMediaRecorder* self) { return static_cast(_ret); } -struct miqt_array QMediaRecorder_SupportedContainers(const QMediaRecorder* self) { +struct miqt_array /* of struct miqt_string */ QMediaRecorder_SupportedContainers(const QMediaRecorder* self) { QStringList _ret = self->supportedContainers(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -150,7 +150,7 @@ struct miqt_string QMediaRecorder_ContainerDescription(const QMediaRecorder* sel return _ms; } -struct miqt_array QMediaRecorder_SupportedAudioCodecs(const QMediaRecorder* self) { +struct miqt_array /* of struct miqt_string */ QMediaRecorder_SupportedAudioCodecs(const QMediaRecorder* self) { QStringList _ret = self->supportedAudioCodecs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -182,7 +182,7 @@ struct miqt_string QMediaRecorder_AudioCodecDescription(const QMediaRecorder* se return _ms; } -struct miqt_array QMediaRecorder_SupportedAudioSampleRates(const QMediaRecorder* self) { +struct miqt_array /* of int */ QMediaRecorder_SupportedAudioSampleRates(const QMediaRecorder* self) { QList _ret = self->supportedAudioSampleRates(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -195,7 +195,7 @@ struct miqt_array QMediaRecorder_SupportedAudioSampleRates(const QMediaRecorder* return _out; } -struct miqt_array QMediaRecorder_SupportedVideoCodecs(const QMediaRecorder* self) { +struct miqt_array /* of struct miqt_string */ QMediaRecorder_SupportedVideoCodecs(const QMediaRecorder* self) { QStringList _ret = self->supportedVideoCodecs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -227,7 +227,7 @@ struct miqt_string QMediaRecorder_VideoCodecDescription(const QMediaRecorder* se return _ms; } -struct miqt_array QMediaRecorder_SupportedResolutions(const QMediaRecorder* self) { +struct miqt_array /* of QSize* */ QMediaRecorder_SupportedResolutions(const QMediaRecorder* self) { QList _ret = self->supportedResolutions(); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -240,7 +240,7 @@ struct miqt_array QMediaRecorder_SupportedResolutions(const QMediaRecorder* self return _out; } -struct miqt_array QMediaRecorder_SupportedFrameRates(const QMediaRecorder* self) { +struct miqt_array /* of double */ QMediaRecorder_SupportedFrameRates(const QMediaRecorder* self) { QList _ret = self->supportedFrameRates(); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); @@ -307,7 +307,7 @@ void QMediaRecorder_SetMetaData(QMediaRecorder* self, struct miqt_string key, QV self->setMetaData(key_QString, *value); } -struct miqt_array QMediaRecorder_AvailableMetaData(const QMediaRecorder* self) { +struct miqt_array /* of struct miqt_string */ QMediaRecorder_AvailableMetaData(const QMediaRecorder* self) { QStringList _ret = self->availableMetaData(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -552,7 +552,7 @@ struct miqt_string QMediaRecorder_TrUtf83(const char* s, const char* c, int n) { return _ms; } -struct miqt_array QMediaRecorder_SupportedAudioSampleRates1(const QMediaRecorder* self, QAudioEncoderSettings* settings) { +struct miqt_array /* of int */ QMediaRecorder_SupportedAudioSampleRates1(const QMediaRecorder* self, QAudioEncoderSettings* settings) { QList _ret = self->supportedAudioSampleRates(*settings); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -565,7 +565,7 @@ struct miqt_array QMediaRecorder_SupportedAudioSampleRates1(const QMediaRecorder return _out; } -struct miqt_array QMediaRecorder_SupportedAudioSampleRates2(const QMediaRecorder* self, QAudioEncoderSettings* settings, bool* continuous) { +struct miqt_array /* of int */ QMediaRecorder_SupportedAudioSampleRates2(const QMediaRecorder* self, QAudioEncoderSettings* settings, bool* continuous) { QList _ret = self->supportedAudioSampleRates(*settings, continuous); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -578,7 +578,7 @@ struct miqt_array QMediaRecorder_SupportedAudioSampleRates2(const QMediaRecorder return _out; } -struct miqt_array QMediaRecorder_SupportedResolutions1(const QMediaRecorder* self, QVideoEncoderSettings* settings) { +struct miqt_array /* of QSize* */ QMediaRecorder_SupportedResolutions1(const QMediaRecorder* self, QVideoEncoderSettings* settings) { QList _ret = self->supportedResolutions(*settings); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -591,7 +591,7 @@ struct miqt_array QMediaRecorder_SupportedResolutions1(const QMediaRecorder* sel return _out; } -struct miqt_array QMediaRecorder_SupportedResolutions2(const QMediaRecorder* self, QVideoEncoderSettings* settings, bool* continuous) { +struct miqt_array /* of QSize* */ QMediaRecorder_SupportedResolutions2(const QMediaRecorder* self, QVideoEncoderSettings* settings, bool* continuous) { QList _ret = self->supportedResolutions(*settings, continuous); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -604,7 +604,7 @@ struct miqt_array QMediaRecorder_SupportedResolutions2(const QMediaRecorder* sel return _out; } -struct miqt_array QMediaRecorder_SupportedFrameRates1(const QMediaRecorder* self, QVideoEncoderSettings* settings) { +struct miqt_array /* of double */ QMediaRecorder_SupportedFrameRates1(const QMediaRecorder* self, QVideoEncoderSettings* settings) { QList _ret = self->supportedFrameRates(*settings); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); @@ -617,7 +617,7 @@ struct miqt_array QMediaRecorder_SupportedFrameRates1(const QMediaRecorder* self return _out; } -struct miqt_array QMediaRecorder_SupportedFrameRates2(const QMediaRecorder* self, QVideoEncoderSettings* settings, bool* continuous) { +struct miqt_array /* of double */ QMediaRecorder_SupportedFrameRates2(const QMediaRecorder* self, QVideoEncoderSettings* settings, bool* continuous) { QList _ret = self->supportedFrameRates(*settings, continuous); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); diff --git a/qt/multimedia/gen_qmediarecorder.h b/qt/multimedia/gen_qmediarecorder.h index e7f79dc2..080f74be 100644 --- a/qt/multimedia/gen_qmediarecorder.h +++ b/qt/multimedia/gen_qmediarecorder.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIARECORDER_H -#define GEN_QMEDIARECORDER_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIARECORDER_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIARECORDER_H #include #include @@ -54,15 +55,15 @@ struct miqt_string QMediaRecorder_ErrorString(const QMediaRecorder* self); long long QMediaRecorder_Duration(const QMediaRecorder* self); bool QMediaRecorder_IsMuted(const QMediaRecorder* self); double QMediaRecorder_Volume(const QMediaRecorder* self); -struct miqt_array QMediaRecorder_SupportedContainers(const QMediaRecorder* self); +struct miqt_array /* of struct miqt_string */ QMediaRecorder_SupportedContainers(const QMediaRecorder* self); struct miqt_string QMediaRecorder_ContainerDescription(const QMediaRecorder* self, struct miqt_string format); -struct miqt_array QMediaRecorder_SupportedAudioCodecs(const QMediaRecorder* self); +struct miqt_array /* of struct miqt_string */ QMediaRecorder_SupportedAudioCodecs(const QMediaRecorder* self); struct miqt_string QMediaRecorder_AudioCodecDescription(const QMediaRecorder* self, struct miqt_string codecName); -struct miqt_array QMediaRecorder_SupportedAudioSampleRates(const QMediaRecorder* self); -struct miqt_array QMediaRecorder_SupportedVideoCodecs(const QMediaRecorder* self); +struct miqt_array /* of int */ QMediaRecorder_SupportedAudioSampleRates(const QMediaRecorder* self); +struct miqt_array /* of struct miqt_string */ QMediaRecorder_SupportedVideoCodecs(const QMediaRecorder* self); struct miqt_string QMediaRecorder_VideoCodecDescription(const QMediaRecorder* self, struct miqt_string codecName); -struct miqt_array QMediaRecorder_SupportedResolutions(const QMediaRecorder* self); -struct miqt_array QMediaRecorder_SupportedFrameRates(const QMediaRecorder* self); +struct miqt_array /* of QSize* */ QMediaRecorder_SupportedResolutions(const QMediaRecorder* self); +struct miqt_array /* of double */ QMediaRecorder_SupportedFrameRates(const QMediaRecorder* self); QAudioEncoderSettings* QMediaRecorder_AudioSettings(const QMediaRecorder* self); QVideoEncoderSettings* QMediaRecorder_VideoSettings(const QMediaRecorder* self); struct miqt_string QMediaRecorder_ContainerFormat(const QMediaRecorder* self); @@ -74,7 +75,7 @@ bool QMediaRecorder_IsMetaDataAvailable(const QMediaRecorder* self); bool QMediaRecorder_IsMetaDataWritable(const QMediaRecorder* self); QVariant* QMediaRecorder_MetaData(const QMediaRecorder* self, struct miqt_string key); void QMediaRecorder_SetMetaData(QMediaRecorder* self, struct miqt_string key, QVariant* value); -struct miqt_array QMediaRecorder_AvailableMetaData(const QMediaRecorder* self); +struct miqt_array /* of struct miqt_string */ QMediaRecorder_AvailableMetaData(const QMediaRecorder* self); void QMediaRecorder_Record(QMediaRecorder* self); void QMediaRecorder_Pause(QMediaRecorder* self); void QMediaRecorder_Stop(QMediaRecorder* self); @@ -110,12 +111,12 @@ struct miqt_string QMediaRecorder_Tr2(const char* s, const char* c); struct miqt_string QMediaRecorder_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaRecorder_TrUtf82(const char* s, const char* c); struct miqt_string QMediaRecorder_TrUtf83(const char* s, const char* c, int n); -struct miqt_array QMediaRecorder_SupportedAudioSampleRates1(const QMediaRecorder* self, QAudioEncoderSettings* settings); -struct miqt_array QMediaRecorder_SupportedAudioSampleRates2(const QMediaRecorder* self, QAudioEncoderSettings* settings, bool* continuous); -struct miqt_array QMediaRecorder_SupportedResolutions1(const QMediaRecorder* self, QVideoEncoderSettings* settings); -struct miqt_array QMediaRecorder_SupportedResolutions2(const QMediaRecorder* self, QVideoEncoderSettings* settings, bool* continuous); -struct miqt_array QMediaRecorder_SupportedFrameRates1(const QMediaRecorder* self, QVideoEncoderSettings* settings); -struct miqt_array QMediaRecorder_SupportedFrameRates2(const QMediaRecorder* self, QVideoEncoderSettings* settings, bool* continuous); +struct miqt_array /* of int */ QMediaRecorder_SupportedAudioSampleRates1(const QMediaRecorder* self, QAudioEncoderSettings* settings); +struct miqt_array /* of int */ QMediaRecorder_SupportedAudioSampleRates2(const QMediaRecorder* self, QAudioEncoderSettings* settings, bool* continuous); +struct miqt_array /* of QSize* */ QMediaRecorder_SupportedResolutions1(const QMediaRecorder* self, QVideoEncoderSettings* settings); +struct miqt_array /* of QSize* */ QMediaRecorder_SupportedResolutions2(const QMediaRecorder* self, QVideoEncoderSettings* settings, bool* continuous); +struct miqt_array /* of double */ QMediaRecorder_SupportedFrameRates1(const QMediaRecorder* self, QVideoEncoderSettings* settings); +struct miqt_array /* of double */ QMediaRecorder_SupportedFrameRates2(const QMediaRecorder* self, QVideoEncoderSettings* settings, bool* continuous); void QMediaRecorder_SetEncodingSettings2(QMediaRecorder* self, QAudioEncoderSettings* audioSettings, QVideoEncoderSettings* videoSettings); void QMediaRecorder_SetEncodingSettings3(QMediaRecorder* self, QAudioEncoderSettings* audioSettings, QVideoEncoderSettings* videoSettings, struct miqt_string containerMimeType); void QMediaRecorder_Delete(QMediaRecorder* self); diff --git a/qt/multimedia/gen_qmediarecordercontrol.h b/qt/multimedia/gen_qmediarecordercontrol.h index e9565c51..519e0faa 100644 --- a/qt/multimedia/gen_qmediarecordercontrol.h +++ b/qt/multimedia/gen_qmediarecordercontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIARECORDERCONTROL_H -#define GEN_QMEDIARECORDERCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIARECORDERCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIARECORDERCONTROL_H #include #include diff --git a/qt/multimedia/gen_qmediaresource.h b/qt/multimedia/gen_qmediaresource.h index 104289f1..b1cb9e39 100644 --- a/qt/multimedia/gen_qmediaresource.h +++ b/qt/multimedia/gen_qmediaresource.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIARESOURCE_H -#define GEN_QMEDIARESOURCE_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIARESOURCE_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIARESOURCE_H #include #include diff --git a/qt/multimedia/gen_qmediaservice.h b/qt/multimedia/gen_qmediaservice.h index a082c35a..1383e6ca 100644 --- a/qt/multimedia/gen_qmediaservice.h +++ b/qt/multimedia/gen_qmediaservice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIASERVICE_H -#define GEN_QMEDIASERVICE_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIASERVICE_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIASERVICE_H #include #include diff --git a/qt/multimedia/gen_qmediaserviceproviderplugin.cpp b/qt/multimedia/gen_qmediaserviceproviderplugin.cpp index f9c226be..253a366a 100644 --- a/qt/multimedia/gen_qmediaserviceproviderplugin.cpp +++ b/qt/multimedia/gen_qmediaserviceproviderplugin.cpp @@ -21,7 +21,7 @@ QMediaServiceProviderHint* QMediaServiceProviderHint_new() { return new QMediaServiceProviderHint(); } -QMediaServiceProviderHint* QMediaServiceProviderHint_new2(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs) { +QMediaServiceProviderHint* QMediaServiceProviderHint_new2(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs) { QString mimeType_QString = QString::fromUtf8(mimeType.data, mimeType.len); QStringList codecs_QList; codecs_QList.reserve(codecs.len); @@ -82,7 +82,7 @@ struct miqt_string QMediaServiceProviderHint_MimeType(const QMediaServiceProvide return _ms; } -struct miqt_array QMediaServiceProviderHint_Codecs(const QMediaServiceProviderHint* self) { +struct miqt_array /* of struct miqt_string */ QMediaServiceProviderHint_Codecs(const QMediaServiceProviderHint* self) { QStringList _ret = self->codecs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -142,7 +142,7 @@ void QMediaServiceProviderFactoryInterface_Delete(QMediaServiceProviderFactoryIn delete self; } -int QMediaServiceSupportedFormatsInterface_HasSupport(const QMediaServiceSupportedFormatsInterface* self, struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs) { +int QMediaServiceSupportedFormatsInterface_HasSupport(const QMediaServiceSupportedFormatsInterface* self, struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs) { QString mimeType_QString = QString::fromUtf8(mimeType.data, mimeType.len); QStringList codecs_QList; codecs_QList.reserve(codecs.len); @@ -155,7 +155,7 @@ int QMediaServiceSupportedFormatsInterface_HasSupport(const QMediaServiceSupport return static_cast(_ret); } -struct miqt_array QMediaServiceSupportedFormatsInterface_SupportedMimeTypes(const QMediaServiceSupportedFormatsInterface* self) { +struct miqt_array /* of struct miqt_string */ QMediaServiceSupportedFormatsInterface_SupportedMimeTypes(const QMediaServiceSupportedFormatsInterface* self) { QStringList _ret = self->supportedMimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -183,7 +183,7 @@ void QMediaServiceSupportedFormatsInterface_Delete(QMediaServiceSupportedFormats delete self; } -struct miqt_array QMediaServiceSupportedDevicesInterface_Devices(const QMediaServiceSupportedDevicesInterface* self, struct miqt_string service) { +struct miqt_array /* of struct miqt_string */ QMediaServiceSupportedDevicesInterface_Devices(const QMediaServiceSupportedDevicesInterface* self, struct miqt_string service) { QByteArray service_QByteArray(service.data, service.len); QList _ret = self->devices(service_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/multimedia/gen_qmediaserviceproviderplugin.h b/qt/multimedia/gen_qmediaserviceproviderplugin.h index 2cd7bbcb..2b6d2670 100644 --- a/qt/multimedia/gen_qmediaserviceproviderplugin.h +++ b/qt/multimedia/gen_qmediaserviceproviderplugin.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIASERVICEPROVIDERPLUGIN_H -#define GEN_QMEDIASERVICEPROVIDERPLUGIN_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIASERVICEPROVIDERPLUGIN_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIASERVICEPROVIDERPLUGIN_H #include #include @@ -40,7 +41,7 @@ typedef struct QMetaObject QMetaObject; #endif QMediaServiceProviderHint* QMediaServiceProviderHint_new(); -QMediaServiceProviderHint* QMediaServiceProviderHint_new2(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs); +QMediaServiceProviderHint* QMediaServiceProviderHint_new2(struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs); QMediaServiceProviderHint* QMediaServiceProviderHint_new3(struct miqt_string device); QMediaServiceProviderHint* QMediaServiceProviderHint_new4(int position); QMediaServiceProviderHint* QMediaServiceProviderHint_new5(int features); @@ -51,7 +52,7 @@ bool QMediaServiceProviderHint_OperatorNotEqual(const QMediaServiceProviderHint* bool QMediaServiceProviderHint_IsNull(const QMediaServiceProviderHint* self); int QMediaServiceProviderHint_Type(const QMediaServiceProviderHint* self); struct miqt_string QMediaServiceProviderHint_MimeType(const QMediaServiceProviderHint* self); -struct miqt_array QMediaServiceProviderHint_Codecs(const QMediaServiceProviderHint* self); +struct miqt_array /* of struct miqt_string */ QMediaServiceProviderHint_Codecs(const QMediaServiceProviderHint* self); struct miqt_string QMediaServiceProviderHint_Device(const QMediaServiceProviderHint* self); int QMediaServiceProviderHint_CameraPosition(const QMediaServiceProviderHint* self); int QMediaServiceProviderHint_Features(const QMediaServiceProviderHint* self); @@ -62,12 +63,12 @@ void QMediaServiceProviderFactoryInterface_Release(QMediaServiceProviderFactoryI void QMediaServiceProviderFactoryInterface_OperatorAssign(QMediaServiceProviderFactoryInterface* self, QMediaServiceProviderFactoryInterface* param1); void QMediaServiceProviderFactoryInterface_Delete(QMediaServiceProviderFactoryInterface* self); -int QMediaServiceSupportedFormatsInterface_HasSupport(const QMediaServiceSupportedFormatsInterface* self, struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs); -struct miqt_array QMediaServiceSupportedFormatsInterface_SupportedMimeTypes(const QMediaServiceSupportedFormatsInterface* self); +int QMediaServiceSupportedFormatsInterface_HasSupport(const QMediaServiceSupportedFormatsInterface* self, struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs); +struct miqt_array /* of struct miqt_string */ QMediaServiceSupportedFormatsInterface_SupportedMimeTypes(const QMediaServiceSupportedFormatsInterface* self); void QMediaServiceSupportedFormatsInterface_OperatorAssign(QMediaServiceSupportedFormatsInterface* self, QMediaServiceSupportedFormatsInterface* param1); void QMediaServiceSupportedFormatsInterface_Delete(QMediaServiceSupportedFormatsInterface* self); -struct miqt_array QMediaServiceSupportedDevicesInterface_Devices(const QMediaServiceSupportedDevicesInterface* self, struct miqt_string service); +struct miqt_array /* of struct miqt_string */ QMediaServiceSupportedDevicesInterface_Devices(const QMediaServiceSupportedDevicesInterface* self, struct miqt_string service); struct miqt_string QMediaServiceSupportedDevicesInterface_DeviceDescription(QMediaServiceSupportedDevicesInterface* self, struct miqt_string service, struct miqt_string device); void QMediaServiceSupportedDevicesInterface_OperatorAssign(QMediaServiceSupportedDevicesInterface* self, QMediaServiceSupportedDevicesInterface* param1); void QMediaServiceSupportedDevicesInterface_Delete(QMediaServiceSupportedDevicesInterface* self); diff --git a/qt/multimedia/gen_qmediastreamscontrol.h b/qt/multimedia/gen_qmediastreamscontrol.h index d9bf9625..5bdaff4c 100644 --- a/qt/multimedia/gen_qmediastreamscontrol.h +++ b/qt/multimedia/gen_qmediastreamscontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIASTREAMSCONTROL_H -#define GEN_QMEDIASTREAMSCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIASTREAMSCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIASTREAMSCONTROL_H #include #include diff --git a/qt/multimedia/gen_qmediatimerange.cpp b/qt/multimedia/gen_qmediatimerange.cpp index 5550c54a..495bcb56 100644 --- a/qt/multimedia/gen_qmediatimerange.cpp +++ b/qt/multimedia/gen_qmediatimerange.cpp @@ -85,7 +85,7 @@ long long QMediaTimeRange_LatestTime(const QMediaTimeRange* self) { return static_cast(_ret); } -struct miqt_array QMediaTimeRange_Intervals(const QMediaTimeRange* self) { +struct miqt_array /* of QMediaTimeInterval* */ QMediaTimeRange_Intervals(const QMediaTimeRange* self) { QList _ret = self->intervals(); // Convert QList<> from C++ memory to manually-managed C memory QMediaTimeInterval** _arr = static_cast(malloc(sizeof(QMediaTimeInterval*) * _ret.length())); diff --git a/qt/multimedia/gen_qmediatimerange.h b/qt/multimedia/gen_qmediatimerange.h index 54bd2296..0c710781 100644 --- a/qt/multimedia/gen_qmediatimerange.h +++ b/qt/multimedia/gen_qmediatimerange.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIATIMERANGE_H -#define GEN_QMEDIATIMERANGE_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIATIMERANGE_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIATIMERANGE_H #include #include @@ -41,7 +42,7 @@ void QMediaTimeRange_OperatorAssign(QMediaTimeRange* self, QMediaTimeRange* para void QMediaTimeRange_OperatorAssignWithQMediaTimeInterval(QMediaTimeRange* self, QMediaTimeInterval* param1); long long QMediaTimeRange_EarliestTime(const QMediaTimeRange* self); long long QMediaTimeRange_LatestTime(const QMediaTimeRange* self); -struct miqt_array QMediaTimeRange_Intervals(const QMediaTimeRange* self); +struct miqt_array /* of QMediaTimeInterval* */ QMediaTimeRange_Intervals(const QMediaTimeRange* self); bool QMediaTimeRange_IsEmpty(const QMediaTimeRange* self); bool QMediaTimeRange_IsContinuous(const QMediaTimeRange* self); bool QMediaTimeRange_Contains(const QMediaTimeRange* self, long long time); diff --git a/qt/multimedia/gen_qmediavideoprobecontrol.h b/qt/multimedia/gen_qmediavideoprobecontrol.h index 4f520273..f29084ee 100644 --- a/qt/multimedia/gen_qmediavideoprobecontrol.h +++ b/qt/multimedia/gen_qmediavideoprobecontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIAVIDEOPROBECONTROL_H -#define GEN_QMEDIAVIDEOPROBECONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIAVIDEOPROBECONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QMEDIAVIDEOPROBECONTROL_H #include #include diff --git a/qt/multimedia/gen_qmetadatareadercontrol.cpp b/qt/multimedia/gen_qmetadatareadercontrol.cpp index b33fc095..06b88e3e 100644 --- a/qt/multimedia/gen_qmetadatareadercontrol.cpp +++ b/qt/multimedia/gen_qmetadatareadercontrol.cpp @@ -48,7 +48,7 @@ QVariant* QMetaDataReaderControl_MetaData(const QMetaDataReaderControl* self, st return new QVariant(self->metaData(key_QString)); } -struct miqt_array QMetaDataReaderControl_AvailableMetaData(const QMetaDataReaderControl* self) { +struct miqt_array /* of struct miqt_string */ QMetaDataReaderControl_AvailableMetaData(const QMetaDataReaderControl* self) { QStringList _ret = self->availableMetaData(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/multimedia/gen_qmetadatareadercontrol.h b/qt/multimedia/gen_qmetadatareadercontrol.h index c296fbaa..e690c89d 100644 --- a/qt/multimedia/gen_qmetadatareadercontrol.h +++ b/qt/multimedia/gen_qmetadatareadercontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMETADATAREADERCONTROL_H -#define GEN_QMETADATAREADERCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMETADATAREADERCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QMETADATAREADERCONTROL_H #include #include @@ -29,7 +30,7 @@ struct miqt_string QMetaDataReaderControl_Tr(const char* s); struct miqt_string QMetaDataReaderControl_TrUtf8(const char* s); bool QMetaDataReaderControl_IsMetaDataAvailable(const QMetaDataReaderControl* self); QVariant* QMetaDataReaderControl_MetaData(const QMetaDataReaderControl* self, struct miqt_string key); -struct miqt_array QMetaDataReaderControl_AvailableMetaData(const QMetaDataReaderControl* self); +struct miqt_array /* of struct miqt_string */ QMetaDataReaderControl_AvailableMetaData(const QMetaDataReaderControl* self); void QMetaDataReaderControl_MetaDataChanged(QMetaDataReaderControl* self); void QMetaDataReaderControl_connect_MetaDataChanged(QMetaDataReaderControl* self, intptr_t slot); void QMetaDataReaderControl_MetaDataChanged2(QMetaDataReaderControl* self, struct miqt_string key, QVariant* value); diff --git a/qt/multimedia/gen_qmetadatawritercontrol.cpp b/qt/multimedia/gen_qmetadatawritercontrol.cpp index a6d9f7a0..72e06aad 100644 --- a/qt/multimedia/gen_qmetadatawritercontrol.cpp +++ b/qt/multimedia/gen_qmetadatawritercontrol.cpp @@ -57,7 +57,7 @@ void QMetaDataWriterControl_SetMetaData(QMetaDataWriterControl* self, struct miq self->setMetaData(key_QString, *value); } -struct miqt_array QMetaDataWriterControl_AvailableMetaData(const QMetaDataWriterControl* self) { +struct miqt_array /* of struct miqt_string */ QMetaDataWriterControl_AvailableMetaData(const QMetaDataWriterControl* self) { QStringList _ret = self->availableMetaData(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/multimedia/gen_qmetadatawritercontrol.h b/qt/multimedia/gen_qmetadatawritercontrol.h index 89001eae..cdbd0aef 100644 --- a/qt/multimedia/gen_qmetadatawritercontrol.h +++ b/qt/multimedia/gen_qmetadatawritercontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMETADATAWRITERCONTROL_H -#define GEN_QMETADATAWRITERCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMETADATAWRITERCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QMETADATAWRITERCONTROL_H #include #include @@ -31,7 +32,7 @@ bool QMetaDataWriterControl_IsWritable(const QMetaDataWriterControl* self); bool QMetaDataWriterControl_IsMetaDataAvailable(const QMetaDataWriterControl* self); QVariant* QMetaDataWriterControl_MetaData(const QMetaDataWriterControl* self, struct miqt_string key); void QMetaDataWriterControl_SetMetaData(QMetaDataWriterControl* self, struct miqt_string key, QVariant* value); -struct miqt_array QMetaDataWriterControl_AvailableMetaData(const QMetaDataWriterControl* self); +struct miqt_array /* of struct miqt_string */ QMetaDataWriterControl_AvailableMetaData(const QMetaDataWriterControl* self); void QMetaDataWriterControl_MetaDataChanged(QMetaDataWriterControl* self); void QMetaDataWriterControl_connect_MetaDataChanged(QMetaDataWriterControl* self, intptr_t slot); void QMetaDataWriterControl_MetaDataChanged2(QMetaDataWriterControl* self, struct miqt_string key, QVariant* value); diff --git a/qt/multimedia/gen_qmultimedia.h b/qt/multimedia/gen_qmultimedia.h index d07a1cd5..4859ddf3 100644 --- a/qt/multimedia/gen_qmultimedia.h +++ b/qt/multimedia/gen_qmultimedia.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMULTIMEDIA_H -#define GEN_QMULTIMEDIA_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QMULTIMEDIA_H +#define MIQT_QT_MULTIMEDIA_GEN_QMULTIMEDIA_H #include #include diff --git a/qt/multimedia/gen_qradiodata.h b/qt/multimedia/gen_qradiodata.h index e1ccd134..20419de1 100644 --- a/qt/multimedia/gen_qradiodata.h +++ b/qt/multimedia/gen_qradiodata.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRADIODATA_H -#define GEN_QRADIODATA_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QRADIODATA_H +#define MIQT_QT_MULTIMEDIA_GEN_QRADIODATA_H #include #include diff --git a/qt/multimedia/gen_qradiodatacontrol.h b/qt/multimedia/gen_qradiodatacontrol.h index 0dc9b838..50024dcf 100644 --- a/qt/multimedia/gen_qradiodatacontrol.h +++ b/qt/multimedia/gen_qradiodatacontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRADIODATACONTROL_H -#define GEN_QRADIODATACONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QRADIODATACONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QRADIODATACONTROL_H #include #include diff --git a/qt/multimedia/gen_qradiotuner.cpp b/qt/multimedia/gen_qradiotuner.cpp index 0a1c27d7..250c30f8 100644 --- a/qt/multimedia/gen_qradiotuner.cpp +++ b/qt/multimedia/gen_qradiotuner.cpp @@ -74,6 +74,20 @@ int QRadioTuner_FrequencyStep(const QRadioTuner* self, int band) { return self->frequencyStep(static_cast(band)); } +struct miqt_map /* tuple of int and int */ QRadioTuner_FrequencyRange(const QRadioTuner* self, int band) { + QPair _ret = self->frequencyRange(static_cast(band)); + // Convert QPair<> from C++ memory to manually-managed C memory + int* _first_arr = static_cast(malloc(sizeof(int))); + int* _second_arr = static_cast(malloc(sizeof(int))); + _first_arr[0] = _ret.first; + _second_arr[0] = _ret.second; + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + bool QRadioTuner_IsStereo(const QRadioTuner* self) { return self->isStereo(); } diff --git a/qt/multimedia/gen_qradiotuner.go b/qt/multimedia/gen_qradiotuner.go index edbf907a..d9af12b1 100644 --- a/qt/multimedia/gen_qradiotuner.go +++ b/qt/multimedia/gen_qradiotuner.go @@ -150,6 +150,23 @@ func (this *QRadioTuner) FrequencyStep(band QRadioTuner__Band) int { return (int)(C.QRadioTuner_FrequencyStep(this.h, (C.int)(band))) } +func (this *QRadioTuner) FrequencyRange(band QRadioTuner__Band) struct { + First int + Second int +} { + var _mm C.struct_miqt_map = C.QRadioTuner_FrequencyRange(this.h, (C.int)(band)) + _First_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.values)) + _entry_First := (int)(_First_CArray[0]) + + _entry_Second := (int)(_Second_CArray[0]) + + return struct { + First int + Second int + }{First: _entry_First, Second: _entry_Second} +} + func (this *QRadioTuner) IsStereo() bool { return (bool)(C.QRadioTuner_IsStereo(this.h)) } diff --git a/qt/multimedia/gen_qradiotuner.h b/qt/multimedia/gen_qradiotuner.h index 1a21a57b..7296db29 100644 --- a/qt/multimedia/gen_qradiotuner.h +++ b/qt/multimedia/gen_qradiotuner.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRADIOTUNER_H -#define GEN_QRADIOTUNER_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QRADIOTUNER_H +#define MIQT_QT_MULTIMEDIA_GEN_QRADIOTUNER_H #include #include @@ -37,6 +38,7 @@ int QRadioTuner_Band(const QRadioTuner* self); bool QRadioTuner_IsBandSupported(const QRadioTuner* self, int b); int QRadioTuner_Frequency(const QRadioTuner* self); int QRadioTuner_FrequencyStep(const QRadioTuner* self, int band); +struct miqt_map /* tuple of int and int */ QRadioTuner_FrequencyRange(const QRadioTuner* self, int band); bool QRadioTuner_IsStereo(const QRadioTuner* self); void QRadioTuner_SetStereoMode(QRadioTuner* self, int mode); int QRadioTuner_StereoMode(const QRadioTuner* self); diff --git a/qt/multimedia/gen_qradiotunercontrol.cpp b/qt/multimedia/gen_qradiotunercontrol.cpp index daa610b6..6638a3cd 100644 --- a/qt/multimedia/gen_qradiotunercontrol.cpp +++ b/qt/multimedia/gen_qradiotunercontrol.cpp @@ -63,6 +63,20 @@ int QRadioTunerControl_FrequencyStep(const QRadioTunerControl* self, int b) { return self->frequencyStep(static_cast(b)); } +struct miqt_map /* tuple of int and int */ QRadioTunerControl_FrequencyRange(const QRadioTunerControl* self, int b) { + QPair _ret = self->frequencyRange(static_cast(b)); + // Convert QPair<> from C++ memory to manually-managed C memory + int* _first_arr = static_cast(malloc(sizeof(int))); + int* _second_arr = static_cast(malloc(sizeof(int))); + _first_arr[0] = _ret.first; + _second_arr[0] = _ret.second; + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + void QRadioTunerControl_SetFrequency(QRadioTunerControl* self, int frequency) { self->setFrequency(static_cast(frequency)); } diff --git a/qt/multimedia/gen_qradiotunercontrol.go b/qt/multimedia/gen_qradiotunercontrol.go index 470fae74..0ec74df2 100644 --- a/qt/multimedia/gen_qradiotunercontrol.go +++ b/qt/multimedia/gen_qradiotunercontrol.go @@ -97,6 +97,23 @@ func (this *QRadioTunerControl) FrequencyStep(b QRadioTuner__Band) int { return (int)(C.QRadioTunerControl_FrequencyStep(this.h, (C.int)(b))) } +func (this *QRadioTunerControl) FrequencyRange(b QRadioTuner__Band) struct { + First int + Second int +} { + var _mm C.struct_miqt_map = C.QRadioTunerControl_FrequencyRange(this.h, (C.int)(b)) + _First_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.values)) + _entry_First := (int)(_First_CArray[0]) + + _entry_Second := (int)(_Second_CArray[0]) + + return struct { + First int + Second int + }{First: _entry_First, Second: _entry_Second} +} + func (this *QRadioTunerControl) SetFrequency(frequency int) { C.QRadioTunerControl_SetFrequency(this.h, (C.int)(frequency)) } diff --git a/qt/multimedia/gen_qradiotunercontrol.h b/qt/multimedia/gen_qradiotunercontrol.h index 56e67196..a23afd1d 100644 --- a/qt/multimedia/gen_qradiotunercontrol.h +++ b/qt/multimedia/gen_qradiotunercontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRADIOTUNERCONTROL_H -#define GEN_QRADIOTUNERCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QRADIOTUNERCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QRADIOTUNERCONTROL_H #include #include @@ -31,6 +32,7 @@ void QRadioTunerControl_SetBand(QRadioTunerControl* self, int b); bool QRadioTunerControl_IsBandSupported(const QRadioTunerControl* self, int b); int QRadioTunerControl_Frequency(const QRadioTunerControl* self); int QRadioTunerControl_FrequencyStep(const QRadioTunerControl* self, int b); +struct miqt_map /* tuple of int and int */ QRadioTunerControl_FrequencyRange(const QRadioTunerControl* self, int b); void QRadioTunerControl_SetFrequency(QRadioTunerControl* self, int frequency); bool QRadioTunerControl_IsStereo(const QRadioTunerControl* self); int QRadioTunerControl_StereoMode(const QRadioTunerControl* self); diff --git a/qt/multimedia/gen_qsound.h b/qt/multimedia/gen_qsound.h index 20017fd5..18f13c53 100644 --- a/qt/multimedia/gen_qsound.h +++ b/qt/multimedia/gen_qsound.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSOUND_H -#define GEN_QSOUND_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QSOUND_H +#define MIQT_QT_MULTIMEDIA_GEN_QSOUND_H #include #include diff --git a/qt/multimedia/gen_qsoundeffect.cpp b/qt/multimedia/gen_qsoundeffect.cpp index 955e793a..1860dced 100644 --- a/qt/multimedia/gen_qsoundeffect.cpp +++ b/qt/multimedia/gen_qsoundeffect.cpp @@ -57,7 +57,7 @@ struct miqt_string QSoundEffect_TrUtf8(const char* s) { return _ms; } -struct miqt_array QSoundEffect_SupportedMimeTypes() { +struct miqt_array /* of struct miqt_string */ QSoundEffect_SupportedMimeTypes() { QStringList _ret = QSoundEffect::supportedMimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/multimedia/gen_qsoundeffect.h b/qt/multimedia/gen_qsoundeffect.h index 1fbb437f..686d1041 100644 --- a/qt/multimedia/gen_qsoundeffect.h +++ b/qt/multimedia/gen_qsoundeffect.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSOUNDEFFECT_H -#define GEN_QSOUNDEFFECT_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QSOUNDEFFECT_H +#define MIQT_QT_MULTIMEDIA_GEN_QSOUNDEFFECT_H #include #include @@ -35,7 +36,7 @@ QMetaObject* QSoundEffect_MetaObject(const QSoundEffect* self); void* QSoundEffect_Metacast(QSoundEffect* self, const char* param1); struct miqt_string QSoundEffect_Tr(const char* s); struct miqt_string QSoundEffect_TrUtf8(const char* s); -struct miqt_array QSoundEffect_SupportedMimeTypes(); +struct miqt_array /* of struct miqt_string */ QSoundEffect_SupportedMimeTypes(); QUrl* QSoundEffect_Source(const QSoundEffect* self); void QSoundEffect_SetSource(QSoundEffect* self, QUrl* url); int QSoundEffect_LoopCount(const QSoundEffect* self); diff --git a/qt/multimedia/gen_qvideodeviceselectorcontrol.h b/qt/multimedia/gen_qvideodeviceselectorcontrol.h index 0390f5e7..cc979b40 100644 --- a/qt/multimedia/gen_qvideodeviceselectorcontrol.h +++ b/qt/multimedia/gen_qvideodeviceselectorcontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVIDEODEVICESELECTORCONTROL_H -#define GEN_QVIDEODEVICESELECTORCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QVIDEODEVICESELECTORCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QVIDEODEVICESELECTORCONTROL_H #include #include diff --git a/qt/multimedia/gen_qvideoencodersettingscontrol.cpp b/qt/multimedia/gen_qvideoencodersettingscontrol.cpp index 004061c6..e83bc44a 100644 --- a/qt/multimedia/gen_qvideoencodersettingscontrol.cpp +++ b/qt/multimedia/gen_qvideoencodersettingscontrol.cpp @@ -40,7 +40,7 @@ struct miqt_string QVideoEncoderSettingsControl_TrUtf8(const char* s) { return _ms; } -struct miqt_array QVideoEncoderSettingsControl_SupportedResolutions(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings) { +struct miqt_array /* of QSize* */ QVideoEncoderSettingsControl_SupportedResolutions(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings) { QList _ret = self->supportedResolutions(*settings); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -53,7 +53,7 @@ struct miqt_array QVideoEncoderSettingsControl_SupportedResolutions(const QVideo return _out; } -struct miqt_array QVideoEncoderSettingsControl_SupportedFrameRates(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings) { +struct miqt_array /* of double */ QVideoEncoderSettingsControl_SupportedFrameRates(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings) { QList _ret = self->supportedFrameRates(*settings); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); @@ -66,7 +66,7 @@ struct miqt_array QVideoEncoderSettingsControl_SupportedFrameRates(const QVideoE return _out; } -struct miqt_array QVideoEncoderSettingsControl_SupportedVideoCodecs(const QVideoEncoderSettingsControl* self) { +struct miqt_array /* of struct miqt_string */ QVideoEncoderSettingsControl_SupportedVideoCodecs(const QVideoEncoderSettingsControl* self) { QStringList _ret = self->supportedVideoCodecs(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -150,7 +150,7 @@ struct miqt_string QVideoEncoderSettingsControl_TrUtf83(const char* s, const cha return _ms; } -struct miqt_array QVideoEncoderSettingsControl_SupportedResolutions2(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings, bool* continuous) { +struct miqt_array /* of QSize* */ QVideoEncoderSettingsControl_SupportedResolutions2(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings, bool* continuous) { QList _ret = self->supportedResolutions(*settings, continuous); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -163,7 +163,7 @@ struct miqt_array QVideoEncoderSettingsControl_SupportedResolutions2(const QVide return _out; } -struct miqt_array QVideoEncoderSettingsControl_SupportedFrameRates2(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings, bool* continuous) { +struct miqt_array /* of double */ QVideoEncoderSettingsControl_SupportedFrameRates2(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings, bool* continuous) { QList _ret = self->supportedFrameRates(*settings, continuous); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); diff --git a/qt/multimedia/gen_qvideoencodersettingscontrol.h b/qt/multimedia/gen_qvideoencodersettingscontrol.h index e11613cf..4edcfcce 100644 --- a/qt/multimedia/gen_qvideoencodersettingscontrol.h +++ b/qt/multimedia/gen_qvideoencodersettingscontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVIDEOENCODERSETTINGSCONTROL_H -#define GEN_QVIDEOENCODERSETTINGSCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QVIDEOENCODERSETTINGSCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QVIDEOENCODERSETTINGSCONTROL_H #include #include @@ -29,9 +30,9 @@ QMetaObject* QVideoEncoderSettingsControl_MetaObject(const QVideoEncoderSettings void* QVideoEncoderSettingsControl_Metacast(QVideoEncoderSettingsControl* self, const char* param1); struct miqt_string QVideoEncoderSettingsControl_Tr(const char* s); struct miqt_string QVideoEncoderSettingsControl_TrUtf8(const char* s); -struct miqt_array QVideoEncoderSettingsControl_SupportedResolutions(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings); -struct miqt_array QVideoEncoderSettingsControl_SupportedFrameRates(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings); -struct miqt_array QVideoEncoderSettingsControl_SupportedVideoCodecs(const QVideoEncoderSettingsControl* self); +struct miqt_array /* of QSize* */ QVideoEncoderSettingsControl_SupportedResolutions(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings); +struct miqt_array /* of double */ QVideoEncoderSettingsControl_SupportedFrameRates(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings); +struct miqt_array /* of struct miqt_string */ QVideoEncoderSettingsControl_SupportedVideoCodecs(const QVideoEncoderSettingsControl* self); struct miqt_string QVideoEncoderSettingsControl_VideoCodecDescription(const QVideoEncoderSettingsControl* self, struct miqt_string codec); QVideoEncoderSettings* QVideoEncoderSettingsControl_VideoSettings(const QVideoEncoderSettingsControl* self); void QVideoEncoderSettingsControl_SetVideoSettings(QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings); @@ -39,8 +40,8 @@ struct miqt_string QVideoEncoderSettingsControl_Tr2(const char* s, const char* c struct miqt_string QVideoEncoderSettingsControl_Tr3(const char* s, const char* c, int n); struct miqt_string QVideoEncoderSettingsControl_TrUtf82(const char* s, const char* c); struct miqt_string QVideoEncoderSettingsControl_TrUtf83(const char* s, const char* c, int n); -struct miqt_array QVideoEncoderSettingsControl_SupportedResolutions2(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings, bool* continuous); -struct miqt_array QVideoEncoderSettingsControl_SupportedFrameRates2(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings, bool* continuous); +struct miqt_array /* of QSize* */ QVideoEncoderSettingsControl_SupportedResolutions2(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings, bool* continuous); +struct miqt_array /* of double */ QVideoEncoderSettingsControl_SupportedFrameRates2(const QVideoEncoderSettingsControl* self, QVideoEncoderSettings* settings, bool* continuous); void QVideoEncoderSettingsControl_Delete(QVideoEncoderSettingsControl* self); #ifdef __cplusplus diff --git a/qt/multimedia/gen_qvideoframe.cpp b/qt/multimedia/gen_qvideoframe.cpp index dffa728d..8d5ec1f5 100644 --- a/qt/multimedia/gen_qvideoframe.cpp +++ b/qt/multimedia/gen_qvideoframe.cpp @@ -156,7 +156,7 @@ void QVideoFrame_SetEndTime(QVideoFrame* self, long long time) { self->setEndTime(static_cast(time)); } -struct miqt_map QVideoFrame_AvailableMetaData(const QVideoFrame* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QVideoFrame_AvailableMetaData(const QVideoFrame* self) { QVariantMap _ret = self->availableMetaData(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); diff --git a/qt/multimedia/gen_qvideoframe.go b/qt/multimedia/gen_qvideoframe.go index 122b8e5a..ba45e795 100644 --- a/qt/multimedia/gen_qvideoframe.go +++ b/qt/multimedia/gen_qvideoframe.go @@ -198,19 +198,19 @@ func (this *QVideoFrame) BytesPerLineWithPlane(plane int) int { } func (this *QVideoFrame) Bits() *byte { - return (*byte)(C.QVideoFrame_Bits(this.h)) + return (*byte)(unsafe.Pointer(C.QVideoFrame_Bits(this.h))) } func (this *QVideoFrame) BitsWithPlane(plane int) *byte { - return (*byte)(C.QVideoFrame_BitsWithPlane(this.h, (C.int)(plane))) + return (*byte)(unsafe.Pointer(C.QVideoFrame_BitsWithPlane(this.h, (C.int)(plane)))) } func (this *QVideoFrame) Bits2() *byte { - return (*byte)(C.QVideoFrame_Bits2(this.h)) + return (*byte)(unsafe.Pointer(C.QVideoFrame_Bits2(this.h))) } func (this *QVideoFrame) Bits3(plane int) *byte { - return (*byte)(C.QVideoFrame_Bits3(this.h, (C.int)(plane))) + return (*byte)(unsafe.Pointer(C.QVideoFrame_Bits3(this.h, (C.int)(plane)))) } func (this *QVideoFrame) MappedBytes() int { diff --git a/qt/multimedia/gen_qvideoframe.h b/qt/multimedia/gen_qvideoframe.h index 640d9e09..0e4ff924 100644 --- a/qt/multimedia/gen_qvideoframe.h +++ b/qt/multimedia/gen_qvideoframe.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVIDEOFRAME_H -#define GEN_QVIDEOFRAME_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QVIDEOFRAME_H +#define MIQT_QT_MULTIMEDIA_GEN_QVIDEOFRAME_H #include #include @@ -59,7 +60,7 @@ long long QVideoFrame_StartTime(const QVideoFrame* self); void QVideoFrame_SetStartTime(QVideoFrame* self, long long time); long long QVideoFrame_EndTime(const QVideoFrame* self); void QVideoFrame_SetEndTime(QVideoFrame* self, long long time); -struct miqt_map QVideoFrame_AvailableMetaData(const QVideoFrame* self); +struct miqt_map /* of struct miqt_string to QVariant* */ QVideoFrame_AvailableMetaData(const QVideoFrame* self); QVariant* QVideoFrame_MetaData(const QVideoFrame* self, struct miqt_string key); void QVideoFrame_SetMetaData(QVideoFrame* self, struct miqt_string key, QVariant* value); QImage* QVideoFrame_Image(const QVideoFrame* self); diff --git a/qt/multimedia/gen_qvideoprobe.h b/qt/multimedia/gen_qvideoprobe.h index 8ef5511e..cbef9f57 100644 --- a/qt/multimedia/gen_qvideoprobe.h +++ b/qt/multimedia/gen_qvideoprobe.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVIDEOPROBE_H -#define GEN_QVIDEOPROBE_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QVIDEOPROBE_H +#define MIQT_QT_MULTIMEDIA_GEN_QVIDEOPROBE_H #include #include diff --git a/qt/multimedia/gen_qvideorenderercontrol.h b/qt/multimedia/gen_qvideorenderercontrol.h index 25cc7955..0f454e98 100644 --- a/qt/multimedia/gen_qvideorenderercontrol.h +++ b/qt/multimedia/gen_qvideorenderercontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVIDEORENDERERCONTROL_H -#define GEN_QVIDEORENDERERCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QVIDEORENDERERCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QVIDEORENDERERCONTROL_H #include #include diff --git a/qt/multimedia/gen_qvideosurfaceformat.cpp b/qt/multimedia/gen_qvideosurfaceformat.cpp index 20e615f6..dca4c276 100644 --- a/qt/multimedia/gen_qvideosurfaceformat.cpp +++ b/qt/multimedia/gen_qvideosurfaceformat.cpp @@ -129,7 +129,7 @@ QSize* QVideoSurfaceFormat_SizeHint(const QVideoSurfaceFormat* self) { return new QSize(self->sizeHint()); } -struct miqt_array QVideoSurfaceFormat_PropertyNames(const QVideoSurfaceFormat* self) { +struct miqt_array /* of struct miqt_string */ QVideoSurfaceFormat_PropertyNames(const QVideoSurfaceFormat* self) { QList _ret = self->propertyNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/multimedia/gen_qvideosurfaceformat.h b/qt/multimedia/gen_qvideosurfaceformat.h index aeb9e0d8..1ad50062 100644 --- a/qt/multimedia/gen_qvideosurfaceformat.h +++ b/qt/multimedia/gen_qvideosurfaceformat.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVIDEOSURFACEFORMAT_H -#define GEN_QVIDEOSURFACEFORMAT_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QVIDEOSURFACEFORMAT_H +#define MIQT_QT_MULTIMEDIA_GEN_QVIDEOSURFACEFORMAT_H #include #include @@ -56,7 +57,7 @@ void QVideoSurfaceFormat_SetYCbCrColorSpace(QVideoSurfaceFormat* self, int color bool QVideoSurfaceFormat_IsMirrored(const QVideoSurfaceFormat* self); void QVideoSurfaceFormat_SetMirrored(QVideoSurfaceFormat* self, bool mirrored); QSize* QVideoSurfaceFormat_SizeHint(const QVideoSurfaceFormat* self); -struct miqt_array QVideoSurfaceFormat_PropertyNames(const QVideoSurfaceFormat* self); +struct miqt_array /* of struct miqt_string */ QVideoSurfaceFormat_PropertyNames(const QVideoSurfaceFormat* self); QVariant* QVideoSurfaceFormat_Property(const QVideoSurfaceFormat* self, const char* name); void QVideoSurfaceFormat_SetProperty(QVideoSurfaceFormat* self, const char* name, QVariant* value); void QVideoSurfaceFormat_Delete(QVideoSurfaceFormat* self); diff --git a/qt/multimedia/gen_qvideowidget.h b/qt/multimedia/gen_qvideowidget.h index 48bf86ef..4b59461f 100644 --- a/qt/multimedia/gen_qvideowidget.h +++ b/qt/multimedia/gen_qvideowidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVIDEOWIDGET_H -#define GEN_QVIDEOWIDGET_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QVIDEOWIDGET_H +#define MIQT_QT_MULTIMEDIA_GEN_QVIDEOWIDGET_H #include #include diff --git a/qt/multimedia/gen_qvideowidgetcontrol.h b/qt/multimedia/gen_qvideowidgetcontrol.h index 7a03e7af..cce8eb71 100644 --- a/qt/multimedia/gen_qvideowidgetcontrol.h +++ b/qt/multimedia/gen_qvideowidgetcontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVIDEOWIDGETCONTROL_H -#define GEN_QVIDEOWIDGETCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QVIDEOWIDGETCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QVIDEOWIDGETCONTROL_H #include #include diff --git a/qt/multimedia/gen_qvideowindowcontrol.h b/qt/multimedia/gen_qvideowindowcontrol.h index 33352b0d..b4378b47 100644 --- a/qt/multimedia/gen_qvideowindowcontrol.h +++ b/qt/multimedia/gen_qvideowindowcontrol.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVIDEOWINDOWCONTROL_H -#define GEN_QVIDEOWINDOWCONTROL_H +#pragma once +#ifndef MIQT_QT_MULTIMEDIA_GEN_QVIDEOWINDOWCONTROL_H +#define MIQT_QT_MULTIMEDIA_GEN_QVIDEOWINDOWCONTROL_H #include #include diff --git a/qt/network/gen_qabstractnetworkcache.cpp b/qt/network/gen_qabstractnetworkcache.cpp index b204a8a3..80e58a83 100644 --- a/qt/network/gen_qabstractnetworkcache.cpp +++ b/qt/network/gen_qabstractnetworkcache.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -49,6 +50,56 @@ void QNetworkCacheMetaData_SetUrl(QNetworkCacheMetaData* self, QUrl* url) { self->setUrl(*url); } +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QNetworkCacheMetaData_RawHeaders(const QNetworkCacheMetaData* self) { + QNetworkCacheMetaData::RawHeaderList _ret = self->rawHeaders(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + struct miqt_string* _lv_first_arr = static_cast(malloc(sizeof(struct miqt_string))); + struct miqt_string* _lv_second_arr = static_cast(malloc(sizeof(struct miqt_string))); + QByteArray _lv_first_qb = _lv_ret.first; + struct miqt_string _lv_first_ms; + _lv_first_ms.len = _lv_first_qb.length(); + _lv_first_ms.data = static_cast(malloc(_lv_first_ms.len)); + memcpy(_lv_first_ms.data, _lv_first_qb.data(), _lv_first_ms.len); + _lv_first_arr[0] = _lv_first_ms; + QByteArray _lv_second_qb = _lv_ret.second; + struct miqt_string _lv_second_ms; + _lv_second_ms.len = _lv_second_qb.length(); + _lv_second_ms.data = static_cast(malloc(_lv_second_ms.len)); + memcpy(_lv_second_ms.data, _lv_second_qb.data(), _lv_second_ms.len); + _lv_second_arr[0] = _lv_second_ms; + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + +void QNetworkCacheMetaData_SetRawHeaders(QNetworkCacheMetaData* self, struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ headers) { + QNetworkCacheMetaData::RawHeaderList headers_QList; + headers_QList.reserve(headers.len); + struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ * headers_arr = static_cast(headers.data); + for(size_t i = 0; i < headers.len; ++i) { + QPair headers_arr_i_QPair; + struct miqt_string* headers_arr_i_first_arr = static_cast(headers_arr[i].keys); + struct miqt_string* headers_arr_i_second_arr = static_cast(headers_arr[i].values); + QByteArray headers_arr_i_first_arr_0_QByteArray(headers_arr_i_first_arr[0].data, headers_arr_i_first_arr[0].len); + QByteArray headers_arr_i_second_arr_0_QByteArray(headers_arr_i_second_arr[0].data, headers_arr_i_second_arr[0].len); + headers_arr_i_QPair.first = headers_arr_i_first_arr_0_QByteArray; + headers_arr_i_QPair.second = headers_arr_i_second_arr_0_QByteArray; + headers_QList.push_back(headers_arr_i_QPair); + } + self->setRawHeaders(headers_QList); +} + QDateTime* QNetworkCacheMetaData_LastModified(const QNetworkCacheMetaData* self) { return new QDateTime(self->lastModified()); } @@ -73,7 +124,7 @@ void QNetworkCacheMetaData_SetSaveToDisk(QNetworkCacheMetaData* self, bool allow self->setSaveToDisk(allow); } -struct miqt_map QNetworkCacheMetaData_Attributes(const QNetworkCacheMetaData* self) { +struct miqt_map /* of int to QVariant* */ QNetworkCacheMetaData_Attributes(const QNetworkCacheMetaData* self) { QNetworkCacheMetaData::AttributesMap _ret = self->attributes(); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -92,7 +143,7 @@ struct miqt_map QNetworkCacheMetaData_Attributes(const QNetworkCacheMetaData* se return _out; } -void QNetworkCacheMetaData_SetAttributes(QNetworkCacheMetaData* self, struct miqt_map attributes) { +void QNetworkCacheMetaData_SetAttributes(QNetworkCacheMetaData* self, struct miqt_map /* of int to QVariant* */ attributes) { QNetworkCacheMetaData::AttributesMap attributes_QMap; attributes_QMap.reserve(attributes.len); int* attributes_karr = static_cast(attributes.keys); diff --git a/qt/network/gen_qabstractnetworkcache.go b/qt/network/gen_qabstractnetworkcache.go index 663eceda..0480994f 100644 --- a/qt/network/gen_qabstractnetworkcache.go +++ b/qt/network/gen_qabstractnetworkcache.go @@ -86,6 +86,66 @@ func (this *QNetworkCacheMetaData) SetUrl(url *qt.QUrl) { C.QNetworkCacheMetaData_SetUrl(this.h, (*C.QUrl)(url.UnsafePointer())) } +func (this *QNetworkCacheMetaData) RawHeaders() []struct { + First []byte + Second []byte +} { + var _ma C.struct_miqt_array = C.QNetworkCacheMetaData_RawHeaders(this.h) + _ret := make([]struct { + First []byte + Second []byte + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.values)) + var _lv_first_bytearray C.struct_miqt_string = _lv_First_CArray[0] + _lv_first_ret := C.GoBytes(unsafe.Pointer(_lv_first_bytearray.data), C.int(int64(_lv_first_bytearray.len))) + C.free(unsafe.Pointer(_lv_first_bytearray.data)) + _lv_entry_First := _lv_first_ret + var _lv_second_bytearray C.struct_miqt_string = _lv_Second_CArray[0] + _lv_second_ret := C.GoBytes(unsafe.Pointer(_lv_second_bytearray.data), C.int(int64(_lv_second_bytearray.len))) + C.free(unsafe.Pointer(_lv_second_bytearray.data)) + _lv_entry_Second := _lv_second_ret + _ret[i] = struct { + First []byte + Second []byte + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + +func (this *QNetworkCacheMetaData) SetRawHeaders(headers []struct { + First []byte + Second []byte +}) { + headers_CArray := (*[0xffff]C.struct_miqt_map)(C.malloc(C.size_t(8 * len(headers)))) + defer C.free(unsafe.Pointer(headers_CArray)) + for i := range headers { + headers_i_First_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{}))))) + defer C.free(unsafe.Pointer(headers_i_First_CArray)) + headers_i_Second_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{}))))) + defer C.free(unsafe.Pointer(headers_i_Second_CArray)) + headers_i_First_alias := C.struct_miqt_string{} + headers_i_First_alias.data = (*C.char)(unsafe.Pointer(&headers[i].First[0])) + headers_i_First_alias.len = C.size_t(len(headers[i].First)) + headers_i_First_CArray[0] = headers_i_First_alias + headers_i_Second_alias := C.struct_miqt_string{} + headers_i_Second_alias.data = (*C.char)(unsafe.Pointer(&headers[i].Second[0])) + headers_i_Second_alias.len = C.size_t(len(headers[i].Second)) + headers_i_Second_CArray[0] = headers_i_Second_alias + headers_i_pair := C.struct_miqt_map{ + len: 1, + keys: unsafe.Pointer(headers_i_First_CArray), + values: unsafe.Pointer(headers_i_Second_CArray), + } + headers_CArray[i] = headers_i_pair + } + headers_ma := C.struct_miqt_array{len: C.size_t(len(headers)), data: unsafe.Pointer(headers_CArray)} + C.QNetworkCacheMetaData_SetRawHeaders(this.h, headers_ma) +} + func (this *QNetworkCacheMetaData) LastModified() *qt.QDateTime { _ret := C.QNetworkCacheMetaData_LastModified(this.h) _goptr := qt.UnsafeNewQDateTime(unsafe.Pointer(_ret)) diff --git a/qt/network/gen_qabstractnetworkcache.h b/qt/network/gen_qabstractnetworkcache.h index 47fc16b4..3ef18e95 100644 --- a/qt/network/gen_qabstractnetworkcache.h +++ b/qt/network/gen_qabstractnetworkcache.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTNETWORKCACHE_H -#define GEN_QABSTRACTNETWORKCACHE_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QABSTRACTNETWORKCACHE_H +#define MIQT_QT_NETWORK_GEN_QABSTRACTNETWORKCACHE_H #include #include @@ -40,14 +41,16 @@ bool QNetworkCacheMetaData_OperatorNotEqual(const QNetworkCacheMetaData* self, Q bool QNetworkCacheMetaData_IsValid(const QNetworkCacheMetaData* self); QUrl* QNetworkCacheMetaData_Url(const QNetworkCacheMetaData* self); void QNetworkCacheMetaData_SetUrl(QNetworkCacheMetaData* self, QUrl* url); +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QNetworkCacheMetaData_RawHeaders(const QNetworkCacheMetaData* self); +void QNetworkCacheMetaData_SetRawHeaders(QNetworkCacheMetaData* self, struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ headers); QDateTime* QNetworkCacheMetaData_LastModified(const QNetworkCacheMetaData* self); void QNetworkCacheMetaData_SetLastModified(QNetworkCacheMetaData* self, QDateTime* dateTime); QDateTime* QNetworkCacheMetaData_ExpirationDate(const QNetworkCacheMetaData* self); void QNetworkCacheMetaData_SetExpirationDate(QNetworkCacheMetaData* self, QDateTime* dateTime); bool QNetworkCacheMetaData_SaveToDisk(const QNetworkCacheMetaData* self); void QNetworkCacheMetaData_SetSaveToDisk(QNetworkCacheMetaData* self, bool allow); -struct miqt_map QNetworkCacheMetaData_Attributes(const QNetworkCacheMetaData* self); -void QNetworkCacheMetaData_SetAttributes(QNetworkCacheMetaData* self, struct miqt_map attributes); +struct miqt_map /* of int to QVariant* */ QNetworkCacheMetaData_Attributes(const QNetworkCacheMetaData* self); +void QNetworkCacheMetaData_SetAttributes(QNetworkCacheMetaData* self, struct miqt_map /* of int to QVariant* */ attributes); void QNetworkCacheMetaData_Delete(QNetworkCacheMetaData* self); QMetaObject* QAbstractNetworkCache_MetaObject(const QAbstractNetworkCache* self); diff --git a/qt/network/gen_qabstractsocket.h b/qt/network/gen_qabstractsocket.h index 15b83e2c..0be39193 100644 --- a/qt/network/gen_qabstractsocket.h +++ b/qt/network/gen_qabstractsocket.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTSOCKET_H -#define GEN_QABSTRACTSOCKET_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QABSTRACTSOCKET_H +#define MIQT_QT_NETWORK_GEN_QABSTRACTSOCKET_H #include #include diff --git a/qt/network/gen_qauthenticator.cpp b/qt/network/gen_qauthenticator.cpp index 5429269a..7561038f 100644 --- a/qt/network/gen_qauthenticator.cpp +++ b/qt/network/gen_qauthenticator.cpp @@ -81,7 +81,7 @@ QVariant* QAuthenticator_Option(const QAuthenticator* self, struct miqt_string o return new QVariant(self->option(opt_QString)); } -struct miqt_map QAuthenticator_Options(const QAuthenticator* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QAuthenticator_Options(const QAuthenticator* self) { QVariantHash _ret = self->options(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); diff --git a/qt/network/gen_qauthenticator.h b/qt/network/gen_qauthenticator.h index 6c9e012c..3fb382e2 100644 --- a/qt/network/gen_qauthenticator.h +++ b/qt/network/gen_qauthenticator.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUTHENTICATOR_H -#define GEN_QAUTHENTICATOR_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QAUTHENTICATOR_H +#define MIQT_QT_NETWORK_GEN_QAUTHENTICATOR_H #include #include @@ -33,7 +34,7 @@ void QAuthenticator_SetPassword(QAuthenticator* self, struct miqt_string passwor struct miqt_string QAuthenticator_Realm(const QAuthenticator* self); void QAuthenticator_SetRealm(QAuthenticator* self, struct miqt_string realm); QVariant* QAuthenticator_Option(const QAuthenticator* self, struct miqt_string opt); -struct miqt_map QAuthenticator_Options(const QAuthenticator* self); +struct miqt_map /* of struct miqt_string to QVariant* */ QAuthenticator_Options(const QAuthenticator* self); void QAuthenticator_SetOption(QAuthenticator* self, struct miqt_string opt, QVariant* value); bool QAuthenticator_IsNull(const QAuthenticator* self); void QAuthenticator_Detach(QAuthenticator* self); diff --git a/qt/network/gen_qdnslookup.cpp b/qt/network/gen_qdnslookup.cpp index fcab2926..7fc26fd5 100644 --- a/qt/network/gen_qdnslookup.cpp +++ b/qt/network/gen_qdnslookup.cpp @@ -249,7 +249,7 @@ unsigned int QDnsTextRecord_TimeToLive(const QDnsTextRecord* self) { return static_cast(_ret); } -struct miqt_array QDnsTextRecord_Values(const QDnsTextRecord* self) { +struct miqt_array /* of struct miqt_string */ QDnsTextRecord_Values(const QDnsTextRecord* self) { QList _ret = self->values(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -382,7 +382,7 @@ void QDnsLookup_SetNameserver(QDnsLookup* self, QHostAddress* nameserver) { self->setNameserver(*nameserver); } -struct miqt_array QDnsLookup_CanonicalNameRecords(const QDnsLookup* self) { +struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_CanonicalNameRecords(const QDnsLookup* self) { QList _ret = self->canonicalNameRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsDomainNameRecord** _arr = static_cast(malloc(sizeof(QDnsDomainNameRecord*) * _ret.length())); @@ -395,7 +395,7 @@ struct miqt_array QDnsLookup_CanonicalNameRecords(const QDnsLookup* self) { return _out; } -struct miqt_array QDnsLookup_HostAddressRecords(const QDnsLookup* self) { +struct miqt_array /* of QDnsHostAddressRecord* */ QDnsLookup_HostAddressRecords(const QDnsLookup* self) { QList _ret = self->hostAddressRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsHostAddressRecord** _arr = static_cast(malloc(sizeof(QDnsHostAddressRecord*) * _ret.length())); @@ -408,7 +408,7 @@ struct miqt_array QDnsLookup_HostAddressRecords(const QDnsLookup* self) { return _out; } -struct miqt_array QDnsLookup_MailExchangeRecords(const QDnsLookup* self) { +struct miqt_array /* of QDnsMailExchangeRecord* */ QDnsLookup_MailExchangeRecords(const QDnsLookup* self) { QList _ret = self->mailExchangeRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsMailExchangeRecord** _arr = static_cast(malloc(sizeof(QDnsMailExchangeRecord*) * _ret.length())); @@ -421,7 +421,7 @@ struct miqt_array QDnsLookup_MailExchangeRecords(const QDnsLookup* self) { return _out; } -struct miqt_array QDnsLookup_NameServerRecords(const QDnsLookup* self) { +struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_NameServerRecords(const QDnsLookup* self) { QList _ret = self->nameServerRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsDomainNameRecord** _arr = static_cast(malloc(sizeof(QDnsDomainNameRecord*) * _ret.length())); @@ -434,7 +434,7 @@ struct miqt_array QDnsLookup_NameServerRecords(const QDnsLookup* self) { return _out; } -struct miqt_array QDnsLookup_PointerRecords(const QDnsLookup* self) { +struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_PointerRecords(const QDnsLookup* self) { QList _ret = self->pointerRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsDomainNameRecord** _arr = static_cast(malloc(sizeof(QDnsDomainNameRecord*) * _ret.length())); @@ -447,7 +447,7 @@ struct miqt_array QDnsLookup_PointerRecords(const QDnsLookup* self) { return _out; } -struct miqt_array QDnsLookup_ServiceRecords(const QDnsLookup* self) { +struct miqt_array /* of QDnsServiceRecord* */ QDnsLookup_ServiceRecords(const QDnsLookup* self) { QList _ret = self->serviceRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsServiceRecord** _arr = static_cast(malloc(sizeof(QDnsServiceRecord*) * _ret.length())); @@ -460,7 +460,7 @@ struct miqt_array QDnsLookup_ServiceRecords(const QDnsLookup* self) { return _out; } -struct miqt_array QDnsLookup_TextRecords(const QDnsLookup* self) { +struct miqt_array /* of QDnsTextRecord* */ QDnsLookup_TextRecords(const QDnsLookup* self) { QList _ret = self->textRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsTextRecord** _arr = static_cast(malloc(sizeof(QDnsTextRecord*) * _ret.length())); diff --git a/qt/network/gen_qdnslookup.h b/qt/network/gen_qdnslookup.h index 59f3b588..f8174692 100644 --- a/qt/network/gen_qdnslookup.h +++ b/qt/network/gen_qdnslookup.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDNSLOOKUP_H -#define GEN_QDNSLOOKUP_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QDNSLOOKUP_H +#define MIQT_QT_NETWORK_GEN_QDNSLOOKUP_H #include #include @@ -83,7 +84,7 @@ void QDnsTextRecord_OperatorAssign(QDnsTextRecord* self, QDnsTextRecord* other); void QDnsTextRecord_Swap(QDnsTextRecord* self, QDnsTextRecord* other); struct miqt_string QDnsTextRecord_Name(const QDnsTextRecord* self); unsigned int QDnsTextRecord_TimeToLive(const QDnsTextRecord* self); -struct miqt_array QDnsTextRecord_Values(const QDnsTextRecord* self); +struct miqt_array /* of struct miqt_string */ QDnsTextRecord_Values(const QDnsTextRecord* self); void QDnsTextRecord_Delete(QDnsTextRecord* self); QDnsLookup* QDnsLookup_new(); @@ -105,13 +106,13 @@ int QDnsLookup_Type(const QDnsLookup* self); void QDnsLookup_SetType(QDnsLookup* self, int typeVal); QHostAddress* QDnsLookup_Nameserver(const QDnsLookup* self); void QDnsLookup_SetNameserver(QDnsLookup* self, QHostAddress* nameserver); -struct miqt_array QDnsLookup_CanonicalNameRecords(const QDnsLookup* self); -struct miqt_array QDnsLookup_HostAddressRecords(const QDnsLookup* self); -struct miqt_array QDnsLookup_MailExchangeRecords(const QDnsLookup* self); -struct miqt_array QDnsLookup_NameServerRecords(const QDnsLookup* self); -struct miqt_array QDnsLookup_PointerRecords(const QDnsLookup* self); -struct miqt_array QDnsLookup_ServiceRecords(const QDnsLookup* self); -struct miqt_array QDnsLookup_TextRecords(const QDnsLookup* self); +struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_CanonicalNameRecords(const QDnsLookup* self); +struct miqt_array /* of QDnsHostAddressRecord* */ QDnsLookup_HostAddressRecords(const QDnsLookup* self); +struct miqt_array /* of QDnsMailExchangeRecord* */ QDnsLookup_MailExchangeRecords(const QDnsLookup* self); +struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_NameServerRecords(const QDnsLookup* self); +struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_PointerRecords(const QDnsLookup* self); +struct miqt_array /* of QDnsServiceRecord* */ QDnsLookup_ServiceRecords(const QDnsLookup* self); +struct miqt_array /* of QDnsTextRecord* */ QDnsLookup_TextRecords(const QDnsLookup* self); void QDnsLookup_Abort(QDnsLookup* self); void QDnsLookup_Lookup(QDnsLookup* self); void QDnsLookup_Finished(QDnsLookup* self); diff --git a/qt/network/gen_qdtls.cpp b/qt/network/gen_qdtls.cpp index c276936d..541a3657 100644 --- a/qt/network/gen_qdtls.cpp +++ b/qt/network/gen_qdtls.cpp @@ -309,7 +309,7 @@ struct miqt_string QDtls_DtlsErrorString(const QDtls* self) { return _ms; } -struct miqt_array QDtls_PeerVerificationErrors(const QDtls* self) { +struct miqt_array /* of QSslError* */ QDtls_PeerVerificationErrors(const QDtls* self) { QVector _ret = self->peerVerificationErrors(); // Convert QList<> from C++ memory to manually-managed C memory QSslError** _arr = static_cast(malloc(sizeof(QSslError*) * _ret.length())); @@ -322,7 +322,7 @@ struct miqt_array QDtls_PeerVerificationErrors(const QDtls* self) { return _out; } -void QDtls_IgnoreVerificationErrors(QDtls* self, struct miqt_array /* of QSslError* */ errorsToIgnore) { +void QDtls_IgnoreVerificationErrors(QDtls* self, struct miqt_array /* of QSslError* */ errorsToIgnore) { QVector errorsToIgnore_QList; errorsToIgnore_QList.reserve(errorsToIgnore.len); QSslError** errorsToIgnore_arr = static_cast(errorsToIgnore.data); diff --git a/qt/network/gen_qdtls.h b/qt/network/gen_qdtls.h index 2a2ed9be..71e05879 100644 --- a/qt/network/gen_qdtls.h +++ b/qt/network/gen_qdtls.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDTLS_H -#define GEN_QDTLS_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QDTLS_H +#define MIQT_QT_NETWORK_GEN_QDTLS_H #include #include @@ -94,8 +95,8 @@ long long QDtls_WriteDatagramEncrypted(QDtls* self, QUdpSocket* socket, struct m struct miqt_string QDtls_DecryptDatagram(QDtls* self, QUdpSocket* socket, struct miqt_string dgram); unsigned char QDtls_DtlsError(const QDtls* self); struct miqt_string QDtls_DtlsErrorString(const QDtls* self); -struct miqt_array QDtls_PeerVerificationErrors(const QDtls* self); -void QDtls_IgnoreVerificationErrors(QDtls* self, struct miqt_array /* of QSslError* */ errorsToIgnore); +struct miqt_array /* of QSslError* */ QDtls_PeerVerificationErrors(const QDtls* self); +void QDtls_IgnoreVerificationErrors(QDtls* self, struct miqt_array /* of QSslError* */ errorsToIgnore); void QDtls_PskRequired(QDtls* self, QSslPreSharedKeyAuthenticator* authenticator); void QDtls_connect_PskRequired(QDtls* self, intptr_t slot); void QDtls_HandshakeTimeout(QDtls* self); diff --git a/qt/network/gen_qhostaddress.cpp b/qt/network/gen_qhostaddress.cpp index 396ba76b..9cd44f10 100644 --- a/qt/network/gen_qhostaddress.cpp +++ b/qt/network/gen_qhostaddress.cpp @@ -169,6 +169,15 @@ bool QHostAddress_IsInSubnet(const QHostAddress* self, QHostAddress* subnet, int return self->isInSubnet(*subnet, static_cast(netmask)); } +bool QHostAddress_IsInSubnetWithSubnet(const QHostAddress* self, struct miqt_map /* tuple of QHostAddress* and int */ subnet) { + QPair subnet_QPair; + QHostAddress** subnet_first_arr = static_cast(subnet.keys); + int* subnet_second_arr = static_cast(subnet.values); + subnet_QPair.first = *(subnet_first_arr[0]); + subnet_QPair.second = static_cast(subnet_second_arr[0]); + return self->isInSubnet(subnet_QPair); +} + bool QHostAddress_IsLoopback(const QHostAddress* self) { return self->isLoopback(); } @@ -197,6 +206,21 @@ bool QHostAddress_IsBroadcast(const QHostAddress* self) { return self->isBroadcast(); } +struct miqt_map /* tuple of QHostAddress* and int */ QHostAddress_ParseSubnet(struct miqt_string subnet) { + QString subnet_QString = QString::fromUtf8(subnet.data, subnet.len); + QPair _ret = QHostAddress::parseSubnet(subnet_QString); + // Convert QPair<> from C++ memory to manually-managed C memory + QHostAddress** _first_arr = static_cast(malloc(sizeof(QHostAddress*))); + int* _second_arr = static_cast(malloc(sizeof(int))); + _first_arr[0] = new QHostAddress(_ret.first); + _second_arr[0] = _ret.second; + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + bool QHostAddress_IsEqual2(const QHostAddress* self, QHostAddress* address, int mode) { return self->isEqual(*address, static_cast(mode)); } diff --git a/qt/network/gen_qhostaddress.go b/qt/network/gen_qhostaddress.go index 91425c57..1bbf3e7e 100644 --- a/qt/network/gen_qhostaddress.go +++ b/qt/network/gen_qhostaddress.go @@ -285,6 +285,24 @@ func (this *QHostAddress) IsInSubnet(subnet *QHostAddress, netmask int) bool { return (bool)(C.QHostAddress_IsInSubnet(this.h, subnet.cPointer(), (C.int)(netmask))) } +func (this *QHostAddress) IsInSubnetWithSubnet(subnet struct { + First QHostAddress + Second int +}) bool { + subnet_First_CArray := (*[0xffff]*C.QHostAddress)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(subnet_First_CArray)) + subnet_Second_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(subnet_Second_CArray)) + subnet_First_CArray[0] = subnet.First.cPointer() + subnet_Second_CArray[0] = (C.int)(subnet.Second) + subnet_pair := C.struct_miqt_map{ + len: 1, + keys: unsafe.Pointer(subnet_First_CArray), + values: unsafe.Pointer(subnet_Second_CArray), + } + return (bool)(C.QHostAddress_IsInSubnetWithSubnet(this.h, subnet_pair)) +} + func (this *QHostAddress) IsLoopback() bool { return (bool)(C.QHostAddress_IsLoopback(this.h)) } @@ -313,6 +331,30 @@ func (this *QHostAddress) IsBroadcast() bool { return (bool)(C.QHostAddress_IsBroadcast(this.h)) } +func QHostAddress_ParseSubnet(subnet string) struct { + First QHostAddress + Second int +} { + subnet_ms := C.struct_miqt_string{} + subnet_ms.data = C.CString(subnet) + subnet_ms.len = C.size_t(len(subnet)) + defer C.free(unsafe.Pointer(subnet_ms.data)) + var _mm C.struct_miqt_map = C.QHostAddress_ParseSubnet(subnet_ms) + _First_CArray := (*[0xffff]*C.QHostAddress)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.values)) + _first_ret := _First_CArray[0] + _first_goptr := newQHostAddress(_first_ret) + _first_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _entry_First := *_first_goptr + + _entry_Second := (int)(_Second_CArray[0]) + + return struct { + First QHostAddress + Second int + }{First: _entry_First, Second: _entry_Second} +} + func (this *QHostAddress) IsEqual2(address *QHostAddress, mode QHostAddress__ConversionModeFlag) bool { return (bool)(C.QHostAddress_IsEqual2(this.h, address.cPointer(), (C.int)(mode))) } diff --git a/qt/network/gen_qhostaddress.h b/qt/network/gen_qhostaddress.h index 8597a829..fd8f31e7 100644 --- a/qt/network/gen_qhostaddress.h +++ b/qt/network/gen_qhostaddress.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHOSTADDRESS_H -#define GEN_QHOSTADDRESS_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QHOSTADDRESS_H +#define MIQT_QT_NETWORK_GEN_QHOSTADDRESS_H #include #include @@ -57,6 +58,7 @@ bool QHostAddress_OperatorNotEqualWithAddress(const QHostAddress* self, int addr bool QHostAddress_IsNull(const QHostAddress* self); void QHostAddress_Clear(QHostAddress* self); bool QHostAddress_IsInSubnet(const QHostAddress* self, QHostAddress* subnet, int netmask); +bool QHostAddress_IsInSubnetWithSubnet(const QHostAddress* self, struct miqt_map /* tuple of QHostAddress* and int */ subnet); bool QHostAddress_IsLoopback(const QHostAddress* self); bool QHostAddress_IsGlobal(const QHostAddress* self); bool QHostAddress_IsLinkLocal(const QHostAddress* self); @@ -64,6 +66,7 @@ bool QHostAddress_IsSiteLocal(const QHostAddress* self); bool QHostAddress_IsUniqueLocalUnicast(const QHostAddress* self); bool QHostAddress_IsMulticast(const QHostAddress* self); bool QHostAddress_IsBroadcast(const QHostAddress* self); +struct miqt_map /* tuple of QHostAddress* and int */ QHostAddress_ParseSubnet(struct miqt_string subnet); bool QHostAddress_IsEqual2(const QHostAddress* self, QHostAddress* address, int mode); void QHostAddress_Delete(QHostAddress* self); diff --git a/qt/network/gen_qhostinfo.cpp b/qt/network/gen_qhostinfo.cpp index 7b5a390c..428a71ba 100644 --- a/qt/network/gen_qhostinfo.cpp +++ b/qt/network/gen_qhostinfo.cpp @@ -44,7 +44,7 @@ void QHostInfo_SetHostName(QHostInfo* self, struct miqt_string name) { self->setHostName(name_QString); } -struct miqt_array QHostInfo_Addresses(const QHostInfo* self) { +struct miqt_array /* of QHostAddress* */ QHostInfo_Addresses(const QHostInfo* self) { QList _ret = self->addresses(); // Convert QList<> from C++ memory to manually-managed C memory QHostAddress** _arr = static_cast(malloc(sizeof(QHostAddress*) * _ret.length())); @@ -57,7 +57,7 @@ struct miqt_array QHostInfo_Addresses(const QHostInfo* self) { return _out; } -void QHostInfo_SetAddresses(QHostInfo* self, struct miqt_array /* of QHostAddress* */ addresses) { +void QHostInfo_SetAddresses(QHostInfo* self, struct miqt_array /* of QHostAddress* */ addresses) { QList addresses_QList; addresses_QList.reserve(addresses.len); QHostAddress** addresses_arr = static_cast(addresses.data); diff --git a/qt/network/gen_qhostinfo.h b/qt/network/gen_qhostinfo.h index 48de0784..7a141104 100644 --- a/qt/network/gen_qhostinfo.h +++ b/qt/network/gen_qhostinfo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHOSTINFO_H -#define GEN_QHOSTINFO_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QHOSTINFO_H +#define MIQT_QT_NETWORK_GEN_QHOSTINFO_H #include #include @@ -28,8 +29,8 @@ void QHostInfo_OperatorAssign(QHostInfo* self, QHostInfo* d); void QHostInfo_Swap(QHostInfo* self, QHostInfo* other); struct miqt_string QHostInfo_HostName(const QHostInfo* self); void QHostInfo_SetHostName(QHostInfo* self, struct miqt_string name); -struct miqt_array QHostInfo_Addresses(const QHostInfo* self); -void QHostInfo_SetAddresses(QHostInfo* self, struct miqt_array /* of QHostAddress* */ addresses); +struct miqt_array /* of QHostAddress* */ QHostInfo_Addresses(const QHostInfo* self); +void QHostInfo_SetAddresses(QHostInfo* self, struct miqt_array /* of QHostAddress* */ addresses); int QHostInfo_Error(const QHostInfo* self); void QHostInfo_SetError(QHostInfo* self, int error); struct miqt_string QHostInfo_ErrorString(const QHostInfo* self); diff --git a/qt/network/gen_qhstspolicy.h b/qt/network/gen_qhstspolicy.h index afa0a611..3de04e38 100644 --- a/qt/network/gen_qhstspolicy.h +++ b/qt/network/gen_qhstspolicy.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHSTSPOLICY_H -#define GEN_QHSTSPOLICY_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QHSTSPOLICY_H +#define MIQT_QT_NETWORK_GEN_QHSTSPOLICY_H #include #include diff --git a/qt/network/gen_qhttp2configuration.h b/qt/network/gen_qhttp2configuration.h index 47253732..0897d4fc 100644 --- a/qt/network/gen_qhttp2configuration.h +++ b/qt/network/gen_qhttp2configuration.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHTTP2CONFIGURATION_H -#define GEN_QHTTP2CONFIGURATION_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QHTTP2CONFIGURATION_H +#define MIQT_QT_NETWORK_GEN_QHTTP2CONFIGURATION_H #include #include diff --git a/qt/network/gen_qhttpmultipart.h b/qt/network/gen_qhttpmultipart.h index 7ec854d5..394049e2 100644 --- a/qt/network/gen_qhttpmultipart.h +++ b/qt/network/gen_qhttpmultipart.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHTTPMULTIPART_H -#define GEN_QHTTPMULTIPART_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QHTTPMULTIPART_H +#define MIQT_QT_NETWORK_GEN_QHTTPMULTIPART_H #include #include diff --git a/qt/network/gen_qlocalserver.h b/qt/network/gen_qlocalserver.h index 27aabe2b..f4b480ca 100644 --- a/qt/network/gen_qlocalserver.h +++ b/qt/network/gen_qlocalserver.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLOCALSERVER_H -#define GEN_QLOCALSERVER_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QLOCALSERVER_H +#define MIQT_QT_NETWORK_GEN_QLOCALSERVER_H #include #include diff --git a/qt/network/gen_qlocalsocket.h b/qt/network/gen_qlocalsocket.h index 0dda08a0..9403123b 100644 --- a/qt/network/gen_qlocalsocket.h +++ b/qt/network/gen_qlocalsocket.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLOCALSOCKET_H -#define GEN_QLOCALSOCKET_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QLOCALSOCKET_H +#define MIQT_QT_NETWORK_GEN_QLOCALSOCKET_H #include #include diff --git a/qt/network/gen_qnetworkaccessmanager.cpp b/qt/network/gen_qnetworkaccessmanager.cpp index 400598d8..b363bfd1 100644 --- a/qt/network/gen_qnetworkaccessmanager.cpp +++ b/qt/network/gen_qnetworkaccessmanager.cpp @@ -62,7 +62,7 @@ struct miqt_string QNetworkAccessManager_TrUtf8(const char* s) { return _ms; } -struct miqt_array QNetworkAccessManager_SupportedSchemes(const QNetworkAccessManager* self) { +struct miqt_array /* of struct miqt_string */ QNetworkAccessManager_SupportedSchemes(const QNetworkAccessManager* self) { QStringList _ret = self->supportedSchemes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -138,7 +138,7 @@ bool QNetworkAccessManager_IsStrictTransportSecurityStoreEnabled(const QNetworkA return self->isStrictTransportSecurityStoreEnabled(); } -void QNetworkAccessManager_AddStrictTransportSecurityHosts(QNetworkAccessManager* self, struct miqt_array /* of QHstsPolicy* */ knownHosts) { +void QNetworkAccessManager_AddStrictTransportSecurityHosts(QNetworkAccessManager* self, struct miqt_array /* of QHstsPolicy* */ knownHosts) { QVector knownHosts_QList; knownHosts_QList.reserve(knownHosts.len); QHstsPolicy** knownHosts_arr = static_cast(knownHosts.data); @@ -148,7 +148,7 @@ void QNetworkAccessManager_AddStrictTransportSecurityHosts(QNetworkAccessManager self->addStrictTransportSecurityHosts(knownHosts_QList); } -struct miqt_array QNetworkAccessManager_StrictTransportSecurityHosts(const QNetworkAccessManager* self) { +struct miqt_array /* of QHstsPolicy* */ QNetworkAccessManager_StrictTransportSecurityHosts(const QNetworkAccessManager* self) { QVector _ret = self->strictTransportSecurityHosts(); // Convert QList<> from C++ memory to manually-managed C memory QHstsPolicy** _arr = static_cast(malloc(sizeof(QHstsPolicy*) * _ret.length())); @@ -325,7 +325,7 @@ void QNetworkAccessManager_connect_Encrypted(QNetworkAccessManager* self, intptr }); } -void QNetworkAccessManager_SslErrors(QNetworkAccessManager* self, QNetworkReply* reply, struct miqt_array /* of QSslError* */ errors) { +void QNetworkAccessManager_SslErrors(QNetworkAccessManager* self, QNetworkReply* reply, struct miqt_array /* of QSslError* */ errors) { QList errors_QList; errors_QList.reserve(errors.len); QSslError** errors_arr = static_cast(errors.data); @@ -347,7 +347,7 @@ void QNetworkAccessManager_connect_SslErrors(QNetworkAccessManager* self, intptr struct miqt_array errors_out; errors_out.len = errors_ret.length(); errors_out.data = static_cast(errors_arr); - struct miqt_array sigval2 = errors_out; + struct miqt_array /* of QSslError* */ sigval2 = errors_out; miqt_exec_callback_QNetworkAccessManager_SslErrors(slot, sigval1, sigval2); }); } diff --git a/qt/network/gen_qnetworkaccessmanager.h b/qt/network/gen_qnetworkaccessmanager.h index 971e367b..39e3e233 100644 --- a/qt/network/gen_qnetworkaccessmanager.h +++ b/qt/network/gen_qnetworkaccessmanager.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKACCESSMANAGER_H -#define GEN_QNETWORKACCESSMANAGER_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QNETWORKACCESSMANAGER_H +#define MIQT_QT_NETWORK_GEN_QNETWORKACCESSMANAGER_H #include #include @@ -59,7 +60,7 @@ QMetaObject* QNetworkAccessManager_MetaObject(const QNetworkAccessManager* self) void* QNetworkAccessManager_Metacast(QNetworkAccessManager* self, const char* param1); struct miqt_string QNetworkAccessManager_Tr(const char* s); struct miqt_string QNetworkAccessManager_TrUtf8(const char* s); -struct miqt_array QNetworkAccessManager_SupportedSchemes(const QNetworkAccessManager* self); +struct miqt_array /* of struct miqt_string */ QNetworkAccessManager_SupportedSchemes(const QNetworkAccessManager* self); void QNetworkAccessManager_ClearAccessCache(QNetworkAccessManager* self); void QNetworkAccessManager_ClearConnectionCache(QNetworkAccessManager* self); QNetworkProxy* QNetworkAccessManager_Proxy(const QNetworkAccessManager* self); @@ -74,8 +75,8 @@ void QNetworkAccessManager_SetStrictTransportSecurityEnabled(QNetworkAccessManag bool QNetworkAccessManager_IsStrictTransportSecurityEnabled(const QNetworkAccessManager* self); void QNetworkAccessManager_EnableStrictTransportSecurityStore(QNetworkAccessManager* self, bool enabled); bool QNetworkAccessManager_IsStrictTransportSecurityStoreEnabled(const QNetworkAccessManager* self); -void QNetworkAccessManager_AddStrictTransportSecurityHosts(QNetworkAccessManager* self, struct miqt_array /* of QHstsPolicy* */ knownHosts); -struct miqt_array QNetworkAccessManager_StrictTransportSecurityHosts(const QNetworkAccessManager* self); +void QNetworkAccessManager_AddStrictTransportSecurityHosts(QNetworkAccessManager* self, struct miqt_array /* of QHstsPolicy* */ knownHosts); +struct miqt_array /* of QHstsPolicy* */ QNetworkAccessManager_StrictTransportSecurityHosts(const QNetworkAccessManager* self); QNetworkReply* QNetworkAccessManager_Head(QNetworkAccessManager* self, QNetworkRequest* request); QNetworkReply* QNetworkAccessManager_Get(QNetworkAccessManager* self, QNetworkRequest* request); QNetworkReply* QNetworkAccessManager_Post(QNetworkAccessManager* self, QNetworkRequest* request, QIODevice* data); @@ -110,7 +111,7 @@ void QNetworkAccessManager_Finished(QNetworkAccessManager* self, QNetworkReply* void QNetworkAccessManager_connect_Finished(QNetworkAccessManager* self, intptr_t slot); void QNetworkAccessManager_Encrypted(QNetworkAccessManager* self, QNetworkReply* reply); void QNetworkAccessManager_connect_Encrypted(QNetworkAccessManager* self, intptr_t slot); -void QNetworkAccessManager_SslErrors(QNetworkAccessManager* self, QNetworkReply* reply, struct miqt_array /* of QSslError* */ errors); +void QNetworkAccessManager_SslErrors(QNetworkAccessManager* self, QNetworkReply* reply, struct miqt_array /* of QSslError* */ errors); void QNetworkAccessManager_connect_SslErrors(QNetworkAccessManager* self, intptr_t slot); void QNetworkAccessManager_PreSharedKeyAuthenticationRequired(QNetworkAccessManager* self, QNetworkReply* reply, QSslPreSharedKeyAuthenticator* authenticator); void QNetworkAccessManager_connect_PreSharedKeyAuthenticationRequired(QNetworkAccessManager* self, intptr_t slot); diff --git a/qt/network/gen_qnetworkconfigmanager.cpp b/qt/network/gen_qnetworkconfigmanager.cpp index 42c5680d..ac9a4d3d 100644 --- a/qt/network/gen_qnetworkconfigmanager.cpp +++ b/qt/network/gen_qnetworkconfigmanager.cpp @@ -57,7 +57,7 @@ QNetworkConfiguration* QNetworkConfigurationManager_DefaultConfiguration(const Q return new QNetworkConfiguration(self->defaultConfiguration()); } -struct miqt_array QNetworkConfigurationManager_AllConfigurations(const QNetworkConfigurationManager* self) { +struct miqt_array /* of QNetworkConfiguration* */ QNetworkConfigurationManager_AllConfigurations(const QNetworkConfigurationManager* self) { QList _ret = self->allConfigurations(); // Convert QList<> from C++ memory to manually-managed C memory QNetworkConfiguration** _arr = static_cast(malloc(sizeof(QNetworkConfiguration*) * _ret.length())); @@ -187,7 +187,7 @@ struct miqt_string QNetworkConfigurationManager_TrUtf83(const char* s, const cha return _ms; } -struct miqt_array QNetworkConfigurationManager_AllConfigurations1(const QNetworkConfigurationManager* self, int flags) { +struct miqt_array /* of QNetworkConfiguration* */ QNetworkConfigurationManager_AllConfigurations1(const QNetworkConfigurationManager* self, int flags) { QList _ret = self->allConfigurations(static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory QNetworkConfiguration** _arr = static_cast(malloc(sizeof(QNetworkConfiguration*) * _ret.length())); diff --git a/qt/network/gen_qnetworkconfigmanager.h b/qt/network/gen_qnetworkconfigmanager.h index afd1c433..548f46f8 100644 --- a/qt/network/gen_qnetworkconfigmanager.h +++ b/qt/network/gen_qnetworkconfigmanager.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKCONFIGMANAGER_H -#define GEN_QNETWORKCONFIGMANAGER_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QNETWORKCONFIGMANAGER_H +#define MIQT_QT_NETWORK_GEN_QNETWORKCONFIGMANAGER_H #include #include @@ -33,7 +34,7 @@ struct miqt_string QNetworkConfigurationManager_Tr(const char* s); struct miqt_string QNetworkConfigurationManager_TrUtf8(const char* s); int QNetworkConfigurationManager_Capabilities(const QNetworkConfigurationManager* self); QNetworkConfiguration* QNetworkConfigurationManager_DefaultConfiguration(const QNetworkConfigurationManager* self); -struct miqt_array QNetworkConfigurationManager_AllConfigurations(const QNetworkConfigurationManager* self); +struct miqt_array /* of QNetworkConfiguration* */ QNetworkConfigurationManager_AllConfigurations(const QNetworkConfigurationManager* self); QNetworkConfiguration* QNetworkConfigurationManager_ConfigurationFromIdentifier(const QNetworkConfigurationManager* self, struct miqt_string identifier); bool QNetworkConfigurationManager_IsOnline(const QNetworkConfigurationManager* self); void QNetworkConfigurationManager_UpdateConfigurations(QNetworkConfigurationManager* self); @@ -51,7 +52,7 @@ struct miqt_string QNetworkConfigurationManager_Tr2(const char* s, const char* c struct miqt_string QNetworkConfigurationManager_Tr3(const char* s, const char* c, int n); struct miqt_string QNetworkConfigurationManager_TrUtf82(const char* s, const char* c); struct miqt_string QNetworkConfigurationManager_TrUtf83(const char* s, const char* c, int n); -struct miqt_array QNetworkConfigurationManager_AllConfigurations1(const QNetworkConfigurationManager* self, int flags); +struct miqt_array /* of QNetworkConfiguration* */ QNetworkConfigurationManager_AllConfigurations1(const QNetworkConfigurationManager* self, int flags); void QNetworkConfigurationManager_Delete(QNetworkConfigurationManager* self); #ifdef __cplusplus diff --git a/qt/network/gen_qnetworkconfiguration.cpp b/qt/network/gen_qnetworkconfiguration.cpp index 9e6d1ab4..4e9360f0 100644 --- a/qt/network/gen_qnetworkconfiguration.cpp +++ b/qt/network/gen_qnetworkconfiguration.cpp @@ -82,7 +82,7 @@ bool QNetworkConfiguration_IsRoamingAvailable(const QNetworkConfiguration* self) return self->isRoamingAvailable(); } -struct miqt_array QNetworkConfiguration_Children(const QNetworkConfiguration* self) { +struct miqt_array /* of QNetworkConfiguration* */ QNetworkConfiguration_Children(const QNetworkConfiguration* self) { QList _ret = self->children(); // Convert QList<> from C++ memory to manually-managed C memory QNetworkConfiguration** _arr = static_cast(malloc(sizeof(QNetworkConfiguration*) * _ret.length())); diff --git a/qt/network/gen_qnetworkconfiguration.h b/qt/network/gen_qnetworkconfiguration.h index 1ebf106c..a54fbe1c 100644 --- a/qt/network/gen_qnetworkconfiguration.h +++ b/qt/network/gen_qnetworkconfiguration.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKCONFIGURATION_H -#define GEN_QNETWORKCONFIGURATION_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QNETWORKCONFIGURATION_H +#define MIQT_QT_NETWORK_GEN_QNETWORKCONFIGURATION_H #include #include @@ -33,7 +34,7 @@ int QNetworkConfiguration_BearerTypeFamily(const QNetworkConfiguration* self); struct miqt_string QNetworkConfiguration_BearerTypeName(const QNetworkConfiguration* self); struct miqt_string QNetworkConfiguration_Identifier(const QNetworkConfiguration* self); bool QNetworkConfiguration_IsRoamingAvailable(const QNetworkConfiguration* self); -struct miqt_array QNetworkConfiguration_Children(const QNetworkConfiguration* self); +struct miqt_array /* of QNetworkConfiguration* */ QNetworkConfiguration_Children(const QNetworkConfiguration* self); struct miqt_string QNetworkConfiguration_Name(const QNetworkConfiguration* self); bool QNetworkConfiguration_IsValid(const QNetworkConfiguration* self); int QNetworkConfiguration_ConnectTimeout(const QNetworkConfiguration* self); diff --git a/qt/network/gen_qnetworkcookie.cpp b/qt/network/gen_qnetworkcookie.cpp index 142debad..715c4e0b 100644 --- a/qt/network/gen_qnetworkcookie.cpp +++ b/qt/network/gen_qnetworkcookie.cpp @@ -150,7 +150,7 @@ void QNetworkCookie_Normalize(QNetworkCookie* self, QUrl* url) { self->normalize(*url); } -struct miqt_array QNetworkCookie_ParseCookies(struct miqt_string cookieString) { +struct miqt_array /* of QNetworkCookie* */ QNetworkCookie_ParseCookies(struct miqt_string cookieString) { QByteArray cookieString_QByteArray(cookieString.data, cookieString.len); QList _ret = QNetworkCookie::parseCookies(cookieString_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt/network/gen_qnetworkcookie.h b/qt/network/gen_qnetworkcookie.h index 498615e4..21440468 100644 --- a/qt/network/gen_qnetworkcookie.h +++ b/qt/network/gen_qnetworkcookie.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKCOOKIE_H -#define GEN_QNETWORKCOOKIE_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QNETWORKCOOKIE_H +#define MIQT_QT_NETWORK_GEN_QNETWORKCOOKIE_H #include #include @@ -51,7 +52,7 @@ void QNetworkCookie_SetValue(QNetworkCookie* self, struct miqt_string value); struct miqt_string QNetworkCookie_ToRawForm(const QNetworkCookie* self); bool QNetworkCookie_HasSameIdentifier(const QNetworkCookie* self, QNetworkCookie* other); void QNetworkCookie_Normalize(QNetworkCookie* self, QUrl* url); -struct miqt_array QNetworkCookie_ParseCookies(struct miqt_string cookieString); +struct miqt_array /* of QNetworkCookie* */ QNetworkCookie_ParseCookies(struct miqt_string cookieString); struct miqt_string QNetworkCookie_ToRawForm1(const QNetworkCookie* self, int form); void QNetworkCookie_Delete(QNetworkCookie* self); diff --git a/qt/network/gen_qnetworkcookiejar.cpp b/qt/network/gen_qnetworkcookiejar.cpp index 07eee7fb..0f684aab 100644 --- a/qt/network/gen_qnetworkcookiejar.cpp +++ b/qt/network/gen_qnetworkcookiejar.cpp @@ -49,7 +49,7 @@ struct miqt_string QNetworkCookieJar_TrUtf8(const char* s) { return _ms; } -struct miqt_array QNetworkCookieJar_CookiesForUrl(const QNetworkCookieJar* self, QUrl* url) { +struct miqt_array /* of QNetworkCookie* */ QNetworkCookieJar_CookiesForUrl(const QNetworkCookieJar* self, QUrl* url) { QList _ret = self->cookiesForUrl(*url); // Convert QList<> from C++ memory to manually-managed C memory QNetworkCookie** _arr = static_cast(malloc(sizeof(QNetworkCookie*) * _ret.length())); @@ -62,7 +62,7 @@ struct miqt_array QNetworkCookieJar_CookiesForUrl(const QNetworkCookieJar* self, return _out; } -bool QNetworkCookieJar_SetCookiesFromUrl(QNetworkCookieJar* self, struct miqt_array /* of QNetworkCookie* */ cookieList, QUrl* url) { +bool QNetworkCookieJar_SetCookiesFromUrl(QNetworkCookieJar* self, struct miqt_array /* of QNetworkCookie* */ cookieList, QUrl* url) { QList cookieList_QList; cookieList_QList.reserve(cookieList.len); QNetworkCookie** cookieList_arr = static_cast(cookieList.data); diff --git a/qt/network/gen_qnetworkcookiejar.h b/qt/network/gen_qnetworkcookiejar.h index 5839f768..1f2b39d7 100644 --- a/qt/network/gen_qnetworkcookiejar.h +++ b/qt/network/gen_qnetworkcookiejar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKCOOKIEJAR_H -#define GEN_QNETWORKCOOKIEJAR_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QNETWORKCOOKIEJAR_H +#define MIQT_QT_NETWORK_GEN_QNETWORKCOOKIEJAR_H #include #include @@ -33,8 +34,8 @@ QMetaObject* QNetworkCookieJar_MetaObject(const QNetworkCookieJar* self); void* QNetworkCookieJar_Metacast(QNetworkCookieJar* self, const char* param1); struct miqt_string QNetworkCookieJar_Tr(const char* s); struct miqt_string QNetworkCookieJar_TrUtf8(const char* s); -struct miqt_array QNetworkCookieJar_CookiesForUrl(const QNetworkCookieJar* self, QUrl* url); -bool QNetworkCookieJar_SetCookiesFromUrl(QNetworkCookieJar* self, struct miqt_array /* of QNetworkCookie* */ cookieList, QUrl* url); +struct miqt_array /* of QNetworkCookie* */ QNetworkCookieJar_CookiesForUrl(const QNetworkCookieJar* self, QUrl* url); +bool QNetworkCookieJar_SetCookiesFromUrl(QNetworkCookieJar* self, struct miqt_array /* of QNetworkCookie* */ cookieList, QUrl* url); bool QNetworkCookieJar_InsertCookie(QNetworkCookieJar* self, QNetworkCookie* cookie); bool QNetworkCookieJar_UpdateCookie(QNetworkCookieJar* self, QNetworkCookie* cookie); bool QNetworkCookieJar_DeleteCookie(QNetworkCookieJar* self, QNetworkCookie* cookie); diff --git a/qt/network/gen_qnetworkdatagram.h b/qt/network/gen_qnetworkdatagram.h index a2c65f34..dd404fe8 100644 --- a/qt/network/gen_qnetworkdatagram.h +++ b/qt/network/gen_qnetworkdatagram.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKDATAGRAM_H -#define GEN_QNETWORKDATAGRAM_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QNETWORKDATAGRAM_H +#define MIQT_QT_NETWORK_GEN_QNETWORKDATAGRAM_H #include #include diff --git a/qt/network/gen_qnetworkdiskcache.h b/qt/network/gen_qnetworkdiskcache.h index 508ba376..2f17022c 100644 --- a/qt/network/gen_qnetworkdiskcache.h +++ b/qt/network/gen_qnetworkdiskcache.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKDISKCACHE_H -#define GEN_QNETWORKDISKCACHE_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QNETWORKDISKCACHE_H +#define MIQT_QT_NETWORK_GEN_QNETWORKDISKCACHE_H #include #include diff --git a/qt/network/gen_qnetworkinterface.cpp b/qt/network/gen_qnetworkinterface.cpp index 1cb80e3f..66734515 100644 --- a/qt/network/gen_qnetworkinterface.cpp +++ b/qt/network/gen_qnetworkinterface.cpp @@ -178,7 +178,7 @@ struct miqt_string QNetworkInterface_HardwareAddress(const QNetworkInterface* se return _ms; } -struct miqt_array QNetworkInterface_AddressEntries(const QNetworkInterface* self) { +struct miqt_array /* of QNetworkAddressEntry* */ QNetworkInterface_AddressEntries(const QNetworkInterface* self) { QList _ret = self->addressEntries(); // Convert QList<> from C++ memory to manually-managed C memory QNetworkAddressEntry** _arr = static_cast(malloc(sizeof(QNetworkAddressEntry*) * _ret.length())); @@ -216,7 +216,7 @@ struct miqt_string QNetworkInterface_InterfaceNameFromIndex(int index) { return _ms; } -struct miqt_array QNetworkInterface_AllInterfaces() { +struct miqt_array /* of QNetworkInterface* */ QNetworkInterface_AllInterfaces() { QList _ret = QNetworkInterface::allInterfaces(); // Convert QList<> from C++ memory to manually-managed C memory QNetworkInterface** _arr = static_cast(malloc(sizeof(QNetworkInterface*) * _ret.length())); @@ -229,7 +229,7 @@ struct miqt_array QNetworkInterface_AllInterfaces() { return _out; } -struct miqt_array QNetworkInterface_AllAddresses() { +struct miqt_array /* of QHostAddress* */ QNetworkInterface_AllAddresses() { QList _ret = QNetworkInterface::allAddresses(); // Convert QList<> from C++ memory to manually-managed C memory QHostAddress** _arr = static_cast(malloc(sizeof(QHostAddress*) * _ret.length())); diff --git a/qt/network/gen_qnetworkinterface.h b/qt/network/gen_qnetworkinterface.h index dab8810c..825ac90e 100644 --- a/qt/network/gen_qnetworkinterface.h +++ b/qt/network/gen_qnetworkinterface.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKINTERFACE_H -#define GEN_QNETWORKINTERFACE_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QNETWORKINTERFACE_H +#define MIQT_QT_NETWORK_GEN_QNETWORKINTERFACE_H #include #include @@ -62,13 +63,13 @@ struct miqt_string QNetworkInterface_HumanReadableName(const QNetworkInterface* int QNetworkInterface_Flags(const QNetworkInterface* self); int QNetworkInterface_Type(const QNetworkInterface* self); struct miqt_string QNetworkInterface_HardwareAddress(const QNetworkInterface* self); -struct miqt_array QNetworkInterface_AddressEntries(const QNetworkInterface* self); +struct miqt_array /* of QNetworkAddressEntry* */ QNetworkInterface_AddressEntries(const QNetworkInterface* self); int QNetworkInterface_InterfaceIndexFromName(struct miqt_string name); QNetworkInterface* QNetworkInterface_InterfaceFromName(struct miqt_string name); QNetworkInterface* QNetworkInterface_InterfaceFromIndex(int index); struct miqt_string QNetworkInterface_InterfaceNameFromIndex(int index); -struct miqt_array QNetworkInterface_AllInterfaces(); -struct miqt_array QNetworkInterface_AllAddresses(); +struct miqt_array /* of QNetworkInterface* */ QNetworkInterface_AllInterfaces(); +struct miqt_array /* of QHostAddress* */ QNetworkInterface_AllAddresses(); void QNetworkInterface_Delete(QNetworkInterface* self); #ifdef __cplusplus diff --git a/qt/network/gen_qnetworkproxy.cpp b/qt/network/gen_qnetworkproxy.cpp index 85a6e2a9..50c20552 100644 --- a/qt/network/gen_qnetworkproxy.cpp +++ b/qt/network/gen_qnetworkproxy.cpp @@ -347,7 +347,7 @@ bool QNetworkProxy_HasRawHeader(const QNetworkProxy* self, struct miqt_string he return self->hasRawHeader(headerName_QByteArray); } -struct miqt_array QNetworkProxy_RawHeaderList(const QNetworkProxy* self) { +struct miqt_array /* of struct miqt_string */ QNetworkProxy_RawHeaderList(const QNetworkProxy* self) { QList _ret = self->rawHeaderList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -385,7 +385,7 @@ void QNetworkProxy_Delete(QNetworkProxy* self) { delete self; } -struct miqt_array QNetworkProxyFactory_QueryProxy(QNetworkProxyFactory* self) { +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_QueryProxy(QNetworkProxyFactory* self) { QList _ret = self->queryProxy(); // Convert QList<> from C++ memory to manually-managed C memory QNetworkProxy** _arr = static_cast(malloc(sizeof(QNetworkProxy*) * _ret.length())); @@ -410,7 +410,7 @@ void QNetworkProxyFactory_SetApplicationProxyFactory(QNetworkProxyFactory* facto QNetworkProxyFactory::setApplicationProxyFactory(factory); } -struct miqt_array QNetworkProxyFactory_ProxyForQuery(QNetworkProxyQuery* query) { +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_ProxyForQuery(QNetworkProxyQuery* query) { QList _ret = QNetworkProxyFactory::proxyForQuery(*query); // Convert QList<> from C++ memory to manually-managed C memory QNetworkProxy** _arr = static_cast(malloc(sizeof(QNetworkProxy*) * _ret.length())); @@ -423,7 +423,7 @@ struct miqt_array QNetworkProxyFactory_ProxyForQuery(QNetworkProxyQuery* query) return _out; } -struct miqt_array QNetworkProxyFactory_SystemProxyForQuery() { +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_SystemProxyForQuery() { QList _ret = QNetworkProxyFactory::systemProxyForQuery(); // Convert QList<> from C++ memory to manually-managed C memory QNetworkProxy** _arr = static_cast(malloc(sizeof(QNetworkProxy*) * _ret.length())); @@ -440,7 +440,7 @@ void QNetworkProxyFactory_OperatorAssign(QNetworkProxyFactory* self, QNetworkPro self->operator=(*param1); } -struct miqt_array QNetworkProxyFactory_QueryProxy1(QNetworkProxyFactory* self, QNetworkProxyQuery* query) { +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_QueryProxy1(QNetworkProxyFactory* self, QNetworkProxyQuery* query) { QList _ret = self->queryProxy(*query); // Convert QList<> from C++ memory to manually-managed C memory QNetworkProxy** _arr = static_cast(malloc(sizeof(QNetworkProxy*) * _ret.length())); @@ -453,7 +453,7 @@ struct miqt_array QNetworkProxyFactory_QueryProxy1(QNetworkProxyFactory* self, Q return _out; } -struct miqt_array QNetworkProxyFactory_SystemProxyForQuery1(QNetworkProxyQuery* query) { +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_SystemProxyForQuery1(QNetworkProxyQuery* query) { QList _ret = QNetworkProxyFactory::systemProxyForQuery(*query); // Convert QList<> from C++ memory to manually-managed C memory QNetworkProxy** _arr = static_cast(malloc(sizeof(QNetworkProxy*) * _ret.length())); diff --git a/qt/network/gen_qnetworkproxy.h b/qt/network/gen_qnetworkproxy.h index 6b2d61ea..cf52e425 100644 --- a/qt/network/gen_qnetworkproxy.h +++ b/qt/network/gen_qnetworkproxy.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKPROXY_H -#define GEN_QNETWORKPROXY_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QNETWORKPROXY_H +#define MIQT_QT_NETWORK_GEN_QNETWORKPROXY_H #include #include @@ -99,20 +100,20 @@ QNetworkProxy* QNetworkProxy_ApplicationProxy(); QVariant* QNetworkProxy_Header(const QNetworkProxy* self, int header); void QNetworkProxy_SetHeader(QNetworkProxy* self, int header, QVariant* value); bool QNetworkProxy_HasRawHeader(const QNetworkProxy* self, struct miqt_string headerName); -struct miqt_array QNetworkProxy_RawHeaderList(const QNetworkProxy* self); +struct miqt_array /* of struct miqt_string */ QNetworkProxy_RawHeaderList(const QNetworkProxy* self); struct miqt_string QNetworkProxy_RawHeader(const QNetworkProxy* self, struct miqt_string headerName); void QNetworkProxy_SetRawHeader(QNetworkProxy* self, struct miqt_string headerName, struct miqt_string value); void QNetworkProxy_Delete(QNetworkProxy* self); -struct miqt_array QNetworkProxyFactory_QueryProxy(QNetworkProxyFactory* self); +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_QueryProxy(QNetworkProxyFactory* self); bool QNetworkProxyFactory_UsesSystemConfiguration(); void QNetworkProxyFactory_SetUseSystemConfiguration(bool enable); void QNetworkProxyFactory_SetApplicationProxyFactory(QNetworkProxyFactory* factory); -struct miqt_array QNetworkProxyFactory_ProxyForQuery(QNetworkProxyQuery* query); -struct miqt_array QNetworkProxyFactory_SystemProxyForQuery(); +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_ProxyForQuery(QNetworkProxyQuery* query); +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_SystemProxyForQuery(); void QNetworkProxyFactory_OperatorAssign(QNetworkProxyFactory* self, QNetworkProxyFactory* param1); -struct miqt_array QNetworkProxyFactory_QueryProxy1(QNetworkProxyFactory* self, QNetworkProxyQuery* query); -struct miqt_array QNetworkProxyFactory_SystemProxyForQuery1(QNetworkProxyQuery* query); +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_QueryProxy1(QNetworkProxyFactory* self, QNetworkProxyQuery* query); +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_SystemProxyForQuery1(QNetworkProxyQuery* query); void QNetworkProxyFactory_Delete(QNetworkProxyFactory* self); #ifdef __cplusplus diff --git a/qt/network/gen_qnetworkreply.cpp b/qt/network/gen_qnetworkreply.cpp index 36179ddb..7e568bf5 100644 --- a/qt/network/gen_qnetworkreply.cpp +++ b/qt/network/gen_qnetworkreply.cpp @@ -102,7 +102,7 @@ bool QNetworkReply_HasRawHeader(const QNetworkReply* self, struct miqt_string he return self->hasRawHeader(headerName_QByteArray); } -struct miqt_array QNetworkReply_RawHeaderList(const QNetworkReply* self) { +struct miqt_array /* of struct miqt_string */ QNetworkReply_RawHeaderList(const QNetworkReply* self) { QList _ret = self->rawHeaderList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -130,6 +130,39 @@ struct miqt_string QNetworkReply_RawHeader(const QNetworkReply* self, struct miq return _ms; } +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QNetworkReply_RawHeaderPairs(const QNetworkReply* self) { + const QList& _ret = self->rawHeaderPairs(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + struct miqt_string* _lv_first_arr = static_cast(malloc(sizeof(struct miqt_string))); + struct miqt_string* _lv_second_arr = static_cast(malloc(sizeof(struct miqt_string))); + QByteArray _lv_first_qb = _lv_ret.first; + struct miqt_string _lv_first_ms; + _lv_first_ms.len = _lv_first_qb.length(); + _lv_first_ms.data = static_cast(malloc(_lv_first_ms.len)); + memcpy(_lv_first_ms.data, _lv_first_qb.data(), _lv_first_ms.len); + _lv_first_arr[0] = _lv_first_ms; + QByteArray _lv_second_qb = _lv_ret.second; + struct miqt_string _lv_second_ms; + _lv_second_ms.len = _lv_second_qb.length(); + _lv_second_ms.data = static_cast(malloc(_lv_second_ms.len)); + memcpy(_lv_second_ms.data, _lv_second_qb.data(), _lv_second_ms.len); + _lv_second_arr[0] = _lv_second_ms; + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + QVariant* QNetworkReply_Attribute(const QNetworkReply* self, int code) { return new QVariant(self->attribute(static_cast(code))); } @@ -142,7 +175,7 @@ void QNetworkReply_SetSslConfiguration(QNetworkReply* self, QSslConfiguration* c self->setSslConfiguration(*configuration); } -void QNetworkReply_IgnoreSslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors) { +void QNetworkReply_IgnoreSslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors) { QList errors_QList; errors_QList.reserve(errors.len); QSslError** errors_arr = static_cast(errors.data); @@ -214,7 +247,7 @@ void QNetworkReply_connect_Encrypted(QNetworkReply* self, intptr_t slot) { }); } -void QNetworkReply_SslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors) { +void QNetworkReply_SslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors) { QList errors_QList; errors_QList.reserve(errors.len); QSslError** errors_arr = static_cast(errors.data); @@ -235,7 +268,7 @@ void QNetworkReply_connect_SslErrors(QNetworkReply* self, intptr_t slot) { struct miqt_array errors_out; errors_out.len = errors_ret.length(); errors_out.data = static_cast(errors_arr); - struct miqt_array sigval1 = errors_out; + struct miqt_array /* of QSslError* */ sigval1 = errors_out; miqt_exec_callback_QNetworkReply_SslErrors(slot, sigval1); }); } diff --git a/qt/network/gen_qnetworkreply.go b/qt/network/gen_qnetworkreply.go index ad8978ad..c474a9a9 100644 --- a/qt/network/gen_qnetworkreply.go +++ b/qt/network/gen_qnetworkreply.go @@ -199,6 +199,36 @@ func (this *QNetworkReply) RawHeader(headerName []byte) []byte { return _ret } +func (this *QNetworkReply) RawHeaderPairs() []struct { + First []byte + Second []byte +} { + var _ma C.struct_miqt_array = C.QNetworkReply_RawHeaderPairs(this.h) + _ret := make([]struct { + First []byte + Second []byte + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.values)) + var _lv_first_bytearray C.struct_miqt_string = _lv_First_CArray[0] + _lv_first_ret := C.GoBytes(unsafe.Pointer(_lv_first_bytearray.data), C.int(int64(_lv_first_bytearray.len))) + C.free(unsafe.Pointer(_lv_first_bytearray.data)) + _lv_entry_First := _lv_first_ret + var _lv_second_bytearray C.struct_miqt_string = _lv_Second_CArray[0] + _lv_second_ret := C.GoBytes(unsafe.Pointer(_lv_second_bytearray.data), C.int(int64(_lv_second_bytearray.len))) + C.free(unsafe.Pointer(_lv_second_bytearray.data)) + _lv_entry_Second := _lv_second_ret + _ret[i] = struct { + First []byte + Second []byte + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QNetworkReply) Attribute(code QNetworkRequest__Attribute) *qt.QVariant { _ret := C.QNetworkReply_Attribute(this.h, (C.int)(code)) _goptr := qt.UnsafeNewQVariant(unsafe.Pointer(_ret)) diff --git a/qt/network/gen_qnetworkreply.h b/qt/network/gen_qnetworkreply.h index 4df30e6d..f9424883 100644 --- a/qt/network/gen_qnetworkreply.h +++ b/qt/network/gen_qnetworkreply.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKREPLY_H -#define GEN_QNETWORKREPLY_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QNETWORKREPLY_H +#define MIQT_QT_NETWORK_GEN_QNETWORKREPLY_H #include #include @@ -54,12 +55,13 @@ bool QNetworkReply_IsRunning(const QNetworkReply* self); QUrl* QNetworkReply_Url(const QNetworkReply* self); QVariant* QNetworkReply_Header(const QNetworkReply* self, int header); bool QNetworkReply_HasRawHeader(const QNetworkReply* self, struct miqt_string headerName); -struct miqt_array QNetworkReply_RawHeaderList(const QNetworkReply* self); +struct miqt_array /* of struct miqt_string */ QNetworkReply_RawHeaderList(const QNetworkReply* self); struct miqt_string QNetworkReply_RawHeader(const QNetworkReply* self, struct miqt_string headerName); +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QNetworkReply_RawHeaderPairs(const QNetworkReply* self); QVariant* QNetworkReply_Attribute(const QNetworkReply* self, int code); QSslConfiguration* QNetworkReply_SslConfiguration(const QNetworkReply* self); void QNetworkReply_SetSslConfiguration(QNetworkReply* self, QSslConfiguration* configuration); -void QNetworkReply_IgnoreSslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors); +void QNetworkReply_IgnoreSslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors); void QNetworkReply_Abort(QNetworkReply* self); void QNetworkReply_IgnoreSslErrors2(QNetworkReply* self); void QNetworkReply_MetaDataChanged(QNetworkReply* self); @@ -72,7 +74,7 @@ void QNetworkReply_ErrorOccurred(QNetworkReply* self, int param1); void QNetworkReply_connect_ErrorOccurred(QNetworkReply* self, intptr_t slot); void QNetworkReply_Encrypted(QNetworkReply* self); void QNetworkReply_connect_Encrypted(QNetworkReply* self, intptr_t slot); -void QNetworkReply_SslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors); +void QNetworkReply_SslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors); void QNetworkReply_connect_SslErrors(QNetworkReply* self, intptr_t slot); void QNetworkReply_PreSharedKeyAuthenticationRequired(QNetworkReply* self, QSslPreSharedKeyAuthenticator* authenticator); void QNetworkReply_connect_PreSharedKeyAuthenticationRequired(QNetworkReply* self, intptr_t slot); diff --git a/qt/network/gen_qnetworkrequest.cpp b/qt/network/gen_qnetworkrequest.cpp index b3836fc7..4274bcfb 100644 --- a/qt/network/gen_qnetworkrequest.cpp +++ b/qt/network/gen_qnetworkrequest.cpp @@ -62,7 +62,7 @@ bool QNetworkRequest_HasRawHeader(const QNetworkRequest* self, struct miqt_strin return self->hasRawHeader(headerName_QByteArray); } -struct miqt_array QNetworkRequest_RawHeaderList(const QNetworkRequest* self) { +struct miqt_array /* of struct miqt_string */ QNetworkRequest_RawHeaderList(const QNetworkRequest* self) { QList _ret = self->rawHeaderList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/network/gen_qnetworkrequest.h b/qt/network/gen_qnetworkrequest.h index 40a345ff..4f2a583c 100644 --- a/qt/network/gen_qnetworkrequest.h +++ b/qt/network/gen_qnetworkrequest.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKREQUEST_H -#define GEN_QNETWORKREQUEST_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QNETWORKREQUEST_H +#define MIQT_QT_NETWORK_GEN_QNETWORKREQUEST_H #include #include @@ -43,7 +44,7 @@ void QNetworkRequest_SetUrl(QNetworkRequest* self, QUrl* url); QVariant* QNetworkRequest_Header(const QNetworkRequest* self, int header); void QNetworkRequest_SetHeader(QNetworkRequest* self, int header, QVariant* value); bool QNetworkRequest_HasRawHeader(const QNetworkRequest* self, struct miqt_string headerName); -struct miqt_array QNetworkRequest_RawHeaderList(const QNetworkRequest* self); +struct miqt_array /* of struct miqt_string */ QNetworkRequest_RawHeaderList(const QNetworkRequest* self); struct miqt_string QNetworkRequest_RawHeader(const QNetworkRequest* self, struct miqt_string headerName); void QNetworkRequest_SetRawHeader(QNetworkRequest* self, struct miqt_string headerName, struct miqt_string value); QVariant* QNetworkRequest_Attribute(const QNetworkRequest* self, int code); diff --git a/qt/network/gen_qnetworksession.h b/qt/network/gen_qnetworksession.h index 8a58ca65..3f794579 100644 --- a/qt/network/gen_qnetworksession.h +++ b/qt/network/gen_qnetworksession.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKSESSION_H -#define GEN_QNETWORKSESSION_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QNETWORKSESSION_H +#define MIQT_QT_NETWORK_GEN_QNETWORKSESSION_H #include #include diff --git a/qt/network/gen_qocspresponse.h b/qt/network/gen_qocspresponse.h index 2b0e1ba4..2b4d3400 100644 --- a/qt/network/gen_qocspresponse.h +++ b/qt/network/gen_qocspresponse.h @@ -1,5 +1,6 @@ -#ifndef GEN_QOCSPRESPONSE_H -#define GEN_QOCSPRESPONSE_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QOCSPRESPONSE_H +#define MIQT_QT_NETWORK_GEN_QOCSPRESPONSE_H #include #include diff --git a/qt/network/gen_qssl.h b/qt/network/gen_qssl.h index eb871f45..45fa41c6 100644 --- a/qt/network/gen_qssl.h +++ b/qt/network/gen_qssl.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSL_H -#define GEN_QSSL_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QSSL_H +#define MIQT_QT_NETWORK_GEN_QSSL_H #include #include diff --git a/qt/network/gen_qsslcertificate.cpp b/qt/network/gen_qsslcertificate.cpp index d69d6fe2..07cdf2e6 100644 --- a/qt/network/gen_qsslcertificate.cpp +++ b/qt/network/gen_qsslcertificate.cpp @@ -98,7 +98,7 @@ struct miqt_string QSslCertificate_Digest(const QSslCertificate* self) { return _ms; } -struct miqt_array QSslCertificate_IssuerInfo(const QSslCertificate* self, int info) { +struct miqt_array /* of struct miqt_string */ QSslCertificate_IssuerInfo(const QSslCertificate* self, int info) { QStringList _ret = self->issuerInfo(static_cast(info)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -118,7 +118,7 @@ struct miqt_array QSslCertificate_IssuerInfo(const QSslCertificate* self, int in return _out; } -struct miqt_array QSslCertificate_IssuerInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute) { +struct miqt_array /* of struct miqt_string */ QSslCertificate_IssuerInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute) { QByteArray attribute_QByteArray(attribute.data, attribute.len); QStringList _ret = self->issuerInfo(attribute_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory @@ -139,7 +139,7 @@ struct miqt_array QSslCertificate_IssuerInfoWithAttribute(const QSslCertificate* return _out; } -struct miqt_array QSslCertificate_SubjectInfo(const QSslCertificate* self, int info) { +struct miqt_array /* of struct miqt_string */ QSslCertificate_SubjectInfo(const QSslCertificate* self, int info) { QStringList _ret = self->subjectInfo(static_cast(info)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -159,7 +159,7 @@ struct miqt_array QSslCertificate_SubjectInfo(const QSslCertificate* self, int i return _out; } -struct miqt_array QSslCertificate_SubjectInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute) { +struct miqt_array /* of struct miqt_string */ QSslCertificate_SubjectInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute) { QByteArray attribute_QByteArray(attribute.data, attribute.len); QStringList _ret = self->subjectInfo(attribute_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory @@ -202,7 +202,7 @@ struct miqt_string QSslCertificate_SubjectDisplayName(const QSslCertificate* sel return _ms; } -struct miqt_array QSslCertificate_SubjectInfoAttributes(const QSslCertificate* self) { +struct miqt_array /* of struct miqt_string */ QSslCertificate_SubjectInfoAttributes(const QSslCertificate* self) { QList _ret = self->subjectInfoAttributes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -220,7 +220,7 @@ struct miqt_array QSslCertificate_SubjectInfoAttributes(const QSslCertificate* s return _out; } -struct miqt_array QSslCertificate_IssuerInfoAttributes(const QSslCertificate* self) { +struct miqt_array /* of struct miqt_string */ QSslCertificate_IssuerInfoAttributes(const QSslCertificate* self) { QList _ret = self->issuerInfoAttributes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -250,7 +250,7 @@ QSslKey* QSslCertificate_PublicKey(const QSslCertificate* self) { return new QSslKey(self->publicKey()); } -struct miqt_array QSslCertificate_Extensions(const QSslCertificate* self) { +struct miqt_array /* of QSslCertificateExtension* */ QSslCertificate_Extensions(const QSslCertificate* self) { QList _ret = self->extensions(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificateExtension** _arr = static_cast(malloc(sizeof(QSslCertificateExtension*) * _ret.length())); @@ -292,7 +292,7 @@ struct miqt_string QSslCertificate_ToText(const QSslCertificate* self) { return _ms; } -struct miqt_array QSslCertificate_FromPath(struct miqt_string path, int format, int syntax) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromPath(struct miqt_string path, int format, int syntax) { QString path_QString = QString::fromUtf8(path.data, path.len); QList _ret = QSslCertificate::fromPath(path_QString, static_cast(format), static_cast(syntax)); // Convert QList<> from C++ memory to manually-managed C memory @@ -306,7 +306,7 @@ struct miqt_array QSslCertificate_FromPath(struct miqt_string path, int format, return _out; } -struct miqt_array QSslCertificate_FromPathWithPath(struct miqt_string path) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromPathWithPath(struct miqt_string path) { QString path_QString = QString::fromUtf8(path.data, path.len); QList _ret = QSslCertificate::fromPath(path_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -320,7 +320,7 @@ struct miqt_array QSslCertificate_FromPathWithPath(struct miqt_string path) { return _out; } -struct miqt_array QSslCertificate_FromDevice(QIODevice* device) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromDevice(QIODevice* device) { QList _ret = QSslCertificate::fromDevice(device); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -333,7 +333,7 @@ struct miqt_array QSslCertificate_FromDevice(QIODevice* device) { return _out; } -struct miqt_array QSslCertificate_FromData(struct miqt_string data) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromData(struct miqt_string data) { QByteArray data_QByteArray(data.data, data.len); QList _ret = QSslCertificate::fromData(data_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory @@ -347,7 +347,7 @@ struct miqt_array QSslCertificate_FromData(struct miqt_string data) { return _out; } -struct miqt_array QSslCertificate_Verify(struct miqt_array /* of QSslCertificate* */ certificateChain) { +struct miqt_array /* of QSslError* */ QSslCertificate_Verify(struct miqt_array /* of QSslCertificate* */ certificateChain) { QList certificateChain_QList; certificateChain_QList.reserve(certificateChain.len); QSslCertificate** certificateChain_arr = static_cast(certificateChain.data); @@ -384,7 +384,7 @@ struct miqt_string QSslCertificate_Digest1(const QSslCertificate* self, int algo return _ms; } -struct miqt_array QSslCertificate_FromPath2(struct miqt_string path, int format) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromPath2(struct miqt_string path, int format) { QString path_QString = QString::fromUtf8(path.data, path.len); QList _ret = QSslCertificate::fromPath(path_QString, static_cast(format)); // Convert QList<> from C++ memory to manually-managed C memory @@ -398,7 +398,7 @@ struct miqt_array QSslCertificate_FromPath2(struct miqt_string path, int format) return _out; } -struct miqt_array QSslCertificate_FromPath3(struct miqt_string path, int format, int syntax) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromPath3(struct miqt_string path, int format, int syntax) { QString path_QString = QString::fromUtf8(path.data, path.len); QList _ret = QSslCertificate::fromPath(path_QString, static_cast(format), static_cast(syntax)); // Convert QList<> from C++ memory to manually-managed C memory @@ -412,7 +412,7 @@ struct miqt_array QSslCertificate_FromPath3(struct miqt_string path, int format, return _out; } -struct miqt_array QSslCertificate_FromDevice2(QIODevice* device, int format) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromDevice2(QIODevice* device, int format) { QList _ret = QSslCertificate::fromDevice(device, static_cast(format)); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -425,7 +425,7 @@ struct miqt_array QSslCertificate_FromDevice2(QIODevice* device, int format) { return _out; } -struct miqt_array QSslCertificate_FromData2(struct miqt_string data, int format) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromData2(struct miqt_string data, int format) { QByteArray data_QByteArray(data.data, data.len); QList _ret = QSslCertificate::fromData(data_QByteArray, static_cast(format)); // Convert QList<> from C++ memory to manually-managed C memory @@ -439,7 +439,7 @@ struct miqt_array QSslCertificate_FromData2(struct miqt_string data, int format) return _out; } -struct miqt_array QSslCertificate_Verify2(struct miqt_array /* of QSslCertificate* */ certificateChain, struct miqt_string hostName) { +struct miqt_array /* of QSslError* */ QSslCertificate_Verify2(struct miqt_array /* of QSslCertificate* */ certificateChain, struct miqt_string hostName) { QList certificateChain_QList; certificateChain_QList.reserve(certificateChain.len); QSslCertificate** certificateChain_arr = static_cast(certificateChain.data); @@ -459,7 +459,7 @@ struct miqt_array QSslCertificate_Verify2(struct miqt_array /* of QSslCertificat return _out; } -bool QSslCertificate_ImportPkcs124(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates) { +bool QSslCertificate_ImportPkcs124(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates) { QList caCertificates_QList; caCertificates_QList.reserve(caCertificates.len); QSslCertificate** caCertificates_arr = static_cast(caCertificates.data); @@ -469,7 +469,7 @@ bool QSslCertificate_ImportPkcs124(QIODevice* device, QSslKey* key, QSslCertific return QSslCertificate::importPkcs12(device, key, cert, &caCertificates_QList); } -bool QSslCertificate_ImportPkcs125(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates, struct miqt_string passPhrase) { +bool QSslCertificate_ImportPkcs125(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates, struct miqt_string passPhrase) { QList caCertificates_QList; caCertificates_QList.reserve(caCertificates.len); QSslCertificate** caCertificates_arr = static_cast(caCertificates.data); diff --git a/qt/network/gen_qsslcertificate.h b/qt/network/gen_qsslcertificate.h index a4559003..2f35b003 100644 --- a/qt/network/gen_qsslcertificate.h +++ b/qt/network/gen_qsslcertificate.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLCERTIFICATE_H -#define GEN_QSSLCERTIFICATE_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QSSLCERTIFICATE_H +#define MIQT_QT_NETWORK_GEN_QSSLCERTIFICATE_H #include #include @@ -48,36 +49,36 @@ void QSslCertificate_Clear(QSslCertificate* self); struct miqt_string QSslCertificate_Version(const QSslCertificate* self); struct miqt_string QSslCertificate_SerialNumber(const QSslCertificate* self); struct miqt_string QSslCertificate_Digest(const QSslCertificate* self); -struct miqt_array QSslCertificate_IssuerInfo(const QSslCertificate* self, int info); -struct miqt_array QSslCertificate_IssuerInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute); -struct miqt_array QSslCertificate_SubjectInfo(const QSslCertificate* self, int info); -struct miqt_array QSslCertificate_SubjectInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute); +struct miqt_array /* of struct miqt_string */ QSslCertificate_IssuerInfo(const QSslCertificate* self, int info); +struct miqt_array /* of struct miqt_string */ QSslCertificate_IssuerInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute); +struct miqt_array /* of struct miqt_string */ QSslCertificate_SubjectInfo(const QSslCertificate* self, int info); +struct miqt_array /* of struct miqt_string */ QSslCertificate_SubjectInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute); struct miqt_string QSslCertificate_IssuerDisplayName(const QSslCertificate* self); struct miqt_string QSslCertificate_SubjectDisplayName(const QSslCertificate* self); -struct miqt_array QSslCertificate_SubjectInfoAttributes(const QSslCertificate* self); -struct miqt_array QSslCertificate_IssuerInfoAttributes(const QSslCertificate* self); +struct miqt_array /* of struct miqt_string */ QSslCertificate_SubjectInfoAttributes(const QSslCertificate* self); +struct miqt_array /* of struct miqt_string */ QSslCertificate_IssuerInfoAttributes(const QSslCertificate* self); QDateTime* QSslCertificate_EffectiveDate(const QSslCertificate* self); QDateTime* QSslCertificate_ExpiryDate(const QSslCertificate* self); QSslKey* QSslCertificate_PublicKey(const QSslCertificate* self); -struct miqt_array QSslCertificate_Extensions(const QSslCertificate* self); +struct miqt_array /* of QSslCertificateExtension* */ QSslCertificate_Extensions(const QSslCertificate* self); struct miqt_string QSslCertificate_ToPem(const QSslCertificate* self); struct miqt_string QSslCertificate_ToDer(const QSslCertificate* self); struct miqt_string QSslCertificate_ToText(const QSslCertificate* self); -struct miqt_array QSslCertificate_FromPath(struct miqt_string path, int format, int syntax); -struct miqt_array QSslCertificate_FromPathWithPath(struct miqt_string path); -struct miqt_array QSslCertificate_FromDevice(QIODevice* device); -struct miqt_array QSslCertificate_FromData(struct miqt_string data); -struct miqt_array QSslCertificate_Verify(struct miqt_array /* of QSslCertificate* */ certificateChain); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromPath(struct miqt_string path, int format, int syntax); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromPathWithPath(struct miqt_string path); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromDevice(QIODevice* device); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromData(struct miqt_string data); +struct miqt_array /* of QSslError* */ QSslCertificate_Verify(struct miqt_array /* of QSslCertificate* */ certificateChain); bool QSslCertificate_ImportPkcs12(QIODevice* device, QSslKey* key, QSslCertificate* cert); void* QSslCertificate_Handle(const QSslCertificate* self); struct miqt_string QSslCertificate_Digest1(const QSslCertificate* self, int algorithm); -struct miqt_array QSslCertificate_FromPath2(struct miqt_string path, int format); -struct miqt_array QSslCertificate_FromPath3(struct miqt_string path, int format, int syntax); -struct miqt_array QSslCertificate_FromDevice2(QIODevice* device, int format); -struct miqt_array QSslCertificate_FromData2(struct miqt_string data, int format); -struct miqt_array QSslCertificate_Verify2(struct miqt_array /* of QSslCertificate* */ certificateChain, struct miqt_string hostName); -bool QSslCertificate_ImportPkcs124(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates); -bool QSslCertificate_ImportPkcs125(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates, struct miqt_string passPhrase); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromPath2(struct miqt_string path, int format); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromPath3(struct miqt_string path, int format, int syntax); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromDevice2(QIODevice* device, int format); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromData2(struct miqt_string data, int format); +struct miqt_array /* of QSslError* */ QSslCertificate_Verify2(struct miqt_array /* of QSslCertificate* */ certificateChain, struct miqt_string hostName); +bool QSslCertificate_ImportPkcs124(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates); +bool QSslCertificate_ImportPkcs125(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates, struct miqt_string passPhrase); void QSslCertificate_Delete(QSslCertificate* self); #ifdef __cplusplus diff --git a/qt/network/gen_qsslcertificateextension.h b/qt/network/gen_qsslcertificateextension.h index edbfd926..05ba4303 100644 --- a/qt/network/gen_qsslcertificateextension.h +++ b/qt/network/gen_qsslcertificateextension.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLCERTIFICATEEXTENSION_H -#define GEN_QSSLCERTIFICATEEXTENSION_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QSSLCERTIFICATEEXTENSION_H +#define MIQT_QT_NETWORK_GEN_QSSLCERTIFICATEEXTENSION_H #include #include diff --git a/qt/network/gen_qsslcipher.h b/qt/network/gen_qsslcipher.h index 21972991..fce571ea 100644 --- a/qt/network/gen_qsslcipher.h +++ b/qt/network/gen_qsslcipher.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLCIPHER_H -#define GEN_QSSLCIPHER_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QSSLCIPHER_H +#define MIQT_QT_NETWORK_GEN_QSSLCIPHER_H #include #include diff --git a/qt/network/gen_qsslconfiguration.cpp b/qt/network/gen_qsslconfiguration.cpp index 830023fe..d4a54848 100644 --- a/qt/network/gen_qsslconfiguration.cpp +++ b/qt/network/gen_qsslconfiguration.cpp @@ -68,7 +68,7 @@ void QSslConfiguration_SetPeerVerifyDepth(QSslConfiguration* self, int depth) { self->setPeerVerifyDepth(static_cast(depth)); } -struct miqt_array QSslConfiguration_LocalCertificateChain(const QSslConfiguration* self) { +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_LocalCertificateChain(const QSslConfiguration* self) { QList _ret = self->localCertificateChain(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -81,7 +81,7 @@ struct miqt_array QSslConfiguration_LocalCertificateChain(const QSslConfiguratio return _out; } -void QSslConfiguration_SetLocalCertificateChain(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ localChain) { +void QSslConfiguration_SetLocalCertificateChain(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ localChain) { QList localChain_QList; localChain_QList.reserve(localChain.len); QSslCertificate** localChain_arr = static_cast(localChain.data); @@ -103,7 +103,7 @@ QSslCertificate* QSslConfiguration_PeerCertificate(const QSslConfiguration* self return new QSslCertificate(self->peerCertificate()); } -struct miqt_array QSslConfiguration_PeerCertificateChain(const QSslConfiguration* self) { +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_PeerCertificateChain(const QSslConfiguration* self) { QList _ret = self->peerCertificateChain(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -133,7 +133,7 @@ void QSslConfiguration_SetPrivateKey(QSslConfiguration* self, QSslKey* key) { self->setPrivateKey(*key); } -struct miqt_array QSslConfiguration_Ciphers(const QSslConfiguration* self) { +struct miqt_array /* of QSslCipher* */ QSslConfiguration_Ciphers(const QSslConfiguration* self) { QList _ret = self->ciphers(); // Convert QList<> from C++ memory to manually-managed C memory QSslCipher** _arr = static_cast(malloc(sizeof(QSslCipher*) * _ret.length())); @@ -146,7 +146,7 @@ struct miqt_array QSslConfiguration_Ciphers(const QSslConfiguration* self) { return _out; } -void QSslConfiguration_SetCiphers(QSslConfiguration* self, struct miqt_array /* of QSslCipher* */ ciphers) { +void QSslConfiguration_SetCiphers(QSslConfiguration* self, struct miqt_array /* of QSslCipher* */ ciphers) { QList ciphers_QList; ciphers_QList.reserve(ciphers.len); QSslCipher** ciphers_arr = static_cast(ciphers.data); @@ -156,7 +156,7 @@ void QSslConfiguration_SetCiphers(QSslConfiguration* self, struct miqt_array /* self->setCiphers(ciphers_QList); } -struct miqt_array QSslConfiguration_SupportedCiphers() { +struct miqt_array /* of QSslCipher* */ QSslConfiguration_SupportedCiphers() { QList _ret = QSslConfiguration::supportedCiphers(); // Convert QList<> from C++ memory to manually-managed C memory QSslCipher** _arr = static_cast(malloc(sizeof(QSslCipher*) * _ret.length())); @@ -169,7 +169,7 @@ struct miqt_array QSslConfiguration_SupportedCiphers() { return _out; } -struct miqt_array QSslConfiguration_CaCertificates(const QSslConfiguration* self) { +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_CaCertificates(const QSslConfiguration* self) { QList _ret = self->caCertificates(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -182,7 +182,7 @@ struct miqt_array QSslConfiguration_CaCertificates(const QSslConfiguration* self return _out; } -void QSslConfiguration_SetCaCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates) { +void QSslConfiguration_SetCaCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates) { QList certificates_QList; certificates_QList.reserve(certificates.len); QSslCertificate** certificates_arr = static_cast(certificates.data); @@ -201,7 +201,7 @@ void QSslConfiguration_AddCaCertificate(QSslConfiguration* self, QSslCertificate self->addCaCertificate(*certificate); } -void QSslConfiguration_AddCaCertificatesWithCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates) { +void QSslConfiguration_AddCaCertificatesWithCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates) { QList certificates_QList; certificates_QList.reserve(certificates.len); QSslCertificate** certificates_arr = static_cast(certificates.data); @@ -211,7 +211,7 @@ void QSslConfiguration_AddCaCertificatesWithCertificates(QSslConfiguration* self self->addCaCertificates(certificates_QList); } -struct miqt_array QSslConfiguration_SystemCaCertificates() { +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_SystemCaCertificates() { QList _ret = QSslConfiguration::systemCaCertificates(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -254,7 +254,7 @@ QSslKey* QSslConfiguration_EphemeralServerKey(const QSslConfiguration* self) { return new QSslKey(self->ephemeralServerKey()); } -struct miqt_array QSslConfiguration_EllipticCurves(const QSslConfiguration* self) { +struct miqt_array /* of QSslEllipticCurve* */ QSslConfiguration_EllipticCurves(const QSslConfiguration* self) { QVector _ret = self->ellipticCurves(); // Convert QList<> from C++ memory to manually-managed C memory QSslEllipticCurve** _arr = static_cast(malloc(sizeof(QSslEllipticCurve*) * _ret.length())); @@ -267,7 +267,7 @@ struct miqt_array QSslConfiguration_EllipticCurves(const QSslConfiguration* self return _out; } -void QSslConfiguration_SetEllipticCurves(QSslConfiguration* self, struct miqt_array /* of QSslEllipticCurve* */ curves) { +void QSslConfiguration_SetEllipticCurves(QSslConfiguration* self, struct miqt_array /* of QSslEllipticCurve* */ curves) { QVector curves_QList; curves_QList.reserve(curves.len); QSslEllipticCurve** curves_arr = static_cast(curves.data); @@ -277,7 +277,7 @@ void QSslConfiguration_SetEllipticCurves(QSslConfiguration* self, struct miqt_ar self->setEllipticCurves(curves_QList); } -struct miqt_array QSslConfiguration_SupportedEllipticCurves() { +struct miqt_array /* of QSslEllipticCurve* */ QSslConfiguration_SupportedEllipticCurves() { QVector _ret = QSslConfiguration::supportedEllipticCurves(); // Convert QList<> from C++ memory to manually-managed C memory QSslEllipticCurve** _arr = static_cast(malloc(sizeof(QSslEllipticCurve*) * _ret.length())); @@ -353,7 +353,7 @@ bool QSslConfiguration_OcspStaplingEnabled(const QSslConfiguration* self) { return self->ocspStaplingEnabled(); } -void QSslConfiguration_SetAllowedNextProtocols(QSslConfiguration* self, struct miqt_array /* of struct miqt_string */ protocols) { +void QSslConfiguration_SetAllowedNextProtocols(QSslConfiguration* self, struct miqt_array /* of struct miqt_string */ protocols) { QList protocols_QList; protocols_QList.reserve(protocols.len); struct miqt_string* protocols_arr = static_cast(protocols.data); @@ -364,7 +364,7 @@ void QSslConfiguration_SetAllowedNextProtocols(QSslConfiguration* self, struct m self->setAllowedNextProtocols(protocols_QList); } -struct miqt_array QSslConfiguration_AllowedNextProtocols(const QSslConfiguration* self) { +struct miqt_array /* of struct miqt_string */ QSslConfiguration_AllowedNextProtocols(const QSslConfiguration* self) { QList _ret = self->allowedNextProtocols(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt/network/gen_qsslconfiguration.h b/qt/network/gen_qsslconfiguration.h index 692889a1..5ec14dc2 100644 --- a/qt/network/gen_qsslconfiguration.h +++ b/qt/network/gen_qsslconfiguration.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLCONFIGURATION_H -#define GEN_QSSLCONFIGURATION_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QSSLCONFIGURATION_H +#define MIQT_QT_NETWORK_GEN_QSSLCONFIGURATION_H #include #include @@ -46,34 +47,34 @@ int QSslConfiguration_PeerVerifyMode(const QSslConfiguration* self); void QSslConfiguration_SetPeerVerifyMode(QSslConfiguration* self, int mode); int QSslConfiguration_PeerVerifyDepth(const QSslConfiguration* self); void QSslConfiguration_SetPeerVerifyDepth(QSslConfiguration* self, int depth); -struct miqt_array QSslConfiguration_LocalCertificateChain(const QSslConfiguration* self); -void QSslConfiguration_SetLocalCertificateChain(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ localChain); +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_LocalCertificateChain(const QSslConfiguration* self); +void QSslConfiguration_SetLocalCertificateChain(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ localChain); QSslCertificate* QSslConfiguration_LocalCertificate(const QSslConfiguration* self); void QSslConfiguration_SetLocalCertificate(QSslConfiguration* self, QSslCertificate* certificate); QSslCertificate* QSslConfiguration_PeerCertificate(const QSslConfiguration* self); -struct miqt_array QSslConfiguration_PeerCertificateChain(const QSslConfiguration* self); +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_PeerCertificateChain(const QSslConfiguration* self); QSslCipher* QSslConfiguration_SessionCipher(const QSslConfiguration* self); int QSslConfiguration_SessionProtocol(const QSslConfiguration* self); QSslKey* QSslConfiguration_PrivateKey(const QSslConfiguration* self); void QSslConfiguration_SetPrivateKey(QSslConfiguration* self, QSslKey* key); -struct miqt_array QSslConfiguration_Ciphers(const QSslConfiguration* self); -void QSslConfiguration_SetCiphers(QSslConfiguration* self, struct miqt_array /* of QSslCipher* */ ciphers); -struct miqt_array QSslConfiguration_SupportedCiphers(); -struct miqt_array QSslConfiguration_CaCertificates(const QSslConfiguration* self); -void QSslConfiguration_SetCaCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates); +struct miqt_array /* of QSslCipher* */ QSslConfiguration_Ciphers(const QSslConfiguration* self); +void QSslConfiguration_SetCiphers(QSslConfiguration* self, struct miqt_array /* of QSslCipher* */ ciphers); +struct miqt_array /* of QSslCipher* */ QSslConfiguration_SupportedCiphers(); +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_CaCertificates(const QSslConfiguration* self); +void QSslConfiguration_SetCaCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates); bool QSslConfiguration_AddCaCertificates(QSslConfiguration* self, struct miqt_string path); void QSslConfiguration_AddCaCertificate(QSslConfiguration* self, QSslCertificate* certificate); -void QSslConfiguration_AddCaCertificatesWithCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates); -struct miqt_array QSslConfiguration_SystemCaCertificates(); +void QSslConfiguration_AddCaCertificatesWithCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates); +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_SystemCaCertificates(); void QSslConfiguration_SetSslOption(QSslConfiguration* self, int option, bool on); bool QSslConfiguration_TestSslOption(const QSslConfiguration* self, int option); struct miqt_string QSslConfiguration_SessionTicket(const QSslConfiguration* self); void QSslConfiguration_SetSessionTicket(QSslConfiguration* self, struct miqt_string sessionTicket); int QSslConfiguration_SessionTicketLifeTimeHint(const QSslConfiguration* self); QSslKey* QSslConfiguration_EphemeralServerKey(const QSslConfiguration* self); -struct miqt_array QSslConfiguration_EllipticCurves(const QSslConfiguration* self); -void QSslConfiguration_SetEllipticCurves(QSslConfiguration* self, struct miqt_array /* of QSslEllipticCurve* */ curves); -struct miqt_array QSslConfiguration_SupportedEllipticCurves(); +struct miqt_array /* of QSslEllipticCurve* */ QSslConfiguration_EllipticCurves(const QSslConfiguration* self); +void QSslConfiguration_SetEllipticCurves(QSslConfiguration* self, struct miqt_array /* of QSslEllipticCurve* */ curves); +struct miqt_array /* of QSslEllipticCurve* */ QSslConfiguration_SupportedEllipticCurves(); struct miqt_string QSslConfiguration_PreSharedKeyIdentityHint(const QSslConfiguration* self); void QSslConfiguration_SetPreSharedKeyIdentityHint(QSslConfiguration* self, struct miqt_string hint); QSslDiffieHellmanParameters* QSslConfiguration_DiffieHellmanParameters(const QSslConfiguration* self); @@ -88,8 +89,8 @@ QSslConfiguration* QSslConfiguration_DefaultDtlsConfiguration(); void QSslConfiguration_SetDefaultDtlsConfiguration(QSslConfiguration* configuration); void QSslConfiguration_SetOcspStaplingEnabled(QSslConfiguration* self, bool enable); bool QSslConfiguration_OcspStaplingEnabled(const QSslConfiguration* self); -void QSslConfiguration_SetAllowedNextProtocols(QSslConfiguration* self, struct miqt_array /* of struct miqt_string */ protocols); -struct miqt_array QSslConfiguration_AllowedNextProtocols(const QSslConfiguration* self); +void QSslConfiguration_SetAllowedNextProtocols(QSslConfiguration* self, struct miqt_array /* of struct miqt_string */ protocols); +struct miqt_array /* of struct miqt_string */ QSslConfiguration_AllowedNextProtocols(const QSslConfiguration* self); struct miqt_string QSslConfiguration_NextNegotiatedProtocol(const QSslConfiguration* self); int QSslConfiguration_NextProtocolNegotiationStatus(const QSslConfiguration* self); bool QSslConfiguration_AddCaCertificates2(QSslConfiguration* self, struct miqt_string path, int format); diff --git a/qt/network/gen_qssldiffiehellmanparameters.h b/qt/network/gen_qssldiffiehellmanparameters.h index 096f9f8f..fa44be92 100644 --- a/qt/network/gen_qssldiffiehellmanparameters.h +++ b/qt/network/gen_qssldiffiehellmanparameters.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLDIFFIEHELLMANPARAMETERS_H -#define GEN_QSSLDIFFIEHELLMANPARAMETERS_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QSSLDIFFIEHELLMANPARAMETERS_H +#define MIQT_QT_NETWORK_GEN_QSSLDIFFIEHELLMANPARAMETERS_H #include #include diff --git a/qt/network/gen_qsslellipticcurve.h b/qt/network/gen_qsslellipticcurve.h index 082b9379..1e872b03 100644 --- a/qt/network/gen_qsslellipticcurve.h +++ b/qt/network/gen_qsslellipticcurve.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLELLIPTICCURVE_H -#define GEN_QSSLELLIPTICCURVE_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QSSLELLIPTICCURVE_H +#define MIQT_QT_NETWORK_GEN_QSSLELLIPTICCURVE_H #include #include diff --git a/qt/network/gen_qsslerror.h b/qt/network/gen_qsslerror.h index 745e3cf9..a18f1580 100644 --- a/qt/network/gen_qsslerror.h +++ b/qt/network/gen_qsslerror.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLERROR_H -#define GEN_QSSLERROR_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QSSLERROR_H +#define MIQT_QT_NETWORK_GEN_QSSLERROR_H #include #include diff --git a/qt/network/gen_qsslkey.h b/qt/network/gen_qsslkey.h index df2b5091..e4aa7ec7 100644 --- a/qt/network/gen_qsslkey.h +++ b/qt/network/gen_qsslkey.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLKEY_H -#define GEN_QSSLKEY_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QSSLKEY_H +#define MIQT_QT_NETWORK_GEN_QSSLKEY_H #include #include diff --git a/qt/network/gen_qsslpresharedkeyauthenticator.h b/qt/network/gen_qsslpresharedkeyauthenticator.h index 2e0d6087..6d7b2729 100644 --- a/qt/network/gen_qsslpresharedkeyauthenticator.h +++ b/qt/network/gen_qsslpresharedkeyauthenticator.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLPRESHAREDKEYAUTHENTICATOR_H -#define GEN_QSSLPRESHAREDKEYAUTHENTICATOR_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QSSLPRESHAREDKEYAUTHENTICATOR_H +#define MIQT_QT_NETWORK_GEN_QSSLPRESHAREDKEYAUTHENTICATOR_H #include #include diff --git a/qt/network/gen_qsslsocket.cpp b/qt/network/gen_qsslsocket.cpp index dc6b1c2f..6f6008b5 100644 --- a/qt/network/gen_qsslsocket.cpp +++ b/qt/network/gen_qsslsocket.cpp @@ -195,7 +195,7 @@ void QSslSocket_SetSslConfiguration(QSslSocket* self, QSslConfiguration* config) self->setSslConfiguration(*config); } -void QSslSocket_SetLocalCertificateChain(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ localChain) { +void QSslSocket_SetLocalCertificateChain(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ localChain) { QList localChain_QList; localChain_QList.reserve(localChain.len); QSslCertificate** localChain_arr = static_cast(localChain.data); @@ -205,7 +205,7 @@ void QSslSocket_SetLocalCertificateChain(QSslSocket* self, struct miqt_array /* self->setLocalCertificateChain(localChain_QList); } -struct miqt_array QSslSocket_LocalCertificateChain(const QSslSocket* self) { +struct miqt_array /* of QSslCertificate* */ QSslSocket_LocalCertificateChain(const QSslSocket* self) { QList _ret = self->localCertificateChain(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -235,7 +235,7 @@ QSslCertificate* QSslSocket_PeerCertificate(const QSslSocket* self) { return new QSslCertificate(self->peerCertificate()); } -struct miqt_array QSslSocket_PeerCertificateChain(const QSslSocket* self) { +struct miqt_array /* of QSslCertificate* */ QSslSocket_PeerCertificateChain(const QSslSocket* self) { QList _ret = self->peerCertificateChain(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -257,7 +257,7 @@ int QSslSocket_SessionProtocol(const QSslSocket* self) { return static_cast(_ret); } -struct miqt_array QSslSocket_OcspResponses(const QSslSocket* self) { +struct miqt_array /* of QOcspResponse* */ QSslSocket_OcspResponses(const QSslSocket* self) { QVector _ret = self->ocspResponses(); // Convert QList<> from C++ memory to manually-managed C memory QOcspResponse** _arr = static_cast(malloc(sizeof(QOcspResponse*) * _ret.length())); @@ -283,7 +283,7 @@ QSslKey* QSslSocket_PrivateKey(const QSslSocket* self) { return new QSslKey(self->privateKey()); } -struct miqt_array QSslSocket_Ciphers(const QSslSocket* self) { +struct miqt_array /* of QSslCipher* */ QSslSocket_Ciphers(const QSslSocket* self) { QList _ret = self->ciphers(); // Convert QList<> from C++ memory to manually-managed C memory QSslCipher** _arr = static_cast(malloc(sizeof(QSslCipher*) * _ret.length())); @@ -296,7 +296,7 @@ struct miqt_array QSslSocket_Ciphers(const QSslSocket* self) { return _out; } -void QSslSocket_SetCiphers(QSslSocket* self, struct miqt_array /* of QSslCipher* */ ciphers) { +void QSslSocket_SetCiphers(QSslSocket* self, struct miqt_array /* of QSslCipher* */ ciphers) { QList ciphers_QList; ciphers_QList.reserve(ciphers.len); QSslCipher** ciphers_arr = static_cast(ciphers.data); @@ -311,7 +311,7 @@ void QSslSocket_SetCiphersWithCiphers(QSslSocket* self, struct miqt_string ciphe self->setCiphers(ciphers_QString); } -void QSslSocket_SetDefaultCiphers(struct miqt_array /* of QSslCipher* */ ciphers) { +void QSslSocket_SetDefaultCiphers(struct miqt_array /* of QSslCipher* */ ciphers) { QList ciphers_QList; ciphers_QList.reserve(ciphers.len); QSslCipher** ciphers_arr = static_cast(ciphers.data); @@ -321,7 +321,7 @@ void QSslSocket_SetDefaultCiphers(struct miqt_array /* of QSslCipher* */ ciphers QSslSocket::setDefaultCiphers(ciphers_QList); } -struct miqt_array QSslSocket_DefaultCiphers() { +struct miqt_array /* of QSslCipher* */ QSslSocket_DefaultCiphers() { QList _ret = QSslSocket::defaultCiphers(); // Convert QList<> from C++ memory to manually-managed C memory QSslCipher** _arr = static_cast(malloc(sizeof(QSslCipher*) * _ret.length())); @@ -334,7 +334,7 @@ struct miqt_array QSslSocket_DefaultCiphers() { return _out; } -struct miqt_array QSslSocket_SupportedCiphers() { +struct miqt_array /* of QSslCipher* */ QSslSocket_SupportedCiphers() { QList _ret = QSslSocket::supportedCiphers(); // Convert QList<> from C++ memory to manually-managed C memory QSslCipher** _arr = static_cast(malloc(sizeof(QSslCipher*) * _ret.length())); @@ -356,7 +356,7 @@ void QSslSocket_AddCaCertificate(QSslSocket* self, QSslCertificate* certificate) self->addCaCertificate(*certificate); } -void QSslSocket_AddCaCertificatesWithCertificates(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ certificates) { +void QSslSocket_AddCaCertificatesWithCertificates(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ certificates) { QList certificates_QList; certificates_QList.reserve(certificates.len); QSslCertificate** certificates_arr = static_cast(certificates.data); @@ -366,7 +366,7 @@ void QSslSocket_AddCaCertificatesWithCertificates(QSslSocket* self, struct miqt_ self->addCaCertificates(certificates_QList); } -void QSslSocket_SetCaCertificates(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ certificates) { +void QSslSocket_SetCaCertificates(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ certificates) { QList certificates_QList; certificates_QList.reserve(certificates.len); QSslCertificate** certificates_arr = static_cast(certificates.data); @@ -376,7 +376,7 @@ void QSslSocket_SetCaCertificates(QSslSocket* self, struct miqt_array /* of QSsl self->setCaCertificates(certificates_QList); } -struct miqt_array QSslSocket_CaCertificates(const QSslSocket* self) { +struct miqt_array /* of QSslCertificate* */ QSslSocket_CaCertificates(const QSslSocket* self) { QList _ret = self->caCertificates(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -398,7 +398,7 @@ void QSslSocket_AddDefaultCaCertificate(QSslCertificate* certificate) { QSslSocket::addDefaultCaCertificate(*certificate); } -void QSslSocket_AddDefaultCaCertificatesWithCertificates(struct miqt_array /* of QSslCertificate* */ certificates) { +void QSslSocket_AddDefaultCaCertificatesWithCertificates(struct miqt_array /* of QSslCertificate* */ certificates) { QList certificates_QList; certificates_QList.reserve(certificates.len); QSslCertificate** certificates_arr = static_cast(certificates.data); @@ -408,7 +408,7 @@ void QSslSocket_AddDefaultCaCertificatesWithCertificates(struct miqt_array /* of QSslSocket::addDefaultCaCertificates(certificates_QList); } -void QSslSocket_SetDefaultCaCertificates(struct miqt_array /* of QSslCertificate* */ certificates) { +void QSslSocket_SetDefaultCaCertificates(struct miqt_array /* of QSslCertificate* */ certificates) { QList certificates_QList; certificates_QList.reserve(certificates.len); QSslCertificate** certificates_arr = static_cast(certificates.data); @@ -418,7 +418,7 @@ void QSslSocket_SetDefaultCaCertificates(struct miqt_array /* of QSslCertificate QSslSocket::setDefaultCaCertificates(certificates_QList); } -struct miqt_array QSslSocket_DefaultCaCertificates() { +struct miqt_array /* of QSslCertificate* */ QSslSocket_DefaultCaCertificates() { QList _ret = QSslSocket::defaultCaCertificates(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -431,7 +431,7 @@ struct miqt_array QSslSocket_DefaultCaCertificates() { return _out; } -struct miqt_array QSslSocket_SystemCaCertificates() { +struct miqt_array /* of QSslCertificate* */ QSslSocket_SystemCaCertificates() { QList _ret = QSslSocket::systemCaCertificates(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -464,7 +464,7 @@ bool QSslSocket_WaitForDisconnected(QSslSocket* self) { return self->waitForDisconnected(); } -struct miqt_array QSslSocket_SslErrors(const QSslSocket* self) { +struct miqt_array /* of QSslError* */ QSslSocket_SslErrors(const QSslSocket* self) { QList _ret = self->sslErrors(); // Convert QList<> from C++ memory to manually-managed C memory QSslError** _arr = static_cast(malloc(sizeof(QSslError*) * _ret.length())); @@ -477,7 +477,7 @@ struct miqt_array QSslSocket_SslErrors(const QSslSocket* self) { return _out; } -struct miqt_array QSslSocket_SslHandshakeErrors(const QSslSocket* self) { +struct miqt_array /* of QSslError* */ QSslSocket_SslHandshakeErrors(const QSslSocket* self) { QList _ret = self->sslHandshakeErrors(); // Convert QList<> from C++ memory to manually-managed C memory QSslError** _arr = static_cast(malloc(sizeof(QSslError*) * _ret.length())); @@ -524,7 +524,7 @@ struct miqt_string QSslSocket_SslLibraryBuildVersionString() { return _ms; } -void QSslSocket_IgnoreSslErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors) { +void QSslSocket_IgnoreSslErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors) { QList errors_QList; errors_QList.reserve(errors.len); QSslError** errors_arr = static_cast(errors.data); @@ -569,7 +569,7 @@ void QSslSocket_connect_PeerVerifyError(QSslSocket* self, intptr_t slot) { }); } -void QSslSocket_SslErrorsWithErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors) { +void QSslSocket_SslErrorsWithErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors) { QList errors_QList; errors_QList.reserve(errors.len); QSslError** errors_arr = static_cast(errors.data); @@ -590,7 +590,7 @@ void QSslSocket_connect_SslErrorsWithErrors(QSslSocket* self, intptr_t slot) { struct miqt_array errors_out; errors_out.len = errors_ret.length(); errors_out.data = static_cast(errors_arr); - struct miqt_array sigval1 = errors_out; + struct miqt_array /* of QSslError* */ sigval1 = errors_out; miqt_exec_callback_QSslSocket_SslErrorsWithErrors(slot, sigval1); }); } diff --git a/qt/network/gen_qsslsocket.h b/qt/network/gen_qsslsocket.h index 74c0594b..c031e219 100644 --- a/qt/network/gen_qsslsocket.h +++ b/qt/network/gen_qsslsocket.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLSOCKET_H -#define GEN_QSSLSOCKET_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QSSLSOCKET_H +#define MIQT_QT_NETWORK_GEN_QSSLSOCKET_H #include #include @@ -77,49 +78,49 @@ long long QSslSocket_EncryptedBytesAvailable(const QSslSocket* self); long long QSslSocket_EncryptedBytesToWrite(const QSslSocket* self); QSslConfiguration* QSslSocket_SslConfiguration(const QSslSocket* self); void QSslSocket_SetSslConfiguration(QSslSocket* self, QSslConfiguration* config); -void QSslSocket_SetLocalCertificateChain(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ localChain); -struct miqt_array QSslSocket_LocalCertificateChain(const QSslSocket* self); +void QSslSocket_SetLocalCertificateChain(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ localChain); +struct miqt_array /* of QSslCertificate* */ QSslSocket_LocalCertificateChain(const QSslSocket* self); void QSslSocket_SetLocalCertificate(QSslSocket* self, QSslCertificate* certificate); void QSslSocket_SetLocalCertificateWithFileName(QSslSocket* self, struct miqt_string fileName); QSslCertificate* QSslSocket_LocalCertificate(const QSslSocket* self); QSslCertificate* QSslSocket_PeerCertificate(const QSslSocket* self); -struct miqt_array QSslSocket_PeerCertificateChain(const QSslSocket* self); +struct miqt_array /* of QSslCertificate* */ QSslSocket_PeerCertificateChain(const QSslSocket* self); QSslCipher* QSslSocket_SessionCipher(const QSslSocket* self); int QSslSocket_SessionProtocol(const QSslSocket* self); -struct miqt_array QSslSocket_OcspResponses(const QSslSocket* self); +struct miqt_array /* of QOcspResponse* */ QSslSocket_OcspResponses(const QSslSocket* self); void QSslSocket_SetPrivateKey(QSslSocket* self, QSslKey* key); void QSslSocket_SetPrivateKeyWithFileName(QSslSocket* self, struct miqt_string fileName); QSslKey* QSslSocket_PrivateKey(const QSslSocket* self); -struct miqt_array QSslSocket_Ciphers(const QSslSocket* self); -void QSslSocket_SetCiphers(QSslSocket* self, struct miqt_array /* of QSslCipher* */ ciphers); +struct miqt_array /* of QSslCipher* */ QSslSocket_Ciphers(const QSslSocket* self); +void QSslSocket_SetCiphers(QSslSocket* self, struct miqt_array /* of QSslCipher* */ ciphers); void QSslSocket_SetCiphersWithCiphers(QSslSocket* self, struct miqt_string ciphers); -void QSslSocket_SetDefaultCiphers(struct miqt_array /* of QSslCipher* */ ciphers); -struct miqt_array QSslSocket_DefaultCiphers(); -struct miqt_array QSslSocket_SupportedCiphers(); +void QSslSocket_SetDefaultCiphers(struct miqt_array /* of QSslCipher* */ ciphers); +struct miqt_array /* of QSslCipher* */ QSslSocket_DefaultCiphers(); +struct miqt_array /* of QSslCipher* */ QSslSocket_SupportedCiphers(); bool QSslSocket_AddCaCertificates(QSslSocket* self, struct miqt_string path); void QSslSocket_AddCaCertificate(QSslSocket* self, QSslCertificate* certificate); -void QSslSocket_AddCaCertificatesWithCertificates(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ certificates); -void QSslSocket_SetCaCertificates(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ certificates); -struct miqt_array QSslSocket_CaCertificates(const QSslSocket* self); +void QSslSocket_AddCaCertificatesWithCertificates(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ certificates); +void QSslSocket_SetCaCertificates(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ certificates); +struct miqt_array /* of QSslCertificate* */ QSslSocket_CaCertificates(const QSslSocket* self); bool QSslSocket_AddDefaultCaCertificates(struct miqt_string path); void QSslSocket_AddDefaultCaCertificate(QSslCertificate* certificate); -void QSslSocket_AddDefaultCaCertificatesWithCertificates(struct miqt_array /* of QSslCertificate* */ certificates); -void QSslSocket_SetDefaultCaCertificates(struct miqt_array /* of QSslCertificate* */ certificates); -struct miqt_array QSslSocket_DefaultCaCertificates(); -struct miqt_array QSslSocket_SystemCaCertificates(); +void QSslSocket_AddDefaultCaCertificatesWithCertificates(struct miqt_array /* of QSslCertificate* */ certificates); +void QSslSocket_SetDefaultCaCertificates(struct miqt_array /* of QSslCertificate* */ certificates); +struct miqt_array /* of QSslCertificate* */ QSslSocket_DefaultCaCertificates(); +struct miqt_array /* of QSslCertificate* */ QSslSocket_SystemCaCertificates(); bool QSslSocket_WaitForConnected(QSslSocket* self); bool QSslSocket_WaitForEncrypted(QSslSocket* self); bool QSslSocket_WaitForReadyRead(QSslSocket* self); bool QSslSocket_WaitForBytesWritten(QSslSocket* self); bool QSslSocket_WaitForDisconnected(QSslSocket* self); -struct miqt_array QSslSocket_SslErrors(const QSslSocket* self); -struct miqt_array QSslSocket_SslHandshakeErrors(const QSslSocket* self); +struct miqt_array /* of QSslError* */ QSslSocket_SslErrors(const QSslSocket* self); +struct miqt_array /* of QSslError* */ QSslSocket_SslHandshakeErrors(const QSslSocket* self); bool QSslSocket_SupportsSsl(); long QSslSocket_SslLibraryVersionNumber(); struct miqt_string QSslSocket_SslLibraryVersionString(); long QSslSocket_SslLibraryBuildVersionNumber(); struct miqt_string QSslSocket_SslLibraryBuildVersionString(); -void QSslSocket_IgnoreSslErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors); +void QSslSocket_IgnoreSslErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors); void QSslSocket_StartClientEncryption(QSslSocket* self); void QSslSocket_StartServerEncryption(QSslSocket* self); void QSslSocket_IgnoreSslErrors2(QSslSocket* self); @@ -127,7 +128,7 @@ void QSslSocket_Encrypted(QSslSocket* self); void QSslSocket_connect_Encrypted(QSslSocket* self, intptr_t slot); void QSslSocket_PeerVerifyError(QSslSocket* self, QSslError* error); void QSslSocket_connect_PeerVerifyError(QSslSocket* self, intptr_t slot); -void QSslSocket_SslErrorsWithErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors); +void QSslSocket_SslErrorsWithErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors); void QSslSocket_connect_SslErrorsWithErrors(QSslSocket* self, intptr_t slot); void QSslSocket_ModeChanged(QSslSocket* self, int newMode); void QSslSocket_connect_ModeChanged(QSslSocket* self, intptr_t slot); diff --git a/qt/network/gen_qtcpserver.h b/qt/network/gen_qtcpserver.h index 9a0d7b83..c6b5d6a8 100644 --- a/qt/network/gen_qtcpserver.h +++ b/qt/network/gen_qtcpserver.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTCPSERVER_H -#define GEN_QTCPSERVER_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QTCPSERVER_H +#define MIQT_QT_NETWORK_GEN_QTCPSERVER_H #include #include diff --git a/qt/network/gen_qtcpsocket.h b/qt/network/gen_qtcpsocket.h index cbcbc013..273f76b6 100644 --- a/qt/network/gen_qtcpsocket.h +++ b/qt/network/gen_qtcpsocket.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTCPSOCKET_H -#define GEN_QTCPSOCKET_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QTCPSOCKET_H +#define MIQT_QT_NETWORK_GEN_QTCPSOCKET_H #include #include diff --git a/qt/network/gen_qudpsocket.h b/qt/network/gen_qudpsocket.h index be4754ec..0399a7d3 100644 --- a/qt/network/gen_qudpsocket.h +++ b/qt/network/gen_qudpsocket.h @@ -1,5 +1,6 @@ -#ifndef GEN_QUDPSOCKET_H -#define GEN_QUDPSOCKET_H +#pragma once +#ifndef MIQT_QT_NETWORK_GEN_QUDPSOCKET_H +#define MIQT_QT_NETWORK_GEN_QUDPSOCKET_H #include #include diff --git a/qt/printsupport/gen_qabstractprintdialog.cpp b/qt/printsupport/gen_qabstractprintdialog.cpp index 45c1cb73..5be06d65 100644 --- a/qt/printsupport/gen_qabstractprintdialog.cpp +++ b/qt/printsupport/gen_qabstractprintdialog.cpp @@ -65,7 +65,7 @@ bool QAbstractPrintDialog_IsOptionEnabled(const QAbstractPrintDialog* self, int return self->isOptionEnabled(static_cast(option)); } -void QAbstractPrintDialog_SetOptionTabs(QAbstractPrintDialog* self, struct miqt_array /* of QWidget* */ tabs) { +void QAbstractPrintDialog_SetOptionTabs(QAbstractPrintDialog* self, struct miqt_array /* of QWidget* */ tabs) { QList tabs_QList; tabs_QList.reserve(tabs.len); QWidget** tabs_arr = static_cast(tabs.data); diff --git a/qt/printsupport/gen_qabstractprintdialog.h b/qt/printsupport/gen_qabstractprintdialog.h index b083e649..dbf407e4 100644 --- a/qt/printsupport/gen_qabstractprintdialog.h +++ b/qt/printsupport/gen_qabstractprintdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTPRINTDIALOG_H -#define GEN_QABSTRACTPRINTDIALOG_H +#pragma once +#ifndef MIQT_QT_PRINTSUPPORT_GEN_QABSTRACTPRINTDIALOG_H +#define MIQT_QT_PRINTSUPPORT_GEN_QABSTRACTPRINTDIALOG_H #include #include @@ -35,7 +36,7 @@ void QAbstractPrintDialog_AddEnabledOption(QAbstractPrintDialog* self, int optio void QAbstractPrintDialog_SetEnabledOptions(QAbstractPrintDialog* self, int options); int QAbstractPrintDialog_EnabledOptions(const QAbstractPrintDialog* self); bool QAbstractPrintDialog_IsOptionEnabled(const QAbstractPrintDialog* self, int option); -void QAbstractPrintDialog_SetOptionTabs(QAbstractPrintDialog* self, struct miqt_array /* of QWidget* */ tabs); +void QAbstractPrintDialog_SetOptionTabs(QAbstractPrintDialog* self, struct miqt_array /* of QWidget* */ tabs); void QAbstractPrintDialog_SetPrintRange(QAbstractPrintDialog* self, int rangeVal); int QAbstractPrintDialog_PrintRange(const QAbstractPrintDialog* self); void QAbstractPrintDialog_SetMinMax(QAbstractPrintDialog* self, int min, int max); diff --git a/qt/printsupport/gen_qpagesetupdialog.h b/qt/printsupport/gen_qpagesetupdialog.h index 3fab2a2c..2d421764 100644 --- a/qt/printsupport/gen_qpagesetupdialog.h +++ b/qt/printsupport/gen_qpagesetupdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAGESETUPDIALOG_H -#define GEN_QPAGESETUPDIALOG_H +#pragma once +#ifndef MIQT_QT_PRINTSUPPORT_GEN_QPAGESETUPDIALOG_H +#define MIQT_QT_PRINTSUPPORT_GEN_QPAGESETUPDIALOG_H #include #include diff --git a/qt/printsupport/gen_qprintdialog.h b/qt/printsupport/gen_qprintdialog.h index 412fb07b..ee800cdd 100644 --- a/qt/printsupport/gen_qprintdialog.h +++ b/qt/printsupport/gen_qprintdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPRINTDIALOG_H -#define GEN_QPRINTDIALOG_H +#pragma once +#ifndef MIQT_QT_PRINTSUPPORT_GEN_QPRINTDIALOG_H +#define MIQT_QT_PRINTSUPPORT_GEN_QPRINTDIALOG_H #include #include diff --git a/qt/printsupport/gen_qprintengine.h b/qt/printsupport/gen_qprintengine.h index c29d9bd5..4d741e49 100644 --- a/qt/printsupport/gen_qprintengine.h +++ b/qt/printsupport/gen_qprintengine.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPRINTENGINE_H -#define GEN_QPRINTENGINE_H +#pragma once +#ifndef MIQT_QT_PRINTSUPPORT_GEN_QPRINTENGINE_H +#define MIQT_QT_PRINTSUPPORT_GEN_QPRINTENGINE_H #include #include diff --git a/qt/printsupport/gen_qprinter.cpp b/qt/printsupport/gen_qprinter.cpp index 02b7edb9..99d6063d 100644 --- a/qt/printsupport/gen_qprinter.cpp +++ b/qt/printsupport/gen_qprinter.cpp @@ -275,7 +275,7 @@ int QPrinter_Duplex(const QPrinter* self) { return static_cast(_ret); } -struct miqt_array QPrinter_SupportedResolutions(const QPrinter* self) { +struct miqt_array /* of int */ QPrinter_SupportedResolutions(const QPrinter* self) { QList _ret = self->supportedResolutions(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt/printsupport/gen_qprinter.h b/qt/printsupport/gen_qprinter.h index 489d2ce2..a758c4e9 100644 --- a/qt/printsupport/gen_qprinter.h +++ b/qt/printsupport/gen_qprinter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPRINTER_H -#define GEN_QPRINTER_H +#pragma once +#ifndef MIQT_QT_PRINTSUPPORT_GEN_QPRINTER_H +#define MIQT_QT_PRINTSUPPORT_GEN_QPRINTER_H #include #include @@ -88,7 +89,7 @@ void QPrinter_SetPaperSource(QPrinter* self, int paperSource); int QPrinter_PaperSource(const QPrinter* self); void QPrinter_SetDuplex(QPrinter* self, int duplex); int QPrinter_Duplex(const QPrinter* self); -struct miqt_array QPrinter_SupportedResolutions(const QPrinter* self); +struct miqt_array /* of int */ QPrinter_SupportedResolutions(const QPrinter* self); void QPrinter_SetFontEmbeddingEnabled(QPrinter* self, bool enable); bool QPrinter_FontEmbeddingEnabled(const QPrinter* self); void QPrinter_SetDoubleSidedPrinting(QPrinter* self, bool enable); diff --git a/qt/printsupport/gen_qprinterinfo.cpp b/qt/printsupport/gen_qprinterinfo.cpp index b76eb58a..a9f35a26 100644 --- a/qt/printsupport/gen_qprinterinfo.cpp +++ b/qt/printsupport/gen_qprinterinfo.cpp @@ -86,7 +86,7 @@ int QPrinterInfo_State(const QPrinterInfo* self) { return static_cast(_ret); } -struct miqt_array QPrinterInfo_SupportedPageSizes(const QPrinterInfo* self) { +struct miqt_array /* of QPageSize* */ QPrinterInfo_SupportedPageSizes(const QPrinterInfo* self) { QList _ret = self->supportedPageSizes(); // Convert QList<> from C++ memory to manually-managed C memory QPageSize** _arr = static_cast(malloc(sizeof(QPageSize*) * _ret.length())); @@ -115,7 +115,7 @@ QPageSize* QPrinterInfo_MaximumPhysicalPageSize(const QPrinterInfo* self) { return new QPageSize(self->maximumPhysicalPageSize()); } -struct miqt_array QPrinterInfo_SupportedPaperSizes(const QPrinterInfo* self) { +struct miqt_array /* of int */ QPrinterInfo_SupportedPaperSizes(const QPrinterInfo* self) { QList _ret = self->supportedPaperSizes(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -129,7 +129,37 @@ struct miqt_array QPrinterInfo_SupportedPaperSizes(const QPrinterInfo* self) { return _out; } -struct miqt_array QPrinterInfo_SupportedResolutions(const QPrinterInfo* self) { +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and QSizeF* */ QPrinterInfo_SupportedSizesWithNames(const QPrinterInfo* self) { + QList> _ret = self->supportedSizesWithNames(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of struct miqt_string and QSizeF* */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of struct miqt_string and QSizeF* */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + struct miqt_string* _lv_first_arr = static_cast(malloc(sizeof(struct miqt_string))); + QSizeF** _lv_second_arr = static_cast(malloc(sizeof(QSizeF*))); + QString _lv_first_ret = _lv_ret.first; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_first_b = _lv_first_ret.toUtf8(); + struct miqt_string _lv_first_ms; + _lv_first_ms.len = _lv_first_b.length(); + _lv_first_ms.data = static_cast(malloc(_lv_first_ms.len)); + memcpy(_lv_first_ms.data, _lv_first_b.data(), _lv_first_ms.len); + _lv_first_arr[0] = _lv_first_ms; + _lv_second_arr[0] = new QSizeF(_lv_ret.second); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + +struct miqt_array /* of int */ QPrinterInfo_SupportedResolutions(const QPrinterInfo* self) { QList _ret = self->supportedResolutions(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -147,7 +177,7 @@ int QPrinterInfo_DefaultDuplexMode(const QPrinterInfo* self) { return static_cast(_ret); } -struct miqt_array QPrinterInfo_SupportedDuplexModes(const QPrinterInfo* self) { +struct miqt_array /* of int */ QPrinterInfo_SupportedDuplexModes(const QPrinterInfo* self) { QList _ret = self->supportedDuplexModes(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -166,7 +196,7 @@ int QPrinterInfo_DefaultColorMode(const QPrinterInfo* self) { return static_cast(_ret); } -struct miqt_array QPrinterInfo_SupportedColorModes(const QPrinterInfo* self) { +struct miqt_array /* of int */ QPrinterInfo_SupportedColorModes(const QPrinterInfo* self) { QList _ret = self->supportedColorModes(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -180,7 +210,7 @@ struct miqt_array QPrinterInfo_SupportedColorModes(const QPrinterInfo* self) { return _out; } -struct miqt_array QPrinterInfo_AvailablePrinterNames() { +struct miqt_array /* of struct miqt_string */ QPrinterInfo_AvailablePrinterNames() { QStringList _ret = QPrinterInfo::availablePrinterNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -200,7 +230,7 @@ struct miqt_array QPrinterInfo_AvailablePrinterNames() { return _out; } -struct miqt_array QPrinterInfo_AvailablePrinters() { +struct miqt_array /* of QPrinterInfo* */ QPrinterInfo_AvailablePrinters() { QList _ret = QPrinterInfo::availablePrinters(); // Convert QList<> from C++ memory to manually-managed C memory QPrinterInfo** _arr = static_cast(malloc(sizeof(QPrinterInfo*) * _ret.length())); diff --git a/qt/printsupport/gen_qprinterinfo.go b/qt/printsupport/gen_qprinterinfo.go index 9299e318..82e8624e 100644 --- a/qt/printsupport/gen_qprinterinfo.go +++ b/qt/printsupport/gen_qprinterinfo.go @@ -157,6 +157,37 @@ func (this *QPrinterInfo) SupportedPaperSizes() []qt.QPagedPaintDevice__PageSize return _ret } +func (this *QPrinterInfo) SupportedSizesWithNames() []struct { + First string + Second qt.QSizeF +} { + var _ma C.struct_miqt_array = C.QPrinterInfo_SupportedSizesWithNames(this.h) + _ret := make([]struct { + First string + Second qt.QSizeF + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]*C.QSizeF)(unsafe.Pointer(_lv_mm.values)) + var _lv_first_ms C.struct_miqt_string = _lv_First_CArray[0] + _lv_first_ret := C.GoStringN(_lv_first_ms.data, C.int(int64(_lv_first_ms.len))) + C.free(unsafe.Pointer(_lv_first_ms.data)) + _lv_entry_First := _lv_first_ret + _lv_second_ret := _lv_Second_CArray[0] + _lv_second_goptr := qt.UnsafeNewQSizeF(unsafe.Pointer(_lv_second_ret)) + _lv_second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _lv_entry_Second := *_lv_second_goptr + + _ret[i] = struct { + First string + Second qt.QSizeF + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QPrinterInfo) SupportedResolutions() []int { var _ma C.struct_miqt_array = C.QPrinterInfo_SupportedResolutions(this.h) _ret := make([]int, int(_ma.len)) diff --git a/qt/printsupport/gen_qprinterinfo.h b/qt/printsupport/gen_qprinterinfo.h index 59860629..0547c43b 100644 --- a/qt/printsupport/gen_qprinterinfo.h +++ b/qt/printsupport/gen_qprinterinfo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPRINTERINFO_H -#define GEN_QPRINTERINFO_H +#pragma once +#ifndef MIQT_QT_PRINTSUPPORT_GEN_QPRINTERINFO_H +#define MIQT_QT_PRINTSUPPORT_GEN_QPRINTERINFO_H #include #include @@ -35,19 +36,20 @@ bool QPrinterInfo_IsNull(const QPrinterInfo* self); bool QPrinterInfo_IsDefault(const QPrinterInfo* self); bool QPrinterInfo_IsRemote(const QPrinterInfo* self); int QPrinterInfo_State(const QPrinterInfo* self); -struct miqt_array QPrinterInfo_SupportedPageSizes(const QPrinterInfo* self); +struct miqt_array /* of QPageSize* */ QPrinterInfo_SupportedPageSizes(const QPrinterInfo* self); QPageSize* QPrinterInfo_DefaultPageSize(const QPrinterInfo* self); bool QPrinterInfo_SupportsCustomPageSizes(const QPrinterInfo* self); QPageSize* QPrinterInfo_MinimumPhysicalPageSize(const QPrinterInfo* self); QPageSize* QPrinterInfo_MaximumPhysicalPageSize(const QPrinterInfo* self); -struct miqt_array QPrinterInfo_SupportedPaperSizes(const QPrinterInfo* self); -struct miqt_array QPrinterInfo_SupportedResolutions(const QPrinterInfo* self); +struct miqt_array /* of int */ QPrinterInfo_SupportedPaperSizes(const QPrinterInfo* self); +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and QSizeF* */ QPrinterInfo_SupportedSizesWithNames(const QPrinterInfo* self); +struct miqt_array /* of int */ QPrinterInfo_SupportedResolutions(const QPrinterInfo* self); int QPrinterInfo_DefaultDuplexMode(const QPrinterInfo* self); -struct miqt_array QPrinterInfo_SupportedDuplexModes(const QPrinterInfo* self); +struct miqt_array /* of int */ QPrinterInfo_SupportedDuplexModes(const QPrinterInfo* self); int QPrinterInfo_DefaultColorMode(const QPrinterInfo* self); -struct miqt_array QPrinterInfo_SupportedColorModes(const QPrinterInfo* self); -struct miqt_array QPrinterInfo_AvailablePrinterNames(); -struct miqt_array QPrinterInfo_AvailablePrinters(); +struct miqt_array /* of int */ QPrinterInfo_SupportedColorModes(const QPrinterInfo* self); +struct miqt_array /* of struct miqt_string */ QPrinterInfo_AvailablePrinterNames(); +struct miqt_array /* of QPrinterInfo* */ QPrinterInfo_AvailablePrinters(); struct miqt_string QPrinterInfo_DefaultPrinterName(); QPrinterInfo* QPrinterInfo_DefaultPrinter(); QPrinterInfo* QPrinterInfo_PrinterInfo(struct miqt_string printerName); diff --git a/qt/printsupport/gen_qprintpreviewdialog.h b/qt/printsupport/gen_qprintpreviewdialog.h index 10ccb4a7..cbb10122 100644 --- a/qt/printsupport/gen_qprintpreviewdialog.h +++ b/qt/printsupport/gen_qprintpreviewdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPRINTPREVIEWDIALOG_H -#define GEN_QPRINTPREVIEWDIALOG_H +#pragma once +#ifndef MIQT_QT_PRINTSUPPORT_GEN_QPRINTPREVIEWDIALOG_H +#define MIQT_QT_PRINTSUPPORT_GEN_QPRINTPREVIEWDIALOG_H #include #include diff --git a/qt/printsupport/gen_qprintpreviewwidget.h b/qt/printsupport/gen_qprintpreviewwidget.h index 25e3cf67..182f80b0 100644 --- a/qt/printsupport/gen_qprintpreviewwidget.h +++ b/qt/printsupport/gen_qprintpreviewwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPRINTPREVIEWWIDGET_H -#define GEN_QPRINTPREVIEWWIDGET_H +#pragma once +#ifndef MIQT_QT_PRINTSUPPORT_GEN_QPRINTPREVIEWWIDGET_H +#define MIQT_QT_PRINTSUPPORT_GEN_QPRINTPREVIEWWIDGET_H #include #include diff --git a/qt6/cbor/gen_qcborarray.cpp b/qt6/cbor/gen_qcborarray.cpp index 36e37a97..6fdc4350 100644 --- a/qt6/cbor/gen_qcborarray.cpp +++ b/qt6/cbor/gen_qcborarray.cpp @@ -221,7 +221,7 @@ QCborArray* QCborArray_OperatorShiftLeft(QCborArray* self, QCborValue* v) { return &_ret; } -QCborArray* QCborArray_FromStringList(struct miqt_array /* of struct miqt_string */ list) { +QCborArray* QCborArray_FromStringList(struct miqt_array /* of struct miqt_string */ list) { QStringList list_QList; list_QList.reserve(list.len); struct miqt_string* list_arr = static_cast(list.data); diff --git a/qt6/cbor/gen_qcborarray.h b/qt6/cbor/gen_qcborarray.h index 0ca6b1e1..69076b66 100644 --- a/qt6/cbor/gen_qcborarray.h +++ b/qt6/cbor/gen_qcborarray.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCBORARRAY_H -#define GEN_QCBORARRAY_H +#pragma once +#ifndef MIQT_QT6_CBOR_GEN_QCBORARRAY_H +#define MIQT_QT6_CBOR_GEN_QCBORARRAY_H #include #include @@ -88,7 +89,7 @@ bool QCborArray_Empty(const QCborArray* self); QCborArray* QCborArray_OperatorPlus(const QCborArray* self, QCborValue* v); QCborArray* QCborArray_OperatorPlusAssign(QCborArray* self, QCborValue* v); QCborArray* QCborArray_OperatorShiftLeft(QCborArray* self, QCborValue* v); -QCborArray* QCborArray_FromStringList(struct miqt_array /* of struct miqt_string */ list); +QCborArray* QCborArray_FromStringList(struct miqt_array /* of struct miqt_string */ list); QCborArray* QCborArray_FromJsonArray(QJsonArray* array); QJsonArray* QCborArray_ToJsonArray(const QCborArray* self); void QCborArray_Delete(QCborArray* self); diff --git a/qt6/cbor/gen_qcborcommon.h b/qt6/cbor/gen_qcborcommon.h index 3c893790..3237ee4b 100644 --- a/qt6/cbor/gen_qcborcommon.h +++ b/qt6/cbor/gen_qcborcommon.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCBORCOMMON_H -#define GEN_QCBORCOMMON_H +#pragma once +#ifndef MIQT_QT6_CBOR_GEN_QCBORCOMMON_H +#define MIQT_QT6_CBOR_GEN_QCBORCOMMON_H #include #include diff --git a/qt6/cbor/gen_qcbormap.cpp b/qt6/cbor/gen_qcbormap.cpp index 01c071c7..7ce888bf 100644 --- a/qt6/cbor/gen_qcbormap.cpp +++ b/qt6/cbor/gen_qcbormap.cpp @@ -47,7 +47,7 @@ void QCborMap_Clear(QCborMap* self) { self->clear(); } -struct miqt_array QCborMap_Keys(const QCborMap* self) { +struct miqt_array /* of QCborValue* */ QCborMap_Keys(const QCborMap* self) { QVector _ret = self->keys(); // Convert QList<> from C++ memory to manually-managed C memory QCborValue** _arr = static_cast(malloc(sizeof(QCborValue*) * _ret.length())); @@ -258,7 +258,16 @@ QCborMap__Iterator* QCborMap_Insert4(QCborMap* self, QCborValue* key, QCborValue return new QCborMap::Iterator(self->insert(*key, *value_)); } -QCborMap* QCborMap_FromVariantMap(struct miqt_map mapVal) { +QCborMap__Iterator* QCborMap_InsertWithQCborMapvalueType(QCborMap* self, struct miqt_map /* tuple of QCborValue* and QCborValue* */ v) { + QCborMap::value_type v_QPair; + QCborValue** v_first_arr = static_cast(v.keys); + QCborValue** v_second_arr = static_cast(v.values); + v_QPair.first = *(v_first_arr[0]); + v_QPair.second = *(v_second_arr[0]); + return new QCborMap::Iterator(self->insert(v_QPair)); +} + +QCborMap* QCborMap_FromVariantMap(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal) { QVariantMap mapVal_QMap; struct miqt_string* mapVal_karr = static_cast(mapVal.keys); QVariant** mapVal_varr = static_cast(mapVal.values); @@ -269,7 +278,7 @@ QCborMap* QCborMap_FromVariantMap(struct miqt_map mapVal) { return new QCborMap(QCborMap::fromVariantMap(mapVal_QMap)); } -QCborMap* QCborMap_FromVariantHash(struct miqt_map hash) { +QCborMap* QCborMap_FromVariantHash(struct miqt_map /* of struct miqt_string to QVariant* */ hash) { QVariantHash hash_QMap; hash_QMap.reserve(hash.len); struct miqt_string* hash_karr = static_cast(hash.keys); @@ -285,7 +294,7 @@ QCborMap* QCborMap_FromJsonObject(QJsonObject* o) { return new QCborMap(QCborMap::fromJsonObject(*o)); } -struct miqt_map QCborMap_ToVariantMap(const QCborMap* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QCborMap_ToVariantMap(const QCborMap* self) { QVariantMap _ret = self->toVariantMap(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); @@ -310,7 +319,7 @@ struct miqt_map QCborMap_ToVariantMap(const QCborMap* self) { return _out; } -struct miqt_map QCborMap_ToVariantHash(const QCborMap* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QCborMap_ToVariantHash(const QCborMap* self) { QVariantHash _ret = self->toVariantHash(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); @@ -355,6 +364,20 @@ void QCborMap__Iterator_OperatorAssign(QCborMap__Iterator* self, QCborMap__Itera self->operator=(*other); } +struct miqt_map /* tuple of QCborValueRef* and QCborValueRef* */ QCborMap__Iterator_OperatorMultiply(const QCborMap__Iterator* self) { + QCborMap::Iterator::value_type _ret = self->operator*(); + // Convert QPair<> from C++ memory to manually-managed C memory + QCborValueRef** _first_arr = static_cast(malloc(sizeof(QCborValueRef*))); + QCborValueRef** _second_arr = static_cast(malloc(sizeof(QCborValueRef*))); + _first_arr[0] = new QCborValueRef(_ret.first); + _second_arr[0] = new QCborValueRef(_ret.second); + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + QCborValueRef* QCborMap__Iterator_OperatorMinusGreater(const QCborMap__Iterator* self) { return self->operator->(); } @@ -476,6 +499,20 @@ void QCborMap__ConstIterator_OperatorAssign(QCborMap__ConstIterator* self, QCbor self->operator=(*other); } +struct miqt_map /* tuple of QCborValueRef* and QCborValueRef* */ QCborMap__ConstIterator_OperatorMultiply(const QCborMap__ConstIterator* self) { + QCborMap::ConstIterator::value_type _ret = self->operator*(); + // Convert QPair<> from C++ memory to manually-managed C memory + QCborValueRef** _first_arr = static_cast(malloc(sizeof(QCborValueRef*))); + QCborValueRef** _second_arr = static_cast(malloc(sizeof(QCborValueRef*))); + _first_arr[0] = new QCborValueRef(_ret.first); + _second_arr[0] = new QCborValueRef(_ret.second); + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + QCborValueRef* QCborMap__ConstIterator_OperatorMinusGreater(const QCborMap__ConstIterator* self) { return (QCborValueRef*) self->operator->(); } diff --git a/qt6/cbor/gen_qcbormap.go b/qt6/cbor/gen_qcbormap.go index f1e996a8..e6f1d1f4 100644 --- a/qt6/cbor/gen_qcbormap.go +++ b/qt6/cbor/gen_qcbormap.go @@ -431,6 +431,27 @@ func (this *QCborMap) Insert4(key *QCborValue, value_ *QCborValue) *QCborMap__It return _goptr } +func (this *QCborMap) InsertWithQCborMapvalueType(v struct { + First QCborValue + Second QCborValue +}) *QCborMap__Iterator { + v_First_CArray := (*[0xffff]*C.QCborValue)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(v_First_CArray)) + v_Second_CArray := (*[0xffff]*C.QCborValue)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(v_Second_CArray)) + v_First_CArray[0] = v.First.cPointer() + v_Second_CArray[0] = v.Second.cPointer() + v_pair := C.struct_miqt_map{ + len: 1, + keys: unsafe.Pointer(v_First_CArray), + values: unsafe.Pointer(v_Second_CArray), + } + _ret := C.QCborMap_InsertWithQCborMapvalueType(this.h, v_pair) + _goptr := newQCborMap__Iterator(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + func QCborMap_FromVariantMap(mapVal map[string]qt6.QVariant) *QCborMap { mapVal_Keys_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(mapVal)))) defer C.free(unsafe.Pointer(mapVal_Keys_CArray)) @@ -596,6 +617,29 @@ func (this *QCborMap__Iterator) OperatorAssign(other *QCborMap__Iterator) { C.QCborMap__Iterator_OperatorAssign(this.h, other.cPointer()) } +func (this *QCborMap__Iterator) OperatorMultiply() struct { + First QCborValueRef + Second QCborValueRef +} { + var _mm C.struct_miqt_map = C.QCborMap__Iterator_OperatorMultiply(this.h) + _First_CArray := (*[0xffff]*C.QCborValueRef)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]*C.QCborValueRef)(unsafe.Pointer(_mm.values)) + _first_ret := _First_CArray[0] + _first_goptr := newQCborValueRef(_first_ret) + _first_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _entry_First := *_first_goptr + + _second_ret := _Second_CArray[0] + _second_goptr := newQCborValueRef(_second_ret) + _second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _entry_Second := *_second_goptr + + return struct { + First QCborValueRef + Second QCborValueRef + }{First: _entry_First, Second: _entry_Second} +} + func (this *QCborMap__Iterator) OperatorMinusGreater() *QCborValueRef { return UnsafeNewQCborValueRef(unsafe.Pointer(C.QCborMap__Iterator_OperatorMinusGreater(this.h))) } @@ -769,6 +813,29 @@ func (this *QCborMap__ConstIterator) OperatorAssign(other *QCborMap__ConstIterat C.QCborMap__ConstIterator_OperatorAssign(this.h, other.cPointer()) } +func (this *QCborMap__ConstIterator) OperatorMultiply() struct { + First QCborValueRef + Second QCborValueRef +} { + var _mm C.struct_miqt_map = C.QCborMap__ConstIterator_OperatorMultiply(this.h) + _First_CArray := (*[0xffff]*C.QCborValueRef)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]*C.QCborValueRef)(unsafe.Pointer(_mm.values)) + _first_ret := _First_CArray[0] + _first_goptr := newQCborValueRef(_first_ret) + _first_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _entry_First := *_first_goptr + + _second_ret := _Second_CArray[0] + _second_goptr := newQCborValueRef(_second_ret) + _second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _entry_Second := *_second_goptr + + return struct { + First QCborValueRef + Second QCborValueRef + }{First: _entry_First, Second: _entry_Second} +} + func (this *QCborMap__ConstIterator) OperatorMinusGreater() *QCborValueRef { return UnsafeNewQCborValueRef(unsafe.Pointer(C.QCborMap__ConstIterator_OperatorMinusGreater(this.h))) } diff --git a/qt6/cbor/gen_qcbormap.h b/qt6/cbor/gen_qcbormap.h index 527178ba..f7fc3749 100644 --- a/qt6/cbor/gen_qcbormap.h +++ b/qt6/cbor/gen_qcbormap.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCBORMAP_H -#define GEN_QCBORMAP_H +#pragma once +#ifndef MIQT_QT6_CBOR_GEN_QCBORMAP_H +#define MIQT_QT6_CBOR_GEN_QCBORMAP_H #include #include @@ -47,7 +48,7 @@ QCborValue* QCborMap_ToCborValue(const QCborMap* self); ptrdiff_t QCborMap_Size(const QCborMap* self); bool QCborMap_IsEmpty(const QCborMap* self); void QCborMap_Clear(QCborMap* self); -struct miqt_array QCborMap_Keys(const QCborMap* self); +struct miqt_array /* of QCborValue* */ QCborMap_Keys(const QCborMap* self); QCborValue* QCborMap_Value(const QCborMap* self, long long key); QCborValue* QCborMap_Value2(const QCborMap* self, struct miqt_string key); QCborValue* QCborMap_Value3(const QCborMap* self, QCborValue* key); @@ -95,17 +96,19 @@ QCborMap__ConstIterator* QCborMap_Find7(const QCborMap* self, QCborValue* key); QCborMap__Iterator* QCborMap_Insert(QCborMap* self, long long key, QCborValue* value_); QCborMap__Iterator* QCborMap_Insert3(QCborMap* self, struct miqt_string key, QCborValue* value_); QCborMap__Iterator* QCborMap_Insert4(QCborMap* self, QCborValue* key, QCborValue* value_); -QCborMap* QCborMap_FromVariantMap(struct miqt_map mapVal); -QCborMap* QCborMap_FromVariantHash(struct miqt_map hash); +QCborMap__Iterator* QCborMap_InsertWithQCborMapvalueType(QCborMap* self, struct miqt_map /* tuple of QCborValue* and QCborValue* */ v); +QCborMap* QCborMap_FromVariantMap(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal); +QCborMap* QCborMap_FromVariantHash(struct miqt_map /* of struct miqt_string to QVariant* */ hash); QCborMap* QCborMap_FromJsonObject(QJsonObject* o); -struct miqt_map QCborMap_ToVariantMap(const QCborMap* self); -struct miqt_map QCborMap_ToVariantHash(const QCborMap* self); +struct miqt_map /* of struct miqt_string to QVariant* */ QCborMap_ToVariantMap(const QCborMap* self); +struct miqt_map /* of struct miqt_string to QVariant* */ QCborMap_ToVariantHash(const QCborMap* self); QJsonObject* QCborMap_ToJsonObject(const QCborMap* self); void QCborMap_Delete(QCborMap* self); QCborMap__Iterator* QCborMap__Iterator_new(); QCborMap__Iterator* QCborMap__Iterator_new2(QCborMap__Iterator* param1); void QCborMap__Iterator_OperatorAssign(QCborMap__Iterator* self, QCborMap__Iterator* other); +struct miqt_map /* tuple of QCborValueRef* and QCborValueRef* */ QCborMap__Iterator_OperatorMultiply(const QCborMap__Iterator* self); QCborValueRef* QCborMap__Iterator_OperatorMinusGreater(const QCborMap__Iterator* self); QCborValue* QCborMap__Iterator_Key(const QCborMap__Iterator* self); QCborValueRef* QCborMap__Iterator_Value(const QCborMap__Iterator* self); @@ -135,6 +138,7 @@ void QCborMap__Iterator_Delete(QCborMap__Iterator* self); QCborMap__ConstIterator* QCborMap__ConstIterator_new(); QCborMap__ConstIterator* QCborMap__ConstIterator_new2(QCborMap__ConstIterator* param1); void QCborMap__ConstIterator_OperatorAssign(QCborMap__ConstIterator* self, QCborMap__ConstIterator* other); +struct miqt_map /* tuple of QCborValueRef* and QCborValueRef* */ QCborMap__ConstIterator_OperatorMultiply(const QCborMap__ConstIterator* self); QCborValueRef* QCborMap__ConstIterator_OperatorMinusGreater(const QCborMap__ConstIterator* self); QCborValue* QCborMap__ConstIterator_Key(const QCborMap__ConstIterator* self); QCborValueRef* QCborMap__ConstIterator_Value(const QCborMap__ConstIterator* self); diff --git a/qt6/cbor/gen_qcborstreamreader.h b/qt6/cbor/gen_qcborstreamreader.h index bcca845b..9a5f24d8 100644 --- a/qt6/cbor/gen_qcborstreamreader.h +++ b/qt6/cbor/gen_qcborstreamreader.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCBORSTREAMREADER_H -#define GEN_QCBORSTREAMREADER_H +#pragma once +#ifndef MIQT_QT6_CBOR_GEN_QCBORSTREAMREADER_H +#define MIQT_QT6_CBOR_GEN_QCBORSTREAMREADER_H #include #include diff --git a/qt6/cbor/gen_qcborstreamwriter.h b/qt6/cbor/gen_qcborstreamwriter.h index ecc958d7..0189156d 100644 --- a/qt6/cbor/gen_qcborstreamwriter.h +++ b/qt6/cbor/gen_qcborstreamwriter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCBORSTREAMWRITER_H -#define GEN_QCBORSTREAMWRITER_H +#pragma once +#ifndef MIQT_QT6_CBOR_GEN_QCBORSTREAMWRITER_H +#define MIQT_QT6_CBOR_GEN_QCBORSTREAMWRITER_H #include #include diff --git a/qt6/cbor/gen_qcborvalue.h b/qt6/cbor/gen_qcborvalue.h index fc5d8c0d..d43d635b 100644 --- a/qt6/cbor/gen_qcborvalue.h +++ b/qt6/cbor/gen_qcborvalue.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCBORVALUE_H -#define GEN_QCBORVALUE_H +#pragma once +#ifndef MIQT_QT6_CBOR_GEN_QCBORVALUE_H +#define MIQT_QT6_CBOR_GEN_QCBORVALUE_H #include #include diff --git a/qt6/gen_qabstractanimation.h b/qt6/gen_qabstractanimation.h index d33e7b5d..20c6940e 100644 --- a/qt6/gen_qabstractanimation.h +++ b/qt6/gen_qabstractanimation.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTANIMATION_H -#define GEN_QABSTRACTANIMATION_H +#pragma once +#ifndef MIQT_QT6_GEN_QABSTRACTANIMATION_H +#define MIQT_QT6_GEN_QABSTRACTANIMATION_H #include #include diff --git a/qt6/gen_qabstractbutton.h b/qt6/gen_qabstractbutton.h index 76829522..0188c90c 100644 --- a/qt6/gen_qabstractbutton.h +++ b/qt6/gen_qabstractbutton.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTBUTTON_H -#define GEN_QABSTRACTBUTTON_H +#pragma once +#ifndef MIQT_QT6_GEN_QABSTRACTBUTTON_H +#define MIQT_QT6_GEN_QABSTRACTBUTTON_H #include #include diff --git a/qt6/gen_qabstracteventdispatcher.cpp b/qt6/gen_qabstracteventdispatcher.cpp index 637a9109..93f9f0ef 100644 --- a/qt6/gen_qabstracteventdispatcher.cpp +++ b/qt6/gen_qabstracteventdispatcher.cpp @@ -65,7 +65,7 @@ bool QAbstractEventDispatcher_UnregisterTimers(QAbstractEventDispatcher* self, Q return self->unregisterTimers(object); } -struct miqt_array QAbstractEventDispatcher_RegisteredTimers(const QAbstractEventDispatcher* self, QObject* object) { +struct miqt_array /* of QAbstractEventDispatcher__TimerInfo* */ QAbstractEventDispatcher_RegisteredTimers(const QAbstractEventDispatcher* self, QObject* object) { QList _ret = self->registeredTimers(object); // Convert QList<> from C++ memory to manually-managed C memory QAbstractEventDispatcher__TimerInfo** _arr = static_cast(malloc(sizeof(QAbstractEventDispatcher__TimerInfo*) * _ret.length())); diff --git a/qt6/gen_qabstracteventdispatcher.h b/qt6/gen_qabstracteventdispatcher.h index dbae1d7e..3cdcd034 100644 --- a/qt6/gen_qabstracteventdispatcher.h +++ b/qt6/gen_qabstracteventdispatcher.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTEVENTDISPATCHER_H -#define GEN_QABSTRACTEVENTDISPATCHER_H +#pragma once +#ifndef MIQT_QT6_GEN_QABSTRACTEVENTDISPATCHER_H +#define MIQT_QT6_GEN_QABSTRACTEVENTDISPATCHER_H #include #include @@ -48,7 +49,7 @@ int QAbstractEventDispatcher_RegisterTimer(QAbstractEventDispatcher* self, long void QAbstractEventDispatcher_RegisterTimer2(QAbstractEventDispatcher* self, int timerId, long long interval, int timerType, QObject* object); bool QAbstractEventDispatcher_UnregisterTimer(QAbstractEventDispatcher* self, int timerId); bool QAbstractEventDispatcher_UnregisterTimers(QAbstractEventDispatcher* self, QObject* object); -struct miqt_array QAbstractEventDispatcher_RegisteredTimers(const QAbstractEventDispatcher* self, QObject* object); +struct miqt_array /* of QAbstractEventDispatcher__TimerInfo* */ QAbstractEventDispatcher_RegisteredTimers(const QAbstractEventDispatcher* self, QObject* object); int QAbstractEventDispatcher_RemainingTime(QAbstractEventDispatcher* self, int timerId); void QAbstractEventDispatcher_WakeUp(QAbstractEventDispatcher* self); void QAbstractEventDispatcher_Interrupt(QAbstractEventDispatcher* self); diff --git a/qt6/gen_qabstractfileiconprovider.h b/qt6/gen_qabstractfileiconprovider.h index beef13fd..3ab77370 100644 --- a/qt6/gen_qabstractfileiconprovider.h +++ b/qt6/gen_qabstractfileiconprovider.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTFILEICONPROVIDER_H -#define GEN_QABSTRACTFILEICONPROVIDER_H +#pragma once +#ifndef MIQT_QT6_GEN_QABSTRACTFILEICONPROVIDER_H +#define MIQT_QT6_GEN_QABSTRACTFILEICONPROVIDER_H #include #include diff --git a/qt6/gen_qabstractitemdelegate.cpp b/qt6/gen_qabstractitemdelegate.cpp index a7912017..75a03001 100644 --- a/qt6/gen_qabstractitemdelegate.cpp +++ b/qt6/gen_qabstractitemdelegate.cpp @@ -72,7 +72,7 @@ bool QAbstractItemDelegate_HelpEvent(QAbstractItemDelegate* self, QHelpEvent* ev return self->helpEvent(event, view, *option, *index); } -struct miqt_array QAbstractItemDelegate_PaintingRoles(const QAbstractItemDelegate* self) { +struct miqt_array /* of int */ QAbstractItemDelegate_PaintingRoles(const QAbstractItemDelegate* self) { QList _ret = self->paintingRoles(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt6/gen_qabstractitemdelegate.h b/qt6/gen_qabstractitemdelegate.h index 1f670dbe..27fe1a35 100644 --- a/qt6/gen_qabstractitemdelegate.h +++ b/qt6/gen_qabstractitemdelegate.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTITEMDELEGATE_H -#define GEN_QABSTRACTITEMDELEGATE_H +#pragma once +#ifndef MIQT_QT6_GEN_QABSTRACTITEMDELEGATE_H +#define MIQT_QT6_GEN_QABSTRACTITEMDELEGATE_H #include #include @@ -51,7 +52,7 @@ void QAbstractItemDelegate_SetModelData(const QAbstractItemDelegate* self, QWidg void QAbstractItemDelegate_UpdateEditorGeometry(const QAbstractItemDelegate* self, QWidget* editor, QStyleOptionViewItem* option, QModelIndex* index); bool QAbstractItemDelegate_EditorEvent(QAbstractItemDelegate* self, QEvent* event, QAbstractItemModel* model, QStyleOptionViewItem* option, QModelIndex* index); bool QAbstractItemDelegate_HelpEvent(QAbstractItemDelegate* self, QHelpEvent* event, QAbstractItemView* view, QStyleOptionViewItem* option, QModelIndex* index); -struct miqt_array QAbstractItemDelegate_PaintingRoles(const QAbstractItemDelegate* self); +struct miqt_array /* of int */ QAbstractItemDelegate_PaintingRoles(const QAbstractItemDelegate* self); void QAbstractItemDelegate_CommitData(QAbstractItemDelegate* self, QWidget* editor); void QAbstractItemDelegate_connect_CommitData(QAbstractItemDelegate* self, intptr_t slot); void QAbstractItemDelegate_CloseEditor(QAbstractItemDelegate* self, QWidget* editor); diff --git a/qt6/gen_qabstractitemmodel.cpp b/qt6/gen_qabstractitemmodel.cpp index 84d69948..1960bb38 100644 --- a/qt6/gen_qabstractitemmodel.cpp +++ b/qt6/gen_qabstractitemmodel.cpp @@ -358,7 +358,7 @@ bool QAbstractItemModel_SetHeaderData(QAbstractItemModel* self, int section, int return self->setHeaderData(static_cast(section), static_cast(orientation), *value); } -struct miqt_map QAbstractItemModel_ItemData(const QAbstractItemModel* self, QModelIndex* index) { +struct miqt_map /* of int to QVariant* */ QAbstractItemModel_ItemData(const QAbstractItemModel* self, QModelIndex* index) { QMap _ret = self->itemData(*index); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -376,7 +376,7 @@ struct miqt_map QAbstractItemModel_ItemData(const QAbstractItemModel* self, QMod return _out; } -bool QAbstractItemModel_SetItemData(QAbstractItemModel* self, QModelIndex* index, struct miqt_map roles) { +bool QAbstractItemModel_SetItemData(QAbstractItemModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) { QMap roles_QMap; int* roles_karr = static_cast(roles.keys); QVariant** roles_varr = static_cast(roles.values); @@ -390,7 +390,7 @@ bool QAbstractItemModel_ClearItemData(QAbstractItemModel* self, QModelIndex* ind return self->clearItemData(*index); } -struct miqt_array QAbstractItemModel_MimeTypes(const QAbstractItemModel* self) { +struct miqt_array /* of struct miqt_string */ QAbstractItemModel_MimeTypes(const QAbstractItemModel* self) { QStringList _ret = self->mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -410,7 +410,7 @@ struct miqt_array QAbstractItemModel_MimeTypes(const QAbstractItemModel* self) { return _out; } -QMimeData* QAbstractItemModel_MimeData(const QAbstractItemModel* self, struct miqt_array /* of QModelIndex* */ indexes) { +QMimeData* QAbstractItemModel_MimeData(const QAbstractItemModel* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); @@ -507,7 +507,7 @@ QModelIndex* QAbstractItemModel_Buddy(const QAbstractItemModel* self, QModelInde return new QModelIndex(self->buddy(*index)); } -struct miqt_array QAbstractItemModel_Match(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value) { +struct miqt_array /* of QModelIndex* */ QAbstractItemModel_Match(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value) { QModelIndexList _ret = self->match(*start, static_cast(role), *value); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -524,7 +524,7 @@ QSize* QAbstractItemModel_Span(const QAbstractItemModel* self, QModelIndex* inde return new QSize(self->span(*index)); } -struct miqt_map QAbstractItemModel_RoleNames(const QAbstractItemModel* self) { +struct miqt_map /* of int to struct miqt_string */ QAbstractItemModel_RoleNames(const QAbstractItemModel* self) { QHash _ret = self->roleNames(); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -707,7 +707,7 @@ void QAbstractItemModel_Sort2(QAbstractItemModel* self, int column, int order) { self->sort(static_cast(column), static_cast(order)); } -struct miqt_array QAbstractItemModel_Match4(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits) { +struct miqt_array /* of QModelIndex* */ QAbstractItemModel_Match4(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits) { QModelIndexList _ret = self->match(*start, static_cast(role), *value, static_cast(hits)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -720,7 +720,7 @@ struct miqt_array QAbstractItemModel_Match4(const QAbstractItemModel* self, QMod return _out; } -struct miqt_array QAbstractItemModel_Match5(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) { +struct miqt_array /* of QModelIndex* */ QAbstractItemModel_Match5(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) { QModelIndexList _ret = self->match(*start, static_cast(role), *value, static_cast(hits), static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -737,7 +737,7 @@ bool QAbstractItemModel_CheckIndex2(const QAbstractItemModel* self, QModelIndex* return self->checkIndex(*index, static_cast(options)); } -void QAbstractItemModel_DataChanged3(QAbstractItemModel* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles) { +void QAbstractItemModel_DataChanged3(QAbstractItemModel* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles) { QList roles_QList; roles_QList.reserve(roles.len); int* roles_arr = static_cast(roles.data); @@ -764,12 +764,12 @@ void QAbstractItemModel_connect_DataChanged3(QAbstractItemModel* self, intptr_t struct miqt_array roles_out; roles_out.len = roles_ret.length(); roles_out.data = static_cast(roles_arr); - struct miqt_array sigval3 = roles_out; + struct miqt_array /* of int */ sigval3 = roles_out; miqt_exec_callback_QAbstractItemModel_DataChanged3(slot, sigval1, sigval2, sigval3); }); } -void QAbstractItemModel_LayoutChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents) { +void QAbstractItemModel_LayoutChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents) { QList parents_QList; parents_QList.reserve(parents.len); QPersistentModelIndex** parents_arr = static_cast(parents.data); @@ -790,12 +790,12 @@ void QAbstractItemModel_connect_LayoutChanged1(QAbstractItemModel* self, intptr_ struct miqt_array parents_out; parents_out.len = parents_ret.length(); parents_out.data = static_cast(parents_arr); - struct miqt_array sigval1 = parents_out; + struct miqt_array /* of QPersistentModelIndex* */ sigval1 = parents_out; miqt_exec_callback_QAbstractItemModel_LayoutChanged1(slot, sigval1); }); } -void QAbstractItemModel_LayoutChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint) { +void QAbstractItemModel_LayoutChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint) { QList parents_QList; parents_QList.reserve(parents.len); QPersistentModelIndex** parents_arr = static_cast(parents.data); @@ -816,14 +816,14 @@ void QAbstractItemModel_connect_LayoutChanged2(QAbstractItemModel* self, intptr_ struct miqt_array parents_out; parents_out.len = parents_ret.length(); parents_out.data = static_cast(parents_arr); - struct miqt_array sigval1 = parents_out; + struct miqt_array /* of QPersistentModelIndex* */ sigval1 = parents_out; QAbstractItemModel::LayoutChangeHint hint_ret = hint; int sigval2 = static_cast(hint_ret); miqt_exec_callback_QAbstractItemModel_LayoutChanged2(slot, sigval1, sigval2); }); } -void QAbstractItemModel_LayoutAboutToBeChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents) { +void QAbstractItemModel_LayoutAboutToBeChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents) { QList parents_QList; parents_QList.reserve(parents.len); QPersistentModelIndex** parents_arr = static_cast(parents.data); @@ -844,12 +844,12 @@ void QAbstractItemModel_connect_LayoutAboutToBeChanged1(QAbstractItemModel* self struct miqt_array parents_out; parents_out.len = parents_ret.length(); parents_out.data = static_cast(parents_arr); - struct miqt_array sigval1 = parents_out; + struct miqt_array /* of QPersistentModelIndex* */ sigval1 = parents_out; miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged1(slot, sigval1); }); } -void QAbstractItemModel_LayoutAboutToBeChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint) { +void QAbstractItemModel_LayoutAboutToBeChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint) { QList parents_QList; parents_QList.reserve(parents.len); QPersistentModelIndex** parents_arr = static_cast(parents.data); @@ -870,7 +870,7 @@ void QAbstractItemModel_connect_LayoutAboutToBeChanged2(QAbstractItemModel* self struct miqt_array parents_out; parents_out.len = parents_ret.length(); parents_out.data = static_cast(parents_arr); - struct miqt_array sigval1 = parents_out; + struct miqt_array /* of QPersistentModelIndex* */ sigval1 = parents_out; QAbstractItemModel::LayoutChangeHint hint_ret = hint; int sigval2 = static_cast(hint_ret); miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged2(slot, sigval1, sigval2); diff --git a/qt6/gen_qabstractitemmodel.h b/qt6/gen_qabstractitemmodel.h index d1d455e3..634045d2 100644 --- a/qt6/gen_qabstractitemmodel.h +++ b/qt6/gen_qabstractitemmodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTITEMMODEL_H -#define GEN_QABSTRACTITEMMODEL_H +#pragma once +#ifndef MIQT_QT6_GEN_QABSTRACTITEMMODEL_H +#define MIQT_QT6_GEN_QABSTRACTITEMMODEL_H #include #include @@ -125,11 +126,11 @@ QVariant* QAbstractItemModel_Data(const QAbstractItemModel* self, QModelIndex* i bool QAbstractItemModel_SetData(QAbstractItemModel* self, QModelIndex* index, QVariant* value); QVariant* QAbstractItemModel_HeaderData(const QAbstractItemModel* self, int section, int orientation); bool QAbstractItemModel_SetHeaderData(QAbstractItemModel* self, int section, int orientation, QVariant* value); -struct miqt_map QAbstractItemModel_ItemData(const QAbstractItemModel* self, QModelIndex* index); -bool QAbstractItemModel_SetItemData(QAbstractItemModel* self, QModelIndex* index, struct miqt_map roles); +struct miqt_map /* of int to QVariant* */ QAbstractItemModel_ItemData(const QAbstractItemModel* self, QModelIndex* index); +bool QAbstractItemModel_SetItemData(QAbstractItemModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles); bool QAbstractItemModel_ClearItemData(QAbstractItemModel* self, QModelIndex* index); -struct miqt_array QAbstractItemModel_MimeTypes(const QAbstractItemModel* self); -QMimeData* QAbstractItemModel_MimeData(const QAbstractItemModel* self, struct miqt_array /* of QModelIndex* */ indexes); +struct miqt_array /* of struct miqt_string */ QAbstractItemModel_MimeTypes(const QAbstractItemModel* self); +QMimeData* QAbstractItemModel_MimeData(const QAbstractItemModel* self, struct miqt_array /* of QModelIndex* */ indexes); bool QAbstractItemModel_CanDropMimeData(const QAbstractItemModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); bool QAbstractItemModel_DropMimeData(QAbstractItemModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); int QAbstractItemModel_SupportedDropActions(const QAbstractItemModel* self); @@ -151,9 +152,9 @@ bool QAbstractItemModel_CanFetchMore(const QAbstractItemModel* self, QModelIndex int QAbstractItemModel_Flags(const QAbstractItemModel* self, QModelIndex* index); void QAbstractItemModel_Sort(QAbstractItemModel* self, int column); QModelIndex* QAbstractItemModel_Buddy(const QAbstractItemModel* self, QModelIndex* index); -struct miqt_array QAbstractItemModel_Match(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value); +struct miqt_array /* of QModelIndex* */ QAbstractItemModel_Match(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value); QSize* QAbstractItemModel_Span(const QAbstractItemModel* self, QModelIndex* index); -struct miqt_map QAbstractItemModel_RoleNames(const QAbstractItemModel* self); +struct miqt_map /* of int to struct miqt_string */ QAbstractItemModel_RoleNames(const QAbstractItemModel* self); bool QAbstractItemModel_CheckIndex(const QAbstractItemModel* self, QModelIndex* index); void QAbstractItemModel_MultiData(const QAbstractItemModel* self, QModelIndex* index, QModelRoleDataSpan* roleDataSpan); void QAbstractItemModel_DataChanged(QAbstractItemModel* self, QModelIndex* topLeft, QModelIndex* bottomRight); @@ -186,18 +187,18 @@ bool QAbstractItemModel_InsertColumn2(QAbstractItemModel* self, int column, QMod bool QAbstractItemModel_RemoveRow2(QAbstractItemModel* self, int row, QModelIndex* parent); bool QAbstractItemModel_RemoveColumn2(QAbstractItemModel* self, int column, QModelIndex* parent); void QAbstractItemModel_Sort2(QAbstractItemModel* self, int column, int order); -struct miqt_array QAbstractItemModel_Match4(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits); -struct miqt_array QAbstractItemModel_Match5(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags); +struct miqt_array /* of QModelIndex* */ QAbstractItemModel_Match4(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits); +struct miqt_array /* of QModelIndex* */ QAbstractItemModel_Match5(const QAbstractItemModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags); bool QAbstractItemModel_CheckIndex2(const QAbstractItemModel* self, QModelIndex* index, int options); -void QAbstractItemModel_DataChanged3(QAbstractItemModel* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles); +void QAbstractItemModel_DataChanged3(QAbstractItemModel* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles); void QAbstractItemModel_connect_DataChanged3(QAbstractItemModel* self, intptr_t slot); -void QAbstractItemModel_LayoutChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents); +void QAbstractItemModel_LayoutChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents); void QAbstractItemModel_connect_LayoutChanged1(QAbstractItemModel* self, intptr_t slot); -void QAbstractItemModel_LayoutChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint); +void QAbstractItemModel_LayoutChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint); void QAbstractItemModel_connect_LayoutChanged2(QAbstractItemModel* self, intptr_t slot); -void QAbstractItemModel_LayoutAboutToBeChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents); +void QAbstractItemModel_LayoutAboutToBeChanged1(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents); void QAbstractItemModel_connect_LayoutAboutToBeChanged1(QAbstractItemModel* self, intptr_t slot); -void QAbstractItemModel_LayoutAboutToBeChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint); +void QAbstractItemModel_LayoutAboutToBeChanged2(QAbstractItemModel* self, struct miqt_array /* of QPersistentModelIndex* */ parents, int hint); void QAbstractItemModel_connect_LayoutAboutToBeChanged2(QAbstractItemModel* self, intptr_t slot); void QAbstractItemModel_Delete(QAbstractItemModel* self); diff --git a/qt6/gen_qabstractitemview.h b/qt6/gen_qabstractitemview.h index 8d3b8c11..67cec95c 100644 --- a/qt6/gen_qabstractitemview.h +++ b/qt6/gen_qabstractitemview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTITEMVIEW_H -#define GEN_QABSTRACTITEMVIEW_H +#pragma once +#ifndef MIQT_QT6_GEN_QABSTRACTITEMVIEW_H +#define MIQT_QT6_GEN_QABSTRACTITEMVIEW_H #include #include diff --git a/qt6/gen_qabstractnativeeventfilter.h b/qt6/gen_qabstractnativeeventfilter.h index d8ef53a7..36dcc74e 100644 --- a/qt6/gen_qabstractnativeeventfilter.h +++ b/qt6/gen_qabstractnativeeventfilter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTNATIVEEVENTFILTER_H -#define GEN_QABSTRACTNATIVEEVENTFILTER_H +#pragma once +#ifndef MIQT_QT6_GEN_QABSTRACTNATIVEEVENTFILTER_H +#define MIQT_QT6_GEN_QABSTRACTNATIVEEVENTFILTER_H #include #include diff --git a/qt6/gen_qabstractproxymodel.cpp b/qt6/gen_qabstractproxymodel.cpp index 017acf29..721c21eb 100644 --- a/qt6/gen_qabstractproxymodel.cpp +++ b/qt6/gen_qabstractproxymodel.cpp @@ -66,7 +66,7 @@ QVariant* QAbstractProxyModel_HeaderData(const QAbstractProxyModel* self, int se return new QVariant(self->headerData(static_cast(section), static_cast(orientation))); } -struct miqt_map QAbstractProxyModel_ItemData(const QAbstractProxyModel* self, QModelIndex* index) { +struct miqt_map /* of int to QVariant* */ QAbstractProxyModel_ItemData(const QAbstractProxyModel* self, QModelIndex* index) { QMap _ret = self->itemData(*index); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -93,7 +93,7 @@ bool QAbstractProxyModel_SetData(QAbstractProxyModel* self, QModelIndex* index, return self->setData(*index, *value); } -bool QAbstractProxyModel_SetItemData(QAbstractProxyModel* self, QModelIndex* index, struct miqt_map roles) { +bool QAbstractProxyModel_SetItemData(QAbstractProxyModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) { QMap roles_QMap; int* roles_karr = static_cast(roles.keys); QVariant** roles_varr = static_cast(roles.values); @@ -139,7 +139,7 @@ QModelIndex* QAbstractProxyModel_Sibling(const QAbstractProxyModel* self, int ro return new QModelIndex(self->sibling(static_cast(row), static_cast(column), *idx)); } -QMimeData* QAbstractProxyModel_MimeData(const QAbstractProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes) { +QMimeData* QAbstractProxyModel_MimeData(const QAbstractProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); @@ -157,7 +157,7 @@ bool QAbstractProxyModel_DropMimeData(QAbstractProxyModel* self, QMimeData* data return self->dropMimeData(data, static_cast(action), static_cast(row), static_cast(column), *parent); } -struct miqt_array QAbstractProxyModel_MimeTypes(const QAbstractProxyModel* self) { +struct miqt_array /* of struct miqt_string */ QAbstractProxyModel_MimeTypes(const QAbstractProxyModel* self) { QStringList _ret = self->mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -187,7 +187,7 @@ int QAbstractProxyModel_SupportedDropActions(const QAbstractProxyModel* self) { return static_cast(_ret); } -struct miqt_map QAbstractProxyModel_RoleNames(const QAbstractProxyModel* self) { +struct miqt_map /* of int to struct miqt_string */ QAbstractProxyModel_RoleNames(const QAbstractProxyModel* self) { QHash _ret = self->roleNames(); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); diff --git a/qt6/gen_qabstractproxymodel.h b/qt6/gen_qabstractproxymodel.h index 8c2d3ae7..627c2998 100644 --- a/qt6/gen_qabstractproxymodel.h +++ b/qt6/gen_qabstractproxymodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTPROXYMODEL_H -#define GEN_QABSTRACTPROXYMODEL_H +#pragma once +#ifndef MIQT_QT6_GEN_QABSTRACTPROXYMODEL_H +#define MIQT_QT6_GEN_QABSTRACTPROXYMODEL_H #include #include @@ -44,10 +45,10 @@ bool QAbstractProxyModel_Submit(QAbstractProxyModel* self); void QAbstractProxyModel_Revert(QAbstractProxyModel* self); QVariant* QAbstractProxyModel_Data(const QAbstractProxyModel* self, QModelIndex* proxyIndex); QVariant* QAbstractProxyModel_HeaderData(const QAbstractProxyModel* self, int section, int orientation); -struct miqt_map QAbstractProxyModel_ItemData(const QAbstractProxyModel* self, QModelIndex* index); +struct miqt_map /* of int to QVariant* */ QAbstractProxyModel_ItemData(const QAbstractProxyModel* self, QModelIndex* index); int QAbstractProxyModel_Flags(const QAbstractProxyModel* self, QModelIndex* index); bool QAbstractProxyModel_SetData(QAbstractProxyModel* self, QModelIndex* index, QVariant* value); -bool QAbstractProxyModel_SetItemData(QAbstractProxyModel* self, QModelIndex* index, struct miqt_map roles); +bool QAbstractProxyModel_SetItemData(QAbstractProxyModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles); bool QAbstractProxyModel_SetHeaderData(QAbstractProxyModel* self, int section, int orientation, QVariant* value); bool QAbstractProxyModel_ClearItemData(QAbstractProxyModel* self, QModelIndex* index); QModelIndex* QAbstractProxyModel_Buddy(const QAbstractProxyModel* self, QModelIndex* index); @@ -57,13 +58,13 @@ void QAbstractProxyModel_Sort(QAbstractProxyModel* self, int column); QSize* QAbstractProxyModel_Span(const QAbstractProxyModel* self, QModelIndex* index); bool QAbstractProxyModel_HasChildren(const QAbstractProxyModel* self); QModelIndex* QAbstractProxyModel_Sibling(const QAbstractProxyModel* self, int row, int column, QModelIndex* idx); -QMimeData* QAbstractProxyModel_MimeData(const QAbstractProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes); +QMimeData* QAbstractProxyModel_MimeData(const QAbstractProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes); bool QAbstractProxyModel_CanDropMimeData(const QAbstractProxyModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); bool QAbstractProxyModel_DropMimeData(QAbstractProxyModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); -struct miqt_array QAbstractProxyModel_MimeTypes(const QAbstractProxyModel* self); +struct miqt_array /* of struct miqt_string */ QAbstractProxyModel_MimeTypes(const QAbstractProxyModel* self); int QAbstractProxyModel_SupportedDragActions(const QAbstractProxyModel* self); int QAbstractProxyModel_SupportedDropActions(const QAbstractProxyModel* self); -struct miqt_map QAbstractProxyModel_RoleNames(const QAbstractProxyModel* self); +struct miqt_map /* of int to struct miqt_string */ QAbstractProxyModel_RoleNames(const QAbstractProxyModel* self); struct miqt_string QAbstractProxyModel_Tr2(const char* s, const char* c); struct miqt_string QAbstractProxyModel_Tr3(const char* s, const char* c, int n); QVariant* QAbstractProxyModel_Data2(const QAbstractProxyModel* self, QModelIndex* proxyIndex, int role); diff --git a/qt6/gen_qabstractscrollarea.cpp b/qt6/gen_qabstractscrollarea.cpp index 3105ffba..ff560ce4 100644 --- a/qt6/gen_qabstractscrollarea.cpp +++ b/qt6/gen_qabstractscrollarea.cpp @@ -84,7 +84,7 @@ void QAbstractScrollArea_AddScrollBarWidget(QAbstractScrollArea* self, QWidget* self->addScrollBarWidget(widget, static_cast(alignment)); } -struct miqt_array QAbstractScrollArea_ScrollBarWidgets(QAbstractScrollArea* self, int alignment) { +struct miqt_array /* of QWidget* */ QAbstractScrollArea_ScrollBarWidgets(QAbstractScrollArea* self, int alignment) { QWidgetList _ret = self->scrollBarWidgets(static_cast(alignment)); // Convert QList<> from C++ memory to manually-managed C memory QWidget** _arr = static_cast(malloc(sizeof(QWidget*) * _ret.length())); diff --git a/qt6/gen_qabstractscrollarea.h b/qt6/gen_qabstractscrollarea.h index d730a80c..76cfbdfd 100644 --- a/qt6/gen_qabstractscrollarea.h +++ b/qt6/gen_qabstractscrollarea.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTSCROLLAREA_H -#define GEN_QABSTRACTSCROLLAREA_H +#pragma once +#ifndef MIQT_QT6_GEN_QABSTRACTSCROLLAREA_H +#define MIQT_QT6_GEN_QABSTRACTSCROLLAREA_H #include #include @@ -43,7 +44,7 @@ void QAbstractScrollArea_SetHorizontalScrollBar(QAbstractScrollArea* self, QScro QWidget* QAbstractScrollArea_CornerWidget(const QAbstractScrollArea* self); void QAbstractScrollArea_SetCornerWidget(QAbstractScrollArea* self, QWidget* widget); void QAbstractScrollArea_AddScrollBarWidget(QAbstractScrollArea* self, QWidget* widget, int alignment); -struct miqt_array QAbstractScrollArea_ScrollBarWidgets(QAbstractScrollArea* self, int alignment); +struct miqt_array /* of QWidget* */ QAbstractScrollArea_ScrollBarWidgets(QAbstractScrollArea* self, int alignment); QWidget* QAbstractScrollArea_Viewport(const QAbstractScrollArea* self); void QAbstractScrollArea_SetViewport(QAbstractScrollArea* self, QWidget* widget); QSize* QAbstractScrollArea_MaximumViewportSize(const QAbstractScrollArea* self); diff --git a/qt6/gen_qabstractslider.h b/qt6/gen_qabstractslider.h index a65208d4..ba223444 100644 --- a/qt6/gen_qabstractslider.h +++ b/qt6/gen_qabstractslider.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTSLIDER_H -#define GEN_QABSTRACTSLIDER_H +#pragma once +#ifndef MIQT_QT6_GEN_QABSTRACTSLIDER_H +#define MIQT_QT6_GEN_QABSTRACTSLIDER_H #include #include diff --git a/qt6/gen_qabstractspinbox.h b/qt6/gen_qabstractspinbox.h index 8ccea805..32cd0e0d 100644 --- a/qt6/gen_qabstractspinbox.h +++ b/qt6/gen_qabstractspinbox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTSPINBOX_H -#define GEN_QABSTRACTSPINBOX_H +#pragma once +#ifndef MIQT_QT6_GEN_QABSTRACTSPINBOX_H +#define MIQT_QT6_GEN_QABSTRACTSPINBOX_H #include #include diff --git a/qt6/gen_qabstracttextdocumentlayout.h b/qt6/gen_qabstracttextdocumentlayout.h index 4bf25e89..27e30ff7 100644 --- a/qt6/gen_qabstracttextdocumentlayout.h +++ b/qt6/gen_qabstracttextdocumentlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTTEXTDOCUMENTLAYOUT_H -#define GEN_QABSTRACTTEXTDOCUMENTLAYOUT_H +#pragma once +#ifndef MIQT_QT6_GEN_QABSTRACTTEXTDOCUMENTLAYOUT_H +#define MIQT_QT6_GEN_QABSTRACTTEXTDOCUMENTLAYOUT_H #include #include diff --git a/qt6/gen_qaccessible.cpp b/qt6/gen_qaccessible.cpp index dda58de2..95e2cd63 100644 --- a/qt6/gen_qaccessible.cpp +++ b/qt6/gen_qaccessible.cpp @@ -44,6 +44,30 @@ QWindow* QAccessibleInterface_Window(const QAccessibleInterface* self) { return self->window(); } +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleInterface_Relations(const QAccessibleInterface* self) { + QList> _ret = self->relations(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of QAccessibleInterface* and int */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of QAccessibleInterface* and int */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair> _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + QAccessibleInterface** _lv_first_arr = static_cast(malloc(sizeof(QAccessibleInterface*))); + int* _lv_second_arr = static_cast(malloc(sizeof(int))); + _lv_first_arr[0] = _lv_ret.first; + QFlags _lv_second_ret = _lv_ret.second; + _lv_second_arr[0] = static_cast(_lv_second_ret); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + QAccessibleInterface* QAccessibleInterface_FocusChild(const QAccessibleInterface* self) { return self->focusChild(); } @@ -145,6 +169,30 @@ void* QAccessibleInterface_InterfaceCast(QAccessibleInterface* self, int param1) return self->interface_cast(static_cast(param1)); } +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleInterface_Relations1(const QAccessibleInterface* self, int match) { + QList> _ret = self->relations(static_cast(match)); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of QAccessibleInterface* and int */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of QAccessibleInterface* and int */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair> _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + QAccessibleInterface** _lv_first_arr = static_cast(malloc(sizeof(QAccessibleInterface*))); + int* _lv_second_arr = static_cast(malloc(sizeof(int))); + _lv_first_arr[0] = _lv_ret.first; + QFlags _lv_second_ret = _lv_ret.second; + _lv_second_arr[0] = static_cast(_lv_second_ret); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + void QAccessibleTextInterface_Selection(const QAccessibleTextInterface* self, int selectionIndex, int* startOffset, int* endOffset) { self->selection(static_cast(selectionIndex), static_cast(startOffset), static_cast(endOffset)); } @@ -306,7 +354,7 @@ bool QAccessibleTableCellInterface_IsSelected(const QAccessibleTableCellInterfac return self->isSelected(); } -struct miqt_array QAccessibleTableCellInterface_ColumnHeaderCells(const QAccessibleTableCellInterface* self) { +struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableCellInterface_ColumnHeaderCells(const QAccessibleTableCellInterface* self) { QList _ret = self->columnHeaderCells(); // Convert QList<> from C++ memory to manually-managed C memory QAccessibleInterface** _arr = static_cast(malloc(sizeof(QAccessibleInterface*) * _ret.length())); @@ -319,7 +367,7 @@ struct miqt_array QAccessibleTableCellInterface_ColumnHeaderCells(const QAccessi return _out; } -struct miqt_array QAccessibleTableCellInterface_RowHeaderCells(const QAccessibleTableCellInterface* self) { +struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableCellInterface_RowHeaderCells(const QAccessibleTableCellInterface* self) { QList _ret = self->rowHeaderCells(); // Convert QList<> from C++ memory to manually-managed C memory QAccessibleInterface** _arr = static_cast(malloc(sizeof(QAccessibleInterface*) * _ret.length())); @@ -376,7 +424,7 @@ int QAccessibleTableInterface_SelectedCellCount(const QAccessibleTableInterface* return self->selectedCellCount(); } -struct miqt_array QAccessibleTableInterface_SelectedCells(const QAccessibleTableInterface* self) { +struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableInterface_SelectedCells(const QAccessibleTableInterface* self) { QList _ret = self->selectedCells(); // Convert QList<> from C++ memory to manually-managed C memory QAccessibleInterface** _arr = static_cast(malloc(sizeof(QAccessibleInterface*) * _ret.length())); @@ -427,7 +475,7 @@ int QAccessibleTableInterface_RowCount(const QAccessibleTableInterface* self) { return self->rowCount(); } -struct miqt_array QAccessibleTableInterface_SelectedColumns(const QAccessibleTableInterface* self) { +struct miqt_array /* of int */ QAccessibleTableInterface_SelectedColumns(const QAccessibleTableInterface* self) { QList _ret = self->selectedColumns(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -440,7 +488,7 @@ struct miqt_array QAccessibleTableInterface_SelectedColumns(const QAccessibleTab return _out; } -struct miqt_array QAccessibleTableInterface_SelectedRows(const QAccessibleTableInterface* self) { +struct miqt_array /* of int */ QAccessibleTableInterface_SelectedRows(const QAccessibleTableInterface* self) { QList _ret = self->selectedRows(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -496,7 +544,7 @@ struct miqt_string QAccessibleActionInterface_Tr(const char* sourceText) { return _ms; } -struct miqt_array QAccessibleActionInterface_ActionNames(const QAccessibleActionInterface* self) { +struct miqt_array /* of struct miqt_string */ QAccessibleActionInterface_ActionNames(const QAccessibleActionInterface* self) { QStringList _ret = self->actionNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -545,7 +593,7 @@ void QAccessibleActionInterface_DoAction(QAccessibleActionInterface* self, struc self->doAction(actionName_QString); } -struct miqt_array QAccessibleActionInterface_KeyBindingsForAction(const QAccessibleActionInterface* self, struct miqt_string actionName) { +struct miqt_array /* of struct miqt_string */ QAccessibleActionInterface_KeyBindingsForAction(const QAccessibleActionInterface* self, struct miqt_string actionName) { QString actionName_QString = QString::fromUtf8(actionName.data, actionName.len); QStringList _ret = self->keyBindingsForAction(actionName_QString); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt6/gen_qaccessible.go b/qt6/gen_qaccessible.go index 49263d54..2623e7c8 100644 --- a/qt6/gen_qaccessible.go +++ b/qt6/gen_qaccessible.go @@ -65,6 +65,31 @@ func (this *QAccessibleInterface) Window() *QWindow { return UnsafeNewQWindow(unsafe.Pointer(C.QAccessibleInterface_Window(this.h))) } +func (this *QAccessibleInterface) Relations() []struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag +} { + var _ma C.struct_miqt_array = C.QAccessibleInterface_Relations(this.h) + _ret := make([]struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := UnsafeNewQAccessibleInterface(unsafe.Pointer(_lv_First_CArray[0])) + _lv_entry_Second := (QAccessible__RelationFlag)(_lv_Second_CArray[0]) + + _ret[i] = struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QAccessibleInterface) FocusChild() *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleInterface_FocusChild(this.h))) } @@ -176,6 +201,31 @@ func (this *QAccessibleInterface) InterfaceCast(param1 QAccessible__InterfaceTyp return (unsafe.Pointer)(C.QAccessibleInterface_InterfaceCast(this.h, (C.int)(param1))) } +func (this *QAccessibleInterface) Relations1(match QAccessible__RelationFlag) []struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag +} { + var _ma C.struct_miqt_array = C.QAccessibleInterface_Relations1(this.h, (C.int)(match)) + _ret := make([]struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := UnsafeNewQAccessibleInterface(unsafe.Pointer(_lv_First_CArray[0])) + _lv_entry_Second := (QAccessible__RelationFlag)(_lv_Second_CArray[0]) + + _ret[i] = struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + type QAccessibleTextInterface struct { h *C.QAccessibleTextInterface } diff --git a/qt6/gen_qaccessible.h b/qt6/gen_qaccessible.h index ca518eb7..0a6b3687 100644 --- a/qt6/gen_qaccessible.h +++ b/qt6/gen_qaccessible.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACCESSIBLE_H -#define GEN_QACCESSIBLE_H +#pragma once +#ifndef MIQT_QT6_GEN_QACCESSIBLE_H +#define MIQT_QT6_GEN_QACCESSIBLE_H #include #include @@ -76,6 +77,7 @@ typedef struct QWindow QWindow; bool QAccessibleInterface_IsValid(const QAccessibleInterface* self); QObject* QAccessibleInterface_Object(const QAccessibleInterface* self); QWindow* QAccessibleInterface_Window(const QAccessibleInterface* self); +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleInterface_Relations(const QAccessibleInterface* self); QAccessibleInterface* QAccessibleInterface_FocusChild(const QAccessibleInterface* self); QAccessibleInterface* QAccessibleInterface_ChildAt(const QAccessibleInterface* self, int x, int y); QAccessibleInterface* QAccessibleInterface_Parent(const QAccessibleInterface* self); @@ -99,6 +101,7 @@ QAccessibleTableCellInterface* QAccessibleInterface_TableCellInterface(QAccessib QAccessibleHyperlinkInterface* QAccessibleInterface_HyperlinkInterface(QAccessibleInterface* self); void QAccessibleInterface_VirtualHook(QAccessibleInterface* self, int id, void* data); void* QAccessibleInterface_InterfaceCast(QAccessibleInterface* self, int param1); +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleInterface_Relations1(const QAccessibleInterface* self, int match); void QAccessibleTextInterface_Selection(const QAccessibleTextInterface* self, int selectionIndex, int* startOffset, int* endOffset); int QAccessibleTextInterface_SelectionCount(const QAccessibleTextInterface* self); @@ -134,8 +137,8 @@ void QAccessibleValueInterface_OperatorAssign(QAccessibleValueInterface* self, Q void QAccessibleValueInterface_Delete(QAccessibleValueInterface* self); bool QAccessibleTableCellInterface_IsSelected(const QAccessibleTableCellInterface* self); -struct miqt_array QAccessibleTableCellInterface_ColumnHeaderCells(const QAccessibleTableCellInterface* self); -struct miqt_array QAccessibleTableCellInterface_RowHeaderCells(const QAccessibleTableCellInterface* self); +struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableCellInterface_ColumnHeaderCells(const QAccessibleTableCellInterface* self); +struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableCellInterface_RowHeaderCells(const QAccessibleTableCellInterface* self); int QAccessibleTableCellInterface_ColumnIndex(const QAccessibleTableCellInterface* self); int QAccessibleTableCellInterface_RowIndex(const QAccessibleTableCellInterface* self); int QAccessibleTableCellInterface_ColumnExtent(const QAccessibleTableCellInterface* self); @@ -148,15 +151,15 @@ QAccessibleInterface* QAccessibleTableInterface_Caption(const QAccessibleTableIn QAccessibleInterface* QAccessibleTableInterface_Summary(const QAccessibleTableInterface* self); QAccessibleInterface* QAccessibleTableInterface_CellAt(const QAccessibleTableInterface* self, int row, int column); int QAccessibleTableInterface_SelectedCellCount(const QAccessibleTableInterface* self); -struct miqt_array QAccessibleTableInterface_SelectedCells(const QAccessibleTableInterface* self); +struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableInterface_SelectedCells(const QAccessibleTableInterface* self); struct miqt_string QAccessibleTableInterface_ColumnDescription(const QAccessibleTableInterface* self, int column); struct miqt_string QAccessibleTableInterface_RowDescription(const QAccessibleTableInterface* self, int row); int QAccessibleTableInterface_SelectedColumnCount(const QAccessibleTableInterface* self); int QAccessibleTableInterface_SelectedRowCount(const QAccessibleTableInterface* self); int QAccessibleTableInterface_ColumnCount(const QAccessibleTableInterface* self); int QAccessibleTableInterface_RowCount(const QAccessibleTableInterface* self); -struct miqt_array QAccessibleTableInterface_SelectedColumns(const QAccessibleTableInterface* self); -struct miqt_array QAccessibleTableInterface_SelectedRows(const QAccessibleTableInterface* self); +struct miqt_array /* of int */ QAccessibleTableInterface_SelectedColumns(const QAccessibleTableInterface* self); +struct miqt_array /* of int */ QAccessibleTableInterface_SelectedRows(const QAccessibleTableInterface* self); bool QAccessibleTableInterface_IsColumnSelected(const QAccessibleTableInterface* self, int column); bool QAccessibleTableInterface_IsRowSelected(const QAccessibleTableInterface* self, int row); bool QAccessibleTableInterface_SelectRow(QAccessibleTableInterface* self, int row); @@ -167,11 +170,11 @@ void QAccessibleTableInterface_ModelChange(QAccessibleTableInterface* self, QAcc void QAccessibleTableInterface_Delete(QAccessibleTableInterface* self); struct miqt_string QAccessibleActionInterface_Tr(const char* sourceText); -struct miqt_array QAccessibleActionInterface_ActionNames(const QAccessibleActionInterface* self); +struct miqt_array /* of struct miqt_string */ QAccessibleActionInterface_ActionNames(const QAccessibleActionInterface* self); struct miqt_string QAccessibleActionInterface_LocalizedActionName(const QAccessibleActionInterface* self, struct miqt_string name); struct miqt_string QAccessibleActionInterface_LocalizedActionDescription(const QAccessibleActionInterface* self, struct miqt_string name); void QAccessibleActionInterface_DoAction(QAccessibleActionInterface* self, struct miqt_string actionName); -struct miqt_array QAccessibleActionInterface_KeyBindingsForAction(const QAccessibleActionInterface* self, struct miqt_string actionName); +struct miqt_array /* of struct miqt_string */ QAccessibleActionInterface_KeyBindingsForAction(const QAccessibleActionInterface* self, struct miqt_string actionName); struct miqt_string QAccessibleActionInterface_PressAction(); struct miqt_string QAccessibleActionInterface_IncreaseAction(); struct miqt_string QAccessibleActionInterface_DecreaseAction(); diff --git a/qt6/gen_qaccessible_base.cpp b/qt6/gen_qaccessible_base.cpp index f8b5a419..80f4836b 100644 --- a/qt6/gen_qaccessible_base.cpp +++ b/qt6/gen_qaccessible_base.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include "gen_qaccessible_base.h" #include "_cgo_export.h" @@ -58,6 +59,20 @@ void QAccessible_Cleanup() { QAccessible::cleanup(); } +struct miqt_map /* tuple of int and int */ QAccessible_QAccessibleTextBoundaryHelper(QTextCursor* cursor, int boundaryType) { + QPair _ret = QAccessible::qAccessibleTextBoundaryHelper(*cursor, static_cast(boundaryType)); + // Convert QPair<> from C++ memory to manually-managed C memory + int* _first_arr = static_cast(malloc(sizeof(int))); + int* _second_arr = static_cast(malloc(sizeof(int))); + _first_arr[0] = _ret.first; + _second_arr[0] = _ret.second; + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + void QAccessible_Delete(QAccessible* self) { delete self; } diff --git a/qt6/gen_qaccessible_base.go b/qt6/gen_qaccessible_base.go index d39849e0..019245a1 100644 --- a/qt6/gen_qaccessible_base.go +++ b/qt6/gen_qaccessible_base.go @@ -292,6 +292,23 @@ func QAccessible_Cleanup() { C.QAccessible_Cleanup() } +func QAccessible_QAccessibleTextBoundaryHelper(cursor *QTextCursor, boundaryType QAccessible__TextBoundaryType) struct { + First int + Second int +} { + var _mm C.struct_miqt_map = C.QAccessible_QAccessibleTextBoundaryHelper(cursor.cPointer(), (C.int)(boundaryType)) + _First_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.values)) + _entry_First := (int)(_First_CArray[0]) + + _entry_Second := (int)(_Second_CArray[0]) + + return struct { + First int + Second int + }{First: _entry_First, Second: _entry_Second} +} + // Delete this object from C++ memory. func (this *QAccessible) Delete() { C.QAccessible_Delete(this.h) diff --git a/qt6/gen_qaccessible_base.h b/qt6/gen_qaccessible_base.h index 5d0b365c..c38a0962 100644 --- a/qt6/gen_qaccessible_base.h +++ b/qt6/gen_qaccessible_base.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACCESSIBLE_BASE_H -#define GEN_QACCESSIBLE_BASE_H +#pragma once +#ifndef MIQT_QT6_GEN_QACCESSIBLE_BASE_H +#define MIQT_QT6_GEN_QACCESSIBLE_BASE_H #include #include @@ -28,6 +29,7 @@ class QAccessible__State; class QAccessibleEvent; class QAccessibleInterface; class QObject; +class QTextCursor; #else typedef struct QAccessible QAccessible; typedef struct QAccessible__ActivationObserver QAccessible__ActivationObserver; @@ -35,6 +37,7 @@ typedef struct QAccessible__State QAccessible__State; typedef struct QAccessibleEvent QAccessibleEvent; typedef struct QAccessibleInterface QAccessibleInterface; typedef struct QObject QObject; +typedef struct QTextCursor QTextCursor; #endif void QAccessible_InstallActivationObserver(QAccessible__ActivationObserver* param1); @@ -49,6 +52,7 @@ bool QAccessible_IsActive(); void QAccessible_SetActive(bool active); void QAccessible_SetRootObject(QObject* object); void QAccessible_Cleanup(); +struct miqt_map /* tuple of int and int */ QAccessible_QAccessibleTextBoundaryHelper(QTextCursor* cursor, int boundaryType); void QAccessible_Delete(QAccessible* self); QAccessible__State* QAccessible__State_new(); diff --git a/qt6/gen_qaccessiblebridge.h b/qt6/gen_qaccessiblebridge.h index 2511930e..b0956113 100644 --- a/qt6/gen_qaccessiblebridge.h +++ b/qt6/gen_qaccessiblebridge.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACCESSIBLEBRIDGE_H -#define GEN_QACCESSIBLEBRIDGE_H +#pragma once +#ifndef MIQT_QT6_GEN_QACCESSIBLEBRIDGE_H +#define MIQT_QT6_GEN_QACCESSIBLEBRIDGE_H #include #include diff --git a/qt6/gen_qaccessibleobject.h b/qt6/gen_qaccessibleobject.h index aa2bfa4d..7333491d 100644 --- a/qt6/gen_qaccessibleobject.h +++ b/qt6/gen_qaccessibleobject.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACCESSIBLEOBJECT_H -#define GEN_QACCESSIBLEOBJECT_H +#pragma once +#ifndef MIQT_QT6_GEN_QACCESSIBLEOBJECT_H +#define MIQT_QT6_GEN_QACCESSIBLEOBJECT_H #include #include diff --git a/qt6/gen_qaccessibleplugin.h b/qt6/gen_qaccessibleplugin.h index 8dfdfabe..2b843a88 100644 --- a/qt6/gen_qaccessibleplugin.h +++ b/qt6/gen_qaccessibleplugin.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACCESSIBLEPLUGIN_H -#define GEN_QACCESSIBLEPLUGIN_H +#pragma once +#ifndef MIQT_QT6_GEN_QACCESSIBLEPLUGIN_H +#define MIQT_QT6_GEN_QACCESSIBLEPLUGIN_H #include #include diff --git a/qt6/gen_qaccessiblewidget.cpp b/qt6/gen_qaccessiblewidget.cpp index 3714d335..4a0b37b3 100644 --- a/qt6/gen_qaccessiblewidget.cpp +++ b/qt6/gen_qaccessiblewidget.cpp @@ -42,6 +42,30 @@ int QAccessibleWidget_IndexOfChild(const QAccessibleWidget* self, QAccessibleInt return self->indexOfChild(child); } +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleWidget_Relations(const QAccessibleWidget* self) { + QList> _ret = self->relations(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of QAccessibleInterface* and int */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of QAccessibleInterface* and int */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair> _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + QAccessibleInterface** _lv_first_arr = static_cast(malloc(sizeof(QAccessibleInterface*))); + int* _lv_second_arr = static_cast(malloc(sizeof(int))); + _lv_first_arr[0] = _lv_ret.first; + QFlags _lv_second_ret = _lv_ret.second; + _lv_second_arr[0] = static_cast(_lv_second_ret); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + QAccessibleInterface* QAccessibleWidget_FocusChild(const QAccessibleWidget* self) { return self->focusChild(); } @@ -90,7 +114,7 @@ void* QAccessibleWidget_InterfaceCast(QAccessibleWidget* self, int t) { return self->interface_cast(static_cast(t)); } -struct miqt_array QAccessibleWidget_ActionNames(const QAccessibleWidget* self) { +struct miqt_array /* of struct miqt_string */ QAccessibleWidget_ActionNames(const QAccessibleWidget* self) { QStringList _ret = self->actionNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -115,7 +139,7 @@ void QAccessibleWidget_DoAction(QAccessibleWidget* self, struct miqt_string acti self->doAction(actionName_QString); } -struct miqt_array QAccessibleWidget_KeyBindingsForAction(const QAccessibleWidget* self, struct miqt_string actionName) { +struct miqt_array /* of struct miqt_string */ QAccessibleWidget_KeyBindingsForAction(const QAccessibleWidget* self, struct miqt_string actionName) { QString actionName_QString = QString::fromUtf8(actionName.data, actionName.len); QStringList _ret = self->keyBindingsForAction(actionName_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -136,3 +160,27 @@ struct miqt_array QAccessibleWidget_KeyBindingsForAction(const QAccessibleWidget return _out; } +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleWidget_Relations1(const QAccessibleWidget* self, int match) { + QList> _ret = self->relations(static_cast(match)); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of QAccessibleInterface* and int */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of QAccessibleInterface* and int */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair> _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + QAccessibleInterface** _lv_first_arr = static_cast(malloc(sizeof(QAccessibleInterface*))); + int* _lv_second_arr = static_cast(malloc(sizeof(int))); + _lv_first_arr[0] = _lv_ret.first; + QFlags _lv_second_ret = _lv_ret.second; + _lv_second_arr[0] = static_cast(_lv_second_ret); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + diff --git a/qt6/gen_qaccessiblewidget.go b/qt6/gen_qaccessiblewidget.go index 1b6ad9c2..b5a173d9 100644 --- a/qt6/gen_qaccessiblewidget.go +++ b/qt6/gen_qaccessiblewidget.go @@ -81,6 +81,31 @@ func (this *QAccessibleWidget) IndexOfChild(child *QAccessibleInterface) int { return (int)(C.QAccessibleWidget_IndexOfChild(this.h, child.cPointer())) } +func (this *QAccessibleWidget) Relations() []struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag +} { + var _ma C.struct_miqt_array = C.QAccessibleWidget_Relations(this.h) + _ret := make([]struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := UnsafeNewQAccessibleInterface(unsafe.Pointer(_lv_First_CArray[0])) + _lv_entry_Second := (QAccessible__RelationFlag)(_lv_Second_CArray[0]) + + _ret[i] = struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QAccessibleWidget) FocusChild() *QAccessibleInterface { return UnsafeNewQAccessibleInterface(unsafe.Pointer(C.QAccessibleWidget_FocusChild(this.h))) } @@ -173,3 +198,28 @@ func (this *QAccessibleWidget) KeyBindingsForAction(actionName string) []string } return _ret } + +func (this *QAccessibleWidget) Relations1(match QAccessible__RelationFlag) []struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag +} { + var _ma C.struct_miqt_array = C.QAccessibleWidget_Relations1(this.h, (C.int)(match)) + _ret := make([]struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]*C.QAccessibleInterface)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := UnsafeNewQAccessibleInterface(unsafe.Pointer(_lv_First_CArray[0])) + _lv_entry_Second := (QAccessible__RelationFlag)(_lv_Second_CArray[0]) + + _ret[i] = struct { + First *QAccessibleInterface + Second QAccessible__RelationFlag + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} diff --git a/qt6/gen_qaccessiblewidget.h b/qt6/gen_qaccessiblewidget.h index f6b7b643..c56eb8b0 100644 --- a/qt6/gen_qaccessiblewidget.h +++ b/qt6/gen_qaccessiblewidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACCESSIBLEWIDGET_H -#define GEN_QACCESSIBLEWIDGET_H +#pragma once +#ifndef MIQT_QT6_GEN_QACCESSIBLEWIDGET_H +#define MIQT_QT6_GEN_QACCESSIBLEWIDGET_H #include #include @@ -42,6 +43,7 @@ bool QAccessibleWidget_IsValid(const QAccessibleWidget* self); QWindow* QAccessibleWidget_Window(const QAccessibleWidget* self); int QAccessibleWidget_ChildCount(const QAccessibleWidget* self); int QAccessibleWidget_IndexOfChild(const QAccessibleWidget* self, QAccessibleInterface* child); +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleWidget_Relations(const QAccessibleWidget* self); QAccessibleInterface* QAccessibleWidget_FocusChild(const QAccessibleWidget* self); QRect* QAccessibleWidget_Rect(const QAccessibleWidget* self); QAccessibleInterface* QAccessibleWidget_Parent(const QAccessibleWidget* self); @@ -52,9 +54,10 @@ 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); +struct miqt_array /* of struct miqt_string */ 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); +struct miqt_array /* of struct miqt_string */ QAccessibleWidget_KeyBindingsForAction(const QAccessibleWidget* self, struct miqt_string actionName); +struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleWidget_Relations1(const QAccessibleWidget* self, int match); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qaction.cpp b/qt6/gen_qaction.cpp index 2148c7da..af416541 100644 --- a/qt6/gen_qaction.cpp +++ b/qt6/gen_qaction.cpp @@ -61,7 +61,7 @@ struct miqt_string QAction_Tr(const char* s) { return _ms; } -struct miqt_array QAction_AssociatedObjects(const QAction* self) { +struct miqt_array /* of QObject* */ QAction_AssociatedObjects(const QAction* self) { QList _ret = self->associatedObjects(); // Convert QList<> from C++ memory to manually-managed C memory QObject** _arr = static_cast(malloc(sizeof(QObject*) * _ret.length())); @@ -195,7 +195,7 @@ QKeySequence* QAction_Shortcut(const QAction* self) { return new QKeySequence(self->shortcut()); } -void QAction_SetShortcuts(QAction* self, struct miqt_array /* of QKeySequence* */ shortcuts) { +void QAction_SetShortcuts(QAction* self, struct miqt_array /* of QKeySequence* */ shortcuts) { QList shortcuts_QList; shortcuts_QList.reserve(shortcuts.len); QKeySequence** shortcuts_arr = static_cast(shortcuts.data); @@ -209,7 +209,7 @@ void QAction_SetShortcutsWithShortcuts(QAction* self, int shortcuts) { self->setShortcuts(static_cast(shortcuts)); } -struct miqt_array QAction_Shortcuts(const QAction* self) { +struct miqt_array /* of QKeySequence* */ QAction_Shortcuts(const QAction* self) { QList _ret = self->shortcuts(); // Convert QList<> from C++ memory to manually-managed C memory QKeySequence** _arr = static_cast(malloc(sizeof(QKeySequence*) * _ret.length())); diff --git a/qt6/gen_qaction.h b/qt6/gen_qaction.h index 3e40cc8f..8b0abba4 100644 --- a/qt6/gen_qaction.h +++ b/qt6/gen_qaction.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACTION_H -#define GEN_QACTION_H +#pragma once +#ifndef MIQT_QT6_GEN_QACTION_H +#define MIQT_QT6_GEN_QACTION_H #include #include @@ -42,7 +43,7 @@ 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_array QAction_AssociatedObjects(const QAction* self); +struct miqt_array /* of QObject* */ QAction_AssociatedObjects(const QAction* self); void QAction_SetActionGroup(QAction* self, QActionGroup* group); QActionGroup* QAction_ActionGroup(const QAction* self); void QAction_SetIcon(QAction* self, QIcon* icon); @@ -63,9 +64,9 @@ void QAction_SetSeparator(QAction* self, bool b); bool QAction_IsSeparator(const QAction* self); void QAction_SetShortcut(QAction* self, QKeySequence* shortcut); QKeySequence* QAction_Shortcut(const QAction* self); -void QAction_SetShortcuts(QAction* self, struct miqt_array /* of QKeySequence* */ shortcuts); +void QAction_SetShortcuts(QAction* self, struct miqt_array /* of QKeySequence* */ shortcuts); void QAction_SetShortcutsWithShortcuts(QAction* self, int shortcuts); -struct miqt_array QAction_Shortcuts(const QAction* self); +struct miqt_array /* of QKeySequence* */ QAction_Shortcuts(const QAction* self); void QAction_SetShortcutContext(QAction* self, int context); int QAction_ShortcutContext(const QAction* self); void QAction_SetAutoRepeat(QAction* self, bool autoRepeat); diff --git a/qt6/gen_qactiongroup.cpp b/qt6/gen_qactiongroup.cpp index 8e82f402..0434990a 100644 --- a/qt6/gen_qactiongroup.cpp +++ b/qt6/gen_qactiongroup.cpp @@ -52,7 +52,7 @@ void QActionGroup_RemoveAction(QActionGroup* self, QAction* a) { self->removeAction(a); } -struct miqt_array QActionGroup_Actions(const QActionGroup* self) { +struct miqt_array /* of QAction* */ QActionGroup_Actions(const QActionGroup* self) { QList _ret = self->actions(); // Convert QList<> from C++ memory to manually-managed C memory QAction** _arr = static_cast(malloc(sizeof(QAction*) * _ret.length())); diff --git a/qt6/gen_qactiongroup.h b/qt6/gen_qactiongroup.h index 2d07da05..912bebc1 100644 --- a/qt6/gen_qactiongroup.h +++ b/qt6/gen_qactiongroup.h @@ -1,5 +1,6 @@ -#ifndef GEN_QACTIONGROUP_H -#define GEN_QACTIONGROUP_H +#pragma once +#ifndef MIQT_QT6_GEN_QACTIONGROUP_H +#define MIQT_QT6_GEN_QACTIONGROUP_H #include #include @@ -35,7 +36,7 @@ QAction* QActionGroup_AddAction(QActionGroup* self, QAction* a); QAction* QActionGroup_AddActionWithText(QActionGroup* self, struct miqt_string text); QAction* QActionGroup_AddAction2(QActionGroup* self, QIcon* icon, struct miqt_string text); void QActionGroup_RemoveAction(QActionGroup* self, QAction* a); -struct miqt_array QActionGroup_Actions(const QActionGroup* self); +struct miqt_array /* of QAction* */ QActionGroup_Actions(const QActionGroup* self); QAction* QActionGroup_CheckedAction(const QActionGroup* self); bool QActionGroup_IsExclusive(const QActionGroup* self); bool QActionGroup_IsEnabled(const QActionGroup* self); diff --git a/qt6/gen_qanimationgroup.h b/qt6/gen_qanimationgroup.h index 8b8d9143..83cadb49 100644 --- a/qt6/gen_qanimationgroup.h +++ b/qt6/gen_qanimationgroup.h @@ -1,5 +1,6 @@ -#ifndef GEN_QANIMATIONGROUP_H -#define GEN_QANIMATIONGROUP_H +#pragma once +#ifndef MIQT_QT6_GEN_QANIMATIONGROUP_H +#define MIQT_QT6_GEN_QANIMATIONGROUP_H #include #include diff --git a/qt6/gen_qanystringview.h b/qt6/gen_qanystringview.h index ed19a716..662bd372 100644 --- a/qt6/gen_qanystringview.h +++ b/qt6/gen_qanystringview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QANYSTRINGVIEW_H -#define GEN_QANYSTRINGVIEW_H +#pragma once +#ifndef MIQT_QT6_GEN_QANYSTRINGVIEW_H +#define MIQT_QT6_GEN_QANYSTRINGVIEW_H #include #include diff --git a/qt6/gen_qapplication.cpp b/qt6/gen_qapplication.cpp index 262f4ab0..478c051d 100644 --- a/qt6/gen_qapplication.cpp +++ b/qt6/gen_qapplication.cpp @@ -88,7 +88,7 @@ QFontMetrics* QApplication_FontMetrics() { return new QFontMetrics(QApplication::fontMetrics()); } -struct miqt_array QApplication_AllWidgets() { +struct miqt_array /* of QWidget* */ QApplication_AllWidgets() { QWidgetList _ret = QApplication::allWidgets(); // Convert QList<> from C++ memory to manually-managed C memory QWidget** _arr = static_cast(malloc(sizeof(QWidget*) * _ret.length())); @@ -101,7 +101,7 @@ struct miqt_array QApplication_AllWidgets() { return _out; } -struct miqt_array QApplication_TopLevelWidgets() { +struct miqt_array /* of QWidget* */ QApplication_TopLevelWidgets() { QWidgetList _ret = QApplication::topLevelWidgets(); // Convert QList<> from C++ memory to manually-managed C memory QWidget** _arr = static_cast(malloc(sizeof(QWidget*) * _ret.length())); diff --git a/qt6/gen_qapplication.h b/qt6/gen_qapplication.h index df718680..2058eb93 100644 --- a/qt6/gen_qapplication.h +++ b/qt6/gen_qapplication.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAPPLICATION_H -#define GEN_QAPPLICATION_H +#pragma once +#ifndef MIQT_QT6_GEN_QAPPLICATION_H +#define MIQT_QT6_GEN_QAPPLICATION_H #include #include @@ -53,8 +54,8 @@ QFont* QApplication_FontWithQWidget(QWidget* param1); QFont* QApplication_FontWithClassName(const char* className); void QApplication_SetFont(QFont* param1); QFontMetrics* QApplication_FontMetrics(); -struct miqt_array QApplication_AllWidgets(); -struct miqt_array QApplication_TopLevelWidgets(); +struct miqt_array /* of QWidget* */ QApplication_AllWidgets(); +struct miqt_array /* of QWidget* */ QApplication_TopLevelWidgets(); QWidget* QApplication_ActivePopupWidget(); QWidget* QApplication_ActiveModalWidget(); QWidget* QApplication_FocusWidget(); diff --git a/qt6/gen_qarraydata.cpp b/qt6/gen_qarraydata.cpp index 03859288..e9598c8e 100644 --- a/qt6/gen_qarraydata.cpp +++ b/qt6/gen_qarraydata.cpp @@ -41,6 +41,20 @@ ptrdiff_t QArrayData_DetachCapacity(const QArrayData* self, ptrdiff_t newSize) { return static_cast(_ret); } +struct miqt_map /* tuple of QArrayData* and void* */ QArrayData_ReallocateUnaligned(QArrayData* data, void* dataPointer, ptrdiff_t objectSize, ptrdiff_t newCapacity, int option) { + QPair _ret = QArrayData::reallocateUnaligned(data, dataPointer, (qsizetype)(objectSize), (qsizetype)(newCapacity), static_cast(option)); + // Convert QPair<> from C++ memory to manually-managed C memory + QArrayData** _first_arr = static_cast(malloc(sizeof(QArrayData*))); + void** _second_arr = static_cast(malloc(sizeof(void*))); + _first_arr[0] = _ret.first; + _second_arr[0] = _ret.second; + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + void QArrayData_Deallocate(QArrayData* data, ptrdiff_t objectSize, ptrdiff_t alignment) { QArrayData::deallocate(data, (qsizetype)(objectSize), (qsizetype)(alignment)); } diff --git a/qt6/gen_qarraydata.go b/qt6/gen_qarraydata.go index bd1cc63f..f4c0e899 100644 --- a/qt6/gen_qarraydata.go +++ b/qt6/gen_qarraydata.go @@ -100,6 +100,22 @@ func (this *QArrayData) DetachCapacity(newSize int64) int64 { return (int64)(C.QArrayData_DetachCapacity(this.h, (C.ptrdiff_t)(newSize))) } +func QArrayData_ReallocateUnaligned(data *QArrayData, dataPointer unsafe.Pointer, objectSize int64, newCapacity int64, option QArrayData__AllocationOption) struct { + First *QArrayData + Second unsafe.Pointer +} { + var _mm C.struct_miqt_map = C.QArrayData_ReallocateUnaligned(data.cPointer(), dataPointer, (C.ptrdiff_t)(objectSize), (C.ptrdiff_t)(newCapacity), (C.int)(option)) + _First_CArray := (*[0xffff]*C.QArrayData)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]unsafe.Pointer)(unsafe.Pointer(_mm.values)) + _entry_First := UnsafeNewQArrayData(unsafe.Pointer(_First_CArray[0])) + _entry_Second := (unsafe.Pointer)(_Second_CArray[0]) + + return struct { + First *QArrayData + Second unsafe.Pointer + }{First: _entry_First, Second: _entry_Second} +} + func QArrayData_Deallocate(data *QArrayData, objectSize int64, alignment int64) { C.QArrayData_Deallocate(data.cPointer(), (C.ptrdiff_t)(objectSize), (C.ptrdiff_t)(alignment)) } diff --git a/qt6/gen_qarraydata.h b/qt6/gen_qarraydata.h index 760c68e6..a14d427e 100644 --- a/qt6/gen_qarraydata.h +++ b/qt6/gen_qarraydata.h @@ -1,5 +1,6 @@ -#ifndef GEN_QARRAYDATA_H -#define GEN_QARRAYDATA_H +#pragma once +#ifndef MIQT_QT6_GEN_QARRAYDATA_H +#define MIQT_QT6_GEN_QARRAYDATA_H #include #include @@ -32,6 +33,7 @@ bool QArrayData_Deref(QArrayData* self); bool QArrayData_IsShared(const QArrayData* self); bool QArrayData_NeedsDetach(const QArrayData* self); ptrdiff_t QArrayData_DetachCapacity(const QArrayData* self, ptrdiff_t newSize); +struct miqt_map /* tuple of QArrayData* and void* */ QArrayData_ReallocateUnaligned(QArrayData* data, void* dataPointer, ptrdiff_t objectSize, ptrdiff_t newCapacity, int option); void QArrayData_Deallocate(QArrayData* data, ptrdiff_t objectSize, ptrdiff_t alignment); void QArrayData_Delete(QArrayData* self); diff --git a/qt6/gen_qbackingstore.h b/qt6/gen_qbackingstore.h index 40e5d832..0b649e07 100644 --- a/qt6/gen_qbackingstore.h +++ b/qt6/gen_qbackingstore.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBACKINGSTORE_H -#define GEN_QBACKINGSTORE_H +#pragma once +#ifndef MIQT_QT6_GEN_QBACKINGSTORE_H +#define MIQT_QT6_GEN_QBACKINGSTORE_H #include #include diff --git a/qt6/gen_qbasictimer.h b/qt6/gen_qbasictimer.h index 5baf80b3..5c49a336 100644 --- a/qt6/gen_qbasictimer.h +++ b/qt6/gen_qbasictimer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBASICTIMER_H -#define GEN_QBASICTIMER_H +#pragma once +#ifndef MIQT_QT6_GEN_QBASICTIMER_H +#define MIQT_QT6_GEN_QBASICTIMER_H #include #include diff --git a/qt6/gen_qbindingstorage.h b/qt6/gen_qbindingstorage.h index 4819859a..c1aa4903 100644 --- a/qt6/gen_qbindingstorage.h +++ b/qt6/gen_qbindingstorage.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBINDINGSTORAGE_H -#define GEN_QBINDINGSTORAGE_H +#pragma once +#ifndef MIQT_QT6_GEN_QBINDINGSTORAGE_H +#define MIQT_QT6_GEN_QBINDINGSTORAGE_H #include #include diff --git a/qt6/gen_qbitarray.h b/qt6/gen_qbitarray.h index 3666d140..6af4a577 100644 --- a/qt6/gen_qbitarray.h +++ b/qt6/gen_qbitarray.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBITARRAY_H -#define GEN_QBITARRAY_H +#pragma once +#ifndef MIQT_QT6_GEN_QBITARRAY_H +#define MIQT_QT6_GEN_QBITARRAY_H #include #include diff --git a/qt6/gen_qbitmap.h b/qt6/gen_qbitmap.h index 3cdebd7b..0445c351 100644 --- a/qt6/gen_qbitmap.h +++ b/qt6/gen_qbitmap.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBITMAP_H -#define GEN_QBITMAP_H +#pragma once +#ifndef MIQT_QT6_GEN_QBITMAP_H +#define MIQT_QT6_GEN_QBITMAP_H #include #include diff --git a/qt6/gen_qboxlayout.h b/qt6/gen_qboxlayout.h index db483903..8a553fb5 100644 --- a/qt6/gen_qboxlayout.h +++ b/qt6/gen_qboxlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBOXLAYOUT_H -#define GEN_QBOXLAYOUT_H +#pragma once +#ifndef MIQT_QT6_GEN_QBOXLAYOUT_H +#define MIQT_QT6_GEN_QBOXLAYOUT_H #include #include diff --git a/qt6/gen_qbrush.cpp b/qt6/gen_qbrush.cpp index 8238500b..6208b1a9 100644 --- a/qt6/gen_qbrush.cpp +++ b/qt6/gen_qbrush.cpp @@ -6,6 +6,7 @@ #define WORKAROUND_INNER_CLASS_DEFINITION_QGradient__QGradientData #include #include +#include #include #include #include @@ -183,6 +184,44 @@ void QGradient_SetColorAt(QGradient* self, double pos, QColor* color) { self->setColorAt(static_cast(pos), *color); } +void QGradient_SetStops(QGradient* self, struct miqt_array /* of struct miqt_map tuple of double and QColor* */ stops) { + QGradientStops stops_QList; + stops_QList.reserve(stops.len); + struct miqt_map /* tuple of double and QColor* */ * stops_arr = static_cast(stops.data); + for(size_t i = 0; i < stops.len; ++i) { + QPair stops_arr_i_QPair; + double* stops_arr_i_first_arr = static_cast(stops_arr[i].keys); + QColor** stops_arr_i_second_arr = static_cast(stops_arr[i].values); + stops_arr_i_QPair.first = static_cast(stops_arr_i_first_arr[0]); + stops_arr_i_QPair.second = *(stops_arr_i_second_arr[0]); + stops_QList.push_back(stops_arr_i_QPair); + } + self->setStops(stops_QList); +} + +struct miqt_array /* of struct miqt_map tuple of double and QColor* */ QGradient_Stops(const QGradient* self) { + QGradientStops _ret = self->stops(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of double and QColor* */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of double and QColor* */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + double* _lv_first_arr = static_cast(malloc(sizeof(double))); + QColor** _lv_second_arr = static_cast(malloc(sizeof(QColor*))); + _lv_first_arr[0] = _lv_ret.first; + _lv_second_arr[0] = new QColor(_lv_ret.second); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + int QGradient_CoordinateMode(const QGradient* self) { QGradient::CoordinateMode _ret = self->coordinateMode(); return static_cast(_ret); diff --git a/qt6/gen_qbrush.go b/qt6/gen_qbrush.go index 548aaf35..5588519a 100644 --- a/qt6/gen_qbrush.go +++ b/qt6/gen_qbrush.go @@ -532,6 +532,59 @@ func (this *QGradient) SetColorAt(pos float64, color *QColor) { C.QGradient_SetColorAt(this.h, (C.double)(pos), color.cPointer()) } +func (this *QGradient) SetStops(stops []struct { + First float64 + Second QColor +}) { + stops_CArray := (*[0xffff]C.struct_miqt_map)(C.malloc(C.size_t(8 * len(stops)))) + defer C.free(unsafe.Pointer(stops_CArray)) + for i := range stops { + stops_i_First_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(stops_i_First_CArray)) + stops_i_Second_CArray := (*[0xffff]*C.QColor)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(stops_i_Second_CArray)) + stops_i_First_CArray[0] = (C.double)(stops[i].First) + stops_i_Second_CArray[0] = stops[i].Second.cPointer() + stops_i_pair := C.struct_miqt_map{ + len: 1, + keys: unsafe.Pointer(stops_i_First_CArray), + values: unsafe.Pointer(stops_i_Second_CArray), + } + stops_CArray[i] = stops_i_pair + } + stops_ma := C.struct_miqt_array{len: C.size_t(len(stops)), data: unsafe.Pointer(stops_CArray)} + C.QGradient_SetStops(this.h, stops_ma) +} + +func (this *QGradient) Stops() []struct { + First float64 + Second QColor +} { + var _ma C.struct_miqt_array = C.QGradient_Stops(this.h) + _ret := make([]struct { + First float64 + Second QColor + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]*C.QColor)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := (float64)(_lv_First_CArray[0]) + + _lv_second_ret := _lv_Second_CArray[0] + _lv_second_goptr := newQColor(_lv_second_ret) + _lv_second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _lv_entry_Second := *_lv_second_goptr + + _ret[i] = struct { + First float64 + Second QColor + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QGradient) CoordinateMode() QGradient__CoordinateMode { return (QGradient__CoordinateMode)(C.QGradient_CoordinateMode(this.h)) } diff --git a/qt6/gen_qbrush.h b/qt6/gen_qbrush.h index ea5d7a84..40d92ee9 100644 --- a/qt6/gen_qbrush.h +++ b/qt6/gen_qbrush.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBRUSH_H -#define GEN_QBRUSH_H +#pragma once +#ifndef MIQT_QT6_GEN_QBRUSH_H +#define MIQT_QT6_GEN_QBRUSH_H #include #include @@ -88,6 +89,8 @@ int QGradient_Type(const QGradient* self); void QGradient_SetSpread(QGradient* self, int spread); int QGradient_Spread(const QGradient* self); void QGradient_SetColorAt(QGradient* self, double pos, QColor* color); +void QGradient_SetStops(QGradient* self, struct miqt_array /* of struct miqt_map tuple of double and QColor* */ stops); +struct miqt_array /* of struct miqt_map tuple of double and QColor* */ QGradient_Stops(const QGradient* self); int QGradient_CoordinateMode(const QGradient* self); void QGradient_SetCoordinateMode(QGradient* self, int mode); int QGradient_InterpolationMode(const QGradient* self); diff --git a/qt6/gen_qbuffer.h b/qt6/gen_qbuffer.h index 340af3d2..2bfbf0d6 100644 --- a/qt6/gen_qbuffer.h +++ b/qt6/gen_qbuffer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBUFFER_H -#define GEN_QBUFFER_H +#pragma once +#ifndef MIQT_QT6_GEN_QBUFFER_H +#define MIQT_QT6_GEN_QBUFFER_H #include #include diff --git a/qt6/gen_qbuttongroup.cpp b/qt6/gen_qbuttongroup.cpp index 67966416..3c736ec7 100644 --- a/qt6/gen_qbuttongroup.cpp +++ b/qt6/gen_qbuttongroup.cpp @@ -53,7 +53,7 @@ void QButtonGroup_RemoveButton(QButtonGroup* self, QAbstractButton* param1) { self->removeButton(param1); } -struct miqt_array QButtonGroup_Buttons(const QButtonGroup* self) { +struct miqt_array /* of QAbstractButton* */ QButtonGroup_Buttons(const QButtonGroup* self) { QList _ret = self->buttons(); // Convert QList<> from C++ memory to manually-managed C memory QAbstractButton** _arr = static_cast(malloc(sizeof(QAbstractButton*) * _ret.length())); diff --git a/qt6/gen_qbuttongroup.h b/qt6/gen_qbuttongroup.h index 6598e08e..98f7f6ca 100644 --- a/qt6/gen_qbuttongroup.h +++ b/qt6/gen_qbuttongroup.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBUTTONGROUP_H -#define GEN_QBUTTONGROUP_H +#pragma once +#ifndef MIQT_QT6_GEN_QBUTTONGROUP_H +#define MIQT_QT6_GEN_QBUTTONGROUP_H #include #include @@ -34,7 +35,7 @@ void QButtonGroup_SetExclusive(QButtonGroup* self, bool exclusive); bool QButtonGroup_Exclusive(const QButtonGroup* self); void QButtonGroup_AddButton(QButtonGroup* self, QAbstractButton* param1); void QButtonGroup_RemoveButton(QButtonGroup* self, QAbstractButton* param1); -struct miqt_array QButtonGroup_Buttons(const QButtonGroup* self); +struct miqt_array /* of QAbstractButton* */ QButtonGroup_Buttons(const QButtonGroup* self); QAbstractButton* QButtonGroup_CheckedButton(const QButtonGroup* self); QAbstractButton* QButtonGroup_Button(const QButtonGroup* self, int id); void QButtonGroup_SetId(QButtonGroup* self, QAbstractButton* button, int id); diff --git a/qt6/gen_qbytearraymatcher.h b/qt6/gen_qbytearraymatcher.h index d0bf46da..44e49c8c 100644 --- a/qt6/gen_qbytearraymatcher.h +++ b/qt6/gen_qbytearraymatcher.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBYTEARRAYMATCHER_H -#define GEN_QBYTEARRAYMATCHER_H +#pragma once +#ifndef MIQT_QT6_GEN_QBYTEARRAYMATCHER_H +#define MIQT_QT6_GEN_QBYTEARRAYMATCHER_H #include #include diff --git a/qt6/gen_qbytearrayview.h b/qt6/gen_qbytearrayview.h index 57fa625a..f6b7596b 100644 --- a/qt6/gen_qbytearrayview.h +++ b/qt6/gen_qbytearrayview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QBYTEARRAYVIEW_H -#define GEN_QBYTEARRAYVIEW_H +#pragma once +#ifndef MIQT_QT6_GEN_QBYTEARRAYVIEW_H +#define MIQT_QT6_GEN_QBYTEARRAYVIEW_H #include #include diff --git a/qt6/gen_qcalendar.cpp b/qt6/gen_qcalendar.cpp index 8c6b8274..3838a7c4 100644 --- a/qt6/gen_qcalendar.cpp +++ b/qt6/gen_qcalendar.cpp @@ -159,7 +159,7 @@ struct miqt_string QCalendar_StandaloneWeekDayName(const QCalendar* self, QLocal return _ms; } -struct miqt_array QCalendar_AvailableCalendars() { +struct miqt_array /* of struct miqt_string */ QCalendar_AvailableCalendars() { QStringList _ret = QCalendar::availableCalendars(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qcalendar.h b/qt6/gen_qcalendar.h index 017084cf..ed30ce10 100644 --- a/qt6/gen_qcalendar.h +++ b/qt6/gen_qcalendar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCALENDAR_H -#define GEN_QCALENDAR_H +#pragma once +#ifndef MIQT_QT6_GEN_QCALENDAR_H +#define MIQT_QT6_GEN_QCALENDAR_H #include #include @@ -65,7 +66,7 @@ struct miqt_string QCalendar_MonthName(const QCalendar* self, QLocale* locale, i struct miqt_string QCalendar_StandaloneMonthName(const QCalendar* self, QLocale* locale, int month); struct miqt_string QCalendar_WeekDayName(const QCalendar* self, QLocale* locale, int day); struct miqt_string QCalendar_StandaloneWeekDayName(const QCalendar* self, QLocale* locale, int day); -struct miqt_array QCalendar_AvailableCalendars(); +struct miqt_array /* of struct miqt_string */ QCalendar_AvailableCalendars(); int QCalendar_DaysInMonth2(const QCalendar* self, int month, int year); struct miqt_string QCalendar_MonthName3(const QCalendar* self, QLocale* locale, int month, int year); struct miqt_string QCalendar_MonthName4(const QCalendar* self, QLocale* locale, int month, int year, int format); diff --git a/qt6/gen_qcalendarwidget.cpp b/qt6/gen_qcalendarwidget.cpp index cf8d6213..6dea6491 100644 --- a/qt6/gen_qcalendarwidget.cpp +++ b/qt6/gen_qcalendarwidget.cpp @@ -144,7 +144,7 @@ void QCalendarWidget_SetWeekdayTextFormat(QCalendarWidget* self, int dayOfWeek, self->setWeekdayTextFormat(static_cast(dayOfWeek), *format); } -struct miqt_map QCalendarWidget_DateTextFormat(const QCalendarWidget* self) { +struct miqt_map /* of QDate* to QTextCharFormat* */ QCalendarWidget_DateTextFormat(const QCalendarWidget* self) { QMap _ret = self->dateTextFormat(); // Convert QMap<> from C++ memory to manually-managed C memory QDate** _karr = static_cast(malloc(sizeof(QDate*) * _ret.size())); diff --git a/qt6/gen_qcalendarwidget.h b/qt6/gen_qcalendarwidget.h index a36699cc..dba56cb1 100644 --- a/qt6/gen_qcalendarwidget.h +++ b/qt6/gen_qcalendarwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCALENDARWIDGET_H -#define GEN_QCALENDARWIDGET_H +#pragma once +#ifndef MIQT_QT6_GEN_QCALENDARWIDGET_H +#define MIQT_QT6_GEN_QCALENDARWIDGET_H #include #include @@ -61,7 +62,7 @@ QTextCharFormat* QCalendarWidget_HeaderTextFormat(const QCalendarWidget* self); void QCalendarWidget_SetHeaderTextFormat(QCalendarWidget* self, QTextCharFormat* format); QTextCharFormat* QCalendarWidget_WeekdayTextFormat(const QCalendarWidget* self, int dayOfWeek); void QCalendarWidget_SetWeekdayTextFormat(QCalendarWidget* self, int dayOfWeek, QTextCharFormat* format); -struct miqt_map QCalendarWidget_DateTextFormat(const QCalendarWidget* self); +struct miqt_map /* of QDate* to QTextCharFormat* */ QCalendarWidget_DateTextFormat(const QCalendarWidget* self); QTextCharFormat* QCalendarWidget_DateTextFormatWithDate(const QCalendarWidget* self, QDate* date); void QCalendarWidget_SetDateTextFormat(QCalendarWidget* self, QDate* date, QTextCharFormat* format); bool QCalendarWidget_IsDateEditEnabled(const QCalendarWidget* self); diff --git a/qt6/gen_qchar.h b/qt6/gen_qchar.h index 94d5edd5..bf927227 100644 --- a/qt6/gen_qchar.h +++ b/qt6/gen_qchar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCHAR_H -#define GEN_QCHAR_H +#pragma once +#ifndef MIQT_QT6_GEN_QCHAR_H +#define MIQT_QT6_GEN_QCHAR_H #include #include diff --git a/qt6/gen_qcheckbox.h b/qt6/gen_qcheckbox.h index 5593abd2..472586b7 100644 --- a/qt6/gen_qcheckbox.h +++ b/qt6/gen_qcheckbox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCHECKBOX_H -#define GEN_QCHECKBOX_H +#pragma once +#ifndef MIQT_QT6_GEN_QCHECKBOX_H +#define MIQT_QT6_GEN_QCHECKBOX_H #include #include diff --git a/qt6/gen_qclipboard.h b/qt6/gen_qclipboard.h index fb728706..eebabc3d 100644 --- a/qt6/gen_qclipboard.h +++ b/qt6/gen_qclipboard.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCLIPBOARD_H -#define GEN_QCLIPBOARD_H +#pragma once +#ifndef MIQT_QT6_GEN_QCLIPBOARD_H +#define MIQT_QT6_GEN_QCLIPBOARD_H #include #include diff --git a/qt6/gen_qcollator.h b/qt6/gen_qcollator.h index 027a0f70..59806cbe 100644 --- a/qt6/gen_qcollator.h +++ b/qt6/gen_qcollator.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOLLATOR_H -#define GEN_QCOLLATOR_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOLLATOR_H +#define MIQT_QT6_GEN_QCOLLATOR_H #include #include diff --git a/qt6/gen_qcolor.cpp b/qt6/gen_qcolor.cpp index 77df7ea1..35ede54a 100644 --- a/qt6/gen_qcolor.cpp +++ b/qt6/gen_qcolor.cpp @@ -86,7 +86,7 @@ void QColor_SetNamedColor(QColor* self, struct miqt_string name) { self->setNamedColor(name_QString); } -struct miqt_array QColor_ColorNames() { +struct miqt_array /* of struct miqt_string */ QColor_ColorNames() { QStringList _ret = QColor::colorNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qcolor.h b/qt6/gen_qcolor.h index 31d865e9..004c1963 100644 --- a/qt6/gen_qcolor.h +++ b/qt6/gen_qcolor.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOLOR_H -#define GEN_QCOLOR_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOLOR_H +#define MIQT_QT6_GEN_QCOLOR_H #include #include @@ -40,7 +41,7 @@ void QColor_OperatorAssign(QColor* self, int color); bool QColor_IsValid(const QColor* self); struct miqt_string QColor_Name(const QColor* self); void QColor_SetNamedColor(QColor* self, struct miqt_string name); -struct miqt_array QColor_ColorNames(); +struct miqt_array /* of struct miqt_string */ QColor_ColorNames(); int QColor_Spec(const QColor* self); int QColor_Alpha(const QColor* self); void QColor_SetAlpha(QColor* self, int alpha); diff --git a/qt6/gen_qcolordialog.h b/qt6/gen_qcolordialog.h index 6d5948ae..85c8a54a 100644 --- a/qt6/gen_qcolordialog.h +++ b/qt6/gen_qcolordialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOLORDIALOG_H -#define GEN_QCOLORDIALOG_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOLORDIALOG_H +#define MIQT_QT6_GEN_QCOLORDIALOG_H #include #include diff --git a/qt6/gen_qcolormap.cpp b/qt6/gen_qcolormap.cpp index 0349ab45..45a536d0 100644 --- a/qt6/gen_qcolormap.cpp +++ b/qt6/gen_qcolormap.cpp @@ -47,7 +47,7 @@ QColor* QColormap_ColorAt(const QColormap* self, unsigned int pixel) { return new QColor(self->colorAt(static_cast(pixel))); } -struct miqt_array QColormap_Colormap(const QColormap* self) { +struct miqt_array /* of QColor* */ QColormap_Colormap(const QColormap* self) { const QList _ret = self->colormap(); // Convert QList<> from C++ memory to manually-managed C memory QColor** _arr = static_cast(malloc(sizeof(QColor*) * _ret.length())); diff --git a/qt6/gen_qcolormap.h b/qt6/gen_qcolormap.h index 980e81d9..4cebf57d 100644 --- a/qt6/gen_qcolormap.h +++ b/qt6/gen_qcolormap.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOLORMAP_H -#define GEN_QCOLORMAP_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOLORMAP_H +#define MIQT_QT6_GEN_QCOLORMAP_H #include #include @@ -31,7 +32,7 @@ int QColormap_Depth(const QColormap* self); int QColormap_Size(const QColormap* self); unsigned int QColormap_Pixel(const QColormap* self, QColor* color); QColor* QColormap_ColorAt(const QColormap* self, unsigned int pixel); -struct miqt_array QColormap_Colormap(const QColormap* self); +struct miqt_array /* of QColor* */ QColormap_Colormap(const QColormap* self); QColormap* QColormap_Instance1(int screen); void QColormap_Delete(QColormap* self); diff --git a/qt6/gen_qcolorspace.cpp b/qt6/gen_qcolorspace.cpp index 3134341b..08a8938a 100644 --- a/qt6/gen_qcolorspace.cpp +++ b/qt6/gen_qcolorspace.cpp @@ -26,7 +26,7 @@ QColorSpace* QColorSpace_new4(int primaries, float gamma) { return new QColorSpace(static_cast(primaries), static_cast(gamma)); } -QColorSpace* QColorSpace_new5(int primaries, struct miqt_array /* of uint16_t */ transferFunctionTable) { +QColorSpace* QColorSpace_new5(int primaries, struct miqt_array /* of uint16_t */ transferFunctionTable) { QList transferFunctionTable_QList; transferFunctionTable_QList.reserve(transferFunctionTable.len); uint16_t* transferFunctionTable_arr = static_cast(transferFunctionTable.data); @@ -40,7 +40,7 @@ QColorSpace* QColorSpace_new6(QPointF* whitePoint, QPointF* redPoint, QPointF* g return new QColorSpace(*whitePoint, *redPoint, *greenPoint, *bluePoint, static_cast(transferFunction)); } -QColorSpace* QColorSpace_new7(QPointF* whitePoint, QPointF* redPoint, QPointF* greenPoint, QPointF* bluePoint, struct miqt_array /* of uint16_t */ transferFunctionTable) { +QColorSpace* QColorSpace_new7(QPointF* whitePoint, QPointF* redPoint, QPointF* greenPoint, QPointF* bluePoint, struct miqt_array /* of uint16_t */ transferFunctionTable) { QList transferFunctionTable_QList; transferFunctionTable_QList.reserve(transferFunctionTable.len); uint16_t* transferFunctionTable_arr = static_cast(transferFunctionTable.data); @@ -50,7 +50,7 @@ QColorSpace* QColorSpace_new7(QPointF* whitePoint, QPointF* redPoint, QPointF* g return new QColorSpace(*whitePoint, *redPoint, *greenPoint, *bluePoint, transferFunctionTable_QList); } -QColorSpace* QColorSpace_new8(QPointF* whitePoint, QPointF* redPoint, QPointF* greenPoint, QPointF* bluePoint, struct miqt_array /* of uint16_t */ redTransferFunctionTable, struct miqt_array /* of uint16_t */ greenTransferFunctionTable, struct miqt_array /* of uint16_t */ blueTransferFunctionTable) { +QColorSpace* QColorSpace_new8(QPointF* whitePoint, QPointF* redPoint, QPointF* greenPoint, QPointF* bluePoint, struct miqt_array /* of uint16_t */ redTransferFunctionTable, struct miqt_array /* of uint16_t */ greenTransferFunctionTable, struct miqt_array /* of uint16_t */ blueTransferFunctionTable) { QList redTransferFunctionTable_QList; redTransferFunctionTable_QList.reserve(redTransferFunctionTable.len); uint16_t* redTransferFunctionTable_arr = static_cast(redTransferFunctionTable.data); @@ -126,7 +126,7 @@ void QColorSpace_SetTransferFunction(QColorSpace* self, int transferFunction) { self->setTransferFunction(static_cast(transferFunction)); } -void QColorSpace_SetTransferFunctionWithTransferFunctionTable(QColorSpace* self, struct miqt_array /* of uint16_t */ transferFunctionTable) { +void QColorSpace_SetTransferFunctionWithTransferFunctionTable(QColorSpace* self, struct miqt_array /* of uint16_t */ transferFunctionTable) { QList transferFunctionTable_QList; transferFunctionTable_QList.reserve(transferFunctionTable.len); uint16_t* transferFunctionTable_arr = static_cast(transferFunctionTable.data); @@ -136,7 +136,7 @@ void QColorSpace_SetTransferFunctionWithTransferFunctionTable(QColorSpace* self, self->setTransferFunction(transferFunctionTable_QList); } -void QColorSpace_SetTransferFunctions(QColorSpace* self, struct miqt_array /* of uint16_t */ redTransferFunctionTable, struct miqt_array /* of uint16_t */ greenTransferFunctionTable, struct miqt_array /* of uint16_t */ blueTransferFunctionTable) { +void QColorSpace_SetTransferFunctions(QColorSpace* self, struct miqt_array /* of uint16_t */ redTransferFunctionTable, struct miqt_array /* of uint16_t */ greenTransferFunctionTable, struct miqt_array /* of uint16_t */ blueTransferFunctionTable) { QList redTransferFunctionTable_QList; redTransferFunctionTable_QList.reserve(redTransferFunctionTable.len); uint16_t* redTransferFunctionTable_arr = static_cast(redTransferFunctionTable.data); @@ -162,7 +162,7 @@ QColorSpace* QColorSpace_WithTransferFunction(const QColorSpace* self, int trans return new QColorSpace(self->withTransferFunction(static_cast(transferFunction))); } -QColorSpace* QColorSpace_WithTransferFunctionWithTransferFunctionTable(const QColorSpace* self, struct miqt_array /* of uint16_t */ transferFunctionTable) { +QColorSpace* QColorSpace_WithTransferFunctionWithTransferFunctionTable(const QColorSpace* self, struct miqt_array /* of uint16_t */ transferFunctionTable) { QList transferFunctionTable_QList; transferFunctionTable_QList.reserve(transferFunctionTable.len); uint16_t* transferFunctionTable_arr = static_cast(transferFunctionTable.data); @@ -172,7 +172,7 @@ QColorSpace* QColorSpace_WithTransferFunctionWithTransferFunctionTable(const QCo return new QColorSpace(self->withTransferFunction(transferFunctionTable_QList)); } -QColorSpace* QColorSpace_WithTransferFunctions(const QColorSpace* self, struct miqt_array /* of uint16_t */ redTransferFunctionTable, struct miqt_array /* of uint16_t */ greenTransferFunctionTable, struct miqt_array /* of uint16_t */ blueTransferFunctionTable) { +QColorSpace* QColorSpace_WithTransferFunctions(const QColorSpace* self, struct miqt_array /* of uint16_t */ redTransferFunctionTable, struct miqt_array /* of uint16_t */ greenTransferFunctionTable, struct miqt_array /* of uint16_t */ blueTransferFunctionTable) { QList redTransferFunctionTable_QList; redTransferFunctionTable_QList.reserve(redTransferFunctionTable.len); uint16_t* redTransferFunctionTable_arr = static_cast(redTransferFunctionTable.data); diff --git a/qt6/gen_qcolorspace.h b/qt6/gen_qcolorspace.h index 78943f43..dc00dd81 100644 --- a/qt6/gen_qcolorspace.h +++ b/qt6/gen_qcolorspace.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOLORSPACE_H -#define GEN_QCOLORSPACE_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOLORSPACE_H +#define MIQT_QT6_GEN_QCOLORSPACE_H #include #include @@ -29,10 +30,10 @@ QColorSpace* QColorSpace_new(); QColorSpace* QColorSpace_new2(int namedColorSpace); QColorSpace* QColorSpace_new3(int primaries, int transferFunction); QColorSpace* QColorSpace_new4(int primaries, float gamma); -QColorSpace* QColorSpace_new5(int primaries, struct miqt_array /* of uint16_t */ transferFunctionTable); +QColorSpace* QColorSpace_new5(int primaries, struct miqt_array /* of uint16_t */ transferFunctionTable); QColorSpace* QColorSpace_new6(QPointF* whitePoint, QPointF* redPoint, QPointF* greenPoint, QPointF* bluePoint, int transferFunction); -QColorSpace* QColorSpace_new7(QPointF* whitePoint, QPointF* redPoint, QPointF* greenPoint, QPointF* bluePoint, struct miqt_array /* of uint16_t */ transferFunctionTable); -QColorSpace* QColorSpace_new8(QPointF* whitePoint, QPointF* redPoint, QPointF* greenPoint, QPointF* bluePoint, struct miqt_array /* of uint16_t */ redTransferFunctionTable, struct miqt_array /* of uint16_t */ greenTransferFunctionTable, struct miqt_array /* of uint16_t */ blueTransferFunctionTable); +QColorSpace* QColorSpace_new7(QPointF* whitePoint, QPointF* redPoint, QPointF* greenPoint, QPointF* bluePoint, struct miqt_array /* of uint16_t */ transferFunctionTable); +QColorSpace* QColorSpace_new8(QPointF* whitePoint, QPointF* redPoint, QPointF* greenPoint, QPointF* bluePoint, struct miqt_array /* of uint16_t */ redTransferFunctionTable, struct miqt_array /* of uint16_t */ greenTransferFunctionTable, struct miqt_array /* of uint16_t */ blueTransferFunctionTable); QColorSpace* QColorSpace_new9(QColorSpace* colorSpace); QColorSpace* QColorSpace_new10(int primaries, int transferFunction, float gamma); QColorSpace* QColorSpace_new11(QPointF* whitePoint, QPointF* redPoint, QPointF* greenPoint, QPointF* bluePoint, int transferFunction, float gamma); @@ -44,11 +45,11 @@ float QColorSpace_Gamma(const QColorSpace* self); struct miqt_string QColorSpace_Description(const QColorSpace* self); void QColorSpace_SetDescription(QColorSpace* self, struct miqt_string description); void QColorSpace_SetTransferFunction(QColorSpace* self, int transferFunction); -void QColorSpace_SetTransferFunctionWithTransferFunctionTable(QColorSpace* self, struct miqt_array /* of uint16_t */ transferFunctionTable); -void QColorSpace_SetTransferFunctions(QColorSpace* self, struct miqt_array /* of uint16_t */ redTransferFunctionTable, struct miqt_array /* of uint16_t */ greenTransferFunctionTable, struct miqt_array /* of uint16_t */ blueTransferFunctionTable); +void QColorSpace_SetTransferFunctionWithTransferFunctionTable(QColorSpace* self, struct miqt_array /* of uint16_t */ transferFunctionTable); +void QColorSpace_SetTransferFunctions(QColorSpace* self, struct miqt_array /* of uint16_t */ redTransferFunctionTable, struct miqt_array /* of uint16_t */ greenTransferFunctionTable, struct miqt_array /* of uint16_t */ blueTransferFunctionTable); QColorSpace* QColorSpace_WithTransferFunction(const QColorSpace* self, int transferFunction); -QColorSpace* QColorSpace_WithTransferFunctionWithTransferFunctionTable(const QColorSpace* self, struct miqt_array /* of uint16_t */ transferFunctionTable); -QColorSpace* QColorSpace_WithTransferFunctions(const QColorSpace* self, struct miqt_array /* of uint16_t */ redTransferFunctionTable, struct miqt_array /* of uint16_t */ greenTransferFunctionTable, struct miqt_array /* of uint16_t */ blueTransferFunctionTable); +QColorSpace* QColorSpace_WithTransferFunctionWithTransferFunctionTable(const QColorSpace* self, struct miqt_array /* of uint16_t */ transferFunctionTable); +QColorSpace* QColorSpace_WithTransferFunctions(const QColorSpace* self, struct miqt_array /* of uint16_t */ redTransferFunctionTable, struct miqt_array /* of uint16_t */ greenTransferFunctionTable, struct miqt_array /* of uint16_t */ blueTransferFunctionTable); void QColorSpace_SetPrimaries(QColorSpace* self, int primariesId); void QColorSpace_SetPrimaries2(QColorSpace* self, QPointF* whitePoint, QPointF* redPoint, QPointF* greenPoint, QPointF* bluePoint); void QColorSpace_Detach(QColorSpace* self); diff --git a/qt6/gen_qcolortransform.h b/qt6/gen_qcolortransform.h index 5236784e..8c102bfe 100644 --- a/qt6/gen_qcolortransform.h +++ b/qt6/gen_qcolortransform.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOLORTRANSFORM_H -#define GEN_QCOLORTRANSFORM_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOLORTRANSFORM_H +#define MIQT_QT6_GEN_QCOLORTRANSFORM_H #include #include diff --git a/qt6/gen_qcolumnview.cpp b/qt6/gen_qcolumnview.cpp index fec62aab..64fc1b6d 100644 --- a/qt6/gen_qcolumnview.cpp +++ b/qt6/gen_qcolumnview.cpp @@ -103,7 +103,7 @@ void QColumnView_SetPreviewWidget(QColumnView* self, QWidget* widget) { self->setPreviewWidget(widget); } -void QColumnView_SetColumnWidths(QColumnView* self, struct miqt_array /* of int */ list) { +void QColumnView_SetColumnWidths(QColumnView* self, struct miqt_array /* of int */ list) { QList list_QList; list_QList.reserve(list.len); int* list_arr = static_cast(list.data); @@ -113,7 +113,7 @@ void QColumnView_SetColumnWidths(QColumnView* self, struct miqt_array /* of int self->setColumnWidths(list_QList); } -struct miqt_array QColumnView_ColumnWidths(const QColumnView* self) { +struct miqt_array /* of int */ QColumnView_ColumnWidths(const QColumnView* self) { QList _ret = self->columnWidths(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt6/gen_qcolumnview.h b/qt6/gen_qcolumnview.h index 7d280496..d4433bbe 100644 --- a/qt6/gen_qcolumnview.h +++ b/qt6/gen_qcolumnview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOLUMNVIEW_H -#define GEN_QCOLUMNVIEW_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOLUMNVIEW_H +#define MIQT_QT6_GEN_QCOLUMNVIEW_H #include #include @@ -54,8 +55,8 @@ void QColumnView_SetResizeGripsVisible(QColumnView* self, bool visible); bool QColumnView_ResizeGripsVisible(const QColumnView* self); QWidget* QColumnView_PreviewWidget(const QColumnView* self); void QColumnView_SetPreviewWidget(QColumnView* self, QWidget* widget); -void QColumnView_SetColumnWidths(QColumnView* self, struct miqt_array /* of int */ list); -struct miqt_array QColumnView_ColumnWidths(const QColumnView* self); +void QColumnView_SetColumnWidths(QColumnView* self, struct miqt_array /* of int */ list); +struct miqt_array /* of int */ QColumnView_ColumnWidths(const QColumnView* self); struct miqt_string QColumnView_Tr2(const char* s, const char* c); struct miqt_string QColumnView_Tr3(const char* s, const char* c, int n); void QColumnView_ScrollTo2(QColumnView* self, QModelIndex* index, int hint); diff --git a/qt6/gen_qcombobox.cpp b/qt6/gen_qcombobox.cpp index f36af8a2..915ec2ae 100644 --- a/qt6/gen_qcombobox.cpp +++ b/qt6/gen_qcombobox.cpp @@ -254,7 +254,7 @@ void QComboBox_AddItem2(QComboBox* self, QIcon* icon, struct miqt_string text) { self->addItem(*icon, text_QString); } -void QComboBox_AddItems(QComboBox* self, struct miqt_array /* of struct miqt_string */ texts) { +void QComboBox_AddItems(QComboBox* self, struct miqt_array /* of struct miqt_string */ texts) { QStringList texts_QList; texts_QList.reserve(texts.len); struct miqt_string* texts_arr = static_cast(texts.data); @@ -275,7 +275,7 @@ void QComboBox_InsertItem2(QComboBox* self, int index, QIcon* icon, struct miqt_ self->insertItem(static_cast(index), *icon, text_QString); } -void QComboBox_InsertItems(QComboBox* self, int index, struct miqt_array /* of struct miqt_string */ texts) { +void QComboBox_InsertItems(QComboBox* self, int index, struct miqt_array /* of struct miqt_string */ texts) { QStringList texts_QList; texts_QList.reserve(texts.len); struct miqt_string* texts_arr = static_cast(texts.data); diff --git a/qt6/gen_qcombobox.h b/qt6/gen_qcombobox.h index ba6f5155..6d0f6af6 100644 --- a/qt6/gen_qcombobox.h +++ b/qt6/gen_qcombobox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOMBOBOX_H -#define GEN_QCOMBOBOX_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOMBOBOX_H +#define MIQT_QT6_GEN_QCOMBOBOX_H #include #include @@ -95,10 +96,10 @@ QIcon* QComboBox_ItemIcon(const QComboBox* self, int index); QVariant* QComboBox_ItemData(const QComboBox* self, int index); void QComboBox_AddItem(QComboBox* self, struct miqt_string text); void QComboBox_AddItem2(QComboBox* self, QIcon* icon, struct miqt_string text); -void QComboBox_AddItems(QComboBox* self, struct miqt_array /* of struct miqt_string */ texts); +void QComboBox_AddItems(QComboBox* self, struct miqt_array /* of struct miqt_string */ texts); void QComboBox_InsertItem(QComboBox* self, int index, struct miqt_string text); void QComboBox_InsertItem2(QComboBox* self, int index, QIcon* icon, struct miqt_string text); -void QComboBox_InsertItems(QComboBox* self, int index, struct miqt_array /* of struct miqt_string */ texts); +void QComboBox_InsertItems(QComboBox* self, int index, struct miqt_array /* of struct miqt_string */ texts); void QComboBox_InsertSeparator(QComboBox* self, int index); void QComboBox_RemoveItem(QComboBox* self, int index); void QComboBox_SetItemText(QComboBox* self, int index, struct miqt_string text); diff --git a/qt6/gen_qcommandlineoption.cpp b/qt6/gen_qcommandlineoption.cpp index dc02a091..2f09058b 100644 --- a/qt6/gen_qcommandlineoption.cpp +++ b/qt6/gen_qcommandlineoption.cpp @@ -12,7 +12,7 @@ QCommandLineOption* QCommandLineOption_new(struct miqt_string name) { return new QCommandLineOption(name_QString); } -QCommandLineOption* QCommandLineOption_new2(struct miqt_array /* of struct miqt_string */ names) { +QCommandLineOption* QCommandLineOption_new2(struct miqt_array /* of struct miqt_string */ names) { QStringList names_QList; names_QList.reserve(names.len); struct miqt_string* names_arr = static_cast(names.data); @@ -29,7 +29,7 @@ QCommandLineOption* QCommandLineOption_new3(struct miqt_string name, struct miqt return new QCommandLineOption(name_QString, description_QString); } -QCommandLineOption* QCommandLineOption_new4(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description) { +QCommandLineOption* QCommandLineOption_new4(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description) { QStringList names_QList; names_QList.reserve(names.len); struct miqt_string* names_arr = static_cast(names.data); @@ -60,7 +60,7 @@ QCommandLineOption* QCommandLineOption_new7(struct miqt_string name, struct miqt return new QCommandLineOption(name_QString, description_QString, valueName_QString, defaultValue_QString); } -QCommandLineOption* QCommandLineOption_new8(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName) { +QCommandLineOption* QCommandLineOption_new8(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName) { QStringList names_QList; names_QList.reserve(names.len); struct miqt_string* names_arr = static_cast(names.data); @@ -73,7 +73,7 @@ QCommandLineOption* QCommandLineOption_new8(struct miqt_array /* of struct miqt_ return new QCommandLineOption(names_QList, description_QString, valueName_QString); } -QCommandLineOption* QCommandLineOption_new9(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName, struct miqt_string defaultValue) { +QCommandLineOption* QCommandLineOption_new9(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName, struct miqt_string defaultValue) { QStringList names_QList; names_QList.reserve(names.len); struct miqt_string* names_arr = static_cast(names.data); @@ -95,7 +95,7 @@ void QCommandLineOption_Swap(QCommandLineOption* self, QCommandLineOption* other self->swap(*other); } -struct miqt_array QCommandLineOption_Names(const QCommandLineOption* self) { +struct miqt_array /* of struct miqt_string */ QCommandLineOption_Names(const QCommandLineOption* self) { QStringList _ret = self->names(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -152,7 +152,7 @@ void QCommandLineOption_SetDefaultValue(QCommandLineOption* self, struct miqt_st self->setDefaultValue(defaultValue_QString); } -void QCommandLineOption_SetDefaultValues(QCommandLineOption* self, struct miqt_array /* of struct miqt_string */ defaultValues) { +void QCommandLineOption_SetDefaultValues(QCommandLineOption* self, struct miqt_array /* of struct miqt_string */ defaultValues) { QStringList defaultValues_QList; defaultValues_QList.reserve(defaultValues.len); struct miqt_string* defaultValues_arr = static_cast(defaultValues.data); @@ -163,7 +163,7 @@ void QCommandLineOption_SetDefaultValues(QCommandLineOption* self, struct miqt_a self->setDefaultValues(defaultValues_QList); } -struct miqt_array QCommandLineOption_DefaultValues(const QCommandLineOption* self) { +struct miqt_array /* of struct miqt_string */ QCommandLineOption_DefaultValues(const QCommandLineOption* self) { QStringList _ret = self->defaultValues(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qcommandlineoption.h b/qt6/gen_qcommandlineoption.h index 0d5f90f0..d8457b78 100644 --- a/qt6/gen_qcommandlineoption.h +++ b/qt6/gen_qcommandlineoption.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOMMANDLINEOPTION_H -#define GEN_QCOMMANDLINEOPTION_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOMMANDLINEOPTION_H +#define MIQT_QT6_GEN_QCOMMANDLINEOPTION_H #include #include @@ -20,24 +21,24 @@ typedef struct QCommandLineOption QCommandLineOption; #endif QCommandLineOption* QCommandLineOption_new(struct miqt_string name); -QCommandLineOption* QCommandLineOption_new2(struct miqt_array /* of struct miqt_string */ names); +QCommandLineOption* QCommandLineOption_new2(struct miqt_array /* of struct miqt_string */ names); QCommandLineOption* QCommandLineOption_new3(struct miqt_string name, struct miqt_string description); -QCommandLineOption* QCommandLineOption_new4(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description); +QCommandLineOption* QCommandLineOption_new4(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description); QCommandLineOption* QCommandLineOption_new5(QCommandLineOption* other); QCommandLineOption* QCommandLineOption_new6(struct miqt_string name, struct miqt_string description, struct miqt_string valueName); QCommandLineOption* QCommandLineOption_new7(struct miqt_string name, struct miqt_string description, struct miqt_string valueName, struct miqt_string defaultValue); -QCommandLineOption* QCommandLineOption_new8(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName); -QCommandLineOption* QCommandLineOption_new9(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName, struct miqt_string defaultValue); +QCommandLineOption* QCommandLineOption_new8(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName); +QCommandLineOption* QCommandLineOption_new9(struct miqt_array /* of struct miqt_string */ names, struct miqt_string description, struct miqt_string valueName, struct miqt_string defaultValue); void QCommandLineOption_OperatorAssign(QCommandLineOption* self, QCommandLineOption* other); void QCommandLineOption_Swap(QCommandLineOption* self, QCommandLineOption* other); -struct miqt_array QCommandLineOption_Names(const QCommandLineOption* self); +struct miqt_array /* of struct miqt_string */ QCommandLineOption_Names(const QCommandLineOption* self); void QCommandLineOption_SetValueName(QCommandLineOption* self, struct miqt_string name); struct miqt_string QCommandLineOption_ValueName(const QCommandLineOption* self); void QCommandLineOption_SetDescription(QCommandLineOption* self, struct miqt_string description); struct miqt_string QCommandLineOption_Description(const QCommandLineOption* self); void QCommandLineOption_SetDefaultValue(QCommandLineOption* self, struct miqt_string defaultValue); -void QCommandLineOption_SetDefaultValues(QCommandLineOption* self, struct miqt_array /* of struct miqt_string */ defaultValues); -struct miqt_array QCommandLineOption_DefaultValues(const QCommandLineOption* self); +void QCommandLineOption_SetDefaultValues(QCommandLineOption* self, struct miqt_array /* of struct miqt_string */ defaultValues); +struct miqt_array /* of struct miqt_string */ QCommandLineOption_DefaultValues(const QCommandLineOption* self); int QCommandLineOption_Flags(const QCommandLineOption* self); void QCommandLineOption_SetFlags(QCommandLineOption* self, int aflags); void QCommandLineOption_Delete(QCommandLineOption* self); diff --git a/qt6/gen_qcommandlineparser.cpp b/qt6/gen_qcommandlineparser.cpp index 2ac88797..f465b26d 100644 --- a/qt6/gen_qcommandlineparser.cpp +++ b/qt6/gen_qcommandlineparser.cpp @@ -36,7 +36,7 @@ bool QCommandLineParser_AddOption(QCommandLineParser* self, QCommandLineOption* return self->addOption(*commandLineOption); } -bool QCommandLineParser_AddOptions(QCommandLineParser* self, struct miqt_array /* of QCommandLineOption* */ options) { +bool QCommandLineParser_AddOptions(QCommandLineParser* self, struct miqt_array /* of QCommandLineOption* */ options) { QList options_QList; options_QList.reserve(options.len); QCommandLineOption** options_arr = static_cast(options.data); @@ -80,7 +80,7 @@ void QCommandLineParser_ClearPositionalArguments(QCommandLineParser* self) { self->clearPositionalArguments(); } -void QCommandLineParser_Process(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments) { +void QCommandLineParser_Process(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments) { QStringList arguments_QList; arguments_QList.reserve(arguments.len); struct miqt_string* arguments_arr = static_cast(arguments.data); @@ -95,7 +95,7 @@ void QCommandLineParser_ProcessWithApp(QCommandLineParser* self, QCoreApplicatio self->process(*app); } -bool QCommandLineParser_Parse(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments) { +bool QCommandLineParser_Parse(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments) { QStringList arguments_QList; arguments_QList.reserve(arguments.len); struct miqt_string* arguments_arr = static_cast(arguments.data); @@ -134,7 +134,7 @@ struct miqt_string QCommandLineParser_Value(const QCommandLineParser* self, stru return _ms; } -struct miqt_array QCommandLineParser_Values(const QCommandLineParser* self, struct miqt_string name) { +struct miqt_array /* of struct miqt_string */ QCommandLineParser_Values(const QCommandLineParser* self, struct miqt_string name) { QString name_QString = QString::fromUtf8(name.data, name.len); QStringList _ret = self->values(name_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -170,7 +170,7 @@ struct miqt_string QCommandLineParser_ValueWithOption(const QCommandLineParser* return _ms; } -struct miqt_array QCommandLineParser_ValuesWithOption(const QCommandLineParser* self, QCommandLineOption* option) { +struct miqt_array /* of struct miqt_string */ QCommandLineParser_ValuesWithOption(const QCommandLineParser* self, QCommandLineOption* option) { QStringList _ret = self->values(*option); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -190,7 +190,7 @@ struct miqt_array QCommandLineParser_ValuesWithOption(const QCommandLineParser* return _out; } -struct miqt_array QCommandLineParser_PositionalArguments(const QCommandLineParser* self) { +struct miqt_array /* of struct miqt_string */ QCommandLineParser_PositionalArguments(const QCommandLineParser* self) { QStringList _ret = self->positionalArguments(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -210,7 +210,7 @@ struct miqt_array QCommandLineParser_PositionalArguments(const QCommandLineParse return _out; } -struct miqt_array QCommandLineParser_OptionNames(const QCommandLineParser* self) { +struct miqt_array /* of struct miqt_string */ QCommandLineParser_OptionNames(const QCommandLineParser* self) { QStringList _ret = self->optionNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -230,7 +230,7 @@ struct miqt_array QCommandLineParser_OptionNames(const QCommandLineParser* self) return _out; } -struct miqt_array QCommandLineParser_UnknownOptionNames(const QCommandLineParser* self) { +struct miqt_array /* of struct miqt_string */ QCommandLineParser_UnknownOptionNames(const QCommandLineParser* self) { QStringList _ret = self->unknownOptionNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qcommandlineparser.h b/qt6/gen_qcommandlineparser.h index f1055caf..3172a4ce 100644 --- a/qt6/gen_qcommandlineparser.h +++ b/qt6/gen_qcommandlineparser.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOMMANDLINEPARSER_H -#define GEN_QCOMMANDLINEPARSER_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOMMANDLINEPARSER_H +#define MIQT_QT6_GEN_QCOMMANDLINEPARSER_H #include #include @@ -28,26 +29,26 @@ struct miqt_string QCommandLineParser_Tr(const char* sourceText); void QCommandLineParser_SetSingleDashWordOptionMode(QCommandLineParser* self, int parsingMode); void QCommandLineParser_SetOptionsAfterPositionalArgumentsMode(QCommandLineParser* self, int mode); bool QCommandLineParser_AddOption(QCommandLineParser* self, QCommandLineOption* commandLineOption); -bool QCommandLineParser_AddOptions(QCommandLineParser* self, struct miqt_array /* of QCommandLineOption* */ options); +bool QCommandLineParser_AddOptions(QCommandLineParser* self, struct miqt_array /* of QCommandLineOption* */ options); QCommandLineOption* QCommandLineParser_AddVersionOption(QCommandLineParser* self); QCommandLineOption* QCommandLineParser_AddHelpOption(QCommandLineParser* self); void QCommandLineParser_SetApplicationDescription(QCommandLineParser* self, struct miqt_string description); struct miqt_string QCommandLineParser_ApplicationDescription(const QCommandLineParser* self); void QCommandLineParser_AddPositionalArgument(QCommandLineParser* self, struct miqt_string name, struct miqt_string description); void QCommandLineParser_ClearPositionalArguments(QCommandLineParser* self); -void QCommandLineParser_Process(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments); +void QCommandLineParser_Process(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments); void QCommandLineParser_ProcessWithApp(QCommandLineParser* self, QCoreApplication* app); -bool QCommandLineParser_Parse(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments); +bool QCommandLineParser_Parse(QCommandLineParser* self, struct miqt_array /* of struct miqt_string */ arguments); struct miqt_string QCommandLineParser_ErrorText(const QCommandLineParser* self); bool QCommandLineParser_IsSet(const QCommandLineParser* self, struct miqt_string name); struct miqt_string QCommandLineParser_Value(const QCommandLineParser* self, struct miqt_string name); -struct miqt_array QCommandLineParser_Values(const QCommandLineParser* self, struct miqt_string name); +struct miqt_array /* of struct miqt_string */ QCommandLineParser_Values(const QCommandLineParser* self, struct miqt_string name); bool QCommandLineParser_IsSetWithOption(const QCommandLineParser* self, QCommandLineOption* option); struct miqt_string QCommandLineParser_ValueWithOption(const QCommandLineParser* self, QCommandLineOption* option); -struct miqt_array QCommandLineParser_ValuesWithOption(const QCommandLineParser* self, QCommandLineOption* option); -struct miqt_array QCommandLineParser_PositionalArguments(const QCommandLineParser* self); -struct miqt_array QCommandLineParser_OptionNames(const QCommandLineParser* self); -struct miqt_array QCommandLineParser_UnknownOptionNames(const QCommandLineParser* self); +struct miqt_array /* of struct miqt_string */ QCommandLineParser_ValuesWithOption(const QCommandLineParser* self, QCommandLineOption* option); +struct miqt_array /* of struct miqt_string */ QCommandLineParser_PositionalArguments(const QCommandLineParser* self); +struct miqt_array /* of struct miqt_string */ QCommandLineParser_OptionNames(const QCommandLineParser* self); +struct miqt_array /* of struct miqt_string */ QCommandLineParser_UnknownOptionNames(const QCommandLineParser* self); void QCommandLineParser_ShowVersion(QCommandLineParser* self); void QCommandLineParser_ShowHelp(QCommandLineParser* self); struct miqt_string QCommandLineParser_HelpText(const QCommandLineParser* self); diff --git a/qt6/gen_qcommandlinkbutton.h b/qt6/gen_qcommandlinkbutton.h index 640dfd72..d646ba16 100644 --- a/qt6/gen_qcommandlinkbutton.h +++ b/qt6/gen_qcommandlinkbutton.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOMMANDLINKBUTTON_H -#define GEN_QCOMMANDLINKBUTTON_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOMMANDLINKBUTTON_H +#define MIQT_QT6_GEN_QCOMMANDLINKBUTTON_H #include #include diff --git a/qt6/gen_qcommonstyle.h b/qt6/gen_qcommonstyle.h index a668112a..e4865028 100644 --- a/qt6/gen_qcommonstyle.h +++ b/qt6/gen_qcommonstyle.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOMMONSTYLE_H -#define GEN_QCOMMONSTYLE_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOMMONSTYLE_H +#define MIQT_QT6_GEN_QCOMMONSTYLE_H #include #include diff --git a/qt6/gen_qcompare.h b/qt6/gen_qcompare.h index 4bcacb38..f37cd77d 100644 --- a/qt6/gen_qcompare.h +++ b/qt6/gen_qcompare.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOMPARE_H -#define GEN_QCOMPARE_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOMPARE_H +#define MIQT_QT6_GEN_QCOMPARE_H #include #include diff --git a/qt6/gen_qcompleter.cpp b/qt6/gen_qcompleter.cpp index 609b8f61..7df13958 100644 --- a/qt6/gen_qcompleter.cpp +++ b/qt6/gen_qcompleter.cpp @@ -22,7 +22,7 @@ QCompleter* QCompleter_new2(QAbstractItemModel* model) { return new QCompleter(model); } -QCompleter* QCompleter_new3(struct miqt_array /* of struct miqt_string */ completions) { +QCompleter* QCompleter_new3(struct miqt_array /* of struct miqt_string */ completions) { QStringList completions_QList; completions_QList.reserve(completions.len); struct miqt_string* completions_arr = static_cast(completions.data); @@ -41,7 +41,7 @@ QCompleter* QCompleter_new5(QAbstractItemModel* model, QObject* parent) { return new QCompleter(model, parent); } -QCompleter* QCompleter_new6(struct miqt_array /* of struct miqt_string */ completions, QObject* parent) { +QCompleter* QCompleter_new6(struct miqt_array /* of struct miqt_string */ completions, QObject* parent) { QStringList completions_QList; completions_QList.reserve(completions.len); struct miqt_string* completions_arr = static_cast(completions.data); @@ -225,7 +225,7 @@ struct miqt_string QCompleter_PathFromIndex(const QCompleter* self, QModelIndex* return _ms; } -struct miqt_array QCompleter_SplitPath(const QCompleter* self, struct miqt_string path) { +struct miqt_array /* of struct miqt_string */ QCompleter_SplitPath(const QCompleter* self, struct miqt_string path) { QString path_QString = QString::fromUtf8(path.data, path.len); QStringList _ret = self->splitPath(path_QString); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt6/gen_qcompleter.h b/qt6/gen_qcompleter.h index 03b43835..b878db8d 100644 --- a/qt6/gen_qcompleter.h +++ b/qt6/gen_qcompleter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOMPLETER_H -#define GEN_QCOMPLETER_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOMPLETER_H +#define MIQT_QT6_GEN_QCOMPLETER_H #include #include @@ -35,10 +36,10 @@ typedef struct QWidget QWidget; QCompleter* QCompleter_new(); QCompleter* QCompleter_new2(QAbstractItemModel* model); -QCompleter* QCompleter_new3(struct miqt_array /* of struct miqt_string */ completions); +QCompleter* QCompleter_new3(struct miqt_array /* of struct miqt_string */ completions); QCompleter* QCompleter_new4(QObject* parent); QCompleter* QCompleter_new5(QAbstractItemModel* model, QObject* parent); -QCompleter* QCompleter_new6(struct miqt_array /* of struct miqt_string */ completions, QObject* parent); +QCompleter* QCompleter_new6(struct miqt_array /* of struct miqt_string */ completions, QObject* parent); QMetaObject* QCompleter_MetaObject(const QCompleter* self); void* QCompleter_Metacast(QCompleter* self, const char* param1); struct miqt_string QCompleter_Tr(const char* s); @@ -74,7 +75,7 @@ void QCompleter_SetCompletionPrefix(QCompleter* self, struct miqt_string prefix) void QCompleter_Complete(QCompleter* self); void QCompleter_SetWrapAround(QCompleter* self, bool wrap); struct miqt_string QCompleter_PathFromIndex(const QCompleter* self, QModelIndex* index); -struct miqt_array QCompleter_SplitPath(const QCompleter* self, struct miqt_string path); +struct miqt_array /* of struct miqt_string */ QCompleter_SplitPath(const QCompleter* self, struct miqt_string path); void QCompleter_Activated(QCompleter* self, struct miqt_string text); void QCompleter_connect_Activated(QCompleter* self, intptr_t slot); void QCompleter_ActivatedWithIndex(QCompleter* self, QModelIndex* index); diff --git a/qt6/gen_qconcatenatetablesproxymodel.cpp b/qt6/gen_qconcatenatetablesproxymodel.cpp index b0ba4085..30c71167 100644 --- a/qt6/gen_qconcatenatetablesproxymodel.cpp +++ b/qt6/gen_qconcatenatetablesproxymodel.cpp @@ -42,7 +42,7 @@ struct miqt_string QConcatenateTablesProxyModel_Tr(const char* s) { return _ms; } -struct miqt_array QConcatenateTablesProxyModel_SourceModels(const QConcatenateTablesProxyModel* self) { +struct miqt_array /* of QAbstractItemModel* */ QConcatenateTablesProxyModel_SourceModels(const QConcatenateTablesProxyModel* self) { QList _ret = self->sourceModels(); // Convert QList<> from C++ memory to manually-managed C memory QAbstractItemModel** _arr = static_cast(malloc(sizeof(QAbstractItemModel*) * _ret.length())); @@ -79,7 +79,7 @@ bool QConcatenateTablesProxyModel_SetData(QConcatenateTablesProxyModel* self, QM return self->setData(*index, *value); } -struct miqt_map QConcatenateTablesProxyModel_ItemData(const QConcatenateTablesProxyModel* self, QModelIndex* proxyIndex) { +struct miqt_map /* of int to QVariant* */ QConcatenateTablesProxyModel_ItemData(const QConcatenateTablesProxyModel* self, QModelIndex* proxyIndex) { QMap _ret = self->itemData(*proxyIndex); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -97,7 +97,7 @@ struct miqt_map QConcatenateTablesProxyModel_ItemData(const QConcatenateTablesPr return _out; } -bool QConcatenateTablesProxyModel_SetItemData(QConcatenateTablesProxyModel* self, QModelIndex* index, struct miqt_map roles) { +bool QConcatenateTablesProxyModel_SetItemData(QConcatenateTablesProxyModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) { QMap roles_QMap; int* roles_karr = static_cast(roles.keys); QVariant** roles_varr = static_cast(roles.values); @@ -132,7 +132,7 @@ int QConcatenateTablesProxyModel_ColumnCount(const QConcatenateTablesProxyModel* return self->columnCount(); } -struct miqt_array QConcatenateTablesProxyModel_MimeTypes(const QConcatenateTablesProxyModel* self) { +struct miqt_array /* of struct miqt_string */ QConcatenateTablesProxyModel_MimeTypes(const QConcatenateTablesProxyModel* self) { QStringList _ret = self->mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -152,7 +152,7 @@ struct miqt_array QConcatenateTablesProxyModel_MimeTypes(const QConcatenateTable return _out; } -QMimeData* QConcatenateTablesProxyModel_MimeData(const QConcatenateTablesProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes) { +QMimeData* QConcatenateTablesProxyModel_MimeData(const QConcatenateTablesProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); diff --git a/qt6/gen_qconcatenatetablesproxymodel.h b/qt6/gen_qconcatenatetablesproxymodel.h index 78fdd66d..ddbcfb5e 100644 --- a/qt6/gen_qconcatenatetablesproxymodel.h +++ b/qt6/gen_qconcatenatetablesproxymodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCONCATENATETABLESPROXYMODEL_H -#define GEN_QCONCATENATETABLESPROXYMODEL_H +#pragma once +#ifndef MIQT_QT6_GEN_QCONCATENATETABLESPROXYMODEL_H +#define MIQT_QT6_GEN_QCONCATENATETABLESPROXYMODEL_H #include #include @@ -38,23 +39,23 @@ QConcatenateTablesProxyModel* QConcatenateTablesProxyModel_new2(QObject* parent) QMetaObject* QConcatenateTablesProxyModel_MetaObject(const QConcatenateTablesProxyModel* self); void* QConcatenateTablesProxyModel_Metacast(QConcatenateTablesProxyModel* self, const char* param1); struct miqt_string QConcatenateTablesProxyModel_Tr(const char* s); -struct miqt_array QConcatenateTablesProxyModel_SourceModels(const QConcatenateTablesProxyModel* self); +struct miqt_array /* of QAbstractItemModel* */ QConcatenateTablesProxyModel_SourceModels(const QConcatenateTablesProxyModel* self); void QConcatenateTablesProxyModel_AddSourceModel(QConcatenateTablesProxyModel* self, QAbstractItemModel* sourceModel); void QConcatenateTablesProxyModel_RemoveSourceModel(QConcatenateTablesProxyModel* self, QAbstractItemModel* sourceModel); QModelIndex* QConcatenateTablesProxyModel_MapFromSource(const QConcatenateTablesProxyModel* self, QModelIndex* sourceIndex); QModelIndex* QConcatenateTablesProxyModel_MapToSource(const QConcatenateTablesProxyModel* self, QModelIndex* proxyIndex); QVariant* QConcatenateTablesProxyModel_Data(const QConcatenateTablesProxyModel* self, QModelIndex* index); bool QConcatenateTablesProxyModel_SetData(QConcatenateTablesProxyModel* self, QModelIndex* index, QVariant* value); -struct miqt_map QConcatenateTablesProxyModel_ItemData(const QConcatenateTablesProxyModel* self, QModelIndex* proxyIndex); -bool QConcatenateTablesProxyModel_SetItemData(QConcatenateTablesProxyModel* self, QModelIndex* index, struct miqt_map roles); +struct miqt_map /* of int to QVariant* */ QConcatenateTablesProxyModel_ItemData(const QConcatenateTablesProxyModel* self, QModelIndex* proxyIndex); +bool QConcatenateTablesProxyModel_SetItemData(QConcatenateTablesProxyModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles); int QConcatenateTablesProxyModel_Flags(const QConcatenateTablesProxyModel* self, QModelIndex* index); QModelIndex* QConcatenateTablesProxyModel_Index(const QConcatenateTablesProxyModel* self, int row, int column); QModelIndex* QConcatenateTablesProxyModel_Parent(const QConcatenateTablesProxyModel* self, QModelIndex* index); int QConcatenateTablesProxyModel_RowCount(const QConcatenateTablesProxyModel* self); QVariant* QConcatenateTablesProxyModel_HeaderData(const QConcatenateTablesProxyModel* self, int section, int orientation); int QConcatenateTablesProxyModel_ColumnCount(const QConcatenateTablesProxyModel* self); -struct miqt_array QConcatenateTablesProxyModel_MimeTypes(const QConcatenateTablesProxyModel* self); -QMimeData* QConcatenateTablesProxyModel_MimeData(const QConcatenateTablesProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes); +struct miqt_array /* of struct miqt_string */ QConcatenateTablesProxyModel_MimeTypes(const QConcatenateTablesProxyModel* self); +QMimeData* QConcatenateTablesProxyModel_MimeData(const QConcatenateTablesProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes); bool QConcatenateTablesProxyModel_CanDropMimeData(const QConcatenateTablesProxyModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); bool QConcatenateTablesProxyModel_DropMimeData(QConcatenateTablesProxyModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); QSize* QConcatenateTablesProxyModel_Span(const QConcatenateTablesProxyModel* self, QModelIndex* index); diff --git a/qt6/gen_qcontiguouscache.h b/qt6/gen_qcontiguouscache.h index 846c381b..5464e5f7 100644 --- a/qt6/gen_qcontiguouscache.h +++ b/qt6/gen_qcontiguouscache.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCONTIGUOUSCACHE_H -#define GEN_QCONTIGUOUSCACHE_H +#pragma once +#ifndef MIQT_QT6_GEN_QCONTIGUOUSCACHE_H +#define MIQT_QT6_GEN_QCONTIGUOUSCACHE_H #include #include diff --git a/qt6/gen_qcoreapplication.cpp b/qt6/gen_qcoreapplication.cpp index 11abfc85..b1586677 100644 --- a/qt6/gen_qcoreapplication.cpp +++ b/qt6/gen_qcoreapplication.cpp @@ -40,7 +40,7 @@ struct miqt_string QCoreApplication_Tr(const char* s) { return _ms; } -struct miqt_array QCoreApplication_Arguments() { +struct miqt_array /* of struct miqt_string */ QCoreApplication_Arguments() { QStringList _ret = QCoreApplication::arguments(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -219,7 +219,7 @@ long long QCoreApplication_ApplicationPid() { return static_cast(_ret); } -void QCoreApplication_SetLibraryPaths(struct miqt_array /* of struct miqt_string */ libraryPaths) { +void QCoreApplication_SetLibraryPaths(struct miqt_array /* of struct miqt_string */ libraryPaths) { QStringList libraryPaths_QList; libraryPaths_QList.reserve(libraryPaths.len); struct miqt_string* libraryPaths_arr = static_cast(libraryPaths.data); @@ -230,7 +230,7 @@ void QCoreApplication_SetLibraryPaths(struct miqt_array /* of struct miqt_string QCoreApplication::setLibraryPaths(libraryPaths_QList); } -struct miqt_array QCoreApplication_LibraryPaths() { +struct miqt_array /* of struct miqt_string */ QCoreApplication_LibraryPaths() { QStringList _ret = QCoreApplication::libraryPaths(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qcoreapplication.h b/qt6/gen_qcoreapplication.h index 08d1efb2..a92a6c26 100644 --- a/qt6/gen_qcoreapplication.h +++ b/qt6/gen_qcoreapplication.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOREAPPLICATION_H -#define GEN_QCOREAPPLICATION_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOREAPPLICATION_H +#define MIQT_QT6_GEN_QCOREAPPLICATION_H #include #include @@ -36,7 +37,7 @@ QCoreApplication* QCoreApplication_new2(int* argc, char** argv, int param3); QMetaObject* QCoreApplication_MetaObject(const QCoreApplication* self); void* QCoreApplication_Metacast(QCoreApplication* self, const char* param1); struct miqt_string QCoreApplication_Tr(const char* s); -struct miqt_array QCoreApplication_Arguments(); +struct miqt_array /* of struct miqt_string */ QCoreApplication_Arguments(); void QCoreApplication_SetAttribute(int attribute); bool QCoreApplication_TestAttribute(int attribute); void QCoreApplication_SetOrganizationDomain(struct miqt_string orgDomain); @@ -65,8 +66,8 @@ bool QCoreApplication_ClosingDown(); struct miqt_string QCoreApplication_ApplicationDirPath(); struct miqt_string QCoreApplication_ApplicationFilePath(); long long QCoreApplication_ApplicationPid(); -void QCoreApplication_SetLibraryPaths(struct miqt_array /* of struct miqt_string */ libraryPaths); -struct miqt_array QCoreApplication_LibraryPaths(); +void QCoreApplication_SetLibraryPaths(struct miqt_array /* of struct miqt_string */ libraryPaths); +struct miqt_array /* of struct miqt_string */ QCoreApplication_LibraryPaths(); void QCoreApplication_AddLibraryPath(struct miqt_string param1); void QCoreApplication_RemoveLibraryPath(struct miqt_string param1); bool QCoreApplication_InstallTranslator(QTranslator* messageFile); diff --git a/qt6/gen_qcoreevent.h b/qt6/gen_qcoreevent.h index 91cba5db..df5a8ddf 100644 --- a/qt6/gen_qcoreevent.h +++ b/qt6/gen_qcoreevent.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCOREEVENT_H -#define GEN_QCOREEVENT_H +#pragma once +#ifndef MIQT_QT6_GEN_QCOREEVENT_H +#define MIQT_QT6_GEN_QCOREEVENT_H #include #include diff --git a/qt6/gen_qcryptographichash.h b/qt6/gen_qcryptographichash.h index 50784d7a..5bb0d5c9 100644 --- a/qt6/gen_qcryptographichash.h +++ b/qt6/gen_qcryptographichash.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCRYPTOGRAPHICHASH_H -#define GEN_QCRYPTOGRAPHICHASH_H +#pragma once +#ifndef MIQT_QT6_GEN_QCRYPTOGRAPHICHASH_H +#define MIQT_QT6_GEN_QCRYPTOGRAPHICHASH_H #include #include diff --git a/qt6/gen_qcursor.h b/qt6/gen_qcursor.h index 868494d5..06ce7cf7 100644 --- a/qt6/gen_qcursor.h +++ b/qt6/gen_qcursor.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCURSOR_H -#define GEN_QCURSOR_H +#pragma once +#ifndef MIQT_QT6_GEN_QCURSOR_H +#define MIQT_QT6_GEN_QCURSOR_H #include #include diff --git a/qt6/gen_qdatastream.h b/qt6/gen_qdatastream.h index 76a8b6fd..2ff910df 100644 --- a/qt6/gen_qdatastream.h +++ b/qt6/gen_qdatastream.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDATASTREAM_H -#define GEN_QDATASTREAM_H +#pragma once +#ifndef MIQT_QT6_GEN_QDATASTREAM_H +#define MIQT_QT6_GEN_QDATASTREAM_H #include #include diff --git a/qt6/gen_qdatawidgetmapper.h b/qt6/gen_qdatawidgetmapper.h index bccd3ada..c432f0ce 100644 --- a/qt6/gen_qdatawidgetmapper.h +++ b/qt6/gen_qdatawidgetmapper.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDATAWIDGETMAPPER_H -#define GEN_QDATAWIDGETMAPPER_H +#pragma once +#ifndef MIQT_QT6_GEN_QDATAWIDGETMAPPER_H +#define MIQT_QT6_GEN_QDATAWIDGETMAPPER_H #include #include diff --git a/qt6/gen_qdatetime.h b/qt6/gen_qdatetime.h index d19d5e97..d97a9821 100644 --- a/qt6/gen_qdatetime.h +++ b/qt6/gen_qdatetime.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDATETIME_H -#define GEN_QDATETIME_H +#pragma once +#ifndef MIQT_QT6_GEN_QDATETIME_H +#define MIQT_QT6_GEN_QDATETIME_H #include #include diff --git a/qt6/gen_qdatetimeedit.h b/qt6/gen_qdatetimeedit.h index f375ea32..79ba779c 100644 --- a/qt6/gen_qdatetimeedit.h +++ b/qt6/gen_qdatetimeedit.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDATETIMEEDIT_H -#define GEN_QDATETIMEEDIT_H +#pragma once +#ifndef MIQT_QT6_GEN_QDATETIMEEDIT_H +#define MIQT_QT6_GEN_QDATETIMEEDIT_H #include #include diff --git a/qt6/gen_qdeadlinetimer.cpp b/qt6/gen_qdeadlinetimer.cpp index 2a93ec7b..d8172988 100644 --- a/qt6/gen_qdeadlinetimer.cpp +++ b/qt6/gen_qdeadlinetimer.cpp @@ -108,6 +108,20 @@ QDeadlineTimer* QDeadlineTimer_OperatorMinusAssign(QDeadlineTimer* self, long lo return &_ret; } +struct miqt_map /* tuple of long long and unsigned int */ QDeadlineTimer_QData(const QDeadlineTimer* self) { + QPair _ret = self->_q_data(); + // Convert QPair<> from C++ memory to manually-managed C memory + long long* _first_arr = static_cast(malloc(sizeof(long long))); + unsigned int* _second_arr = static_cast(malloc(sizeof(unsigned int))); + _first_arr[0] = _ret.first; + _second_arr[0] = _ret.second; + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + void QDeadlineTimer_OperatorAssign(QDeadlineTimer* self, QDeadlineTimer* param1) { self->operator=(*param1); } diff --git a/qt6/gen_qdeadlinetimer.go b/qt6/gen_qdeadlinetimer.go index 39f6bced..44cd3e8c 100644 --- a/qt6/gen_qdeadlinetimer.go +++ b/qt6/gen_qdeadlinetimer.go @@ -164,6 +164,23 @@ func (this *QDeadlineTimer) OperatorMinusAssign(msecs int64) *QDeadlineTimer { return UnsafeNewQDeadlineTimer(unsafe.Pointer(C.QDeadlineTimer_OperatorMinusAssign(this.h, (C.longlong)(msecs)))) } +func (this *QDeadlineTimer) QData() struct { + First int64 + Second uint +} { + var _mm C.struct_miqt_map = C.QDeadlineTimer_QData(this.h) + _First_CArray := (*[0xffff]C.longlong)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]C.uint)(unsafe.Pointer(_mm.values)) + _entry_First := (int64)(_First_CArray[0]) + + _entry_Second := (uint)(_Second_CArray[0]) + + return struct { + First int64 + Second uint + }{First: _entry_First, Second: _entry_Second} +} + func (this *QDeadlineTimer) OperatorAssign(param1 *QDeadlineTimer) { C.QDeadlineTimer_OperatorAssign(this.h, param1.cPointer()) } diff --git a/qt6/gen_qdeadlinetimer.h b/qt6/gen_qdeadlinetimer.h index bae9d82c..fae68487 100644 --- a/qt6/gen_qdeadlinetimer.h +++ b/qt6/gen_qdeadlinetimer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDEADLINETIMER_H -#define GEN_QDEADLINETIMER_H +#pragma once +#ifndef MIQT_QT6_GEN_QDEADLINETIMER_H +#define MIQT_QT6_GEN_QDEADLINETIMER_H #include #include @@ -43,6 +44,7 @@ QDeadlineTimer* QDeadlineTimer_AddNSecs(QDeadlineTimer* dt, long long nsecs); QDeadlineTimer* QDeadlineTimer_Current(); QDeadlineTimer* QDeadlineTimer_OperatorPlusAssign(QDeadlineTimer* self, long long msecs); QDeadlineTimer* QDeadlineTimer_OperatorMinusAssign(QDeadlineTimer* self, long long msecs); +struct miqt_map /* tuple of long long and unsigned int */ QDeadlineTimer_QData(const QDeadlineTimer* self); void QDeadlineTimer_OperatorAssign(QDeadlineTimer* self, QDeadlineTimer* param1); void QDeadlineTimer_SetRemainingTime2(QDeadlineTimer* self, long long msecs, int typeVal); void QDeadlineTimer_SetPreciseRemainingTime2(QDeadlineTimer* self, long long secs, long long nsecs); diff --git a/qt6/gen_qdebug.h b/qt6/gen_qdebug.h index 5dfcd727..7537991c 100644 --- a/qt6/gen_qdebug.h +++ b/qt6/gen_qdebug.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDEBUG_H -#define GEN_QDEBUG_H +#pragma once +#ifndef MIQT_QT6_GEN_QDEBUG_H +#define MIQT_QT6_GEN_QDEBUG_H #include #include diff --git a/qt6/gen_qdesktopservices.h b/qt6/gen_qdesktopservices.h index af8badb6..837afd13 100644 --- a/qt6/gen_qdesktopservices.h +++ b/qt6/gen_qdesktopservices.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDESKTOPSERVICES_H -#define GEN_QDESKTOPSERVICES_H +#pragma once +#ifndef MIQT_QT6_GEN_QDESKTOPSERVICES_H +#define MIQT_QT6_GEN_QDESKTOPSERVICES_H #include #include diff --git a/qt6/gen_qdial.h b/qt6/gen_qdial.h index dfac05ba..00b030eb 100644 --- a/qt6/gen_qdial.h +++ b/qt6/gen_qdial.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDIAL_H -#define GEN_QDIAL_H +#pragma once +#ifndef MIQT_QT6_GEN_QDIAL_H +#define MIQT_QT6_GEN_QDIAL_H #include #include diff --git a/qt6/gen_qdialog.h b/qt6/gen_qdialog.h index 713c347f..aab25420 100644 --- a/qt6/gen_qdialog.h +++ b/qt6/gen_qdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDIALOG_H -#define GEN_QDIALOG_H +#pragma once +#ifndef MIQT_QT6_GEN_QDIALOG_H +#define MIQT_QT6_GEN_QDIALOG_H #include #include diff --git a/qt6/gen_qdialogbuttonbox.cpp b/qt6/gen_qdialogbuttonbox.cpp index ea546722..0f0914de 100644 --- a/qt6/gen_qdialogbuttonbox.cpp +++ b/qt6/gen_qdialogbuttonbox.cpp @@ -92,7 +92,7 @@ void QDialogButtonBox_Clear(QDialogButtonBox* self) { self->clear(); } -struct miqt_array QDialogButtonBox_Buttons(const QDialogButtonBox* self) { +struct miqt_array /* of QAbstractButton* */ QDialogButtonBox_Buttons(const QDialogButtonBox* self) { QList _ret = self->buttons(); // Convert QList<> from C++ memory to manually-managed C memory QAbstractButton** _arr = static_cast(malloc(sizeof(QAbstractButton*) * _ret.length())); diff --git a/qt6/gen_qdialogbuttonbox.h b/qt6/gen_qdialogbuttonbox.h index 72cada6d..2a8b7727 100644 --- a/qt6/gen_qdialogbuttonbox.h +++ b/qt6/gen_qdialogbuttonbox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDIALOGBUTTONBOX_H -#define GEN_QDIALOGBUTTONBOX_H +#pragma once +#ifndef MIQT_QT6_GEN_QDIALOGBUTTONBOX_H +#define MIQT_QT6_GEN_QDIALOGBUTTONBOX_H #include #include @@ -45,7 +46,7 @@ QPushButton* QDialogButtonBox_AddButton2(QDialogButtonBox* self, struct miqt_str QPushButton* QDialogButtonBox_AddButtonWithButton(QDialogButtonBox* self, int button); void QDialogButtonBox_RemoveButton(QDialogButtonBox* self, QAbstractButton* button); void QDialogButtonBox_Clear(QDialogButtonBox* self); -struct miqt_array QDialogButtonBox_Buttons(const QDialogButtonBox* self); +struct miqt_array /* of QAbstractButton* */ QDialogButtonBox_Buttons(const QDialogButtonBox* self); int QDialogButtonBox_ButtonRole(const QDialogButtonBox* self, QAbstractButton* button); void QDialogButtonBox_SetStandardButtons(QDialogButtonBox* self, int buttons); int QDialogButtonBox_StandardButtons(const QDialogButtonBox* self); diff --git a/qt6/gen_qdir.cpp b/qt6/gen_qdir.cpp index e266a57b..f56b6b65 100644 --- a/qt6/gen_qdir.cpp +++ b/qt6/gen_qdir.cpp @@ -86,7 +86,7 @@ struct miqt_string QDir_CanonicalPath(const QDir* self) { return _ms; } -void QDir_SetSearchPaths(struct miqt_string prefix, struct miqt_array /* of struct miqt_string */ searchPaths) { +void QDir_SetSearchPaths(struct miqt_string prefix, struct miqt_array /* of struct miqt_string */ searchPaths) { QString prefix_QString = QString::fromUtf8(prefix.data, prefix.len); QStringList searchPaths_QList; searchPaths_QList.reserve(searchPaths.len); @@ -104,7 +104,7 @@ void QDir_AddSearchPath(struct miqt_string prefix, struct miqt_string path) { QDir::addSearchPath(prefix_QString, path_QString); } -struct miqt_array QDir_SearchPaths(struct miqt_string prefix) { +struct miqt_array /* of struct miqt_string */ QDir_SearchPaths(struct miqt_string prefix) { QString prefix_QString = QString::fromUtf8(prefix.data, prefix.len); QStringList _ret = QDir::searchPaths(prefix_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -205,7 +205,7 @@ bool QDir_CdUp(QDir* self) { return self->cdUp(); } -struct miqt_array QDir_NameFilters(const QDir* self) { +struct miqt_array /* of struct miqt_string */ QDir_NameFilters(const QDir* self) { QStringList _ret = self->nameFilters(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -225,7 +225,7 @@ struct miqt_array QDir_NameFilters(const QDir* self) { return _out; } -void QDir_SetNameFilters(QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters) { +void QDir_SetNameFilters(QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); @@ -274,7 +274,7 @@ struct miqt_string QDir_OperatorSubscript(const QDir* self, int param1) { return _ms; } -struct miqt_array QDir_NameFiltersFromString(struct miqt_string nameFilter) { +struct miqt_array /* of struct miqt_string */ QDir_NameFiltersFromString(struct miqt_string nameFilter) { QString nameFilter_QString = QString::fromUtf8(nameFilter.data, nameFilter.len); QStringList _ret = QDir::nameFiltersFromString(nameFilter_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -295,7 +295,7 @@ struct miqt_array QDir_NameFiltersFromString(struct miqt_string nameFilter) { return _out; } -struct miqt_array QDir_EntryList(const QDir* self) { +struct miqt_array /* of struct miqt_string */ QDir_EntryList(const QDir* self) { QStringList _ret = self->entryList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -315,7 +315,7 @@ struct miqt_array QDir_EntryList(const QDir* self) { return _out; } -struct miqt_array QDir_EntryListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters) { +struct miqt_array /* of struct miqt_string */ QDir_EntryListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); @@ -342,7 +342,7 @@ struct miqt_array QDir_EntryListWithNameFilters(const QDir* self, struct miqt_ar return _out; } -struct miqt_array QDir_EntryInfoList(const QDir* self) { +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList(const QDir* self) { QFileInfoList _ret = self->entryInfoList(); // Convert QList<> from C++ memory to manually-managed C memory QFileInfo** _arr = static_cast(malloc(sizeof(QFileInfo*) * _ret.length())); @@ -355,7 +355,7 @@ struct miqt_array QDir_EntryInfoList(const QDir* self) { return _out; } -struct miqt_array QDir_EntryInfoListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters) { +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); @@ -462,7 +462,7 @@ bool QDir_ExistsWithName(const QDir* self, struct miqt_string name) { return self->exists(name_QString); } -struct miqt_array QDir_Drives() { +struct miqt_array /* of QFileInfo* */ QDir_Drives() { QFileInfoList _ret = QDir::drives(); // Convert QList<> from C++ memory to manually-managed C memory QFileInfo** _arr = static_cast(malloc(sizeof(QFileInfo*) * _ret.length())); @@ -548,7 +548,7 @@ struct miqt_string QDir_TempPath() { return _ms; } -bool QDir_Match(struct miqt_array /* of struct miqt_string */ filters, struct miqt_string fileName) { +bool QDir_Match(struct miqt_array /* of struct miqt_string */ filters, struct miqt_string fileName) { QStringList filters_QList; filters_QList.reserve(filters.len); struct miqt_string* filters_arr = static_cast(filters.data); @@ -586,7 +586,7 @@ bool QDir_IsEmpty1(const QDir* self, int filters) { return self->isEmpty(static_cast(filters)); } -struct miqt_array QDir_EntryList1(const QDir* self, int filters) { +struct miqt_array /* of struct miqt_string */ QDir_EntryList1(const QDir* self, int filters) { QStringList _ret = self->entryList(static_cast(filters)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -606,7 +606,7 @@ struct miqt_array QDir_EntryList1(const QDir* self, int filters) { return _out; } -struct miqt_array QDir_EntryList2(const QDir* self, int filters, int sort) { +struct miqt_array /* of struct miqt_string */ QDir_EntryList2(const QDir* self, int filters, int sort) { QStringList _ret = self->entryList(static_cast(filters), static_cast(sort)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -626,7 +626,7 @@ struct miqt_array QDir_EntryList2(const QDir* self, int filters, int sort) { return _out; } -struct miqt_array QDir_EntryList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters) { +struct miqt_array /* of struct miqt_string */ QDir_EntryList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); @@ -653,7 +653,7 @@ struct miqt_array QDir_EntryList22(const QDir* self, struct miqt_array /* of str return _out; } -struct miqt_array QDir_EntryList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort) { +struct miqt_array /* of struct miqt_string */ QDir_EntryList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); @@ -680,7 +680,7 @@ struct miqt_array QDir_EntryList3(const QDir* self, struct miqt_array /* of stru return _out; } -struct miqt_array QDir_EntryInfoList1(const QDir* self, int filters) { +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList1(const QDir* self, int filters) { QFileInfoList _ret = self->entryInfoList(static_cast(filters)); // Convert QList<> from C++ memory to manually-managed C memory QFileInfo** _arr = static_cast(malloc(sizeof(QFileInfo*) * _ret.length())); @@ -693,7 +693,7 @@ struct miqt_array QDir_EntryInfoList1(const QDir* self, int filters) { return _out; } -struct miqt_array QDir_EntryInfoList2(const QDir* self, int filters, int sort) { +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList2(const QDir* self, int filters, int sort) { QFileInfoList _ret = self->entryInfoList(static_cast(filters), static_cast(sort)); // Convert QList<> from C++ memory to manually-managed C memory QFileInfo** _arr = static_cast(malloc(sizeof(QFileInfo*) * _ret.length())); @@ -706,7 +706,7 @@ struct miqt_array QDir_EntryInfoList2(const QDir* self, int filters, int sort) { return _out; } -struct miqt_array QDir_EntryInfoList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters) { +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); @@ -726,7 +726,7 @@ struct miqt_array QDir_EntryInfoList22(const QDir* self, struct miqt_array /* of return _out; } -struct miqt_array QDir_EntryInfoList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort) { +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort) { QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); struct miqt_string* nameFilters_arr = static_cast(nameFilters.data); diff --git a/qt6/gen_qdir.h b/qt6/gen_qdir.h index 9b561f4f..d80c8498 100644 --- a/qt6/gen_qdir.h +++ b/qt6/gen_qdir.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDIR_H -#define GEN_QDIR_H +#pragma once +#ifndef MIQT_QT6_GEN_QDIR_H +#define MIQT_QT6_GEN_QDIR_H #include #include @@ -35,9 +36,9 @@ void QDir_SetPath(QDir* self, struct miqt_string path); struct miqt_string QDir_Path(const QDir* self); struct miqt_string QDir_AbsolutePath(const QDir* self); struct miqt_string QDir_CanonicalPath(const QDir* self); -void QDir_SetSearchPaths(struct miqt_string prefix, struct miqt_array /* of struct miqt_string */ searchPaths); +void QDir_SetSearchPaths(struct miqt_string prefix, struct miqt_array /* of struct miqt_string */ searchPaths); void QDir_AddSearchPath(struct miqt_string prefix, struct miqt_string path); -struct miqt_array QDir_SearchPaths(struct miqt_string prefix); +struct miqt_array /* of struct miqt_string */ QDir_SearchPaths(struct miqt_string prefix); struct miqt_string QDir_DirName(const QDir* self); struct miqt_string QDir_FilePath(const QDir* self, struct miqt_string fileName); struct miqt_string QDir_AbsoluteFilePath(const QDir* self, struct miqt_string fileName); @@ -46,8 +47,8 @@ struct miqt_string QDir_ToNativeSeparators(struct miqt_string pathName); struct miqt_string QDir_FromNativeSeparators(struct miqt_string pathName); bool QDir_Cd(QDir* self, struct miqt_string dirName); bool QDir_CdUp(QDir* self); -struct miqt_array QDir_NameFilters(const QDir* self); -void QDir_SetNameFilters(QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters); +struct miqt_array /* of struct miqt_string */ QDir_NameFilters(const QDir* self); +void QDir_SetNameFilters(QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters); int QDir_Filter(const QDir* self); void QDir_SetFilter(QDir* self, int filter); int QDir_Sorting(const QDir* self); @@ -55,11 +56,11 @@ void QDir_SetSorting(QDir* self, int sort); unsigned int QDir_Count(const QDir* self); bool QDir_IsEmpty(const QDir* self); struct miqt_string QDir_OperatorSubscript(const QDir* self, int param1); -struct miqt_array QDir_NameFiltersFromString(struct miqt_string nameFilter); -struct miqt_array QDir_EntryList(const QDir* self); -struct miqt_array QDir_EntryListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters); -struct miqt_array QDir_EntryInfoList(const QDir* self); -struct miqt_array QDir_EntryInfoListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters); +struct miqt_array /* of struct miqt_string */ QDir_NameFiltersFromString(struct miqt_string nameFilter); +struct miqt_array /* of struct miqt_string */ QDir_EntryList(const QDir* self); +struct miqt_array /* of struct miqt_string */ QDir_EntryListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters); +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList(const QDir* self); +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoListWithNameFilters(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters); bool QDir_Mkdir(const QDir* self, struct miqt_string dirName); bool QDir_Mkdir2(const QDir* self, struct miqt_string dirName, int permissions); bool QDir_Rmdir(const QDir* self, struct miqt_string dirName); @@ -79,7 +80,7 @@ bool QDir_OperatorNotEqual(const QDir* self, QDir* dir); bool QDir_Remove(QDir* self, struct miqt_string fileName); bool QDir_Rename(QDir* self, struct miqt_string oldName, struct miqt_string newName); bool QDir_ExistsWithName(const QDir* self, struct miqt_string name); -struct miqt_array QDir_Drives(); +struct miqt_array /* of QFileInfo* */ QDir_Drives(); QChar* QDir_ListSeparator(); QChar* QDir_Separator(); bool QDir_SetCurrent(struct miqt_string path); @@ -91,19 +92,19 @@ QDir* QDir_Root(); struct miqt_string QDir_RootPath(); QDir* QDir_Temp(); struct miqt_string QDir_TempPath(); -bool QDir_Match(struct miqt_array /* of struct miqt_string */ filters, struct miqt_string fileName); +bool QDir_Match(struct miqt_array /* of struct miqt_string */ filters, struct miqt_string fileName); bool QDir_Match2(struct miqt_string filter, struct miqt_string fileName); struct miqt_string QDir_CleanPath(struct miqt_string path); void QDir_Refresh(const QDir* self); bool QDir_IsEmpty1(const QDir* self, int filters); -struct miqt_array QDir_EntryList1(const QDir* self, int filters); -struct miqt_array QDir_EntryList2(const QDir* self, int filters, int sort); -struct miqt_array QDir_EntryList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters); -struct miqt_array QDir_EntryList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort); -struct miqt_array QDir_EntryInfoList1(const QDir* self, int filters); -struct miqt_array QDir_EntryInfoList2(const QDir* self, int filters, int sort); -struct miqt_array QDir_EntryInfoList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters); -struct miqt_array QDir_EntryInfoList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort); +struct miqt_array /* of struct miqt_string */ QDir_EntryList1(const QDir* self, int filters); +struct miqt_array /* of struct miqt_string */ QDir_EntryList2(const QDir* self, int filters, int sort); +struct miqt_array /* of struct miqt_string */ QDir_EntryList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters); +struct miqt_array /* of struct miqt_string */ QDir_EntryList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort); +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList1(const QDir* self, int filters); +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList2(const QDir* self, int filters, int sort); +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters); +struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort); void QDir_Delete(QDir* self); #ifdef __cplusplus diff --git a/qt6/gen_qdiriterator.cpp b/qt6/gen_qdiriterator.cpp index 4c0e65f5..51dd46fa 100644 --- a/qt6/gen_qdiriterator.cpp +++ b/qt6/gen_qdiriterator.cpp @@ -23,7 +23,7 @@ QDirIterator* QDirIterator_new3(struct miqt_string path, int filter) { return new QDirIterator(path_QString, static_cast(filter)); } -QDirIterator* QDirIterator_new4(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters) { +QDirIterator* QDirIterator_new4(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters) { QString path_QString = QString::fromUtf8(path.data, path.len); QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); @@ -49,7 +49,7 @@ QDirIterator* QDirIterator_new7(struct miqt_string path, int filter, int flags) return new QDirIterator(path_QString, static_cast(filter), static_cast(flags)); } -QDirIterator* QDirIterator_new8(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters) { +QDirIterator* QDirIterator_new8(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters) { QString path_QString = QString::fromUtf8(path.data, path.len); QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); @@ -61,7 +61,7 @@ QDirIterator* QDirIterator_new8(struct miqt_string path, struct miqt_array /* of return new QDirIterator(path_QString, nameFilters_QList, static_cast(filters)); } -QDirIterator* QDirIterator_new9(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int flags) { +QDirIterator* QDirIterator_new9(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int flags) { QString path_QString = QString::fromUtf8(path.data, path.len); QStringList nameFilters_QList; nameFilters_QList.reserve(nameFilters.len); diff --git a/qt6/gen_qdiriterator.h b/qt6/gen_qdiriterator.h index 54406088..d045826c 100644 --- a/qt6/gen_qdiriterator.h +++ b/qt6/gen_qdiriterator.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDIRITERATOR_H -#define GEN_QDIRITERATOR_H +#pragma once +#ifndef MIQT_QT6_GEN_QDIRITERATOR_H +#define MIQT_QT6_GEN_QDIRITERATOR_H #include #include @@ -26,12 +27,12 @@ typedef struct QFileInfo QFileInfo; QDirIterator* QDirIterator_new(QDir* dir); QDirIterator* QDirIterator_new2(struct miqt_string path); QDirIterator* QDirIterator_new3(struct miqt_string path, int filter); -QDirIterator* QDirIterator_new4(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters); +QDirIterator* QDirIterator_new4(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters); QDirIterator* QDirIterator_new5(QDir* dir, int flags); QDirIterator* QDirIterator_new6(struct miqt_string path, int flags); QDirIterator* QDirIterator_new7(struct miqt_string path, int filter, int flags); -QDirIterator* QDirIterator_new8(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters); -QDirIterator* QDirIterator_new9(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int flags); +QDirIterator* QDirIterator_new8(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters); +QDirIterator* QDirIterator_new9(struct miqt_string path, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int flags); struct miqt_string QDirIterator_Next(QDirIterator* self); QFileInfo* QDirIterator_NextFileInfo(QDirIterator* self); bool QDirIterator_HasNext(const QDirIterator* self); diff --git a/qt6/gen_qdockwidget.h b/qt6/gen_qdockwidget.h index 19dce0c8..78fc2e5d 100644 --- a/qt6/gen_qdockwidget.h +++ b/qt6/gen_qdockwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDOCKWIDGET_H -#define GEN_QDOCKWIDGET_H +#pragma once +#ifndef MIQT_QT6_GEN_QDOCKWIDGET_H +#define MIQT_QT6_GEN_QDOCKWIDGET_H #include #include diff --git a/qt6/gen_qdrag.h b/qt6/gen_qdrag.h index 93458356..f5b2bd4b 100644 --- a/qt6/gen_qdrag.h +++ b/qt6/gen_qdrag.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDRAG_H -#define GEN_QDRAG_H +#pragma once +#ifndef MIQT_QT6_GEN_QDRAG_H +#define MIQT_QT6_GEN_QDRAG_H #include #include diff --git a/qt6/gen_qdrawutil.h b/qt6/gen_qdrawutil.h index dcab4e72..062edf80 100644 --- a/qt6/gen_qdrawutil.h +++ b/qt6/gen_qdrawutil.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDRAWUTIL_H -#define GEN_QDRAWUTIL_H +#pragma once +#ifndef MIQT_QT6_GEN_QDRAWUTIL_H +#define MIQT_QT6_GEN_QDRAWUTIL_H #include #include diff --git a/qt6/gen_qeasingcurve.cpp b/qt6/gen_qeasingcurve.cpp index b9892fe4..5d605619 100644 --- a/qt6/gen_qeasingcurve.cpp +++ b/qt6/gen_qeasingcurve.cpp @@ -68,7 +68,7 @@ void QEasingCurve_AddTCBSegment(QEasingCurve* self, QPointF* nextPoint, double t self->addTCBSegment(*nextPoint, static_cast(t), static_cast(c), static_cast(b)); } -struct miqt_array QEasingCurve_ToCubicSpline(const QEasingCurve* self) { +struct miqt_array /* of QPointF* */ QEasingCurve_ToCubicSpline(const QEasingCurve* self) { QList _ret = self->toCubicSpline(); // Convert QList<> from C++ memory to manually-managed C memory QPointF** _arr = static_cast(malloc(sizeof(QPointF*) * _ret.length())); diff --git a/qt6/gen_qeasingcurve.h b/qt6/gen_qeasingcurve.h index b70f923a..01eb631b 100644 --- a/qt6/gen_qeasingcurve.h +++ b/qt6/gen_qeasingcurve.h @@ -1,5 +1,6 @@ -#ifndef GEN_QEASINGCURVE_H -#define GEN_QEASINGCURVE_H +#pragma once +#ifndef MIQT_QT6_GEN_QEASINGCURVE_H +#define MIQT_QT6_GEN_QEASINGCURVE_H #include #include @@ -36,7 +37,7 @@ double QEasingCurve_Overshoot(const QEasingCurve* self); void QEasingCurve_SetOvershoot(QEasingCurve* self, double overshoot); void QEasingCurve_AddCubicBezierSegment(QEasingCurve* self, QPointF* c1, QPointF* c2, QPointF* endPoint); void QEasingCurve_AddTCBSegment(QEasingCurve* self, QPointF* nextPoint, double t, double c, double b); -struct miqt_array QEasingCurve_ToCubicSpline(const QEasingCurve* self); +struct miqt_array /* of QPointF* */ QEasingCurve_ToCubicSpline(const QEasingCurve* self); int QEasingCurve_Type(const QEasingCurve* self); void QEasingCurve_SetType(QEasingCurve* self, int typeVal); double QEasingCurve_ValueForProgress(const QEasingCurve* self, double progress); diff --git a/qt6/gen_qelapsedtimer.h b/qt6/gen_qelapsedtimer.h index ddac160f..fdbff2d2 100644 --- a/qt6/gen_qelapsedtimer.h +++ b/qt6/gen_qelapsedtimer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QELAPSEDTIMER_H -#define GEN_QELAPSEDTIMER_H +#pragma once +#ifndef MIQT_QT6_GEN_QELAPSEDTIMER_H +#define MIQT_QT6_GEN_QELAPSEDTIMER_H #include #include diff --git a/qt6/gen_qerrormessage.h b/qt6/gen_qerrormessage.h index 7de3d29d..9553072a 100644 --- a/qt6/gen_qerrormessage.h +++ b/qt6/gen_qerrormessage.h @@ -1,5 +1,6 @@ -#ifndef GEN_QERRORMESSAGE_H -#define GEN_QERRORMESSAGE_H +#pragma once +#ifndef MIQT_QT6_GEN_QERRORMESSAGE_H +#define MIQT_QT6_GEN_QERRORMESSAGE_H #include #include diff --git a/qt6/gen_qevent.cpp b/qt6/gen_qevent.cpp index c6d49045..458c7c2b 100644 --- a/qt6/gen_qevent.cpp +++ b/qt6/gen_qevent.cpp @@ -116,7 +116,7 @@ QPointerEvent* QPointerEvent_new2(int typeVal, QPointingDevice* dev, int modifie return new QPointerEvent(static_cast(typeVal), dev, static_cast(modifiers)); } -QPointerEvent* QPointerEvent_new3(int typeVal, QPointingDevice* dev, int modifiers, struct miqt_array /* of QEventPoint* */ points) { +QPointerEvent* QPointerEvent_new3(int typeVal, QPointingDevice* dev, int modifiers, struct miqt_array /* of QEventPoint* */ points) { QList points_QList; points_QList.reserve(points.len); QEventPoint** points_arr = static_cast(points.data); @@ -154,7 +154,7 @@ QEventPoint* QPointerEvent_Point(QPointerEvent* self, ptrdiff_t i) { return &_ret; } -struct miqt_array QPointerEvent_Points(const QPointerEvent* self) { +struct miqt_array /* of QEventPoint* */ QPointerEvent_Points(const QPointerEvent* self) { const QList& _ret = self->points(); // Convert QList<> from C++ memory to manually-managed C memory QEventPoint** _arr = static_cast(malloc(sizeof(QEventPoint*) * _ret.length())); @@ -1015,7 +1015,7 @@ QInputMethodEvent* QInputMethodEvent_new() { return new QInputMethodEvent(); } -QInputMethodEvent* QInputMethodEvent_new2(struct miqt_string preeditText, struct miqt_array /* of QInputMethodEvent__Attribute* */ attributes) { +QInputMethodEvent* QInputMethodEvent_new2(struct miqt_string preeditText, struct miqt_array /* of QInputMethodEvent__Attribute* */ attributes) { QString preeditText_QString = QString::fromUtf8(preeditText.data, preeditText.len); QList attributes_QList; attributes_QList.reserve(attributes.len); @@ -1035,7 +1035,7 @@ void QInputMethodEvent_SetCommitString(QInputMethodEvent* self, struct miqt_stri self->setCommitString(commitString_QString); } -struct miqt_array QInputMethodEvent_Attributes(const QInputMethodEvent* self) { +struct miqt_array /* of QInputMethodEvent__Attribute* */ QInputMethodEvent_Attributes(const QInputMethodEvent* self) { const QList& _ret = self->attributes(); // Convert QList<> from C++ memory to manually-managed C memory QInputMethodEvent__Attribute** _arr = static_cast(malloc(sizeof(QInputMethodEvent__Attribute*) * _ret.length())); @@ -1491,7 +1491,7 @@ QTouchEvent* QTouchEvent_new4(int eventType, QPointingDevice* device, int modifi return new QTouchEvent(static_cast(eventType), device, static_cast(modifiers)); } -QTouchEvent* QTouchEvent_new5(int eventType, QPointingDevice* device, int modifiers, struct miqt_array /* of QEventPoint* */ touchPoints) { +QTouchEvent* QTouchEvent_new5(int eventType, QPointingDevice* device, int modifiers, struct miqt_array /* of QEventPoint* */ touchPoints) { QList touchPoints_QList; touchPoints_QList.reserve(touchPoints.len); QEventPoint** touchPoints_arr = static_cast(touchPoints.data); @@ -1501,7 +1501,7 @@ QTouchEvent* QTouchEvent_new5(int eventType, QPointingDevice* device, int modifi return new QTouchEvent(static_cast(eventType), device, static_cast(modifiers), touchPoints_QList); } -QTouchEvent* QTouchEvent_new6(int eventType, QPointingDevice* device, int modifiers, uint8_t touchPointStates, struct miqt_array /* of QEventPoint* */ touchPoints) { +QTouchEvent* QTouchEvent_new6(int eventType, QPointingDevice* device, int modifiers, uint8_t touchPointStates, struct miqt_array /* of QEventPoint* */ touchPoints) { QList touchPoints_QList; touchPoints_QList.reserve(touchPoints.len); QEventPoint** touchPoints_arr = static_cast(touchPoints.data); @@ -1524,7 +1524,7 @@ uint8_t QTouchEvent_TouchPointStates(const QTouchEvent* self) { return static_cast(_ret); } -struct miqt_array QTouchEvent_TouchPoints(const QTouchEvent* self) { +struct miqt_array /* of QEventPoint* */ QTouchEvent_TouchPoints(const QTouchEvent* self) { const QList& _ret = self->touchPoints(); // Convert QList<> from C++ memory to manually-managed C memory QEventPoint** _arr = static_cast(malloc(sizeof(QEventPoint*) * _ret.length())); diff --git a/qt6/gen_qevent.h b/qt6/gen_qevent.h index b08933f5..8ce4f20b 100644 --- a/qt6/gen_qevent.h +++ b/qt6/gen_qevent.h @@ -1,5 +1,6 @@ -#ifndef GEN_QEVENT_H -#define GEN_QEVENT_H +#pragma once +#ifndef MIQT_QT6_GEN_QEVENT_H +#define MIQT_QT6_GEN_QEVENT_H #include #include @@ -154,14 +155,14 @@ void QInputEvent_Delete(QInputEvent* self); QPointerEvent* QPointerEvent_new(int typeVal, QPointingDevice* dev); QPointerEvent* QPointerEvent_new2(int typeVal, QPointingDevice* dev, int modifiers); -QPointerEvent* QPointerEvent_new3(int typeVal, QPointingDevice* dev, int modifiers, struct miqt_array /* of QEventPoint* */ points); +QPointerEvent* QPointerEvent_new3(int typeVal, QPointingDevice* dev, int modifiers, struct miqt_array /* of QEventPoint* */ points); QPointerEvent* QPointerEvent_Clone(const QPointerEvent* self); QPointingDevice* QPointerEvent_PointingDevice(const QPointerEvent* self); int QPointerEvent_PointerType(const QPointerEvent* self); void QPointerEvent_SetTimestamp(QPointerEvent* self, unsigned long long timestamp); ptrdiff_t QPointerEvent_PointCount(const QPointerEvent* self); QEventPoint* QPointerEvent_Point(QPointerEvent* self, ptrdiff_t i); -struct miqt_array QPointerEvent_Points(const QPointerEvent* self); +struct miqt_array /* of QEventPoint* */ QPointerEvent_Points(const QPointerEvent* self); QEventPoint* QPointerEvent_PointById(QPointerEvent* self, int id); bool QPointerEvent_AllPointsGrabbed(const QPointerEvent* self); bool QPointerEvent_IsBeginEvent(const QPointerEvent* self); @@ -380,10 +381,10 @@ int QContextMenuEvent_Reason(const QContextMenuEvent* self); void QContextMenuEvent_Delete(QContextMenuEvent* self); QInputMethodEvent* QInputMethodEvent_new(); -QInputMethodEvent* QInputMethodEvent_new2(struct miqt_string preeditText, struct miqt_array /* of QInputMethodEvent__Attribute* */ attributes); +QInputMethodEvent* QInputMethodEvent_new2(struct miqt_string preeditText, struct miqt_array /* of QInputMethodEvent__Attribute* */ attributes); QInputMethodEvent* QInputMethodEvent_Clone(const QInputMethodEvent* self); void QInputMethodEvent_SetCommitString(QInputMethodEvent* self, struct miqt_string commitString); -struct miqt_array QInputMethodEvent_Attributes(const QInputMethodEvent* self); +struct miqt_array /* of QInputMethodEvent__Attribute* */ QInputMethodEvent_Attributes(const QInputMethodEvent* self); struct miqt_string QInputMethodEvent_PreeditString(const QInputMethodEvent* self); struct miqt_string QInputMethodEvent_CommitString(const QInputMethodEvent* self); int QInputMethodEvent_ReplacementStart(const QInputMethodEvent* self); @@ -495,12 +496,12 @@ QTouchEvent* QTouchEvent_new(int eventType); QTouchEvent* QTouchEvent_new2(int eventType, QPointingDevice* device, int modifiers, uint8_t touchPointStates); QTouchEvent* QTouchEvent_new3(int eventType, QPointingDevice* device); QTouchEvent* QTouchEvent_new4(int eventType, QPointingDevice* device, int modifiers); -QTouchEvent* QTouchEvent_new5(int eventType, QPointingDevice* device, int modifiers, struct miqt_array /* of QEventPoint* */ touchPoints); -QTouchEvent* QTouchEvent_new6(int eventType, QPointingDevice* device, int modifiers, uint8_t touchPointStates, struct miqt_array /* of QEventPoint* */ touchPoints); +QTouchEvent* QTouchEvent_new5(int eventType, QPointingDevice* device, int modifiers, struct miqt_array /* of QEventPoint* */ touchPoints); +QTouchEvent* QTouchEvent_new6(int eventType, QPointingDevice* device, int modifiers, uint8_t touchPointStates, struct miqt_array /* of QEventPoint* */ touchPoints); QTouchEvent* QTouchEvent_Clone(const QTouchEvent* self); QObject* QTouchEvent_Target(const QTouchEvent* self); uint8_t QTouchEvent_TouchPointStates(const QTouchEvent* self); -struct miqt_array QTouchEvent_TouchPoints(const QTouchEvent* self); +struct miqt_array /* of QEventPoint* */ QTouchEvent_TouchPoints(const QTouchEvent* self); bool QTouchEvent_IsBeginEvent(const QTouchEvent* self); bool QTouchEvent_IsUpdateEvent(const QTouchEvent* self); bool QTouchEvent_IsEndEvent(const QTouchEvent* self); diff --git a/qt6/gen_qeventloop.h b/qt6/gen_qeventloop.h index f96e25eb..a8d2ab65 100644 --- a/qt6/gen_qeventloop.h +++ b/qt6/gen_qeventloop.h @@ -1,5 +1,6 @@ -#ifndef GEN_QEVENTLOOP_H -#define GEN_QEVENTLOOP_H +#pragma once +#ifndef MIQT_QT6_GEN_QEVENTLOOP_H +#define MIQT_QT6_GEN_QEVENTLOOP_H #include #include diff --git a/qt6/gen_qeventpoint.h b/qt6/gen_qeventpoint.h index e7197506..daf2e35a 100644 --- a/qt6/gen_qeventpoint.h +++ b/qt6/gen_qeventpoint.h @@ -1,5 +1,6 @@ -#ifndef GEN_QEVENTPOINT_H -#define GEN_QEVENTPOINT_H +#pragma once +#ifndef MIQT_QT6_GEN_QEVENTPOINT_H +#define MIQT_QT6_GEN_QEVENTPOINT_H #include #include diff --git a/qt6/gen_qexception.h b/qt6/gen_qexception.h index cb424c7a..a8501f3e 100644 --- a/qt6/gen_qexception.h +++ b/qt6/gen_qexception.h @@ -1,5 +1,6 @@ -#ifndef GEN_QEXCEPTION_H -#define GEN_QEXCEPTION_H +#pragma once +#ifndef MIQT_QT6_GEN_QEXCEPTION_H +#define MIQT_QT6_GEN_QEXCEPTION_H #include #include diff --git a/qt6/gen_qfactoryinterface.cpp b/qt6/gen_qfactoryinterface.cpp index dec46a8f..668f3c85 100644 --- a/qt6/gen_qfactoryinterface.cpp +++ b/qt6/gen_qfactoryinterface.cpp @@ -7,7 +7,7 @@ #include "gen_qfactoryinterface.h" #include "_cgo_export.h" -struct miqt_array QFactoryInterface_Keys(const QFactoryInterface* self) { +struct miqt_array /* of struct miqt_string */ QFactoryInterface_Keys(const QFactoryInterface* self) { QStringList _ret = self->keys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qfactoryinterface.h b/qt6/gen_qfactoryinterface.h index e9f4546f..3e6e302b 100644 --- a/qt6/gen_qfactoryinterface.h +++ b/qt6/gen_qfactoryinterface.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFACTORYINTERFACE_H -#define GEN_QFACTORYINTERFACE_H +#pragma once +#ifndef MIQT_QT6_GEN_QFACTORYINTERFACE_H +#define MIQT_QT6_GEN_QFACTORYINTERFACE_H #include #include @@ -19,7 +20,7 @@ class QFactoryInterface; typedef struct QFactoryInterface QFactoryInterface; #endif -struct miqt_array QFactoryInterface_Keys(const QFactoryInterface* self); +struct miqt_array /* of struct miqt_string */ QFactoryInterface_Keys(const QFactoryInterface* self); void QFactoryInterface_Delete(QFactoryInterface* self); #ifdef __cplusplus diff --git a/qt6/gen_qfile.h b/qt6/gen_qfile.h index e776b493..d8cadba1 100644 --- a/qt6/gen_qfile.h +++ b/qt6/gen_qfile.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILE_H -#define GEN_QFILE_H +#pragma once +#ifndef MIQT_QT6_GEN_QFILE_H +#define MIQT_QT6_GEN_QFILE_H #include #include diff --git a/qt6/gen_qfiledevice.go b/qt6/gen_qfiledevice.go index 9b2e5657..2c5664be 100644 --- a/qt6/gen_qfiledevice.go +++ b/qt6/gen_qfiledevice.go @@ -182,7 +182,7 @@ func (this *QFileDevice) SetPermissions(permissionSpec QFileDevice__Permission) } func (this *QFileDevice) Map(offset int64, size int64) *byte { - return (*byte)(C.QFileDevice_Map(this.h, (C.longlong)(offset), (C.longlong)(size))) + return (*byte)(unsafe.Pointer(C.QFileDevice_Map(this.h, (C.longlong)(offset), (C.longlong)(size)))) } func (this *QFileDevice) Unmap(address *byte) bool { @@ -223,7 +223,7 @@ func QFileDevice_Tr3(s string, c string, n int) string { } func (this *QFileDevice) Map3(offset int64, size int64, flags QFileDevice__MemoryMapFlag) *byte { - return (*byte)(C.QFileDevice_Map3(this.h, (C.longlong)(offset), (C.longlong)(size), (C.int)(flags))) + return (*byte)(unsafe.Pointer(C.QFileDevice_Map3(this.h, (C.longlong)(offset), (C.longlong)(size), (C.int)(flags)))) } // Delete this object from C++ memory. diff --git a/qt6/gen_qfiledevice.h b/qt6/gen_qfiledevice.h index b90aea53..0445be2c 100644 --- a/qt6/gen_qfiledevice.h +++ b/qt6/gen_qfiledevice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILEDEVICE_H -#define GEN_QFILEDEVICE_H +#pragma once +#ifndef MIQT_QT6_GEN_QFILEDEVICE_H +#define MIQT_QT6_GEN_QFILEDEVICE_H #include #include diff --git a/qt6/gen_qfiledialog.cpp b/qt6/gen_qfiledialog.cpp index f5152244..2fcfafab 100644 --- a/qt6/gen_qfiledialog.cpp +++ b/qt6/gen_qfiledialog.cpp @@ -90,7 +90,7 @@ void QFileDialog_SelectFile(QFileDialog* self, struct miqt_string filename) { self->selectFile(filename_QString); } -struct miqt_array QFileDialog_SelectedFiles(const QFileDialog* self) { +struct miqt_array /* of struct miqt_string */ QFileDialog_SelectedFiles(const QFileDialog* self) { QStringList _ret = self->selectedFiles(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -114,7 +114,7 @@ void QFileDialog_SelectUrl(QFileDialog* self, QUrl* url) { self->selectUrl(*url); } -struct miqt_array QFileDialog_SelectedUrls(const QFileDialog* self) { +struct miqt_array /* of QUrl* */ QFileDialog_SelectedUrls(const QFileDialog* self) { QList _ret = self->selectedUrls(); // Convert QList<> from C++ memory to manually-managed C memory QUrl** _arr = static_cast(malloc(sizeof(QUrl*) * _ret.length())); @@ -132,7 +132,7 @@ void QFileDialog_SetNameFilter(QFileDialog* self, struct miqt_string filter) { self->setNameFilter(filter_QString); } -void QFileDialog_SetNameFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters) { +void QFileDialog_SetNameFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters) { QStringList filters_QList; filters_QList.reserve(filters.len); struct miqt_string* filters_arr = static_cast(filters.data); @@ -143,7 +143,7 @@ void QFileDialog_SetNameFilters(QFileDialog* self, struct miqt_array /* of struc self->setNameFilters(filters_QList); } -struct miqt_array QFileDialog_NameFilters(const QFileDialog* self) { +struct miqt_array /* of struct miqt_string */ QFileDialog_NameFilters(const QFileDialog* self) { QStringList _ret = self->nameFilters(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -190,7 +190,7 @@ struct miqt_string QFileDialog_SelectedNameFilter(const QFileDialog* self) { return _ms; } -void QFileDialog_SetMimeTypeFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters) { +void QFileDialog_SetMimeTypeFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters) { QStringList filters_QList; filters_QList.reserve(filters.len); struct miqt_string* filters_arr = static_cast(filters.data); @@ -201,7 +201,7 @@ void QFileDialog_SetMimeTypeFilters(QFileDialog* self, struct miqt_array /* of s self->setMimeTypeFilters(filters_QList); } -struct miqt_array QFileDialog_MimeTypeFilters(const QFileDialog* self) { +struct miqt_array /* of struct miqt_string */ QFileDialog_MimeTypeFilters(const QFileDialog* self) { QStringList _ret = self->mimeTypeFilters(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -262,7 +262,7 @@ int QFileDialog_AcceptMode(const QFileDialog* self) { return static_cast(_ret); } -void QFileDialog_SetSidebarUrls(QFileDialog* self, struct miqt_array /* of QUrl* */ urls) { +void QFileDialog_SetSidebarUrls(QFileDialog* self, struct miqt_array /* of QUrl* */ urls) { QList urls_QList; urls_QList.reserve(urls.len); QUrl** urls_arr = static_cast(urls.data); @@ -272,7 +272,7 @@ void QFileDialog_SetSidebarUrls(QFileDialog* self, struct miqt_array /* of QUrl* self->setSidebarUrls(urls_QList); } -struct miqt_array QFileDialog_SidebarUrls(const QFileDialog* self) { +struct miqt_array /* of QUrl* */ QFileDialog_SidebarUrls(const QFileDialog* self) { QList _ret = self->sidebarUrls(); // Convert QList<> from C++ memory to manually-managed C memory QUrl** _arr = static_cast(malloc(sizeof(QUrl*) * _ret.length())); @@ -315,7 +315,7 @@ struct miqt_string QFileDialog_DefaultSuffix(const QFileDialog* self) { return _ms; } -void QFileDialog_SetHistory(QFileDialog* self, struct miqt_array /* of struct miqt_string */ paths) { +void QFileDialog_SetHistory(QFileDialog* self, struct miqt_array /* of struct miqt_string */ paths) { QStringList paths_QList; paths_QList.reserve(paths.len); struct miqt_string* paths_arr = static_cast(paths.data); @@ -326,7 +326,7 @@ void QFileDialog_SetHistory(QFileDialog* self, struct miqt_array /* of struct mi self->setHistory(paths_QList); } -struct miqt_array QFileDialog_History(const QFileDialog* self) { +struct miqt_array /* of struct miqt_string */ QFileDialog_History(const QFileDialog* self) { QStringList _ret = self->history(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -378,7 +378,7 @@ struct miqt_string QFileDialog_LabelText(const QFileDialog* self, int label) { return _ms; } -void QFileDialog_SetSupportedSchemes(QFileDialog* self, struct miqt_array /* of struct miqt_string */ schemes) { +void QFileDialog_SetSupportedSchemes(QFileDialog* self, struct miqt_array /* of struct miqt_string */ schemes) { QStringList schemes_QList; schemes_QList.reserve(schemes.len); struct miqt_string* schemes_arr = static_cast(schemes.data); @@ -389,7 +389,7 @@ void QFileDialog_SetSupportedSchemes(QFileDialog* self, struct miqt_array /* of self->setSupportedSchemes(schemes_QList); } -struct miqt_array QFileDialog_SupportedSchemes(const QFileDialog* self) { +struct miqt_array /* of struct miqt_string */ QFileDialog_SupportedSchemes(const QFileDialog* self) { QStringList _ret = self->supportedSchemes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -457,7 +457,7 @@ void QFileDialog_connect_FileSelected(QFileDialog* self, intptr_t slot) { }); } -void QFileDialog_FilesSelected(QFileDialog* self, struct miqt_array /* of struct miqt_string */ files) { +void QFileDialog_FilesSelected(QFileDialog* self, struct miqt_array /* of struct miqt_string */ files) { QStringList files_QList; files_QList.reserve(files.len); struct miqt_string* files_arr = static_cast(files.data); @@ -486,7 +486,7 @@ void QFileDialog_connect_FilesSelected(QFileDialog* self, intptr_t slot) { struct miqt_array files_out; files_out.len = files_ret.length(); files_out.data = static_cast(files_arr); - struct miqt_array sigval1 = files_out; + struct miqt_array /* of struct miqt_string */ sigval1 = files_out; miqt_exec_callback_QFileDialog_FilesSelected(slot, sigval1); }); } @@ -542,7 +542,7 @@ void QFileDialog_connect_UrlSelected(QFileDialog* self, intptr_t slot) { }); } -void QFileDialog_UrlsSelected(QFileDialog* self, struct miqt_array /* of QUrl* */ urls) { +void QFileDialog_UrlsSelected(QFileDialog* self, struct miqt_array /* of QUrl* */ urls) { QList urls_QList; urls_QList.reserve(urls.len); QUrl** urls_arr = static_cast(urls.data); @@ -563,7 +563,7 @@ void QFileDialog_connect_UrlsSelected(QFileDialog* self, intptr_t slot) { struct miqt_array urls_out; urls_out.len = urls_ret.length(); urls_out.data = static_cast(urls_arr); - struct miqt_array sigval1 = urls_out; + struct miqt_array /* of QUrl* */ sigval1 = urls_out; miqt_exec_callback_QFileDialog_UrlsSelected(slot, sigval1); }); } @@ -658,7 +658,7 @@ QUrl* QFileDialog_GetExistingDirectoryUrl() { return new QUrl(QFileDialog::getExistingDirectoryUrl()); } -struct miqt_array QFileDialog_GetOpenFileNames() { +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames() { QStringList _ret = QFileDialog::getOpenFileNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -678,7 +678,7 @@ struct miqt_array QFileDialog_GetOpenFileNames() { return _out; } -struct miqt_array QFileDialog_GetOpenFileUrls() { +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls() { QList _ret = QFileDialog::getOpenFileUrls(); // Convert QList<> from C++ memory to manually-managed C memory QUrl** _arr = static_cast(malloc(sizeof(QUrl*) * _ret.length())); @@ -931,7 +931,7 @@ QUrl* QFileDialog_GetExistingDirectoryUrl4(QWidget* parent, struct miqt_string c return new QUrl(QFileDialog::getExistingDirectoryUrl(parent, caption_QString, *dir, static_cast(options))); } -QUrl* QFileDialog_GetExistingDirectoryUrl5(QWidget* parent, struct miqt_string caption, QUrl* dir, int options, struct miqt_array /* of struct miqt_string */ supportedSchemes) { +QUrl* QFileDialog_GetExistingDirectoryUrl5(QWidget* parent, struct miqt_string caption, QUrl* dir, int options, struct miqt_array /* of struct miqt_string */ supportedSchemes) { QString caption_QString = QString::fromUtf8(caption.data, caption.len); QStringList supportedSchemes_QList; supportedSchemes_QList.reserve(supportedSchemes.len); @@ -943,7 +943,7 @@ QUrl* QFileDialog_GetExistingDirectoryUrl5(QWidget* parent, struct miqt_string c return new QUrl(QFileDialog::getExistingDirectoryUrl(parent, caption_QString, *dir, static_cast(options), supportedSchemes_QList)); } -struct miqt_array QFileDialog_GetOpenFileNames1(QWidget* parent) { +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames1(QWidget* parent) { QStringList _ret = QFileDialog::getOpenFileNames(parent); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -963,7 +963,7 @@ struct miqt_array QFileDialog_GetOpenFileNames1(QWidget* parent) { return _out; } -struct miqt_array QFileDialog_GetOpenFileNames2(QWidget* parent, struct miqt_string caption) { +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames2(QWidget* parent, struct miqt_string caption) { QString caption_QString = QString::fromUtf8(caption.data, caption.len); QStringList _ret = QFileDialog::getOpenFileNames(parent, caption_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -984,7 +984,7 @@ struct miqt_array QFileDialog_GetOpenFileNames2(QWidget* parent, struct miqt_str return _out; } -struct miqt_array QFileDialog_GetOpenFileNames3(QWidget* parent, struct miqt_string caption, struct miqt_string dir) { +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames3(QWidget* parent, struct miqt_string caption, struct miqt_string dir) { QString caption_QString = QString::fromUtf8(caption.data, caption.len); QString dir_QString = QString::fromUtf8(dir.data, dir.len); QStringList _ret = QFileDialog::getOpenFileNames(parent, caption_QString, dir_QString); @@ -1006,7 +1006,7 @@ struct miqt_array QFileDialog_GetOpenFileNames3(QWidget* parent, struct miqt_str return _out; } -struct miqt_array QFileDialog_GetOpenFileNames4(QWidget* parent, struct miqt_string caption, struct miqt_string dir, struct miqt_string filter) { +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames4(QWidget* parent, struct miqt_string caption, struct miqt_string dir, struct miqt_string filter) { QString caption_QString = QString::fromUtf8(caption.data, caption.len); QString dir_QString = QString::fromUtf8(dir.data, dir.len); QString filter_QString = QString::fromUtf8(filter.data, filter.len); @@ -1029,7 +1029,7 @@ struct miqt_array QFileDialog_GetOpenFileNames4(QWidget* parent, struct miqt_str return _out; } -struct miqt_array QFileDialog_GetOpenFileUrls1(QWidget* parent) { +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls1(QWidget* parent) { QList _ret = QFileDialog::getOpenFileUrls(parent); // Convert QList<> from C++ memory to manually-managed C memory QUrl** _arr = static_cast(malloc(sizeof(QUrl*) * _ret.length())); @@ -1042,7 +1042,7 @@ struct miqt_array QFileDialog_GetOpenFileUrls1(QWidget* parent) { return _out; } -struct miqt_array QFileDialog_GetOpenFileUrls2(QWidget* parent, struct miqt_string caption) { +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls2(QWidget* parent, struct miqt_string caption) { QString caption_QString = QString::fromUtf8(caption.data, caption.len); QList _ret = QFileDialog::getOpenFileUrls(parent, caption_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -1056,7 +1056,7 @@ struct miqt_array QFileDialog_GetOpenFileUrls2(QWidget* parent, struct miqt_stri return _out; } -struct miqt_array QFileDialog_GetOpenFileUrls3(QWidget* parent, struct miqt_string caption, QUrl* dir) { +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls3(QWidget* parent, struct miqt_string caption, QUrl* dir) { QString caption_QString = QString::fromUtf8(caption.data, caption.len); QList _ret = QFileDialog::getOpenFileUrls(parent, caption_QString, *dir); // Convert QList<> from C++ memory to manually-managed C memory @@ -1070,7 +1070,7 @@ struct miqt_array QFileDialog_GetOpenFileUrls3(QWidget* parent, struct miqt_stri return _out; } -struct miqt_array QFileDialog_GetOpenFileUrls4(QWidget* parent, struct miqt_string caption, QUrl* dir, struct miqt_string filter) { +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls4(QWidget* parent, struct miqt_string caption, QUrl* dir, struct miqt_string filter) { QString caption_QString = QString::fromUtf8(caption.data, caption.len); QString filter_QString = QString::fromUtf8(filter.data, filter.len); QList _ret = QFileDialog::getOpenFileUrls(parent, caption_QString, *dir, filter_QString); diff --git a/qt6/gen_qfiledialog.h b/qt6/gen_qfiledialog.h index 2e5c1207..31ff15ac 100644 --- a/qt6/gen_qfiledialog.h +++ b/qt6/gen_qfiledialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILEDIALOG_H -#define GEN_QFILEDIALOG_H +#pragma once +#ifndef MIQT_QT6_GEN_QFILEDIALOG_H +#define MIQT_QT6_GEN_QFILEDIALOG_H #include #include @@ -50,17 +51,17 @@ QDir* QFileDialog_Directory(const QFileDialog* self); void QFileDialog_SetDirectoryUrl(QFileDialog* self, QUrl* directory); QUrl* QFileDialog_DirectoryUrl(const QFileDialog* self); void QFileDialog_SelectFile(QFileDialog* self, struct miqt_string filename); -struct miqt_array QFileDialog_SelectedFiles(const QFileDialog* self); +struct miqt_array /* of struct miqt_string */ QFileDialog_SelectedFiles(const QFileDialog* self); void QFileDialog_SelectUrl(QFileDialog* self, QUrl* url); -struct miqt_array QFileDialog_SelectedUrls(const QFileDialog* self); +struct miqt_array /* of QUrl* */ QFileDialog_SelectedUrls(const QFileDialog* self); void QFileDialog_SetNameFilter(QFileDialog* self, struct miqt_string filter); -void QFileDialog_SetNameFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters); -struct miqt_array QFileDialog_NameFilters(const QFileDialog* self); +void QFileDialog_SetNameFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters); +struct miqt_array /* of struct miqt_string */ QFileDialog_NameFilters(const QFileDialog* self); void QFileDialog_SelectNameFilter(QFileDialog* self, struct miqt_string filter); struct miqt_string QFileDialog_SelectedMimeTypeFilter(const QFileDialog* self); struct miqt_string QFileDialog_SelectedNameFilter(const QFileDialog* self); -void QFileDialog_SetMimeTypeFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters); -struct miqt_array QFileDialog_MimeTypeFilters(const QFileDialog* self); +void QFileDialog_SetMimeTypeFilters(QFileDialog* self, struct miqt_array /* of struct miqt_string */ filters); +struct miqt_array /* of struct miqt_string */ QFileDialog_MimeTypeFilters(const QFileDialog* self); void QFileDialog_SelectMimeTypeFilter(QFileDialog* self, struct miqt_string filter); int QFileDialog_Filter(const QFileDialog* self); void QFileDialog_SetFilter(QFileDialog* self, int filters); @@ -70,22 +71,22 @@ void QFileDialog_SetFileMode(QFileDialog* self, int mode); int QFileDialog_FileMode(const QFileDialog* self); void QFileDialog_SetAcceptMode(QFileDialog* self, int mode); int QFileDialog_AcceptMode(const QFileDialog* self); -void QFileDialog_SetSidebarUrls(QFileDialog* self, struct miqt_array /* of QUrl* */ urls); -struct miqt_array QFileDialog_SidebarUrls(const QFileDialog* self); +void QFileDialog_SetSidebarUrls(QFileDialog* self, struct miqt_array /* of QUrl* */ urls); +struct miqt_array /* of QUrl* */ QFileDialog_SidebarUrls(const QFileDialog* self); struct miqt_string QFileDialog_SaveState(const QFileDialog* self); bool QFileDialog_RestoreState(QFileDialog* self, struct miqt_string state); void QFileDialog_SetDefaultSuffix(QFileDialog* self, struct miqt_string suffix); struct miqt_string QFileDialog_DefaultSuffix(const QFileDialog* self); -void QFileDialog_SetHistory(QFileDialog* self, struct miqt_array /* of struct miqt_string */ paths); -struct miqt_array QFileDialog_History(const QFileDialog* self); +void QFileDialog_SetHistory(QFileDialog* self, struct miqt_array /* of struct miqt_string */ paths); +struct miqt_array /* of struct miqt_string */ QFileDialog_History(const QFileDialog* self); void QFileDialog_SetItemDelegate(QFileDialog* self, QAbstractItemDelegate* delegate); QAbstractItemDelegate* QFileDialog_ItemDelegate(const QFileDialog* self); void QFileDialog_SetIconProvider(QFileDialog* self, QAbstractFileIconProvider* provider); QAbstractFileIconProvider* QFileDialog_IconProvider(const QFileDialog* self); void QFileDialog_SetLabelText(QFileDialog* self, int label, struct miqt_string text); struct miqt_string QFileDialog_LabelText(const QFileDialog* self, int label); -void QFileDialog_SetSupportedSchemes(QFileDialog* self, struct miqt_array /* of struct miqt_string */ schemes); -struct miqt_array QFileDialog_SupportedSchemes(const QFileDialog* self); +void QFileDialog_SetSupportedSchemes(QFileDialog* self, struct miqt_array /* of struct miqt_string */ schemes); +struct miqt_array /* of struct miqt_string */ QFileDialog_SupportedSchemes(const QFileDialog* self); void QFileDialog_SetProxyModel(QFileDialog* self, QAbstractProxyModel* model); QAbstractProxyModel* QFileDialog_ProxyModel(const QFileDialog* self); void QFileDialog_SetOption(QFileDialog* self, int option); @@ -95,7 +96,7 @@ int QFileDialog_Options(const QFileDialog* self); void QFileDialog_SetVisible(QFileDialog* self, bool visible); void QFileDialog_FileSelected(QFileDialog* self, struct miqt_string file); void QFileDialog_connect_FileSelected(QFileDialog* self, intptr_t slot); -void QFileDialog_FilesSelected(QFileDialog* self, struct miqt_array /* of struct miqt_string */ files); +void QFileDialog_FilesSelected(QFileDialog* self, struct miqt_array /* of struct miqt_string */ files); void QFileDialog_connect_FilesSelected(QFileDialog* self, intptr_t slot); void QFileDialog_CurrentChanged(QFileDialog* self, struct miqt_string path); void QFileDialog_connect_CurrentChanged(QFileDialog* self, intptr_t slot); @@ -103,7 +104,7 @@ void QFileDialog_DirectoryEntered(QFileDialog* self, struct miqt_string director void QFileDialog_connect_DirectoryEntered(QFileDialog* self, intptr_t slot); void QFileDialog_UrlSelected(QFileDialog* self, QUrl* url); void QFileDialog_connect_UrlSelected(QFileDialog* self, intptr_t slot); -void QFileDialog_UrlsSelected(QFileDialog* self, struct miqt_array /* of QUrl* */ urls); +void QFileDialog_UrlsSelected(QFileDialog* self, struct miqt_array /* of QUrl* */ urls); void QFileDialog_connect_UrlsSelected(QFileDialog* self, intptr_t slot); void QFileDialog_CurrentUrlChanged(QFileDialog* self, QUrl* url); void QFileDialog_connect_CurrentUrlChanged(QFileDialog* self, intptr_t slot); @@ -117,8 +118,8 @@ struct miqt_string QFileDialog_GetSaveFileName(); QUrl* QFileDialog_GetSaveFileUrl(); struct miqt_string QFileDialog_GetExistingDirectory(); QUrl* QFileDialog_GetExistingDirectoryUrl(); -struct miqt_array QFileDialog_GetOpenFileNames(); -struct miqt_array QFileDialog_GetOpenFileUrls(); +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames(); +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls(); void QFileDialog_SaveFileContent(struct miqt_string fileContent, struct miqt_string fileNameHint); struct miqt_string QFileDialog_Tr2(const char* s, const char* c); struct miqt_string QFileDialog_Tr3(const char* s, const char* c, int n); @@ -147,15 +148,15 @@ QUrl* QFileDialog_GetExistingDirectoryUrl1(QWidget* parent); QUrl* QFileDialog_GetExistingDirectoryUrl2(QWidget* parent, struct miqt_string caption); QUrl* QFileDialog_GetExistingDirectoryUrl3(QWidget* parent, struct miqt_string caption, QUrl* dir); QUrl* QFileDialog_GetExistingDirectoryUrl4(QWidget* parent, struct miqt_string caption, QUrl* dir, int options); -QUrl* QFileDialog_GetExistingDirectoryUrl5(QWidget* parent, struct miqt_string caption, QUrl* dir, int options, struct miqt_array /* of struct miqt_string */ supportedSchemes); -struct miqt_array QFileDialog_GetOpenFileNames1(QWidget* parent); -struct miqt_array QFileDialog_GetOpenFileNames2(QWidget* parent, struct miqt_string caption); -struct miqt_array QFileDialog_GetOpenFileNames3(QWidget* parent, struct miqt_string caption, struct miqt_string dir); -struct miqt_array QFileDialog_GetOpenFileNames4(QWidget* parent, struct miqt_string caption, struct miqt_string dir, struct miqt_string filter); -struct miqt_array QFileDialog_GetOpenFileUrls1(QWidget* parent); -struct miqt_array QFileDialog_GetOpenFileUrls2(QWidget* parent, struct miqt_string caption); -struct miqt_array QFileDialog_GetOpenFileUrls3(QWidget* parent, struct miqt_string caption, QUrl* dir); -struct miqt_array QFileDialog_GetOpenFileUrls4(QWidget* parent, struct miqt_string caption, QUrl* dir, struct miqt_string filter); +QUrl* QFileDialog_GetExistingDirectoryUrl5(QWidget* parent, struct miqt_string caption, QUrl* dir, int options, struct miqt_array /* of struct miqt_string */ supportedSchemes); +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames1(QWidget* parent); +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames2(QWidget* parent, struct miqt_string caption); +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames3(QWidget* parent, struct miqt_string caption, struct miqt_string dir); +struct miqt_array /* of struct miqt_string */ QFileDialog_GetOpenFileNames4(QWidget* parent, struct miqt_string caption, struct miqt_string dir, struct miqt_string filter); +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls1(QWidget* parent); +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls2(QWidget* parent, struct miqt_string caption); +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls3(QWidget* parent, struct miqt_string caption, QUrl* dir); +struct miqt_array /* of QUrl* */ QFileDialog_GetOpenFileUrls4(QWidget* parent, struct miqt_string caption, QUrl* dir, struct miqt_string filter); void QFileDialog_Delete(QFileDialog* self); #ifdef __cplusplus diff --git a/qt6/gen_qfileiconprovider.h b/qt6/gen_qfileiconprovider.h index 48bdbb50..bdb0b9a5 100644 --- a/qt6/gen_qfileiconprovider.h +++ b/qt6/gen_qfileiconprovider.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILEICONPROVIDER_H -#define GEN_QFILEICONPROVIDER_H +#pragma once +#ifndef MIQT_QT6_GEN_QFILEICONPROVIDER_H +#define MIQT_QT6_GEN_QFILEICONPROVIDER_H #include #include diff --git a/qt6/gen_qfileinfo.h b/qt6/gen_qfileinfo.h index 3935b0ff..0e50d896 100644 --- a/qt6/gen_qfileinfo.h +++ b/qt6/gen_qfileinfo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILEINFO_H -#define GEN_QFILEINFO_H +#pragma once +#ifndef MIQT_QT6_GEN_QFILEINFO_H +#define MIQT_QT6_GEN_QFILEINFO_H #include #include diff --git a/qt6/gen_qfileselector.cpp b/qt6/gen_qfileselector.cpp index f699772c..e43136a7 100644 --- a/qt6/gen_qfileselector.cpp +++ b/qt6/gen_qfileselector.cpp @@ -53,7 +53,7 @@ QUrl* QFileSelector_SelectWithFilePath(const QFileSelector* self, QUrl* filePath return new QUrl(self->select(*filePath)); } -struct miqt_array QFileSelector_ExtraSelectors(const QFileSelector* self) { +struct miqt_array /* of struct miqt_string */ QFileSelector_ExtraSelectors(const QFileSelector* self) { QStringList _ret = self->extraSelectors(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -73,7 +73,7 @@ struct miqt_array QFileSelector_ExtraSelectors(const QFileSelector* self) { return _out; } -void QFileSelector_SetExtraSelectors(QFileSelector* self, struct miqt_array /* of struct miqt_string */ list) { +void QFileSelector_SetExtraSelectors(QFileSelector* self, struct miqt_array /* of struct miqt_string */ list) { QStringList list_QList; list_QList.reserve(list.len); struct miqt_string* list_arr = static_cast(list.data); @@ -84,7 +84,7 @@ void QFileSelector_SetExtraSelectors(QFileSelector* self, struct miqt_array /* o self->setExtraSelectors(list_QList); } -struct miqt_array QFileSelector_AllSelectors(const QFileSelector* self) { +struct miqt_array /* of struct miqt_string */ QFileSelector_AllSelectors(const QFileSelector* self) { QStringList _ret = self->allSelectors(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qfileselector.h b/qt6/gen_qfileselector.h index bc46b0ee..c6949572 100644 --- a/qt6/gen_qfileselector.h +++ b/qt6/gen_qfileselector.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILESELECTOR_H -#define GEN_QFILESELECTOR_H +#pragma once +#ifndef MIQT_QT6_GEN_QFILESELECTOR_H +#define MIQT_QT6_GEN_QFILESELECTOR_H #include #include @@ -32,9 +33,9 @@ void* QFileSelector_Metacast(QFileSelector* self, const char* param1); struct miqt_string QFileSelector_Tr(const char* s); struct miqt_string QFileSelector_Select(const QFileSelector* self, struct miqt_string filePath); QUrl* QFileSelector_SelectWithFilePath(const QFileSelector* self, QUrl* filePath); -struct miqt_array QFileSelector_ExtraSelectors(const QFileSelector* self); -void QFileSelector_SetExtraSelectors(QFileSelector* self, struct miqt_array /* of struct miqt_string */ list); -struct miqt_array QFileSelector_AllSelectors(const QFileSelector* self); +struct miqt_array /* of struct miqt_string */ QFileSelector_ExtraSelectors(const QFileSelector* self); +void QFileSelector_SetExtraSelectors(QFileSelector* self, struct miqt_array /* of struct miqt_string */ list); +struct miqt_array /* of struct miqt_string */ QFileSelector_AllSelectors(const QFileSelector* self); struct miqt_string QFileSelector_Tr2(const char* s, const char* c); struct miqt_string QFileSelector_Tr3(const char* s, const char* c, int n); void QFileSelector_Delete(QFileSelector* self); diff --git a/qt6/gen_qfilesystemmodel.cpp b/qt6/gen_qfilesystemmodel.cpp index 7f1035f6..0c02bd1a 100644 --- a/qt6/gen_qfilesystemmodel.cpp +++ b/qt6/gen_qfilesystemmodel.cpp @@ -183,7 +183,7 @@ void QFileSystemModel_Sort(QFileSystemModel* self, int column) { self->sort(static_cast(column)); } -struct miqt_array QFileSystemModel_MimeTypes(const QFileSystemModel* self) { +struct miqt_array /* of struct miqt_string */ QFileSystemModel_MimeTypes(const QFileSystemModel* self) { QStringList _ret = self->mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -203,7 +203,7 @@ struct miqt_array QFileSystemModel_MimeTypes(const QFileSystemModel* self) { return _out; } -QMimeData* QFileSystemModel_MimeData(const QFileSystemModel* self, struct miqt_array /* of QModelIndex* */ indexes) { +QMimeData* QFileSystemModel_MimeData(const QFileSystemModel* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); @@ -222,7 +222,7 @@ int QFileSystemModel_SupportedDropActions(const QFileSystemModel* self) { return static_cast(_ret); } -struct miqt_map QFileSystemModel_RoleNames(const QFileSystemModel* self) { +struct miqt_map /* of int to struct miqt_string */ QFileSystemModel_RoleNames(const QFileSystemModel* self) { QHash _ret = self->roleNames(); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -306,7 +306,7 @@ bool QFileSystemModel_NameFilterDisables(const QFileSystemModel* self) { return self->nameFilterDisables(); } -void QFileSystemModel_SetNameFilters(QFileSystemModel* self, struct miqt_array /* of struct miqt_string */ filters) { +void QFileSystemModel_SetNameFilters(QFileSystemModel* self, struct miqt_array /* of struct miqt_string */ filters) { QStringList filters_QList; filters_QList.reserve(filters.len); struct miqt_string* filters_arr = static_cast(filters.data); @@ -317,7 +317,7 @@ void QFileSystemModel_SetNameFilters(QFileSystemModel* self, struct miqt_array / self->setNameFilters(filters_QList); } -struct miqt_array QFileSystemModel_NameFilters(const QFileSystemModel* self) { +struct miqt_array /* of struct miqt_string */ QFileSystemModel_NameFilters(const QFileSystemModel* self) { QStringList _ret = self->nameFilters(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qfilesystemmodel.h b/qt6/gen_qfilesystemmodel.h index bffbf536..37222b40 100644 --- a/qt6/gen_qfilesystemmodel.h +++ b/qt6/gen_qfilesystemmodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILESYSTEMMODEL_H -#define GEN_QFILESYSTEMMODEL_H +#pragma once +#ifndef MIQT_QT6_GEN_QFILESYSTEMMODEL_H +#define MIQT_QT6_GEN_QFILESYSTEMMODEL_H #include #include @@ -67,11 +68,11 @@ bool QFileSystemModel_SetData(QFileSystemModel* self, QModelIndex* index, QVaria QVariant* QFileSystemModel_HeaderData(const QFileSystemModel* self, int section, int orientation); int QFileSystemModel_Flags(const QFileSystemModel* self, QModelIndex* index); void QFileSystemModel_Sort(QFileSystemModel* self, int column); -struct miqt_array QFileSystemModel_MimeTypes(const QFileSystemModel* self); -QMimeData* QFileSystemModel_MimeData(const QFileSystemModel* self, struct miqt_array /* of QModelIndex* */ indexes); +struct miqt_array /* of struct miqt_string */ QFileSystemModel_MimeTypes(const QFileSystemModel* self); +QMimeData* QFileSystemModel_MimeData(const QFileSystemModel* self, struct miqt_array /* of QModelIndex* */ indexes); bool QFileSystemModel_DropMimeData(QFileSystemModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); int QFileSystemModel_SupportedDropActions(const QFileSystemModel* self); -struct miqt_map QFileSystemModel_RoleNames(const QFileSystemModel* self); +struct miqt_map /* of int to struct miqt_string */ QFileSystemModel_RoleNames(const QFileSystemModel* self); QModelIndex* QFileSystemModel_SetRootPath(QFileSystemModel* self, struct miqt_string path); struct miqt_string QFileSystemModel_RootPath(const QFileSystemModel* self); QDir* QFileSystemModel_RootDirectory(const QFileSystemModel* self); @@ -85,8 +86,8 @@ void QFileSystemModel_SetReadOnly(QFileSystemModel* self, bool enable); bool QFileSystemModel_IsReadOnly(const QFileSystemModel* self); void QFileSystemModel_SetNameFilterDisables(QFileSystemModel* self, bool enable); bool QFileSystemModel_NameFilterDisables(const QFileSystemModel* self); -void QFileSystemModel_SetNameFilters(QFileSystemModel* self, struct miqt_array /* of struct miqt_string */ filters); -struct miqt_array QFileSystemModel_NameFilters(const QFileSystemModel* self); +void QFileSystemModel_SetNameFilters(QFileSystemModel* self, struct miqt_array /* of struct miqt_string */ filters); +struct miqt_array /* of struct miqt_string */ QFileSystemModel_NameFilters(const QFileSystemModel* self); void QFileSystemModel_SetOption(QFileSystemModel* self, int option); bool QFileSystemModel_TestOption(const QFileSystemModel* self, int option); void QFileSystemModel_SetOptions(QFileSystemModel* self, int options); diff --git a/qt6/gen_qfilesystemwatcher.cpp b/qt6/gen_qfilesystemwatcher.cpp index 761d47cd..bb4d9549 100644 --- a/qt6/gen_qfilesystemwatcher.cpp +++ b/qt6/gen_qfilesystemwatcher.cpp @@ -13,7 +13,7 @@ QFileSystemWatcher* QFileSystemWatcher_new() { return new QFileSystemWatcher(); } -QFileSystemWatcher* QFileSystemWatcher_new2(struct miqt_array /* of struct miqt_string */ paths) { +QFileSystemWatcher* QFileSystemWatcher_new2(struct miqt_array /* of struct miqt_string */ paths) { QStringList paths_QList; paths_QList.reserve(paths.len); struct miqt_string* paths_arr = static_cast(paths.data); @@ -28,7 +28,7 @@ QFileSystemWatcher* QFileSystemWatcher_new3(QObject* parent) { return new QFileSystemWatcher(parent); } -QFileSystemWatcher* QFileSystemWatcher_new4(struct miqt_array /* of struct miqt_string */ paths, QObject* parent) { +QFileSystemWatcher* QFileSystemWatcher_new4(struct miqt_array /* of struct miqt_string */ paths, QObject* parent) { QStringList paths_QList; paths_QList.reserve(paths.len); struct miqt_string* paths_arr = static_cast(paths.data); @@ -63,7 +63,7 @@ bool QFileSystemWatcher_AddPath(QFileSystemWatcher* self, struct miqt_string fil return self->addPath(file_QString); } -struct miqt_array QFileSystemWatcher_AddPaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files) { +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_AddPaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files) { QStringList files_QList; files_QList.reserve(files.len); struct miqt_string* files_arr = static_cast(files.data); @@ -95,7 +95,7 @@ bool QFileSystemWatcher_RemovePath(QFileSystemWatcher* self, struct miqt_string return self->removePath(file_QString); } -struct miqt_array QFileSystemWatcher_RemovePaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files) { +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_RemovePaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files) { QStringList files_QList; files_QList.reserve(files.len); struct miqt_string* files_arr = static_cast(files.data); @@ -122,7 +122,7 @@ struct miqt_array QFileSystemWatcher_RemovePaths(QFileSystemWatcher* self, struc return _out; } -struct miqt_array QFileSystemWatcher_Files(const QFileSystemWatcher* self) { +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_Files(const QFileSystemWatcher* self) { QStringList _ret = self->files(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -142,7 +142,7 @@ struct miqt_array QFileSystemWatcher_Files(const QFileSystemWatcher* self) { return _out; } -struct miqt_array QFileSystemWatcher_Directories(const QFileSystemWatcher* self) { +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_Directories(const QFileSystemWatcher* self) { QStringList _ret = self->directories(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qfilesystemwatcher.h b/qt6/gen_qfilesystemwatcher.h index 9defd829..323e5fc6 100644 --- a/qt6/gen_qfilesystemwatcher.h +++ b/qt6/gen_qfilesystemwatcher.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFILESYSTEMWATCHER_H -#define GEN_QFILESYSTEMWATCHER_H +#pragma once +#ifndef MIQT_QT6_GEN_QFILESYSTEMWATCHER_H +#define MIQT_QT6_GEN_QFILESYSTEMWATCHER_H #include #include @@ -24,18 +25,18 @@ typedef struct QObject QObject; #endif QFileSystemWatcher* QFileSystemWatcher_new(); -QFileSystemWatcher* QFileSystemWatcher_new2(struct miqt_array /* of struct miqt_string */ paths); +QFileSystemWatcher* QFileSystemWatcher_new2(struct miqt_array /* of struct miqt_string */ paths); QFileSystemWatcher* QFileSystemWatcher_new3(QObject* parent); -QFileSystemWatcher* QFileSystemWatcher_new4(struct miqt_array /* of struct miqt_string */ paths, QObject* parent); +QFileSystemWatcher* QFileSystemWatcher_new4(struct miqt_array /* of struct miqt_string */ paths, QObject* parent); QMetaObject* QFileSystemWatcher_MetaObject(const QFileSystemWatcher* self); void* QFileSystemWatcher_Metacast(QFileSystemWatcher* self, const char* param1); struct miqt_string QFileSystemWatcher_Tr(const char* s); bool QFileSystemWatcher_AddPath(QFileSystemWatcher* self, struct miqt_string file); -struct miqt_array QFileSystemWatcher_AddPaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files); +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_AddPaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files); bool QFileSystemWatcher_RemovePath(QFileSystemWatcher* self, struct miqt_string file); -struct miqt_array QFileSystemWatcher_RemovePaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files); -struct miqt_array QFileSystemWatcher_Files(const QFileSystemWatcher* self); -struct miqt_array QFileSystemWatcher_Directories(const QFileSystemWatcher* self); +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_RemovePaths(QFileSystemWatcher* self, struct miqt_array /* of struct miqt_string */ files); +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_Files(const QFileSystemWatcher* self); +struct miqt_array /* of struct miqt_string */ QFileSystemWatcher_Directories(const QFileSystemWatcher* self); struct miqt_string QFileSystemWatcher_Tr2(const char* s, const char* c); struct miqt_string QFileSystemWatcher_Tr3(const char* s, const char* c, int n); void QFileSystemWatcher_Delete(QFileSystemWatcher* self); diff --git a/qt6/gen_qfloat16.h b/qt6/gen_qfloat16.h index 639defa5..d9da7ce1 100644 --- a/qt6/gen_qfloat16.h +++ b/qt6/gen_qfloat16.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFLOAT16_H -#define GEN_QFLOAT16_H +#pragma once +#ifndef MIQT_QT6_GEN_QFLOAT16_H +#define MIQT_QT6_GEN_QFLOAT16_H #include #include diff --git a/qt6/gen_qfocusframe.h b/qt6/gen_qfocusframe.h index d50995ed..edccf0ea 100644 --- a/qt6/gen_qfocusframe.h +++ b/qt6/gen_qfocusframe.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFOCUSFRAME_H -#define GEN_QFOCUSFRAME_H +#pragma once +#ifndef MIQT_QT6_GEN_QFOCUSFRAME_H +#define MIQT_QT6_GEN_QFOCUSFRAME_H #include #include diff --git a/qt6/gen_qfont.cpp b/qt6/gen_qfont.cpp index a92a189a..1e6b9a79 100644 --- a/qt6/gen_qfont.cpp +++ b/qt6/gen_qfont.cpp @@ -17,7 +17,7 @@ QFont* QFont_new2(struct miqt_string family) { return new QFont(family_QString); } -QFont* QFont_new3(struct miqt_array /* of struct miqt_string */ families) { +QFont* QFont_new3(struct miqt_array /* of struct miqt_string */ families) { QStringList families_QList; families_QList.reserve(families.len); struct miqt_string* families_arr = static_cast(families.data); @@ -51,7 +51,7 @@ QFont* QFont_new8(struct miqt_string family, int pointSize, int weight, bool ita return new QFont(family_QString, static_cast(pointSize), static_cast(weight), italic); } -QFont* QFont_new9(struct miqt_array /* of struct miqt_string */ families, int pointSize) { +QFont* QFont_new9(struct miqt_array /* of struct miqt_string */ families, int pointSize) { QStringList families_QList; families_QList.reserve(families.len); struct miqt_string* families_arr = static_cast(families.data); @@ -62,7 +62,7 @@ QFont* QFont_new9(struct miqt_array /* of struct miqt_string */ families, int po return new QFont(families_QList, static_cast(pointSize)); } -QFont* QFont_new10(struct miqt_array /* of struct miqt_string */ families, int pointSize, int weight) { +QFont* QFont_new10(struct miqt_array /* of struct miqt_string */ families, int pointSize, int weight) { QStringList families_QList; families_QList.reserve(families.len); struct miqt_string* families_arr = static_cast(families.data); @@ -73,7 +73,7 @@ QFont* QFont_new10(struct miqt_array /* of struct miqt_string */ families, int p return new QFont(families_QList, static_cast(pointSize), static_cast(weight)); } -QFont* QFont_new11(struct miqt_array /* of struct miqt_string */ families, int pointSize, int weight, bool italic) { +QFont* QFont_new11(struct miqt_array /* of struct miqt_string */ families, int pointSize, int weight, bool italic) { QStringList families_QList; families_QList.reserve(families.len); struct miqt_string* families_arr = static_cast(families.data); @@ -104,7 +104,7 @@ void QFont_SetFamily(QFont* self, struct miqt_string family) { self->setFamily(family_QString); } -struct miqt_array QFont_Families(const QFont* self) { +struct miqt_array /* of struct miqt_string */ QFont_Families(const QFont* self) { QStringList _ret = self->families(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -124,7 +124,7 @@ struct miqt_array QFont_Families(const QFont* self) { return _out; } -void QFont_SetFamilies(QFont* self, struct miqt_array /* of struct miqt_string */ families) { +void QFont_SetFamilies(QFont* self, struct miqt_array /* of struct miqt_string */ families) { QStringList families_QList; families_QList.reserve(families.len); struct miqt_string* families_arr = static_cast(families.data); @@ -380,7 +380,7 @@ struct miqt_string QFont_Substitute(struct miqt_string param1) { return _ms; } -struct miqt_array QFont_Substitutes(struct miqt_string param1) { +struct miqt_array /* of struct miqt_string */ QFont_Substitutes(struct miqt_string param1) { QString param1_QString = QString::fromUtf8(param1.data, param1.len); QStringList _ret = QFont::substitutes(param1_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -401,7 +401,7 @@ struct miqt_array QFont_Substitutes(struct miqt_string param1) { return _out; } -struct miqt_array QFont_Substitutions() { +struct miqt_array /* of struct miqt_string */ QFont_Substitutions() { QStringList _ret = QFont::substitutions(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -427,7 +427,7 @@ void QFont_InsertSubstitution(struct miqt_string param1, struct miqt_string para QFont::insertSubstitution(param1_QString, param2_QString); } -void QFont_InsertSubstitutions(struct miqt_string param1, struct miqt_array /* of struct miqt_string */ param2) { +void QFont_InsertSubstitutions(struct miqt_string param1, struct miqt_array /* of struct miqt_string */ param2) { QString param1_QString = QString::fromUtf8(param1.data, param1.len); QStringList param2_QList; param2_QList.reserve(param2.len); diff --git a/qt6/gen_qfont.h b/qt6/gen_qfont.h index 365d7618..c931d7d5 100644 --- a/qt6/gen_qfont.h +++ b/qt6/gen_qfont.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFONT_H -#define GEN_QFONT_H +#pragma once +#ifndef MIQT_QT6_GEN_QFONT_H +#define MIQT_QT6_GEN_QFONT_H #include #include @@ -23,20 +24,20 @@ typedef struct QPaintDevice QPaintDevice; QFont* QFont_new(); QFont* QFont_new2(struct miqt_string family); -QFont* QFont_new3(struct miqt_array /* of struct miqt_string */ families); +QFont* QFont_new3(struct miqt_array /* of struct miqt_string */ families); QFont* QFont_new4(QFont* font, QPaintDevice* pd); QFont* QFont_new5(QFont* font); QFont* QFont_new6(struct miqt_string family, int pointSize); QFont* QFont_new7(struct miqt_string family, int pointSize, int weight); QFont* QFont_new8(struct miqt_string family, int pointSize, int weight, bool italic); -QFont* QFont_new9(struct miqt_array /* of struct miqt_string */ families, int pointSize); -QFont* QFont_new10(struct miqt_array /* of struct miqt_string */ families, int pointSize, int weight); -QFont* QFont_new11(struct miqt_array /* of struct miqt_string */ families, int pointSize, int weight, bool italic); +QFont* QFont_new9(struct miqt_array /* of struct miqt_string */ families, int pointSize); +QFont* QFont_new10(struct miqt_array /* of struct miqt_string */ families, int pointSize, int weight); +QFont* QFont_new11(struct miqt_array /* of struct miqt_string */ families, int pointSize, int weight, bool italic); void QFont_Swap(QFont* self, QFont* other); struct miqt_string QFont_Family(const QFont* self); void QFont_SetFamily(QFont* self, struct miqt_string family); -struct miqt_array QFont_Families(const QFont* self); -void QFont_SetFamilies(QFont* self, struct miqt_array /* of struct miqt_string */ families); +struct miqt_array /* of struct miqt_string */ QFont_Families(const QFont* self); +void QFont_SetFamilies(QFont* self, struct miqt_array /* of struct miqt_string */ families); struct miqt_string QFont_StyleName(const QFont* self); void QFont_SetStyleName(QFont* self, struct miqt_string styleName); int QFont_PointSize(const QFont* self); @@ -88,10 +89,10 @@ struct miqt_string QFont_Key(const QFont* self); struct miqt_string QFont_ToString(const QFont* self); bool QFont_FromString(QFont* self, struct miqt_string param1); struct miqt_string QFont_Substitute(struct miqt_string param1); -struct miqt_array QFont_Substitutes(struct miqt_string param1); -struct miqt_array QFont_Substitutions(); +struct miqt_array /* of struct miqt_string */ QFont_Substitutes(struct miqt_string param1); +struct miqt_array /* of struct miqt_string */ QFont_Substitutions(); void QFont_InsertSubstitution(struct miqt_string param1, struct miqt_string param2); -void QFont_InsertSubstitutions(struct miqt_string param1, struct miqt_array /* of struct miqt_string */ param2); +void QFont_InsertSubstitutions(struct miqt_string param1, struct miqt_array /* of struct miqt_string */ param2); void QFont_RemoveSubstitutions(struct miqt_string param1); void QFont_Initialize(); void QFont_Cleanup(); diff --git a/qt6/gen_qfontcombobox.h b/qt6/gen_qfontcombobox.h index bf3edbec..43559a5b 100644 --- a/qt6/gen_qfontcombobox.h +++ b/qt6/gen_qfontcombobox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFONTCOMBOBOX_H -#define GEN_QFONTCOMBOBOX_H +#pragma once +#ifndef MIQT_QT6_GEN_QFONTCOMBOBOX_H +#define MIQT_QT6_GEN_QFONTCOMBOBOX_H #include #include diff --git a/qt6/gen_qfontdatabase.cpp b/qt6/gen_qfontdatabase.cpp index fda37612..755b586e 100644 --- a/qt6/gen_qfontdatabase.cpp +++ b/qt6/gen_qfontdatabase.cpp @@ -14,7 +14,7 @@ QFontDatabase* QFontDatabase_new() { return new QFontDatabase(); } -struct miqt_array QFontDatabase_StandardSizes() { +struct miqt_array /* of int */ QFontDatabase_StandardSizes() { QList _ret = QFontDatabase::standardSizes(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -27,7 +27,7 @@ struct miqt_array QFontDatabase_StandardSizes() { return _out; } -struct miqt_array QFontDatabase_WritingSystems() { +struct miqt_array /* of int */ QFontDatabase_WritingSystems() { QList _ret = QFontDatabase::writingSystems(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -41,7 +41,7 @@ struct miqt_array QFontDatabase_WritingSystems() { return _out; } -struct miqt_array QFontDatabase_WritingSystemsWithFamily(struct miqt_string family) { +struct miqt_array /* of int */ QFontDatabase_WritingSystemsWithFamily(struct miqt_string family) { QString family_QString = QString::fromUtf8(family.data, family.len); QList _ret = QFontDatabase::writingSystems(family_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -56,7 +56,7 @@ struct miqt_array QFontDatabase_WritingSystemsWithFamily(struct miqt_string fami return _out; } -struct miqt_array QFontDatabase_Families() { +struct miqt_array /* of struct miqt_string */ QFontDatabase_Families() { QStringList _ret = QFontDatabase::families(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -76,7 +76,7 @@ struct miqt_array QFontDatabase_Families() { return _out; } -struct miqt_array QFontDatabase_Styles(struct miqt_string family) { +struct miqt_array /* of struct miqt_string */ QFontDatabase_Styles(struct miqt_string family) { QString family_QString = QString::fromUtf8(family.data, family.len); QStringList _ret = QFontDatabase::styles(family_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -97,7 +97,7 @@ struct miqt_array QFontDatabase_Styles(struct miqt_string family) { return _out; } -struct miqt_array QFontDatabase_PointSizes(struct miqt_string family) { +struct miqt_array /* of int */ QFontDatabase_PointSizes(struct miqt_string family) { QString family_QString = QString::fromUtf8(family.data, family.len); QList _ret = QFontDatabase::pointSizes(family_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -111,7 +111,7 @@ struct miqt_array QFontDatabase_PointSizes(struct miqt_string family) { return _out; } -struct miqt_array QFontDatabase_SmoothSizes(struct miqt_string family, struct miqt_string style) { +struct miqt_array /* of int */ QFontDatabase_SmoothSizes(struct miqt_string family, struct miqt_string style) { QString family_QString = QString::fromUtf8(family.data, family.len); QString style_QString = QString::fromUtf8(style.data, style.len); QList _ret = QFontDatabase::smoothSizes(family_QString, style_QString); @@ -234,7 +234,7 @@ int QFontDatabase_AddApplicationFontFromData(struct miqt_string fontData) { return QFontDatabase::addApplicationFontFromData(fontData_QByteArray); } -struct miqt_array QFontDatabase_ApplicationFontFamilies(int id) { +struct miqt_array /* of struct miqt_string */ QFontDatabase_ApplicationFontFamilies(int id) { QStringList _ret = QFontDatabase::applicationFontFamilies(static_cast(id)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -266,7 +266,7 @@ QFont* QFontDatabase_SystemFont(int typeVal) { return new QFont(QFontDatabase::systemFont(static_cast(typeVal))); } -struct miqt_array QFontDatabase_Families1(int writingSystem) { +struct miqt_array /* of struct miqt_string */ QFontDatabase_Families1(int writingSystem) { QStringList _ret = QFontDatabase::families(static_cast(writingSystem)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -286,7 +286,7 @@ struct miqt_array QFontDatabase_Families1(int writingSystem) { return _out; } -struct miqt_array QFontDatabase_PointSizes2(struct miqt_string family, struct miqt_string style) { +struct miqt_array /* of int */ QFontDatabase_PointSizes2(struct miqt_string family, struct miqt_string style) { QString family_QString = QString::fromUtf8(family.data, family.len); QString style_QString = QString::fromUtf8(style.data, style.len); QList _ret = QFontDatabase::pointSizes(family_QString, style_QString); diff --git a/qt6/gen_qfontdatabase.h b/qt6/gen_qfontdatabase.h index a5b79abc..e220bed3 100644 --- a/qt6/gen_qfontdatabase.h +++ b/qt6/gen_qfontdatabase.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFONTDATABASE_H -#define GEN_QFONTDATABASE_H +#pragma once +#ifndef MIQT_QT6_GEN_QFONTDATABASE_H +#define MIQT_QT6_GEN_QFONTDATABASE_H #include #include @@ -26,13 +27,13 @@ typedef struct QFontInfo QFontInfo; #endif QFontDatabase* QFontDatabase_new(); -struct miqt_array QFontDatabase_StandardSizes(); -struct miqt_array QFontDatabase_WritingSystems(); -struct miqt_array QFontDatabase_WritingSystemsWithFamily(struct miqt_string family); -struct miqt_array QFontDatabase_Families(); -struct miqt_array QFontDatabase_Styles(struct miqt_string family); -struct miqt_array QFontDatabase_PointSizes(struct miqt_string family); -struct miqt_array QFontDatabase_SmoothSizes(struct miqt_string family, struct miqt_string style); +struct miqt_array /* of int */ QFontDatabase_StandardSizes(); +struct miqt_array /* of int */ QFontDatabase_WritingSystems(); +struct miqt_array /* of int */ QFontDatabase_WritingSystemsWithFamily(struct miqt_string family); +struct miqt_array /* of struct miqt_string */ QFontDatabase_Families(); +struct miqt_array /* of struct miqt_string */ QFontDatabase_Styles(struct miqt_string family); +struct miqt_array /* of int */ QFontDatabase_PointSizes(struct miqt_string family); +struct miqt_array /* of int */ QFontDatabase_SmoothSizes(struct miqt_string family, struct miqt_string style); struct miqt_string QFontDatabase_StyleString(QFont* font); struct miqt_string QFontDatabase_StyleStringWithFontInfo(QFontInfo* fontInfo); QFont* QFontDatabase_Font(struct miqt_string family, struct miqt_string style, int pointSize); @@ -49,12 +50,12 @@ struct miqt_string QFontDatabase_WritingSystemName(int writingSystem); struct miqt_string QFontDatabase_WritingSystemSample(int writingSystem); int QFontDatabase_AddApplicationFont(struct miqt_string fileName); int QFontDatabase_AddApplicationFontFromData(struct miqt_string fontData); -struct miqt_array QFontDatabase_ApplicationFontFamilies(int id); +struct miqt_array /* of struct miqt_string */ QFontDatabase_ApplicationFontFamilies(int id); bool QFontDatabase_RemoveApplicationFont(int id); bool QFontDatabase_RemoveAllApplicationFonts(); QFont* QFontDatabase_SystemFont(int typeVal); -struct miqt_array QFontDatabase_Families1(int writingSystem); -struct miqt_array QFontDatabase_PointSizes2(struct miqt_string family, struct miqt_string style); +struct miqt_array /* of struct miqt_string */ QFontDatabase_Families1(int writingSystem); +struct miqt_array /* of int */ QFontDatabase_PointSizes2(struct miqt_string family, struct miqt_string style); bool QFontDatabase_IsBitmapScalable2(struct miqt_string family, struct miqt_string style); bool QFontDatabase_IsSmoothlyScalable2(struct miqt_string family, struct miqt_string style); bool QFontDatabase_IsScalable2(struct miqt_string family, struct miqt_string style); diff --git a/qt6/gen_qfontdialog.h b/qt6/gen_qfontdialog.h index e678443f..072ce86f 100644 --- a/qt6/gen_qfontdialog.h +++ b/qt6/gen_qfontdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFONTDIALOG_H -#define GEN_QFONTDIALOG_H +#pragma once +#ifndef MIQT_QT6_GEN_QFONTDIALOG_H +#define MIQT_QT6_GEN_QFONTDIALOG_H #include #include diff --git a/qt6/gen_qfontinfo.h b/qt6/gen_qfontinfo.h index 0b6ed21f..0bf8e133 100644 --- a/qt6/gen_qfontinfo.h +++ b/qt6/gen_qfontinfo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFONTINFO_H -#define GEN_QFONTINFO_H +#pragma once +#ifndef MIQT_QT6_GEN_QFONTINFO_H +#define MIQT_QT6_GEN_QFONTINFO_H #include #include diff --git a/qt6/gen_qfontmetrics.h b/qt6/gen_qfontmetrics.h index 6bbbac1b..edca46a8 100644 --- a/qt6/gen_qfontmetrics.h +++ b/qt6/gen_qfontmetrics.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFONTMETRICS_H -#define GEN_QFONTMETRICS_H +#pragma once +#ifndef MIQT_QT6_GEN_QFONTMETRICS_H +#define MIQT_QT6_GEN_QFONTMETRICS_H #include #include diff --git a/qt6/gen_qformlayout.h b/qt6/gen_qformlayout.h index a97d0f18..44da01cd 100644 --- a/qt6/gen_qformlayout.h +++ b/qt6/gen_qformlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFORMLAYOUT_H -#define GEN_QFORMLAYOUT_H +#pragma once +#ifndef MIQT_QT6_GEN_QFORMLAYOUT_H +#define MIQT_QT6_GEN_QFORMLAYOUT_H #include #include diff --git a/qt6/gen_qframe.h b/qt6/gen_qframe.h index 79280141..19cbcfd8 100644 --- a/qt6/gen_qframe.h +++ b/qt6/gen_qframe.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFRAME_H -#define GEN_QFRAME_H +#pragma once +#ifndef MIQT_QT6_GEN_QFRAME_H +#define MIQT_QT6_GEN_QFRAME_H #include #include diff --git a/qt6/gen_qfutureinterface.h b/qt6/gen_qfutureinterface.h index 14cb7441..aef73658 100644 --- a/qt6/gen_qfutureinterface.h +++ b/qt6/gen_qfutureinterface.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFUTUREINTERFACE_H -#define GEN_QFUTUREINTERFACE_H +#pragma once +#ifndef MIQT_QT6_GEN_QFUTUREINTERFACE_H +#define MIQT_QT6_GEN_QFUTUREINTERFACE_H #include #include diff --git a/qt6/gen_qfuturewatcher.h b/qt6/gen_qfuturewatcher.h index cfbb5554..09649c9b 100644 --- a/qt6/gen_qfuturewatcher.h +++ b/qt6/gen_qfuturewatcher.h @@ -1,5 +1,6 @@ -#ifndef GEN_QFUTUREWATCHER_H -#define GEN_QFUTUREWATCHER_H +#pragma once +#ifndef MIQT_QT6_GEN_QFUTUREWATCHER_H +#define MIQT_QT6_GEN_QFUTUREWATCHER_H #include #include diff --git a/qt6/gen_qgenericplugin.h b/qt6/gen_qgenericplugin.h index 18d34d1c..fc525251 100644 --- a/qt6/gen_qgenericplugin.h +++ b/qt6/gen_qgenericplugin.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGENERICPLUGIN_H -#define GEN_QGENERICPLUGIN_H +#pragma once +#ifndef MIQT_QT6_GEN_QGENERICPLUGIN_H +#define MIQT_QT6_GEN_QGENERICPLUGIN_H #include #include diff --git a/qt6/gen_qgenericpluginfactory.cpp b/qt6/gen_qgenericpluginfactory.cpp index 4292d5b1..2aa5ac9b 100644 --- a/qt6/gen_qgenericpluginfactory.cpp +++ b/qt6/gen_qgenericpluginfactory.cpp @@ -8,7 +8,7 @@ #include "gen_qgenericpluginfactory.h" #include "_cgo_export.h" -struct miqt_array QGenericPluginFactory_Keys() { +struct miqt_array /* of struct miqt_string */ QGenericPluginFactory_Keys() { QStringList _ret = QGenericPluginFactory::keys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qgenericpluginfactory.h b/qt6/gen_qgenericpluginfactory.h index f7974818..a0924b90 100644 --- a/qt6/gen_qgenericpluginfactory.h +++ b/qt6/gen_qgenericpluginfactory.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGENERICPLUGINFACTORY_H -#define GEN_QGENERICPLUGINFACTORY_H +#pragma once +#ifndef MIQT_QT6_GEN_QGENERICPLUGINFACTORY_H +#define MIQT_QT6_GEN_QGENERICPLUGINFACTORY_H #include #include @@ -21,7 +22,7 @@ typedef struct QGenericPluginFactory QGenericPluginFactory; typedef struct QObject QObject; #endif -struct miqt_array QGenericPluginFactory_Keys(); +struct miqt_array /* of struct miqt_string */ QGenericPluginFactory_Keys(); QObject* QGenericPluginFactory_Create(struct miqt_string param1, struct miqt_string param2); void QGenericPluginFactory_Delete(QGenericPluginFactory* self); diff --git a/qt6/gen_qgesture.cpp b/qt6/gen_qgesture.cpp index a8b78fc0..ababf41e 100644 --- a/qt6/gen_qgesture.cpp +++ b/qt6/gen_qgesture.cpp @@ -538,7 +538,7 @@ void QTapAndHoldGesture_Delete(QTapAndHoldGesture* self) { delete self; } -QGestureEvent* QGestureEvent_new(struct miqt_array /* of QGesture* */ gestures) { +QGestureEvent* QGestureEvent_new(struct miqt_array /* of QGesture* */ gestures) { QList gestures_QList; gestures_QList.reserve(gestures.len); QGesture** gestures_arr = static_cast(gestures.data); @@ -552,7 +552,7 @@ QGestureEvent* QGestureEvent_new2(QGestureEvent* param1) { return new QGestureEvent(*param1); } -struct miqt_array QGestureEvent_Gestures(const QGestureEvent* self) { +struct miqt_array /* of QGesture* */ QGestureEvent_Gestures(const QGestureEvent* self) { QList _ret = self->gestures(); // Convert QList<> from C++ memory to manually-managed C memory QGesture** _arr = static_cast(malloc(sizeof(QGesture*) * _ret.length())); @@ -569,7 +569,7 @@ QGesture* QGestureEvent_Gesture(const QGestureEvent* self, int typeVal) { return self->gesture(static_cast(typeVal)); } -struct miqt_array QGestureEvent_ActiveGestures(const QGestureEvent* self) { +struct miqt_array /* of QGesture* */ QGestureEvent_ActiveGestures(const QGestureEvent* self) { QList _ret = self->activeGestures(); // Convert QList<> from C++ memory to manually-managed C memory QGesture** _arr = static_cast(malloc(sizeof(QGesture*) * _ret.length())); @@ -582,7 +582,7 @@ struct miqt_array QGestureEvent_ActiveGestures(const QGestureEvent* self) { return _out; } -struct miqt_array QGestureEvent_CanceledGestures(const QGestureEvent* self) { +struct miqt_array /* of QGesture* */ QGestureEvent_CanceledGestures(const QGestureEvent* self) { QList _ret = self->canceledGestures(); // Convert QList<> from C++ memory to manually-managed C memory QGesture** _arr = static_cast(malloc(sizeof(QGesture*) * _ret.length())); diff --git a/qt6/gen_qgesture.h b/qt6/gen_qgesture.h index 2616ab7f..8846c9d4 100644 --- a/qt6/gen_qgesture.h +++ b/qt6/gen_qgesture.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGESTURE_H -#define GEN_QGESTURE_H +#pragma once +#ifndef MIQT_QT6_GEN_QGESTURE_H +#define MIQT_QT6_GEN_QGESTURE_H #include #include @@ -140,12 +141,12 @@ struct miqt_string QTapAndHoldGesture_Tr2(const char* s, const char* c); struct miqt_string QTapAndHoldGesture_Tr3(const char* s, const char* c, int n); void QTapAndHoldGesture_Delete(QTapAndHoldGesture* self); -QGestureEvent* QGestureEvent_new(struct miqt_array /* of QGesture* */ gestures); +QGestureEvent* QGestureEvent_new(struct miqt_array /* of QGesture* */ gestures); QGestureEvent* QGestureEvent_new2(QGestureEvent* param1); -struct miqt_array QGestureEvent_Gestures(const QGestureEvent* self); +struct miqt_array /* of QGesture* */ QGestureEvent_Gestures(const QGestureEvent* self); QGesture* QGestureEvent_Gesture(const QGestureEvent* self, int typeVal); -struct miqt_array QGestureEvent_ActiveGestures(const QGestureEvent* self); -struct miqt_array QGestureEvent_CanceledGestures(const QGestureEvent* self); +struct miqt_array /* of QGesture* */ QGestureEvent_ActiveGestures(const QGestureEvent* self); +struct miqt_array /* of QGesture* */ QGestureEvent_CanceledGestures(const QGestureEvent* self); void QGestureEvent_SetAccepted(QGestureEvent* self, QGesture* param1, bool param2); void QGestureEvent_Accept(QGestureEvent* self, QGesture* param1); void QGestureEvent_Ignore(QGestureEvent* self, QGesture* param1); diff --git a/qt6/gen_qgesturerecognizer.h b/qt6/gen_qgesturerecognizer.h index fc676e1b..43fa2c9c 100644 --- a/qt6/gen_qgesturerecognizer.h +++ b/qt6/gen_qgesturerecognizer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGESTURERECOGNIZER_H -#define GEN_QGESTURERECOGNIZER_H +#pragma once +#ifndef MIQT_QT6_GEN_QGESTURERECOGNIZER_H +#define MIQT_QT6_GEN_QGESTURERECOGNIZER_H #include #include diff --git a/qt6/gen_qglobal.h b/qt6/gen_qglobal.h index 8f118017..25c12ba6 100644 --- a/qt6/gen_qglobal.h +++ b/qt6/gen_qglobal.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGLOBAL_H -#define GEN_QGLOBAL_H +#pragma once +#ifndef MIQT_QT6_GEN_QGLOBAL_H +#define MIQT_QT6_GEN_QGLOBAL_H #include #include diff --git a/qt6/gen_qglyphrun.cpp b/qt6/gen_qglyphrun.cpp index 3311ab70..808b7980 100644 --- a/qt6/gen_qglyphrun.cpp +++ b/qt6/gen_qglyphrun.cpp @@ -35,7 +35,7 @@ void QGlyphRun_SetRawData(QGlyphRun* self, const unsigned int* glyphIndexArray, self->setRawData(static_cast(glyphIndexArray), glyphPositionArray, static_cast(size)); } -struct miqt_array QGlyphRun_GlyphIndexes(const QGlyphRun* self) { +struct miqt_array /* of unsigned int */ QGlyphRun_GlyphIndexes(const QGlyphRun* self) { QList _ret = self->glyphIndexes(); // Convert QList<> from C++ memory to manually-managed C memory unsigned int* _arr = static_cast(malloc(sizeof(unsigned int) * _ret.length())); @@ -48,7 +48,7 @@ struct miqt_array QGlyphRun_GlyphIndexes(const QGlyphRun* self) { return _out; } -void QGlyphRun_SetGlyphIndexes(QGlyphRun* self, struct miqt_array /* of unsigned int */ glyphIndexes) { +void QGlyphRun_SetGlyphIndexes(QGlyphRun* self, struct miqt_array /* of unsigned int */ glyphIndexes) { QList glyphIndexes_QList; glyphIndexes_QList.reserve(glyphIndexes.len); unsigned int* glyphIndexes_arr = static_cast(glyphIndexes.data); @@ -58,7 +58,7 @@ void QGlyphRun_SetGlyphIndexes(QGlyphRun* self, struct miqt_array /* of unsigned self->setGlyphIndexes(glyphIndexes_QList); } -struct miqt_array QGlyphRun_Positions(const QGlyphRun* self) { +struct miqt_array /* of QPointF* */ QGlyphRun_Positions(const QGlyphRun* self) { QList _ret = self->positions(); // Convert QList<> from C++ memory to manually-managed C memory QPointF** _arr = static_cast(malloc(sizeof(QPointF*) * _ret.length())); @@ -71,7 +71,7 @@ struct miqt_array QGlyphRun_Positions(const QGlyphRun* self) { return _out; } -void QGlyphRun_SetPositions(QGlyphRun* self, struct miqt_array /* of QPointF* */ positions) { +void QGlyphRun_SetPositions(QGlyphRun* self, struct miqt_array /* of QPointF* */ positions) { QList positions_QList; positions_QList.reserve(positions.len); QPointF** positions_arr = static_cast(positions.data); diff --git a/qt6/gen_qglyphrun.h b/qt6/gen_qglyphrun.h index 88ba5bcd..0dd17409 100644 --- a/qt6/gen_qglyphrun.h +++ b/qt6/gen_qglyphrun.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGLYPHRUN_H -#define GEN_QGLYPHRUN_H +#pragma once +#ifndef MIQT_QT6_GEN_QGLYPHRUN_H +#define MIQT_QT6_GEN_QGLYPHRUN_H #include #include @@ -32,10 +33,10 @@ void QGlyphRun_Swap(QGlyphRun* self, QGlyphRun* other); QRawFont* QGlyphRun_RawFont(const QGlyphRun* self); void QGlyphRun_SetRawFont(QGlyphRun* self, QRawFont* rawFont); void QGlyphRun_SetRawData(QGlyphRun* self, const unsigned int* glyphIndexArray, QPointF* glyphPositionArray, int size); -struct miqt_array QGlyphRun_GlyphIndexes(const QGlyphRun* self); -void QGlyphRun_SetGlyphIndexes(QGlyphRun* self, struct miqt_array /* of unsigned int */ glyphIndexes); -struct miqt_array QGlyphRun_Positions(const QGlyphRun* self); -void QGlyphRun_SetPositions(QGlyphRun* self, struct miqt_array /* of QPointF* */ positions); +struct miqt_array /* of unsigned int */ QGlyphRun_GlyphIndexes(const QGlyphRun* self); +void QGlyphRun_SetGlyphIndexes(QGlyphRun* self, struct miqt_array /* of unsigned int */ glyphIndexes); +struct miqt_array /* of QPointF* */ QGlyphRun_Positions(const QGlyphRun* self); +void QGlyphRun_SetPositions(QGlyphRun* self, struct miqt_array /* of QPointF* */ positions); void QGlyphRun_Clear(QGlyphRun* self); bool QGlyphRun_OperatorEqual(const QGlyphRun* self, QGlyphRun* other); bool QGlyphRun_OperatorNotEqual(const QGlyphRun* self, QGlyphRun* other); diff --git a/qt6/gen_qgraphicsanchorlayout.h b/qt6/gen_qgraphicsanchorlayout.h index 6ef61636..5d9b5bd2 100644 --- a/qt6/gen_qgraphicsanchorlayout.h +++ b/qt6/gen_qgraphicsanchorlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSANCHORLAYOUT_H -#define GEN_QGRAPHICSANCHORLAYOUT_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRAPHICSANCHORLAYOUT_H +#define MIQT_QT6_GEN_QGRAPHICSANCHORLAYOUT_H #include #include diff --git a/qt6/gen_qgraphicseffect.h b/qt6/gen_qgraphicseffect.h index ceed278d..dc81ec42 100644 --- a/qt6/gen_qgraphicseffect.h +++ b/qt6/gen_qgraphicseffect.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSEFFECT_H -#define GEN_QGRAPHICSEFFECT_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRAPHICSEFFECT_H +#define MIQT_QT6_GEN_QGRAPHICSEFFECT_H #include #include diff --git a/qt6/gen_qgraphicsgridlayout.h b/qt6/gen_qgraphicsgridlayout.h index 18474a42..1d9c4c61 100644 --- a/qt6/gen_qgraphicsgridlayout.h +++ b/qt6/gen_qgraphicsgridlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSGRIDLAYOUT_H -#define GEN_QGRAPHICSGRIDLAYOUT_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRAPHICSGRIDLAYOUT_H +#define MIQT_QT6_GEN_QGRAPHICSGRIDLAYOUT_H #include #include diff --git a/qt6/gen_qgraphicsitem.cpp b/qt6/gen_qgraphicsitem.cpp index 18dfe6fd..56a91dba 100644 --- a/qt6/gen_qgraphicsitem.cpp +++ b/qt6/gen_qgraphicsitem.cpp @@ -78,7 +78,7 @@ void QGraphicsItem_SetParentItem(QGraphicsItem* self, QGraphicsItem* parent) { self->setParentItem(parent); } -struct miqt_array QGraphicsItem_ChildItems(const QGraphicsItem* self) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_ChildItems(const QGraphicsItem* self) { QList _ret = self->childItems(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -433,7 +433,7 @@ double QGraphicsItem_Scale(const QGraphicsItem* self) { return static_cast(_ret); } -struct miqt_array QGraphicsItem_Transformations(const QGraphicsItem* self) { +struct miqt_array /* of QGraphicsTransform* */ QGraphicsItem_Transformations(const QGraphicsItem* self) { QList _ret = self->transformations(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsTransform** _arr = static_cast(malloc(sizeof(QGraphicsTransform*) * _ret.length())); @@ -446,7 +446,7 @@ struct miqt_array QGraphicsItem_Transformations(const QGraphicsItem* self) { return _out; } -void QGraphicsItem_SetTransformations(QGraphicsItem* self, struct miqt_array /* of QGraphicsTransform* */ transformations) { +void QGraphicsItem_SetTransformations(QGraphicsItem* self, struct miqt_array /* of QGraphicsTransform* */ transformations) { QList transformations_QList; transformations_QList.reserve(transformations.len); QGraphicsTransform** transformations_arr = static_cast(transformations.data); @@ -521,7 +521,7 @@ bool QGraphicsItem_CollidesWithPath(const QGraphicsItem* self, QPainterPath* pat return self->collidesWithPath(*path); } -struct miqt_array QGraphicsItem_CollidingItems(const QGraphicsItem* self) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_CollidingItems(const QGraphicsItem* self) { QList _ret = self->collidingItems(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -788,7 +788,7 @@ bool QGraphicsItem_CollidesWithPath2(const QGraphicsItem* self, QPainterPath* pa return self->collidesWithPath(*path, static_cast(mode)); } -struct miqt_array QGraphicsItem_CollidingItems1(const QGraphicsItem* self, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_CollidingItems1(const QGraphicsItem* self, int mode) { QList _ret = self->collidingItems(static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); diff --git a/qt6/gen_qgraphicsitem.h b/qt6/gen_qgraphicsitem.h index 65c6432b..6c5bb0a0 100644 --- a/qt6/gen_qgraphicsitem.h +++ b/qt6/gen_qgraphicsitem.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSITEM_H -#define GEN_QGRAPHICSITEM_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRAPHICSITEM_H +#define MIQT_QT6_GEN_QGRAPHICSITEM_H #include #include @@ -98,7 +99,7 @@ QGraphicsWidget* QGraphicsItem_TopLevelWidget(const QGraphicsItem* self); QGraphicsWidget* QGraphicsItem_Window(const QGraphicsItem* self); QGraphicsItem* QGraphicsItem_Panel(const QGraphicsItem* self); void QGraphicsItem_SetParentItem(QGraphicsItem* self, QGraphicsItem* parent); -struct miqt_array QGraphicsItem_ChildItems(const QGraphicsItem* self); +struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_ChildItems(const QGraphicsItem* self); bool QGraphicsItem_IsWidget(const QGraphicsItem* self); bool QGraphicsItem_IsWindow(const QGraphicsItem* self); bool QGraphicsItem_IsPanel(const QGraphicsItem* self); @@ -180,8 +181,8 @@ void QGraphicsItem_SetRotation(QGraphicsItem* self, double angle); double QGraphicsItem_Rotation(const QGraphicsItem* self); void QGraphicsItem_SetScale(QGraphicsItem* self, double scale); double QGraphicsItem_Scale(const QGraphicsItem* self); -struct miqt_array QGraphicsItem_Transformations(const QGraphicsItem* self); -void QGraphicsItem_SetTransformations(QGraphicsItem* self, struct miqt_array /* of QGraphicsTransform* */ transformations); +struct miqt_array /* of QGraphicsTransform* */ QGraphicsItem_Transformations(const QGraphicsItem* self); +void QGraphicsItem_SetTransformations(QGraphicsItem* self, struct miqt_array /* of QGraphicsTransform* */ transformations); QPointF* QGraphicsItem_TransformOriginPoint(const QGraphicsItem* self); void QGraphicsItem_SetTransformOriginPoint(QGraphicsItem* self, QPointF* origin); void QGraphicsItem_SetTransformOriginPoint2(QGraphicsItem* self, double ax, double ay); @@ -198,7 +199,7 @@ QPainterPath* QGraphicsItem_ClipPath(const QGraphicsItem* self); bool QGraphicsItem_Contains(const QGraphicsItem* self, QPointF* point); bool QGraphicsItem_CollidesWithItem(const QGraphicsItem* self, QGraphicsItem* other); bool QGraphicsItem_CollidesWithPath(const QGraphicsItem* self, QPainterPath* path); -struct miqt_array QGraphicsItem_CollidingItems(const QGraphicsItem* self); +struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_CollidingItems(const QGraphicsItem* self); bool QGraphicsItem_IsObscured(const QGraphicsItem* self); bool QGraphicsItem_IsObscured2(const QGraphicsItem* self, double x, double y, double w, double h); bool QGraphicsItem_IsObscuredBy(const QGraphicsItem* self, QGraphicsItem* item); @@ -262,7 +263,7 @@ QTransform* QGraphicsItem_ItemTransform2(const QGraphicsItem* self, QGraphicsIte void QGraphicsItem_SetTransform2(QGraphicsItem* self, QTransform* matrix, bool combine); bool QGraphicsItem_CollidesWithItem2(const QGraphicsItem* self, QGraphicsItem* other, int mode); bool QGraphicsItem_CollidesWithPath2(const QGraphicsItem* self, QPainterPath* path, int mode); -struct miqt_array QGraphicsItem_CollidingItems1(const QGraphicsItem* self, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsItem_CollidingItems1(const QGraphicsItem* self, int mode); bool QGraphicsItem_IsObscured1(const QGraphicsItem* self, QRectF* rect); void QGraphicsItem_Paint3(QGraphicsItem* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget); void QGraphicsItem_Update1(QGraphicsItem* self, QRectF* rect); diff --git a/qt6/gen_qgraphicsitemanimation.cpp b/qt6/gen_qgraphicsitemanimation.cpp index 974619ff..9cd6a6f9 100644 --- a/qt6/gen_qgraphicsitemanimation.cpp +++ b/qt6/gen_qgraphicsitemanimation.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -59,6 +60,29 @@ QPointF* QGraphicsItemAnimation_PosAt(const QGraphicsItemAnimation* self, double return new QPointF(self->posAt(static_cast(step))); } +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_PosList(const QGraphicsItemAnimation* self) { + QList> _ret = self->posList(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of double and QPointF* */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of double and QPointF* */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + double* _lv_first_arr = static_cast(malloc(sizeof(double))); + QPointF** _lv_second_arr = static_cast(malloc(sizeof(QPointF*))); + _lv_first_arr[0] = _lv_ret.first; + _lv_second_arr[0] = new QPointF(_lv_ret.second); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + void QGraphicsItemAnimation_SetPosAt(QGraphicsItemAnimation* self, double step, QPointF* pos) { self->setPosAt(static_cast(step), *pos); } @@ -72,6 +96,29 @@ double QGraphicsItemAnimation_RotationAt(const QGraphicsItemAnimation* self, dou return static_cast(_ret); } +struct miqt_array /* of struct miqt_map tuple of double and double */ QGraphicsItemAnimation_RotationList(const QGraphicsItemAnimation* self) { + QList> _ret = self->rotationList(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of double and double */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of double and double */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + double* _lv_first_arr = static_cast(malloc(sizeof(double))); + double* _lv_second_arr = static_cast(malloc(sizeof(double))); + _lv_first_arr[0] = _lv_ret.first; + _lv_second_arr[0] = _lv_ret.second; + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + void QGraphicsItemAnimation_SetRotationAt(QGraphicsItemAnimation* self, double step, double angle) { self->setRotationAt(static_cast(step), static_cast(angle)); } @@ -86,6 +133,29 @@ double QGraphicsItemAnimation_YTranslationAt(const QGraphicsItemAnimation* self, return static_cast(_ret); } +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_TranslationList(const QGraphicsItemAnimation* self) { + QList> _ret = self->translationList(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of double and QPointF* */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of double and QPointF* */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + double* _lv_first_arr = static_cast(malloc(sizeof(double))); + QPointF** _lv_second_arr = static_cast(malloc(sizeof(QPointF*))); + _lv_first_arr[0] = _lv_ret.first; + _lv_second_arr[0] = new QPointF(_lv_ret.second); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + void QGraphicsItemAnimation_SetTranslationAt(QGraphicsItemAnimation* self, double step, double dx, double dy) { self->setTranslationAt(static_cast(step), static_cast(dx), static_cast(dy)); } @@ -100,6 +170,29 @@ double QGraphicsItemAnimation_HorizontalScaleAt(const QGraphicsItemAnimation* se return static_cast(_ret); } +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_ScaleList(const QGraphicsItemAnimation* self) { + QList> _ret = self->scaleList(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of double and QPointF* */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of double and QPointF* */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + double* _lv_first_arr = static_cast(malloc(sizeof(double))); + QPointF** _lv_second_arr = static_cast(malloc(sizeof(QPointF*))); + _lv_first_arr[0] = _lv_ret.first; + _lv_second_arr[0] = new QPointF(_lv_ret.second); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + void QGraphicsItemAnimation_SetScaleAt(QGraphicsItemAnimation* self, double step, double sx, double sy) { self->setScaleAt(static_cast(step), static_cast(sx), static_cast(sy)); } @@ -114,6 +207,29 @@ double QGraphicsItemAnimation_HorizontalShearAt(const QGraphicsItemAnimation* se return static_cast(_ret); } +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_ShearList(const QGraphicsItemAnimation* self) { + QList> _ret = self->shearList(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of double and QPointF* */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of double and QPointF* */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + double* _lv_first_arr = static_cast(malloc(sizeof(double))); + QPointF** _lv_second_arr = static_cast(malloc(sizeof(QPointF*))); + _lv_first_arr[0] = _lv_ret.first; + _lv_second_arr[0] = new QPointF(_lv_ret.second); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + void QGraphicsItemAnimation_SetShearAt(QGraphicsItemAnimation* self, double step, double sh, double sv) { self->setShearAt(static_cast(step), static_cast(sh), static_cast(sv)); } diff --git a/qt6/gen_qgraphicsitemanimation.go b/qt6/gen_qgraphicsitemanimation.go index 85a2419f..ff985a1d 100644 --- a/qt6/gen_qgraphicsitemanimation.go +++ b/qt6/gen_qgraphicsitemanimation.go @@ -97,6 +97,35 @@ func (this *QGraphicsItemAnimation) PosAt(step float64) *QPointF { return _goptr } +func (this *QGraphicsItemAnimation) PosList() []struct { + First float64 + Second QPointF +} { + var _ma C.struct_miqt_array = C.QGraphicsItemAnimation_PosList(this.h) + _ret := make([]struct { + First float64 + Second QPointF + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]*C.QPointF)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := (float64)(_lv_First_CArray[0]) + + _lv_second_ret := _lv_Second_CArray[0] + _lv_second_goptr := newQPointF(_lv_second_ret) + _lv_second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _lv_entry_Second := *_lv_second_goptr + + _ret[i] = struct { + First float64 + Second QPointF + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QGraphicsItemAnimation) SetPosAt(step float64, pos *QPointF) { C.QGraphicsItemAnimation_SetPosAt(this.h, (C.double)(step), pos.cPointer()) } @@ -112,6 +141,32 @@ func (this *QGraphicsItemAnimation) RotationAt(step float64) float64 { return (float64)(C.QGraphicsItemAnimation_RotationAt(this.h, (C.double)(step))) } +func (this *QGraphicsItemAnimation) RotationList() []struct { + First float64 + Second float64 +} { + var _ma C.struct_miqt_array = C.QGraphicsItemAnimation_RotationList(this.h) + _ret := make([]struct { + First float64 + Second float64 + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]C.double)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := (float64)(_lv_First_CArray[0]) + + _lv_entry_Second := (float64)(_lv_Second_CArray[0]) + + _ret[i] = struct { + First float64 + Second float64 + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QGraphicsItemAnimation) SetRotationAt(step float64, angle float64) { C.QGraphicsItemAnimation_SetRotationAt(this.h, (C.double)(step), (C.double)(angle)) } @@ -124,6 +179,35 @@ func (this *QGraphicsItemAnimation) YTranslationAt(step float64) float64 { return (float64)(C.QGraphicsItemAnimation_YTranslationAt(this.h, (C.double)(step))) } +func (this *QGraphicsItemAnimation) TranslationList() []struct { + First float64 + Second QPointF +} { + var _ma C.struct_miqt_array = C.QGraphicsItemAnimation_TranslationList(this.h) + _ret := make([]struct { + First float64 + Second QPointF + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]*C.QPointF)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := (float64)(_lv_First_CArray[0]) + + _lv_second_ret := _lv_Second_CArray[0] + _lv_second_goptr := newQPointF(_lv_second_ret) + _lv_second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _lv_entry_Second := *_lv_second_goptr + + _ret[i] = struct { + First float64 + Second QPointF + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QGraphicsItemAnimation) SetTranslationAt(step float64, dx float64, dy float64) { C.QGraphicsItemAnimation_SetTranslationAt(this.h, (C.double)(step), (C.double)(dx), (C.double)(dy)) } @@ -136,6 +220,35 @@ func (this *QGraphicsItemAnimation) HorizontalScaleAt(step float64) float64 { return (float64)(C.QGraphicsItemAnimation_HorizontalScaleAt(this.h, (C.double)(step))) } +func (this *QGraphicsItemAnimation) ScaleList() []struct { + First float64 + Second QPointF +} { + var _ma C.struct_miqt_array = C.QGraphicsItemAnimation_ScaleList(this.h) + _ret := make([]struct { + First float64 + Second QPointF + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]*C.QPointF)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := (float64)(_lv_First_CArray[0]) + + _lv_second_ret := _lv_Second_CArray[0] + _lv_second_goptr := newQPointF(_lv_second_ret) + _lv_second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _lv_entry_Second := *_lv_second_goptr + + _ret[i] = struct { + First float64 + Second QPointF + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QGraphicsItemAnimation) SetScaleAt(step float64, sx float64, sy float64) { C.QGraphicsItemAnimation_SetScaleAt(this.h, (C.double)(step), (C.double)(sx), (C.double)(sy)) } @@ -148,6 +261,35 @@ func (this *QGraphicsItemAnimation) HorizontalShearAt(step float64) float64 { return (float64)(C.QGraphicsItemAnimation_HorizontalShearAt(this.h, (C.double)(step))) } +func (this *QGraphicsItemAnimation) ShearList() []struct { + First float64 + Second QPointF +} { + var _ma C.struct_miqt_array = C.QGraphicsItemAnimation_ShearList(this.h) + _ret := make([]struct { + First float64 + Second QPointF + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]*C.QPointF)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := (float64)(_lv_First_CArray[0]) + + _lv_second_ret := _lv_Second_CArray[0] + _lv_second_goptr := newQPointF(_lv_second_ret) + _lv_second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _lv_entry_Second := *_lv_second_goptr + + _ret[i] = struct { + First float64 + Second QPointF + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QGraphicsItemAnimation) SetShearAt(step float64, sh float64, sv float64) { C.QGraphicsItemAnimation_SetShearAt(this.h, (C.double)(step), (C.double)(sh), (C.double)(sv)) } diff --git a/qt6/gen_qgraphicsitemanimation.h b/qt6/gen_qgraphicsitemanimation.h index 4b10c215..15fc04ac 100644 --- a/qt6/gen_qgraphicsitemanimation.h +++ b/qt6/gen_qgraphicsitemanimation.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSITEMANIMATION_H -#define GEN_QGRAPHICSITEMANIMATION_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRAPHICSITEMANIMATION_H +#define MIQT_QT6_GEN_QGRAPHICSITEMANIMATION_H #include #include @@ -41,18 +42,23 @@ void QGraphicsItemAnimation_SetItem(QGraphicsItemAnimation* self, QGraphicsItem* QTimeLine* QGraphicsItemAnimation_TimeLine(const QGraphicsItemAnimation* self); void QGraphicsItemAnimation_SetTimeLine(QGraphicsItemAnimation* self, QTimeLine* timeLine); QPointF* QGraphicsItemAnimation_PosAt(const QGraphicsItemAnimation* self, double step); +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_PosList(const QGraphicsItemAnimation* self); void QGraphicsItemAnimation_SetPosAt(QGraphicsItemAnimation* self, double step, QPointF* pos); QTransform* QGraphicsItemAnimation_TransformAt(const QGraphicsItemAnimation* self, double step); double QGraphicsItemAnimation_RotationAt(const QGraphicsItemAnimation* self, double step); +struct miqt_array /* of struct miqt_map tuple of double and double */ QGraphicsItemAnimation_RotationList(const QGraphicsItemAnimation* self); void QGraphicsItemAnimation_SetRotationAt(QGraphicsItemAnimation* self, double step, double angle); double QGraphicsItemAnimation_XTranslationAt(const QGraphicsItemAnimation* self, double step); double QGraphicsItemAnimation_YTranslationAt(const QGraphicsItemAnimation* self, double step); +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_TranslationList(const QGraphicsItemAnimation* self); void QGraphicsItemAnimation_SetTranslationAt(QGraphicsItemAnimation* self, double step, double dx, double dy); double QGraphicsItemAnimation_VerticalScaleAt(const QGraphicsItemAnimation* self, double step); double QGraphicsItemAnimation_HorizontalScaleAt(const QGraphicsItemAnimation* self, double step); +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_ScaleList(const QGraphicsItemAnimation* self); void QGraphicsItemAnimation_SetScaleAt(QGraphicsItemAnimation* self, double step, double sx, double sy); double QGraphicsItemAnimation_VerticalShearAt(const QGraphicsItemAnimation* self, double step); double QGraphicsItemAnimation_HorizontalShearAt(const QGraphicsItemAnimation* self, double step); +struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_ShearList(const QGraphicsItemAnimation* self); void QGraphicsItemAnimation_SetShearAt(QGraphicsItemAnimation* self, double step, double sh, double sv); void QGraphicsItemAnimation_Clear(QGraphicsItemAnimation* self); void QGraphicsItemAnimation_SetStep(QGraphicsItemAnimation* self, double x); diff --git a/qt6/gen_qgraphicslayout.h b/qt6/gen_qgraphicslayout.h index 6d86cee3..9432a69b 100644 --- a/qt6/gen_qgraphicslayout.h +++ b/qt6/gen_qgraphicslayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSLAYOUT_H -#define GEN_QGRAPHICSLAYOUT_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRAPHICSLAYOUT_H +#define MIQT_QT6_GEN_QGRAPHICSLAYOUT_H #include #include diff --git a/qt6/gen_qgraphicslayoutitem.h b/qt6/gen_qgraphicslayoutitem.h index 2324844a..03653bf9 100644 --- a/qt6/gen_qgraphicslayoutitem.h +++ b/qt6/gen_qgraphicslayoutitem.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSLAYOUTITEM_H -#define GEN_QGRAPHICSLAYOUTITEM_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRAPHICSLAYOUTITEM_H +#define MIQT_QT6_GEN_QGRAPHICSLAYOUTITEM_H #include #include diff --git a/qt6/gen_qgraphicslinearlayout.h b/qt6/gen_qgraphicslinearlayout.h index fbd39457..081572d3 100644 --- a/qt6/gen_qgraphicslinearlayout.h +++ b/qt6/gen_qgraphicslinearlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSLINEARLAYOUT_H -#define GEN_QGRAPHICSLINEARLAYOUT_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRAPHICSLINEARLAYOUT_H +#define MIQT_QT6_GEN_QGRAPHICSLINEARLAYOUT_H #include #include diff --git a/qt6/gen_qgraphicsproxywidget.h b/qt6/gen_qgraphicsproxywidget.h index aec985ff..cd516617 100644 --- a/qt6/gen_qgraphicsproxywidget.h +++ b/qt6/gen_qgraphicsproxywidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSPROXYWIDGET_H -#define GEN_QGRAPHICSPROXYWIDGET_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRAPHICSPROXYWIDGET_H +#define MIQT_QT6_GEN_QGRAPHICSPROXYWIDGET_H #include #include diff --git a/qt6/gen_qgraphicsscene.cpp b/qt6/gen_qgraphicsscene.cpp index 950e3e87..0999744b 100644 --- a/qt6/gen_qgraphicsscene.cpp +++ b/qt6/gen_qgraphicsscene.cpp @@ -126,7 +126,7 @@ QRectF* QGraphicsScene_ItemsBoundingRect(const QGraphicsScene* self) { return new QRectF(self->itemsBoundingRect()); } -struct miqt_array QGraphicsScene_Items(const QGraphicsScene* self) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items(const QGraphicsScene* self) { QList _ret = self->items(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -139,7 +139,7 @@ struct miqt_array QGraphicsScene_Items(const QGraphicsScene* self) { return _out; } -struct miqt_array QGraphicsScene_ItemsWithPos(const QGraphicsScene* self, QPointF* pos) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_ItemsWithPos(const QGraphicsScene* self, QPointF* pos) { QList _ret = self->items(*pos); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -152,7 +152,7 @@ struct miqt_array QGraphicsScene_ItemsWithPos(const QGraphicsScene* self, QPoint return _out; } -struct miqt_array QGraphicsScene_ItemsWithRect(const QGraphicsScene* self, QRectF* rect) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_ItemsWithRect(const QGraphicsScene* self, QRectF* rect) { QList _ret = self->items(*rect); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -165,7 +165,7 @@ struct miqt_array QGraphicsScene_ItemsWithRect(const QGraphicsScene* self, QRect return _out; } -struct miqt_array QGraphicsScene_ItemsWithPath(const QGraphicsScene* self, QPainterPath* path) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_ItemsWithPath(const QGraphicsScene* self, QPainterPath* path) { QList _ret = self->items(*path); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -178,7 +178,7 @@ struct miqt_array QGraphicsScene_ItemsWithPath(const QGraphicsScene* self, QPain return _out; } -struct miqt_array QGraphicsScene_Items2(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items2(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order) { QList _ret = self->items(static_cast(x), static_cast(y), static_cast(w), static_cast(h), static_cast(mode), static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -191,7 +191,7 @@ struct miqt_array QGraphicsScene_Items2(const QGraphicsScene* self, double x, do return _out; } -struct miqt_array QGraphicsScene_CollidingItems(const QGraphicsScene* self, QGraphicsItem* item) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_CollidingItems(const QGraphicsScene* self, QGraphicsItem* item) { QList _ret = self->collidingItems(item); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -212,7 +212,7 @@ QGraphicsItem* QGraphicsScene_ItemAt2(const QGraphicsScene* self, double x, doub return self->itemAt(static_cast(x), static_cast(y), *deviceTransform); } -struct miqt_array QGraphicsScene_SelectedItems(const QGraphicsScene* self) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_SelectedItems(const QGraphicsScene* self) { QList _ret = self->selectedItems(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -237,7 +237,7 @@ void QGraphicsScene_SetSelectionAreaWithPath(QGraphicsScene* self, QPainterPath* self->setSelectionArea(*path); } -QGraphicsItemGroup* QGraphicsScene_CreateItemGroup(QGraphicsScene* self, struct miqt_array /* of QGraphicsItem* */ items) { +QGraphicsItemGroup* QGraphicsScene_CreateItemGroup(QGraphicsScene* self, struct miqt_array /* of QGraphicsItem* */ items) { QList items_QList; items_QList.reserve(items.len); QGraphicsItem** items_arr = static_cast(items.data); @@ -357,7 +357,7 @@ QVariant* QGraphicsScene_InputMethodQuery(const QGraphicsScene* self, int query) return new QVariant(self->inputMethodQuery(static_cast(query))); } -struct miqt_array QGraphicsScene_Views(const QGraphicsScene* self) { +struct miqt_array /* of QGraphicsView* */ QGraphicsScene_Views(const QGraphicsScene* self) { QList _ret = self->views(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsView** _arr = static_cast(malloc(sizeof(QGraphicsView*) * _ret.length())); @@ -463,7 +463,7 @@ void QGraphicsScene_Clear(QGraphicsScene* self) { self->clear(); } -void QGraphicsScene_Changed(QGraphicsScene* self, struct miqt_array /* of QRectF* */ region) { +void QGraphicsScene_Changed(QGraphicsScene* self, struct miqt_array /* of QRectF* */ region) { QList region_QList; region_QList.reserve(region.len); QRectF** region_arr = static_cast(region.data); @@ -484,7 +484,7 @@ void QGraphicsScene_connect_Changed(QGraphicsScene* self, intptr_t slot) { struct miqt_array region_out; region_out.len = region_ret.length(); region_out.data = static_cast(region_arr); - struct miqt_array sigval1 = region_out; + struct miqt_array /* of QRectF* */ sigval1 = region_out; miqt_exec_callback_QGraphicsScene_Changed(slot, sigval1); }); } @@ -560,7 +560,7 @@ void QGraphicsScene_Render4(QGraphicsScene* self, QPainter* painter, QRectF* tar self->render(painter, *target, *source, static_cast(aspectRatioMode)); } -struct miqt_array QGraphicsScene_Items1(const QGraphicsScene* self, int order) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items1(const QGraphicsScene* self, int order) { QList _ret = self->items(static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -573,7 +573,7 @@ struct miqt_array QGraphicsScene_Items1(const QGraphicsScene* self, int order) { return _out; } -struct miqt_array QGraphicsScene_Items22(const QGraphicsScene* self, QPointF* pos, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items22(const QGraphicsScene* self, QPointF* pos, int mode) { QList _ret = self->items(*pos, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -586,7 +586,7 @@ struct miqt_array QGraphicsScene_Items22(const QGraphicsScene* self, QPointF* po return _out; } -struct miqt_array QGraphicsScene_Items3(const QGraphicsScene* self, QPointF* pos, int mode, int order) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items3(const QGraphicsScene* self, QPointF* pos, int mode, int order) { QList _ret = self->items(*pos, static_cast(mode), static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -599,7 +599,7 @@ struct miqt_array QGraphicsScene_Items3(const QGraphicsScene* self, QPointF* pos return _out; } -struct miqt_array QGraphicsScene_Items4(const QGraphicsScene* self, QPointF* pos, int mode, int order, QTransform* deviceTransform) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items4(const QGraphicsScene* self, QPointF* pos, int mode, int order, QTransform* deviceTransform) { QList _ret = self->items(*pos, static_cast(mode), static_cast(order), *deviceTransform); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -612,7 +612,7 @@ struct miqt_array QGraphicsScene_Items4(const QGraphicsScene* self, QPointF* pos return _out; } -struct miqt_array QGraphicsScene_Items23(const QGraphicsScene* self, QRectF* rect, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items23(const QGraphicsScene* self, QRectF* rect, int mode) { QList _ret = self->items(*rect, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -625,7 +625,7 @@ struct miqt_array QGraphicsScene_Items23(const QGraphicsScene* self, QRectF* rec return _out; } -struct miqt_array QGraphicsScene_Items32(const QGraphicsScene* self, QRectF* rect, int mode, int order) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items32(const QGraphicsScene* self, QRectF* rect, int mode, int order) { QList _ret = self->items(*rect, static_cast(mode), static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -638,7 +638,7 @@ struct miqt_array QGraphicsScene_Items32(const QGraphicsScene* self, QRectF* rec return _out; } -struct miqt_array QGraphicsScene_Items42(const QGraphicsScene* self, QRectF* rect, int mode, int order, QTransform* deviceTransform) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items42(const QGraphicsScene* self, QRectF* rect, int mode, int order, QTransform* deviceTransform) { QList _ret = self->items(*rect, static_cast(mode), static_cast(order), *deviceTransform); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -651,7 +651,7 @@ struct miqt_array QGraphicsScene_Items42(const QGraphicsScene* self, QRectF* rec return _out; } -struct miqt_array QGraphicsScene_Items25(const QGraphicsScene* self, QPainterPath* path, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items25(const QGraphicsScene* self, QPainterPath* path, int mode) { QList _ret = self->items(*path, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -664,7 +664,7 @@ struct miqt_array QGraphicsScene_Items25(const QGraphicsScene* self, QPainterPat return _out; } -struct miqt_array QGraphicsScene_Items34(const QGraphicsScene* self, QPainterPath* path, int mode, int order) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items34(const QGraphicsScene* self, QPainterPath* path, int mode, int order) { QList _ret = self->items(*path, static_cast(mode), static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -677,7 +677,7 @@ struct miqt_array QGraphicsScene_Items34(const QGraphicsScene* self, QPainterPat return _out; } -struct miqt_array QGraphicsScene_Items44(const QGraphicsScene* self, QPainterPath* path, int mode, int order, QTransform* deviceTransform) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items44(const QGraphicsScene* self, QPainterPath* path, int mode, int order, QTransform* deviceTransform) { QList _ret = self->items(*path, static_cast(mode), static_cast(order), *deviceTransform); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -690,7 +690,7 @@ struct miqt_array QGraphicsScene_Items44(const QGraphicsScene* self, QPainterPat return _out; } -struct miqt_array QGraphicsScene_Items7(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order, QTransform* deviceTransform) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items7(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order, QTransform* deviceTransform) { QList _ret = self->items(static_cast(x), static_cast(y), static_cast(w), static_cast(h), static_cast(mode), static_cast(order), *deviceTransform); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -703,7 +703,7 @@ struct miqt_array QGraphicsScene_Items7(const QGraphicsScene* self, double x, do return _out; } -struct miqt_array QGraphicsScene_CollidingItems2(const QGraphicsScene* self, QGraphicsItem* item, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_CollidingItems2(const QGraphicsScene* self, QGraphicsItem* item, int mode) { QList _ret = self->collidingItems(item, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); diff --git a/qt6/gen_qgraphicsscene.h b/qt6/gen_qgraphicsscene.h index 4908f016..71617791 100644 --- a/qt6/gen_qgraphicsscene.h +++ b/qt6/gen_qgraphicsscene.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSSCENE_H -#define GEN_QGRAPHICSSCENE_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRAPHICSSCENE_H +#define MIQT_QT6_GEN_QGRAPHICSSCENE_H #include #include @@ -97,19 +98,19 @@ void QGraphicsScene_SetItemIndexMethod(QGraphicsScene* self, int method); int QGraphicsScene_BspTreeDepth(const QGraphicsScene* self); void QGraphicsScene_SetBspTreeDepth(QGraphicsScene* self, int depth); QRectF* QGraphicsScene_ItemsBoundingRect(const QGraphicsScene* self); -struct miqt_array QGraphicsScene_Items(const QGraphicsScene* self); -struct miqt_array QGraphicsScene_ItemsWithPos(const QGraphicsScene* self, QPointF* pos); -struct miqt_array QGraphicsScene_ItemsWithRect(const QGraphicsScene* self, QRectF* rect); -struct miqt_array QGraphicsScene_ItemsWithPath(const QGraphicsScene* self, QPainterPath* path); -struct miqt_array QGraphicsScene_Items2(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order); -struct miqt_array QGraphicsScene_CollidingItems(const QGraphicsScene* self, QGraphicsItem* item); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items(const QGraphicsScene* self); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_ItemsWithPos(const QGraphicsScene* self, QPointF* pos); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_ItemsWithRect(const QGraphicsScene* self, QRectF* rect); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_ItemsWithPath(const QGraphicsScene* self, QPainterPath* path); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items2(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_CollidingItems(const QGraphicsScene* self, QGraphicsItem* item); QGraphicsItem* QGraphicsScene_ItemAt(const QGraphicsScene* self, QPointF* pos, QTransform* deviceTransform); QGraphicsItem* QGraphicsScene_ItemAt2(const QGraphicsScene* self, double x, double y, QTransform* deviceTransform); -struct miqt_array QGraphicsScene_SelectedItems(const QGraphicsScene* self); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_SelectedItems(const QGraphicsScene* self); QPainterPath* QGraphicsScene_SelectionArea(const QGraphicsScene* self); void QGraphicsScene_SetSelectionArea(QGraphicsScene* self, QPainterPath* path, QTransform* deviceTransform); void QGraphicsScene_SetSelectionAreaWithPath(QGraphicsScene* self, QPainterPath* path); -QGraphicsItemGroup* QGraphicsScene_CreateItemGroup(QGraphicsScene* self, struct miqt_array /* of QGraphicsItem* */ items); +QGraphicsItemGroup* QGraphicsScene_CreateItemGroup(QGraphicsScene* self, struct miqt_array /* of QGraphicsItem* */ items); void QGraphicsScene_DestroyItemGroup(QGraphicsScene* self, QGraphicsItemGroup* group); void QGraphicsScene_AddItem(QGraphicsScene* self, QGraphicsItem* item); QGraphicsEllipseItem* QGraphicsScene_AddEllipse(QGraphicsScene* self, QRectF* rect); @@ -137,7 +138,7 @@ void QGraphicsScene_SetBackgroundBrush(QGraphicsScene* self, QBrush* brush); QBrush* QGraphicsScene_ForegroundBrush(const QGraphicsScene* self); void QGraphicsScene_SetForegroundBrush(QGraphicsScene* self, QBrush* brush); QVariant* QGraphicsScene_InputMethodQuery(const QGraphicsScene* self, int query); -struct miqt_array QGraphicsScene_Views(const QGraphicsScene* self); +struct miqt_array /* of QGraphicsView* */ QGraphicsScene_Views(const QGraphicsScene* self); void QGraphicsScene_Update(QGraphicsScene* self, double x, double y, double w, double h); void QGraphicsScene_Invalidate(QGraphicsScene* self, double x, double y, double w, double h); QStyle* QGraphicsScene_Style(const QGraphicsScene* self); @@ -161,7 +162,7 @@ void QGraphicsScene_Invalidate2(QGraphicsScene* self); void QGraphicsScene_Advance(QGraphicsScene* self); void QGraphicsScene_ClearSelection(QGraphicsScene* self); void QGraphicsScene_Clear(QGraphicsScene* self); -void QGraphicsScene_Changed(QGraphicsScene* self, struct miqt_array /* of QRectF* */ region); +void QGraphicsScene_Changed(QGraphicsScene* self, struct miqt_array /* of QRectF* */ region); void QGraphicsScene_connect_Changed(QGraphicsScene* self, intptr_t slot); void QGraphicsScene_SceneRectChanged(QGraphicsScene* self, QRectF* rect); void QGraphicsScene_connect_SceneRectChanged(QGraphicsScene* self, intptr_t slot); @@ -174,18 +175,18 @@ struct miqt_string QGraphicsScene_Tr3(const char* s, const char* c, int n); void QGraphicsScene_Render2(QGraphicsScene* self, QPainter* painter, QRectF* target); void QGraphicsScene_Render3(QGraphicsScene* self, QPainter* painter, QRectF* target, QRectF* source); void QGraphicsScene_Render4(QGraphicsScene* self, QPainter* painter, QRectF* target, QRectF* source, int aspectRatioMode); -struct miqt_array QGraphicsScene_Items1(const QGraphicsScene* self, int order); -struct miqt_array QGraphicsScene_Items22(const QGraphicsScene* self, QPointF* pos, int mode); -struct miqt_array QGraphicsScene_Items3(const QGraphicsScene* self, QPointF* pos, int mode, int order); -struct miqt_array QGraphicsScene_Items4(const QGraphicsScene* self, QPointF* pos, int mode, int order, QTransform* deviceTransform); -struct miqt_array QGraphicsScene_Items23(const QGraphicsScene* self, QRectF* rect, int mode); -struct miqt_array QGraphicsScene_Items32(const QGraphicsScene* self, QRectF* rect, int mode, int order); -struct miqt_array QGraphicsScene_Items42(const QGraphicsScene* self, QRectF* rect, int mode, int order, QTransform* deviceTransform); -struct miqt_array QGraphicsScene_Items25(const QGraphicsScene* self, QPainterPath* path, int mode); -struct miqt_array QGraphicsScene_Items34(const QGraphicsScene* self, QPainterPath* path, int mode, int order); -struct miqt_array QGraphicsScene_Items44(const QGraphicsScene* self, QPainterPath* path, int mode, int order, QTransform* deviceTransform); -struct miqt_array QGraphicsScene_Items7(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order, QTransform* deviceTransform); -struct miqt_array QGraphicsScene_CollidingItems2(const QGraphicsScene* self, QGraphicsItem* item, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items1(const QGraphicsScene* self, int order); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items22(const QGraphicsScene* self, QPointF* pos, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items3(const QGraphicsScene* self, QPointF* pos, int mode, int order); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items4(const QGraphicsScene* self, QPointF* pos, int mode, int order, QTransform* deviceTransform); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items23(const QGraphicsScene* self, QRectF* rect, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items32(const QGraphicsScene* self, QRectF* rect, int mode, int order); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items42(const QGraphicsScene* self, QRectF* rect, int mode, int order, QTransform* deviceTransform); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items25(const QGraphicsScene* self, QPainterPath* path, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items34(const QGraphicsScene* self, QPainterPath* path, int mode, int order); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items44(const QGraphicsScene* self, QPainterPath* path, int mode, int order, QTransform* deviceTransform); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_Items7(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order, QTransform* deviceTransform); +struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_CollidingItems2(const QGraphicsScene* self, QGraphicsItem* item, int mode); void QGraphicsScene_SetSelectionArea2(QGraphicsScene* self, QPainterPath* path, int selectionOperation); void QGraphicsScene_SetSelectionArea3(QGraphicsScene* self, QPainterPath* path, int selectionOperation, int mode); void QGraphicsScene_SetSelectionArea4(QGraphicsScene* self, QPainterPath* path, int selectionOperation, int mode, QTransform* deviceTransform); diff --git a/qt6/gen_qgraphicssceneevent.h b/qt6/gen_qgraphicssceneevent.h index 0b3b622b..bf5d449d 100644 --- a/qt6/gen_qgraphicssceneevent.h +++ b/qt6/gen_qgraphicssceneevent.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSSCENEEVENT_H -#define GEN_QGRAPHICSSCENEEVENT_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRAPHICSSCENEEVENT_H +#define MIQT_QT6_GEN_QGRAPHICSSCENEEVENT_H #include #include diff --git a/qt6/gen_qgraphicstransform.h b/qt6/gen_qgraphicstransform.h index d14ab751..71c86ba0 100644 --- a/qt6/gen_qgraphicstransform.h +++ b/qt6/gen_qgraphicstransform.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSTRANSFORM_H -#define GEN_QGRAPHICSTRANSFORM_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRAPHICSTRANSFORM_H +#define MIQT_QT6_GEN_QGRAPHICSTRANSFORM_H #include #include diff --git a/qt6/gen_qgraphicsview.cpp b/qt6/gen_qgraphicsview.cpp index 6cb54810..4c5fb51f 100644 --- a/qt6/gen_qgraphicsview.cpp +++ b/qt6/gen_qgraphicsview.cpp @@ -261,7 +261,7 @@ void QGraphicsView_Render(QGraphicsView* self, QPainter* painter) { self->render(painter); } -struct miqt_array QGraphicsView_Items(const QGraphicsView* self) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items(const QGraphicsView* self) { QList _ret = self->items(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -274,7 +274,7 @@ struct miqt_array QGraphicsView_Items(const QGraphicsView* self) { return _out; } -struct miqt_array QGraphicsView_ItemsWithPos(const QGraphicsView* self, QPoint* pos) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_ItemsWithPos(const QGraphicsView* self, QPoint* pos) { QList _ret = self->items(*pos); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -287,7 +287,7 @@ struct miqt_array QGraphicsView_ItemsWithPos(const QGraphicsView* self, QPoint* return _out; } -struct miqt_array QGraphicsView_Items2(const QGraphicsView* self, int x, int y) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items2(const QGraphicsView* self, int x, int y) { QList _ret = self->items(static_cast(x), static_cast(y)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -300,7 +300,7 @@ struct miqt_array QGraphicsView_Items2(const QGraphicsView* self, int x, int y) return _out; } -struct miqt_array QGraphicsView_ItemsWithRect(const QGraphicsView* self, QRect* rect) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_ItemsWithRect(const QGraphicsView* self, QRect* rect) { QList _ret = self->items(*rect); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -313,7 +313,7 @@ struct miqt_array QGraphicsView_ItemsWithRect(const QGraphicsView* self, QRect* return _out; } -struct miqt_array QGraphicsView_Items3(const QGraphicsView* self, int x, int y, int w, int h) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items3(const QGraphicsView* self, int x, int y, int w, int h) { QList _ret = self->items(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -326,7 +326,7 @@ struct miqt_array QGraphicsView_Items3(const QGraphicsView* self, int x, int y, return _out; } -struct miqt_array QGraphicsView_ItemsWithPath(const QGraphicsView* self, QPainterPath* path) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_ItemsWithPath(const QGraphicsView* self, QPainterPath* path) { QList _ret = self->items(*path); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -391,7 +391,7 @@ void QGraphicsView_SetForegroundBrush(QGraphicsView* self, QBrush* brush) { self->setForegroundBrush(*brush); } -void QGraphicsView_UpdateScene(QGraphicsView* self, struct miqt_array /* of QRectF* */ rects) { +void QGraphicsView_UpdateScene(QGraphicsView* self, struct miqt_array /* of QRectF* */ rects) { QList rects_QList; rects_QList.reserve(rects.len); QRectF** rects_arr = static_cast(rects.data); @@ -504,7 +504,7 @@ void QGraphicsView_Render4(QGraphicsView* self, QPainter* painter, QRectF* targe self->render(painter, *target, *source, static_cast(aspectRatioMode)); } -struct miqt_array QGraphicsView_Items22(const QGraphicsView* self, QRect* rect, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items22(const QGraphicsView* self, QRect* rect, int mode) { QList _ret = self->items(*rect, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -517,7 +517,7 @@ struct miqt_array QGraphicsView_Items22(const QGraphicsView* self, QRect* rect, return _out; } -struct miqt_array QGraphicsView_Items5(const QGraphicsView* self, int x, int y, int w, int h, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items5(const QGraphicsView* self, int x, int y, int w, int h, int mode) { QList _ret = self->items(static_cast(x), static_cast(y), static_cast(w), static_cast(h), static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); @@ -530,7 +530,7 @@ struct miqt_array QGraphicsView_Items5(const QGraphicsView* self, int x, int y, return _out; } -struct miqt_array QGraphicsView_Items24(const QGraphicsView* self, QPainterPath* path, int mode) { +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items24(const QGraphicsView* self, QPainterPath* path, int mode) { QList _ret = self->items(*path, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); diff --git a/qt6/gen_qgraphicsview.h b/qt6/gen_qgraphicsview.h index e8367890..f4116a36 100644 --- a/qt6/gen_qgraphicsview.h +++ b/qt6/gen_qgraphicsview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSVIEW_H -#define GEN_QGRAPHICSVIEW_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRAPHICSVIEW_H +#define MIQT_QT6_GEN_QGRAPHICSVIEW_H #include #include @@ -103,12 +104,12 @@ void QGraphicsView_FitInView(QGraphicsView* self, QRectF* rect); void QGraphicsView_FitInView2(QGraphicsView* self, double x, double y, double w, double h); void QGraphicsView_FitInViewWithItem(QGraphicsView* self, QGraphicsItem* item); void QGraphicsView_Render(QGraphicsView* self, QPainter* painter); -struct miqt_array QGraphicsView_Items(const QGraphicsView* self); -struct miqt_array QGraphicsView_ItemsWithPos(const QGraphicsView* self, QPoint* pos); -struct miqt_array QGraphicsView_Items2(const QGraphicsView* self, int x, int y); -struct miqt_array QGraphicsView_ItemsWithRect(const QGraphicsView* self, QRect* rect); -struct miqt_array QGraphicsView_Items3(const QGraphicsView* self, int x, int y, int w, int h); -struct miqt_array QGraphicsView_ItemsWithPath(const QGraphicsView* self, QPainterPath* path); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items(const QGraphicsView* self); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_ItemsWithPos(const QGraphicsView* self, QPoint* pos); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items2(const QGraphicsView* self, int x, int y); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_ItemsWithRect(const QGraphicsView* self, QRect* rect); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items3(const QGraphicsView* self, int x, int y, int w, int h); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_ItemsWithPath(const QGraphicsView* self, QPainterPath* path); QGraphicsItem* QGraphicsView_ItemAt(const QGraphicsView* self, QPoint* pos); QGraphicsItem* QGraphicsView_ItemAt2(const QGraphicsView* self, int x, int y); QPointF* QGraphicsView_MapToScene(const QGraphicsView* self, QPoint* point); @@ -122,7 +123,7 @@ QBrush* QGraphicsView_BackgroundBrush(const QGraphicsView* self); void QGraphicsView_SetBackgroundBrush(QGraphicsView* self, QBrush* brush); QBrush* QGraphicsView_ForegroundBrush(const QGraphicsView* self); void QGraphicsView_SetForegroundBrush(QGraphicsView* self, QBrush* brush); -void QGraphicsView_UpdateScene(QGraphicsView* self, struct miqt_array /* of QRectF* */ rects); +void QGraphicsView_UpdateScene(QGraphicsView* self, struct miqt_array /* of QRectF* */ rects); void QGraphicsView_InvalidateScene(QGraphicsView* self); void QGraphicsView_UpdateSceneRect(QGraphicsView* self, QRectF* rect); void QGraphicsView_RubberBandChanged(QGraphicsView* self, QRect* viewportRect, QPointF* fromScenePoint, QPointF* toScenePoint); @@ -144,9 +145,9 @@ void QGraphicsView_FitInView23(QGraphicsView* self, QGraphicsItem* item, int asp void QGraphicsView_Render2(QGraphicsView* self, QPainter* painter, QRectF* target); void QGraphicsView_Render3(QGraphicsView* self, QPainter* painter, QRectF* target, QRect* source); void QGraphicsView_Render4(QGraphicsView* self, QPainter* painter, QRectF* target, QRect* source, int aspectRatioMode); -struct miqt_array QGraphicsView_Items22(const QGraphicsView* self, QRect* rect, int mode); -struct miqt_array QGraphicsView_Items5(const QGraphicsView* self, int x, int y, int w, int h, int mode); -struct miqt_array QGraphicsView_Items24(const QGraphicsView* self, QPainterPath* path, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items22(const QGraphicsView* self, QRect* rect, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items5(const QGraphicsView* self, int x, int y, int w, int h, int mode); +struct miqt_array /* of QGraphicsItem* */ QGraphicsView_Items24(const QGraphicsView* self, QPainterPath* path, int mode); void QGraphicsView_InvalidateScene1(QGraphicsView* self, QRectF* rect); void QGraphicsView_InvalidateScene2(QGraphicsView* self, QRectF* rect, int layers); void QGraphicsView_Delete(QGraphicsView* self); diff --git a/qt6/gen_qgraphicswidget.cpp b/qt6/gen_qgraphicswidget.cpp index 75c4f335..1f8111d7 100644 --- a/qt6/gen_qgraphicswidget.cpp +++ b/qt6/gen_qgraphicswidget.cpp @@ -241,7 +241,7 @@ void QGraphicsWidget_AddAction(QGraphicsWidget* self, QAction* action) { self->addAction(action); } -void QGraphicsWidget_AddActions(QGraphicsWidget* self, struct miqt_array /* of QAction* */ actions) { +void QGraphicsWidget_AddActions(QGraphicsWidget* self, struct miqt_array /* of QAction* */ actions) { QList actions_QList; actions_QList.reserve(actions.len); QAction** actions_arr = static_cast(actions.data); @@ -251,7 +251,7 @@ void QGraphicsWidget_AddActions(QGraphicsWidget* self, struct miqt_array /* of Q self->addActions(actions_QList); } -void QGraphicsWidget_InsertActions(QGraphicsWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions) { +void QGraphicsWidget_InsertActions(QGraphicsWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions) { QList actions_QList; actions_QList.reserve(actions.len); QAction** actions_arr = static_cast(actions.data); @@ -269,7 +269,7 @@ void QGraphicsWidget_RemoveAction(QGraphicsWidget* self, QAction* action) { self->removeAction(action); } -struct miqt_array QGraphicsWidget_Actions(const QGraphicsWidget* self) { +struct miqt_array /* of QAction* */ QGraphicsWidget_Actions(const QGraphicsWidget* self) { QList _ret = self->actions(); // Convert QList<> from C++ memory to manually-managed C memory QAction** _arr = static_cast(malloc(sizeof(QAction*) * _ret.length())); diff --git a/qt6/gen_qgraphicswidget.h b/qt6/gen_qgraphicswidget.h index 2cff4349..141f501e 100644 --- a/qt6/gen_qgraphicswidget.h +++ b/qt6/gen_qgraphicswidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSWIDGET_H -#define GEN_QGRAPHICSWIDGET_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRAPHICSWIDGET_H +#define MIQT_QT6_GEN_QGRAPHICSWIDGET_H #include #include @@ -99,11 +100,11 @@ void QGraphicsWidget_ReleaseShortcut(QGraphicsWidget* self, int id); void QGraphicsWidget_SetShortcutEnabled(QGraphicsWidget* self, int id); void QGraphicsWidget_SetShortcutAutoRepeat(QGraphicsWidget* self, int id); void QGraphicsWidget_AddAction(QGraphicsWidget* self, QAction* action); -void QGraphicsWidget_AddActions(QGraphicsWidget* self, struct miqt_array /* of QAction* */ actions); -void QGraphicsWidget_InsertActions(QGraphicsWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions); +void QGraphicsWidget_AddActions(QGraphicsWidget* self, struct miqt_array /* of QAction* */ actions); +void QGraphicsWidget_InsertActions(QGraphicsWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions); void QGraphicsWidget_InsertAction(QGraphicsWidget* self, QAction* before, QAction* action); void QGraphicsWidget_RemoveAction(QGraphicsWidget* self, QAction* action); -struct miqt_array QGraphicsWidget_Actions(const QGraphicsWidget* self); +struct miqt_array /* of QAction* */ QGraphicsWidget_Actions(const QGraphicsWidget* self); void QGraphicsWidget_SetAttribute(QGraphicsWidget* self, int attribute); bool QGraphicsWidget_TestAttribute(const QGraphicsWidget* self, int attribute); int QGraphicsWidget_Type(const QGraphicsWidget* self); diff --git a/qt6/gen_qgridlayout.h b/qt6/gen_qgridlayout.h index 9eb2b989..3a5b5465 100644 --- a/qt6/gen_qgridlayout.h +++ b/qt6/gen_qgridlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRIDLAYOUT_H -#define GEN_QGRIDLAYOUT_H +#pragma once +#ifndef MIQT_QT6_GEN_QGRIDLAYOUT_H +#define MIQT_QT6_GEN_QGRIDLAYOUT_H #include #include diff --git a/qt6/gen_qgroupbox.h b/qt6/gen_qgroupbox.h index 88ec32e7..e74ee993 100644 --- a/qt6/gen_qgroupbox.h +++ b/qt6/gen_qgroupbox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGROUPBOX_H -#define GEN_QGROUPBOX_H +#pragma once +#ifndef MIQT_QT6_GEN_QGROUPBOX_H +#define MIQT_QT6_GEN_QGROUPBOX_H #include #include diff --git a/qt6/gen_qguiapplication.cpp b/qt6/gen_qguiapplication.cpp index c129f5b2..e92b146a 100644 --- a/qt6/gen_qguiapplication.cpp +++ b/qt6/gen_qguiapplication.cpp @@ -80,7 +80,7 @@ struct miqt_string QGuiApplication_DesktopFileName() { return _ms; } -struct miqt_array QGuiApplication_AllWindows() { +struct miqt_array /* of QWindow* */ QGuiApplication_AllWindows() { QWindowList _ret = QGuiApplication::allWindows(); // Convert QList<> from C++ memory to manually-managed C memory QWindow** _arr = static_cast(malloc(sizeof(QWindow*) * _ret.length())); @@ -93,7 +93,7 @@ struct miqt_array QGuiApplication_AllWindows() { return _out; } -struct miqt_array QGuiApplication_TopLevelWindows() { +struct miqt_array /* of QWindow* */ QGuiApplication_TopLevelWindows() { QWindowList _ret = QGuiApplication::topLevelWindows(); // Convert QList<> from C++ memory to manually-managed C memory QWindow** _arr = static_cast(malloc(sizeof(QWindow*) * _ret.length())); @@ -145,7 +145,7 @@ QScreen* QGuiApplication_PrimaryScreen() { return QGuiApplication::primaryScreen(); } -struct miqt_array QGuiApplication_Screens() { +struct miqt_array /* of QScreen* */ QGuiApplication_Screens() { QList _ret = QGuiApplication::screens(); // Convert QList<> from C++ memory to manually-managed C memory QScreen** _arr = static_cast(malloc(sizeof(QScreen*) * _ret.length())); diff --git a/qt6/gen_qguiapplication.h b/qt6/gen_qguiapplication.h index a8716c14..421cf43e 100644 --- a/qt6/gen_qguiapplication.h +++ b/qt6/gen_qguiapplication.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGUIAPPLICATION_H -#define GEN_QGUIAPPLICATION_H +#pragma once +#ifndef MIQT_QT6_GEN_QGUIAPPLICATION_H +#define MIQT_QT6_GEN_QGUIAPPLICATION_H #include #include @@ -56,8 +57,8 @@ void QGuiApplication_SetApplicationDisplayName(struct miqt_string name); struct miqt_string QGuiApplication_ApplicationDisplayName(); void QGuiApplication_SetDesktopFileName(struct miqt_string name); struct miqt_string QGuiApplication_DesktopFileName(); -struct miqt_array QGuiApplication_AllWindows(); -struct miqt_array QGuiApplication_TopLevelWindows(); +struct miqt_array /* of QWindow* */ QGuiApplication_AllWindows(); +struct miqt_array /* of QWindow* */ QGuiApplication_TopLevelWindows(); QWindow* QGuiApplication_TopLevelAt(QPoint* pos); void QGuiApplication_SetWindowIcon(QIcon* icon); QIcon* QGuiApplication_WindowIcon(); @@ -66,7 +67,7 @@ QWindow* QGuiApplication_ModalWindow(); QWindow* QGuiApplication_FocusWindow(); QObject* QGuiApplication_FocusObject(); QScreen* QGuiApplication_PrimaryScreen(); -struct miqt_array QGuiApplication_Screens(); +struct miqt_array /* of QScreen* */ QGuiApplication_Screens(); QScreen* QGuiApplication_ScreenAt(QPoint* point); double QGuiApplication_DevicePixelRatio(const QGuiApplication* self); QCursor* QGuiApplication_OverrideCursor(); diff --git a/qt6/gen_qhashfunctions.h b/qt6/gen_qhashfunctions.h index ec3da366..97c85f2d 100644 --- a/qt6/gen_qhashfunctions.h +++ b/qt6/gen_qhashfunctions.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHASHFUNCTIONS_H -#define GEN_QHASHFUNCTIONS_H +#pragma once +#ifndef MIQT_QT6_GEN_QHASHFUNCTIONS_H +#define MIQT_QT6_GEN_QHASHFUNCTIONS_H #include #include diff --git a/qt6/gen_qheaderview.h b/qt6/gen_qheaderview.h index a2535a6c..1cbb729e 100644 --- a/qt6/gen_qheaderview.h +++ b/qt6/gen_qheaderview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHEADERVIEW_H -#define GEN_QHEADERVIEW_H +#pragma once +#ifndef MIQT_QT6_GEN_QHEADERVIEW_H +#define MIQT_QT6_GEN_QHEADERVIEW_H #include #include diff --git a/qt6/gen_qicon.cpp b/qt6/gen_qicon.cpp index 6761ef80..1fc85a3c 100644 --- a/qt6/gen_qicon.cpp +++ b/qt6/gen_qicon.cpp @@ -115,7 +115,7 @@ void QIcon_AddFile(QIcon* self, struct miqt_string fileName) { self->addFile(fileName_QString); } -struct miqt_array QIcon_AvailableSizes(const QIcon* self) { +struct miqt_array /* of QSize* */ QIcon_AvailableSizes(const QIcon* self) { QList _ret = self->availableSizes(); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -151,7 +151,7 @@ bool QIcon_HasThemeIcon(struct miqt_string name) { return QIcon::hasThemeIcon(name_QString); } -struct miqt_array QIcon_ThemeSearchPaths() { +struct miqt_array /* of struct miqt_string */ QIcon_ThemeSearchPaths() { QStringList _ret = QIcon::themeSearchPaths(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -171,7 +171,7 @@ struct miqt_array QIcon_ThemeSearchPaths() { return _out; } -void QIcon_SetThemeSearchPaths(struct miqt_array /* of struct miqt_string */ searchpath) { +void QIcon_SetThemeSearchPaths(struct miqt_array /* of struct miqt_string */ searchpath) { QStringList searchpath_QList; searchpath_QList.reserve(searchpath.len); struct miqt_string* searchpath_arr = static_cast(searchpath.data); @@ -182,7 +182,7 @@ void QIcon_SetThemeSearchPaths(struct miqt_array /* of struct miqt_string */ sea QIcon::setThemeSearchPaths(searchpath_QList); } -struct miqt_array QIcon_FallbackSearchPaths() { +struct miqt_array /* of struct miqt_string */ QIcon_FallbackSearchPaths() { QStringList _ret = QIcon::fallbackSearchPaths(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -202,7 +202,7 @@ struct miqt_array QIcon_FallbackSearchPaths() { return _out; } -void QIcon_SetFallbackSearchPaths(struct miqt_array /* of struct miqt_string */ paths) { +void QIcon_SetFallbackSearchPaths(struct miqt_array /* of struct miqt_string */ paths) { QStringList paths_QList; paths_QList.reserve(paths.len); struct miqt_string* paths_arr = static_cast(paths.data); @@ -348,7 +348,7 @@ void QIcon_AddFile4(QIcon* self, struct miqt_string fileName, QSize* size, int m self->addFile(fileName_QString, *size, static_cast(mode), static_cast(state)); } -struct miqt_array QIcon_AvailableSizes1(const QIcon* self, int mode) { +struct miqt_array /* of QSize* */ QIcon_AvailableSizes1(const QIcon* self, int mode) { QList _ret = self->availableSizes(static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -361,7 +361,7 @@ struct miqt_array QIcon_AvailableSizes1(const QIcon* self, int mode) { return _out; } -struct miqt_array QIcon_AvailableSizes2(const QIcon* self, int mode, int state) { +struct miqt_array /* of QSize* */ QIcon_AvailableSizes2(const QIcon* self, int mode, int state) { QList _ret = self->availableSizes(static_cast(mode), static_cast(state)); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); diff --git a/qt6/gen_qicon.h b/qt6/gen_qicon.h index c53d8c15..cc5f34e0 100644 --- a/qt6/gen_qicon.h +++ b/qt6/gen_qicon.h @@ -1,5 +1,6 @@ -#ifndef GEN_QICON_H -#define GEN_QICON_H +#pragma once +#ifndef MIQT_QT6_GEN_QICON_H +#define MIQT_QT6_GEN_QICON_H #include #include @@ -54,16 +55,16 @@ void QIcon_Detach(QIcon* self); long long QIcon_CacheKey(const QIcon* self); void QIcon_AddPixmap(QIcon* self, QPixmap* pixmap); void QIcon_AddFile(QIcon* self, struct miqt_string fileName); -struct miqt_array QIcon_AvailableSizes(const QIcon* self); +struct miqt_array /* of QSize* */ QIcon_AvailableSizes(const QIcon* self); void QIcon_SetIsMask(QIcon* self, bool isMask); bool QIcon_IsMask(const QIcon* self); QIcon* QIcon_FromTheme(struct miqt_string name); QIcon* QIcon_FromTheme2(struct miqt_string name, QIcon* fallback); bool QIcon_HasThemeIcon(struct miqt_string name); -struct miqt_array QIcon_ThemeSearchPaths(); -void QIcon_SetThemeSearchPaths(struct miqt_array /* of struct miqt_string */ searchpath); -struct miqt_array QIcon_FallbackSearchPaths(); -void QIcon_SetFallbackSearchPaths(struct miqt_array /* of struct miqt_string */ paths); +struct miqt_array /* of struct miqt_string */ QIcon_ThemeSearchPaths(); +void QIcon_SetThemeSearchPaths(struct miqt_array /* of struct miqt_string */ searchpath); +struct miqt_array /* of struct miqt_string */ QIcon_FallbackSearchPaths(); +void QIcon_SetFallbackSearchPaths(struct miqt_array /* of struct miqt_string */ paths); struct miqt_string QIcon_ThemeName(); void QIcon_SetThemeName(struct miqt_string path); struct miqt_string QIcon_FallbackThemeName(); @@ -93,8 +94,8 @@ void QIcon_AddPixmap3(QIcon* self, QPixmap* pixmap, int mode, int state); void QIcon_AddFile2(QIcon* self, struct miqt_string fileName, QSize* size); void QIcon_AddFile3(QIcon* self, struct miqt_string fileName, QSize* size, int mode); void QIcon_AddFile4(QIcon* self, struct miqt_string fileName, QSize* size, int mode, int state); -struct miqt_array QIcon_AvailableSizes1(const QIcon* self, int mode); -struct miqt_array QIcon_AvailableSizes2(const QIcon* self, int mode, int state); +struct miqt_array /* of QSize* */ QIcon_AvailableSizes1(const QIcon* self, int mode); +struct miqt_array /* of QSize* */ QIcon_AvailableSizes2(const QIcon* self, int mode, int state); void QIcon_Delete(QIcon* self); #ifdef __cplusplus diff --git a/qt6/gen_qiconengine.cpp b/qt6/gen_qiconengine.cpp index 805229c3..0d74da9e 100644 --- a/qt6/gen_qiconengine.cpp +++ b/qt6/gen_qiconengine.cpp @@ -57,7 +57,7 @@ bool QIconEngine_Write(const QIconEngine* self, QDataStream* out) { return self->write(*out); } -struct miqt_array QIconEngine_AvailableSizes(QIconEngine* self) { +struct miqt_array /* of QSize* */ QIconEngine_AvailableSizes(QIconEngine* self) { QList _ret = self->availableSizes(); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -93,7 +93,7 @@ void QIconEngine_VirtualHook(QIconEngine* self, int id, void* data) { self->virtual_hook(static_cast(id), data); } -struct miqt_array QIconEngine_AvailableSizes1(QIconEngine* self, int mode) { +struct miqt_array /* of QSize* */ QIconEngine_AvailableSizes1(QIconEngine* self, int mode) { QList _ret = self->availableSizes(static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -106,7 +106,7 @@ struct miqt_array QIconEngine_AvailableSizes1(QIconEngine* self, int mode) { return _out; } -struct miqt_array QIconEngine_AvailableSizes2(QIconEngine* self, int mode, int state) { +struct miqt_array /* of QSize* */ QIconEngine_AvailableSizes2(QIconEngine* self, int mode, int state) { QList _ret = self->availableSizes(static_cast(mode), static_cast(state)); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); diff --git a/qt6/gen_qiconengine.h b/qt6/gen_qiconengine.h index b68bf90a..635f5363 100644 --- a/qt6/gen_qiconengine.h +++ b/qt6/gen_qiconengine.h @@ -1,5 +1,6 @@ -#ifndef GEN_QICONENGINE_H -#define GEN_QICONENGINE_H +#pragma once +#ifndef MIQT_QT6_GEN_QICONENGINE_H +#define MIQT_QT6_GEN_QICONENGINE_H #include #include @@ -44,13 +45,13 @@ struct miqt_string QIconEngine_Key(const QIconEngine* self); QIconEngine* QIconEngine_Clone(const QIconEngine* self); bool QIconEngine_Read(QIconEngine* self, QDataStream* in); bool QIconEngine_Write(const QIconEngine* self, QDataStream* out); -struct miqt_array QIconEngine_AvailableSizes(QIconEngine* self); +struct miqt_array /* of QSize* */ QIconEngine_AvailableSizes(QIconEngine* self); struct miqt_string QIconEngine_IconName(QIconEngine* self); bool QIconEngine_IsNull(QIconEngine* self); QPixmap* QIconEngine_ScaledPixmap(QIconEngine* self, QSize* size, int mode, int state, double scale); void QIconEngine_VirtualHook(QIconEngine* self, int id, void* data); -struct miqt_array QIconEngine_AvailableSizes1(QIconEngine* self, int mode); -struct miqt_array QIconEngine_AvailableSizes2(QIconEngine* self, int mode, int state); +struct miqt_array /* of QSize* */ QIconEngine_AvailableSizes1(QIconEngine* self, int mode); +struct miqt_array /* of QSize* */ QIconEngine_AvailableSizes2(QIconEngine* self, int mode, int state); void QIconEngine_Delete(QIconEngine* self); QIconEngine__ScaledPixmapArgument* QIconEngine__ScaledPixmapArgument_new(QIconEngine__ScaledPixmapArgument* param1); diff --git a/qt6/gen_qiconengineplugin.h b/qt6/gen_qiconengineplugin.h index 4dc01eee..8cc7cc34 100644 --- a/qt6/gen_qiconengineplugin.h +++ b/qt6/gen_qiconengineplugin.h @@ -1,5 +1,6 @@ -#ifndef GEN_QICONENGINEPLUGIN_H -#define GEN_QICONENGINEPLUGIN_H +#pragma once +#ifndef MIQT_QT6_GEN_QICONENGINEPLUGIN_H +#define MIQT_QT6_GEN_QICONENGINEPLUGIN_H #include #include diff --git a/qt6/gen_qidentityproxymodel.cpp b/qt6/gen_qidentityproxymodel.cpp index 1fc6c5c8..fab99f0d 100644 --- a/qt6/gen_qidentityproxymodel.cpp +++ b/qt6/gen_qidentityproxymodel.cpp @@ -76,7 +76,7 @@ QModelIndex* QIdentityProxyModel_Sibling(const QIdentityProxyModel* self, int ro return new QModelIndex(self->sibling(static_cast(row), static_cast(column), *idx)); } -struct miqt_array QIdentityProxyModel_Match(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value) { +struct miqt_array /* of QModelIndex* */ QIdentityProxyModel_Match(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value) { QModelIndexList _ret = self->match(*start, static_cast(role), *value); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -155,7 +155,7 @@ QVariant* QIdentityProxyModel_HeaderData3(const QIdentityProxyModel* self, int s return new QVariant(self->headerData(static_cast(section), static_cast(orientation), static_cast(role))); } -struct miqt_array QIdentityProxyModel_Match4(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits) { +struct miqt_array /* of QModelIndex* */ QIdentityProxyModel_Match4(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits) { QModelIndexList _ret = self->match(*start, static_cast(role), *value, static_cast(hits)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -168,7 +168,7 @@ struct miqt_array QIdentityProxyModel_Match4(const QIdentityProxyModel* self, QM return _out; } -struct miqt_array QIdentityProxyModel_Match5(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) { +struct miqt_array /* of QModelIndex* */ QIdentityProxyModel_Match5(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) { QModelIndexList _ret = self->match(*start, static_cast(role), *value, static_cast(hits), static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); diff --git a/qt6/gen_qidentityproxymodel.h b/qt6/gen_qidentityproxymodel.h index 9a7a340a..6c1177b3 100644 --- a/qt6/gen_qidentityproxymodel.h +++ b/qt6/gen_qidentityproxymodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIDENTITYPROXYMODEL_H -#define GEN_QIDENTITYPROXYMODEL_H +#pragma once +#ifndef MIQT_QT6_GEN_QIDENTITYPROXYMODEL_H +#define MIQT_QT6_GEN_QIDENTITYPROXYMODEL_H #include #include @@ -45,7 +46,7 @@ int QIdentityProxyModel_RowCount(const QIdentityProxyModel* self); QVariant* QIdentityProxyModel_HeaderData(const QIdentityProxyModel* self, int section, int orientation); bool QIdentityProxyModel_DropMimeData(QIdentityProxyModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); QModelIndex* QIdentityProxyModel_Sibling(const QIdentityProxyModel* self, int row, int column, QModelIndex* idx); -struct miqt_array QIdentityProxyModel_Match(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value); +struct miqt_array /* of QModelIndex* */ QIdentityProxyModel_Match(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value); void QIdentityProxyModel_SetSourceModel(QIdentityProxyModel* self, QAbstractItemModel* sourceModel); bool QIdentityProxyModel_InsertColumns(QIdentityProxyModel* self, int column, int count); bool QIdentityProxyModel_InsertRows(QIdentityProxyModel* self, int row, int count); @@ -59,8 +60,8 @@ int QIdentityProxyModel_ColumnCount1(const QIdentityProxyModel* self, QModelInde QModelIndex* QIdentityProxyModel_Index3(const QIdentityProxyModel* self, int row, int column, QModelIndex* parent); int QIdentityProxyModel_RowCount1(const QIdentityProxyModel* self, QModelIndex* parent); QVariant* QIdentityProxyModel_HeaderData3(const QIdentityProxyModel* self, int section, int orientation, int role); -struct miqt_array QIdentityProxyModel_Match4(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits); -struct miqt_array QIdentityProxyModel_Match5(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags); +struct miqt_array /* of QModelIndex* */ QIdentityProxyModel_Match4(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits); +struct miqt_array /* of QModelIndex* */ QIdentityProxyModel_Match5(const QIdentityProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags); bool QIdentityProxyModel_InsertColumns3(QIdentityProxyModel* self, int column, int count, QModelIndex* parent); bool QIdentityProxyModel_InsertRows3(QIdentityProxyModel* self, int row, int count, QModelIndex* parent); bool QIdentityProxyModel_RemoveColumns3(QIdentityProxyModel* self, int column, int count, QModelIndex* parent); diff --git a/qt6/gen_qimage.cpp b/qt6/gen_qimage.cpp index d646de4c..4e94a1aa 100644 --- a/qt6/gen_qimage.cpp +++ b/qt6/gen_qimage.cpp @@ -111,7 +111,7 @@ QImage* QImage_ConvertToFormat(const QImage* self, int f) { return new QImage(self->convertToFormat(static_cast(f))); } -QImage* QImage_ConvertToFormat2(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable) { +QImage* QImage_ConvertToFormat2(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable) { QList colorTable_QList; colorTable_QList.reserve(colorTable.len); unsigned int* colorTable_arr = static_cast(colorTable.data); @@ -272,7 +272,7 @@ void QImage_SetPixelColor2(QImage* self, QPoint* pt, QColor* c) { self->setPixelColor(*pt, *c); } -struct miqt_array QImage_ColorTable(const QImage* self) { +struct miqt_array /* of unsigned int */ QImage_ColorTable(const QImage* self) { QList _ret = self->colorTable(); // Convert QList<> from C++ memory to manually-managed C memory unsigned int* _arr = static_cast(malloc(sizeof(unsigned int) * _ret.length())); @@ -285,7 +285,7 @@ struct miqt_array QImage_ColorTable(const QImage* self) { return _out; } -void QImage_SetColorTable(QImage* self, struct miqt_array /* of unsigned int */ colors) { +void QImage_SetColorTable(QImage* self, struct miqt_array /* of unsigned int */ colors) { QList colors_QList; colors_QList.reserve(colors.len); unsigned int* colors_arr = static_cast(colors.data); @@ -485,7 +485,7 @@ void QImage_SetOffset(QImage* self, QPoint* offset) { self->setOffset(*offset); } -struct miqt_array QImage_TextKeys(const QImage* self) { +struct miqt_array /* of struct miqt_string */ QImage_TextKeys(const QImage* self) { QStringList _ret = self->textKeys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -543,7 +543,7 @@ QImage* QImage_ConvertToFormat22(const QImage* self, int f, int flags) { return new QImage(self->convertToFormat(static_cast(f), static_cast(flags))); } -QImage* QImage_ConvertToFormat3(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable, int flags) { +QImage* QImage_ConvertToFormat3(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable, int flags) { QList colorTable_QList; colorTable_QList.reserve(colorTable.len); unsigned int* colorTable_arr = static_cast(colorTable.data); diff --git a/qt6/gen_qimage.go b/qt6/gen_qimage.go index a9155af5..2720a737 100644 --- a/qt6/gen_qimage.go +++ b/qt6/gen_qimage.go @@ -302,15 +302,15 @@ func (this *QImage) IsGrayscale() bool { } func (this *QImage) Bits() *byte { - return (*byte)(C.QImage_Bits(this.h)) + return (*byte)(unsafe.Pointer(C.QImage_Bits(this.h))) } func (this *QImage) Bits2() *byte { - return (*byte)(C.QImage_Bits2(this.h)) + return (*byte)(unsafe.Pointer(C.QImage_Bits2(this.h))) } func (this *QImage) ConstBits() *byte { - return (*byte)(C.QImage_ConstBits(this.h)) + return (*byte)(unsafe.Pointer(C.QImage_ConstBits(this.h))) } func (this *QImage) SizeInBytes() int64 { @@ -318,15 +318,15 @@ func (this *QImage) SizeInBytes() int64 { } func (this *QImage) ScanLine(param1 int) *byte { - return (*byte)(C.QImage_ScanLine(this.h, (C.int)(param1))) + return (*byte)(unsafe.Pointer(C.QImage_ScanLine(this.h, (C.int)(param1)))) } func (this *QImage) ScanLineWithInt(param1 int) *byte { - return (*byte)(C.QImage_ScanLineWithInt(this.h, (C.int)(param1))) + return (*byte)(unsafe.Pointer(C.QImage_ScanLineWithInt(this.h, (C.int)(param1)))) } func (this *QImage) ConstScanLine(param1 int) *byte { - return (*byte)(C.QImage_ConstScanLine(this.h, (C.int)(param1))) + return (*byte)(unsafe.Pointer(C.QImage_ConstScanLine(this.h, (C.int)(param1)))) } func (this *QImage) BytesPerLine() int64 { diff --git a/qt6/gen_qimage.h b/qt6/gen_qimage.h index d510e8b0..9b2e8685 100644 --- a/qt6/gen_qimage.h +++ b/qt6/gen_qimage.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIMAGE_H -#define GEN_QIMAGE_H +#pragma once +#ifndef MIQT_QT6_GEN_QIMAGE_H +#define MIQT_QT6_GEN_QIMAGE_H #include #include @@ -67,7 +68,7 @@ QImage* QImage_Copy(const QImage* self); QImage* QImage_Copy2(const QImage* self, int x, int y, int w, int h); int QImage_Format(const QImage* self); QImage* QImage_ConvertToFormat(const QImage* self, int f); -QImage* QImage_ConvertToFormat2(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable); +QImage* QImage_ConvertToFormat2(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable); bool QImage_ReinterpretAsFormat(QImage* self, int f); QImage* QImage_ConvertedTo(const QImage* self, int f); void QImage_ConvertTo(QImage* self, int f); @@ -103,8 +104,8 @@ QColor* QImage_PixelColor(const QImage* self, int x, int y); QColor* QImage_PixelColorWithPt(const QImage* self, QPoint* pt); void QImage_SetPixelColor(QImage* self, int x, int y, QColor* c); void QImage_SetPixelColor2(QImage* self, QPoint* pt, QColor* c); -struct miqt_array QImage_ColorTable(const QImage* self); -void QImage_SetColorTable(QImage* self, struct miqt_array /* of unsigned int */ colors); +struct miqt_array /* of unsigned int */ QImage_ColorTable(const QImage* self); +void QImage_SetColorTable(QImage* self, struct miqt_array /* of unsigned int */ colors); double QImage_DevicePixelRatio(const QImage* self); void QImage_SetDevicePixelRatio(QImage* self, double scaleFactor); QSizeF* QImage_DeviceIndependentSize(const QImage* self); @@ -151,7 +152,7 @@ void QImage_SetDotsPerMeterX(QImage* self, int dotsPerMeterX); void QImage_SetDotsPerMeterY(QImage* self, int dotsPerMeterY); QPoint* QImage_Offset(const QImage* self); void QImage_SetOffset(QImage* self, QPoint* offset); -struct miqt_array QImage_TextKeys(const QImage* self); +struct miqt_array /* of struct miqt_string */ QImage_TextKeys(const QImage* self); struct miqt_string QImage_Text(const QImage* self); void QImage_SetText(QImage* self, struct miqt_string key, struct miqt_string value); QPixelFormat* QImage_PixelFormat(const QImage* self); @@ -159,7 +160,7 @@ QPixelFormat* QImage_ToPixelFormat(int format); int QImage_ToImageFormat(QPixelFormat* format); QImage* QImage_Copy1(const QImage* self, QRect* rect); QImage* QImage_ConvertToFormat22(const QImage* self, int f, int flags); -QImage* QImage_ConvertToFormat3(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable, int flags); +QImage* QImage_ConvertToFormat3(const QImage* self, int f, struct miqt_array /* of unsigned int */ colorTable, int flags); QImage* QImage_ConvertedTo2(const QImage* self, int f, int flags); void QImage_ConvertTo2(QImage* self, int f, int flags); QImage* QImage_CreateAlphaMask1(const QImage* self, int flags); diff --git a/qt6/gen_qimageiohandler.h b/qt6/gen_qimageiohandler.h index 3af0cab3..a282764c 100644 --- a/qt6/gen_qimageiohandler.h +++ b/qt6/gen_qimageiohandler.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIMAGEIOHANDLER_H -#define GEN_QIMAGEIOHANDLER_H +#pragma once +#ifndef MIQT_QT6_GEN_QIMAGEIOHANDLER_H +#define MIQT_QT6_GEN_QIMAGEIOHANDLER_H #include #include diff --git a/qt6/gen_qimagereader.cpp b/qt6/gen_qimagereader.cpp index 37944d1f..10099aef 100644 --- a/qt6/gen_qimagereader.cpp +++ b/qt6/gen_qimagereader.cpp @@ -111,7 +111,7 @@ int QImageReader_ImageFormat(const QImageReader* self) { return static_cast(_ret); } -struct miqt_array QImageReader_TextKeys(const QImageReader* self) { +struct miqt_array /* of struct miqt_string */ QImageReader_TextKeys(const QImageReader* self) { QStringList _ret = self->textKeys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -209,7 +209,7 @@ struct miqt_string QImageReader_SubType(const QImageReader* self) { return _ms; } -struct miqt_array QImageReader_SupportedSubTypes(const QImageReader* self) { +struct miqt_array /* of struct miqt_string */ QImageReader_SupportedSubTypes(const QImageReader* self) { QList _ret = self->supportedSubTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -306,7 +306,7 @@ struct miqt_string QImageReader_ImageFormatWithDevice(QIODevice* device) { return _ms; } -struct miqt_array QImageReader_SupportedImageFormats() { +struct miqt_array /* of struct miqt_string */ QImageReader_SupportedImageFormats() { QList _ret = QImageReader::supportedImageFormats(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -324,7 +324,7 @@ struct miqt_array QImageReader_SupportedImageFormats() { return _out; } -struct miqt_array QImageReader_SupportedMimeTypes() { +struct miqt_array /* of struct miqt_string */ QImageReader_SupportedMimeTypes() { QList _ret = QImageReader::supportedMimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -342,7 +342,7 @@ struct miqt_array QImageReader_SupportedMimeTypes() { return _out; } -struct miqt_array QImageReader_ImageFormatsForMimeType(struct miqt_string mimeType) { +struct miqt_array /* of struct miqt_string */ QImageReader_ImageFormatsForMimeType(struct miqt_string mimeType) { QByteArray mimeType_QByteArray(mimeType.data, mimeType.len); QList _ret = QImageReader::imageFormatsForMimeType(mimeType_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt6/gen_qimagereader.h b/qt6/gen_qimagereader.h index d5fe3e91..f39c9972 100644 --- a/qt6/gen_qimagereader.h +++ b/qt6/gen_qimagereader.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIMAGEREADER_H -#define GEN_QIMAGEREADER_H +#pragma once +#ifndef MIQT_QT6_GEN_QIMAGEREADER_H +#define MIQT_QT6_GEN_QIMAGEREADER_H #include #include @@ -49,7 +50,7 @@ void QImageReader_SetFileName(QImageReader* self, struct miqt_string fileName); struct miqt_string QImageReader_FileName(const QImageReader* self); QSize* QImageReader_Size(const QImageReader* self); int QImageReader_ImageFormat(const QImageReader* self); -struct miqt_array QImageReader_TextKeys(const QImageReader* self); +struct miqt_array /* of struct miqt_string */ QImageReader_TextKeys(const QImageReader* self); struct miqt_string QImageReader_Text(const QImageReader* self, struct miqt_string key); void QImageReader_SetClipRect(QImageReader* self, QRect* rect); QRect* QImageReader_ClipRect(const QImageReader* self); @@ -66,7 +67,7 @@ int QImageReader_Transformation(const QImageReader* self); void QImageReader_SetAutoTransform(QImageReader* self, bool enabled); bool QImageReader_AutoTransform(const QImageReader* self); struct miqt_string QImageReader_SubType(const QImageReader* self); -struct miqt_array QImageReader_SupportedSubTypes(const QImageReader* self); +struct miqt_array /* of struct miqt_string */ QImageReader_SupportedSubTypes(const QImageReader* self); bool QImageReader_CanRead(const QImageReader* self); QImage* QImageReader_Read(QImageReader* self); bool QImageReader_ReadWithImage(QImageReader* self, QImage* image); @@ -82,9 +83,9 @@ struct miqt_string QImageReader_ErrorString(const QImageReader* self); bool QImageReader_SupportsOption(const QImageReader* self, int option); struct miqt_string QImageReader_ImageFormatWithFileName(struct miqt_string fileName); struct miqt_string QImageReader_ImageFormatWithDevice(QIODevice* device); -struct miqt_array QImageReader_SupportedImageFormats(); -struct miqt_array QImageReader_SupportedMimeTypes(); -struct miqt_array QImageReader_ImageFormatsForMimeType(struct miqt_string mimeType); +struct miqt_array /* of struct miqt_string */ QImageReader_SupportedImageFormats(); +struct miqt_array /* of struct miqt_string */ QImageReader_SupportedMimeTypes(); +struct miqt_array /* of struct miqt_string */ QImageReader_ImageFormatsForMimeType(struct miqt_string mimeType); int QImageReader_AllocationLimit(); void QImageReader_SetAllocationLimit(int mbLimit); struct miqt_string QImageReader_Tr2(const char* sourceText, const char* disambiguation); diff --git a/qt6/gen_qimagewriter.cpp b/qt6/gen_qimagewriter.cpp index 3905ba53..df86f10a 100644 --- a/qt6/gen_qimagewriter.cpp +++ b/qt6/gen_qimagewriter.cpp @@ -109,7 +109,7 @@ struct miqt_string QImageWriter_SubType(const QImageWriter* self) { return _ms; } -struct miqt_array QImageWriter_SupportedSubTypes(const QImageWriter* self) { +struct miqt_array /* of struct miqt_string */ QImageWriter_SupportedSubTypes(const QImageWriter* self) { QList _ret = self->supportedSubTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -186,7 +186,7 @@ bool QImageWriter_SupportsOption(const QImageWriter* self, int option) { return self->supportsOption(static_cast(option)); } -struct miqt_array QImageWriter_SupportedImageFormats() { +struct miqt_array /* of struct miqt_string */ QImageWriter_SupportedImageFormats() { QList _ret = QImageWriter::supportedImageFormats(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -204,7 +204,7 @@ struct miqt_array QImageWriter_SupportedImageFormats() { return _out; } -struct miqt_array QImageWriter_SupportedMimeTypes() { +struct miqt_array /* of struct miqt_string */ QImageWriter_SupportedMimeTypes() { QList _ret = QImageWriter::supportedMimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -222,7 +222,7 @@ struct miqt_array QImageWriter_SupportedMimeTypes() { return _out; } -struct miqt_array QImageWriter_ImageFormatsForMimeType(struct miqt_string mimeType) { +struct miqt_array /* of struct miqt_string */ QImageWriter_ImageFormatsForMimeType(struct miqt_string mimeType) { QByteArray mimeType_QByteArray(mimeType.data, mimeType.len); QList _ret = QImageWriter::imageFormatsForMimeType(mimeType_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt6/gen_qimagewriter.h b/qt6/gen_qimagewriter.h index df923c70..02f21783 100644 --- a/qt6/gen_qimagewriter.h +++ b/qt6/gen_qimagewriter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIMAGEWRITER_H -#define GEN_QIMAGEWRITER_H +#pragma once +#ifndef MIQT_QT6_GEN_QIMAGEWRITER_H +#define MIQT_QT6_GEN_QIMAGEWRITER_H #include #include @@ -42,7 +43,7 @@ void QImageWriter_SetCompression(QImageWriter* self, int compression); int QImageWriter_Compression(const QImageWriter* self); void QImageWriter_SetSubType(QImageWriter* self, struct miqt_string typeVal); struct miqt_string QImageWriter_SubType(const QImageWriter* self); -struct miqt_array QImageWriter_SupportedSubTypes(const QImageWriter* self); +struct miqt_array /* of struct miqt_string */ QImageWriter_SupportedSubTypes(const QImageWriter* self); void QImageWriter_SetOptimizedWrite(QImageWriter* self, bool optimize); bool QImageWriter_OptimizedWrite(const QImageWriter* self); void QImageWriter_SetProgressiveScanWrite(QImageWriter* self, bool progressive); @@ -55,9 +56,9 @@ bool QImageWriter_Write(QImageWriter* self, QImage* image); int QImageWriter_Error(const QImageWriter* self); struct miqt_string QImageWriter_ErrorString(const QImageWriter* self); bool QImageWriter_SupportsOption(const QImageWriter* self, int option); -struct miqt_array QImageWriter_SupportedImageFormats(); -struct miqt_array QImageWriter_SupportedMimeTypes(); -struct miqt_array QImageWriter_ImageFormatsForMimeType(struct miqt_string mimeType); +struct miqt_array /* of struct miqt_string */ QImageWriter_SupportedImageFormats(); +struct miqt_array /* of struct miqt_string */ QImageWriter_SupportedMimeTypes(); +struct miqt_array /* of struct miqt_string */ QImageWriter_ImageFormatsForMimeType(struct miqt_string mimeType); struct miqt_string QImageWriter_Tr2(const char* sourceText, const char* disambiguation); struct miqt_string QImageWriter_Tr3(const char* sourceText, const char* disambiguation, int n); void QImageWriter_Delete(QImageWriter* self); diff --git a/qt6/gen_qinputdevice.cpp b/qt6/gen_qinputdevice.cpp index 6f7b602d..81e2c71f 100644 --- a/qt6/gen_qinputdevice.cpp +++ b/qt6/gen_qinputdevice.cpp @@ -99,7 +99,7 @@ QRect* QInputDevice_AvailableVirtualGeometry(const QInputDevice* self) { return new QRect(self->availableVirtualGeometry()); } -struct miqt_array QInputDevice_SeatNames() { +struct miqt_array /* of struct miqt_string */ QInputDevice_SeatNames() { QStringList _ret = QInputDevice::seatNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -119,7 +119,7 @@ struct miqt_array QInputDevice_SeatNames() { return _out; } -struct miqt_array QInputDevice_Devices() { +struct miqt_array /* of QInputDevice* */ QInputDevice_Devices() { QList _ret = QInputDevice::devices(); // Convert QList<> from C++ memory to manually-managed C memory QInputDevice** _arr = static_cast(malloc(sizeof(QInputDevice*) * _ret.length())); diff --git a/qt6/gen_qinputdevice.h b/qt6/gen_qinputdevice.h index 6e2e7be1..5c06718b 100644 --- a/qt6/gen_qinputdevice.h +++ b/qt6/gen_qinputdevice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QINPUTDEVICE_H -#define GEN_QINPUTDEVICE_H +#pragma once +#ifndef MIQT_QT6_GEN_QINPUTDEVICE_H +#define MIQT_QT6_GEN_QINPUTDEVICE_H #include #include @@ -40,8 +41,8 @@ bool QInputDevice_HasCapability(const QInputDevice* self, int cap); long long QInputDevice_SystemId(const QInputDevice* self); struct miqt_string QInputDevice_SeatName(const QInputDevice* self); QRect* QInputDevice_AvailableVirtualGeometry(const QInputDevice* self); -struct miqt_array QInputDevice_SeatNames(); -struct miqt_array QInputDevice_Devices(); +struct miqt_array /* of struct miqt_string */ QInputDevice_SeatNames(); +struct miqt_array /* of QInputDevice* */ QInputDevice_Devices(); QInputDevice* QInputDevice_PrimaryKeyboard(); bool QInputDevice_OperatorEqual(const QInputDevice* self, QInputDevice* other); void QInputDevice_AvailableVirtualGeometryChanged(QInputDevice* self, QRect* area); diff --git a/qt6/gen_qinputdialog.cpp b/qt6/gen_qinputdialog.cpp index 4d540420..ef37e857 100644 --- a/qt6/gen_qinputdialog.cpp +++ b/qt6/gen_qinputdialog.cpp @@ -116,7 +116,7 @@ bool QInputDialog_IsComboBoxEditable(const QInputDialog* self) { return self->isComboBoxEditable(); } -void QInputDialog_SetComboBoxItems(QInputDialog* self, struct miqt_array /* of struct miqt_string */ items) { +void QInputDialog_SetComboBoxItems(QInputDialog* self, struct miqt_array /* of struct miqt_string */ items) { QStringList items_QList; items_QList.reserve(items.len); struct miqt_string* items_arr = static_cast(items.data); @@ -127,7 +127,7 @@ void QInputDialog_SetComboBoxItems(QInputDialog* self, struct miqt_array /* of s self->setComboBoxItems(items_QList); } -struct miqt_array QInputDialog_ComboBoxItems(const QInputDialog* self) { +struct miqt_array /* of struct miqt_string */ QInputDialog_ComboBoxItems(const QInputDialog* self) { QStringList _ret = self->comboBoxItems(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -289,7 +289,7 @@ struct miqt_string QInputDialog_GetMultiLineText(QWidget* parent, struct miqt_st return _ms; } -struct miqt_string QInputDialog_GetItem(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items) { +struct miqt_string QInputDialog_GetItem(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items) { QString title_QString = QString::fromUtf8(title.data, title.len); QString label_QString = QString::fromUtf8(label.data, label.len); QStringList items_QList; @@ -566,7 +566,7 @@ struct miqt_string QInputDialog_GetMultiLineText7(QWidget* parent, struct miqt_s return _ms; } -struct miqt_string QInputDialog_GetItem5(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current) { +struct miqt_string QInputDialog_GetItem5(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current) { QString title_QString = QString::fromUtf8(title.data, title.len); QString label_QString = QString::fromUtf8(label.data, label.len); QStringList items_QList; @@ -586,7 +586,7 @@ struct miqt_string QInputDialog_GetItem5(QWidget* parent, struct miqt_string tit return _ms; } -struct miqt_string QInputDialog_GetItem6(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable) { +struct miqt_string QInputDialog_GetItem6(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable) { QString title_QString = QString::fromUtf8(title.data, title.len); QString label_QString = QString::fromUtf8(label.data, label.len); QStringList items_QList; @@ -606,7 +606,7 @@ struct miqt_string QInputDialog_GetItem6(QWidget* parent, struct miqt_string tit return _ms; } -struct miqt_string QInputDialog_GetItem7(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok) { +struct miqt_string QInputDialog_GetItem7(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok) { QString title_QString = QString::fromUtf8(title.data, title.len); QString label_QString = QString::fromUtf8(label.data, label.len); QStringList items_QList; @@ -626,7 +626,7 @@ struct miqt_string QInputDialog_GetItem7(QWidget* parent, struct miqt_string tit return _ms; } -struct miqt_string QInputDialog_GetItem8(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags) { +struct miqt_string QInputDialog_GetItem8(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags) { QString title_QString = QString::fromUtf8(title.data, title.len); QString label_QString = QString::fromUtf8(label.data, label.len); QStringList items_QList; @@ -646,7 +646,7 @@ struct miqt_string QInputDialog_GetItem8(QWidget* parent, struct miqt_string tit return _ms; } -struct miqt_string QInputDialog_GetItem9(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags, int inputMethodHints) { +struct miqt_string QInputDialog_GetItem9(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags, int inputMethodHints) { QString title_QString = QString::fromUtf8(title.data, title.len); QString label_QString = QString::fromUtf8(label.data, label.len); QStringList items_QList; diff --git a/qt6/gen_qinputdialog.h b/qt6/gen_qinputdialog.h index fe3fd6c5..3ab6ce3f 100644 --- a/qt6/gen_qinputdialog.h +++ b/qt6/gen_qinputdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QINPUTDIALOG_H -#define GEN_QINPUTDIALOG_H +#pragma once +#ifndef MIQT_QT6_GEN_QINPUTDIALOG_H +#define MIQT_QT6_GEN_QINPUTDIALOG_H #include #include @@ -45,8 +46,8 @@ void QInputDialog_SetTextEchoMode(QInputDialog* self, int mode); int QInputDialog_TextEchoMode(const QInputDialog* self); void QInputDialog_SetComboBoxEditable(QInputDialog* self, bool editable); bool QInputDialog_IsComboBoxEditable(const QInputDialog* self); -void QInputDialog_SetComboBoxItems(QInputDialog* self, struct miqt_array /* of struct miqt_string */ items); -struct miqt_array QInputDialog_ComboBoxItems(const QInputDialog* self); +void QInputDialog_SetComboBoxItems(QInputDialog* self, struct miqt_array /* of struct miqt_string */ items); +struct miqt_array /* of struct miqt_string */ QInputDialog_ComboBoxItems(const QInputDialog* self); void QInputDialog_SetIntValue(QInputDialog* self, int value); int QInputDialog_IntValue(const QInputDialog* self); void QInputDialog_SetIntMinimum(QInputDialog* self, int min); @@ -74,7 +75,7 @@ QSize* QInputDialog_SizeHint(const QInputDialog* self); void QInputDialog_SetVisible(QInputDialog* self, bool visible); struct miqt_string QInputDialog_GetText(QWidget* parent, struct miqt_string title, struct miqt_string label); struct miqt_string QInputDialog_GetMultiLineText(QWidget* parent, struct miqt_string title, struct miqt_string label); -struct miqt_string QInputDialog_GetItem(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items); +struct miqt_string QInputDialog_GetItem(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items); int QInputDialog_GetInt(QWidget* parent, struct miqt_string title, struct miqt_string label); double QInputDialog_GetDouble(QWidget* parent, struct miqt_string title, struct miqt_string label); void QInputDialog_SetDoubleStep(QInputDialog* self, double step); @@ -104,11 +105,11 @@ struct miqt_string QInputDialog_GetMultiLineText4(QWidget* parent, struct miqt_s struct miqt_string QInputDialog_GetMultiLineText5(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_string text, bool* ok); struct miqt_string QInputDialog_GetMultiLineText6(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_string text, bool* ok, int flags); struct miqt_string QInputDialog_GetMultiLineText7(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_string text, bool* ok, int flags, int inputMethodHints); -struct miqt_string QInputDialog_GetItem5(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current); -struct miqt_string QInputDialog_GetItem6(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable); -struct miqt_string QInputDialog_GetItem7(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok); -struct miqt_string QInputDialog_GetItem8(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags); -struct miqt_string QInputDialog_GetItem9(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags, int inputMethodHints); +struct miqt_string QInputDialog_GetItem5(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current); +struct miqt_string QInputDialog_GetItem6(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable); +struct miqt_string QInputDialog_GetItem7(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok); +struct miqt_string QInputDialog_GetItem8(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags); +struct miqt_string QInputDialog_GetItem9(QWidget* parent, struct miqt_string title, struct miqt_string label, struct miqt_array /* of struct miqt_string */ items, int current, bool editable, bool* ok, int flags, int inputMethodHints); int QInputDialog_GetInt4(QWidget* parent, struct miqt_string title, struct miqt_string label, int value); int QInputDialog_GetInt5(QWidget* parent, struct miqt_string title, struct miqt_string label, int value, int minValue); int QInputDialog_GetInt6(QWidget* parent, struct miqt_string title, struct miqt_string label, int value, int minValue, int maxValue); diff --git a/qt6/gen_qinputmethod.h b/qt6/gen_qinputmethod.h index 942adce4..3607eeeb 100644 --- a/qt6/gen_qinputmethod.h +++ b/qt6/gen_qinputmethod.h @@ -1,5 +1,6 @@ -#ifndef GEN_QINPUTMETHOD_H -#define GEN_QINPUTMETHOD_H +#pragma once +#ifndef MIQT_QT6_GEN_QINPUTMETHOD_H +#define MIQT_QT6_GEN_QINPUTMETHOD_H #include #include diff --git a/qt6/gen_qiodevice.h b/qt6/gen_qiodevice.h index f919a990..e409e875 100644 --- a/qt6/gen_qiodevice.h +++ b/qt6/gen_qiodevice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIODEVICE_H -#define GEN_QIODEVICE_H +#pragma once +#ifndef MIQT_QT6_GEN_QIODEVICE_H +#define MIQT_QT6_GEN_QIODEVICE_H #include #include diff --git a/qt6/gen_qiodevicebase.h b/qt6/gen_qiodevicebase.h index 11e550a9..c7341afb 100644 --- a/qt6/gen_qiodevicebase.h +++ b/qt6/gen_qiodevicebase.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIODEVICEBASE_H -#define GEN_QIODEVICEBASE_H +#pragma once +#ifndef MIQT_QT6_GEN_QIODEVICEBASE_H +#define MIQT_QT6_GEN_QIODEVICEBASE_H #include #include diff --git a/qt6/gen_qitemdelegate.h b/qt6/gen_qitemdelegate.h index 70099ff2..86dbf92a 100644 --- a/qt6/gen_qitemdelegate.h +++ b/qt6/gen_qitemdelegate.h @@ -1,5 +1,6 @@ -#ifndef GEN_QITEMDELEGATE_H -#define GEN_QITEMDELEGATE_H +#pragma once +#ifndef MIQT_QT6_GEN_QITEMDELEGATE_H +#define MIQT_QT6_GEN_QITEMDELEGATE_H #include #include diff --git a/qt6/gen_qitemeditorfactory.h b/qt6/gen_qitemeditorfactory.h index 2060ba9c..f6e47c6f 100644 --- a/qt6/gen_qitemeditorfactory.h +++ b/qt6/gen_qitemeditorfactory.h @@ -1,5 +1,6 @@ -#ifndef GEN_QITEMEDITORFACTORY_H -#define GEN_QITEMEDITORFACTORY_H +#pragma once +#ifndef MIQT_QT6_GEN_QITEMEDITORFACTORY_H +#define MIQT_QT6_GEN_QITEMEDITORFACTORY_H #include #include diff --git a/qt6/gen_qitemselectionmodel.cpp b/qt6/gen_qitemselectionmodel.cpp index ac119d34..e68a7fba 100644 --- a/qt6/gen_qitemselectionmodel.cpp +++ b/qt6/gen_qitemselectionmodel.cpp @@ -109,7 +109,7 @@ bool QItemSelectionRange_IsEmpty(const QItemSelectionRange* self) { return self->isEmpty(); } -struct miqt_array QItemSelectionRange_Indexes(const QItemSelectionRange* self) { +struct miqt_array /* of QModelIndex* */ QItemSelectionRange_Indexes(const QItemSelectionRange* self) { QModelIndexList _ret = self->indexes(); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -185,7 +185,7 @@ bool QItemSelectionModel_HasSelection(const QItemSelectionModel* self) { return self->hasSelection(); } -struct miqt_array QItemSelectionModel_SelectedIndexes(const QItemSelectionModel* self) { +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedIndexes(const QItemSelectionModel* self) { QModelIndexList _ret = self->selectedIndexes(); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -198,7 +198,7 @@ struct miqt_array QItemSelectionModel_SelectedIndexes(const QItemSelectionModel* return _out; } -struct miqt_array QItemSelectionModel_SelectedRows(const QItemSelectionModel* self) { +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedRows(const QItemSelectionModel* self) { QModelIndexList _ret = self->selectedRows(); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -211,7 +211,7 @@ struct miqt_array QItemSelectionModel_SelectedRows(const QItemSelectionModel* se return _out; } -struct miqt_array QItemSelectionModel_SelectedColumns(const QItemSelectionModel* self) { +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedColumns(const QItemSelectionModel* self) { QModelIndexList _ret = self->selectedColumns(); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -357,7 +357,7 @@ bool QItemSelectionModel_ColumnIntersectsSelection2(const QItemSelectionModel* s return self->columnIntersectsSelection(static_cast(column), *parent); } -struct miqt_array QItemSelectionModel_SelectedRows1(const QItemSelectionModel* self, int column) { +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedRows1(const QItemSelectionModel* self, int column) { QModelIndexList _ret = self->selectedRows(static_cast(column)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -370,7 +370,7 @@ struct miqt_array QItemSelectionModel_SelectedRows1(const QItemSelectionModel* s return _out; } -struct miqt_array QItemSelectionModel_SelectedColumns1(const QItemSelectionModel* self, int row) { +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedColumns1(const QItemSelectionModel* self, int row) { QModelIndexList _ret = self->selectedColumns(static_cast(row)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); diff --git a/qt6/gen_qitemselectionmodel.h b/qt6/gen_qitemselectionmodel.h index c5835754..2b44d5dd 100644 --- a/qt6/gen_qitemselectionmodel.h +++ b/qt6/gen_qitemselectionmodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QITEMSELECTIONMODEL_H -#define GEN_QITEMSELECTIONMODEL_H +#pragma once +#ifndef MIQT_QT6_GEN_QITEMSELECTIONMODEL_H +#define MIQT_QT6_GEN_QITEMSELECTIONMODEL_H #include #include @@ -54,7 +55,7 @@ bool QItemSelectionRange_OperatorEqual(const QItemSelectionRange* self, QItemSel bool QItemSelectionRange_OperatorNotEqual(const QItemSelectionRange* self, QItemSelectionRange* other); bool QItemSelectionRange_IsValid(const QItemSelectionRange* self); bool QItemSelectionRange_IsEmpty(const QItemSelectionRange* self); -struct miqt_array QItemSelectionRange_Indexes(const QItemSelectionRange* self); +struct miqt_array /* of QModelIndex* */ QItemSelectionRange_Indexes(const QItemSelectionRange* self); void QItemSelectionRange_Delete(QItemSelectionRange* self); QItemSelectionModel* QItemSelectionModel_new(); @@ -70,9 +71,9 @@ bool QItemSelectionModel_IsColumnSelected(const QItemSelectionModel* self, int c bool QItemSelectionModel_RowIntersectsSelection(const QItemSelectionModel* self, int row); bool QItemSelectionModel_ColumnIntersectsSelection(const QItemSelectionModel* self, int column); bool QItemSelectionModel_HasSelection(const QItemSelectionModel* self); -struct miqt_array QItemSelectionModel_SelectedIndexes(const QItemSelectionModel* self); -struct miqt_array QItemSelectionModel_SelectedRows(const QItemSelectionModel* self); -struct miqt_array QItemSelectionModel_SelectedColumns(const QItemSelectionModel* self); +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedIndexes(const QItemSelectionModel* self); +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedRows(const QItemSelectionModel* self); +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedColumns(const QItemSelectionModel* self); QAbstractItemModel* QItemSelectionModel_Model(const QItemSelectionModel* self); QAbstractItemModel* QItemSelectionModel_Model2(QItemSelectionModel* self); void QItemSelectionModel_SetModel(QItemSelectionModel* self, QAbstractItemModel* model); @@ -96,8 +97,8 @@ bool QItemSelectionModel_IsRowSelected2(const QItemSelectionModel* self, int row bool QItemSelectionModel_IsColumnSelected2(const QItemSelectionModel* self, int column, QModelIndex* parent); bool QItemSelectionModel_RowIntersectsSelection2(const QItemSelectionModel* self, int row, QModelIndex* parent); bool QItemSelectionModel_ColumnIntersectsSelection2(const QItemSelectionModel* self, int column, QModelIndex* parent); -struct miqt_array QItemSelectionModel_SelectedRows1(const QItemSelectionModel* self, int column); -struct miqt_array QItemSelectionModel_SelectedColumns1(const QItemSelectionModel* self, int row); +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedRows1(const QItemSelectionModel* self, int column); +struct miqt_array /* of QModelIndex* */ QItemSelectionModel_SelectedColumns1(const QItemSelectionModel* self, int row); void QItemSelectionModel_Delete(QItemSelectionModel* self); #ifdef __cplusplus diff --git a/qt6/gen_qjsonarray.cpp b/qt6/gen_qjsonarray.cpp index b08ed31b..c40e3900 100644 --- a/qt6/gen_qjsonarray.cpp +++ b/qt6/gen_qjsonarray.cpp @@ -24,7 +24,7 @@ void QJsonArray_OperatorAssign(QJsonArray* self, QJsonArray* other) { self->operator=(*other); } -QJsonArray* QJsonArray_FromStringList(struct miqt_array /* of struct miqt_string */ list) { +QJsonArray* QJsonArray_FromStringList(struct miqt_array /* of struct miqt_string */ list) { QStringList list_QList; list_QList.reserve(list.len); struct miqt_string* list_arr = static_cast(list.data); diff --git a/qt6/gen_qjsonarray.h b/qt6/gen_qjsonarray.h index 7716fead..ff0c24a5 100644 --- a/qt6/gen_qjsonarray.h +++ b/qt6/gen_qjsonarray.h @@ -1,5 +1,6 @@ -#ifndef GEN_QJSONARRAY_H -#define GEN_QJSONARRAY_H +#pragma once +#ifndef MIQT_QT6_GEN_QJSONARRAY_H +#define MIQT_QT6_GEN_QJSONARRAY_H #include #include @@ -40,7 +41,7 @@ typedef struct QJsonValueRef QJsonValueRef; QJsonArray* QJsonArray_new(); QJsonArray* QJsonArray_new2(QJsonArray* other); void QJsonArray_OperatorAssign(QJsonArray* self, QJsonArray* other); -QJsonArray* QJsonArray_FromStringList(struct miqt_array /* of struct miqt_string */ list); +QJsonArray* QJsonArray_FromStringList(struct miqt_array /* of struct miqt_string */ list); ptrdiff_t QJsonArray_Size(const QJsonArray* self); ptrdiff_t QJsonArray_Count(const QJsonArray* self); bool QJsonArray_IsEmpty(const QJsonArray* self); diff --git a/qt6/gen_qjsondocument.h b/qt6/gen_qjsondocument.h index 2e29eb31..ba019314 100644 --- a/qt6/gen_qjsondocument.h +++ b/qt6/gen_qjsondocument.h @@ -1,5 +1,6 @@ -#ifndef GEN_QJSONDOCUMENT_H -#define GEN_QJSONDOCUMENT_H +#pragma once +#ifndef MIQT_QT6_GEN_QJSONDOCUMENT_H +#define MIQT_QT6_GEN_QJSONDOCUMENT_H #include #include diff --git a/qt6/gen_qjsonobject.cpp b/qt6/gen_qjsonobject.cpp index 5244a915..19a3314d 100644 --- a/qt6/gen_qjsonobject.cpp +++ b/qt6/gen_qjsonobject.cpp @@ -30,7 +30,7 @@ void QJsonObject_Swap(QJsonObject* self, QJsonObject* other) { self->swap(*other); } -QJsonObject* QJsonObject_FromVariantMap(struct miqt_map mapVal) { +QJsonObject* QJsonObject_FromVariantMap(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal) { QVariantMap mapVal_QMap; struct miqt_string* mapVal_karr = static_cast(mapVal.keys); QVariant** mapVal_varr = static_cast(mapVal.values); @@ -41,7 +41,7 @@ QJsonObject* QJsonObject_FromVariantMap(struct miqt_map mapVal) { return new QJsonObject(QJsonObject::fromVariantMap(mapVal_QMap)); } -struct miqt_map QJsonObject_ToVariantMap(const QJsonObject* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QJsonObject_ToVariantMap(const QJsonObject* self) { QVariantMap _ret = self->toVariantMap(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); @@ -66,7 +66,7 @@ struct miqt_map QJsonObject_ToVariantMap(const QJsonObject* self) { return _out; } -QJsonObject* QJsonObject_FromVariantHash(struct miqt_map mapVal) { +QJsonObject* QJsonObject_FromVariantHash(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal) { QVariantHash mapVal_QMap; mapVal_QMap.reserve(mapVal.len); struct miqt_string* mapVal_karr = static_cast(mapVal.keys); @@ -78,7 +78,7 @@ QJsonObject* QJsonObject_FromVariantHash(struct miqt_map mapVal) { return new QJsonObject(QJsonObject::fromVariantHash(mapVal_QMap)); } -struct miqt_map QJsonObject_ToVariantHash(const QJsonObject* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QJsonObject_ToVariantHash(const QJsonObject* self) { QVariantHash _ret = self->toVariantHash(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); @@ -103,7 +103,7 @@ struct miqt_map QJsonObject_ToVariantHash(const QJsonObject* self) { return _out; } -struct miqt_array QJsonObject_Keys(const QJsonObject* self) { +struct miqt_array /* of struct miqt_string */ QJsonObject_Keys(const QJsonObject* self) { QStringList _ret = self->keys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qjsonobject.h b/qt6/gen_qjsonobject.h index 2b96e8b4..814deb85 100644 --- a/qt6/gen_qjsonobject.h +++ b/qt6/gen_qjsonobject.h @@ -1,5 +1,6 @@ -#ifndef GEN_QJSONOBJECT_H -#define GEN_QJSONOBJECT_H +#pragma once +#ifndef MIQT_QT6_GEN_QJSONOBJECT_H +#define MIQT_QT6_GEN_QJSONOBJECT_H #include #include @@ -43,11 +44,11 @@ QJsonObject* QJsonObject_new(); QJsonObject* QJsonObject_new2(QJsonObject* other); void QJsonObject_OperatorAssign(QJsonObject* self, QJsonObject* other); void QJsonObject_Swap(QJsonObject* self, QJsonObject* other); -QJsonObject* QJsonObject_FromVariantMap(struct miqt_map mapVal); -struct miqt_map QJsonObject_ToVariantMap(const QJsonObject* self); -QJsonObject* QJsonObject_FromVariantHash(struct miqt_map mapVal); -struct miqt_map QJsonObject_ToVariantHash(const QJsonObject* self); -struct miqt_array QJsonObject_Keys(const QJsonObject* self); +QJsonObject* QJsonObject_FromVariantMap(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal); +struct miqt_map /* of struct miqt_string to QVariant* */ QJsonObject_ToVariantMap(const QJsonObject* self); +QJsonObject* QJsonObject_FromVariantHash(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal); +struct miqt_map /* of struct miqt_string to QVariant* */ QJsonObject_ToVariantHash(const QJsonObject* self); +struct miqt_array /* of struct miqt_string */ QJsonObject_Keys(const QJsonObject* self); ptrdiff_t QJsonObject_Size(const QJsonObject* self); ptrdiff_t QJsonObject_Count(const QJsonObject* self); ptrdiff_t QJsonObject_Length(const QJsonObject* self); diff --git a/qt6/gen_qjsonvalue.h b/qt6/gen_qjsonvalue.h index b277039c..8661a4a9 100644 --- a/qt6/gen_qjsonvalue.h +++ b/qt6/gen_qjsonvalue.h @@ -1,5 +1,6 @@ -#ifndef GEN_QJSONVALUE_H -#define GEN_QJSONVALUE_H +#pragma once +#ifndef MIQT_QT6_GEN_QJSONVALUE_H +#define MIQT_QT6_GEN_QJSONVALUE_H #include #include diff --git a/qt6/gen_qkeysequence.cpp b/qt6/gen_qkeysequence.cpp index c7ef86d1..e388552d 100644 --- a/qt6/gen_qkeysequence.cpp +++ b/qt6/gen_qkeysequence.cpp @@ -86,7 +86,7 @@ QKeySequence* QKeySequence_FromString(struct miqt_string str) { return new QKeySequence(QKeySequence::fromString(str_QString)); } -struct miqt_array QKeySequence_ListFromString(struct miqt_string str) { +struct miqt_array /* of QKeySequence* */ QKeySequence_ListFromString(struct miqt_string str) { QString str_QString = QString::fromUtf8(str.data, str.len); QList _ret = QKeySequence::listFromString(str_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -100,7 +100,7 @@ struct miqt_array QKeySequence_ListFromString(struct miqt_string str) { return _out; } -struct miqt_string QKeySequence_ListToString(struct miqt_array /* of QKeySequence* */ list) { +struct miqt_string QKeySequence_ListToString(struct miqt_array /* of QKeySequence* */ list) { QList list_QList; list_QList.reserve(list.len); QKeySequence** list_arr = static_cast(list.data); @@ -127,7 +127,7 @@ QKeySequence* QKeySequence_Mnemonic(struct miqt_string text) { return new QKeySequence(QKeySequence::mnemonic(text_QString)); } -struct miqt_array QKeySequence_KeyBindings(int key) { +struct miqt_array /* of QKeySequence* */ QKeySequence_KeyBindings(int key) { QList _ret = QKeySequence::keyBindings(static_cast(key)); // Convert QList<> from C++ memory to manually-managed C memory QKeySequence** _arr = static_cast(malloc(sizeof(QKeySequence*) * _ret.length())); @@ -196,7 +196,7 @@ QKeySequence* QKeySequence_FromString2(struct miqt_string str, int format) { return new QKeySequence(QKeySequence::fromString(str_QString, static_cast(format))); } -struct miqt_array QKeySequence_ListFromString2(struct miqt_string str, int format) { +struct miqt_array /* of QKeySequence* */ QKeySequence_ListFromString2(struct miqt_string str, int format) { QString str_QString = QString::fromUtf8(str.data, str.len); QList _ret = QKeySequence::listFromString(str_QString, static_cast(format)); // Convert QList<> from C++ memory to manually-managed C memory @@ -210,7 +210,7 @@ struct miqt_array QKeySequence_ListFromString2(struct miqt_string str, int forma return _out; } -struct miqt_string QKeySequence_ListToString2(struct miqt_array /* of QKeySequence* */ list, int format) { +struct miqt_string QKeySequence_ListToString2(struct miqt_array /* of QKeySequence* */ list, int format) { QList list_QList; list_QList.reserve(list.len); QKeySequence** list_arr = static_cast(list.data); diff --git a/qt6/gen_qkeysequence.h b/qt6/gen_qkeysequence.h index 94f8b85c..6a5384af 100644 --- a/qt6/gen_qkeysequence.h +++ b/qt6/gen_qkeysequence.h @@ -1,5 +1,6 @@ -#ifndef GEN_QKEYSEQUENCE_H -#define GEN_QKEYSEQUENCE_H +#pragma once +#ifndef MIQT_QT6_GEN_QKEYSEQUENCE_H +#define MIQT_QT6_GEN_QKEYSEQUENCE_H #include #include @@ -38,11 +39,11 @@ int QKeySequence_Count(const QKeySequence* self); bool QKeySequence_IsEmpty(const QKeySequence* self); struct miqt_string QKeySequence_ToString(const QKeySequence* self); QKeySequence* QKeySequence_FromString(struct miqt_string str); -struct miqt_array QKeySequence_ListFromString(struct miqt_string str); -struct miqt_string QKeySequence_ListToString(struct miqt_array /* of QKeySequence* */ list); +struct miqt_array /* of QKeySequence* */ QKeySequence_ListFromString(struct miqt_string str); +struct miqt_string QKeySequence_ListToString(struct miqt_array /* of QKeySequence* */ list); int QKeySequence_Matches(const QKeySequence* self, QKeySequence* seq); QKeySequence* QKeySequence_Mnemonic(struct miqt_string text); -struct miqt_array QKeySequence_KeyBindings(int key); +struct miqt_array /* of QKeySequence* */ QKeySequence_KeyBindings(int key); QKeyCombination* QKeySequence_OperatorSubscript(const QKeySequence* self, unsigned int i); void QKeySequence_OperatorAssign(QKeySequence* self, QKeySequence* other); void QKeySequence_Swap(QKeySequence* self, QKeySequence* other); @@ -55,8 +56,8 @@ bool QKeySequence_OperatorGreaterOrEqual(const QKeySequence* self, QKeySequence* bool QKeySequence_IsDetached(const QKeySequence* self); struct miqt_string QKeySequence_ToString1(const QKeySequence* self, int format); QKeySequence* QKeySequence_FromString2(struct miqt_string str, int format); -struct miqt_array QKeySequence_ListFromString2(struct miqt_string str, int format); -struct miqt_string QKeySequence_ListToString2(struct miqt_array /* of QKeySequence* */ list, int format); +struct miqt_array /* of QKeySequence* */ QKeySequence_ListFromString2(struct miqt_string str, int format); +struct miqt_string QKeySequence_ListToString2(struct miqt_array /* of QKeySequence* */ list, int format); void QKeySequence_Delete(QKeySequence* self); #ifdef __cplusplus diff --git a/qt6/gen_qkeysequenceedit.h b/qt6/gen_qkeysequenceedit.h index ada98c35..eaab381a 100644 --- a/qt6/gen_qkeysequenceedit.h +++ b/qt6/gen_qkeysequenceedit.h @@ -1,5 +1,6 @@ -#ifndef GEN_QKEYSEQUENCEEDIT_H -#define GEN_QKEYSEQUENCEEDIT_H +#pragma once +#ifndef MIQT_QT6_GEN_QKEYSEQUENCEEDIT_H +#define MIQT_QT6_GEN_QKEYSEQUENCEEDIT_H #include #include diff --git a/qt6/gen_qlabel.h b/qt6/gen_qlabel.h index 4009a6d1..8fc9b9bf 100644 --- a/qt6/gen_qlabel.h +++ b/qt6/gen_qlabel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLABEL_H -#define GEN_QLABEL_H +#pragma once +#ifndef MIQT_QT6_GEN_QLABEL_H +#define MIQT_QT6_GEN_QLABEL_H #include #include diff --git a/qt6/gen_qlayout.h b/qt6/gen_qlayout.h index 3e257498..c4757e5c 100644 --- a/qt6/gen_qlayout.h +++ b/qt6/gen_qlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLAYOUT_H -#define GEN_QLAYOUT_H +#pragma once +#ifndef MIQT_QT6_GEN_QLAYOUT_H +#define MIQT_QT6_GEN_QLAYOUT_H #include #include diff --git a/qt6/gen_qlayoutitem.h b/qt6/gen_qlayoutitem.h index 0a27ca6e..ceb32104 100644 --- a/qt6/gen_qlayoutitem.h +++ b/qt6/gen_qlayoutitem.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLAYOUTITEM_H -#define GEN_QLAYOUTITEM_H +#pragma once +#ifndef MIQT_QT6_GEN_QLAYOUTITEM_H +#define MIQT_QT6_GEN_QLAYOUTITEM_H #include #include diff --git a/qt6/gen_qlcdnumber.h b/qt6/gen_qlcdnumber.h index 8aabe6fe..8a7aa75d 100644 --- a/qt6/gen_qlcdnumber.h +++ b/qt6/gen_qlcdnumber.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLCDNUMBER_H -#define GEN_QLCDNUMBER_H +#pragma once +#ifndef MIQT_QT6_GEN_QLCDNUMBER_H +#define MIQT_QT6_GEN_QLCDNUMBER_H #include #include diff --git a/qt6/gen_qlibrary.h b/qt6/gen_qlibrary.h index 180b6db1..e10a54e9 100644 --- a/qt6/gen_qlibrary.h +++ b/qt6/gen_qlibrary.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLIBRARY_H -#define GEN_QLIBRARY_H +#pragma once +#ifndef MIQT_QT6_GEN_QLIBRARY_H +#define MIQT_QT6_GEN_QLIBRARY_H #include #include diff --git a/qt6/gen_qlibraryinfo.cpp b/qt6/gen_qlibraryinfo.cpp index d53b9204..d936c027 100644 --- a/qt6/gen_qlibraryinfo.cpp +++ b/qt6/gen_qlibraryinfo.cpp @@ -42,7 +42,7 @@ struct miqt_string QLibraryInfo_Location(int location) { return _ms; } -struct miqt_array QLibraryInfo_PlatformPluginArguments(struct miqt_string platformName) { +struct miqt_array /* of struct miqt_string */ QLibraryInfo_PlatformPluginArguments(struct miqt_string platformName) { QString platformName_QString = QString::fromUtf8(platformName.data, platformName.len); QStringList _ret = QLibraryInfo::platformPluginArguments(platformName_QString); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt6/gen_qlibraryinfo.h b/qt6/gen_qlibraryinfo.h index 4f8b600f..3d18aaa7 100644 --- a/qt6/gen_qlibraryinfo.h +++ b/qt6/gen_qlibraryinfo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLIBRARYINFO_H -#define GEN_QLIBRARYINFO_H +#pragma once +#ifndef MIQT_QT6_GEN_QLIBRARYINFO_H +#define MIQT_QT6_GEN_QLIBRARYINFO_H #include #include @@ -26,7 +27,7 @@ bool QLibraryInfo_IsDebugBuild(); QVersionNumber* QLibraryInfo_Version(); struct miqt_string QLibraryInfo_Path(int p); struct miqt_string QLibraryInfo_Location(int location); -struct miqt_array QLibraryInfo_PlatformPluginArguments(struct miqt_string platformName); +struct miqt_array /* of struct miqt_string */ QLibraryInfo_PlatformPluginArguments(struct miqt_string platformName); void QLibraryInfo_Delete(QLibraryInfo* self); #ifdef __cplusplus diff --git a/qt6/gen_qline.h b/qt6/gen_qline.h index d17b6d9a..eacc0732 100644 --- a/qt6/gen_qline.h +++ b/qt6/gen_qline.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLINE_H -#define GEN_QLINE_H +#pragma once +#ifndef MIQT_QT6_GEN_QLINE_H +#define MIQT_QT6_GEN_QLINE_H #include #include diff --git a/qt6/gen_qlineedit.h b/qt6/gen_qlineedit.h index 99dbf145..d2c74f72 100644 --- a/qt6/gen_qlineedit.h +++ b/qt6/gen_qlineedit.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLINEEDIT_H -#define GEN_QLINEEDIT_H +#pragma once +#ifndef MIQT_QT6_GEN_QLINEEDIT_H +#define MIQT_QT6_GEN_QLINEEDIT_H #include #include diff --git a/qt6/gen_qlistview.cpp b/qt6/gen_qlistview.cpp index f096783f..fecf0837 100644 --- a/qt6/gen_qlistview.cpp +++ b/qt6/gen_qlistview.cpp @@ -194,7 +194,7 @@ void QListView_SetRootIndex(QListView* self, QModelIndex* index) { self->setRootIndex(*index); } -void QListView_IndexesMoved(QListView* self, struct miqt_array /* of QModelIndex* */ indexes) { +void QListView_IndexesMoved(QListView* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); @@ -215,7 +215,7 @@ void QListView_connect_IndexesMoved(QListView* self, intptr_t slot) { struct miqt_array indexes_out; indexes_out.len = indexes_ret.length(); indexes_out.data = static_cast(indexes_arr); - struct miqt_array sigval1 = indexes_out; + struct miqt_array /* of QModelIndex* */ sigval1 = indexes_out; miqt_exec_callback_QListView_IndexesMoved(slot, sigval1); }); } diff --git a/qt6/gen_qlistview.h b/qt6/gen_qlistview.h index b53e2354..fe04d3c5 100644 --- a/qt6/gen_qlistview.h +++ b/qt6/gen_qlistview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLISTVIEW_H -#define GEN_QLISTVIEW_H +#pragma once +#ifndef MIQT_QT6_GEN_QLISTVIEW_H +#define MIQT_QT6_GEN_QLISTVIEW_H #include #include @@ -73,7 +74,7 @@ QModelIndex* QListView_IndexAt(const QListView* self, QPoint* p); void QListView_DoItemsLayout(QListView* self); void QListView_Reset(QListView* self); void QListView_SetRootIndex(QListView* self, QModelIndex* index); -void QListView_IndexesMoved(QListView* self, struct miqt_array /* of QModelIndex* */ indexes); +void QListView_IndexesMoved(QListView* self, struct miqt_array /* of QModelIndex* */ indexes); void QListView_connect_IndexesMoved(QListView* self, intptr_t slot); struct miqt_string QListView_Tr2(const char* s, const char* c); struct miqt_string QListView_Tr3(const char* s, const char* c, int n); diff --git a/qt6/gen_qlistwidget.cpp b/qt6/gen_qlistwidget.cpp index 0ac9bb24..1040fd0c 100644 --- a/qt6/gen_qlistwidget.cpp +++ b/qt6/gen_qlistwidget.cpp @@ -309,7 +309,7 @@ void QListWidget_InsertItem2(QListWidget* self, int row, struct miqt_string labe self->insertItem(static_cast(row), label_QString); } -void QListWidget_InsertItems(QListWidget* self, int row, struct miqt_array /* of struct miqt_string */ labels) { +void QListWidget_InsertItems(QListWidget* self, int row, struct miqt_array /* of struct miqt_string */ labels) { QStringList labels_QList; labels_QList.reserve(labels.len); struct miqt_string* labels_arr = static_cast(labels.data); @@ -329,7 +329,7 @@ void QListWidget_AddItemWithItem(QListWidget* self, QListWidgetItem* item) { self->addItem(item); } -void QListWidget_AddItems(QListWidget* self, struct miqt_array /* of struct miqt_string */ labels) { +void QListWidget_AddItems(QListWidget* self, struct miqt_array /* of struct miqt_string */ labels) { QStringList labels_QList; labels_QList.reserve(labels.len); struct miqt_string* labels_arr = static_cast(labels.data); @@ -424,7 +424,7 @@ void QListWidget_RemoveItemWidget(QListWidget* self, QListWidgetItem* item) { self->removeItemWidget(item); } -struct miqt_array QListWidget_SelectedItems(const QListWidget* self) { +struct miqt_array /* of QListWidgetItem* */ QListWidget_SelectedItems(const QListWidget* self) { QList _ret = self->selectedItems(); // Convert QList<> from C++ memory to manually-managed C memory QListWidgetItem** _arr = static_cast(malloc(sizeof(QListWidgetItem*) * _ret.length())); @@ -437,7 +437,7 @@ struct miqt_array QListWidget_SelectedItems(const QListWidget* self) { return _out; } -struct miqt_array QListWidget_FindItems(const QListWidget* self, struct miqt_string text, int flags) { +struct miqt_array /* of QListWidgetItem* */ QListWidget_FindItems(const QListWidget* self, struct miqt_string text, int flags) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->findItems(text_QString, static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory @@ -451,7 +451,7 @@ struct miqt_array QListWidget_FindItems(const QListWidget* self, struct miqt_str return _out; } -struct miqt_array QListWidget_Items(const QListWidget* self, QMimeData* data) { +struct miqt_array /* of QListWidgetItem* */ QListWidget_Items(const QListWidget* self, QMimeData* data) { QList _ret = self->items(data); // Convert QList<> from C++ memory to manually-managed C memory QListWidgetItem** _arr = static_cast(malloc(sizeof(QListWidgetItem*) * _ret.length())); diff --git a/qt6/gen_qlistwidget.h b/qt6/gen_qlistwidget.h index 745ad6c8..56eb5f85 100644 --- a/qt6/gen_qlistwidget.h +++ b/qt6/gen_qlistwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLISTWIDGET_H -#define GEN_QLISTWIDGET_H +#pragma once +#ifndef MIQT_QT6_GEN_QLISTWIDGET_H +#define MIQT_QT6_GEN_QLISTWIDGET_H #include #include @@ -108,10 +109,10 @@ QListWidgetItem* QListWidget_Item(const QListWidget* self, int row); int QListWidget_Row(const QListWidget* self, QListWidgetItem* item); void QListWidget_InsertItem(QListWidget* self, int row, QListWidgetItem* item); void QListWidget_InsertItem2(QListWidget* self, int row, struct miqt_string label); -void QListWidget_InsertItems(QListWidget* self, int row, struct miqt_array /* of struct miqt_string */ labels); +void QListWidget_InsertItems(QListWidget* self, int row, struct miqt_array /* of struct miqt_string */ labels); void QListWidget_AddItem(QListWidget* self, struct miqt_string label); void QListWidget_AddItemWithItem(QListWidget* self, QListWidgetItem* item); -void QListWidget_AddItems(QListWidget* self, struct miqt_array /* of struct miqt_string */ labels); +void QListWidget_AddItems(QListWidget* self, struct miqt_array /* of struct miqt_string */ labels); QListWidgetItem* QListWidget_TakeItem(QListWidget* self, int row); int QListWidget_Count(const QListWidget* self); QListWidgetItem* QListWidget_CurrentItem(const QListWidget* self); @@ -133,9 +134,9 @@ bool QListWidget_IsPersistentEditorOpen(const QListWidget* self, QListWidgetItem QWidget* QListWidget_ItemWidget(const QListWidget* self, QListWidgetItem* item); void QListWidget_SetItemWidget(QListWidget* self, QListWidgetItem* item, QWidget* widget); void QListWidget_RemoveItemWidget(QListWidget* self, QListWidgetItem* item); -struct miqt_array QListWidget_SelectedItems(const QListWidget* self); -struct miqt_array QListWidget_FindItems(const QListWidget* self, struct miqt_string text, int flags); -struct miqt_array QListWidget_Items(const QListWidget* self, QMimeData* data); +struct miqt_array /* of QListWidgetItem* */ QListWidget_SelectedItems(const QListWidget* self); +struct miqt_array /* of QListWidgetItem* */ QListWidget_FindItems(const QListWidget* self, struct miqt_string text, int flags); +struct miqt_array /* of QListWidgetItem* */ QListWidget_Items(const QListWidget* self, QMimeData* data); QModelIndex* QListWidget_IndexFromItem(const QListWidget* self, QListWidgetItem* item); QListWidgetItem* QListWidget_ItemFromIndex(const QListWidget* self, QModelIndex* index); void QListWidget_ScrollToItem(QListWidget* self, QListWidgetItem* item); diff --git a/qt6/gen_qlocale.cpp b/qt6/gen_qlocale.cpp index 92fbf2fd..873ab214 100644 --- a/qt6/gen_qlocale.cpp +++ b/qt6/gen_qlocale.cpp @@ -593,7 +593,7 @@ int QLocale_FirstDayOfWeek(const QLocale* self) { return static_cast(_ret); } -struct miqt_array QLocale_Weekdays(const QLocale* self) { +struct miqt_array /* of int */ QLocale_Weekdays(const QLocale* self) { QList _ret = self->weekdays(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -777,7 +777,7 @@ struct miqt_string QLocale_FormattedDataSize(const QLocale* self, long long byte return _ms; } -struct miqt_array QLocale_UiLanguages(const QLocale* self) { +struct miqt_array /* of struct miqt_string */ QLocale_UiLanguages(const QLocale* self) { QStringList _ret = self->uiLanguages(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -897,7 +897,7 @@ QLocale* QLocale_System() { return new QLocale(QLocale::system()); } -struct miqt_array QLocale_MatchingLocales(uint16_t language, uint16_t script, uint16_t territory) { +struct miqt_array /* of QLocale* */ QLocale_MatchingLocales(uint16_t language, uint16_t script, uint16_t territory) { QList _ret = QLocale::matchingLocales(static_cast(language), static_cast(script), static_cast(territory)); // Convert QList<> from C++ memory to manually-managed C memory QLocale** _arr = static_cast(malloc(sizeof(QLocale*) * _ret.length())); @@ -910,7 +910,7 @@ struct miqt_array QLocale_MatchingLocales(uint16_t language, uint16_t script, ui return _out; } -struct miqt_array QLocale_CountriesForLanguage(uint16_t lang) { +struct miqt_array /* of uint16_t */ QLocale_CountriesForLanguage(uint16_t lang) { QList _ret = QLocale::countriesForLanguage(static_cast(lang)); // Convert QList<> from C++ memory to manually-managed C memory uint16_t* _arr = static_cast(malloc(sizeof(uint16_t) * _ret.length())); @@ -945,7 +945,7 @@ struct miqt_string QLocale_QuoteString(const QLocale* self, struct miqt_string s return _ms; } -struct miqt_string QLocale_CreateSeparatedList(const QLocale* self, struct miqt_array /* of struct miqt_string */ strl) { +struct miqt_string QLocale_CreateSeparatedList(const QLocale* self, struct miqt_array /* of struct miqt_string */ strl) { QStringList strl_QList; strl_QList.reserve(strl.len); struct miqt_string* strl_arr = static_cast(strl.data); diff --git a/qt6/gen_qlocale.h b/qt6/gen_qlocale.h index f32eb961..2b5fc188 100644 --- a/qt6/gen_qlocale.h +++ b/qt6/gen_qlocale.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLOCALE_H -#define GEN_QLOCALE_H +#pragma once +#ifndef MIQT_QT6_GEN_QLOCALE_H +#define MIQT_QT6_GEN_QLOCALE_H #include #include @@ -98,7 +99,7 @@ struct miqt_string QLocale_StandaloneMonthName(const QLocale* self, int param1); struct miqt_string QLocale_DayName(const QLocale* self, int param1); struct miqt_string QLocale_StandaloneDayName(const QLocale* self, int param1); int QLocale_FirstDayOfWeek(const QLocale* self); -struct miqt_array QLocale_Weekdays(const QLocale* self); +struct miqt_array /* of int */ QLocale_Weekdays(const QLocale* self); struct miqt_string QLocale_AmText(const QLocale* self); struct miqt_string QLocale_PmText(const QLocale* self); int QLocale_MeasurementSystem(const QLocale* self); @@ -116,7 +117,7 @@ struct miqt_string QLocale_ToCurrencyStringWithUint(const QLocale* self, unsigne struct miqt_string QLocale_ToCurrencyStringWithDouble(const QLocale* self, double param1); struct miqt_string QLocale_ToCurrencyStringWithFloat(const QLocale* self, float i); struct miqt_string QLocale_FormattedDataSize(const QLocale* self, long long bytes); -struct miqt_array QLocale_UiLanguages(const QLocale* self); +struct miqt_array /* of struct miqt_string */ QLocale_UiLanguages(const QLocale* self); struct miqt_string QLocale_LanguageToCode(uint16_t language); struct miqt_string QLocale_TerritoryToCode(uint16_t territory); struct miqt_string QLocale_CountryToCode(uint16_t country); @@ -128,12 +129,12 @@ struct miqt_string QLocale_ScriptToString(uint16_t script); void QLocale_SetDefault(QLocale* locale); QLocale* QLocale_C(); QLocale* QLocale_System(); -struct miqt_array QLocale_MatchingLocales(uint16_t language, uint16_t script, uint16_t territory); -struct miqt_array QLocale_CountriesForLanguage(uint16_t lang); +struct miqt_array /* of QLocale* */ QLocale_MatchingLocales(uint16_t language, uint16_t script, uint16_t territory); +struct miqt_array /* of uint16_t */ QLocale_CountriesForLanguage(uint16_t lang); void QLocale_SetNumberOptions(QLocale* self, int options); int QLocale_NumberOptions(const QLocale* self); struct miqt_string QLocale_QuoteString(const QLocale* self, struct miqt_string str); -struct miqt_string QLocale_CreateSeparatedList(const QLocale* self, struct miqt_array /* of struct miqt_string */ strl); +struct miqt_string QLocale_CreateSeparatedList(const QLocale* self, struct miqt_array /* of struct miqt_string */ strl); int16_t QLocale_ToShort2(const QLocale* self, struct miqt_string s, bool* ok); uint16_t QLocale_ToUShort2(const QLocale* self, struct miqt_string s, bool* ok); int QLocale_ToInt2(const QLocale* self, struct miqt_string s, bool* ok); diff --git a/qt6/gen_qlockfile.h b/qt6/gen_qlockfile.h index 5ced3db6..e202ca02 100644 --- a/qt6/gen_qlockfile.h +++ b/qt6/gen_qlockfile.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLOCKFILE_H -#define GEN_QLOCKFILE_H +#pragma once +#ifndef MIQT_QT6_GEN_QLOCKFILE_H +#define MIQT_QT6_GEN_QLOCKFILE_H #include #include diff --git a/qt6/gen_qloggingcategory.h b/qt6/gen_qloggingcategory.h index c512c522..112ff57b 100644 --- a/qt6/gen_qloggingcategory.h +++ b/qt6/gen_qloggingcategory.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLOGGINGCATEGORY_H -#define GEN_QLOGGINGCATEGORY_H +#pragma once +#ifndef MIQT_QT6_GEN_QLOGGINGCATEGORY_H +#define MIQT_QT6_GEN_QLOGGINGCATEGORY_H #include #include diff --git a/qt6/gen_qmainwindow.cpp b/qt6/gen_qmainwindow.cpp index 176dea7b..59cb9a5c 100644 --- a/qt6/gen_qmainwindow.cpp +++ b/qt6/gen_qmainwindow.cpp @@ -219,7 +219,7 @@ void QMainWindow_TabifyDockWidget(QMainWindow* self, QDockWidget* first, QDockWi self->tabifyDockWidget(first, second); } -struct miqt_array QMainWindow_TabifiedDockWidgets(const QMainWindow* self, QDockWidget* dockwidget) { +struct miqt_array /* of QDockWidget* */ QMainWindow_TabifiedDockWidgets(const QMainWindow* self, QDockWidget* dockwidget) { QList _ret = self->tabifiedDockWidgets(dockwidget); // Convert QList<> from C++ memory to manually-managed C memory QDockWidget** _arr = static_cast(malloc(sizeof(QDockWidget*) * _ret.length())); @@ -245,7 +245,7 @@ int QMainWindow_DockWidgetArea(const QMainWindow* self, QDockWidget* dockwidget) return static_cast(_ret); } -void QMainWindow_ResizeDocks(QMainWindow* self, struct miqt_array /* of QDockWidget* */ docks, struct miqt_array /* of int */ sizes, int orientation) { +void QMainWindow_ResizeDocks(QMainWindow* self, struct miqt_array /* of QDockWidget* */ docks, struct miqt_array /* of int */ sizes, int orientation) { QList docks_QList; docks_QList.reserve(docks.len); QDockWidget** docks_arr = static_cast(docks.data); diff --git a/qt6/gen_qmainwindow.h b/qt6/gen_qmainwindow.h index f46224ff..26385e88 100644 --- a/qt6/gen_qmainwindow.h +++ b/qt6/gen_qmainwindow.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMAINWINDOW_H -#define GEN_QMAINWINDOW_H +#pragma once +#ifndef MIQT_QT6_GEN_QMAINWINDOW_H +#define MIQT_QT6_GEN_QMAINWINDOW_H #include #include @@ -86,11 +87,11 @@ void QMainWindow_AddDockWidget(QMainWindow* self, int area, QDockWidget* dockwid void QMainWindow_AddDockWidget2(QMainWindow* self, int area, QDockWidget* dockwidget, int orientation); void QMainWindow_SplitDockWidget(QMainWindow* self, QDockWidget* after, QDockWidget* dockwidget, int orientation); void QMainWindow_TabifyDockWidget(QMainWindow* self, QDockWidget* first, QDockWidget* second); -struct miqt_array QMainWindow_TabifiedDockWidgets(const QMainWindow* self, QDockWidget* dockwidget); +struct miqt_array /* of QDockWidget* */ QMainWindow_TabifiedDockWidgets(const QMainWindow* self, QDockWidget* dockwidget); void QMainWindow_RemoveDockWidget(QMainWindow* self, QDockWidget* dockwidget); bool QMainWindow_RestoreDockWidget(QMainWindow* self, QDockWidget* dockwidget); int QMainWindow_DockWidgetArea(const QMainWindow* self, QDockWidget* dockwidget); -void QMainWindow_ResizeDocks(QMainWindow* self, struct miqt_array /* of QDockWidget* */ docks, struct miqt_array /* of int */ sizes, int orientation); +void QMainWindow_ResizeDocks(QMainWindow* self, struct miqt_array /* of QDockWidget* */ docks, struct miqt_array /* of int */ sizes, int orientation); struct miqt_string QMainWindow_SaveState(const QMainWindow* self); bool QMainWindow_RestoreState(QMainWindow* self, struct miqt_string state); QMenu* QMainWindow_CreatePopupMenu(QMainWindow* self); diff --git a/qt6/gen_qmargins.h b/qt6/gen_qmargins.h index 9c672490..3b4cf10f 100644 --- a/qt6/gen_qmargins.h +++ b/qt6/gen_qmargins.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMARGINS_H -#define GEN_QMARGINS_H +#pragma once +#ifndef MIQT_QT6_GEN_QMARGINS_H +#define MIQT_QT6_GEN_QMARGINS_H #include #include diff --git a/qt6/gen_qmatrix4x4.go b/qt6/gen_qmatrix4x4.go index eadf6f70..edbe5bdc 100644 --- a/qt6/gen_qmatrix4x4.go +++ b/qt6/gen_qmatrix4x4.go @@ -324,15 +324,15 @@ func (this *QMatrix4x4) MapRectWithRect(rect *QRectF) *QRectF { } func (this *QMatrix4x4) Data() *float32 { - return (*float32)(C.QMatrix4x4_Data(this.h)) + return (*float32)(unsafe.Pointer(C.QMatrix4x4_Data(this.h))) } func (this *QMatrix4x4) Data2() *float32 { - return (*float32)(C.QMatrix4x4_Data2(this.h)) + return (*float32)(unsafe.Pointer(C.QMatrix4x4_Data2(this.h))) } func (this *QMatrix4x4) ConstData() *float32 { - return (*float32)(C.QMatrix4x4_ConstData(this.h)) + return (*float32)(unsafe.Pointer(C.QMatrix4x4_ConstData(this.h))) } func (this *QMatrix4x4) Optimize() { diff --git a/qt6/gen_qmatrix4x4.h b/qt6/gen_qmatrix4x4.h index ec91f403..c2405440 100644 --- a/qt6/gen_qmatrix4x4.h +++ b/qt6/gen_qmatrix4x4.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMATRIX4X4_H -#define GEN_QMATRIX4X4_H +#pragma once +#ifndef MIQT_QT6_GEN_QMATRIX4X4_H +#define MIQT_QT6_GEN_QMATRIX4X4_H #include #include diff --git a/qt6/gen_qmdiarea.cpp b/qt6/gen_qmdiarea.cpp index 028d6944..2c673ff5 100644 --- a/qt6/gen_qmdiarea.cpp +++ b/qt6/gen_qmdiarea.cpp @@ -55,7 +55,7 @@ QMdiSubWindow* QMdiArea_ActiveSubWindow(const QMdiArea* self) { return self->activeSubWindow(); } -struct miqt_array QMdiArea_SubWindowList(const QMdiArea* self) { +struct miqt_array /* of QMdiSubWindow* */ QMdiArea_SubWindowList(const QMdiArea* self) { QList _ret = self->subWindowList(); // Convert QList<> from C++ memory to manually-managed C memory QMdiSubWindow** _arr = static_cast(malloc(sizeof(QMdiSubWindow*) * _ret.length())); @@ -213,7 +213,7 @@ struct miqt_string QMdiArea_Tr3(const char* s, const char* c, int n) { return _ms; } -struct miqt_array QMdiArea_SubWindowList1(const QMdiArea* self, int order) { +struct miqt_array /* of QMdiSubWindow* */ QMdiArea_SubWindowList1(const QMdiArea* self, int order) { QList _ret = self->subWindowList(static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QMdiSubWindow** _arr = static_cast(malloc(sizeof(QMdiSubWindow*) * _ret.length())); diff --git a/qt6/gen_qmdiarea.h b/qt6/gen_qmdiarea.h index 46643ae8..ecb69ee5 100644 --- a/qt6/gen_qmdiarea.h +++ b/qt6/gen_qmdiarea.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMDIAREA_H -#define GEN_QMDIAREA_H +#pragma once +#ifndef MIQT_QT6_GEN_QMDIAREA_H +#define MIQT_QT6_GEN_QMDIAREA_H #include #include @@ -38,7 +39,7 @@ QSize* QMdiArea_SizeHint(const QMdiArea* self); QSize* QMdiArea_MinimumSizeHint(const QMdiArea* self); QMdiSubWindow* QMdiArea_CurrentSubWindow(const QMdiArea* self); QMdiSubWindow* QMdiArea_ActiveSubWindow(const QMdiArea* self); -struct miqt_array QMdiArea_SubWindowList(const QMdiArea* self); +struct miqt_array /* of QMdiSubWindow* */ QMdiArea_SubWindowList(const QMdiArea* self); QMdiSubWindow* QMdiArea_AddSubWindow(QMdiArea* self, QWidget* widget); void QMdiArea_RemoveSubWindow(QMdiArea* self, QWidget* widget); QBrush* QMdiArea_Background(const QMdiArea* self); @@ -70,7 +71,7 @@ void QMdiArea_ActivateNextSubWindow(QMdiArea* self); void QMdiArea_ActivatePreviousSubWindow(QMdiArea* self); struct miqt_string QMdiArea_Tr2(const char* s, const char* c); struct miqt_string QMdiArea_Tr3(const char* s, const char* c, int n); -struct miqt_array QMdiArea_SubWindowList1(const QMdiArea* self, int order); +struct miqt_array /* of QMdiSubWindow* */ QMdiArea_SubWindowList1(const QMdiArea* self, int order); QMdiSubWindow* QMdiArea_AddSubWindow2(QMdiArea* self, QWidget* widget, int flags); void QMdiArea_SetOption2(QMdiArea* self, int option, bool on); void QMdiArea_Delete(QMdiArea* self); diff --git a/qt6/gen_qmdisubwindow.h b/qt6/gen_qmdisubwindow.h index d7c1f8b4..fcae6068 100644 --- a/qt6/gen_qmdisubwindow.h +++ b/qt6/gen_qmdisubwindow.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMDISUBWINDOW_H -#define GEN_QMDISUBWINDOW_H +#pragma once +#ifndef MIQT_QT6_GEN_QMDISUBWINDOW_H +#define MIQT_QT6_GEN_QMDISUBWINDOW_H #include #include diff --git a/qt6/gen_qmenu.cpp b/qt6/gen_qmenu.cpp index 3458d7d9..705a0be1 100644 --- a/qt6/gen_qmenu.cpp +++ b/qt6/gen_qmenu.cpp @@ -157,7 +157,7 @@ QAction* QMenu_ExecWithPos(QMenu* self, QPoint* pos) { return self->exec(*pos); } -QAction* QMenu_Exec2(struct miqt_array /* of QAction* */ actions, QPoint* pos) { +QAction* QMenu_Exec2(struct miqt_array /* of QAction* */ actions, QPoint* pos) { QList actions_QList; actions_QList.reserve(actions.len); QAction** actions_arr = static_cast(actions.data); @@ -303,7 +303,7 @@ QAction* QMenu_Exec22(QMenu* self, QPoint* pos, QAction* at) { return self->exec(*pos, at); } -QAction* QMenu_Exec3(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at) { +QAction* QMenu_Exec3(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at) { QList actions_QList; actions_QList.reserve(actions.len); QAction** actions_arr = static_cast(actions.data); @@ -313,7 +313,7 @@ QAction* QMenu_Exec3(struct miqt_array /* of QAction* */ actions, QPoint* pos, Q return QMenu::exec(actions_QList, *pos, at); } -QAction* QMenu_Exec4(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at, QWidget* parent) { +QAction* QMenu_Exec4(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at, QWidget* parent) { QList actions_QList; actions_QList.reserve(actions.len); QAction** actions_arr = static_cast(actions.data); diff --git a/qt6/gen_qmenu.h b/qt6/gen_qmenu.h index eb0c0582..4b2280b6 100644 --- a/qt6/gen_qmenu.h +++ b/qt6/gen_qmenu.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMENU_H -#define GEN_QMENU_H +#pragma once +#ifndef MIQT_QT6_GEN_QMENU_H +#define MIQT_QT6_GEN_QMENU_H #include #include @@ -65,7 +66,7 @@ QAction* QMenu_ActiveAction(const QMenu* self); void QMenu_Popup(QMenu* self, QPoint* pos); QAction* QMenu_Exec(QMenu* self); QAction* QMenu_ExecWithPos(QMenu* self, QPoint* pos); -QAction* QMenu_Exec2(struct miqt_array /* of QAction* */ actions, QPoint* pos); +QAction* QMenu_Exec2(struct miqt_array /* of QAction* */ actions, QPoint* pos); QSize* QMenu_SizeHint(const QMenu* self); QRect* QMenu_ActionGeometry(const QMenu* self, QAction* param1); QAction* QMenu_ActionAt(const QMenu* self, QPoint* param1); @@ -92,8 +93,8 @@ struct miqt_string QMenu_Tr2(const char* s, const char* c); struct miqt_string QMenu_Tr3(const char* s, const char* c, int n); void QMenu_Popup2(QMenu* self, QPoint* pos, QAction* at); QAction* QMenu_Exec22(QMenu* self, QPoint* pos, QAction* at); -QAction* QMenu_Exec3(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at); -QAction* QMenu_Exec4(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at, QWidget* parent); +QAction* QMenu_Exec3(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at); +QAction* QMenu_Exec4(struct miqt_array /* of QAction* */ actions, QPoint* pos, QAction* at, QWidget* parent); void QMenu_Delete(QMenu* self); #ifdef __cplusplus diff --git a/qt6/gen_qmenubar.h b/qt6/gen_qmenubar.h index 2c0eaa86..b3cb12ba 100644 --- a/qt6/gen_qmenubar.h +++ b/qt6/gen_qmenubar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMENUBAR_H -#define GEN_QMENUBAR_H +#pragma once +#ifndef MIQT_QT6_GEN_QMENUBAR_H +#define MIQT_QT6_GEN_QMENUBAR_H #include #include diff --git a/qt6/gen_qmessageauthenticationcode.h b/qt6/gen_qmessageauthenticationcode.h index 1bc02be9..25342ff9 100644 --- a/qt6/gen_qmessageauthenticationcode.h +++ b/qt6/gen_qmessageauthenticationcode.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMESSAGEAUTHENTICATIONCODE_H -#define GEN_QMESSAGEAUTHENTICATIONCODE_H +#pragma once +#ifndef MIQT_QT6_GEN_QMESSAGEAUTHENTICATIONCODE_H +#define MIQT_QT6_GEN_QMESSAGEAUTHENTICATIONCODE_H #include #include diff --git a/qt6/gen_qmessagebox.cpp b/qt6/gen_qmessagebox.cpp index bae31d92..88c0e0fc 100644 --- a/qt6/gen_qmessagebox.cpp +++ b/qt6/gen_qmessagebox.cpp @@ -99,7 +99,7 @@ void QMessageBox_RemoveButton(QMessageBox* self, QAbstractButton* button) { self->removeButton(button); } -struct miqt_array QMessageBox_Buttons(const QMessageBox* self) { +struct miqt_array /* of QAbstractButton* */ QMessageBox_Buttons(const QMessageBox* self) { QList _ret = self->buttons(); // Convert QList<> from C++ memory to manually-managed C memory QAbstractButton** _arr = static_cast(malloc(sizeof(QAbstractButton*) * _ret.length())); diff --git a/qt6/gen_qmessagebox.h b/qt6/gen_qmessagebox.h index cded259e..3e20deea 100644 --- a/qt6/gen_qmessagebox.h +++ b/qt6/gen_qmessagebox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMESSAGEBOX_H -#define GEN_QMESSAGEBOX_H +#pragma once +#ifndef MIQT_QT6_GEN_QMESSAGEBOX_H +#define MIQT_QT6_GEN_QMESSAGEBOX_H #include #include @@ -47,7 +48,7 @@ void QMessageBox_AddButton(QMessageBox* self, QAbstractButton* button, int role) QPushButton* QMessageBox_AddButton2(QMessageBox* self, struct miqt_string text, int role); QPushButton* QMessageBox_AddButtonWithButton(QMessageBox* self, int button); void QMessageBox_RemoveButton(QMessageBox* self, QAbstractButton* button); -struct miqt_array QMessageBox_Buttons(const QMessageBox* self); +struct miqt_array /* of QAbstractButton* */ QMessageBox_Buttons(const QMessageBox* self); int QMessageBox_ButtonRole(const QMessageBox* self, QAbstractButton* button); void QMessageBox_SetStandardButtons(QMessageBox* self, int buttons); int QMessageBox_StandardButtons(const QMessageBox* self); diff --git a/qt6/gen_qmetacontainer.h b/qt6/gen_qmetacontainer.h index daf5b336..06a16ad6 100644 --- a/qt6/gen_qmetacontainer.h +++ b/qt6/gen_qmetacontainer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMETACONTAINER_H -#define GEN_QMETACONTAINER_H +#pragma once +#ifndef MIQT_QT6_GEN_QMETACONTAINER_H +#define MIQT_QT6_GEN_QMETACONTAINER_H #include #include diff --git a/qt6/gen_qmetaobject.cpp b/qt6/gen_qmetaobject.cpp index cb1c335b..a9fa5527 100644 --- a/qt6/gen_qmetaobject.cpp +++ b/qt6/gen_qmetaobject.cpp @@ -69,7 +69,7 @@ void QMetaMethod_GetParameterTypes(const QMetaMethod* self, int* types) { self->getParameterTypes(static_cast(types)); } -struct miqt_array QMetaMethod_ParameterTypes(const QMetaMethod* self) { +struct miqt_array /* of struct miqt_string */ QMetaMethod_ParameterTypes(const QMetaMethod* self) { QList _ret = self->parameterTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -96,7 +96,7 @@ struct miqt_string QMetaMethod_ParameterTypeName(const QMetaMethod* self, int in return _ms; } -struct miqt_array QMetaMethod_ParameterNames(const QMetaMethod* self) { +struct miqt_array /* of struct miqt_string */ QMetaMethod_ParameterNames(const QMetaMethod* self) { QList _ret = self->parameterNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qmetaobject.h b/qt6/gen_qmetaobject.h index 26250047..c359d3aa 100644 --- a/qt6/gen_qmetaobject.h +++ b/qt6/gen_qmetaobject.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMETAOBJECT_H -#define GEN_QMETAOBJECT_H +#pragma once +#ifndef MIQT_QT6_GEN_QMETAOBJECT_H +#define MIQT_QT6_GEN_QMETAOBJECT_H #include #include @@ -52,9 +53,9 @@ int QMetaMethod_ParameterCount(const QMetaMethod* self); int QMetaMethod_ParameterType(const QMetaMethod* self, int index); QMetaType* QMetaMethod_ParameterMetaType(const QMetaMethod* self, int index); void QMetaMethod_GetParameterTypes(const QMetaMethod* self, int* types); -struct miqt_array QMetaMethod_ParameterTypes(const QMetaMethod* self); +struct miqt_array /* of struct miqt_string */ QMetaMethod_ParameterTypes(const QMetaMethod* self); struct miqt_string QMetaMethod_ParameterTypeName(const QMetaMethod* self, int index); -struct miqt_array QMetaMethod_ParameterNames(const QMetaMethod* self); +struct miqt_array /* of struct miqt_string */ QMetaMethod_ParameterNames(const QMetaMethod* self); const char* QMetaMethod_Tag(const QMetaMethod* self); int QMetaMethod_Access(const QMetaMethod* self); int QMetaMethod_MethodType(const QMetaMethod* self); diff --git a/qt6/gen_qmetatype.h b/qt6/gen_qmetatype.h index 3a58af3d..11ee1101 100644 --- a/qt6/gen_qmetatype.h +++ b/qt6/gen_qmetatype.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMETATYPE_H -#define GEN_QMETATYPE_H +#pragma once +#ifndef MIQT_QT6_GEN_QMETATYPE_H +#define MIQT_QT6_GEN_QMETATYPE_H #include #include diff --git a/qt6/gen_qmimedata.cpp b/qt6/gen_qmimedata.cpp index 83b7d514..2431b508 100644 --- a/qt6/gen_qmimedata.cpp +++ b/qt6/gen_qmimedata.cpp @@ -34,7 +34,7 @@ struct miqt_string QMimeData_Tr(const char* s) { return _ms; } -struct miqt_array QMimeData_Urls(const QMimeData* self) { +struct miqt_array /* of QUrl* */ QMimeData_Urls(const QMimeData* self) { QList _ret = self->urls(); // Convert QList<> from C++ memory to manually-managed C memory QUrl** _arr = static_cast(malloc(sizeof(QUrl*) * _ret.length())); @@ -47,7 +47,7 @@ struct miqt_array QMimeData_Urls(const QMimeData* self) { return _out; } -void QMimeData_SetUrls(QMimeData* self, struct miqt_array /* of QUrl* */ urls) { +void QMimeData_SetUrls(QMimeData* self, struct miqt_array /* of QUrl* */ urls) { QList urls_QList; urls_QList.reserve(urls.len); QUrl** urls_arr = static_cast(urls.data); @@ -151,7 +151,7 @@ bool QMimeData_HasFormat(const QMimeData* self, struct miqt_string mimetype) { return self->hasFormat(mimetype_QString); } -struct miqt_array QMimeData_Formats(const QMimeData* self) { +struct miqt_array /* of struct miqt_string */ QMimeData_Formats(const QMimeData* self) { QStringList _ret = self->formats(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qmimedata.h b/qt6/gen_qmimedata.h index 62af47d4..ef85c779 100644 --- a/qt6/gen_qmimedata.h +++ b/qt6/gen_qmimedata.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMIMEDATA_H -#define GEN_QMIMEDATA_H +#pragma once +#ifndef MIQT_QT6_GEN_QMIMEDATA_H +#define MIQT_QT6_GEN_QMIMEDATA_H #include #include @@ -31,8 +32,8 @@ QMimeData* QMimeData_new(); QMetaObject* QMimeData_MetaObject(const QMimeData* self); void* QMimeData_Metacast(QMimeData* self, const char* param1); struct miqt_string QMimeData_Tr(const char* s); -struct miqt_array QMimeData_Urls(const QMimeData* self); -void QMimeData_SetUrls(QMimeData* self, struct miqt_array /* of QUrl* */ urls); +struct miqt_array /* of QUrl* */ QMimeData_Urls(const QMimeData* self); +void QMimeData_SetUrls(QMimeData* self, struct miqt_array /* of QUrl* */ urls); bool QMimeData_HasUrls(const QMimeData* self); struct miqt_string QMimeData_Text(const QMimeData* self); void QMimeData_SetText(QMimeData* self, struct miqt_string text); @@ -50,7 +51,7 @@ struct miqt_string QMimeData_Data(const QMimeData* self, struct miqt_string mime void QMimeData_SetData(QMimeData* self, struct miqt_string mimetype, struct miqt_string data); void QMimeData_RemoveFormat(QMimeData* self, struct miqt_string mimetype); bool QMimeData_HasFormat(const QMimeData* self, struct miqt_string mimetype); -struct miqt_array QMimeData_Formats(const QMimeData* self); +struct miqt_array /* of struct miqt_string */ QMimeData_Formats(const QMimeData* self); void QMimeData_Clear(QMimeData* self); struct miqt_string QMimeData_Tr2(const char* s, const char* c); struct miqt_string QMimeData_Tr3(const char* s, const char* c, int n); diff --git a/qt6/gen_qmimedatabase.cpp b/qt6/gen_qmimedatabase.cpp index 13efa053..0e4cc76b 100644 --- a/qt6/gen_qmimedatabase.cpp +++ b/qt6/gen_qmimedatabase.cpp @@ -30,7 +30,7 @@ QMimeType* QMimeDatabase_MimeTypeForFileWithFileInfo(const QMimeDatabase* self, return new QMimeType(self->mimeTypeForFile(*fileInfo)); } -struct miqt_array QMimeDatabase_MimeTypesForFileName(const QMimeDatabase* self, struct miqt_string fileName) { +struct miqt_array /* of QMimeType* */ QMimeDatabase_MimeTypesForFileName(const QMimeDatabase* self, struct miqt_string fileName) { QString fileName_QString = QString::fromUtf8(fileName.data, fileName.len); QList _ret = self->mimeTypesForFileName(fileName_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -80,7 +80,7 @@ struct miqt_string QMimeDatabase_SuffixForFileName(const QMimeDatabase* self, st return _ms; } -struct miqt_array QMimeDatabase_AllMimeTypes(const QMimeDatabase* self) { +struct miqt_array /* of QMimeType* */ QMimeDatabase_AllMimeTypes(const QMimeDatabase* self) { QList _ret = self->allMimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory QMimeType** _arr = static_cast(malloc(sizeof(QMimeType*) * _ret.length())); diff --git a/qt6/gen_qmimedatabase.h b/qt6/gen_qmimedatabase.h index 4df66c7c..2bbebd5e 100644 --- a/qt6/gen_qmimedatabase.h +++ b/qt6/gen_qmimedatabase.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMIMEDATABASE_H -#define GEN_QMIMEDATABASE_H +#pragma once +#ifndef MIQT_QT6_GEN_QMIMEDATABASE_H +#define MIQT_QT6_GEN_QMIMEDATABASE_H #include #include @@ -33,14 +34,14 @@ QMimeDatabase* QMimeDatabase_new(); QMimeType* QMimeDatabase_MimeTypeForName(const QMimeDatabase* self, struct miqt_string nameOrAlias); QMimeType* QMimeDatabase_MimeTypeForFile(const QMimeDatabase* self, struct miqt_string fileName); QMimeType* QMimeDatabase_MimeTypeForFileWithFileInfo(const QMimeDatabase* self, QFileInfo* fileInfo); -struct miqt_array QMimeDatabase_MimeTypesForFileName(const QMimeDatabase* self, struct miqt_string fileName); +struct miqt_array /* of QMimeType* */ QMimeDatabase_MimeTypesForFileName(const QMimeDatabase* self, struct miqt_string fileName); QMimeType* QMimeDatabase_MimeTypeForData(const QMimeDatabase* self, struct miqt_string data); QMimeType* QMimeDatabase_MimeTypeForDataWithDevice(const QMimeDatabase* self, QIODevice* device); QMimeType* QMimeDatabase_MimeTypeForUrl(const QMimeDatabase* self, QUrl* url); QMimeType* QMimeDatabase_MimeTypeForFileNameAndData(const QMimeDatabase* self, struct miqt_string fileName, QIODevice* device); QMimeType* QMimeDatabase_MimeTypeForFileNameAndData2(const QMimeDatabase* self, struct miqt_string fileName, struct miqt_string data); struct miqt_string QMimeDatabase_SuffixForFileName(const QMimeDatabase* self, struct miqt_string fileName); -struct miqt_array QMimeDatabase_AllMimeTypes(const QMimeDatabase* self); +struct miqt_array /* of QMimeType* */ QMimeDatabase_AllMimeTypes(const QMimeDatabase* self); QMimeType* QMimeDatabase_MimeTypeForFile2(const QMimeDatabase* self, struct miqt_string fileName, int mode); QMimeType* QMimeDatabase_MimeTypeForFile22(const QMimeDatabase* self, QFileInfo* fileInfo, int mode); void QMimeDatabase_Delete(QMimeDatabase* self); diff --git a/qt6/gen_qmimetype.cpp b/qt6/gen_qmimetype.cpp index b02978a3..a2e96d57 100644 --- a/qt6/gen_qmimetype.cpp +++ b/qt6/gen_qmimetype.cpp @@ -83,7 +83,7 @@ struct miqt_string QMimeType_IconName(const QMimeType* self) { return _ms; } -struct miqt_array QMimeType_GlobPatterns(const QMimeType* self) { +struct miqt_array /* of struct miqt_string */ QMimeType_GlobPatterns(const QMimeType* self) { QStringList _ret = self->globPatterns(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -103,7 +103,7 @@ struct miqt_array QMimeType_GlobPatterns(const QMimeType* self) { return _out; } -struct miqt_array QMimeType_ParentMimeTypes(const QMimeType* self) { +struct miqt_array /* of struct miqt_string */ QMimeType_ParentMimeTypes(const QMimeType* self) { QStringList _ret = self->parentMimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -123,7 +123,7 @@ struct miqt_array QMimeType_ParentMimeTypes(const QMimeType* self) { return _out; } -struct miqt_array QMimeType_AllAncestors(const QMimeType* self) { +struct miqt_array /* of struct miqt_string */ QMimeType_AllAncestors(const QMimeType* self) { QStringList _ret = self->allAncestors(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -143,7 +143,7 @@ struct miqt_array QMimeType_AllAncestors(const QMimeType* self) { return _out; } -struct miqt_array QMimeType_Aliases(const QMimeType* self) { +struct miqt_array /* of struct miqt_string */ QMimeType_Aliases(const QMimeType* self) { QStringList _ret = self->aliases(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -163,7 +163,7 @@ struct miqt_array QMimeType_Aliases(const QMimeType* self) { return _out; } -struct miqt_array QMimeType_Suffixes(const QMimeType* self) { +struct miqt_array /* of struct miqt_string */ QMimeType_Suffixes(const QMimeType* self) { QStringList _ret = self->suffixes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qmimetype.h b/qt6/gen_qmimetype.h index eb2b597b..44f7d098 100644 --- a/qt6/gen_qmimetype.h +++ b/qt6/gen_qmimetype.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMIMETYPE_H -#define GEN_QMIMETYPE_H +#pragma once +#ifndef MIQT_QT6_GEN_QMIMETYPE_H +#define MIQT_QT6_GEN_QMIMETYPE_H #include #include @@ -31,11 +32,11 @@ struct miqt_string QMimeType_Name(const QMimeType* self); struct miqt_string QMimeType_Comment(const QMimeType* self); struct miqt_string QMimeType_GenericIconName(const QMimeType* self); struct miqt_string QMimeType_IconName(const QMimeType* self); -struct miqt_array QMimeType_GlobPatterns(const QMimeType* self); -struct miqt_array QMimeType_ParentMimeTypes(const QMimeType* self); -struct miqt_array QMimeType_AllAncestors(const QMimeType* self); -struct miqt_array QMimeType_Aliases(const QMimeType* self); -struct miqt_array QMimeType_Suffixes(const QMimeType* self); +struct miqt_array /* of struct miqt_string */ QMimeType_GlobPatterns(const QMimeType* self); +struct miqt_array /* of struct miqt_string */ QMimeType_ParentMimeTypes(const QMimeType* self); +struct miqt_array /* of struct miqt_string */ QMimeType_AllAncestors(const QMimeType* self); +struct miqt_array /* of struct miqt_string */ QMimeType_Aliases(const QMimeType* self); +struct miqt_array /* of struct miqt_string */ QMimeType_Suffixes(const QMimeType* self); struct miqt_string QMimeType_PreferredSuffix(const QMimeType* self); bool QMimeType_Inherits(const QMimeType* self, struct miqt_string mimeTypeName); struct miqt_string QMimeType_FilterString(const QMimeType* self); diff --git a/qt6/gen_qmovie.cpp b/qt6/gen_qmovie.cpp index bd4ac268..69382c8e 100644 --- a/qt6/gen_qmovie.cpp +++ b/qt6/gen_qmovie.cpp @@ -74,7 +74,7 @@ struct miqt_string QMovie_Tr(const char* s) { return _ms; } -struct miqt_array QMovie_SupportedFormats() { +struct miqt_array /* of struct miqt_string */ QMovie_SupportedFormats() { QList _ret = QMovie::supportedFormats(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qmovie.h b/qt6/gen_qmovie.h index 1c583c4a..05e67a46 100644 --- a/qt6/gen_qmovie.h +++ b/qt6/gen_qmovie.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMOVIE_H -#define GEN_QMOVIE_H +#pragma once +#ifndef MIQT_QT6_GEN_QMOVIE_H +#define MIQT_QT6_GEN_QMOVIE_H #include #include @@ -48,7 +49,7 @@ QMovie* QMovie_new8(struct miqt_string fileName, struct miqt_string format, QObj QMetaObject* QMovie_MetaObject(const QMovie* self); void* QMovie_Metacast(QMovie* self, const char* param1); struct miqt_string QMovie_Tr(const char* s); -struct miqt_array QMovie_SupportedFormats(); +struct miqt_array /* of struct miqt_string */ QMovie_SupportedFormats(); void QMovie_SetDevice(QMovie* self, QIODevice* device); QIODevice* QMovie_Device(const QMovie* self); void QMovie_SetFileName(QMovie* self, struct miqt_string fileName); diff --git a/qt6/gen_qmutex.h b/qt6/gen_qmutex.h index 6333c00a..9709623b 100644 --- a/qt6/gen_qmutex.h +++ b/qt6/gen_qmutex.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMUTEX_H -#define GEN_QMUTEX_H +#pragma once +#ifndef MIQT_QT6_GEN_QMUTEX_H +#define MIQT_QT6_GEN_QMUTEX_H #include #include diff --git a/qt6/gen_qnamespace.h b/qt6/gen_qnamespace.h index 06b05220..40f5dd71 100644 --- a/qt6/gen_qnamespace.h +++ b/qt6/gen_qnamespace.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNAMESPACE_H -#define GEN_QNAMESPACE_H +#pragma once +#ifndef MIQT_QT6_GEN_QNAMESPACE_H +#define MIQT_QT6_GEN_QNAMESPACE_H #include #include diff --git a/qt6/gen_qobject.cpp b/qt6/gen_qobject.cpp index adb9d57b..af3bc920 100644 --- a/qt6/gen_qobject.cpp +++ b/qt6/gen_qobject.cpp @@ -112,7 +112,7 @@ void QObject_KillTimer(QObject* self, int id) { self->killTimer(static_cast(id)); } -struct miqt_array QObject_Children(const QObject* self) { +struct miqt_array /* of QObject* */ QObject_Children(const QObject* self) { const QObjectList& _ret = self->children(); // Convert QList<> from C++ memory to manually-managed C memory QObject** _arr = static_cast(malloc(sizeof(QObject*) * _ret.length())); @@ -169,7 +169,7 @@ QVariant* QObject_Property(const QObject* self, const char* name) { return new QVariant(self->property(name)); } -struct miqt_array QObject_DynamicPropertyNames(const QObject* self) { +struct miqt_array /* of struct miqt_string */ QObject_DynamicPropertyNames(const QObject* self) { QList _ret = self->dynamicPropertyNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qobject.h b/qt6/gen_qobject.h index 1f23589b..1341e288 100644 --- a/qt6/gen_qobject.h +++ b/qt6/gen_qobject.h @@ -1,5 +1,6 @@ -#ifndef GEN_QOBJECT_H -#define GEN_QOBJECT_H +#pragma once +#ifndef MIQT_QT6_GEN_QOBJECT_H +#define MIQT_QT6_GEN_QOBJECT_H #include #include @@ -66,7 +67,7 @@ QThread* QObject_Thread(const QObject* self); void QObject_MoveToThread(QObject* self, QThread* thread); int QObject_StartTimer(QObject* self, int interval); void QObject_KillTimer(QObject* self, int id); -struct miqt_array QObject_Children(const QObject* self); +struct miqt_array /* of QObject* */ QObject_Children(const QObject* self); void QObject_SetParent(QObject* self, QObject* parent); void QObject_InstallEventFilter(QObject* self, QObject* filterObj); void QObject_RemoveEventFilter(QObject* self, QObject* obj); @@ -78,7 +79,7 @@ void QObject_DumpObjectTree(const QObject* self); void QObject_DumpObjectInfo(const QObject* self); bool QObject_SetProperty(QObject* self, const char* name, QVariant* value); QVariant* QObject_Property(const QObject* self, const char* name); -struct miqt_array QObject_DynamicPropertyNames(const QObject* self); +struct miqt_array /* of struct miqt_string */ QObject_DynamicPropertyNames(const QObject* self); QBindingStorage* QObject_BindingStorage(QObject* self); QBindingStorage* QObject_BindingStorage2(const QObject* self); void QObject_Destroyed(QObject* self); diff --git a/qt6/gen_qobjectcleanuphandler.h b/qt6/gen_qobjectcleanuphandler.h index 39e4bbcc..02c5b4d7 100644 --- a/qt6/gen_qobjectcleanuphandler.h +++ b/qt6/gen_qobjectcleanuphandler.h @@ -1,5 +1,6 @@ -#ifndef GEN_QOBJECTCLEANUPHANDLER_H -#define GEN_QOBJECTCLEANUPHANDLER_H +#pragma once +#ifndef MIQT_QT6_GEN_QOBJECTCLEANUPHANDLER_H +#define MIQT_QT6_GEN_QOBJECTCLEANUPHANDLER_H #include #include diff --git a/qt6/gen_qobjectdefs.h b/qt6/gen_qobjectdefs.h index ec2eee41..95f1b082 100644 --- a/qt6/gen_qobjectdefs.h +++ b/qt6/gen_qobjectdefs.h @@ -1,5 +1,6 @@ -#ifndef GEN_QOBJECTDEFS_H -#define GEN_QOBJECTDEFS_H +#pragma once +#ifndef MIQT_QT6_GEN_QOBJECTDEFS_H +#define MIQT_QT6_GEN_QOBJECTDEFS_H #include #include diff --git a/qt6/gen_qoffscreensurface.h b/qt6/gen_qoffscreensurface.h index 55aaffdc..4d2f6324 100644 --- a/qt6/gen_qoffscreensurface.h +++ b/qt6/gen_qoffscreensurface.h @@ -1,5 +1,6 @@ -#ifndef GEN_QOFFSCREENSURFACE_H -#define GEN_QOFFSCREENSURFACE_H +#pragma once +#ifndef MIQT_QT6_GEN_QOFFSCREENSURFACE_H +#define MIQT_QT6_GEN_QOFFSCREENSURFACE_H #include #include diff --git a/qt6/gen_qoperatingsystemversion.h b/qt6/gen_qoperatingsystemversion.h index 47639adc..1096ca3e 100644 --- a/qt6/gen_qoperatingsystemversion.h +++ b/qt6/gen_qoperatingsystemversion.h @@ -1,5 +1,6 @@ -#ifndef GEN_QOPERATINGSYSTEMVERSION_H -#define GEN_QOPERATINGSYSTEMVERSION_H +#pragma once +#ifndef MIQT_QT6_GEN_QOPERATINGSYSTEMVERSION_H +#define MIQT_QT6_GEN_QOPERATINGSYSTEMVERSION_H #include #include diff --git a/qt6/gen_qpagedpaintdevice.h b/qt6/gen_qpagedpaintdevice.h index a808935c..b465a549 100644 --- a/qt6/gen_qpagedpaintdevice.h +++ b/qt6/gen_qpagedpaintdevice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAGEDPAINTDEVICE_H -#define GEN_QPAGEDPAINTDEVICE_H +#pragma once +#ifndef MIQT_QT6_GEN_QPAGEDPAINTDEVICE_H +#define MIQT_QT6_GEN_QPAGEDPAINTDEVICE_H #include #include diff --git a/qt6/gen_qpagelayout.h b/qt6/gen_qpagelayout.h index 4ec6026b..4ab5c9f2 100644 --- a/qt6/gen_qpagelayout.h +++ b/qt6/gen_qpagelayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAGELAYOUT_H -#define GEN_QPAGELAYOUT_H +#pragma once +#ifndef MIQT_QT6_GEN_QPAGELAYOUT_H +#define MIQT_QT6_GEN_QPAGELAYOUT_H #include #include diff --git a/qt6/gen_qpageranges.cpp b/qt6/gen_qpageranges.cpp index 44f6299f..1bce7ea7 100644 --- a/qt6/gen_qpageranges.cpp +++ b/qt6/gen_qpageranges.cpp @@ -32,7 +32,7 @@ void QPageRanges_AddRange(QPageRanges* self, int from, int to) { self->addRange(static_cast(from), static_cast(to)); } -struct miqt_array QPageRanges_ToRangeList(const QPageRanges* self) { +struct miqt_array /* of QPageRanges__Range* */ QPageRanges_ToRangeList(const QPageRanges* self) { QList _ret = self->toRangeList(); // Convert QList<> from C++ memory to manually-managed C memory QPageRanges__Range** _arr = static_cast(malloc(sizeof(QPageRanges__Range*) * _ret.length())); diff --git a/qt6/gen_qpageranges.h b/qt6/gen_qpageranges.h index c6865f23..f5e0fecc 100644 --- a/qt6/gen_qpageranges.h +++ b/qt6/gen_qpageranges.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAGERANGES_H -#define GEN_QPAGERANGES_H +#pragma once +#ifndef MIQT_QT6_GEN_QPAGERANGES_H +#define MIQT_QT6_GEN_QPAGERANGES_H #include #include @@ -31,7 +32,7 @@ void QPageRanges_OperatorAssign(QPageRanges* self, QPageRanges* other); void QPageRanges_Swap(QPageRanges* self, QPageRanges* other); void QPageRanges_AddPage(QPageRanges* self, int pageNumber); void QPageRanges_AddRange(QPageRanges* self, int from, int to); -struct miqt_array QPageRanges_ToRangeList(const QPageRanges* self); +struct miqt_array /* of QPageRanges__Range* */ QPageRanges_ToRangeList(const QPageRanges* self); void QPageRanges_Clear(QPageRanges* self); struct miqt_string QPageRanges_ToString(const QPageRanges* self); QPageRanges* QPageRanges_FromString(struct miqt_string ranges); diff --git a/qt6/gen_qpagesize.h b/qt6/gen_qpagesize.h index 13f067f3..60680e1b 100644 --- a/qt6/gen_qpagesize.h +++ b/qt6/gen_qpagesize.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAGESIZE_H -#define GEN_QPAGESIZE_H +#pragma once +#ifndef MIQT_QT6_GEN_QPAGESIZE_H +#define MIQT_QT6_GEN_QPAGESIZE_H #include #include diff --git a/qt6/gen_qpaintdevice.h b/qt6/gen_qpaintdevice.h index 7f226abe..c3d1132e 100644 --- a/qt6/gen_qpaintdevice.h +++ b/qt6/gen_qpaintdevice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAINTDEVICE_H -#define GEN_QPAINTDEVICE_H +#pragma once +#ifndef MIQT_QT6_GEN_QPAINTDEVICE_H +#define MIQT_QT6_GEN_QPAINTDEVICE_H #include #include diff --git a/qt6/gen_qpaintdevicewindow.h b/qt6/gen_qpaintdevicewindow.h index 81f6d25d..159d7809 100644 --- a/qt6/gen_qpaintdevicewindow.h +++ b/qt6/gen_qpaintdevicewindow.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAINTDEVICEWINDOW_H -#define GEN_QPAINTDEVICEWINDOW_H +#pragma once +#ifndef MIQT_QT6_GEN_QPAINTDEVICEWINDOW_H +#define MIQT_QT6_GEN_QPAINTDEVICEWINDOW_H #include #include diff --git a/qt6/gen_qpaintengine.h b/qt6/gen_qpaintengine.h index 17aa42e9..c1ae4c87 100644 --- a/qt6/gen_qpaintengine.h +++ b/qt6/gen_qpaintengine.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAINTENGINE_H -#define GEN_QPAINTENGINE_H +#pragma once +#ifndef MIQT_QT6_GEN_QPAINTENGINE_H +#define MIQT_QT6_GEN_QPAINTENGINE_H #include #include diff --git a/qt6/gen_qpainter.cpp b/qt6/gen_qpainter.cpp index 1063201a..5dc961af 100644 --- a/qt6/gen_qpainter.cpp +++ b/qt6/gen_qpainter.cpp @@ -361,7 +361,7 @@ void QPainter_DrawLines(QPainter* self, QLineF* lines, int lineCount) { self->drawLines(lines, static_cast(lineCount)); } -void QPainter_DrawLinesWithLines(QPainter* self, struct miqt_array /* of QLineF* */ lines) { +void QPainter_DrawLinesWithLines(QPainter* self, struct miqt_array /* of QLineF* */ lines) { QList lines_QList; lines_QList.reserve(lines.len); QLineF** lines_arr = static_cast(lines.data); @@ -375,7 +375,7 @@ void QPainter_DrawLines2(QPainter* self, QPointF* pointPairs, int lineCount) { self->drawLines(pointPairs, static_cast(lineCount)); } -void QPainter_DrawLinesWithPointPairs(QPainter* self, struct miqt_array /* of QPointF* */ pointPairs) { +void QPainter_DrawLinesWithPointPairs(QPainter* self, struct miqt_array /* of QPointF* */ pointPairs) { QList pointPairs_QList; pointPairs_QList.reserve(pointPairs.len); QPointF** pointPairs_arr = static_cast(pointPairs.data); @@ -389,7 +389,7 @@ void QPainter_DrawLines3(QPainter* self, QLine* lines, int lineCount) { self->drawLines(lines, static_cast(lineCount)); } -void QPainter_DrawLines4(QPainter* self, struct miqt_array /* of QLine* */ lines) { +void QPainter_DrawLines4(QPainter* self, struct miqt_array /* of QLine* */ lines) { QList lines_QList; lines_QList.reserve(lines.len); QLine** lines_arr = static_cast(lines.data); @@ -403,7 +403,7 @@ void QPainter_DrawLines5(QPainter* self, QPoint* pointPairs, int lineCount) { self->drawLines(pointPairs, static_cast(lineCount)); } -void QPainter_DrawLines6(QPainter* self, struct miqt_array /* of QPoint* */ pointPairs) { +void QPainter_DrawLines6(QPainter* self, struct miqt_array /* of QPoint* */ pointPairs) { QList pointPairs_QList; pointPairs_QList.reserve(pointPairs.len); QPoint** pointPairs_arr = static_cast(pointPairs.data); @@ -429,7 +429,7 @@ void QPainter_DrawRects(QPainter* self, QRectF* rects, int rectCount) { self->drawRects(rects, static_cast(rectCount)); } -void QPainter_DrawRectsWithRectangles(QPainter* self, struct miqt_array /* of QRectF* */ rectangles) { +void QPainter_DrawRectsWithRectangles(QPainter* self, struct miqt_array /* of QRectF* */ rectangles) { QList rectangles_QList; rectangles_QList.reserve(rectangles.len); QRectF** rectangles_arr = static_cast(rectangles.data); @@ -443,7 +443,7 @@ void QPainter_DrawRects2(QPainter* self, QRect* rects, int rectCount) { self->drawRects(rects, static_cast(rectCount)); } -void QPainter_DrawRects3(QPainter* self, struct miqt_array /* of QRect* */ rectangles) { +void QPainter_DrawRects3(QPainter* self, struct miqt_array /* of QRect* */ rectangles) { QList rectangles_QList; rectangles_QList.reserve(rectangles.len); QRect** rectangles_arr = static_cast(rectangles.data); diff --git a/qt6/gen_qpainter.h b/qt6/gen_qpainter.h index f0f90d55..86251872 100644 --- a/qt6/gen_qpainter.h +++ b/qt6/gen_qpainter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAINTER_H -#define GEN_QPAINTER_H +#pragma once +#ifndef MIQT_QT6_GEN_QPAINTER_H +#define MIQT_QT6_GEN_QPAINTER_H #include #include @@ -151,20 +152,20 @@ void QPainter_DrawLine2(QPainter* self, int x1, int y1, int x2, int y2); void QPainter_DrawLine3(QPainter* self, QPoint* p1, QPoint* p2); void QPainter_DrawLine4(QPainter* self, QPointF* p1, QPointF* p2); void QPainter_DrawLines(QPainter* self, QLineF* lines, int lineCount); -void QPainter_DrawLinesWithLines(QPainter* self, struct miqt_array /* of QLineF* */ lines); +void QPainter_DrawLinesWithLines(QPainter* self, struct miqt_array /* of QLineF* */ lines); void QPainter_DrawLines2(QPainter* self, QPointF* pointPairs, int lineCount); -void QPainter_DrawLinesWithPointPairs(QPainter* self, struct miqt_array /* of QPointF* */ pointPairs); +void QPainter_DrawLinesWithPointPairs(QPainter* self, struct miqt_array /* of QPointF* */ pointPairs); void QPainter_DrawLines3(QPainter* self, QLine* lines, int lineCount); -void QPainter_DrawLines4(QPainter* self, struct miqt_array /* of QLine* */ lines); +void QPainter_DrawLines4(QPainter* self, struct miqt_array /* of QLine* */ lines); void QPainter_DrawLines5(QPainter* self, QPoint* pointPairs, int lineCount); -void QPainter_DrawLines6(QPainter* self, struct miqt_array /* of QPoint* */ pointPairs); +void QPainter_DrawLines6(QPainter* self, struct miqt_array /* of QPoint* */ pointPairs); void QPainter_DrawRect(QPainter* self, QRectF* rect); void QPainter_DrawRect2(QPainter* self, int x1, int y1, int w, int h); void QPainter_DrawRectWithRect(QPainter* self, QRect* rect); void QPainter_DrawRects(QPainter* self, QRectF* rects, int rectCount); -void QPainter_DrawRectsWithRectangles(QPainter* self, struct miqt_array /* of QRectF* */ rectangles); +void QPainter_DrawRectsWithRectangles(QPainter* self, struct miqt_array /* of QRectF* */ rectangles); void QPainter_DrawRects2(QPainter* self, QRect* rects, int rectCount); -void QPainter_DrawRects3(QPainter* self, struct miqt_array /* of QRect* */ rectangles); +void QPainter_DrawRects3(QPainter* self, struct miqt_array /* of QRect* */ rectangles); void QPainter_DrawEllipse(QPainter* self, QRectF* r); void QPainter_DrawEllipseWithQRect(QPainter* self, QRect* r); void QPainter_DrawEllipse2(QPainter* self, int x, int y, int w, int h); diff --git a/qt6/gen_qpainterpath.cpp b/qt6/gen_qpainterpath.cpp index ba496bb1..b55f6653 100644 --- a/qt6/gen_qpainterpath.cpp +++ b/qt6/gen_qpainterpath.cpp @@ -378,7 +378,7 @@ void QPainterPathStroker_SetDashPattern(QPainterPathStroker* self, int dashPatte self->setDashPattern(static_cast(dashPattern)); } -void QPainterPathStroker_SetDashPatternWithDashPattern(QPainterPathStroker* self, struct miqt_array /* of double */ dashPattern) { +void QPainterPathStroker_SetDashPatternWithDashPattern(QPainterPathStroker* self, struct miqt_array /* of double */ dashPattern) { QList dashPattern_QList; dashPattern_QList.reserve(dashPattern.len); double* dashPattern_arr = static_cast(dashPattern.data); @@ -388,7 +388,7 @@ void QPainterPathStroker_SetDashPatternWithDashPattern(QPainterPathStroker* self self->setDashPattern(dashPattern_QList); } -struct miqt_array QPainterPathStroker_DashPattern(const QPainterPathStroker* self) { +struct miqt_array /* of double */ QPainterPathStroker_DashPattern(const QPainterPathStroker* self) { QList _ret = self->dashPattern(); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); diff --git a/qt6/gen_qpainterpath.h b/qt6/gen_qpainterpath.h index ff43ca7b..8c4aa475 100644 --- a/qt6/gen_qpainterpath.h +++ b/qt6/gen_qpainterpath.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAINTERPATH_H -#define GEN_QPAINTERPATH_H +#pragma once +#ifndef MIQT_QT6_GEN_QPAINTERPATH_H +#define MIQT_QT6_GEN_QPAINTERPATH_H #include #include @@ -125,8 +126,8 @@ double QPainterPathStroker_MiterLimit(const QPainterPathStroker* self); void QPainterPathStroker_SetCurveThreshold(QPainterPathStroker* self, double threshold); double QPainterPathStroker_CurveThreshold(const QPainterPathStroker* self); void QPainterPathStroker_SetDashPattern(QPainterPathStroker* self, int dashPattern); -void QPainterPathStroker_SetDashPatternWithDashPattern(QPainterPathStroker* self, struct miqt_array /* of double */ dashPattern); -struct miqt_array QPainterPathStroker_DashPattern(const QPainterPathStroker* self); +void QPainterPathStroker_SetDashPatternWithDashPattern(QPainterPathStroker* self, struct miqt_array /* of double */ dashPattern); +struct miqt_array /* of double */ QPainterPathStroker_DashPattern(const QPainterPathStroker* self); void QPainterPathStroker_SetDashOffset(QPainterPathStroker* self, double offset); double QPainterPathStroker_DashOffset(const QPainterPathStroker* self); QPainterPath* QPainterPathStroker_CreateStroke(const QPainterPathStroker* self, QPainterPath* path); diff --git a/qt6/gen_qpalette.h b/qt6/gen_qpalette.h index 4c68b0e1..71fb21db 100644 --- a/qt6/gen_qpalette.h +++ b/qt6/gen_qpalette.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPALETTE_H -#define GEN_QPALETTE_H +#pragma once +#ifndef MIQT_QT6_GEN_QPALETTE_H +#define MIQT_QT6_GEN_QPALETTE_H #include #include diff --git a/qt6/gen_qparallelanimationgroup.h b/qt6/gen_qparallelanimationgroup.h index eac43da5..1220696f 100644 --- a/qt6/gen_qparallelanimationgroup.h +++ b/qt6/gen_qparallelanimationgroup.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPARALLELANIMATIONGROUP_H -#define GEN_QPARALLELANIMATIONGROUP_H +#pragma once +#ifndef MIQT_QT6_GEN_QPARALLELANIMATIONGROUP_H +#define MIQT_QT6_GEN_QPARALLELANIMATIONGROUP_H #include #include diff --git a/qt6/gen_qpauseanimation.h b/qt6/gen_qpauseanimation.h index 48c63a53..69672503 100644 --- a/qt6/gen_qpauseanimation.h +++ b/qt6/gen_qpauseanimation.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAUSEANIMATION_H -#define GEN_QPAUSEANIMATION_H +#pragma once +#ifndef MIQT_QT6_GEN_QPAUSEANIMATION_H +#define MIQT_QT6_GEN_QPAUSEANIMATION_H #include #include diff --git a/qt6/gen_qpdfwriter.h b/qt6/gen_qpdfwriter.h index e30a8f66..f5f751e2 100644 --- a/qt6/gen_qpdfwriter.h +++ b/qt6/gen_qpdfwriter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPDFWRITER_H -#define GEN_QPDFWRITER_H +#pragma once +#ifndef MIQT_QT6_GEN_QPDFWRITER_H +#define MIQT_QT6_GEN_QPDFWRITER_H #include #include diff --git a/qt6/gen_qpen.cpp b/qt6/gen_qpen.cpp index 945d621f..1b9c7762 100644 --- a/qt6/gen_qpen.cpp +++ b/qt6/gen_qpen.cpp @@ -55,7 +55,7 @@ void QPen_SetStyle(QPen* self, int style) { self->setStyle(static_cast(style)); } -struct miqt_array QPen_DashPattern(const QPen* self) { +struct miqt_array /* of double */ QPen_DashPattern(const QPen* self) { QList _ret = self->dashPattern(); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); @@ -68,7 +68,7 @@ struct miqt_array QPen_DashPattern(const QPen* self) { return _out; } -void QPen_SetDashPattern(QPen* self, struct miqt_array /* of double */ pattern) { +void QPen_SetDashPattern(QPen* self, struct miqt_array /* of double */ pattern) { QList pattern_QList; pattern_QList.reserve(pattern.len); double* pattern_arr = static_cast(pattern.data); diff --git a/qt6/gen_qpen.h b/qt6/gen_qpen.h index 8c50b282..94668f08 100644 --- a/qt6/gen_qpen.h +++ b/qt6/gen_qpen.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPEN_H -#define GEN_QPEN_H +#pragma once +#ifndef MIQT_QT6_GEN_QPEN_H +#define MIQT_QT6_GEN_QPEN_H #include #include @@ -35,8 +36,8 @@ void QPen_OperatorAssign(QPen* self, QPen* pen); void QPen_Swap(QPen* self, QPen* other); int QPen_Style(const QPen* self); void QPen_SetStyle(QPen* self, int style); -struct miqt_array QPen_DashPattern(const QPen* self); -void QPen_SetDashPattern(QPen* self, struct miqt_array /* of double */ pattern); +struct miqt_array /* of double */ QPen_DashPattern(const QPen* self); +void QPen_SetDashPattern(QPen* self, struct miqt_array /* of double */ pattern); double QPen_DashOffset(const QPen* self); void QPen_SetDashOffset(QPen* self, double doffset); double QPen_MiterLimit(const QPen* self); diff --git a/qt6/gen_qpicture.h b/qt6/gen_qpicture.h index c2580a1a..f6d0a787 100644 --- a/qt6/gen_qpicture.h +++ b/qt6/gen_qpicture.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPICTURE_H -#define GEN_QPICTURE_H +#pragma once +#ifndef MIQT_QT6_GEN_QPICTURE_H +#define MIQT_QT6_GEN_QPICTURE_H #include #include diff --git a/qt6/gen_qpixelformat.h b/qt6/gen_qpixelformat.h index 43d957f2..aab6aa34 100644 --- a/qt6/gen_qpixelformat.h +++ b/qt6/gen_qpixelformat.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPIXELFORMAT_H -#define GEN_QPIXELFORMAT_H +#pragma once +#ifndef MIQT_QT6_GEN_QPIXELFORMAT_H +#define MIQT_QT6_GEN_QPIXELFORMAT_H #include #include diff --git a/qt6/gen_qpixmap.h b/qt6/gen_qpixmap.h index e5ad8b35..0ba96b35 100644 --- a/qt6/gen_qpixmap.h +++ b/qt6/gen_qpixmap.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPIXMAP_H -#define GEN_QPIXMAP_H +#pragma once +#ifndef MIQT_QT6_GEN_QPIXMAP_H +#define MIQT_QT6_GEN_QPIXMAP_H #include #include diff --git a/qt6/gen_qpixmapcache.h b/qt6/gen_qpixmapcache.h index a0af7ae2..41afbe37 100644 --- a/qt6/gen_qpixmapcache.h +++ b/qt6/gen_qpixmapcache.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPIXMAPCACHE_H -#define GEN_QPIXMAPCACHE_H +#pragma once +#ifndef MIQT_QT6_GEN_QPIXMAPCACHE_H +#define MIQT_QT6_GEN_QPIXMAPCACHE_H #include #include diff --git a/qt6/gen_qplaintextedit.cpp b/qt6/gen_qplaintextedit.cpp index fbfe6d49..df7e35e7 100644 --- a/qt6/gen_qplaintextedit.cpp +++ b/qt6/gen_qplaintextedit.cpp @@ -284,7 +284,7 @@ void QPlainTextEdit_SetCursorWidth(QPlainTextEdit* self, int width) { self->setCursorWidth(static_cast(width)); } -void QPlainTextEdit_SetExtraSelections(QPlainTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections) { +void QPlainTextEdit_SetExtraSelections(QPlainTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections) { QList selections_QList; selections_QList.reserve(selections.len); QTextEdit__ExtraSelection** selections_arr = static_cast(selections.data); @@ -294,7 +294,7 @@ void QPlainTextEdit_SetExtraSelections(QPlainTextEdit* self, struct miqt_array / self->setExtraSelections(selections_QList); } -struct miqt_array QPlainTextEdit_ExtraSelections(const QPlainTextEdit* self) { +struct miqt_array /* of QTextEdit__ExtraSelection* */ QPlainTextEdit_ExtraSelections(const QPlainTextEdit* self) { QList _ret = self->extraSelections(); // Convert QList<> from C++ memory to manually-managed C memory QTextEdit__ExtraSelection** _arr = static_cast(malloc(sizeof(QTextEdit__ExtraSelection*) * _ret.length())); diff --git a/qt6/gen_qplaintextedit.h b/qt6/gen_qplaintextedit.h index 885c30bb..d007f246 100644 --- a/qt6/gen_qplaintextedit.h +++ b/qt6/gen_qplaintextedit.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPLAINTEXTEDIT_H -#define GEN_QPLAINTEXTEDIT_H +#pragma once +#ifndef MIQT_QT6_GEN_QPLAINTEXTEDIT_H +#define MIQT_QT6_GEN_QPLAINTEXTEDIT_H #include #include @@ -122,8 +123,8 @@ double QPlainTextEdit_TabStopDistance(const QPlainTextEdit* self); void QPlainTextEdit_SetTabStopDistance(QPlainTextEdit* self, double distance); int QPlainTextEdit_CursorWidth(const QPlainTextEdit* self); void QPlainTextEdit_SetCursorWidth(QPlainTextEdit* self, int width); -void QPlainTextEdit_SetExtraSelections(QPlainTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections); -struct miqt_array QPlainTextEdit_ExtraSelections(const QPlainTextEdit* self); +void QPlainTextEdit_SetExtraSelections(QPlainTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections); +struct miqt_array /* of QTextEdit__ExtraSelection* */ QPlainTextEdit_ExtraSelections(const QPlainTextEdit* self); void QPlainTextEdit_MoveCursor(QPlainTextEdit* self, int operation); bool QPlainTextEdit_CanPaste(const QPlainTextEdit* self); void QPlainTextEdit_Print(const QPlainTextEdit* self, QPagedPaintDevice* printer); diff --git a/qt6/gen_qplugin.h b/qt6/gen_qplugin.h index f2cf9221..7691f443 100644 --- a/qt6/gen_qplugin.h +++ b/qt6/gen_qplugin.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPLUGIN_H -#define GEN_QPLUGIN_H +#pragma once +#ifndef MIQT_QT6_GEN_QPLUGIN_H +#define MIQT_QT6_GEN_QPLUGIN_H #include #include diff --git a/qt6/gen_qpluginloader.cpp b/qt6/gen_qpluginloader.cpp index 89c5b4b3..cbf52825 100644 --- a/qt6/gen_qpluginloader.cpp +++ b/qt6/gen_qpluginloader.cpp @@ -56,7 +56,7 @@ QJsonObject* QPluginLoader_MetaData(const QPluginLoader* self) { return new QJsonObject(self->metaData()); } -struct miqt_array QPluginLoader_StaticInstances() { +struct miqt_array /* of QObject* */ QPluginLoader_StaticInstances() { QObjectList _ret = QPluginLoader::staticInstances(); // Convert QList<> from C++ memory to manually-managed C memory QObject** _arr = static_cast(malloc(sizeof(QObject*) * _ret.length())); @@ -69,7 +69,7 @@ struct miqt_array QPluginLoader_StaticInstances() { return _out; } -struct miqt_array QPluginLoader_StaticPlugins() { +struct miqt_array /* of QStaticPlugin* */ QPluginLoader_StaticPlugins() { QList _ret = QPluginLoader::staticPlugins(); // Convert QList<> from C++ memory to manually-managed C memory QStaticPlugin** _arr = static_cast(malloc(sizeof(QStaticPlugin*) * _ret.length())); diff --git a/qt6/gen_qpluginloader.h b/qt6/gen_qpluginloader.h index d57fb042..4da611e6 100644 --- a/qt6/gen_qpluginloader.h +++ b/qt6/gen_qpluginloader.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPLUGINLOADER_H -#define GEN_QPLUGINLOADER_H +#pragma once +#ifndef MIQT_QT6_GEN_QPLUGINLOADER_H +#define MIQT_QT6_GEN_QPLUGINLOADER_H #include #include @@ -36,8 +37,8 @@ void* QPluginLoader_Metacast(QPluginLoader* self, const char* param1); struct miqt_string QPluginLoader_Tr(const char* s); QObject* QPluginLoader_Instance(QPluginLoader* self); QJsonObject* QPluginLoader_MetaData(const QPluginLoader* self); -struct miqt_array QPluginLoader_StaticInstances(); -struct miqt_array QPluginLoader_StaticPlugins(); +struct miqt_array /* of QObject* */ QPluginLoader_StaticInstances(); +struct miqt_array /* of QStaticPlugin* */ QPluginLoader_StaticPlugins(); bool QPluginLoader_Load(QPluginLoader* self); bool QPluginLoader_Unload(QPluginLoader* self); bool QPluginLoader_IsLoaded(const QPluginLoader* self); diff --git a/qt6/gen_qpoint.h b/qt6/gen_qpoint.h index 6fc6743c..63544d79 100644 --- a/qt6/gen_qpoint.h +++ b/qt6/gen_qpoint.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPOINT_H -#define GEN_QPOINT_H +#pragma once +#ifndef MIQT_QT6_GEN_QPOINT_H +#define MIQT_QT6_GEN_QPOINT_H #include #include diff --git a/qt6/gen_qpointingdevice.h b/qt6/gen_qpointingdevice.h index 0616e9f8..a80a9f24 100644 --- a/qt6/gen_qpointingdevice.h +++ b/qt6/gen_qpointingdevice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPOINTINGDEVICE_H -#define GEN_QPOINTINGDEVICE_H +#pragma once +#ifndef MIQT_QT6_GEN_QPOINTINGDEVICE_H +#define MIQT_QT6_GEN_QPOINTINGDEVICE_H #include #include diff --git a/qt6/gen_qprocess.cpp b/qt6/gen_qprocess.cpp index e0762f49..12bf38e9 100644 --- a/qt6/gen_qprocess.cpp +++ b/qt6/gen_qprocess.cpp @@ -79,7 +79,7 @@ struct miqt_string QProcessEnvironment_Value(const QProcessEnvironment* self, st return _ms; } -struct miqt_array QProcessEnvironment_ToStringList(const QProcessEnvironment* self) { +struct miqt_array /* of struct miqt_string */ QProcessEnvironment_ToStringList(const QProcessEnvironment* self) { QStringList _ret = self->toStringList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -99,7 +99,7 @@ struct miqt_array QProcessEnvironment_ToStringList(const QProcessEnvironment* se return _out; } -struct miqt_array QProcessEnvironment_Keys(const QProcessEnvironment* self) { +struct miqt_array /* of struct miqt_string */ QProcessEnvironment_Keys(const QProcessEnvironment* self) { QStringList _ret = self->keys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -209,7 +209,7 @@ void QProcess_SetProgram(QProcess* self, struct miqt_string program) { self->setProgram(program_QString); } -struct miqt_array QProcess_Arguments(const QProcess* self) { +struct miqt_array /* of struct miqt_string */ QProcess_Arguments(const QProcess* self) { QStringList _ret = self->arguments(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -229,7 +229,7 @@ struct miqt_array QProcess_Arguments(const QProcess* self) { return _out; } -void QProcess_SetArguments(QProcess* self, struct miqt_array /* of struct miqt_string */ arguments) { +void QProcess_SetArguments(QProcess* self, struct miqt_array /* of struct miqt_string */ arguments) { QStringList arguments_QList; arguments_QList.reserve(arguments.len); struct miqt_string* arguments_arr = static_cast(arguments.data); @@ -310,7 +310,7 @@ void QProcess_SetWorkingDirectory(QProcess* self, struct miqt_string dir) { self->setWorkingDirectory(dir_QString); } -void QProcess_SetEnvironment(QProcess* self, struct miqt_array /* of struct miqt_string */ environment) { +void QProcess_SetEnvironment(QProcess* self, struct miqt_array /* of struct miqt_string */ environment) { QStringList environment_QList; environment_QList.reserve(environment.len); struct miqt_string* environment_arr = static_cast(environment.data); @@ -321,7 +321,7 @@ void QProcess_SetEnvironment(QProcess* self, struct miqt_array /* of struct miqt self->setEnvironment(environment_QList); } -struct miqt_array QProcess_Environment(const QProcess* self) { +struct miqt_array /* of struct miqt_string */ QProcess_Environment(const QProcess* self) { QStringList _ret = self->environment(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -430,7 +430,7 @@ bool QProcess_StartDetachedWithProgram(struct miqt_string program) { return QProcess::startDetached(program_QString); } -struct miqt_array QProcess_SystemEnvironment() { +struct miqt_array /* of struct miqt_string */ QProcess_SystemEnvironment() { QStringList _ret = QProcess::systemEnvironment(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -514,7 +514,7 @@ struct miqt_string QProcess_Tr3(const char* s, const char* c, int n) { return _ms; } -void QProcess_Start22(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments) { +void QProcess_Start22(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments) { QString program_QString = QString::fromUtf8(program.data, program.len); QStringList arguments_QList; arguments_QList.reserve(arguments.len); @@ -526,7 +526,7 @@ void QProcess_Start22(QProcess* self, struct miqt_string program, struct miqt_ar self->start(program_QString, arguments_QList); } -void QProcess_Start3(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, int mode) { +void QProcess_Start3(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, int mode) { QString program_QString = QString::fromUtf8(program.data, program.len); QStringList arguments_QList; arguments_QList.reserve(arguments.len); @@ -581,7 +581,7 @@ bool QProcess_WaitForFinished1(QProcess* self, int msecs) { return self->waitForFinished(static_cast(msecs)); } -int QProcess_Execute2(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments) { +int QProcess_Execute2(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments) { QString program_QString = QString::fromUtf8(program.data, program.len); QStringList arguments_QList; arguments_QList.reserve(arguments.len); @@ -593,7 +593,7 @@ int QProcess_Execute2(struct miqt_string program, struct miqt_array /* of struct return QProcess::execute(program_QString, arguments_QList); } -bool QProcess_StartDetached2(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments) { +bool QProcess_StartDetached2(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments) { QString program_QString = QString::fromUtf8(program.data, program.len); QStringList arguments_QList; arguments_QList.reserve(arguments.len); @@ -605,7 +605,7 @@ bool QProcess_StartDetached2(struct miqt_string program, struct miqt_array /* of return QProcess::startDetached(program_QString, arguments_QList); } -bool QProcess_StartDetached3(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory) { +bool QProcess_StartDetached3(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory) { QString program_QString = QString::fromUtf8(program.data, program.len); QStringList arguments_QList; arguments_QList.reserve(arguments.len); @@ -618,7 +618,7 @@ bool QProcess_StartDetached3(struct miqt_string program, struct miqt_array /* of return QProcess::startDetached(program_QString, arguments_QList, workingDirectory_QString); } -bool QProcess_StartDetached4(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory, long long* pid) { +bool QProcess_StartDetached4(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory, long long* pid) { QString program_QString = QString::fromUtf8(program.data, program.len); QStringList arguments_QList; arguments_QList.reserve(arguments.len); diff --git a/qt6/gen_qprocess.h b/qt6/gen_qprocess.h index 93b84d7d..d4eb7e86 100644 --- a/qt6/gen_qprocess.h +++ b/qt6/gen_qprocess.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPROCESS_H -#define GEN_QPROCESS_H +#pragma once +#ifndef MIQT_QT6_GEN_QPROCESS_H +#define MIQT_QT6_GEN_QPROCESS_H #include #include @@ -41,8 +42,8 @@ bool QProcessEnvironment_Contains(const QProcessEnvironment* self, struct miqt_s void QProcessEnvironment_Insert(QProcessEnvironment* self, struct miqt_string name, struct miqt_string value); void QProcessEnvironment_Remove(QProcessEnvironment* self, struct miqt_string name); struct miqt_string QProcessEnvironment_Value(const QProcessEnvironment* self, struct miqt_string name); -struct miqt_array QProcessEnvironment_ToStringList(const QProcessEnvironment* self); -struct miqt_array QProcessEnvironment_Keys(const QProcessEnvironment* self); +struct miqt_array /* of struct miqt_string */ QProcessEnvironment_ToStringList(const QProcessEnvironment* self); +struct miqt_array /* of struct miqt_string */ QProcessEnvironment_Keys(const QProcessEnvironment* self); void QProcessEnvironment_InsertWithQProcessEnvironment(QProcessEnvironment* self, QProcessEnvironment* e); QProcessEnvironment* QProcessEnvironment_SystemEnvironment(); struct miqt_string QProcessEnvironment_Value2(const QProcessEnvironment* self, struct miqt_string name, struct miqt_string defaultValue); @@ -60,8 +61,8 @@ bool QProcess_StartDetached(QProcess* self); bool QProcess_Open(QProcess* self); struct miqt_string QProcess_Program(const QProcess* self); void QProcess_SetProgram(QProcess* self, struct miqt_string program); -struct miqt_array QProcess_Arguments(const QProcess* self); -void QProcess_SetArguments(QProcess* self, struct miqt_array /* of struct miqt_string */ arguments); +struct miqt_array /* of struct miqt_string */ QProcess_Arguments(const QProcess* self); +void QProcess_SetArguments(QProcess* self, struct miqt_array /* of struct miqt_string */ arguments); int QProcess_ProcessChannelMode(const QProcess* self); void QProcess_SetProcessChannelMode(QProcess* self, int mode); int QProcess_InputChannelMode(const QProcess* self); @@ -76,8 +77,8 @@ void QProcess_SetStandardErrorFile(QProcess* self, struct miqt_string fileName); void QProcess_SetStandardOutputProcess(QProcess* self, QProcess* destination); struct miqt_string QProcess_WorkingDirectory(const QProcess* self); void QProcess_SetWorkingDirectory(QProcess* self, struct miqt_string dir); -void QProcess_SetEnvironment(QProcess* self, struct miqt_array /* of struct miqt_string */ environment); -struct miqt_array QProcess_Environment(const QProcess* self); +void QProcess_SetEnvironment(QProcess* self, struct miqt_array /* of struct miqt_string */ environment); +struct miqt_array /* of struct miqt_string */ QProcess_Environment(const QProcess* self); void QProcess_SetProcessEnvironment(QProcess* self, QProcessEnvironment* environment); QProcessEnvironment* QProcess_ProcessEnvironment(const QProcess* self); int QProcess_Error(const QProcess* self); @@ -96,7 +97,7 @@ bool QProcess_IsSequential(const QProcess* self); void QProcess_Close(QProcess* self); int QProcess_Execute(struct miqt_string program); bool QProcess_StartDetachedWithProgram(struct miqt_string program); -struct miqt_array QProcess_SystemEnvironment(); +struct miqt_array /* of struct miqt_string */ QProcess_SystemEnvironment(); struct miqt_string QProcess_NullDevice(); void QProcess_Terminate(QProcess* self); void QProcess_Kill(QProcess* self); @@ -106,8 +107,8 @@ void QProcess_ErrorOccurred(QProcess* self, int error); void QProcess_connect_ErrorOccurred(QProcess* self, intptr_t slot); struct miqt_string QProcess_Tr2(const char* s, const char* c); struct miqt_string QProcess_Tr3(const char* s, const char* c, int n); -void QProcess_Start22(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments); -void QProcess_Start3(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, int mode); +void QProcess_Start22(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments); +void QProcess_Start3(QProcess* self, struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, int mode); void QProcess_Start1(QProcess* self, int mode); void QProcess_StartCommand2(QProcess* self, struct miqt_string command, int mode); bool QProcess_StartDetached1(QProcess* self, long long* pid); @@ -118,10 +119,10 @@ bool QProcess_WaitForStarted1(QProcess* self, int msecs); bool QProcess_WaitForReadyRead1(QProcess* self, int msecs); bool QProcess_WaitForBytesWritten1(QProcess* self, int msecs); bool QProcess_WaitForFinished1(QProcess* self, int msecs); -int QProcess_Execute2(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments); -bool QProcess_StartDetached2(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments); -bool QProcess_StartDetached3(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory); -bool QProcess_StartDetached4(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory, long long* pid); +int QProcess_Execute2(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments); +bool QProcess_StartDetached2(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments); +bool QProcess_StartDetached3(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory); +bool QProcess_StartDetached4(struct miqt_string program, struct miqt_array /* of struct miqt_string */ arguments, struct miqt_string workingDirectory, long long* pid); void QProcess_Finished2(QProcess* self, int exitCode, int exitStatus); void QProcess_connect_Finished2(QProcess* self, intptr_t slot); void QProcess_Delete(QProcess* self); diff --git a/qt6/gen_qprogressbar.h b/qt6/gen_qprogressbar.h index 44e66c11..6fe7f8ab 100644 --- a/qt6/gen_qprogressbar.h +++ b/qt6/gen_qprogressbar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPROGRESSBAR_H -#define GEN_QPROGRESSBAR_H +#pragma once +#ifndef MIQT_QT6_GEN_QPROGRESSBAR_H +#define MIQT_QT6_GEN_QPROGRESSBAR_H #include #include diff --git a/qt6/gen_qprogressdialog.h b/qt6/gen_qprogressdialog.h index d31df441..25edfdc0 100644 --- a/qt6/gen_qprogressdialog.h +++ b/qt6/gen_qprogressdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPROGRESSDIALOG_H -#define GEN_QPROGRESSDIALOG_H +#pragma once +#ifndef MIQT_QT6_GEN_QPROGRESSDIALOG_H +#define MIQT_QT6_GEN_QPROGRESSDIALOG_H #include #include diff --git a/qt6/gen_qproperty.h b/qt6/gen_qproperty.h index 1e74c1a9..3213403b 100644 --- a/qt6/gen_qproperty.h +++ b/qt6/gen_qproperty.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPROPERTY_H -#define GEN_QPROPERTY_H +#pragma once +#ifndef MIQT_QT6_GEN_QPROPERTY_H +#define MIQT_QT6_GEN_QPROPERTY_H #include #include diff --git a/qt6/gen_qpropertyanimation.h b/qt6/gen_qpropertyanimation.h index ae791f60..b8579e18 100644 --- a/qt6/gen_qpropertyanimation.h +++ b/qt6/gen_qpropertyanimation.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPROPERTYANIMATION_H -#define GEN_QPROPERTYANIMATION_H +#pragma once +#ifndef MIQT_QT6_GEN_QPROPERTYANIMATION_H +#define MIQT_QT6_GEN_QPROPERTYANIMATION_H #include #include diff --git a/qt6/gen_qpropertyprivate.h b/qt6/gen_qpropertyprivate.h index 68fa0bea..5c4004b5 100644 --- a/qt6/gen_qpropertyprivate.h +++ b/qt6/gen_qpropertyprivate.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPROPERTYPRIVATE_H -#define GEN_QPROPERTYPRIVATE_H +#pragma once +#ifndef MIQT_QT6_GEN_QPROPERTYPRIVATE_H +#define MIQT_QT6_GEN_QPROPERTYPRIVATE_H #include #include diff --git a/qt6/gen_qproxystyle.h b/qt6/gen_qproxystyle.h index cb1a2c6f..5fc76c12 100644 --- a/qt6/gen_qproxystyle.h +++ b/qt6/gen_qproxystyle.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPROXYSTYLE_H -#define GEN_QPROXYSTYLE_H +#pragma once +#ifndef MIQT_QT6_GEN_QPROXYSTYLE_H +#define MIQT_QT6_GEN_QPROXYSTYLE_H #include #include diff --git a/qt6/gen_qpushbutton.h b/qt6/gen_qpushbutton.h index f65ff27e..ac8cab5e 100644 --- a/qt6/gen_qpushbutton.h +++ b/qt6/gen_qpushbutton.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPUSHBUTTON_H -#define GEN_QPUSHBUTTON_H +#pragma once +#ifndef MIQT_QT6_GEN_QPUSHBUTTON_H +#define MIQT_QT6_GEN_QPUSHBUTTON_H #include #include diff --git a/qt6/gen_qquaternion.h b/qt6/gen_qquaternion.h index 5e4297cd..1ddc4182 100644 --- a/qt6/gen_qquaternion.h +++ b/qt6/gen_qquaternion.h @@ -1,5 +1,6 @@ -#ifndef GEN_QQUATERNION_H -#define GEN_QQUATERNION_H +#pragma once +#ifndef MIQT_QT6_GEN_QQUATERNION_H +#define MIQT_QT6_GEN_QQUATERNION_H #include #include diff --git a/qt6/gen_qradiobutton.h b/qt6/gen_qradiobutton.h index 75f0ad32..86ea22ec 100644 --- a/qt6/gen_qradiobutton.h +++ b/qt6/gen_qradiobutton.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRADIOBUTTON_H -#define GEN_QRADIOBUTTON_H +#pragma once +#ifndef MIQT_QT6_GEN_QRADIOBUTTON_H +#define MIQT_QT6_GEN_QRADIOBUTTON_H #include #include diff --git a/qt6/gen_qrandom.h b/qt6/gen_qrandom.h index 42d33514..ea5ad370 100644 --- a/qt6/gen_qrandom.h +++ b/qt6/gen_qrandom.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRANDOM_H -#define GEN_QRANDOM_H +#pragma once +#ifndef MIQT_QT6_GEN_QRANDOM_H +#define MIQT_QT6_GEN_QRANDOM_H #include #include diff --git a/qt6/gen_qrasterwindow.h b/qt6/gen_qrasterwindow.h index 9d08fd47..0d3ea442 100644 --- a/qt6/gen_qrasterwindow.h +++ b/qt6/gen_qrasterwindow.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRASTERWINDOW_H -#define GEN_QRASTERWINDOW_H +#pragma once +#ifndef MIQT_QT6_GEN_QRASTERWINDOW_H +#define MIQT_QT6_GEN_QRASTERWINDOW_H #include #include diff --git a/qt6/gen_qrawfont.cpp b/qt6/gen_qrawfont.cpp index 90942704..90699848 100644 --- a/qt6/gen_qrawfont.cpp +++ b/qt6/gen_qrawfont.cpp @@ -94,7 +94,7 @@ int QRawFont_Weight(const QRawFont* self) { return self->weight(); } -struct miqt_array QRawFont_GlyphIndexesForString(const QRawFont* self, struct miqt_string text) { +struct miqt_array /* of unsigned int */ QRawFont_GlyphIndexesForString(const QRawFont* self, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->glyphIndexesForString(text_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -108,7 +108,7 @@ struct miqt_array QRawFont_GlyphIndexesForString(const QRawFont* self, struct mi return _out; } -struct miqt_array QRawFont_AdvancesForGlyphIndexes(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes) { +struct miqt_array /* of QPointF* */ QRawFont_AdvancesForGlyphIndexes(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes) { QList glyphIndexes_QList; glyphIndexes_QList.reserve(glyphIndexes.len); unsigned int* glyphIndexes_arr = static_cast(glyphIndexes.data); @@ -127,7 +127,7 @@ struct miqt_array QRawFont_AdvancesForGlyphIndexes(const QRawFont* self, struct return _out; } -struct miqt_array QRawFont_AdvancesForGlyphIndexes2(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes, int layoutFlags) { +struct miqt_array /* of QPointF* */ QRawFont_AdvancesForGlyphIndexes2(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes, int layoutFlags) { QList glyphIndexes_QList; glyphIndexes_QList.reserve(glyphIndexes.len); unsigned int* glyphIndexes_arr = static_cast(glyphIndexes.data); @@ -252,7 +252,7 @@ bool QRawFont_SupportsCharacterWithCharacter(const QRawFont* self, QChar* charac return self->supportsCharacter(*character); } -struct miqt_array QRawFont_SupportedWritingSystems(const QRawFont* self) { +struct miqt_array /* of int */ QRawFont_SupportedWritingSystems(const QRawFont* self) { QList _ret = self->supportedWritingSystems(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt6/gen_qrawfont.h b/qt6/gen_qrawfont.h index d13c72d4..a195f2f3 100644 --- a/qt6/gen_qrawfont.h +++ b/qt6/gen_qrawfont.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRAWFONT_H -#define GEN_QRAWFONT_H +#pragma once +#ifndef MIQT_QT6_GEN_QRAWFONT_H +#define MIQT_QT6_GEN_QRAWFONT_H #include #include @@ -50,9 +51,9 @@ struct miqt_string QRawFont_FamilyName(const QRawFont* self); struct miqt_string QRawFont_StyleName(const QRawFont* self); int QRawFont_Style(const QRawFont* self); int QRawFont_Weight(const QRawFont* self); -struct miqt_array QRawFont_GlyphIndexesForString(const QRawFont* self, struct miqt_string text); -struct miqt_array QRawFont_AdvancesForGlyphIndexes(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes); -struct miqt_array QRawFont_AdvancesForGlyphIndexes2(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes, int layoutFlags); +struct miqt_array /* of unsigned int */ QRawFont_GlyphIndexesForString(const QRawFont* self, struct miqt_string text); +struct miqt_array /* of QPointF* */ QRawFont_AdvancesForGlyphIndexes(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes); +struct miqt_array /* of QPointF* */ QRawFont_AdvancesForGlyphIndexes2(const QRawFont* self, struct miqt_array /* of unsigned int */ glyphIndexes, int layoutFlags); bool QRawFont_GlyphIndexesForChars(const QRawFont* self, QChar* chars, int numChars, unsigned int* glyphIndexes, int* numGlyphs); bool QRawFont_AdvancesForGlyphIndexes3(const QRawFont* self, const unsigned int* glyphIndexes, QPointF* advances, int numGlyphs); bool QRawFont_AdvancesForGlyphIndexes4(const QRawFont* self, const unsigned int* glyphIndexes, QPointF* advances, int numGlyphs, int layoutFlags); @@ -76,7 +77,7 @@ void QRawFont_LoadFromFile(QRawFont* self, struct miqt_string fileName, double p void QRawFont_LoadFromData(QRawFont* self, struct miqt_string fontData, double pixelSize, int hintingPreference); bool QRawFont_SupportsCharacter(const QRawFont* self, unsigned int ucs4); bool QRawFont_SupportsCharacterWithCharacter(const QRawFont* self, QChar* character); -struct miqt_array QRawFont_SupportedWritingSystems(const QRawFont* self); +struct miqt_array /* of int */ QRawFont_SupportedWritingSystems(const QRawFont* self); struct miqt_string QRawFont_FontTable(const QRawFont* self, const char* tagName); QRawFont* QRawFont_FromFont(QFont* font); QImage* QRawFont_AlphaMapForGlyph2(const QRawFont* self, unsigned int glyphIndex, int antialiasingType); diff --git a/qt6/gen_qreadwritelock.h b/qt6/gen_qreadwritelock.h index 913b96b0..cda5a373 100644 --- a/qt6/gen_qreadwritelock.h +++ b/qt6/gen_qreadwritelock.h @@ -1,5 +1,6 @@ -#ifndef GEN_QREADWRITELOCK_H -#define GEN_QREADWRITELOCK_H +#pragma once +#ifndef MIQT_QT6_GEN_QREADWRITELOCK_H +#define MIQT_QT6_GEN_QREADWRITELOCK_H #include #include diff --git a/qt6/gen_qrect.h b/qt6/gen_qrect.h index 29291d0b..47690367 100644 --- a/qt6/gen_qrect.h +++ b/qt6/gen_qrect.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRECT_H -#define GEN_QRECT_H +#pragma once +#ifndef MIQT_QT6_GEN_QRECT_H +#define MIQT_QT6_GEN_QRECT_H #include #include diff --git a/qt6/gen_qrefcount.h b/qt6/gen_qrefcount.h index 95761037..36edd682 100644 --- a/qt6/gen_qrefcount.h +++ b/qt6/gen_qrefcount.h @@ -1,5 +1,6 @@ -#ifndef GEN_QREFCOUNT_H -#define GEN_QREFCOUNT_H +#pragma once +#ifndef MIQT_QT6_GEN_QREFCOUNT_H +#define MIQT_QT6_GEN_QREFCOUNT_H #include #include diff --git a/qt6/gen_qregion.h b/qt6/gen_qregion.h index 7cf650aa..0549c448 100644 --- a/qt6/gen_qregion.h +++ b/qt6/gen_qregion.h @@ -1,5 +1,6 @@ -#ifndef GEN_QREGION_H -#define GEN_QREGION_H +#pragma once +#ifndef MIQT_QT6_GEN_QREGION_H +#define MIQT_QT6_GEN_QREGION_H #include #include diff --git a/qt6/gen_qregularexpression.cpp b/qt6/gen_qregularexpression.cpp index 2a19e34f..5ebdbd73 100644 --- a/qt6/gen_qregularexpression.cpp +++ b/qt6/gen_qregularexpression.cpp @@ -86,7 +86,7 @@ int QRegularExpression_CaptureCount(const QRegularExpression* self) { return self->captureCount(); } -struct miqt_array QRegularExpression_NamedCaptureGroups(const QRegularExpression* self) { +struct miqt_array /* of struct miqt_string */ QRegularExpression_NamedCaptureGroups(const QRegularExpression* self) { QStringList _ret = self->namedCaptureGroups(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -288,7 +288,7 @@ struct miqt_string QRegularExpressionMatch_CapturedWithName(const QRegularExpres return _ms; } -struct miqt_array QRegularExpressionMatch_CapturedTexts(const QRegularExpressionMatch* self) { +struct miqt_array /* of struct miqt_string */ QRegularExpressionMatch_CapturedTexts(const QRegularExpressionMatch* self) { QStringList _ret = self->capturedTexts(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qregularexpression.h b/qt6/gen_qregularexpression.h index 9599cc7a..8c68e68e 100644 --- a/qt6/gen_qregularexpression.h +++ b/qt6/gen_qregularexpression.h @@ -1,5 +1,6 @@ -#ifndef GEN_QREGULAREXPRESSION_H -#define GEN_QREGULAREXPRESSION_H +#pragma once +#ifndef MIQT_QT6_GEN_QREGULAREXPRESSION_H +#define MIQT_QT6_GEN_QREGULAREXPRESSION_H #include #include @@ -49,7 +50,7 @@ bool QRegularExpression_IsValid(const QRegularExpression* self); ptrdiff_t QRegularExpression_PatternErrorOffset(const QRegularExpression* self); struct miqt_string QRegularExpression_ErrorString(const QRegularExpression* self); int QRegularExpression_CaptureCount(const QRegularExpression* self); -struct miqt_array QRegularExpression_NamedCaptureGroups(const QRegularExpression* self); +struct miqt_array /* of struct miqt_string */ QRegularExpression_NamedCaptureGroups(const QRegularExpression* self); QRegularExpressionMatch* QRegularExpression_Match(const QRegularExpression* self, struct miqt_string subject); QRegularExpressionMatchIterator* QRegularExpression_GlobalMatch(const QRegularExpression* self, struct miqt_string subject); void QRegularExpression_Optimize(const QRegularExpression* self); @@ -82,7 +83,7 @@ bool QRegularExpressionMatch_HasCaptured(const QRegularExpressionMatch* self, st bool QRegularExpressionMatch_HasCapturedWithNth(const QRegularExpressionMatch* self, int nth); struct miqt_string QRegularExpressionMatch_Captured(const QRegularExpressionMatch* self); struct miqt_string QRegularExpressionMatch_CapturedWithName(const QRegularExpressionMatch* self, struct miqt_string name); -struct miqt_array QRegularExpressionMatch_CapturedTexts(const QRegularExpressionMatch* self); +struct miqt_array /* of struct miqt_string */ QRegularExpressionMatch_CapturedTexts(const QRegularExpressionMatch* self); ptrdiff_t QRegularExpressionMatch_CapturedStart(const QRegularExpressionMatch* self); ptrdiff_t QRegularExpressionMatch_CapturedLength(const QRegularExpressionMatch* self); ptrdiff_t QRegularExpressionMatch_CapturedEnd(const QRegularExpressionMatch* self); diff --git a/qt6/gen_qresource.go b/qt6/gen_qresource.go index fbcde281..03de8066 100644 --- a/qt6/gen_qresource.go +++ b/qt6/gen_qresource.go @@ -122,7 +122,7 @@ func (this *QResource) Size() int64 { } func (this *QResource) Data() *byte { - return (*byte)(C.QResource_Data(this.h)) + return (*byte)(unsafe.Pointer(C.QResource_Data(this.h))) } func (this *QResource) UncompressedSize() int64 { diff --git a/qt6/gen_qresource.h b/qt6/gen_qresource.h index f4400953..38fa094b 100644 --- a/qt6/gen_qresource.h +++ b/qt6/gen_qresource.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRESOURCE_H -#define GEN_QRESOURCE_H +#pragma once +#ifndef MIQT_QT6_GEN_QRESOURCE_H +#define MIQT_QT6_GEN_QRESOURCE_H #include #include diff --git a/qt6/gen_qresultstore.h b/qt6/gen_qresultstore.h index 74e8589d..4a8965f7 100644 --- a/qt6/gen_qresultstore.h +++ b/qt6/gen_qresultstore.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRESULTSTORE_H -#define GEN_QRESULTSTORE_H +#pragma once +#ifndef MIQT_QT6_GEN_QRESULTSTORE_H +#define MIQT_QT6_GEN_QRESULTSTORE_H #include #include diff --git a/qt6/gen_qrgba64.h b/qt6/gen_qrgba64.h index 17800e13..8273c366 100644 --- a/qt6/gen_qrgba64.h +++ b/qt6/gen_qrgba64.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRGBA64_H -#define GEN_QRGBA64_H +#pragma once +#ifndef MIQT_QT6_GEN_QRGBA64_H +#define MIQT_QT6_GEN_QRGBA64_H #include #include diff --git a/qt6/gen_qrubberband.h b/qt6/gen_qrubberband.h index 11de6839..a925bd65 100644 --- a/qt6/gen_qrubberband.h +++ b/qt6/gen_qrubberband.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRUBBERBAND_H -#define GEN_QRUBBERBAND_H +#pragma once +#ifndef MIQT_QT6_GEN_QRUBBERBAND_H +#define MIQT_QT6_GEN_QRUBBERBAND_H #include #include diff --git a/qt6/gen_qrunnable.h b/qt6/gen_qrunnable.h index 2a299a9c..29751e55 100644 --- a/qt6/gen_qrunnable.h +++ b/qt6/gen_qrunnable.h @@ -1,5 +1,6 @@ -#ifndef GEN_QRUNNABLE_H -#define GEN_QRUNNABLE_H +#pragma once +#ifndef MIQT_QT6_GEN_QRUNNABLE_H +#define MIQT_QT6_GEN_QRUNNABLE_H #include #include diff --git a/qt6/gen_qsavefile.h b/qt6/gen_qsavefile.h index 53483788..52609267 100644 --- a/qt6/gen_qsavefile.h +++ b/qt6/gen_qsavefile.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSAVEFILE_H -#define GEN_QSAVEFILE_H +#pragma once +#ifndef MIQT_QT6_GEN_QSAVEFILE_H +#define MIQT_QT6_GEN_QSAVEFILE_H #include #include diff --git a/qt6/gen_qscopedpointer.h b/qt6/gen_qscopedpointer.h index c229cc65..c6a2761b 100644 --- a/qt6/gen_qscopedpointer.h +++ b/qt6/gen_qscopedpointer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCOPEDPOINTER_H -#define GEN_QSCOPEDPOINTER_H +#pragma once +#ifndef MIQT_QT6_GEN_QSCOPEDPOINTER_H +#define MIQT_QT6_GEN_QSCOPEDPOINTER_H #include #include diff --git a/qt6/gen_qscreen.cpp b/qt6/gen_qscreen.cpp index 92e4f378..559c5d89 100644 --- a/qt6/gen_qscreen.cpp +++ b/qt6/gen_qscreen.cpp @@ -136,7 +136,7 @@ QRect* QScreen_AvailableGeometry(const QScreen* self) { return new QRect(self->availableGeometry()); } -struct miqt_array QScreen_VirtualSiblings(const QScreen* self) { +struct miqt_array /* of QScreen* */ QScreen_VirtualSiblings(const QScreen* self) { QList _ret = self->virtualSiblings(); // Convert QList<> from C++ memory to manually-managed C memory QScreen** _arr = static_cast(malloc(sizeof(QScreen*) * _ret.length())); diff --git a/qt6/gen_qscreen.h b/qt6/gen_qscreen.h index 3e9bc650..3ff5584c 100644 --- a/qt6/gen_qscreen.h +++ b/qt6/gen_qscreen.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCREEN_H -#define GEN_QSCREEN_H +#pragma once +#ifndef MIQT_QT6_GEN_QSCREEN_H +#define MIQT_QT6_GEN_QSCREEN_H #include #include @@ -53,7 +54,7 @@ double QScreen_LogicalDotsPerInch(const QScreen* self); double QScreen_DevicePixelRatio(const QScreen* self); QSize* QScreen_AvailableSize(const QScreen* self); QRect* QScreen_AvailableGeometry(const QScreen* self); -struct miqt_array QScreen_VirtualSiblings(const QScreen* self); +struct miqt_array /* of QScreen* */ QScreen_VirtualSiblings(const QScreen* self); QScreen* QScreen_VirtualSiblingAt(QScreen* self, QPoint* point); QSize* QScreen_VirtualSize(const QScreen* self); QRect* QScreen_VirtualGeometry(const QScreen* self); diff --git a/qt6/gen_qscrollarea.h b/qt6/gen_qscrollarea.h index 84fcd405..da70a4a6 100644 --- a/qt6/gen_qscrollarea.h +++ b/qt6/gen_qscrollarea.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCROLLAREA_H -#define GEN_QSCROLLAREA_H +#pragma once +#ifndef MIQT_QT6_GEN_QSCROLLAREA_H +#define MIQT_QT6_GEN_QSCROLLAREA_H #include #include diff --git a/qt6/gen_qscrollbar.h b/qt6/gen_qscrollbar.h index 7c28908c..87df1ae1 100644 --- a/qt6/gen_qscrollbar.h +++ b/qt6/gen_qscrollbar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCROLLBAR_H -#define GEN_QSCROLLBAR_H +#pragma once +#ifndef MIQT_QT6_GEN_QSCROLLBAR_H +#define MIQT_QT6_GEN_QSCROLLBAR_H #include #include diff --git a/qt6/gen_qscroller.cpp b/qt6/gen_qscroller.cpp index e0297dab..546dd785 100644 --- a/qt6/gen_qscroller.cpp +++ b/qt6/gen_qscroller.cpp @@ -57,7 +57,7 @@ void QScroller_UngrabGesture(QObject* target) { QScroller::ungrabGesture(target); } -struct miqt_array QScroller_ActiveScrollers() { +struct miqt_array /* of QScroller* */ QScroller_ActiveScrollers() { QList _ret = QScroller::activeScrollers(); // Convert QList<> from C++ memory to manually-managed C memory QScroller** _arr = static_cast(malloc(sizeof(QScroller*) * _ret.length())); @@ -103,7 +103,7 @@ QScrollerProperties* QScroller_ScrollerProperties(const QScroller* self) { return new QScrollerProperties(self->scrollerProperties()); } -void QScroller_SetSnapPositionsX(QScroller* self, struct miqt_array /* of double */ positions) { +void QScroller_SetSnapPositionsX(QScroller* self, struct miqt_array /* of double */ positions) { QList positions_QList; positions_QList.reserve(positions.len); double* positions_arr = static_cast(positions.data); @@ -117,7 +117,7 @@ void QScroller_SetSnapPositionsX2(QScroller* self, double first, double interval self->setSnapPositionsX(static_cast(first), static_cast(interval)); } -void QScroller_SetSnapPositionsY(QScroller* self, struct miqt_array /* of double */ positions) { +void QScroller_SetSnapPositionsY(QScroller* self, struct miqt_array /* of double */ positions) { QList positions_QList; positions_QList.reserve(positions.len); double* positions_arr = static_cast(positions.data); diff --git a/qt6/gen_qscroller.h b/qt6/gen_qscroller.h index 8aef1907..d30d78fb 100644 --- a/qt6/gen_qscroller.h +++ b/qt6/gen_qscroller.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCROLLER_H -#define GEN_QSCROLLER_H +#pragma once +#ifndef MIQT_QT6_GEN_QSCROLLER_H +#define MIQT_QT6_GEN_QSCROLLER_H #include #include @@ -38,7 +39,7 @@ QScroller* QScroller_ScrollerWithTarget(QObject* target); int QScroller_GrabGesture(QObject* target); int QScroller_GrabbedGesture(QObject* target); void QScroller_UngrabGesture(QObject* target); -struct miqt_array QScroller_ActiveScrollers(); +struct miqt_array /* of QScroller* */ QScroller_ActiveScrollers(); QObject* QScroller_Target(const QScroller* self); int QScroller_State(const QScroller* self); bool QScroller_HandleInput(QScroller* self, int input, QPointF* position); @@ -47,9 +48,9 @@ QPointF* QScroller_Velocity(const QScroller* self); QPointF* QScroller_FinalPosition(const QScroller* self); QPointF* QScroller_PixelPerMeter(const QScroller* self); QScrollerProperties* QScroller_ScrollerProperties(const QScroller* self); -void QScroller_SetSnapPositionsX(QScroller* self, struct miqt_array /* of double */ positions); +void QScroller_SetSnapPositionsX(QScroller* self, struct miqt_array /* of double */ positions); void QScroller_SetSnapPositionsX2(QScroller* self, double first, double interval); -void QScroller_SetSnapPositionsY(QScroller* self, struct miqt_array /* of double */ positions); +void QScroller_SetSnapPositionsY(QScroller* self, struct miqt_array /* of double */ positions); void QScroller_SetSnapPositionsY2(QScroller* self, double first, double interval); void QScroller_SetScrollerProperties(QScroller* self, QScrollerProperties* prop); void QScroller_ScrollTo(QScroller* self, QPointF* pos); diff --git a/qt6/gen_qscrollerproperties.h b/qt6/gen_qscrollerproperties.h index 898cabea..0bb14424 100644 --- a/qt6/gen_qscrollerproperties.h +++ b/qt6/gen_qscrollerproperties.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCROLLERPROPERTIES_H -#define GEN_QSCROLLERPROPERTIES_H +#pragma once +#ifndef MIQT_QT6_GEN_QSCROLLERPROPERTIES_H +#define MIQT_QT6_GEN_QSCROLLERPROPERTIES_H #include #include diff --git a/qt6/gen_qsemaphore.h b/qt6/gen_qsemaphore.h index 45c451e3..2c2b988f 100644 --- a/qt6/gen_qsemaphore.h +++ b/qt6/gen_qsemaphore.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSEMAPHORE_H -#define GEN_QSEMAPHORE_H +#pragma once +#ifndef MIQT_QT6_GEN_QSEMAPHORE_H +#define MIQT_QT6_GEN_QSEMAPHORE_H #include #include diff --git a/qt6/gen_qsequentialanimationgroup.h b/qt6/gen_qsequentialanimationgroup.h index 2d227bae..c48e319d 100644 --- a/qt6/gen_qsequentialanimationgroup.h +++ b/qt6/gen_qsequentialanimationgroup.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSEQUENTIALANIMATIONGROUP_H -#define GEN_QSEQUENTIALANIMATIONGROUP_H +#pragma once +#ifndef MIQT_QT6_GEN_QSEQUENTIALANIMATIONGROUP_H +#define MIQT_QT6_GEN_QSEQUENTIALANIMATIONGROUP_H #include #include diff --git a/qt6/gen_qsequentialiterable.h b/qt6/gen_qsequentialiterable.h index 9d15eeab..9bbfa1d1 100644 --- a/qt6/gen_qsequentialiterable.h +++ b/qt6/gen_qsequentialiterable.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSEQUENTIALITERABLE_H -#define GEN_QSEQUENTIALITERABLE_H +#pragma once +#ifndef MIQT_QT6_GEN_QSEQUENTIALITERABLE_H +#define MIQT_QT6_GEN_QSEQUENTIALITERABLE_H #include #include diff --git a/qt6/gen_qsessionmanager.cpp b/qt6/gen_qsessionmanager.cpp index 27fc38b6..ce5e2ac3 100644 --- a/qt6/gen_qsessionmanager.cpp +++ b/qt6/gen_qsessionmanager.cpp @@ -74,7 +74,7 @@ int QSessionManager_RestartHint(const QSessionManager* self) { return static_cast(_ret); } -void QSessionManager_SetRestartCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ restartCommand) { +void QSessionManager_SetRestartCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ restartCommand) { QStringList restartCommand_QList; restartCommand_QList.reserve(restartCommand.len); struct miqt_string* restartCommand_arr = static_cast(restartCommand.data); @@ -85,7 +85,7 @@ void QSessionManager_SetRestartCommand(QSessionManager* self, struct miqt_array self->setRestartCommand(restartCommand_QList); } -struct miqt_array QSessionManager_RestartCommand(const QSessionManager* self) { +struct miqt_array /* of struct miqt_string */ QSessionManager_RestartCommand(const QSessionManager* self) { QStringList _ret = self->restartCommand(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -105,7 +105,7 @@ struct miqt_array QSessionManager_RestartCommand(const QSessionManager* self) { return _out; } -void QSessionManager_SetDiscardCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ discardCommand) { +void QSessionManager_SetDiscardCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ discardCommand) { QStringList discardCommand_QList; discardCommand_QList.reserve(discardCommand.len); struct miqt_string* discardCommand_arr = static_cast(discardCommand.data); @@ -116,7 +116,7 @@ void QSessionManager_SetDiscardCommand(QSessionManager* self, struct miqt_array self->setDiscardCommand(discardCommand_QList); } -struct miqt_array QSessionManager_DiscardCommand(const QSessionManager* self) { +struct miqt_array /* of struct miqt_string */ QSessionManager_DiscardCommand(const QSessionManager* self) { QStringList _ret = self->discardCommand(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -142,7 +142,7 @@ void QSessionManager_SetManagerProperty(QSessionManager* self, struct miqt_strin self->setManagerProperty(name_QString, value_QString); } -void QSessionManager_SetManagerProperty2(QSessionManager* self, struct miqt_string name, struct miqt_array /* of struct miqt_string */ value) { +void QSessionManager_SetManagerProperty2(QSessionManager* self, struct miqt_string name, struct miqt_array /* of struct miqt_string */ value) { QString name_QString = QString::fromUtf8(name.data, name.len); QStringList value_QList; value_QList.reserve(value.len); diff --git a/qt6/gen_qsessionmanager.h b/qt6/gen_qsessionmanager.h index 0db0e8e1..0c87ddfb 100644 --- a/qt6/gen_qsessionmanager.h +++ b/qt6/gen_qsessionmanager.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSESSIONMANAGER_H -#define GEN_QSESSIONMANAGER_H +#pragma once +#ifndef MIQT_QT6_GEN_QSESSIONMANAGER_H +#define MIQT_QT6_GEN_QSESSIONMANAGER_H #include #include @@ -32,12 +33,12 @@ void QSessionManager_Release(QSessionManager* self); void QSessionManager_Cancel(QSessionManager* self); void QSessionManager_SetRestartHint(QSessionManager* self, int restartHint); int QSessionManager_RestartHint(const QSessionManager* self); -void QSessionManager_SetRestartCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ restartCommand); -struct miqt_array QSessionManager_RestartCommand(const QSessionManager* self); -void QSessionManager_SetDiscardCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ discardCommand); -struct miqt_array QSessionManager_DiscardCommand(const QSessionManager* self); +void QSessionManager_SetRestartCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ restartCommand); +struct miqt_array /* of struct miqt_string */ QSessionManager_RestartCommand(const QSessionManager* self); +void QSessionManager_SetDiscardCommand(QSessionManager* self, struct miqt_array /* of struct miqt_string */ discardCommand); +struct miqt_array /* of struct miqt_string */ QSessionManager_DiscardCommand(const QSessionManager* self); void QSessionManager_SetManagerProperty(QSessionManager* self, struct miqt_string name, struct miqt_string value); -void QSessionManager_SetManagerProperty2(QSessionManager* self, struct miqt_string name, struct miqt_array /* of struct miqt_string */ value); +void QSessionManager_SetManagerProperty2(QSessionManager* self, struct miqt_string name, struct miqt_array /* of struct miqt_string */ value); bool QSessionManager_IsPhase2(const QSessionManager* self); void QSessionManager_RequestPhase2(QSessionManager* self); struct miqt_string QSessionManager_Tr2(const char* s, const char* c); diff --git a/qt6/gen_qsettings.cpp b/qt6/gen_qsettings.cpp index a52a7907..cab671bb 100644 --- a/qt6/gen_qsettings.cpp +++ b/qt6/gen_qsettings.cpp @@ -163,7 +163,7 @@ void QSettings_SetArrayIndex(QSettings* self, int i) { self->setArrayIndex(static_cast(i)); } -struct miqt_array QSettings_AllKeys(const QSettings* self) { +struct miqt_array /* of struct miqt_string */ QSettings_AllKeys(const QSettings* self) { QStringList _ret = self->allKeys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -183,7 +183,7 @@ struct miqt_array QSettings_AllKeys(const QSettings* self) { return _out; } -struct miqt_array QSettings_ChildKeys(const QSettings* self) { +struct miqt_array /* of struct miqt_string */ QSettings_ChildKeys(const QSettings* self) { QStringList _ret = self->childKeys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -203,7 +203,7 @@ struct miqt_array QSettings_ChildKeys(const QSettings* self) { return _out; } -struct miqt_array QSettings_ChildGroups(const QSettings* self) { +struct miqt_array /* of struct miqt_string */ QSettings_ChildGroups(const QSettings* self) { QStringList _ret = self->childGroups(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qsettings.h b/qt6/gen_qsettings.h index 7e232a93..711bd412 100644 --- a/qt6/gen_qsettings.h +++ b/qt6/gen_qsettings.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSETTINGS_H -#define GEN_QSETTINGS_H +#pragma once +#ifndef MIQT_QT6_GEN_QSETTINGS_H +#define MIQT_QT6_GEN_QSETTINGS_H #include #include @@ -57,9 +58,9 @@ int QSettings_BeginReadArray(QSettings* self, QAnyStringView* prefix); void QSettings_BeginWriteArray(QSettings* self, QAnyStringView* prefix); void QSettings_EndArray(QSettings* self); void QSettings_SetArrayIndex(QSettings* self, int i); -struct miqt_array QSettings_AllKeys(const QSettings* self); -struct miqt_array QSettings_ChildKeys(const QSettings* self); -struct miqt_array QSettings_ChildGroups(const QSettings* self); +struct miqt_array /* of struct miqt_string */ QSettings_AllKeys(const QSettings* self); +struct miqt_array /* of struct miqt_string */ QSettings_ChildKeys(const QSettings* self); +struct miqt_array /* of struct miqt_string */ QSettings_ChildGroups(const QSettings* self); bool QSettings_IsWritable(const QSettings* self); void QSettings_SetValue(QSettings* self, QAnyStringView* key, QVariant* value); QVariant* QSettings_Value(const QSettings* self, QAnyStringView* key, QVariant* defaultValue); diff --git a/qt6/gen_qshareddata.h b/qt6/gen_qshareddata.h index 71366faf..c5a2844d 100644 --- a/qt6/gen_qshareddata.h +++ b/qt6/gen_qshareddata.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSHAREDDATA_H -#define GEN_QSHAREDDATA_H +#pragma once +#ifndef MIQT_QT6_GEN_QSHAREDDATA_H +#define MIQT_QT6_GEN_QSHAREDDATA_H #include #include diff --git a/qt6/gen_qsharedmemory.h b/qt6/gen_qsharedmemory.h index fd853842..68b2380c 100644 --- a/qt6/gen_qsharedmemory.h +++ b/qt6/gen_qsharedmemory.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSHAREDMEMORY_H -#define GEN_QSHAREDMEMORY_H +#pragma once +#ifndef MIQT_QT6_GEN_QSHAREDMEMORY_H +#define MIQT_QT6_GEN_QSHAREDMEMORY_H #include #include diff --git a/qt6/gen_qshortcut.cpp b/qt6/gen_qshortcut.cpp index 2e269ae8..19b6f4a3 100644 --- a/qt6/gen_qshortcut.cpp +++ b/qt6/gen_qshortcut.cpp @@ -77,7 +77,7 @@ void QShortcut_SetKeys(QShortcut* self, int key) { self->setKeys(static_cast(key)); } -void QShortcut_SetKeysWithKeys(QShortcut* self, struct miqt_array /* of QKeySequence* */ keys) { +void QShortcut_SetKeysWithKeys(QShortcut* self, struct miqt_array /* of QKeySequence* */ keys) { QList keys_QList; keys_QList.reserve(keys.len); QKeySequence** keys_arr = static_cast(keys.data); @@ -87,7 +87,7 @@ void QShortcut_SetKeysWithKeys(QShortcut* self, struct miqt_array /* of QKeySequ self->setKeys(keys_QList); } -struct miqt_array QShortcut_Keys(const QShortcut* self) { +struct miqt_array /* of QKeySequence* */ QShortcut_Keys(const QShortcut* self) { QList _ret = self->keys(); // Convert QList<> from C++ memory to manually-managed C memory QKeySequence** _arr = static_cast(malloc(sizeof(QKeySequence*) * _ret.length())); diff --git a/qt6/gen_qshortcut.h b/qt6/gen_qshortcut.h index b094c6da..93850329 100644 --- a/qt6/gen_qshortcut.h +++ b/qt6/gen_qshortcut.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSHORTCUT_H -#define GEN_QSHORTCUT_H +#pragma once +#ifndef MIQT_QT6_GEN_QSHORTCUT_H +#define MIQT_QT6_GEN_QSHORTCUT_H #include #include @@ -40,8 +41,8 @@ struct miqt_string QShortcut_Tr(const char* s); void QShortcut_SetKey(QShortcut* self, QKeySequence* key); QKeySequence* QShortcut_Key(const QShortcut* self); void QShortcut_SetKeys(QShortcut* self, int key); -void QShortcut_SetKeysWithKeys(QShortcut* self, struct miqt_array /* of QKeySequence* */ keys); -struct miqt_array QShortcut_Keys(const QShortcut* self); +void QShortcut_SetKeysWithKeys(QShortcut* self, struct miqt_array /* of QKeySequence* */ keys); +struct miqt_array /* of QKeySequence* */ QShortcut_Keys(const QShortcut* self); void QShortcut_SetEnabled(QShortcut* self, bool enable); bool QShortcut_IsEnabled(const QShortcut* self); void QShortcut_SetContext(QShortcut* self, int context); diff --git a/qt6/gen_qsignalmapper.h b/qt6/gen_qsignalmapper.h index 77d5f77e..3864d1d7 100644 --- a/qt6/gen_qsignalmapper.h +++ b/qt6/gen_qsignalmapper.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSIGNALMAPPER_H -#define GEN_QSIGNALMAPPER_H +#pragma once +#ifndef MIQT_QT6_GEN_QSIGNALMAPPER_H +#define MIQT_QT6_GEN_QSIGNALMAPPER_H #include #include diff --git a/qt6/gen_qsize.h b/qt6/gen_qsize.h index a7e60629..d9d2a8e7 100644 --- a/qt6/gen_qsize.h +++ b/qt6/gen_qsize.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSIZE_H -#define GEN_QSIZE_H +#pragma once +#ifndef MIQT_QT6_GEN_QSIZE_H +#define MIQT_QT6_GEN_QSIZE_H #include #include diff --git a/qt6/gen_qsizegrip.h b/qt6/gen_qsizegrip.h index b3d6ac27..9fc9e663 100644 --- a/qt6/gen_qsizegrip.h +++ b/qt6/gen_qsizegrip.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSIZEGRIP_H -#define GEN_QSIZEGRIP_H +#pragma once +#ifndef MIQT_QT6_GEN_QSIZEGRIP_H +#define MIQT_QT6_GEN_QSIZEGRIP_H #include #include diff --git a/qt6/gen_qsizepolicy.h b/qt6/gen_qsizepolicy.h index 6ead5792..614cf604 100644 --- a/qt6/gen_qsizepolicy.h +++ b/qt6/gen_qsizepolicy.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSIZEPOLICY_H -#define GEN_QSIZEPOLICY_H +#pragma once +#ifndef MIQT_QT6_GEN_QSIZEPOLICY_H +#define MIQT_QT6_GEN_QSIZEPOLICY_H #include #include diff --git a/qt6/gen_qslider.h b/qt6/gen_qslider.h index 25b55f42..61aa6e73 100644 --- a/qt6/gen_qslider.h +++ b/qt6/gen_qslider.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSLIDER_H -#define GEN_QSLIDER_H +#pragma once +#ifndef MIQT_QT6_GEN_QSLIDER_H +#define MIQT_QT6_GEN_QSLIDER_H #include #include diff --git a/qt6/gen_qsocketnotifier.h b/qt6/gen_qsocketnotifier.h index c9cacb35..3e67374f 100644 --- a/qt6/gen_qsocketnotifier.h +++ b/qt6/gen_qsocketnotifier.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSOCKETNOTIFIER_H -#define GEN_QSOCKETNOTIFIER_H +#pragma once +#ifndef MIQT_QT6_GEN_QSOCKETNOTIFIER_H +#define MIQT_QT6_GEN_QSOCKETNOTIFIER_H #include #include diff --git a/qt6/gen_qsortfilterproxymodel.cpp b/qt6/gen_qsortfilterproxymodel.cpp index 1f9834e5..2ce15070 100644 --- a/qt6/gen_qsortfilterproxymodel.cpp +++ b/qt6/gen_qsortfilterproxymodel.cpp @@ -204,7 +204,7 @@ bool QSortFilterProxyModel_SetHeaderData(QSortFilterProxyModel* self, int sectio return self->setHeaderData(static_cast(section), static_cast(orientation), *value); } -QMimeData* QSortFilterProxyModel_MimeData(const QSortFilterProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes) { +QMimeData* QSortFilterProxyModel_MimeData(const QSortFilterProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); @@ -251,7 +251,7 @@ QModelIndex* QSortFilterProxyModel_Buddy(const QSortFilterProxyModel* self, QMod return new QModelIndex(self->buddy(*index)); } -struct miqt_array QSortFilterProxyModel_Match(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value) { +struct miqt_array /* of QModelIndex* */ QSortFilterProxyModel_Match(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value) { QModelIndexList _ret = self->match(*start, static_cast(role), *value); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -272,7 +272,7 @@ void QSortFilterProxyModel_Sort(QSortFilterProxyModel* self, int column) { self->sort(static_cast(column)); } -struct miqt_array QSortFilterProxyModel_MimeTypes(const QSortFilterProxyModel* self) { +struct miqt_array /* of struct miqt_string */ QSortFilterProxyModel_MimeTypes(const QSortFilterProxyModel* self) { QStringList _ret = self->mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -457,7 +457,7 @@ bool QSortFilterProxyModel_RemoveColumns3(QSortFilterProxyModel* self, int colum return self->removeColumns(static_cast(column), static_cast(count), *parent); } -struct miqt_array QSortFilterProxyModel_Match4(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits) { +struct miqt_array /* of QModelIndex* */ QSortFilterProxyModel_Match4(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits) { QModelIndexList _ret = self->match(*start, static_cast(role), *value, static_cast(hits)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); @@ -470,7 +470,7 @@ struct miqt_array QSortFilterProxyModel_Match4(const QSortFilterProxyModel* self return _out; } -struct miqt_array QSortFilterProxyModel_Match5(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) { +struct miqt_array /* of QModelIndex* */ QSortFilterProxyModel_Match5(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags) { QModelIndexList _ret = self->match(*start, static_cast(role), *value, static_cast(hits), static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory QModelIndex** _arr = static_cast(malloc(sizeof(QModelIndex*) * _ret.length())); diff --git a/qt6/gen_qsortfilterproxymodel.h b/qt6/gen_qsortfilterproxymodel.h index 9d9f72c9..46490fa8 100644 --- a/qt6/gen_qsortfilterproxymodel.h +++ b/qt6/gen_qsortfilterproxymodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSORTFILTERPROXYMODEL_H -#define GEN_QSORTFILTERPROXYMODEL_H +#pragma once +#ifndef MIQT_QT6_GEN_QSORTFILTERPROXYMODEL_H +#define MIQT_QT6_GEN_QSORTFILTERPROXYMODEL_H #include #include @@ -79,7 +80,7 @@ QVariant* QSortFilterProxyModel_Data(const QSortFilterProxyModel* self, QModelIn bool QSortFilterProxyModel_SetData(QSortFilterProxyModel* self, QModelIndex* index, QVariant* value); QVariant* QSortFilterProxyModel_HeaderData(const QSortFilterProxyModel* self, int section, int orientation); bool QSortFilterProxyModel_SetHeaderData(QSortFilterProxyModel* self, int section, int orientation, QVariant* value); -QMimeData* QSortFilterProxyModel_MimeData(const QSortFilterProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes); +QMimeData* QSortFilterProxyModel_MimeData(const QSortFilterProxyModel* self, struct miqt_array /* of QModelIndex* */ indexes); bool QSortFilterProxyModel_DropMimeData(QSortFilterProxyModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); bool QSortFilterProxyModel_InsertRows(QSortFilterProxyModel* self, int row, int count); bool QSortFilterProxyModel_InsertColumns(QSortFilterProxyModel* self, int column, int count); @@ -89,10 +90,10 @@ void QSortFilterProxyModel_FetchMore(QSortFilterProxyModel* self, QModelIndex* p bool QSortFilterProxyModel_CanFetchMore(const QSortFilterProxyModel* self, QModelIndex* parent); int QSortFilterProxyModel_Flags(const QSortFilterProxyModel* self, QModelIndex* index); QModelIndex* QSortFilterProxyModel_Buddy(const QSortFilterProxyModel* self, QModelIndex* index); -struct miqt_array QSortFilterProxyModel_Match(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value); +struct miqt_array /* of QModelIndex* */ QSortFilterProxyModel_Match(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value); QSize* QSortFilterProxyModel_Span(const QSortFilterProxyModel* self, QModelIndex* index); void QSortFilterProxyModel_Sort(QSortFilterProxyModel* self, int column); -struct miqt_array QSortFilterProxyModel_MimeTypes(const QSortFilterProxyModel* self); +struct miqt_array /* of struct miqt_string */ QSortFilterProxyModel_MimeTypes(const QSortFilterProxyModel* self); int QSortFilterProxyModel_SupportedDropActions(const QSortFilterProxyModel* self); void QSortFilterProxyModel_DynamicSortFilterChanged(QSortFilterProxyModel* self, bool dynamicSortFilter); void QSortFilterProxyModel_connect_DynamicSortFilterChanged(QSortFilterProxyModel* self, intptr_t slot); @@ -124,8 +125,8 @@ bool QSortFilterProxyModel_InsertRows3(QSortFilterProxyModel* self, int row, int bool QSortFilterProxyModel_InsertColumns3(QSortFilterProxyModel* self, int column, int count, QModelIndex* parent); bool QSortFilterProxyModel_RemoveRows3(QSortFilterProxyModel* self, int row, int count, QModelIndex* parent); bool QSortFilterProxyModel_RemoveColumns3(QSortFilterProxyModel* self, int column, int count, QModelIndex* parent); -struct miqt_array QSortFilterProxyModel_Match4(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits); -struct miqt_array QSortFilterProxyModel_Match5(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags); +struct miqt_array /* of QModelIndex* */ QSortFilterProxyModel_Match4(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits); +struct miqt_array /* of QModelIndex* */ QSortFilterProxyModel_Match5(const QSortFilterProxyModel* self, QModelIndex* start, int role, QVariant* value, int hits, int flags); void QSortFilterProxyModel_Sort2(QSortFilterProxyModel* self, int column, int order); void QSortFilterProxyModel_Delete(QSortFilterProxyModel* self); diff --git a/qt6/gen_qspinbox.h b/qt6/gen_qspinbox.h index 5cc5e713..2afb97a6 100644 --- a/qt6/gen_qspinbox.h +++ b/qt6/gen_qspinbox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSPINBOX_H -#define GEN_QSPINBOX_H +#pragma once +#ifndef MIQT_QT6_GEN_QSPINBOX_H +#define MIQT_QT6_GEN_QSPINBOX_H #include #include diff --git a/qt6/gen_qsplashscreen.h b/qt6/gen_qsplashscreen.h index 38b50067..a24cfa8d 100644 --- a/qt6/gen_qsplashscreen.h +++ b/qt6/gen_qsplashscreen.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSPLASHSCREEN_H -#define GEN_QSPLASHSCREEN_H +#pragma once +#ifndef MIQT_QT6_GEN_QSPLASHSCREEN_H +#define MIQT_QT6_GEN_QSPLASHSCREEN_H #include #include diff --git a/qt6/gen_qsplitter.cpp b/qt6/gen_qsplitter.cpp index fb9b59da..2478a886 100644 --- a/qt6/gen_qsplitter.cpp +++ b/qt6/gen_qsplitter.cpp @@ -104,7 +104,7 @@ QSize* QSplitter_MinimumSizeHint(const QSplitter* self) { return new QSize(self->minimumSizeHint()); } -struct miqt_array QSplitter_Sizes(const QSplitter* self) { +struct miqt_array /* of int */ QSplitter_Sizes(const QSplitter* self) { QList _ret = self->sizes(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -117,7 +117,7 @@ struct miqt_array QSplitter_Sizes(const QSplitter* self) { return _out; } -void QSplitter_SetSizes(QSplitter* self, struct miqt_array /* of int */ list) { +void QSplitter_SetSizes(QSplitter* self, struct miqt_array /* of int */ list) { QList list_QList; list_QList.reserve(list.len); int* list_arr = static_cast(list.data); diff --git a/qt6/gen_qsplitter.h b/qt6/gen_qsplitter.h index fc579555..f5f19236 100644 --- a/qt6/gen_qsplitter.h +++ b/qt6/gen_qsplitter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSPLITTER_H -#define GEN_QSPLITTER_H +#pragma once +#ifndef MIQT_QT6_GEN_QSPLITTER_H +#define MIQT_QT6_GEN_QSPLITTER_H #include #include @@ -50,8 +51,8 @@ bool QSplitter_OpaqueResize(const QSplitter* self); void QSplitter_Refresh(QSplitter* self); QSize* QSplitter_SizeHint(const QSplitter* self); QSize* QSplitter_MinimumSizeHint(const QSplitter* self); -struct miqt_array QSplitter_Sizes(const QSplitter* self); -void QSplitter_SetSizes(QSplitter* self, struct miqt_array /* of int */ list); +struct miqt_array /* of int */ QSplitter_Sizes(const QSplitter* self); +void QSplitter_SetSizes(QSplitter* self, struct miqt_array /* of int */ list); struct miqt_string QSplitter_SaveState(const QSplitter* self); bool QSplitter_RestoreState(QSplitter* self, struct miqt_string state); int QSplitter_HandleWidth(const QSplitter* self); diff --git a/qt6/gen_qstackedlayout.h b/qt6/gen_qstackedlayout.h index c3e0e556..34259bb7 100644 --- a/qt6/gen_qstackedlayout.h +++ b/qt6/gen_qstackedlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTACKEDLAYOUT_H -#define GEN_QSTACKEDLAYOUT_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTACKEDLAYOUT_H +#define MIQT_QT6_GEN_QSTACKEDLAYOUT_H #include #include diff --git a/qt6/gen_qstackedwidget.h b/qt6/gen_qstackedwidget.h index ed84d7c6..eda0ca32 100644 --- a/qt6/gen_qstackedwidget.h +++ b/qt6/gen_qstackedwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTACKEDWIDGET_H -#define GEN_QSTACKEDWIDGET_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTACKEDWIDGET_H +#define MIQT_QT6_GEN_QSTACKEDWIDGET_H #include #include diff --git a/qt6/gen_qstandarditemmodel.cpp b/qt6/gen_qstandarditemmodel.cpp index b2c0abce..f3ab2298 100644 --- a/qt6/gen_qstandarditemmodel.cpp +++ b/qt6/gen_qstandarditemmodel.cpp @@ -338,7 +338,7 @@ void QStandardItem_SetChild2(QStandardItem* self, int row, QStandardItem* item) self->setChild(static_cast(row), item); } -void QStandardItem_InsertRow(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItem_InsertRow(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -348,7 +348,7 @@ void QStandardItem_InsertRow(QStandardItem* self, int row, struct miqt_array /* self->insertRow(static_cast(row), items_QList); } -void QStandardItem_InsertColumn(QStandardItem* self, int column, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItem_InsertColumn(QStandardItem* self, int column, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -358,7 +358,7 @@ void QStandardItem_InsertColumn(QStandardItem* self, int column, struct miqt_arr self->insertColumn(static_cast(column), items_QList); } -void QStandardItem_InsertRows(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItem_InsertRows(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -392,7 +392,7 @@ void QStandardItem_RemoveColumns(QStandardItem* self, int column, int count) { self->removeColumns(static_cast(column), static_cast(count)); } -void QStandardItem_AppendRow(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItem_AppendRow(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -402,7 +402,7 @@ void QStandardItem_AppendRow(QStandardItem* self, struct miqt_array /* of QStand self->appendRow(items_QList); } -void QStandardItem_AppendRows(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItem_AppendRows(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -412,7 +412,7 @@ void QStandardItem_AppendRows(QStandardItem* self, struct miqt_array /* of QStan self->appendRows(items_QList); } -void QStandardItem_AppendColumn(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItem_AppendColumn(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -434,7 +434,7 @@ QStandardItem* QStandardItem_TakeChild(QStandardItem* self, int row) { return self->takeChild(static_cast(row)); } -struct miqt_array QStandardItem_TakeRow(QStandardItem* self, int row) { +struct miqt_array /* of QStandardItem* */ QStandardItem_TakeRow(QStandardItem* self, int row) { QList _ret = self->takeRow(static_cast(row)); // Convert QList<> from C++ memory to manually-managed C memory QStandardItem** _arr = static_cast(malloc(sizeof(QStandardItem*) * _ret.length())); @@ -447,7 +447,7 @@ struct miqt_array QStandardItem_TakeRow(QStandardItem* self, int row) { return _out; } -struct miqt_array QStandardItem_TakeColumn(QStandardItem* self, int column) { +struct miqt_array /* of QStandardItem* */ QStandardItem_TakeColumn(QStandardItem* self, int column) { QList _ret = self->takeColumn(static_cast(column)); // Convert QList<> from C++ memory to manually-managed C memory QStandardItem** _arr = static_cast(malloc(sizeof(QStandardItem*) * _ret.length())); @@ -543,7 +543,7 @@ struct miqt_string QStandardItemModel_Tr(const char* s) { return _ms; } -void QStandardItemModel_SetItemRoleNames(QStandardItemModel* self, struct miqt_map roleNames) { +void QStandardItemModel_SetItemRoleNames(QStandardItemModel* self, struct miqt_map /* of int to struct miqt_string */ roleNames) { QHash roleNames_QMap; roleNames_QMap.reserve(roleNames.len); int* roleNames_karr = static_cast(roleNames.keys); @@ -555,7 +555,7 @@ void QStandardItemModel_SetItemRoleNames(QStandardItemModel* self, struct miqt_m self->setItemRoleNames(roleNames_QMap); } -struct miqt_map QStandardItemModel_RoleNames(const QStandardItemModel* self) { +struct miqt_map /* of int to struct miqt_string */ QStandardItemModel_RoleNames(const QStandardItemModel* self) { QHash _ret = self->roleNames(); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -648,7 +648,7 @@ int QStandardItemModel_SupportedDropActions(const QStandardItemModel* self) { return static_cast(_ret); } -struct miqt_map QStandardItemModel_ItemData(const QStandardItemModel* self, QModelIndex* index) { +struct miqt_map /* of int to QVariant* */ QStandardItemModel_ItemData(const QStandardItemModel* self, QModelIndex* index) { QMap _ret = self->itemData(*index); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -666,7 +666,7 @@ struct miqt_map QStandardItemModel_ItemData(const QStandardItemModel* self, QMod return _out; } -bool QStandardItemModel_SetItemData(QStandardItemModel* self, QModelIndex* index, struct miqt_map roles) { +bool QStandardItemModel_SetItemData(QStandardItemModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) { QMap roles_QMap; int* roles_karr = static_cast(roles.keys); QVariant** roles_varr = static_cast(roles.values); @@ -724,7 +724,7 @@ void QStandardItemModel_SetVerticalHeaderItem(QStandardItemModel* self, int row, self->setVerticalHeaderItem(static_cast(row), item); } -void QStandardItemModel_SetHorizontalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels) { +void QStandardItemModel_SetHorizontalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels) { QStringList labels_QList; labels_QList.reserve(labels.len); struct miqt_string* labels_arr = static_cast(labels.data); @@ -735,7 +735,7 @@ void QStandardItemModel_SetHorizontalHeaderLabels(QStandardItemModel* self, stru self->setHorizontalHeaderLabels(labels_QList); } -void QStandardItemModel_SetVerticalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels) { +void QStandardItemModel_SetVerticalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels) { QStringList labels_QList; labels_QList.reserve(labels.len); struct miqt_string* labels_arr = static_cast(labels.data); @@ -754,7 +754,7 @@ void QStandardItemModel_SetColumnCount(QStandardItemModel* self, int columns) { self->setColumnCount(static_cast(columns)); } -void QStandardItemModel_AppendRow(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItemModel_AppendRow(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -764,7 +764,7 @@ void QStandardItemModel_AppendRow(QStandardItemModel* self, struct miqt_array /* self->appendRow(items_QList); } -void QStandardItemModel_AppendColumn(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItemModel_AppendColumn(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -778,7 +778,7 @@ void QStandardItemModel_AppendRowWithItem(QStandardItemModel* self, QStandardIte self->appendRow(item); } -void QStandardItemModel_InsertRow(QStandardItemModel* self, int row, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItemModel_InsertRow(QStandardItemModel* self, int row, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -788,7 +788,7 @@ void QStandardItemModel_InsertRow(QStandardItemModel* self, int row, struct miqt self->insertRow(static_cast(row), items_QList); } -void QStandardItemModel_InsertColumn(QStandardItemModel* self, int column, struct miqt_array /* of QStandardItem* */ items) { +void QStandardItemModel_InsertColumn(QStandardItemModel* self, int column, struct miqt_array /* of QStandardItem* */ items) { QList items_QList; items_QList.reserve(items.len); QStandardItem** items_arr = static_cast(items.data); @@ -814,7 +814,7 @@ QStandardItem* QStandardItemModel_TakeItem(QStandardItemModel* self, int row) { return self->takeItem(static_cast(row)); } -struct miqt_array QStandardItemModel_TakeRow(QStandardItemModel* self, int row) { +struct miqt_array /* of QStandardItem* */ QStandardItemModel_TakeRow(QStandardItemModel* self, int row) { QList _ret = self->takeRow(static_cast(row)); // Convert QList<> from C++ memory to manually-managed C memory QStandardItem** _arr = static_cast(malloc(sizeof(QStandardItem*) * _ret.length())); @@ -827,7 +827,7 @@ struct miqt_array QStandardItemModel_TakeRow(QStandardItemModel* self, int row) return _out; } -struct miqt_array QStandardItemModel_TakeColumn(QStandardItemModel* self, int column) { +struct miqt_array /* of QStandardItem* */ QStandardItemModel_TakeColumn(QStandardItemModel* self, int column) { QList _ret = self->takeColumn(static_cast(column)); // Convert QList<> from C++ memory to manually-managed C memory QStandardItem** _arr = static_cast(malloc(sizeof(QStandardItem*) * _ret.length())); @@ -856,7 +856,7 @@ void QStandardItemModel_SetItemPrototype(QStandardItemModel* self, QStandardItem self->setItemPrototype(item); } -struct miqt_array QStandardItemModel_FindItems(const QStandardItemModel* self, struct miqt_string text) { +struct miqt_array /* of QStandardItem* */ QStandardItemModel_FindItems(const QStandardItemModel* self, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->findItems(text_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -878,7 +878,7 @@ void QStandardItemModel_SetSortRole(QStandardItemModel* self, int role) { self->setSortRole(static_cast(role)); } -struct miqt_array QStandardItemModel_MimeTypes(const QStandardItemModel* self) { +struct miqt_array /* of struct miqt_string */ QStandardItemModel_MimeTypes(const QStandardItemModel* self) { QStringList _ret = self->mimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -898,7 +898,7 @@ struct miqt_array QStandardItemModel_MimeTypes(const QStandardItemModel* self) { return _out; } -QMimeData* QStandardItemModel_MimeData(const QStandardItemModel* self, struct miqt_array /* of QModelIndex* */ indexes) { +QMimeData* QStandardItemModel_MimeData(const QStandardItemModel* self, struct miqt_array /* of QModelIndex* */ indexes) { QModelIndexList indexes_QList; indexes_QList.reserve(indexes.len); QModelIndex** indexes_arr = static_cast(indexes.data); @@ -1013,7 +1013,7 @@ QStandardItem* QStandardItemModel_TakeItem2(QStandardItemModel* self, int row, i return self->takeItem(static_cast(row), static_cast(column)); } -struct miqt_array QStandardItemModel_FindItems2(const QStandardItemModel* self, struct miqt_string text, int flags) { +struct miqt_array /* of QStandardItem* */ QStandardItemModel_FindItems2(const QStandardItemModel* self, struct miqt_string text, int flags) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->findItems(text_QString, static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory @@ -1027,7 +1027,7 @@ struct miqt_array QStandardItemModel_FindItems2(const QStandardItemModel* self, return _out; } -struct miqt_array QStandardItemModel_FindItems3(const QStandardItemModel* self, struct miqt_string text, int flags, int column) { +struct miqt_array /* of QStandardItem* */ QStandardItemModel_FindItems3(const QStandardItemModel* self, struct miqt_string text, int flags, int column) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->findItems(text_QString, static_cast(flags), static_cast(column)); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt6/gen_qstandarditemmodel.h b/qt6/gen_qstandarditemmodel.h index 35f8465f..a3824eee 100644 --- a/qt6/gen_qstandarditemmodel.h +++ b/qt6/gen_qstandarditemmodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTANDARDITEMMODEL_H -#define GEN_QSTANDARDITEMMODEL_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTANDARDITEMMODEL_H +#define MIQT_QT6_GEN_QSTANDARDITEMMODEL_H #include #include @@ -111,23 +112,23 @@ bool QStandardItem_HasChildren(const QStandardItem* self); QStandardItem* QStandardItem_Child(const QStandardItem* self, int row); void QStandardItem_SetChild(QStandardItem* self, int row, int column, QStandardItem* item); void QStandardItem_SetChild2(QStandardItem* self, int row, QStandardItem* item); -void QStandardItem_InsertRow(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items); -void QStandardItem_InsertColumn(QStandardItem* self, int column, struct miqt_array /* of QStandardItem* */ items); -void QStandardItem_InsertRows(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items); +void QStandardItem_InsertRow(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items); +void QStandardItem_InsertColumn(QStandardItem* self, int column, struct miqt_array /* of QStandardItem* */ items); +void QStandardItem_InsertRows(QStandardItem* self, int row, struct miqt_array /* of QStandardItem* */ items); void QStandardItem_InsertRows2(QStandardItem* self, int row, int count); void QStandardItem_InsertColumns(QStandardItem* self, int column, int count); void QStandardItem_RemoveRow(QStandardItem* self, int row); void QStandardItem_RemoveColumn(QStandardItem* self, int column); void QStandardItem_RemoveRows(QStandardItem* self, int row, int count); void QStandardItem_RemoveColumns(QStandardItem* self, int column, int count); -void QStandardItem_AppendRow(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items); -void QStandardItem_AppendRows(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items); -void QStandardItem_AppendColumn(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items); +void QStandardItem_AppendRow(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items); +void QStandardItem_AppendRows(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items); +void QStandardItem_AppendColumn(QStandardItem* self, struct miqt_array /* of QStandardItem* */ items); void QStandardItem_InsertRow2(QStandardItem* self, int row, QStandardItem* item); void QStandardItem_AppendRowWithItem(QStandardItem* self, QStandardItem* item); QStandardItem* QStandardItem_TakeChild(QStandardItem* self, int row); -struct miqt_array QStandardItem_TakeRow(QStandardItem* self, int row); -struct miqt_array QStandardItem_TakeColumn(QStandardItem* self, int column); +struct miqt_array /* of QStandardItem* */ QStandardItem_TakeRow(QStandardItem* self, int row); +struct miqt_array /* of QStandardItem* */ QStandardItem_TakeColumn(QStandardItem* self, int column); void QStandardItem_SortChildren(QStandardItem* self, int column); QStandardItem* QStandardItem_Clone(const QStandardItem* self); int QStandardItem_Type(const QStandardItem* self); @@ -148,8 +149,8 @@ QStandardItemModel* QStandardItemModel_new4(int rows, int columns, QObject* pare QMetaObject* QStandardItemModel_MetaObject(const QStandardItemModel* self); void* QStandardItemModel_Metacast(QStandardItemModel* self, const char* param1); struct miqt_string QStandardItemModel_Tr(const char* s); -void QStandardItemModel_SetItemRoleNames(QStandardItemModel* self, struct miqt_map roleNames); -struct miqt_map QStandardItemModel_RoleNames(const QStandardItemModel* self); +void QStandardItemModel_SetItemRoleNames(QStandardItemModel* self, struct miqt_map /* of int to struct miqt_string */ roleNames); +struct miqt_map /* of int to struct miqt_string */ QStandardItemModel_RoleNames(const QStandardItemModel* self); QModelIndex* QStandardItemModel_Index(const QStandardItemModel* self, int row, int column); QModelIndex* QStandardItemModel_Parent(const QStandardItemModel* self, QModelIndex* child); int QStandardItemModel_RowCount(const QStandardItemModel* self); @@ -167,8 +168,8 @@ bool QStandardItemModel_RemoveRows(QStandardItemModel* self, int row, int count) bool QStandardItemModel_RemoveColumns(QStandardItemModel* self, int column, int count); int QStandardItemModel_Flags(const QStandardItemModel* self, QModelIndex* index); int QStandardItemModel_SupportedDropActions(const QStandardItemModel* self); -struct miqt_map QStandardItemModel_ItemData(const QStandardItemModel* self, QModelIndex* index); -bool QStandardItemModel_SetItemData(QStandardItemModel* self, QModelIndex* index, struct miqt_map roles); +struct miqt_map /* of int to QVariant* */ QStandardItemModel_ItemData(const QStandardItemModel* self, QModelIndex* index); +bool QStandardItemModel_SetItemData(QStandardItemModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles); void QStandardItemModel_Clear(QStandardItemModel* self); void QStandardItemModel_Sort(QStandardItemModel* self, int column); QStandardItem* QStandardItemModel_ItemFromIndex(const QStandardItemModel* self, QModelIndex* index); @@ -181,30 +182,30 @@ QStandardItem* QStandardItemModel_HorizontalHeaderItem(const QStandardItemModel* void QStandardItemModel_SetHorizontalHeaderItem(QStandardItemModel* self, int column, QStandardItem* item); QStandardItem* QStandardItemModel_VerticalHeaderItem(const QStandardItemModel* self, int row); void QStandardItemModel_SetVerticalHeaderItem(QStandardItemModel* self, int row, QStandardItem* item); -void QStandardItemModel_SetHorizontalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels); -void QStandardItemModel_SetVerticalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels); +void QStandardItemModel_SetHorizontalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels); +void QStandardItemModel_SetVerticalHeaderLabels(QStandardItemModel* self, struct miqt_array /* of struct miqt_string */ labels); void QStandardItemModel_SetRowCount(QStandardItemModel* self, int rows); void QStandardItemModel_SetColumnCount(QStandardItemModel* self, int columns); -void QStandardItemModel_AppendRow(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items); -void QStandardItemModel_AppendColumn(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items); +void QStandardItemModel_AppendRow(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items); +void QStandardItemModel_AppendColumn(QStandardItemModel* self, struct miqt_array /* of QStandardItem* */ items); void QStandardItemModel_AppendRowWithItem(QStandardItemModel* self, QStandardItem* item); -void QStandardItemModel_InsertRow(QStandardItemModel* self, int row, struct miqt_array /* of QStandardItem* */ items); -void QStandardItemModel_InsertColumn(QStandardItemModel* self, int column, struct miqt_array /* of QStandardItem* */ items); +void QStandardItemModel_InsertRow(QStandardItemModel* self, int row, struct miqt_array /* of QStandardItem* */ items); +void QStandardItemModel_InsertColumn(QStandardItemModel* self, int column, struct miqt_array /* of QStandardItem* */ items); void QStandardItemModel_InsertRow2(QStandardItemModel* self, int row, QStandardItem* item); bool QStandardItemModel_InsertRowWithRow(QStandardItemModel* self, int row); bool QStandardItemModel_InsertColumnWithColumn(QStandardItemModel* self, int column); QStandardItem* QStandardItemModel_TakeItem(QStandardItemModel* self, int row); -struct miqt_array QStandardItemModel_TakeRow(QStandardItemModel* self, int row); -struct miqt_array QStandardItemModel_TakeColumn(QStandardItemModel* self, int column); +struct miqt_array /* of QStandardItem* */ QStandardItemModel_TakeRow(QStandardItemModel* self, int row); +struct miqt_array /* of QStandardItem* */ QStandardItemModel_TakeColumn(QStandardItemModel* self, int column); QStandardItem* QStandardItemModel_TakeHorizontalHeaderItem(QStandardItemModel* self, int column); QStandardItem* QStandardItemModel_TakeVerticalHeaderItem(QStandardItemModel* self, int row); QStandardItem* QStandardItemModel_ItemPrototype(const QStandardItemModel* self); void QStandardItemModel_SetItemPrototype(QStandardItemModel* self, QStandardItem* item); -struct miqt_array QStandardItemModel_FindItems(const QStandardItemModel* self, struct miqt_string text); +struct miqt_array /* of QStandardItem* */ QStandardItemModel_FindItems(const QStandardItemModel* self, struct miqt_string text); int QStandardItemModel_SortRole(const QStandardItemModel* self); void QStandardItemModel_SetSortRole(QStandardItemModel* self, int role); -struct miqt_array QStandardItemModel_MimeTypes(const QStandardItemModel* self); -QMimeData* QStandardItemModel_MimeData(const QStandardItemModel* self, struct miqt_array /* of QModelIndex* */ indexes); +struct miqt_array /* of struct miqt_string */ QStandardItemModel_MimeTypes(const QStandardItemModel* self); +QMimeData* QStandardItemModel_MimeData(const QStandardItemModel* self, struct miqt_array /* of QModelIndex* */ indexes); bool QStandardItemModel_DropMimeData(QStandardItemModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); void QStandardItemModel_ItemChanged(QStandardItemModel* self, QStandardItem* item); void QStandardItemModel_connect_ItemChanged(QStandardItemModel* self, intptr_t slot); @@ -227,8 +228,8 @@ QStandardItem* QStandardItemModel_Item2(const QStandardItemModel* self, int row, bool QStandardItemModel_InsertRow22(QStandardItemModel* self, int row, QModelIndex* parent); bool QStandardItemModel_InsertColumn2(QStandardItemModel* self, int column, QModelIndex* parent); QStandardItem* QStandardItemModel_TakeItem2(QStandardItemModel* self, int row, int column); -struct miqt_array QStandardItemModel_FindItems2(const QStandardItemModel* self, struct miqt_string text, int flags); -struct miqt_array QStandardItemModel_FindItems3(const QStandardItemModel* self, struct miqt_string text, int flags, int column); +struct miqt_array /* of QStandardItem* */ QStandardItemModel_FindItems2(const QStandardItemModel* self, struct miqt_string text, int flags); +struct miqt_array /* of QStandardItem* */ QStandardItemModel_FindItems3(const QStandardItemModel* self, struct miqt_string text, int flags, int column); void QStandardItemModel_Delete(QStandardItemModel* self); #ifdef __cplusplus diff --git a/qt6/gen_qstandardpaths.cpp b/qt6/gen_qstandardpaths.cpp index 0c172ffc..36aa9a6a 100644 --- a/qt6/gen_qstandardpaths.cpp +++ b/qt6/gen_qstandardpaths.cpp @@ -18,7 +18,7 @@ struct miqt_string QStandardPaths_WritableLocation(int typeVal) { return _ms; } -struct miqt_array QStandardPaths_StandardLocations(int typeVal) { +struct miqt_array /* of struct miqt_string */ QStandardPaths_StandardLocations(int typeVal) { QStringList _ret = QStandardPaths::standardLocations(static_cast(typeVal)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -50,7 +50,7 @@ struct miqt_string QStandardPaths_Locate(int typeVal, struct miqt_string fileNam return _ms; } -struct miqt_array QStandardPaths_LocateAll(int typeVal, struct miqt_string fileName) { +struct miqt_array /* of struct miqt_string */ QStandardPaths_LocateAll(int typeVal, struct miqt_string fileName) { QString fileName_QString = QString::fromUtf8(fileName.data, fileName.len); QStringList _ret = QStandardPaths::locateAll(static_cast(typeVal), fileName_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -114,7 +114,7 @@ struct miqt_string QStandardPaths_Locate3(int typeVal, struct miqt_string fileNa return _ms; } -struct miqt_array QStandardPaths_LocateAll3(int typeVal, struct miqt_string fileName, int options) { +struct miqt_array /* of struct miqt_string */ QStandardPaths_LocateAll3(int typeVal, struct miqt_string fileName, int options) { QString fileName_QString = QString::fromUtf8(fileName.data, fileName.len); QStringList _ret = QStandardPaths::locateAll(static_cast(typeVal), fileName_QString, static_cast(options)); // Convert QList<> from C++ memory to manually-managed C memory @@ -135,7 +135,7 @@ struct miqt_array QStandardPaths_LocateAll3(int typeVal, struct miqt_string file return _out; } -struct miqt_string QStandardPaths_FindExecutable2(struct miqt_string executableName, struct miqt_array /* of struct miqt_string */ paths) { +struct miqt_string QStandardPaths_FindExecutable2(struct miqt_string executableName, struct miqt_array /* of struct miqt_string */ paths) { QString executableName_QString = QString::fromUtf8(executableName.data, executableName.len); QStringList paths_QList; paths_QList.reserve(paths.len); diff --git a/qt6/gen_qstandardpaths.h b/qt6/gen_qstandardpaths.h index fe63dabd..cf94ba67 100644 --- a/qt6/gen_qstandardpaths.h +++ b/qt6/gen_qstandardpaths.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTANDARDPATHS_H -#define GEN_QSTANDARDPATHS_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTANDARDPATHS_H +#define MIQT_QT6_GEN_QSTANDARDPATHS_H #include #include @@ -20,16 +21,16 @@ typedef struct QStandardPaths QStandardPaths; #endif struct miqt_string QStandardPaths_WritableLocation(int typeVal); -struct miqt_array QStandardPaths_StandardLocations(int typeVal); +struct miqt_array /* of struct miqt_string */ QStandardPaths_StandardLocations(int typeVal); struct miqt_string QStandardPaths_Locate(int typeVal, struct miqt_string fileName); -struct miqt_array QStandardPaths_LocateAll(int typeVal, struct miqt_string fileName); +struct miqt_array /* of struct miqt_string */ QStandardPaths_LocateAll(int typeVal, struct miqt_string fileName); struct miqt_string QStandardPaths_DisplayName(int typeVal); struct miqt_string QStandardPaths_FindExecutable(struct miqt_string executableName); void QStandardPaths_SetTestModeEnabled(bool testMode); bool QStandardPaths_IsTestModeEnabled(); struct miqt_string QStandardPaths_Locate3(int typeVal, struct miqt_string fileName, int options); -struct miqt_array QStandardPaths_LocateAll3(int typeVal, struct miqt_string fileName, int options); -struct miqt_string QStandardPaths_FindExecutable2(struct miqt_string executableName, struct miqt_array /* of struct miqt_string */ paths); +struct miqt_array /* of struct miqt_string */ QStandardPaths_LocateAll3(int typeVal, struct miqt_string fileName, int options); +struct miqt_string QStandardPaths_FindExecutable2(struct miqt_string executableName, struct miqt_array /* of struct miqt_string */ paths); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstatictext.h b/qt6/gen_qstatictext.h index bb867d0a..321f4e83 100644 --- a/qt6/gen_qstatictext.h +++ b/qt6/gen_qstatictext.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTATICTEXT_H -#define GEN_QSTATICTEXT_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTATICTEXT_H +#define MIQT_QT6_GEN_QSTATICTEXT_H #include #include diff --git a/qt6/gen_qstatusbar.h b/qt6/gen_qstatusbar.h index df4a878b..d564b6ec 100644 --- a/qt6/gen_qstatusbar.h +++ b/qt6/gen_qstatusbar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTATUSBAR_H -#define GEN_QSTATUSBAR_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTATUSBAR_H +#define MIQT_QT6_GEN_QSTATUSBAR_H #include #include diff --git a/qt6/gen_qstorageinfo.cpp b/qt6/gen_qstorageinfo.cpp index b5f91814..35a393c3 100644 --- a/qt6/gen_qstorageinfo.cpp +++ b/qt6/gen_qstorageinfo.cpp @@ -138,7 +138,7 @@ void QStorageInfo_Refresh(QStorageInfo* self) { self->refresh(); } -struct miqt_array QStorageInfo_MountedVolumes() { +struct miqt_array /* of QStorageInfo* */ QStorageInfo_MountedVolumes() { QList _ret = QStorageInfo::mountedVolumes(); // Convert QList<> from C++ memory to manually-managed C memory QStorageInfo** _arr = static_cast(malloc(sizeof(QStorageInfo*) * _ret.length())); diff --git a/qt6/gen_qstorageinfo.h b/qt6/gen_qstorageinfo.h index 03ebafa5..8719a197 100644 --- a/qt6/gen_qstorageinfo.h +++ b/qt6/gen_qstorageinfo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTORAGEINFO_H -#define GEN_QSTORAGEINFO_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTORAGEINFO_H +#define MIQT_QT6_GEN_QSTORAGEINFO_H #include #include @@ -45,7 +46,7 @@ bool QStorageInfo_IsReadOnly(const QStorageInfo* self); bool QStorageInfo_IsReady(const QStorageInfo* self); bool QStorageInfo_IsValid(const QStorageInfo* self); void QStorageInfo_Refresh(QStorageInfo* self); -struct miqt_array QStorageInfo_MountedVolumes(); +struct miqt_array /* of QStorageInfo* */ QStorageInfo_MountedVolumes(); QStorageInfo* QStorageInfo_Root(); void QStorageInfo_Delete(QStorageInfo* self); diff --git a/qt6/gen_qstringbuilder.h b/qt6/gen_qstringbuilder.h index 1a556ddb..4287aee1 100644 --- a/qt6/gen_qstringbuilder.h +++ b/qt6/gen_qstringbuilder.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTRINGBUILDER_H -#define GEN_QSTRINGBUILDER_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTRINGBUILDER_H +#define MIQT_QT6_GEN_QSTRINGBUILDER_H #include #include diff --git a/qt6/gen_qstringconverter.h b/qt6/gen_qstringconverter.h index 13d5b60d..a4aef377 100644 --- a/qt6/gen_qstringconverter.h +++ b/qt6/gen_qstringconverter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTRINGCONVERTER_H -#define GEN_QSTRINGCONVERTER_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTRINGCONVERTER_H +#define MIQT_QT6_GEN_QSTRINGCONVERTER_H #include #include diff --git a/qt6/gen_qstringconverter_base.h b/qt6/gen_qstringconverter_base.h index 65cde3d0..e520fdc4 100644 --- a/qt6/gen_qstringconverter_base.h +++ b/qt6/gen_qstringconverter_base.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTRINGCONVERTER_BASE_H -#define GEN_QSTRINGCONVERTER_BASE_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTRINGCONVERTER_BASE_H +#define MIQT_QT6_GEN_QSTRINGCONVERTER_BASE_H #include #include diff --git a/qt6/gen_qstringlistmodel.cpp b/qt6/gen_qstringlistmodel.cpp index dcab7c09..586bbf84 100644 --- a/qt6/gen_qstringlistmodel.cpp +++ b/qt6/gen_qstringlistmodel.cpp @@ -16,7 +16,7 @@ QStringListModel* QStringListModel_new() { return new QStringListModel(); } -QStringListModel* QStringListModel_new2(struct miqt_array /* of struct miqt_string */ strings) { +QStringListModel* QStringListModel_new2(struct miqt_array /* of struct miqt_string */ strings) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -31,7 +31,7 @@ QStringListModel* QStringListModel_new3(QObject* parent) { return new QStringListModel(parent); } -QStringListModel* QStringListModel_new4(struct miqt_array /* of struct miqt_string */ strings, QObject* parent) { +QStringListModel* QStringListModel_new4(struct miqt_array /* of struct miqt_string */ strings, QObject* parent) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -98,7 +98,7 @@ bool QStringListModel_MoveRows(QStringListModel* self, QModelIndex* sourceParent return self->moveRows(*sourceParent, static_cast(sourceRow), static_cast(count), *destinationParent, static_cast(destinationChild)); } -struct miqt_map QStringListModel_ItemData(const QStringListModel* self, QModelIndex* index) { +struct miqt_map /* of int to QVariant* */ QStringListModel_ItemData(const QStringListModel* self, QModelIndex* index) { QMap _ret = self->itemData(*index); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -116,7 +116,7 @@ struct miqt_map QStringListModel_ItemData(const QStringListModel* self, QModelIn return _out; } -bool QStringListModel_SetItemData(QStringListModel* self, QModelIndex* index, struct miqt_map roles) { +bool QStringListModel_SetItemData(QStringListModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) { QMap roles_QMap; int* roles_karr = static_cast(roles.keys); QVariant** roles_varr = static_cast(roles.values); @@ -130,7 +130,7 @@ void QStringListModel_Sort(QStringListModel* self, int column) { self->sort(static_cast(column)); } -struct miqt_array QStringListModel_StringList(const QStringListModel* self) { +struct miqt_array /* of struct miqt_string */ QStringListModel_StringList(const QStringListModel* self) { QStringList _ret = self->stringList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -150,7 +150,7 @@ struct miqt_array QStringListModel_StringList(const QStringListModel* self) { return _out; } -void QStringListModel_SetStringList(QStringListModel* self, struct miqt_array /* of struct miqt_string */ strings) { +void QStringListModel_SetStringList(QStringListModel* self, struct miqt_array /* of struct miqt_string */ strings) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); diff --git a/qt6/gen_qstringlistmodel.h b/qt6/gen_qstringlistmodel.h index 27b34064..71ba8f6d 100644 --- a/qt6/gen_qstringlistmodel.h +++ b/qt6/gen_qstringlistmodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTRINGLISTMODEL_H -#define GEN_QSTRINGLISTMODEL_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTRINGLISTMODEL_H +#define MIQT_QT6_GEN_QSTRINGLISTMODEL_H #include #include @@ -28,9 +29,9 @@ typedef struct QVariant QVariant; #endif QStringListModel* QStringListModel_new(); -QStringListModel* QStringListModel_new2(struct miqt_array /* of struct miqt_string */ strings); +QStringListModel* QStringListModel_new2(struct miqt_array /* of struct miqt_string */ strings); QStringListModel* QStringListModel_new3(QObject* parent); -QStringListModel* QStringListModel_new4(struct miqt_array /* of struct miqt_string */ strings, QObject* parent); +QStringListModel* QStringListModel_new4(struct miqt_array /* of struct miqt_string */ strings, QObject* parent); QMetaObject* QStringListModel_MetaObject(const QStringListModel* self); void* QStringListModel_Metacast(QStringListModel* self, const char* param1); struct miqt_string QStringListModel_Tr(const char* s); @@ -43,11 +44,11 @@ int QStringListModel_Flags(const QStringListModel* self, QModelIndex* index); bool QStringListModel_InsertRows(QStringListModel* self, int row, int count); bool QStringListModel_RemoveRows(QStringListModel* self, int row, int count); bool QStringListModel_MoveRows(QStringListModel* self, QModelIndex* sourceParent, int sourceRow, int count, QModelIndex* destinationParent, int destinationChild); -struct miqt_map QStringListModel_ItemData(const QStringListModel* self, QModelIndex* index); -bool QStringListModel_SetItemData(QStringListModel* self, QModelIndex* index, struct miqt_map roles); +struct miqt_map /* of int to QVariant* */ QStringListModel_ItemData(const QStringListModel* self, QModelIndex* index); +bool QStringListModel_SetItemData(QStringListModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles); void QStringListModel_Sort(QStringListModel* self, int column); -struct miqt_array QStringListModel_StringList(const QStringListModel* self); -void QStringListModel_SetStringList(QStringListModel* self, struct miqt_array /* of struct miqt_string */ strings); +struct miqt_array /* of struct miqt_string */ QStringListModel_StringList(const QStringListModel* self); +void QStringListModel_SetStringList(QStringListModel* self, struct miqt_array /* of struct miqt_string */ strings); int QStringListModel_SupportedDropActions(const QStringListModel* self); struct miqt_string QStringListModel_Tr2(const char* s, const char* c); struct miqt_string QStringListModel_Tr3(const char* s, const char* c, int n); diff --git a/qt6/gen_qstringmatcher.h b/qt6/gen_qstringmatcher.h index 371b853c..728e816f 100644 --- a/qt6/gen_qstringmatcher.h +++ b/qt6/gen_qstringmatcher.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTRINGMATCHER_H -#define GEN_QSTRINGMATCHER_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTRINGMATCHER_H +#define MIQT_QT6_GEN_QSTRINGMATCHER_H #include #include diff --git a/qt6/gen_qstringtokenizer.h b/qt6/gen_qstringtokenizer.h index 7d6288ee..de175df9 100644 --- a/qt6/gen_qstringtokenizer.h +++ b/qt6/gen_qstringtokenizer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTRINGTOKENIZER_H -#define GEN_QSTRINGTOKENIZER_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTRINGTOKENIZER_H +#define MIQT_QT6_GEN_QSTRINGTOKENIZER_H #include #include diff --git a/qt6/gen_qstringview.cpp b/qt6/gen_qstringview.cpp index 3349071c..fb40ef94 100644 --- a/qt6/gen_qstringview.cpp +++ b/qt6/gen_qstringview.cpp @@ -72,7 +72,7 @@ struct miqt_string QStringView_ToLocal8Bit(const QStringView* self) { return _ms; } -struct miqt_array QStringView_ToUcs4(const QStringView* self) { +struct miqt_array /* of unsigned int */ QStringView_ToUcs4(const QStringView* self) { QList _ret = self->toUcs4(); // Convert QList<> from C++ memory to manually-managed C memory unsigned int* _arr = static_cast(malloc(sizeof(unsigned int) * _ret.length())); diff --git a/qt6/gen_qstringview.h b/qt6/gen_qstringview.h index 91657f28..f112754a 100644 --- a/qt6/gen_qstringview.h +++ b/qt6/gen_qstringview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTRINGVIEW_H -#define GEN_QSTRINGVIEW_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTRINGVIEW_H +#define MIQT_QT6_GEN_QSTRINGVIEW_H #include #include @@ -36,7 +37,7 @@ QChar* QStringView_OperatorSubscript(const QStringView* self, ptrdiff_t n); struct miqt_string QStringView_ToLatin1(const QStringView* self); struct miqt_string QStringView_ToUtf8(const QStringView* self); struct miqt_string QStringView_ToLocal8Bit(const QStringView* self); -struct miqt_array QStringView_ToUcs4(const QStringView* self); +struct miqt_array /* of unsigned int */ QStringView_ToUcs4(const QStringView* self); QChar* QStringView_At(const QStringView* self, ptrdiff_t n); void QStringView_Truncate(QStringView* self, ptrdiff_t n); void QStringView_Chop(QStringView* self, ptrdiff_t n); diff --git a/qt6/gen_qstyle.h b/qt6/gen_qstyle.h index 3971b0e3..c43cb54d 100644 --- a/qt6/gen_qstyle.h +++ b/qt6/gen_qstyle.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTYLE_H -#define GEN_QSTYLE_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTYLE_H +#define MIQT_QT6_GEN_QSTYLE_H #include #include diff --git a/qt6/gen_qstyleditemdelegate.h b/qt6/gen_qstyleditemdelegate.h index ecaaf085..d017356b 100644 --- a/qt6/gen_qstyleditemdelegate.h +++ b/qt6/gen_qstyleditemdelegate.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTYLEDITEMDELEGATE_H -#define GEN_QSTYLEDITEMDELEGATE_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTYLEDITEMDELEGATE_H +#define MIQT_QT6_GEN_QSTYLEDITEMDELEGATE_H #include #include diff --git a/qt6/gen_qstylefactory.cpp b/qt6/gen_qstylefactory.cpp index 2a4035f8..2e2586b0 100644 --- a/qt6/gen_qstylefactory.cpp +++ b/qt6/gen_qstylefactory.cpp @@ -8,7 +8,7 @@ #include "gen_qstylefactory.h" #include "_cgo_export.h" -struct miqt_array QStyleFactory_Keys() { +struct miqt_array /* of struct miqt_string */ QStyleFactory_Keys() { QStringList _ret = QStyleFactory::keys(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qstylefactory.h b/qt6/gen_qstylefactory.h index 4e0ef7c7..c3f3ed97 100644 --- a/qt6/gen_qstylefactory.h +++ b/qt6/gen_qstylefactory.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTYLEFACTORY_H -#define GEN_QSTYLEFACTORY_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTYLEFACTORY_H +#define MIQT_QT6_GEN_QSTYLEFACTORY_H #include #include @@ -21,7 +22,7 @@ typedef struct QStyle QStyle; typedef struct QStyleFactory QStyleFactory; #endif -struct miqt_array QStyleFactory_Keys(); +struct miqt_array /* of struct miqt_string */ QStyleFactory_Keys(); QStyle* QStyleFactory_Create(struct miqt_string param1); void QStyleFactory_Delete(QStyleFactory* self); diff --git a/qt6/gen_qstylehints.h b/qt6/gen_qstylehints.h index 91fec83a..ba078edc 100644 --- a/qt6/gen_qstylehints.h +++ b/qt6/gen_qstylehints.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTYLEHINTS_H -#define GEN_QSTYLEHINTS_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTYLEHINTS_H +#define MIQT_QT6_GEN_QSTYLEHINTS_H #include #include diff --git a/qt6/gen_qstyleoption.h b/qt6/gen_qstyleoption.h index c59104ca..b0adc57f 100644 --- a/qt6/gen_qstyleoption.h +++ b/qt6/gen_qstyleoption.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTYLEOPTION_H -#define GEN_QSTYLEOPTION_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTYLEOPTION_H +#define MIQT_QT6_GEN_QSTYLEOPTION_H #include #include diff --git a/qt6/gen_qstylepainter.h b/qt6/gen_qstylepainter.h index b2c8efab..9791ee61 100644 --- a/qt6/gen_qstylepainter.h +++ b/qt6/gen_qstylepainter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTYLEPAINTER_H -#define GEN_QSTYLEPAINTER_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTYLEPAINTER_H +#define MIQT_QT6_GEN_QSTYLEPAINTER_H #include #include diff --git a/qt6/gen_qstyleplugin.h b/qt6/gen_qstyleplugin.h index d95db4eb..17f64470 100644 --- a/qt6/gen_qstyleplugin.h +++ b/qt6/gen_qstyleplugin.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSTYLEPLUGIN_H -#define GEN_QSTYLEPLUGIN_H +#pragma once +#ifndef MIQT_QT6_GEN_QSTYLEPLUGIN_H +#define MIQT_QT6_GEN_QSTYLEPLUGIN_H #include #include diff --git a/qt6/gen_qsurface.h b/qt6/gen_qsurface.h index 0ad58a32..b75e892b 100644 --- a/qt6/gen_qsurface.h +++ b/qt6/gen_qsurface.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSURFACE_H -#define GEN_QSURFACE_H +#pragma once +#ifndef MIQT_QT6_GEN_QSURFACE_H +#define MIQT_QT6_GEN_QSURFACE_H #include #include diff --git a/qt6/gen_qsurfaceformat.cpp b/qt6/gen_qsurfaceformat.cpp index 24d686cd..33707752 100644 --- a/qt6/gen_qsurfaceformat.cpp +++ b/qt6/gen_qsurfaceformat.cpp @@ -123,6 +123,20 @@ int QSurfaceFormat_MinorVersion(const QSurfaceFormat* self) { return self->minorVersion(); } +struct miqt_map /* tuple of int and int */ QSurfaceFormat_Version(const QSurfaceFormat* self) { + QPair _ret = self->version(); + // Convert QPair<> from C++ memory to manually-managed C memory + int* _first_arr = static_cast(malloc(sizeof(int))); + int* _second_arr = static_cast(malloc(sizeof(int))); + _first_arr[0] = _ret.first; + _second_arr[0] = _ret.second; + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + void QSurfaceFormat_SetVersion(QSurfaceFormat* self, int major, int minor) { self->setVersion(static_cast(major), static_cast(minor)); } diff --git a/qt6/gen_qsurfaceformat.go b/qt6/gen_qsurfaceformat.go index ff0ebccc..3468692e 100644 --- a/qt6/gen_qsurfaceformat.go +++ b/qt6/gen_qsurfaceformat.go @@ -207,6 +207,23 @@ func (this *QSurfaceFormat) MinorVersion() int { return (int)(C.QSurfaceFormat_MinorVersion(this.h)) } +func (this *QSurfaceFormat) Version() struct { + First int + Second int +} { + var _mm C.struct_miqt_map = C.QSurfaceFormat_Version(this.h) + _First_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.values)) + _entry_First := (int)(_First_CArray[0]) + + _entry_Second := (int)(_Second_CArray[0]) + + return struct { + First int + Second int + }{First: _entry_First, Second: _entry_Second} +} + func (this *QSurfaceFormat) SetVersion(major int, minor int) { C.QSurfaceFormat_SetVersion(this.h, (C.int)(major), (C.int)(minor)) } diff --git a/qt6/gen_qsurfaceformat.h b/qt6/gen_qsurfaceformat.h index 51d2e96b..c77afafb 100644 --- a/qt6/gen_qsurfaceformat.h +++ b/qt6/gen_qsurfaceformat.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSURFACEFORMAT_H -#define GEN_QSURFACEFORMAT_H +#pragma once +#ifndef MIQT_QT6_GEN_QSURFACEFORMAT_H +#define MIQT_QT6_GEN_QSURFACEFORMAT_H #include #include @@ -50,6 +51,7 @@ void QSurfaceFormat_SetMajorVersion(QSurfaceFormat* self, int majorVersion); int QSurfaceFormat_MajorVersion(const QSurfaceFormat* self); void QSurfaceFormat_SetMinorVersion(QSurfaceFormat* self, int minorVersion); int QSurfaceFormat_MinorVersion(const QSurfaceFormat* self); +struct miqt_map /* tuple of int and int */ QSurfaceFormat_Version(const QSurfaceFormat* self); void QSurfaceFormat_SetVersion(QSurfaceFormat* self, int major, int minor); bool QSurfaceFormat_Stereo(const QSurfaceFormat* self); void QSurfaceFormat_SetStereo(QSurfaceFormat* self, bool enable); diff --git a/qt6/gen_qsyntaxhighlighter.h b/qt6/gen_qsyntaxhighlighter.h index ac56faa5..a5e44870 100644 --- a/qt6/gen_qsyntaxhighlighter.h +++ b/qt6/gen_qsyntaxhighlighter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSYNTAXHIGHLIGHTER_H -#define GEN_QSYNTAXHIGHLIGHTER_H +#pragma once +#ifndef MIQT_QT6_GEN_QSYNTAXHIGHLIGHTER_H +#define MIQT_QT6_GEN_QSYNTAXHIGHLIGHTER_H #include #include diff --git a/qt6/gen_qsystemsemaphore.h b/qt6/gen_qsystemsemaphore.h index ccd22584..4e25954a 100644 --- a/qt6/gen_qsystemsemaphore.h +++ b/qt6/gen_qsystemsemaphore.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSYSTEMSEMAPHORE_H -#define GEN_QSYSTEMSEMAPHORE_H +#pragma once +#ifndef MIQT_QT6_GEN_QSYSTEMSEMAPHORE_H +#define MIQT_QT6_GEN_QSYSTEMSEMAPHORE_H #include #include diff --git a/qt6/gen_qsystemtrayicon.h b/qt6/gen_qsystemtrayicon.h index a8d62ff9..2e4139d0 100644 --- a/qt6/gen_qsystemtrayicon.h +++ b/qt6/gen_qsystemtrayicon.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSYSTEMTRAYICON_H -#define GEN_QSYSTEMTRAYICON_H +#pragma once +#ifndef MIQT_QT6_GEN_QSYSTEMTRAYICON_H +#define MIQT_QT6_GEN_QSYSTEMTRAYICON_H #include #include diff --git a/qt6/gen_qtabbar.h b/qt6/gen_qtabbar.h index 54ac388b..484cea54 100644 --- a/qt6/gen_qtabbar.h +++ b/qt6/gen_qtabbar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTABBAR_H -#define GEN_QTABBAR_H +#pragma once +#ifndef MIQT_QT6_GEN_QTABBAR_H +#define MIQT_QT6_GEN_QTABBAR_H #include #include diff --git a/qt6/gen_qtableview.h b/qt6/gen_qtableview.h index 11eac06a..38fc5871 100644 --- a/qt6/gen_qtableview.h +++ b/qt6/gen_qtableview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTABLEVIEW_H -#define GEN_QTABLEVIEW_H +#pragma once +#ifndef MIQT_QT6_GEN_QTABLEVIEW_H +#define MIQT_QT6_GEN_QTABLEVIEW_H #include #include diff --git a/qt6/gen_qtablewidget.cpp b/qt6/gen_qtablewidget.cpp index b84baf13..70347736 100644 --- a/qt6/gen_qtablewidget.cpp +++ b/qt6/gen_qtablewidget.cpp @@ -354,7 +354,7 @@ QTableWidgetItem* QTableWidget_TakeItem(QTableWidget* self, int row, int column) return self->takeItem(static_cast(row), static_cast(column)); } -struct miqt_array QTableWidget_Items(const QTableWidget* self, QMimeData* data) { +struct miqt_array /* of QTableWidgetItem* */ QTableWidget_Items(const QTableWidget* self, QMimeData* data) { QList _ret = self->items(data); // Convert QList<> from C++ memory to manually-managed C memory QTableWidgetItem** _arr = static_cast(malloc(sizeof(QTableWidgetItem*) * _ret.length())); @@ -399,7 +399,7 @@ QTableWidgetItem* QTableWidget_TakeHorizontalHeaderItem(QTableWidget* self, int return self->takeHorizontalHeaderItem(static_cast(column)); } -void QTableWidget_SetVerticalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels) { +void QTableWidget_SetVerticalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels) { QStringList labels_QList; labels_QList.reserve(labels.len); struct miqt_string* labels_arr = static_cast(labels.data); @@ -410,7 +410,7 @@ void QTableWidget_SetVerticalHeaderLabels(QTableWidget* self, struct miqt_array self->setVerticalHeaderLabels(labels_QList); } -void QTableWidget_SetHorizontalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels) { +void QTableWidget_SetHorizontalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels) { QStringList labels_QList; labels_QList.reserve(labels.len); struct miqt_string* labels_arr = static_cast(labels.data); @@ -493,7 +493,7 @@ void QTableWidget_SetRangeSelected(QTableWidget* self, QTableWidgetSelectionRang self->setRangeSelected(*rangeVal, selectVal); } -struct miqt_array QTableWidget_SelectedRanges(const QTableWidget* self) { +struct miqt_array /* of QTableWidgetSelectionRange* */ QTableWidget_SelectedRanges(const QTableWidget* self) { QList _ret = self->selectedRanges(); // Convert QList<> from C++ memory to manually-managed C memory QTableWidgetSelectionRange** _arr = static_cast(malloc(sizeof(QTableWidgetSelectionRange*) * _ret.length())); @@ -506,7 +506,7 @@ struct miqt_array QTableWidget_SelectedRanges(const QTableWidget* self) { return _out; } -struct miqt_array QTableWidget_SelectedItems(const QTableWidget* self) { +struct miqt_array /* of QTableWidgetItem* */ QTableWidget_SelectedItems(const QTableWidget* self) { QList _ret = self->selectedItems(); // Convert QList<> from C++ memory to manually-managed C memory QTableWidgetItem** _arr = static_cast(malloc(sizeof(QTableWidgetItem*) * _ret.length())); @@ -519,7 +519,7 @@ struct miqt_array QTableWidget_SelectedItems(const QTableWidget* self) { return _out; } -struct miqt_array QTableWidget_FindItems(const QTableWidget* self, struct miqt_string text, int flags) { +struct miqt_array /* of QTableWidgetItem* */ QTableWidget_FindItems(const QTableWidget* self, struct miqt_string text, int flags) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->findItems(text_QString, static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt6/gen_qtablewidget.h b/qt6/gen_qtablewidget.h index ced438b6..4f20e6dc 100644 --- a/qt6/gen_qtablewidget.h +++ b/qt6/gen_qtablewidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTABLEWIDGET_H -#define GEN_QTABLEWIDGET_H +#pragma once +#ifndef MIQT_QT6_GEN_QTABLEWIDGET_H +#define MIQT_QT6_GEN_QTABLEWIDGET_H #include #include @@ -121,7 +122,7 @@ int QTableWidget_Column(const QTableWidget* self, QTableWidgetItem* item); QTableWidgetItem* QTableWidget_Item(const QTableWidget* self, int row, int column); void QTableWidget_SetItem(QTableWidget* self, int row, int column, QTableWidgetItem* item); QTableWidgetItem* QTableWidget_TakeItem(QTableWidget* self, int row, int column); -struct miqt_array QTableWidget_Items(const QTableWidget* self, QMimeData* data); +struct miqt_array /* of QTableWidgetItem* */ QTableWidget_Items(const QTableWidget* self, QMimeData* data); QModelIndex* QTableWidget_IndexFromItem(const QTableWidget* self, QTableWidgetItem* item); QTableWidgetItem* QTableWidget_ItemFromIndex(const QTableWidget* self, QModelIndex* index); QTableWidgetItem* QTableWidget_VerticalHeaderItem(const QTableWidget* self, int row); @@ -130,8 +131,8 @@ QTableWidgetItem* QTableWidget_TakeVerticalHeaderItem(QTableWidget* self, int ro QTableWidgetItem* QTableWidget_HorizontalHeaderItem(const QTableWidget* self, int column); void QTableWidget_SetHorizontalHeaderItem(QTableWidget* self, int column, QTableWidgetItem* item); QTableWidgetItem* QTableWidget_TakeHorizontalHeaderItem(QTableWidget* self, int column); -void QTableWidget_SetVerticalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels); -void QTableWidget_SetHorizontalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels); +void QTableWidget_SetVerticalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels); +void QTableWidget_SetHorizontalHeaderLabels(QTableWidget* self, struct miqt_array /* of struct miqt_string */ labels); int QTableWidget_CurrentRow(const QTableWidget* self); int QTableWidget_CurrentColumn(const QTableWidget* self); QTableWidgetItem* QTableWidget_CurrentItem(const QTableWidget* self); @@ -150,9 +151,9 @@ QWidget* QTableWidget_CellWidget(const QTableWidget* self, int row, int column); void QTableWidget_SetCellWidget(QTableWidget* self, int row, int column, QWidget* widget); void QTableWidget_RemoveCellWidget(QTableWidget* self, int row, int column); void QTableWidget_SetRangeSelected(QTableWidget* self, QTableWidgetSelectionRange* rangeVal, bool selectVal); -struct miqt_array QTableWidget_SelectedRanges(const QTableWidget* self); -struct miqt_array QTableWidget_SelectedItems(const QTableWidget* self); -struct miqt_array QTableWidget_FindItems(const QTableWidget* self, struct miqt_string text, int flags); +struct miqt_array /* of QTableWidgetSelectionRange* */ QTableWidget_SelectedRanges(const QTableWidget* self); +struct miqt_array /* of QTableWidgetItem* */ QTableWidget_SelectedItems(const QTableWidget* self); +struct miqt_array /* of QTableWidgetItem* */ QTableWidget_FindItems(const QTableWidget* self, struct miqt_string text, int flags); int QTableWidget_VisualRow(const QTableWidget* self, int logicalRow); int QTableWidget_VisualColumn(const QTableWidget* self, int logicalColumn); QTableWidgetItem* QTableWidget_ItemAt(const QTableWidget* self, QPoint* p); diff --git a/qt6/gen_qtabwidget.h b/qt6/gen_qtabwidget.h index 2fec0d86..b4e0ddff 100644 --- a/qt6/gen_qtabwidget.h +++ b/qt6/gen_qtabwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTABWIDGET_H -#define GEN_QTABWIDGET_H +#pragma once +#ifndef MIQT_QT6_GEN_QTABWIDGET_H +#define MIQT_QT6_GEN_QTABWIDGET_H #include #include diff --git a/qt6/gen_qtemporarydir.h b/qt6/gen_qtemporarydir.h index af402a77..e474cf47 100644 --- a/qt6/gen_qtemporarydir.h +++ b/qt6/gen_qtemporarydir.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEMPORARYDIR_H -#define GEN_QTEMPORARYDIR_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEMPORARYDIR_H +#define MIQT_QT6_GEN_QTEMPORARYDIR_H #include #include diff --git a/qt6/gen_qtemporaryfile.h b/qt6/gen_qtemporaryfile.h index c0834682..1f59c9d8 100644 --- a/qt6/gen_qtemporaryfile.h +++ b/qt6/gen_qtemporaryfile.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEMPORARYFILE_H -#define GEN_QTEMPORARYFILE_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEMPORARYFILE_H +#define MIQT_QT6_GEN_QTEMPORARYFILE_H #include #include diff --git a/qt6/gen_qtestsupport_gui.h b/qt6/gen_qtestsupport_gui.h index 09d30ddf..ab3c71b4 100644 --- a/qt6/gen_qtestsupport_gui.h +++ b/qt6/gen_qtestsupport_gui.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTESTSUPPORT_GUI_H -#define GEN_QTESTSUPPORT_GUI_H +#pragma once +#ifndef MIQT_QT6_GEN_QTESTSUPPORT_GUI_H +#define MIQT_QT6_GEN_QTESTSUPPORT_GUI_H #include #include diff --git a/qt6/gen_qtestsupport_widgets.h b/qt6/gen_qtestsupport_widgets.h index 87aa14e5..b971ba51 100644 --- a/qt6/gen_qtestsupport_widgets.h +++ b/qt6/gen_qtestsupport_widgets.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTESTSUPPORT_WIDGETS_H -#define GEN_QTESTSUPPORT_WIDGETS_H +#pragma once +#ifndef MIQT_QT6_GEN_QTESTSUPPORT_WIDGETS_H +#define MIQT_QT6_GEN_QTESTSUPPORT_WIDGETS_H #include #include diff --git a/qt6/gen_qtextboundaryfinder.h b/qt6/gen_qtextboundaryfinder.h index 7cc6a0f3..5a41d52a 100644 --- a/qt6/gen_qtextboundaryfinder.h +++ b/qt6/gen_qtextboundaryfinder.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTBOUNDARYFINDER_H -#define GEN_QTEXTBOUNDARYFINDER_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEXTBOUNDARYFINDER_H +#define MIQT_QT6_GEN_QTEXTBOUNDARYFINDER_H #include #include diff --git a/qt6/gen_qtextbrowser.cpp b/qt6/gen_qtextbrowser.cpp index 2b1f096e..564c155d 100644 --- a/qt6/gen_qtextbrowser.cpp +++ b/qt6/gen_qtextbrowser.cpp @@ -47,7 +47,7 @@ int QTextBrowser_SourceType(const QTextBrowser* self) { return static_cast(_ret); } -struct miqt_array QTextBrowser_SearchPaths(const QTextBrowser* self) { +struct miqt_array /* of struct miqt_string */ QTextBrowser_SearchPaths(const QTextBrowser* self) { QStringList _ret = self->searchPaths(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -67,7 +67,7 @@ struct miqt_array QTextBrowser_SearchPaths(const QTextBrowser* self) { return _out; } -void QTextBrowser_SetSearchPaths(QTextBrowser* self, struct miqt_array /* of struct miqt_string */ paths) { +void QTextBrowser_SetSearchPaths(QTextBrowser* self, struct miqt_array /* of struct miqt_string */ paths) { QStringList paths_QList; paths_QList.reserve(paths.len); struct miqt_string* paths_arr = static_cast(paths.data); diff --git a/qt6/gen_qtextbrowser.h b/qt6/gen_qtextbrowser.h index 6176efa4..ca499b41 100644 --- a/qt6/gen_qtextbrowser.h +++ b/qt6/gen_qtextbrowser.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTBROWSER_H -#define GEN_QTEXTBROWSER_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEXTBROWSER_H +#define MIQT_QT6_GEN_QTEXTBROWSER_H #include #include @@ -34,8 +35,8 @@ void* QTextBrowser_Metacast(QTextBrowser* self, const char* param1); struct miqt_string QTextBrowser_Tr(const char* s); QUrl* QTextBrowser_Source(const QTextBrowser* self); int QTextBrowser_SourceType(const QTextBrowser* self); -struct miqt_array QTextBrowser_SearchPaths(const QTextBrowser* self); -void QTextBrowser_SetSearchPaths(QTextBrowser* self, struct miqt_array /* of struct miqt_string */ paths); +struct miqt_array /* of struct miqt_string */ QTextBrowser_SearchPaths(const QTextBrowser* self); +void QTextBrowser_SetSearchPaths(QTextBrowser* self, struct miqt_array /* of struct miqt_string */ paths); QVariant* QTextBrowser_LoadResource(QTextBrowser* self, int typeVal, QUrl* name); bool QTextBrowser_IsBackwardAvailable(const QTextBrowser* self); bool QTextBrowser_IsForwardAvailable(const QTextBrowser* self); diff --git a/qt6/gen_qtextcursor.h b/qt6/gen_qtextcursor.h index b62f18eb..e60137f3 100644 --- a/qt6/gen_qtextcursor.h +++ b/qt6/gen_qtextcursor.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTCURSOR_H -#define GEN_QTEXTCURSOR_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEXTCURSOR_H +#define MIQT_QT6_GEN_QTEXTCURSOR_H #include #include diff --git a/qt6/gen_qtextdocument.cpp b/qt6/gen_qtextdocument.cpp index 3eddbcf9..7ad71321 100644 --- a/qt6/gen_qtextdocument.cpp +++ b/qt6/gen_qtextdocument.cpp @@ -331,7 +331,7 @@ void QTextDocument_AddResource(QTextDocument* self, int typeVal, QUrl* name, QVa self->addResource(static_cast(typeVal), *name, *resource); } -struct miqt_array QTextDocument_AllFormats(const QTextDocument* self) { +struct miqt_array /* of QTextFormat* */ QTextDocument_AllFormats(const QTextDocument* self) { QList _ret = self->allFormats(); // Convert QList<> from C++ memory to manually-managed C memory QTextFormat** _arr = static_cast(malloc(sizeof(QTextFormat*) * _ret.length())); diff --git a/qt6/gen_qtextdocument.h b/qt6/gen_qtextdocument.h index 2e92deab..7068323f 100644 --- a/qt6/gen_qtextdocument.h +++ b/qt6/gen_qtextdocument.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTDOCUMENT_H -#define GEN_QTEXTDOCUMENT_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEXTDOCUMENT_H +#define MIQT_QT6_GEN_QTEXTDOCUMENT_H #include #include @@ -121,7 +122,7 @@ bool QTextDocument_IsModified(const QTextDocument* self); void QTextDocument_Print(const QTextDocument* self, QPagedPaintDevice* printer); QVariant* QTextDocument_Resource(const QTextDocument* self, int typeVal, QUrl* name); void QTextDocument_AddResource(QTextDocument* self, int typeVal, QUrl* name, QVariant* resource); -struct miqt_array QTextDocument_AllFormats(const QTextDocument* self); +struct miqt_array /* of QTextFormat* */ QTextDocument_AllFormats(const QTextDocument* self); void QTextDocument_MarkContentsDirty(QTextDocument* self, int from, int length); void QTextDocument_SetUseDesignMetrics(QTextDocument* self, bool b); bool QTextDocument_UseDesignMetrics(const QTextDocument* self); diff --git a/qt6/gen_qtextdocumentfragment.h b/qt6/gen_qtextdocumentfragment.h index acac59fd..45b8d407 100644 --- a/qt6/gen_qtextdocumentfragment.h +++ b/qt6/gen_qtextdocumentfragment.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTDOCUMENTFRAGMENT_H -#define GEN_QTEXTDOCUMENTFRAGMENT_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEXTDOCUMENTFRAGMENT_H +#define MIQT_QT6_GEN_QTEXTDOCUMENTFRAGMENT_H #include #include diff --git a/qt6/gen_qtextdocumentwriter.cpp b/qt6/gen_qtextdocumentwriter.cpp index 03bde4a9..ff906c48 100644 --- a/qt6/gen_qtextdocumentwriter.cpp +++ b/qt6/gen_qtextdocumentwriter.cpp @@ -77,7 +77,7 @@ bool QTextDocumentWriter_WriteWithFragment(QTextDocumentWriter* self, QTextDocum return self->write(*fragment); } -struct miqt_array QTextDocumentWriter_SupportedDocumentFormats() { +struct miqt_array /* of struct miqt_string */ QTextDocumentWriter_SupportedDocumentFormats() { QList _ret = QTextDocumentWriter::supportedDocumentFormats(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/gen_qtextdocumentwriter.h b/qt6/gen_qtextdocumentwriter.h index daed1ad6..48d1ac30 100644 --- a/qt6/gen_qtextdocumentwriter.h +++ b/qt6/gen_qtextdocumentwriter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTDOCUMENTWRITER_H -#define GEN_QTEXTDOCUMENTWRITER_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEXTDOCUMENTWRITER_H +#define MIQT_QT6_GEN_QTEXTDOCUMENTWRITER_H #include #include @@ -39,7 +40,7 @@ void QTextDocumentWriter_SetFileName(QTextDocumentWriter* self, struct miqt_stri struct miqt_string QTextDocumentWriter_FileName(const QTextDocumentWriter* self); bool QTextDocumentWriter_Write(QTextDocumentWriter* self, QTextDocument* document); bool QTextDocumentWriter_WriteWithFragment(QTextDocumentWriter* self, QTextDocumentFragment* fragment); -struct miqt_array QTextDocumentWriter_SupportedDocumentFormats(); +struct miqt_array /* of struct miqt_string */ QTextDocumentWriter_SupportedDocumentFormats(); void QTextDocumentWriter_Delete(QTextDocumentWriter* self); #ifdef __cplusplus diff --git a/qt6/gen_qtextedit.cpp b/qt6/gen_qtextedit.cpp index a2540801..c5054524 100644 --- a/qt6/gen_qtextedit.cpp +++ b/qt6/gen_qtextedit.cpp @@ -346,7 +346,7 @@ void QTextEdit_SetAcceptRichText(QTextEdit* self, bool accept) { self->setAcceptRichText(accept); } -void QTextEdit_SetExtraSelections(QTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections) { +void QTextEdit_SetExtraSelections(QTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections) { QList selections_QList; selections_QList.reserve(selections.len); QTextEdit__ExtraSelection** selections_arr = static_cast(selections.data); @@ -356,7 +356,7 @@ void QTextEdit_SetExtraSelections(QTextEdit* self, struct miqt_array /* of QText self->setExtraSelections(selections_QList); } -struct miqt_array QTextEdit_ExtraSelections(const QTextEdit* self) { +struct miqt_array /* of QTextEdit__ExtraSelection* */ QTextEdit_ExtraSelections(const QTextEdit* self) { QList _ret = self->extraSelections(); // Convert QList<> from C++ memory to manually-managed C memory QTextEdit__ExtraSelection** _arr = static_cast(malloc(sizeof(QTextEdit__ExtraSelection*) * _ret.length())); diff --git a/qt6/gen_qtextedit.h b/qt6/gen_qtextedit.h index 8f486d7e..6b2ebb7e 100644 --- a/qt6/gen_qtextedit.h +++ b/qt6/gen_qtextedit.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTEDIT_H -#define GEN_QTEXTEDIT_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEXTEDIT_H +#define MIQT_QT6_GEN_QTEXTEDIT_H #include #include @@ -117,8 +118,8 @@ int QTextEdit_CursorWidth(const QTextEdit* self); void QTextEdit_SetCursorWidth(QTextEdit* self, int width); bool QTextEdit_AcceptRichText(const QTextEdit* self); void QTextEdit_SetAcceptRichText(QTextEdit* self, bool accept); -void QTextEdit_SetExtraSelections(QTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections); -struct miqt_array QTextEdit_ExtraSelections(const QTextEdit* self); +void QTextEdit_SetExtraSelections(QTextEdit* self, struct miqt_array /* of QTextEdit__ExtraSelection* */ selections); +struct miqt_array /* of QTextEdit__ExtraSelection* */ QTextEdit_ExtraSelections(const QTextEdit* self); void QTextEdit_MoveCursor(QTextEdit* self, int operation); bool QTextEdit_CanPaste(const QTextEdit* self); void QTextEdit_Print(const QTextEdit* self, QPagedPaintDevice* printer); diff --git a/qt6/gen_qtextformat.cpp b/qt6/gen_qtextformat.cpp index 09b113e3..4e84a0b2 100644 --- a/qt6/gen_qtextformat.cpp +++ b/qt6/gen_qtextformat.cpp @@ -161,7 +161,7 @@ QTextLength* QTextFormat_LengthProperty(const QTextFormat* self, int propertyId) return new QTextLength(self->lengthProperty(static_cast(propertyId))); } -struct miqt_array QTextFormat_LengthVectorProperty(const QTextFormat* self, int propertyId) { +struct miqt_array /* of QTextLength* */ QTextFormat_LengthVectorProperty(const QTextFormat* self, int propertyId) { QList _ret = self->lengthVectorProperty(static_cast(propertyId)); // Convert QList<> from C++ memory to manually-managed C memory QTextLength** _arr = static_cast(malloc(sizeof(QTextLength*) * _ret.length())); @@ -174,7 +174,7 @@ struct miqt_array QTextFormat_LengthVectorProperty(const QTextFormat* self, int return _out; } -void QTextFormat_SetProperty2(QTextFormat* self, int propertyId, struct miqt_array /* of QTextLength* */ lengths) { +void QTextFormat_SetProperty2(QTextFormat* self, int propertyId, struct miqt_array /* of QTextLength* */ lengths) { QList lengths_QList; lengths_QList.reserve(lengths.len); QTextLength** lengths_arr = static_cast(lengths.data); @@ -184,7 +184,7 @@ void QTextFormat_SetProperty2(QTextFormat* self, int propertyId, struct miqt_arr self->setProperty(static_cast(propertyId), lengths_QList); } -struct miqt_map QTextFormat_Properties(const QTextFormat* self) { +struct miqt_map /* of int to QVariant* */ QTextFormat_Properties(const QTextFormat* self) { QMap _ret = self->properties(); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -351,7 +351,7 @@ struct miqt_string QTextCharFormat_FontFamily(const QTextCharFormat* self) { return _ms; } -void QTextCharFormat_SetFontFamilies(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ families) { +void QTextCharFormat_SetFontFamilies(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ families) { QStringList families_QList; families_QList.reserve(families.len); struct miqt_string* families_arr = static_cast(families.data); @@ -612,7 +612,7 @@ struct miqt_string QTextCharFormat_AnchorHref(const QTextCharFormat* self) { return _ms; } -void QTextCharFormat_SetAnchorNames(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ names) { +void QTextCharFormat_SetAnchorNames(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ names) { QStringList names_QList; names_QList.reserve(names.len); struct miqt_string* names_arr = static_cast(names.data); @@ -623,7 +623,7 @@ void QTextCharFormat_SetAnchorNames(QTextCharFormat* self, struct miqt_array /* self->setAnchorNames(names_QList); } -struct miqt_array QTextCharFormat_AnchorNames(const QTextCharFormat* self) { +struct miqt_array /* of struct miqt_string */ QTextCharFormat_AnchorNames(const QTextCharFormat* self) { QStringList _ret = self->anchorNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -788,7 +788,7 @@ int QTextBlockFormat_PageBreakPolicy(const QTextBlockFormat* self) { return static_cast(_ret); } -void QTextBlockFormat_SetTabPositions(QTextBlockFormat* self, struct miqt_array /* of QTextOption__Tab* */ tabs) { +void QTextBlockFormat_SetTabPositions(QTextBlockFormat* self, struct miqt_array /* of QTextOption__Tab* */ tabs) { QList tabs_QList; tabs_QList.reserve(tabs.len); QTextOption__Tab** tabs_arr = static_cast(tabs.data); @@ -798,7 +798,7 @@ void QTextBlockFormat_SetTabPositions(QTextBlockFormat* self, struct miqt_array self->setTabPositions(tabs_QList); } -struct miqt_array QTextBlockFormat_TabPositions(const QTextBlockFormat* self) { +struct miqt_array /* of QTextOption__Tab* */ QTextBlockFormat_TabPositions(const QTextBlockFormat* self) { QList _ret = self->tabPositions(); // Convert QList<> from C++ memory to manually-managed C memory QTextOption__Tab** _arr = static_cast(malloc(sizeof(QTextOption__Tab*) * _ret.length())); @@ -1101,7 +1101,7 @@ void QTextTableFormat_SetColumns(QTextTableFormat* self, int columns) { self->setColumns(static_cast(columns)); } -void QTextTableFormat_SetColumnWidthConstraints(QTextTableFormat* self, struct miqt_array /* of QTextLength* */ constraints) { +void QTextTableFormat_SetColumnWidthConstraints(QTextTableFormat* self, struct miqt_array /* of QTextLength* */ constraints) { QList constraints_QList; constraints_QList.reserve(constraints.len); QTextLength** constraints_arr = static_cast(constraints.data); @@ -1111,7 +1111,7 @@ void QTextTableFormat_SetColumnWidthConstraints(QTextTableFormat* self, struct m self->setColumnWidthConstraints(constraints_QList); } -struct miqt_array QTextTableFormat_ColumnWidthConstraints(const QTextTableFormat* self) { +struct miqt_array /* of QTextLength* */ QTextTableFormat_ColumnWidthConstraints(const QTextTableFormat* self) { QList _ret = self->columnWidthConstraints(); // Convert QList<> from C++ memory to manually-managed C memory QTextLength** _arr = static_cast(malloc(sizeof(QTextLength*) * _ret.length())); diff --git a/qt6/gen_qtextformat.h b/qt6/gen_qtextformat.h index a4f5c74d..06b6ae4a 100644 --- a/qt6/gen_qtextformat.h +++ b/qt6/gen_qtextformat.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTFORMAT_H -#define GEN_QTEXTFORMAT_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEXTFORMAT_H +#define MIQT_QT6_GEN_QTEXTFORMAT_H #include #include @@ -84,9 +85,9 @@ QColor* QTextFormat_ColorProperty(const QTextFormat* self, int propertyId); QPen* QTextFormat_PenProperty(const QTextFormat* self, int propertyId); QBrush* QTextFormat_BrushProperty(const QTextFormat* self, int propertyId); QTextLength* QTextFormat_LengthProperty(const QTextFormat* self, int propertyId); -struct miqt_array QTextFormat_LengthVectorProperty(const QTextFormat* self, int propertyId); -void QTextFormat_SetProperty2(QTextFormat* self, int propertyId, struct miqt_array /* of QTextLength* */ lengths); -struct miqt_map QTextFormat_Properties(const QTextFormat* self); +struct miqt_array /* of QTextLength* */ QTextFormat_LengthVectorProperty(const QTextFormat* self, int propertyId); +void QTextFormat_SetProperty2(QTextFormat* self, int propertyId, struct miqt_array /* of QTextLength* */ lengths); +struct miqt_map /* of int to QVariant* */ QTextFormat_Properties(const QTextFormat* self); int QTextFormat_PropertyCount(const QTextFormat* self); void QTextFormat_SetObjectType(QTextFormat* self, int typeVal); int QTextFormat_ObjectType(const QTextFormat* self); @@ -123,7 +124,7 @@ void QTextCharFormat_SetFont(QTextCharFormat* self, QFont* font); QFont* QTextCharFormat_Font(const QTextCharFormat* self); void QTextCharFormat_SetFontFamily(QTextCharFormat* self, struct miqt_string family); struct miqt_string QTextCharFormat_FontFamily(const QTextCharFormat* self); -void QTextCharFormat_SetFontFamilies(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ families); +void QTextCharFormat_SetFontFamilies(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ families); QVariant* QTextCharFormat_FontFamilies(const QTextCharFormat* self); void QTextCharFormat_SetFontStyleName(QTextCharFormat* self, struct miqt_string styleName); QVariant* QTextCharFormat_FontStyleName(const QTextCharFormat* self); @@ -179,8 +180,8 @@ void QTextCharFormat_SetAnchor(QTextCharFormat* self, bool anchor); bool QTextCharFormat_IsAnchor(const QTextCharFormat* self); void QTextCharFormat_SetAnchorHref(QTextCharFormat* self, struct miqt_string value); struct miqt_string QTextCharFormat_AnchorHref(const QTextCharFormat* self); -void QTextCharFormat_SetAnchorNames(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ names); -struct miqt_array QTextCharFormat_AnchorNames(const QTextCharFormat* self); +void QTextCharFormat_SetAnchorNames(QTextCharFormat* self, struct miqt_array /* of struct miqt_string */ names); +struct miqt_array /* of struct miqt_string */ QTextCharFormat_AnchorNames(const QTextCharFormat* self); void QTextCharFormat_SetTableCellRowSpan(QTextCharFormat* self, int tableCellRowSpan); int QTextCharFormat_TableCellRowSpan(const QTextCharFormat* self); void QTextCharFormat_SetTableCellColumnSpan(QTextCharFormat* self, int tableCellColumnSpan); @@ -216,8 +217,8 @@ void QTextBlockFormat_SetNonBreakableLines(QTextBlockFormat* self, bool b); bool QTextBlockFormat_NonBreakableLines(const QTextBlockFormat* self); void QTextBlockFormat_SetPageBreakPolicy(QTextBlockFormat* self, int flags); int QTextBlockFormat_PageBreakPolicy(const QTextBlockFormat* self); -void QTextBlockFormat_SetTabPositions(QTextBlockFormat* self, struct miqt_array /* of QTextOption__Tab* */ tabs); -struct miqt_array QTextBlockFormat_TabPositions(const QTextBlockFormat* self); +void QTextBlockFormat_SetTabPositions(QTextBlockFormat* self, struct miqt_array /* of QTextOption__Tab* */ tabs); +struct miqt_array /* of QTextOption__Tab* */ QTextBlockFormat_TabPositions(const QTextBlockFormat* self); void QTextBlockFormat_SetMarker(QTextBlockFormat* self, int marker); int QTextBlockFormat_Marker(const QTextBlockFormat* self); void QTextBlockFormat_Delete(QTextBlockFormat* self); @@ -285,8 +286,8 @@ QTextTableFormat* QTextTableFormat_new(); bool QTextTableFormat_IsValid(const QTextTableFormat* self); int QTextTableFormat_Columns(const QTextTableFormat* self); void QTextTableFormat_SetColumns(QTextTableFormat* self, int columns); -void QTextTableFormat_SetColumnWidthConstraints(QTextTableFormat* self, struct miqt_array /* of QTextLength* */ constraints); -struct miqt_array QTextTableFormat_ColumnWidthConstraints(const QTextTableFormat* self); +void QTextTableFormat_SetColumnWidthConstraints(QTextTableFormat* self, struct miqt_array /* of QTextLength* */ constraints); +struct miqt_array /* of QTextLength* */ QTextTableFormat_ColumnWidthConstraints(const QTextTableFormat* self); void QTextTableFormat_ClearColumnWidthConstraints(QTextTableFormat* self); double QTextTableFormat_CellSpacing(const QTextTableFormat* self); void QTextTableFormat_SetCellSpacing(QTextTableFormat* self, double spacing); diff --git a/qt6/gen_qtextlayout.cpp b/qt6/gen_qtextlayout.cpp index 14e39d9b..5ae78c8a 100644 --- a/qt6/gen_qtextlayout.cpp +++ b/qt6/gen_qtextlayout.cpp @@ -166,7 +166,7 @@ struct miqt_string QTextLayout_PreeditAreaText(const QTextLayout* self) { return _ms; } -void QTextLayout_SetFormats(QTextLayout* self, struct miqt_array /* of QTextLayout__FormatRange* */ overrides) { +void QTextLayout_SetFormats(QTextLayout* self, struct miqt_array /* of QTextLayout__FormatRange* */ overrides) { QList overrides_QList; overrides_QList.reserve(overrides.len); QTextLayout__FormatRange** overrides_arr = static_cast(overrides.data); @@ -176,7 +176,7 @@ void QTextLayout_SetFormats(QTextLayout* self, struct miqt_array /* of QTextLayo self->setFormats(overrides_QList); } -struct miqt_array QTextLayout_Formats(const QTextLayout* self) { +struct miqt_array /* of QTextLayout__FormatRange* */ QTextLayout_Formats(const QTextLayout* self) { QList _ret = self->formats(); // Convert QList<> from C++ memory to manually-managed C memory QTextLayout__FormatRange** _arr = static_cast(malloc(sizeof(QTextLayout__FormatRange*) * _ret.length())); @@ -292,7 +292,7 @@ double QTextLayout_MaximumWidth(const QTextLayout* self) { return static_cast(_ret); } -struct miqt_array QTextLayout_GlyphRuns(const QTextLayout* self) { +struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns(const QTextLayout* self) { QList _ret = self->glyphRuns(); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); @@ -317,7 +317,7 @@ int QTextLayout_PreviousCursorPosition2(const QTextLayout* self, int oldPos, int return self->previousCursorPosition(static_cast(oldPos), static_cast(mode)); } -void QTextLayout_Draw3(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections) { +void QTextLayout_Draw3(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections) { QList selections_QList; selections_QList.reserve(selections.len); QTextLayout__FormatRange** selections_arr = static_cast(selections.data); @@ -327,7 +327,7 @@ void QTextLayout_Draw3(const QTextLayout* self, QPainter* p, QPointF* pos, struc self->draw(p, *pos, selections_QList); } -void QTextLayout_Draw4(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections, QRectF* clip) { +void QTextLayout_Draw4(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections, QRectF* clip) { QList selections_QList; selections_QList.reserve(selections.len); QTextLayout__FormatRange** selections_arr = static_cast(selections.data); @@ -337,7 +337,7 @@ void QTextLayout_Draw4(const QTextLayout* self, QPainter* p, QPointF* pos, struc self->draw(p, *pos, selections_QList, *clip); } -struct miqt_array QTextLayout_GlyphRuns1(const QTextLayout* self, int from) { +struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns1(const QTextLayout* self, int from) { QList _ret = self->glyphRuns(static_cast(from)); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); @@ -350,7 +350,7 @@ struct miqt_array QTextLayout_GlyphRuns1(const QTextLayout* self, int from) { return _out; } -struct miqt_array QTextLayout_GlyphRuns2(const QTextLayout* self, int from, int length) { +struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns2(const QTextLayout* self, int from, int length) { QList _ret = self->glyphRuns(static_cast(from), static_cast(length)); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); @@ -486,7 +486,7 @@ void QTextLine_Draw(const QTextLine* self, QPainter* painter, QPointF* position) self->draw(painter, *position); } -struct miqt_array QTextLine_GlyphRuns(const QTextLine* self) { +struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns(const QTextLine* self) { QList _ret = self->glyphRuns(); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); @@ -513,7 +513,7 @@ int QTextLine_XToCursor2(const QTextLine* self, double x, int param2) { return self->xToCursor(static_cast(x), static_cast(param2)); } -struct miqt_array QTextLine_GlyphRuns1(const QTextLine* self, int from) { +struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns1(const QTextLine* self, int from) { QList _ret = self->glyphRuns(static_cast(from)); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); @@ -526,7 +526,7 @@ struct miqt_array QTextLine_GlyphRuns1(const QTextLine* self, int from) { return _out; } -struct miqt_array QTextLine_GlyphRuns2(const QTextLine* self, int from, int length) { +struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns2(const QTextLine* self, int from, int length) { QList _ret = self->glyphRuns(static_cast(from), static_cast(length)); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); diff --git a/qt6/gen_qtextlayout.h b/qt6/gen_qtextlayout.h index f18c95c2..82587a28 100644 --- a/qt6/gen_qtextlayout.h +++ b/qt6/gen_qtextlayout.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTLAYOUT_H -#define GEN_QTEXTLAYOUT_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEXTLAYOUT_H +#define MIQT_QT6_GEN_QTEXTLAYOUT_H #include #include @@ -80,8 +81,8 @@ QTextOption* QTextLayout_TextOption(const QTextLayout* self); void QTextLayout_SetPreeditArea(QTextLayout* self, int position, struct miqt_string text); int QTextLayout_PreeditAreaPosition(const QTextLayout* self); struct miqt_string QTextLayout_PreeditAreaText(const QTextLayout* self); -void QTextLayout_SetFormats(QTextLayout* self, struct miqt_array /* of QTextLayout__FormatRange* */ overrides); -struct miqt_array QTextLayout_Formats(const QTextLayout* self); +void QTextLayout_SetFormats(QTextLayout* self, struct miqt_array /* of QTextLayout__FormatRange* */ overrides); +struct miqt_array /* of QTextLayout__FormatRange* */ QTextLayout_Formats(const QTextLayout* self); void QTextLayout_ClearFormats(QTextLayout* self); void QTextLayout_SetCacheEnabled(QTextLayout* self, bool enable); bool QTextLayout_CacheEnabled(const QTextLayout* self); @@ -107,14 +108,14 @@ void QTextLayout_SetPosition(QTextLayout* self, QPointF* p); QRectF* QTextLayout_BoundingRect(const QTextLayout* self); double QTextLayout_MinimumWidth(const QTextLayout* self); double QTextLayout_MaximumWidth(const QTextLayout* self); -struct miqt_array QTextLayout_GlyphRuns(const QTextLayout* self); +struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns(const QTextLayout* self); void QTextLayout_SetFlags(QTextLayout* self, int flags); int QTextLayout_NextCursorPosition2(const QTextLayout* self, int oldPos, int mode); int QTextLayout_PreviousCursorPosition2(const QTextLayout* self, int oldPos, int mode); -void QTextLayout_Draw3(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections); -void QTextLayout_Draw4(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections, QRectF* clip); -struct miqt_array QTextLayout_GlyphRuns1(const QTextLayout* self, int from); -struct miqt_array QTextLayout_GlyphRuns2(const QTextLayout* self, int from, int length); +void QTextLayout_Draw3(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections); +void QTextLayout_Draw4(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections, QRectF* clip); +struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns1(const QTextLayout* self, int from); +struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns2(const QTextLayout* self, int from, int length); void QTextLayout_Delete(QTextLayout* self); QTextLine* QTextLine_new(); @@ -144,12 +145,12 @@ int QTextLine_TextStart(const QTextLine* self); int QTextLine_TextLength(const QTextLine* self); int QTextLine_LineNumber(const QTextLine* self); void QTextLine_Draw(const QTextLine* self, QPainter* painter, QPointF* position); -struct miqt_array QTextLine_GlyphRuns(const QTextLine* self); +struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns(const QTextLine* self); double QTextLine_CursorToX2(const QTextLine* self, int* cursorPos, int edge); double QTextLine_CursorToX22(const QTextLine* self, int cursorPos, int edge); int QTextLine_XToCursor2(const QTextLine* self, double x, int param2); -struct miqt_array QTextLine_GlyphRuns1(const QTextLine* self, int from); -struct miqt_array QTextLine_GlyphRuns2(const QTextLine* self, int from, int length); +struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns1(const QTextLine* self, int from); +struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns2(const QTextLine* self, int from, int length); void QTextLine_Delete(QTextLine* self); QTextLayout__FormatRange* QTextLayout__FormatRange_new(QTextLayout__FormatRange* param1); diff --git a/qt6/gen_qtextlist.h b/qt6/gen_qtextlist.h index 91d2ecd6..91f1603e 100644 --- a/qt6/gen_qtextlist.h +++ b/qt6/gen_qtextlist.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTLIST_H -#define GEN_QTEXTLIST_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEXTLIST_H +#define MIQT_QT6_GEN_QTEXTLIST_H #include #include diff --git a/qt6/gen_qtextobject.cpp b/qt6/gen_qtextobject.cpp index 86fc902c..91557a51 100644 --- a/qt6/gen_qtextobject.cpp +++ b/qt6/gen_qtextobject.cpp @@ -187,7 +187,7 @@ void QTextFrame_SetLayoutData(QTextFrame* self, QTextFrameLayoutData* data) { self->setLayoutData(data); } -struct miqt_array QTextFrame_ChildFrames(const QTextFrame* self) { +struct miqt_array /* of QTextFrame* */ QTextFrame_ChildFrames(const QTextFrame* self) { QList _ret = self->childFrames(); // Convert QList<> from C++ memory to manually-managed C memory QTextFrame** _arr = static_cast(malloc(sizeof(QTextFrame*) * _ret.length())); @@ -326,7 +326,7 @@ struct miqt_string QTextBlock_Text(const QTextBlock* self) { return _ms; } -struct miqt_array QTextBlock_TextFormats(const QTextBlock* self) { +struct miqt_array /* of QTextLayout__FormatRange* */ QTextBlock_TextFormats(const QTextBlock* self) { QList _ret = self->textFormats(); // Convert QList<> from C++ memory to manually-managed C memory QTextLayout__FormatRange** _arr = static_cast(malloc(sizeof(QTextLayout__FormatRange*) * _ret.length())); @@ -478,7 +478,7 @@ struct miqt_string QTextFragment_Text(const QTextFragment* self) { return _ms; } -struct miqt_array QTextFragment_GlyphRuns(const QTextFragment* self) { +struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns(const QTextFragment* self) { QList _ret = self->glyphRuns(); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); @@ -491,7 +491,7 @@ struct miqt_array QTextFragment_GlyphRuns(const QTextFragment* self) { return _out; } -struct miqt_array QTextFragment_GlyphRuns1(const QTextFragment* self, int from) { +struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns1(const QTextFragment* self, int from) { QList _ret = self->glyphRuns(static_cast(from)); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); @@ -504,7 +504,7 @@ struct miqt_array QTextFragment_GlyphRuns1(const QTextFragment* self, int from) return _out; } -struct miqt_array QTextFragment_GlyphRuns2(const QTextFragment* self, int from, int length) { +struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns2(const QTextFragment* self, int from, int length) { QList _ret = self->glyphRuns(static_cast(from), static_cast(length)); // Convert QList<> from C++ memory to manually-managed C memory QGlyphRun** _arr = static_cast(malloc(sizeof(QGlyphRun*) * _ret.length())); diff --git a/qt6/gen_qtextobject.h b/qt6/gen_qtextobject.h index 678fb72a..d4076b37 100644 --- a/qt6/gen_qtextobject.h +++ b/qt6/gen_qtextobject.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTOBJECT_H -#define GEN_QTEXTOBJECT_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEXTOBJECT_H +#define MIQT_QT6_GEN_QTEXTOBJECT_H #include #include @@ -100,7 +101,7 @@ int QTextFrame_FirstPosition(const QTextFrame* self); int QTextFrame_LastPosition(const QTextFrame* self); QTextFrameLayoutData* QTextFrame_LayoutData(const QTextFrame* self); void QTextFrame_SetLayoutData(QTextFrame* self, QTextFrameLayoutData* data); -struct miqt_array QTextFrame_ChildFrames(const QTextFrame* self); +struct miqt_array /* of QTextFrame* */ QTextFrame_ChildFrames(const QTextFrame* self); QTextFrame* QTextFrame_ParentFrame(const QTextFrame* self); QTextFrame__iterator* QTextFrame_Begin(const QTextFrame* self); QTextFrame__iterator* QTextFrame_End(const QTextFrame* self); @@ -129,7 +130,7 @@ QTextCharFormat* QTextBlock_CharFormat(const QTextBlock* self); int QTextBlock_CharFormatIndex(const QTextBlock* self); int QTextBlock_TextDirection(const QTextBlock* self); struct miqt_string QTextBlock_Text(const QTextBlock* self); -struct miqt_array QTextBlock_TextFormats(const QTextBlock* self); +struct miqt_array /* of QTextLayout__FormatRange* */ QTextBlock_TextFormats(const QTextBlock* self); QTextDocument* QTextBlock_Document(const QTextBlock* self); QTextList* QTextBlock_TextList(const QTextBlock* self); QTextBlockUserData* QTextBlock_UserData(const QTextBlock* self); @@ -164,9 +165,9 @@ bool QTextFragment_Contains(const QTextFragment* self, int position); QTextCharFormat* QTextFragment_CharFormat(const QTextFragment* self); int QTextFragment_CharFormatIndex(const QTextFragment* self); struct miqt_string QTextFragment_Text(const QTextFragment* self); -struct miqt_array QTextFragment_GlyphRuns(const QTextFragment* self); -struct miqt_array QTextFragment_GlyphRuns1(const QTextFragment* self, int from); -struct miqt_array QTextFragment_GlyphRuns2(const QTextFragment* self, int from, int length); +struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns(const QTextFragment* self); +struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns1(const QTextFragment* self, int from); +struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns2(const QTextFragment* self, int from, int length); void QTextFragment_Delete(QTextFragment* self); QTextFrame__iterator* QTextFrame__iterator_new(); diff --git a/qt6/gen_qtextoption.cpp b/qt6/gen_qtextoption.cpp index 9dd0d615..e54ef83c 100644 --- a/qt6/gen_qtextoption.cpp +++ b/qt6/gen_qtextoption.cpp @@ -67,7 +67,7 @@ double QTextOption_TabStopDistance(const QTextOption* self) { return static_cast(_ret); } -void QTextOption_SetTabArray(QTextOption* self, struct miqt_array /* of double */ tabStops) { +void QTextOption_SetTabArray(QTextOption* self, struct miqt_array /* of double */ tabStops) { QList tabStops_QList; tabStops_QList.reserve(tabStops.len); double* tabStops_arr = static_cast(tabStops.data); @@ -77,7 +77,7 @@ void QTextOption_SetTabArray(QTextOption* self, struct miqt_array /* of double * self->setTabArray(tabStops_QList); } -struct miqt_array QTextOption_TabArray(const QTextOption* self) { +struct miqt_array /* of double */ QTextOption_TabArray(const QTextOption* self) { QList _ret = self->tabArray(); // Convert QList<> from C++ memory to manually-managed C memory double* _arr = static_cast(malloc(sizeof(double) * _ret.length())); @@ -90,7 +90,7 @@ struct miqt_array QTextOption_TabArray(const QTextOption* self) { return _out; } -void QTextOption_SetTabs(QTextOption* self, struct miqt_array /* of QTextOption__Tab* */ tabStops) { +void QTextOption_SetTabs(QTextOption* self, struct miqt_array /* of QTextOption__Tab* */ tabStops) { QList tabStops_QList; tabStops_QList.reserve(tabStops.len); QTextOption__Tab** tabStops_arr = static_cast(tabStops.data); @@ -100,7 +100,7 @@ void QTextOption_SetTabs(QTextOption* self, struct miqt_array /* of QTextOption_ self->setTabs(tabStops_QList); } -struct miqt_array QTextOption_Tabs(const QTextOption* self) { +struct miqt_array /* of QTextOption__Tab* */ QTextOption_Tabs(const QTextOption* self) { QList _ret = self->tabs(); // Convert QList<> from C++ memory to manually-managed C memory QTextOption__Tab** _arr = static_cast(malloc(sizeof(QTextOption__Tab*) * _ret.length())); diff --git a/qt6/gen_qtextoption.h b/qt6/gen_qtextoption.h index 608af5cc..58a4ac71 100644 --- a/qt6/gen_qtextoption.h +++ b/qt6/gen_qtextoption.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTOPTION_H -#define GEN_QTEXTOPTION_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEXTOPTION_H +#define MIQT_QT6_GEN_QTEXTOPTION_H #include #include @@ -41,10 +42,10 @@ void QTextOption_SetFlags(QTextOption* self, int flags); int QTextOption_Flags(const QTextOption* self); void QTextOption_SetTabStopDistance(QTextOption* self, double tabStopDistance); double QTextOption_TabStopDistance(const QTextOption* self); -void QTextOption_SetTabArray(QTextOption* self, struct miqt_array /* of double */ tabStops); -struct miqt_array QTextOption_TabArray(const QTextOption* self); -void QTextOption_SetTabs(QTextOption* self, struct miqt_array /* of QTextOption__Tab* */ tabStops); -struct miqt_array QTextOption_Tabs(const QTextOption* self); +void QTextOption_SetTabArray(QTextOption* self, struct miqt_array /* of double */ tabStops); +struct miqt_array /* of double */ QTextOption_TabArray(const QTextOption* self); +void QTextOption_SetTabs(QTextOption* self, struct miqt_array /* of QTextOption__Tab* */ tabStops); +struct miqt_array /* of QTextOption__Tab* */ QTextOption_Tabs(const QTextOption* self); void QTextOption_SetUseDesignMetrics(QTextOption* self, bool b); bool QTextOption_UseDesignMetrics(const QTextOption* self); void QTextOption_Delete(QTextOption* self); diff --git a/qt6/gen_qtextstream.h b/qt6/gen_qtextstream.h index 7458420e..7abf65cd 100644 --- a/qt6/gen_qtextstream.h +++ b/qt6/gen_qtextstream.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTSTREAM_H -#define GEN_QTEXTSTREAM_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEXTSTREAM_H +#define MIQT_QT6_GEN_QTEXTSTREAM_H #include #include diff --git a/qt6/gen_qtexttable.h b/qt6/gen_qtexttable.h index f0394927..64c2823a 100644 --- a/qt6/gen_qtexttable.h +++ b/qt6/gen_qtexttable.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTEXTTABLE_H -#define GEN_QTEXTTABLE_H +#pragma once +#ifndef MIQT_QT6_GEN_QTEXTTABLE_H +#define MIQT_QT6_GEN_QTEXTTABLE_H #include #include diff --git a/qt6/gen_qthread.h b/qt6/gen_qthread.h index 4979bdf5..d4fbcc08 100644 --- a/qt6/gen_qthread.h +++ b/qt6/gen_qthread.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTHREAD_H -#define GEN_QTHREAD_H +#pragma once +#ifndef MIQT_QT6_GEN_QTHREAD_H +#define MIQT_QT6_GEN_QTHREAD_H #include #include diff --git a/qt6/gen_qthreadpool.h b/qt6/gen_qthreadpool.h index 7e6d12d8..f2b20373 100644 --- a/qt6/gen_qthreadpool.h +++ b/qt6/gen_qthreadpool.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTHREADPOOL_H -#define GEN_QTHREADPOOL_H +#pragma once +#ifndef MIQT_QT6_GEN_QTHREADPOOL_H +#define MIQT_QT6_GEN_QTHREADPOOL_H #include #include diff --git a/qt6/gen_qthreadstorage.h b/qt6/gen_qthreadstorage.h index c32ed704..e97c1154 100644 --- a/qt6/gen_qthreadstorage.h +++ b/qt6/gen_qthreadstorage.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTHREADSTORAGE_H -#define GEN_QTHREADSTORAGE_H +#pragma once +#ifndef MIQT_QT6_GEN_QTHREADSTORAGE_H +#define MIQT_QT6_GEN_QTHREADSTORAGE_H #include #include diff --git a/qt6/gen_qtimeline.h b/qt6/gen_qtimeline.h index 816db3ff..7c59584c 100644 --- a/qt6/gen_qtimeline.h +++ b/qt6/gen_qtimeline.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTIMELINE_H -#define GEN_QTIMELINE_H +#pragma once +#ifndef MIQT_QT6_GEN_QTIMELINE_H +#define MIQT_QT6_GEN_QTIMELINE_H #include #include diff --git a/qt6/gen_qtimer.h b/qt6/gen_qtimer.h index 8fb1e735..0a2c6f92 100644 --- a/qt6/gen_qtimer.h +++ b/qt6/gen_qtimer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTIMER_H -#define GEN_QTIMER_H +#pragma once +#ifndef MIQT_QT6_GEN_QTIMER_H +#define MIQT_QT6_GEN_QTIMER_H #include #include diff --git a/qt6/gen_qtimezone.cpp b/qt6/gen_qtimezone.cpp index 53d4a884..df034d7d 100644 --- a/qt6/gen_qtimezone.cpp +++ b/qt6/gen_qtimezone.cpp @@ -161,7 +161,7 @@ QTimeZone__OffsetData* QTimeZone_PreviousTransition(const QTimeZone* self, QDate return new QTimeZone::OffsetData(self->previousTransition(*beforeDateTime)); } -struct miqt_array QTimeZone_Transitions(const QTimeZone* self, QDateTime* fromDateTime, QDateTime* toDateTime) { +struct miqt_array /* of QTimeZone__OffsetData* */ QTimeZone_Transitions(const QTimeZone* self, QDateTime* fromDateTime, QDateTime* toDateTime) { QTimeZone::OffsetDataList _ret = self->transitions(*fromDateTime, *toDateTime); // Convert QList<> from C++ memory to manually-managed C memory QTimeZone__OffsetData** _arr = static_cast(malloc(sizeof(QTimeZone__OffsetData*) * _ret.length())); @@ -196,7 +196,7 @@ bool QTimeZone_IsTimeZoneIdAvailable(struct miqt_string ianaId) { return QTimeZone::isTimeZoneIdAvailable(ianaId_QByteArray); } -struct miqt_array QTimeZone_AvailableTimeZoneIds() { +struct miqt_array /* of struct miqt_string */ QTimeZone_AvailableTimeZoneIds() { QList _ret = QTimeZone::availableTimeZoneIds(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -214,7 +214,7 @@ struct miqt_array QTimeZone_AvailableTimeZoneIds() { return _out; } -struct miqt_array QTimeZone_AvailableTimeZoneIdsWithTerritory(uint16_t territory) { +struct miqt_array /* of struct miqt_string */ QTimeZone_AvailableTimeZoneIdsWithTerritory(uint16_t territory) { QList _ret = QTimeZone::availableTimeZoneIds(static_cast(territory)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -232,7 +232,7 @@ struct miqt_array QTimeZone_AvailableTimeZoneIdsWithTerritory(uint16_t territory return _out; } -struct miqt_array QTimeZone_AvailableTimeZoneIdsWithOffsetSeconds(int offsetSeconds) { +struct miqt_array /* of struct miqt_string */ QTimeZone_AvailableTimeZoneIdsWithOffsetSeconds(int offsetSeconds) { QList _ret = QTimeZone::availableTimeZoneIds(static_cast(offsetSeconds)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -280,7 +280,7 @@ struct miqt_string QTimeZone_WindowsIdToDefaultIanaId2(struct miqt_string window return _ms; } -struct miqt_array QTimeZone_WindowsIdToIanaIds(struct miqt_string windowsId) { +struct miqt_array /* of struct miqt_string */ QTimeZone_WindowsIdToIanaIds(struct miqt_string windowsId) { QByteArray windowsId_QByteArray(windowsId.data, windowsId.len); QList _ret = QTimeZone::windowsIdToIanaIds(windowsId_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory @@ -299,7 +299,7 @@ struct miqt_array QTimeZone_WindowsIdToIanaIds(struct miqt_string windowsId) { return _out; } -struct miqt_array QTimeZone_WindowsIdToIanaIds2(struct miqt_string windowsId, uint16_t territory) { +struct miqt_array /* of struct miqt_string */ QTimeZone_WindowsIdToIanaIds2(struct miqt_string windowsId, uint16_t territory) { QByteArray windowsId_QByteArray(windowsId.data, windowsId.len); QList _ret = QTimeZone::windowsIdToIanaIds(windowsId_QByteArray, static_cast(territory)); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt6/gen_qtimezone.h b/qt6/gen_qtimezone.h index a86b1827..7d77befc 100644 --- a/qt6/gen_qtimezone.h +++ b/qt6/gen_qtimezone.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTIMEZONE_H -#define GEN_QTIMEZONE_H +#pragma once +#ifndef MIQT_QT6_GEN_QTIMEZONE_H +#define MIQT_QT6_GEN_QTIMEZONE_H #include #include @@ -57,19 +58,19 @@ QTimeZone__OffsetData* QTimeZone_OffsetData(const QTimeZone* self, QDateTime* fo bool QTimeZone_HasTransitions(const QTimeZone* self); QTimeZone__OffsetData* QTimeZone_NextTransition(const QTimeZone* self, QDateTime* afterDateTime); QTimeZone__OffsetData* QTimeZone_PreviousTransition(const QTimeZone* self, QDateTime* beforeDateTime); -struct miqt_array QTimeZone_Transitions(const QTimeZone* self, QDateTime* fromDateTime, QDateTime* toDateTime); +struct miqt_array /* of QTimeZone__OffsetData* */ QTimeZone_Transitions(const QTimeZone* self, QDateTime* fromDateTime, QDateTime* toDateTime); struct miqt_string QTimeZone_SystemTimeZoneId(); QTimeZone* QTimeZone_SystemTimeZone(); QTimeZone* QTimeZone_Utc(); bool QTimeZone_IsTimeZoneIdAvailable(struct miqt_string ianaId); -struct miqt_array QTimeZone_AvailableTimeZoneIds(); -struct miqt_array QTimeZone_AvailableTimeZoneIdsWithTerritory(uint16_t territory); -struct miqt_array QTimeZone_AvailableTimeZoneIdsWithOffsetSeconds(int offsetSeconds); +struct miqt_array /* of struct miqt_string */ QTimeZone_AvailableTimeZoneIds(); +struct miqt_array /* of struct miqt_string */ QTimeZone_AvailableTimeZoneIdsWithTerritory(uint16_t territory); +struct miqt_array /* of struct miqt_string */ QTimeZone_AvailableTimeZoneIdsWithOffsetSeconds(int offsetSeconds); struct miqt_string QTimeZone_IanaIdToWindowsId(struct miqt_string ianaId); struct miqt_string QTimeZone_WindowsIdToDefaultIanaId(struct miqt_string windowsId); struct miqt_string QTimeZone_WindowsIdToDefaultIanaId2(struct miqt_string windowsId, uint16_t territory); -struct miqt_array QTimeZone_WindowsIdToIanaIds(struct miqt_string windowsId); -struct miqt_array QTimeZone_WindowsIdToIanaIds2(struct miqt_string windowsId, uint16_t territory); +struct miqt_array /* of struct miqt_string */ QTimeZone_WindowsIdToIanaIds(struct miqt_string windowsId); +struct miqt_array /* of struct miqt_string */ QTimeZone_WindowsIdToIanaIds2(struct miqt_string windowsId, uint16_t territory); struct miqt_string QTimeZone_DisplayName2(const QTimeZone* self, QDateTime* atDateTime, int nameType); struct miqt_string QTimeZone_DisplayName3(const QTimeZone* self, QDateTime* atDateTime, int nameType, QLocale* locale); struct miqt_string QTimeZone_DisplayName22(const QTimeZone* self, int timeType, int nameType); diff --git a/qt6/gen_qtoolbar.h b/qt6/gen_qtoolbar.h index 41d90d21..4b992b61 100644 --- a/qt6/gen_qtoolbar.h +++ b/qt6/gen_qtoolbar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTOOLBAR_H -#define GEN_QTOOLBAR_H +#pragma once +#ifndef MIQT_QT6_GEN_QTOOLBAR_H +#define MIQT_QT6_GEN_QTOOLBAR_H #include #include diff --git a/qt6/gen_qtoolbox.h b/qt6/gen_qtoolbox.h index 5a63549e..aa797626 100644 --- a/qt6/gen_qtoolbox.h +++ b/qt6/gen_qtoolbox.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTOOLBOX_H -#define GEN_QTOOLBOX_H +#pragma once +#ifndef MIQT_QT6_GEN_QTOOLBOX_H +#define MIQT_QT6_GEN_QTOOLBOX_H #include #include diff --git a/qt6/gen_qtoolbutton.h b/qt6/gen_qtoolbutton.h index a6033587..d8aaaf41 100644 --- a/qt6/gen_qtoolbutton.h +++ b/qt6/gen_qtoolbutton.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTOOLBUTTON_H -#define GEN_QTOOLBUTTON_H +#pragma once +#ifndef MIQT_QT6_GEN_QTOOLBUTTON_H +#define MIQT_QT6_GEN_QTOOLBUTTON_H #include #include diff --git a/qt6/gen_qtooltip.h b/qt6/gen_qtooltip.h index 90aa4783..57ddf23d 100644 --- a/qt6/gen_qtooltip.h +++ b/qt6/gen_qtooltip.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTOOLTIP_H -#define GEN_QTOOLTIP_H +#pragma once +#ifndef MIQT_QT6_GEN_QTOOLTIP_H +#define MIQT_QT6_GEN_QTOOLTIP_H #include #include diff --git a/qt6/gen_qtransform.h b/qt6/gen_qtransform.h index 863994fe..78c07c57 100644 --- a/qt6/gen_qtransform.h +++ b/qt6/gen_qtransform.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTRANSFORM_H -#define GEN_QTRANSFORM_H +#pragma once +#ifndef MIQT_QT6_GEN_QTRANSFORM_H +#define MIQT_QT6_GEN_QTRANSFORM_H #include #include diff --git a/qt6/gen_qtranslator.h b/qt6/gen_qtranslator.h index 8eb65cbc..0da14c57 100644 --- a/qt6/gen_qtranslator.h +++ b/qt6/gen_qtranslator.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTRANSLATOR_H -#define GEN_QTRANSLATOR_H +#pragma once +#ifndef MIQT_QT6_GEN_QTRANSLATOR_H +#define MIQT_QT6_GEN_QTRANSLATOR_H #include #include diff --git a/qt6/gen_qtransposeproxymodel.cpp b/qt6/gen_qtransposeproxymodel.cpp index 8befaa05..7729dc37 100644 --- a/qt6/gen_qtransposeproxymodel.cpp +++ b/qt6/gen_qtransposeproxymodel.cpp @@ -60,7 +60,7 @@ bool QTransposeProxyModel_SetHeaderData(QTransposeProxyModel* self, int section, return self->setHeaderData(static_cast(section), static_cast(orientation), *value); } -bool QTransposeProxyModel_SetItemData(QTransposeProxyModel* self, QModelIndex* index, struct miqt_map roles) { +bool QTransposeProxyModel_SetItemData(QTransposeProxyModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles) { QMap roles_QMap; int* roles_karr = static_cast(roles.keys); QVariant** roles_varr = static_cast(roles.values); @@ -74,7 +74,7 @@ QSize* QTransposeProxyModel_Span(const QTransposeProxyModel* self, QModelIndex* return new QSize(self->span(*index)); } -struct miqt_map QTransposeProxyModel_ItemData(const QTransposeProxyModel* self, QModelIndex* index) { +struct miqt_map /* of int to QVariant* */ QTransposeProxyModel_ItemData(const QTransposeProxyModel* self, QModelIndex* index) { QMap _ret = self->itemData(*index); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); diff --git a/qt6/gen_qtransposeproxymodel.h b/qt6/gen_qtransposeproxymodel.h index 7a423021..fbc25f3b 100644 --- a/qt6/gen_qtransposeproxymodel.h +++ b/qt6/gen_qtransposeproxymodel.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTRANSPOSEPROXYMODEL_H -#define GEN_QTRANSPOSEPROXYMODEL_H +#pragma once +#ifndef MIQT_QT6_GEN_QTRANSPOSEPROXYMODEL_H +#define MIQT_QT6_GEN_QTRANSPOSEPROXYMODEL_H #include #include @@ -41,9 +42,9 @@ int QTransposeProxyModel_RowCount(const QTransposeProxyModel* self); int QTransposeProxyModel_ColumnCount(const QTransposeProxyModel* self); QVariant* QTransposeProxyModel_HeaderData(const QTransposeProxyModel* self, int section, int orientation); bool QTransposeProxyModel_SetHeaderData(QTransposeProxyModel* self, int section, int orientation, QVariant* value); -bool QTransposeProxyModel_SetItemData(QTransposeProxyModel* self, QModelIndex* index, struct miqt_map roles); +bool QTransposeProxyModel_SetItemData(QTransposeProxyModel* self, QModelIndex* index, struct miqt_map /* of int to QVariant* */ roles); QSize* QTransposeProxyModel_Span(const QTransposeProxyModel* self, QModelIndex* index); -struct miqt_map QTransposeProxyModel_ItemData(const QTransposeProxyModel* self, QModelIndex* index); +struct miqt_map /* of int to QVariant* */ QTransposeProxyModel_ItemData(const QTransposeProxyModel* self, QModelIndex* index); QModelIndex* QTransposeProxyModel_MapFromSource(const QTransposeProxyModel* self, QModelIndex* sourceIndex); QModelIndex* QTransposeProxyModel_MapToSource(const QTransposeProxyModel* self, QModelIndex* proxyIndex); QModelIndex* QTransposeProxyModel_Parent(const QTransposeProxyModel* self, QModelIndex* index); diff --git a/qt6/gen_qtreeview.cpp b/qt6/gen_qtreeview.cpp index 222887df..6f88b10d 100644 --- a/qt6/gen_qtreeview.cpp +++ b/qt6/gen_qtreeview.cpp @@ -343,7 +343,7 @@ void QTreeView_ScrollTo2(QTreeView* self, QModelIndex* index, int hint) { self->scrollTo(*index, static_cast(hint)); } -void QTreeView_DataChanged3(QTreeView* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles) { +void QTreeView_DataChanged3(QTreeView* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles) { QList roles_QList; roles_QList.reserve(roles.len); int* roles_arr = static_cast(roles.data); diff --git a/qt6/gen_qtreeview.h b/qt6/gen_qtreeview.h index ff767988..3511372b 100644 --- a/qt6/gen_qtreeview.h +++ b/qt6/gen_qtreeview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTREEVIEW_H -#define GEN_QTREEVIEW_H +#pragma once +#ifndef MIQT_QT6_GEN_QTREEVIEW_H +#define MIQT_QT6_GEN_QTREEVIEW_H #include #include @@ -109,7 +110,7 @@ void QTreeView_ExpandToDepth(QTreeView* self, int depth); struct miqt_string QTreeView_Tr2(const char* s, const char* c); struct miqt_string QTreeView_Tr3(const char* s, const char* c, int n); void QTreeView_ScrollTo2(QTreeView* self, QModelIndex* index, int hint); -void QTreeView_DataChanged3(QTreeView* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles); +void QTreeView_DataChanged3(QTreeView* self, QModelIndex* topLeft, QModelIndex* bottomRight, struct miqt_array /* of int */ roles); void QTreeView_ExpandRecursively2(QTreeView* self, QModelIndex* index, int depth); void QTreeView_Delete(QTreeView* self); diff --git a/qt6/gen_qtreewidget.cpp b/qt6/gen_qtreewidget.cpp index 3271e0a2..744e2864 100644 --- a/qt6/gen_qtreewidget.cpp +++ b/qt6/gen_qtreewidget.cpp @@ -24,7 +24,7 @@ QTreeWidgetItem* QTreeWidgetItem_new() { return new QTreeWidgetItem(); } -QTreeWidgetItem* QTreeWidgetItem_new2(struct miqt_array /* of struct miqt_string */ strings) { +QTreeWidgetItem* QTreeWidgetItem_new2(struct miqt_array /* of struct miqt_string */ strings) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -39,7 +39,7 @@ QTreeWidgetItem* QTreeWidgetItem_new3(QTreeWidget* treeview) { return new QTreeWidgetItem(treeview); } -QTreeWidgetItem* QTreeWidgetItem_new4(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings) { +QTreeWidgetItem* QTreeWidgetItem_new4(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -58,7 +58,7 @@ QTreeWidgetItem* QTreeWidgetItem_new6(QTreeWidgetItem* parent) { return new QTreeWidgetItem(parent); } -QTreeWidgetItem* QTreeWidgetItem_new7(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings) { +QTreeWidgetItem* QTreeWidgetItem_new7(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -81,7 +81,7 @@ QTreeWidgetItem* QTreeWidgetItem_new10(int typeVal) { return new QTreeWidgetItem(static_cast(typeVal)); } -QTreeWidgetItem* QTreeWidgetItem_new11(struct miqt_array /* of struct miqt_string */ strings, int typeVal) { +QTreeWidgetItem* QTreeWidgetItem_new11(struct miqt_array /* of struct miqt_string */ strings, int typeVal) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -96,7 +96,7 @@ QTreeWidgetItem* QTreeWidgetItem_new12(QTreeWidget* treeview, int typeVal) { return new QTreeWidgetItem(treeview, static_cast(typeVal)); } -QTreeWidgetItem* QTreeWidgetItem_new13(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings, int typeVal) { +QTreeWidgetItem* QTreeWidgetItem_new13(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings, int typeVal) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -115,7 +115,7 @@ QTreeWidgetItem* QTreeWidgetItem_new15(QTreeWidgetItem* parent, int typeVal) { return new QTreeWidgetItem(parent, static_cast(typeVal)); } -QTreeWidgetItem* QTreeWidgetItem_new16(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings, int typeVal) { +QTreeWidgetItem* QTreeWidgetItem_new16(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings, int typeVal) { QStringList strings_QList; strings_QList.reserve(strings.len); struct miqt_string* strings_arr = static_cast(strings.data); @@ -385,7 +385,7 @@ QTreeWidgetItem* QTreeWidgetItem_TakeChild(QTreeWidgetItem* self, int index) { return self->takeChild(static_cast(index)); } -void QTreeWidgetItem_AddChildren(QTreeWidgetItem* self, struct miqt_array /* of QTreeWidgetItem* */ children) { +void QTreeWidgetItem_AddChildren(QTreeWidgetItem* self, struct miqt_array /* of QTreeWidgetItem* */ children) { QList children_QList; children_QList.reserve(children.len); QTreeWidgetItem** children_arr = static_cast(children.data); @@ -395,7 +395,7 @@ void QTreeWidgetItem_AddChildren(QTreeWidgetItem* self, struct miqt_array /* of self->addChildren(children_QList); } -void QTreeWidgetItem_InsertChildren(QTreeWidgetItem* self, int index, struct miqt_array /* of QTreeWidgetItem* */ children) { +void QTreeWidgetItem_InsertChildren(QTreeWidgetItem* self, int index, struct miqt_array /* of QTreeWidgetItem* */ children) { QList children_QList; children_QList.reserve(children.len); QTreeWidgetItem** children_arr = static_cast(children.data); @@ -405,7 +405,7 @@ void QTreeWidgetItem_InsertChildren(QTreeWidgetItem* self, int index, struct miq self->insertChildren(static_cast(index), children_QList); } -struct miqt_array QTreeWidgetItem_TakeChildren(QTreeWidgetItem* self) { +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidgetItem_TakeChildren(QTreeWidgetItem* self) { QList _ret = self->takeChildren(); // Convert QList<> from C++ memory to manually-managed C memory QTreeWidgetItem** _arr = static_cast(malloc(sizeof(QTreeWidgetItem*) * _ret.length())); @@ -493,7 +493,7 @@ int QTreeWidget_IndexOfTopLevelItem(const QTreeWidget* self, QTreeWidgetItem* it return self->indexOfTopLevelItem(item); } -void QTreeWidget_InsertTopLevelItems(QTreeWidget* self, int index, struct miqt_array /* of QTreeWidgetItem* */ items) { +void QTreeWidget_InsertTopLevelItems(QTreeWidget* self, int index, struct miqt_array /* of QTreeWidgetItem* */ items) { QList items_QList; items_QList.reserve(items.len); QTreeWidgetItem** items_arr = static_cast(items.data); @@ -503,7 +503,7 @@ void QTreeWidget_InsertTopLevelItems(QTreeWidget* self, int index, struct miqt_a self->insertTopLevelItems(static_cast(index), items_QList); } -void QTreeWidget_AddTopLevelItems(QTreeWidget* self, struct miqt_array /* of QTreeWidgetItem* */ items) { +void QTreeWidget_AddTopLevelItems(QTreeWidget* self, struct miqt_array /* of QTreeWidgetItem* */ items) { QList items_QList; items_QList.reserve(items.len); QTreeWidgetItem** items_arr = static_cast(items.data); @@ -521,7 +521,7 @@ void QTreeWidget_SetHeaderItem(QTreeWidget* self, QTreeWidgetItem* item) { self->setHeaderItem(item); } -void QTreeWidget_SetHeaderLabels(QTreeWidget* self, struct miqt_array /* of struct miqt_string */ labels) { +void QTreeWidget_SetHeaderLabels(QTreeWidget* self, struct miqt_array /* of struct miqt_string */ labels) { QStringList labels_QList; labels_QList.reserve(labels.len); struct miqt_string* labels_arr = static_cast(labels.data); @@ -605,7 +605,7 @@ void QTreeWidget_RemoveItemWidget(QTreeWidget* self, QTreeWidgetItem* item, int self->removeItemWidget(item, static_cast(column)); } -struct miqt_array QTreeWidget_SelectedItems(const QTreeWidget* self) { +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidget_SelectedItems(const QTreeWidget* self) { QList _ret = self->selectedItems(); // Convert QList<> from C++ memory to manually-managed C memory QTreeWidgetItem** _arr = static_cast(malloc(sizeof(QTreeWidgetItem*) * _ret.length())); @@ -618,7 +618,7 @@ struct miqt_array QTreeWidget_SelectedItems(const QTreeWidget* self) { return _out; } -struct miqt_array QTreeWidget_FindItems(const QTreeWidget* self, struct miqt_string text, int flags) { +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidget_FindItems(const QTreeWidget* self, struct miqt_string text, int flags) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->findItems(text_QString, static_cast(flags)); // Convert QList<> from C++ memory to manually-managed C memory @@ -822,7 +822,7 @@ bool QTreeWidget_IsPersistentEditorOpen2(const QTreeWidget* self, QTreeWidgetIte return self->isPersistentEditorOpen(item, static_cast(column)); } -struct miqt_array QTreeWidget_FindItems3(const QTreeWidget* self, struct miqt_string text, int flags, int column) { +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidget_FindItems3(const QTreeWidget* self, struct miqt_string text, int flags, int column) { QString text_QString = QString::fromUtf8(text.data, text.len); QList _ret = self->findItems(text_QString, static_cast(flags), static_cast(column)); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt6/gen_qtreewidget.h b/qt6/gen_qtreewidget.h index 3dbe73ef..587e9667 100644 --- a/qt6/gen_qtreewidget.h +++ b/qt6/gen_qtreewidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTREEWIDGET_H -#define GEN_QTREEWIDGET_H +#pragma once +#ifndef MIQT_QT6_GEN_QTREEWIDGET_H +#define MIQT_QT6_GEN_QTREEWIDGET_H #include #include @@ -46,21 +47,21 @@ typedef struct QWidget QWidget; #endif QTreeWidgetItem* QTreeWidgetItem_new(); -QTreeWidgetItem* QTreeWidgetItem_new2(struct miqt_array /* of struct miqt_string */ strings); +QTreeWidgetItem* QTreeWidgetItem_new2(struct miqt_array /* of struct miqt_string */ strings); QTreeWidgetItem* QTreeWidgetItem_new3(QTreeWidget* treeview); -QTreeWidgetItem* QTreeWidgetItem_new4(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings); +QTreeWidgetItem* QTreeWidgetItem_new4(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings); QTreeWidgetItem* QTreeWidgetItem_new5(QTreeWidget* treeview, QTreeWidgetItem* after); QTreeWidgetItem* QTreeWidgetItem_new6(QTreeWidgetItem* parent); -QTreeWidgetItem* QTreeWidgetItem_new7(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings); +QTreeWidgetItem* QTreeWidgetItem_new7(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings); QTreeWidgetItem* QTreeWidgetItem_new8(QTreeWidgetItem* parent, QTreeWidgetItem* after); QTreeWidgetItem* QTreeWidgetItem_new9(QTreeWidgetItem* other); QTreeWidgetItem* QTreeWidgetItem_new10(int typeVal); -QTreeWidgetItem* QTreeWidgetItem_new11(struct miqt_array /* of struct miqt_string */ strings, int typeVal); +QTreeWidgetItem* QTreeWidgetItem_new11(struct miqt_array /* of struct miqt_string */ strings, int typeVal); QTreeWidgetItem* QTreeWidgetItem_new12(QTreeWidget* treeview, int typeVal); -QTreeWidgetItem* QTreeWidgetItem_new13(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings, int typeVal); +QTreeWidgetItem* QTreeWidgetItem_new13(QTreeWidget* treeview, struct miqt_array /* of struct miqt_string */ strings, int typeVal); QTreeWidgetItem* QTreeWidgetItem_new14(QTreeWidget* treeview, QTreeWidgetItem* after, int typeVal); QTreeWidgetItem* QTreeWidgetItem_new15(QTreeWidgetItem* parent, int typeVal); -QTreeWidgetItem* QTreeWidgetItem_new16(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings, int typeVal); +QTreeWidgetItem* QTreeWidgetItem_new16(QTreeWidgetItem* parent, struct miqt_array /* of struct miqt_string */ strings, int typeVal); QTreeWidgetItem* QTreeWidgetItem_new17(QTreeWidgetItem* parent, QTreeWidgetItem* after, int typeVal); QTreeWidgetItem* QTreeWidgetItem_Clone(const QTreeWidgetItem* self); QTreeWidget* QTreeWidgetItem_TreeWidget(const QTreeWidgetItem* self); @@ -117,9 +118,9 @@ void QTreeWidgetItem_AddChild(QTreeWidgetItem* self, QTreeWidgetItem* child); void QTreeWidgetItem_InsertChild(QTreeWidgetItem* self, int index, QTreeWidgetItem* child); void QTreeWidgetItem_RemoveChild(QTreeWidgetItem* self, QTreeWidgetItem* child); QTreeWidgetItem* QTreeWidgetItem_TakeChild(QTreeWidgetItem* self, int index); -void QTreeWidgetItem_AddChildren(QTreeWidgetItem* self, struct miqt_array /* of QTreeWidgetItem* */ children); -void QTreeWidgetItem_InsertChildren(QTreeWidgetItem* self, int index, struct miqt_array /* of QTreeWidgetItem* */ children); -struct miqt_array QTreeWidgetItem_TakeChildren(QTreeWidgetItem* self); +void QTreeWidgetItem_AddChildren(QTreeWidgetItem* self, struct miqt_array /* of QTreeWidgetItem* */ children); +void QTreeWidgetItem_InsertChildren(QTreeWidgetItem* self, int index, struct miqt_array /* of QTreeWidgetItem* */ children); +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidgetItem_TakeChildren(QTreeWidgetItem* self); int QTreeWidgetItem_Type(const QTreeWidgetItem* self); void QTreeWidgetItem_SortChildren(QTreeWidgetItem* self, int column, int order); void QTreeWidgetItem_Delete(QTreeWidgetItem* self); @@ -138,11 +139,11 @@ void QTreeWidget_InsertTopLevelItem(QTreeWidget* self, int index, QTreeWidgetIte void QTreeWidget_AddTopLevelItem(QTreeWidget* self, QTreeWidgetItem* item); QTreeWidgetItem* QTreeWidget_TakeTopLevelItem(QTreeWidget* self, int index); int QTreeWidget_IndexOfTopLevelItem(const QTreeWidget* self, QTreeWidgetItem* item); -void QTreeWidget_InsertTopLevelItems(QTreeWidget* self, int index, struct miqt_array /* of QTreeWidgetItem* */ items); -void QTreeWidget_AddTopLevelItems(QTreeWidget* self, struct miqt_array /* of QTreeWidgetItem* */ items); +void QTreeWidget_InsertTopLevelItems(QTreeWidget* self, int index, struct miqt_array /* of QTreeWidgetItem* */ items); +void QTreeWidget_AddTopLevelItems(QTreeWidget* self, struct miqt_array /* of QTreeWidgetItem* */ items); QTreeWidgetItem* QTreeWidget_HeaderItem(const QTreeWidget* self); void QTreeWidget_SetHeaderItem(QTreeWidget* self, QTreeWidgetItem* item); -void QTreeWidget_SetHeaderLabels(QTreeWidget* self, struct miqt_array /* of struct miqt_string */ labels); +void QTreeWidget_SetHeaderLabels(QTreeWidget* self, struct miqt_array /* of struct miqt_string */ labels); void QTreeWidget_SetHeaderLabel(QTreeWidget* self, struct miqt_string label); QTreeWidgetItem* QTreeWidget_CurrentItem(const QTreeWidget* self); int QTreeWidget_CurrentColumn(const QTreeWidget* self); @@ -161,8 +162,8 @@ bool QTreeWidget_IsPersistentEditorOpen(const QTreeWidget* self, QTreeWidgetItem QWidget* QTreeWidget_ItemWidget(const QTreeWidget* self, QTreeWidgetItem* item, int column); void QTreeWidget_SetItemWidget(QTreeWidget* self, QTreeWidgetItem* item, int column, QWidget* widget); void QTreeWidget_RemoveItemWidget(QTreeWidget* self, QTreeWidgetItem* item, int column); -struct miqt_array QTreeWidget_SelectedItems(const QTreeWidget* self); -struct miqt_array QTreeWidget_FindItems(const QTreeWidget* self, struct miqt_string text, int flags); +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidget_SelectedItems(const QTreeWidget* self); +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidget_FindItems(const QTreeWidget* self, struct miqt_string text, int flags); QTreeWidgetItem* QTreeWidget_ItemAbove(const QTreeWidget* self, QTreeWidgetItem* item); QTreeWidgetItem* QTreeWidget_ItemBelow(const QTreeWidget* self, QTreeWidgetItem* item); QModelIndex* QTreeWidget_IndexFromItem(const QTreeWidget* self, QTreeWidgetItem* item); @@ -198,7 +199,7 @@ void QTreeWidget_EditItem2(QTreeWidget* self, QTreeWidgetItem* item, int column) void QTreeWidget_OpenPersistentEditor2(QTreeWidget* self, QTreeWidgetItem* item, int column); void QTreeWidget_ClosePersistentEditor2(QTreeWidget* self, QTreeWidgetItem* item, int column); bool QTreeWidget_IsPersistentEditorOpen2(const QTreeWidget* self, QTreeWidgetItem* item, int column); -struct miqt_array QTreeWidget_FindItems3(const QTreeWidget* self, struct miqt_string text, int flags, int column); +struct miqt_array /* of QTreeWidgetItem* */ QTreeWidget_FindItems3(const QTreeWidget* self, struct miqt_string text, int flags, int column); QModelIndex* QTreeWidget_IndexFromItem2(const QTreeWidget* self, QTreeWidgetItem* item, int column); void QTreeWidget_ScrollToItem2(QTreeWidget* self, QTreeWidgetItem* item, int hint); void QTreeWidget_Delete(QTreeWidget* self); diff --git a/qt6/gen_qtreewidgetitemiterator.h b/qt6/gen_qtreewidgetitemiterator.h index 90b67f44..6be6c8b0 100644 --- a/qt6/gen_qtreewidgetitemiterator.h +++ b/qt6/gen_qtreewidgetitemiterator.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTREEWIDGETITEMITERATOR_H -#define GEN_QTREEWIDGETITEMITERATOR_H +#pragma once +#ifndef MIQT_QT6_GEN_QTREEWIDGETITEMITERATOR_H +#define MIQT_QT6_GEN_QTREEWIDGETITEMITERATOR_H #include #include diff --git a/qt6/gen_qundogroup.cpp b/qt6/gen_qundogroup.cpp index 8b36a496..60073037 100644 --- a/qt6/gen_qundogroup.cpp +++ b/qt6/gen_qundogroup.cpp @@ -46,7 +46,7 @@ void QUndoGroup_RemoveStack(QUndoGroup* self, QUndoStack* stack) { self->removeStack(stack); } -struct miqt_array QUndoGroup_Stacks(const QUndoGroup* self) { +struct miqt_array /* of QUndoStack* */ QUndoGroup_Stacks(const QUndoGroup* self) { QList _ret = self->stacks(); // Convert QList<> from C++ memory to manually-managed C memory QUndoStack** _arr = static_cast(malloc(sizeof(QUndoStack*) * _ret.length())); diff --git a/qt6/gen_qundogroup.h b/qt6/gen_qundogroup.h index f045923b..6e0ce08f 100644 --- a/qt6/gen_qundogroup.h +++ b/qt6/gen_qundogroup.h @@ -1,5 +1,6 @@ -#ifndef GEN_QUNDOGROUP_H -#define GEN_QUNDOGROUP_H +#pragma once +#ifndef MIQT_QT6_GEN_QUNDOGROUP_H +#define MIQT_QT6_GEN_QUNDOGROUP_H #include #include @@ -34,7 +35,7 @@ void* QUndoGroup_Metacast(QUndoGroup* self, const char* param1); struct miqt_string QUndoGroup_Tr(const char* s); void QUndoGroup_AddStack(QUndoGroup* self, QUndoStack* stack); void QUndoGroup_RemoveStack(QUndoGroup* self, QUndoStack* stack); -struct miqt_array QUndoGroup_Stacks(const QUndoGroup* self); +struct miqt_array /* of QUndoStack* */ QUndoGroup_Stacks(const QUndoGroup* self); QUndoStack* QUndoGroup_ActiveStack(const QUndoGroup* self); QAction* QUndoGroup_CreateUndoAction(const QUndoGroup* self, QObject* parent); QAction* QUndoGroup_CreateRedoAction(const QUndoGroup* self, QObject* parent); diff --git a/qt6/gen_qundostack.h b/qt6/gen_qundostack.h index 0fe11a86..d03e8557 100644 --- a/qt6/gen_qundostack.h +++ b/qt6/gen_qundostack.h @@ -1,5 +1,6 @@ -#ifndef GEN_QUNDOSTACK_H -#define GEN_QUNDOSTACK_H +#pragma once +#ifndef MIQT_QT6_GEN_QUNDOSTACK_H +#define MIQT_QT6_GEN_QUNDOSTACK_H #include #include diff --git a/qt6/gen_qundoview.h b/qt6/gen_qundoview.h index 4b6db132..54a5d2fa 100644 --- a/qt6/gen_qundoview.h +++ b/qt6/gen_qundoview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QUNDOVIEW_H -#define GEN_QUNDOVIEW_H +#pragma once +#ifndef MIQT_QT6_GEN_QUNDOVIEW_H +#define MIQT_QT6_GEN_QUNDOVIEW_H #include #include diff --git a/qt6/gen_qurl.cpp b/qt6/gen_qurl.cpp index 8fd61d3b..e07fbe8f 100644 --- a/qt6/gen_qurl.cpp +++ b/qt6/gen_qurl.cpp @@ -391,7 +391,7 @@ struct miqt_string QUrl_ToAce(struct miqt_string domain) { return _ms; } -struct miqt_array QUrl_IdnWhitelist() { +struct miqt_array /* of struct miqt_string */ QUrl_IdnWhitelist() { QStringList _ret = QUrl::idnWhitelist(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -411,7 +411,7 @@ struct miqt_array QUrl_IdnWhitelist() { return _out; } -struct miqt_array QUrl_ToStringList(struct miqt_array /* of QUrl* */ uris) { +struct miqt_array /* of struct miqt_string */ QUrl_ToStringList(struct miqt_array /* of QUrl* */ uris) { QList uris_QList; uris_QList.reserve(uris.len); QUrl** uris_arr = static_cast(uris.data); @@ -437,7 +437,7 @@ struct miqt_array QUrl_ToStringList(struct miqt_array /* of QUrl* */ uris) { return _out; } -struct miqt_array QUrl_FromStringList(struct miqt_array /* of struct miqt_string */ uris) { +struct miqt_array /* of QUrl* */ QUrl_FromStringList(struct miqt_array /* of struct miqt_string */ uris) { QStringList uris_QList; uris_QList.reserve(uris.len); struct miqt_string* uris_arr = static_cast(uris.data); @@ -457,7 +457,7 @@ struct miqt_array QUrl_FromStringList(struct miqt_array /* of struct miqt_string return _out; } -void QUrl_SetIdnWhitelist(struct miqt_array /* of struct miqt_string */ idnWhitelist) { +void QUrl_SetIdnWhitelist(struct miqt_array /* of struct miqt_string */ idnWhitelist) { QStringList idnWhitelist_QList; idnWhitelist_QList.reserve(idnWhitelist.len); struct miqt_string* idnWhitelist_arr = static_cast(idnWhitelist.data); @@ -678,7 +678,7 @@ struct miqt_string QUrl_ToAce2(struct miqt_string domain, unsigned int options) return _ms; } -struct miqt_array QUrl_FromStringList2(struct miqt_array /* of struct miqt_string */ uris, int mode) { +struct miqt_array /* of QUrl* */ QUrl_FromStringList2(struct miqt_array /* of struct miqt_string */ uris, int mode) { QStringList uris_QList; uris_QList.reserve(uris.len); struct miqt_string* uris_arr = static_cast(uris.data); diff --git a/qt6/gen_qurl.h b/qt6/gen_qurl.h index b23d2425..fcd7a7f6 100644 --- a/qt6/gen_qurl.h +++ b/qt6/gen_qurl.h @@ -1,5 +1,6 @@ -#ifndef GEN_QURL_H -#define GEN_QURL_H +#pragma once +#ifndef MIQT_QT6_GEN_QURL_H +#define MIQT_QT6_GEN_QURL_H #include #include @@ -80,10 +81,10 @@ struct miqt_string QUrl_FromPercentEncoding(struct miqt_string param1); struct miqt_string QUrl_ToPercentEncoding(struct miqt_string param1); struct miqt_string QUrl_FromAce(struct miqt_string domain); struct miqt_string QUrl_ToAce(struct miqt_string domain); -struct miqt_array QUrl_IdnWhitelist(); -struct miqt_array QUrl_ToStringList(struct miqt_array /* of QUrl* */ uris); -struct miqt_array QUrl_FromStringList(struct miqt_array /* of struct miqt_string */ uris); -void QUrl_SetIdnWhitelist(struct miqt_array /* of struct miqt_string */ idnWhitelist); +struct miqt_array /* of struct miqt_string */ QUrl_IdnWhitelist(); +struct miqt_array /* of struct miqt_string */ QUrl_ToStringList(struct miqt_array /* of QUrl* */ uris); +struct miqt_array /* of QUrl* */ QUrl_FromStringList(struct miqt_array /* of struct miqt_string */ uris); +void QUrl_SetIdnWhitelist(struct miqt_array /* of struct miqt_string */ idnWhitelist); void QUrl_SetUrl2(QUrl* self, struct miqt_string url, int mode); QUrl* QUrl_FromEncoded2(struct miqt_string url, int mode); QUrl* QUrl_FromUserInput2(struct miqt_string userInput, struct miqt_string workingDirectory); @@ -110,7 +111,7 @@ struct miqt_string QUrl_ToPercentEncoding2(struct miqt_string param1, struct miq struct miqt_string QUrl_ToPercentEncoding3(struct miqt_string param1, struct miqt_string exclude, struct miqt_string include); struct miqt_string QUrl_FromAce2(struct miqt_string domain, unsigned int options); struct miqt_string QUrl_ToAce2(struct miqt_string domain, unsigned int options); -struct miqt_array QUrl_FromStringList2(struct miqt_array /* of struct miqt_string */ uris, int mode); +struct miqt_array /* of QUrl* */ QUrl_FromStringList2(struct miqt_array /* of struct miqt_string */ uris, int mode); void QUrl_Delete(QUrl* self); #ifdef __cplusplus diff --git a/qt6/gen_qurlquery.cpp b/qt6/gen_qurlquery.cpp index 83ad6517..6bf3856d 100644 --- a/qt6/gen_qurlquery.cpp +++ b/qt6/gen_qurlquery.cpp @@ -93,6 +93,60 @@ QChar* QUrlQuery_QueryPairDelimiter(const QUrlQuery* self) { return new QChar(self->queryPairDelimiter()); } +void QUrlQuery_SetQueryItems(QUrlQuery* self, struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ query) { + QList> query_QList; + query_QList.reserve(query.len); + struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ * query_arr = static_cast(query.data); + for(size_t i = 0; i < query.len; ++i) { + QPair query_arr_i_QPair; + struct miqt_string* query_arr_i_first_arr = static_cast(query_arr[i].keys); + struct miqt_string* query_arr_i_second_arr = static_cast(query_arr[i].values); + QString query_arr_i_first_arr_0_QString = QString::fromUtf8(query_arr_i_first_arr[0].data, query_arr_i_first_arr[0].len); + QString query_arr_i_second_arr_0_QString = QString::fromUtf8(query_arr_i_second_arr[0].data, query_arr_i_second_arr[0].len); + query_arr_i_QPair.first = query_arr_i_first_arr_0_QString; + query_arr_i_QPair.second = query_arr_i_second_arr_0_QString; + query_QList.push_back(query_arr_i_QPair); + } + self->setQueryItems(query_QList); +} + +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QUrlQuery_QueryItems(const QUrlQuery* self) { + QList> _ret = self->queryItems(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + struct miqt_string* _lv_first_arr = static_cast(malloc(sizeof(struct miqt_string))); + struct miqt_string* _lv_second_arr = static_cast(malloc(sizeof(struct miqt_string))); + QString _lv_first_ret = _lv_ret.first; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_first_b = _lv_first_ret.toUtf8(); + struct miqt_string _lv_first_ms; + _lv_first_ms.len = _lv_first_b.length(); + _lv_first_ms.data = static_cast(malloc(_lv_first_ms.len)); + memcpy(_lv_first_ms.data, _lv_first_b.data(), _lv_first_ms.len); + _lv_first_arr[0] = _lv_first_ms; + QString _lv_second_ret = _lv_ret.second; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_second_b = _lv_second_ret.toUtf8(); + struct miqt_string _lv_second_ms; + _lv_second_ms.len = _lv_second_b.length(); + _lv_second_ms.data = static_cast(malloc(_lv_second_ms.len)); + memcpy(_lv_second_ms.data, _lv_second_b.data(), _lv_second_ms.len); + _lv_second_arr[0] = _lv_second_ms; + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + bool QUrlQuery_HasQueryItem(const QUrlQuery* self, struct miqt_string key) { QString key_QString = QString::fromUtf8(key.data, key.len); return self->hasQueryItem(key_QString); @@ -121,7 +175,7 @@ struct miqt_string QUrlQuery_QueryItemValue(const QUrlQuery* self, struct miqt_s return _ms; } -struct miqt_array QUrlQuery_AllQueryItemValues(const QUrlQuery* self, struct miqt_string key) { +struct miqt_array /* of struct miqt_string */ QUrlQuery_AllQueryItemValues(const QUrlQuery* self, struct miqt_string key) { QString key_QString = QString::fromUtf8(key.data, key.len); QStringList _ret = self->allQueryItemValues(key_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -169,6 +223,43 @@ struct miqt_string QUrlQuery_ToString1(const QUrlQuery* self, unsigned int encod return _ms; } +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QUrlQuery_QueryItems1(const QUrlQuery* self, unsigned int encoding) { + QList> _ret = self->queryItems(static_cast(encoding)); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + struct miqt_string* _lv_first_arr = static_cast(malloc(sizeof(struct miqt_string))); + struct miqt_string* _lv_second_arr = static_cast(malloc(sizeof(struct miqt_string))); + QString _lv_first_ret = _lv_ret.first; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_first_b = _lv_first_ret.toUtf8(); + struct miqt_string _lv_first_ms; + _lv_first_ms.len = _lv_first_b.length(); + _lv_first_ms.data = static_cast(malloc(_lv_first_ms.len)); + memcpy(_lv_first_ms.data, _lv_first_b.data(), _lv_first_ms.len); + _lv_first_arr[0] = _lv_first_ms; + QString _lv_second_ret = _lv_ret.second; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_second_b = _lv_second_ret.toUtf8(); + struct miqt_string _lv_second_ms; + _lv_second_ms.len = _lv_second_b.length(); + _lv_second_ms.data = static_cast(malloc(_lv_second_ms.len)); + memcpy(_lv_second_ms.data, _lv_second_b.data(), _lv_second_ms.len); + _lv_second_arr[0] = _lv_second_ms; + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + struct miqt_string QUrlQuery_QueryItemValue2(const QUrlQuery* self, struct miqt_string key, unsigned int encoding) { QString key_QString = QString::fromUtf8(key.data, key.len); QString _ret = self->queryItemValue(key_QString, static_cast(encoding)); @@ -181,7 +272,7 @@ struct miqt_string QUrlQuery_QueryItemValue2(const QUrlQuery* self, struct miqt_ return _ms; } -struct miqt_array QUrlQuery_AllQueryItemValues2(const QUrlQuery* self, struct miqt_string key, unsigned int encoding) { +struct miqt_array /* of struct miqt_string */ QUrlQuery_AllQueryItemValues2(const QUrlQuery* self, struct miqt_string key, unsigned int encoding) { QString key_QString = QString::fromUtf8(key.data, key.len); QStringList _ret = self->allQueryItemValues(key_QString, static_cast(encoding)); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt6/gen_qurlquery.go b/qt6/gen_qurlquery.go index 41d86fe0..18178646 100644 --- a/qt6/gen_qurlquery.go +++ b/qt6/gen_qurlquery.go @@ -138,6 +138,68 @@ func (this *QUrlQuery) QueryPairDelimiter() *QChar { return _goptr } +func (this *QUrlQuery) SetQueryItems(query []struct { + First string + Second string +}) { + query_CArray := (*[0xffff]C.struct_miqt_map)(C.malloc(C.size_t(8 * len(query)))) + defer C.free(unsafe.Pointer(query_CArray)) + for i := range query { + query_i_First_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{}))))) + defer C.free(unsafe.Pointer(query_i_First_CArray)) + query_i_Second_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{}))))) + defer C.free(unsafe.Pointer(query_i_Second_CArray)) + query_i_First_ms := C.struct_miqt_string{} + query_i_First_ms.data = C.CString(query[i].First) + query_i_First_ms.len = C.size_t(len(query[i].First)) + defer C.free(unsafe.Pointer(query_i_First_ms.data)) + query_i_First_CArray[0] = query_i_First_ms + query_i_Second_ms := C.struct_miqt_string{} + query_i_Second_ms.data = C.CString(query[i].Second) + query_i_Second_ms.len = C.size_t(len(query[i].Second)) + defer C.free(unsafe.Pointer(query_i_Second_ms.data)) + query_i_Second_CArray[0] = query_i_Second_ms + query_i_pair := C.struct_miqt_map{ + len: 1, + keys: unsafe.Pointer(query_i_First_CArray), + values: unsafe.Pointer(query_i_Second_CArray), + } + query_CArray[i] = query_i_pair + } + query_ma := C.struct_miqt_array{len: C.size_t(len(query)), data: unsafe.Pointer(query_CArray)} + C.QUrlQuery_SetQueryItems(this.h, query_ma) +} + +func (this *QUrlQuery) QueryItems() []struct { + First string + Second string +} { + var _ma C.struct_miqt_array = C.QUrlQuery_QueryItems(this.h) + _ret := make([]struct { + First string + Second string + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.values)) + var _lv_first_ms C.struct_miqt_string = _lv_First_CArray[0] + _lv_first_ret := C.GoStringN(_lv_first_ms.data, C.int(int64(_lv_first_ms.len))) + C.free(unsafe.Pointer(_lv_first_ms.data)) + _lv_entry_First := _lv_first_ret + var _lv_second_ms C.struct_miqt_string = _lv_Second_CArray[0] + _lv_second_ret := C.GoStringN(_lv_second_ms.data, C.int(int64(_lv_second_ms.len))) + C.free(unsafe.Pointer(_lv_second_ms.data)) + _lv_entry_Second := _lv_second_ret + _ret[i] = struct { + First string + Second string + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QUrlQuery) HasQueryItem(key string) bool { key_ms := C.struct_miqt_string{} key_ms.data = C.CString(key) @@ -216,6 +278,36 @@ func (this *QUrlQuery) ToString1(encoding QUrl__ComponentFormattingOption) strin return _ret } +func (this *QUrlQuery) QueryItems1(encoding QUrl__ComponentFormattingOption) []struct { + First string + Second string +} { + var _ma C.struct_miqt_array = C.QUrlQuery_QueryItems1(this.h, (C.uint)(encoding)) + _ret := make([]struct { + First string + Second string + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.values)) + var _lv_first_ms C.struct_miqt_string = _lv_First_CArray[0] + _lv_first_ret := C.GoStringN(_lv_first_ms.data, C.int(int64(_lv_first_ms.len))) + C.free(unsafe.Pointer(_lv_first_ms.data)) + _lv_entry_First := _lv_first_ret + var _lv_second_ms C.struct_miqt_string = _lv_Second_CArray[0] + _lv_second_ret := C.GoStringN(_lv_second_ms.data, C.int(int64(_lv_second_ms.len))) + C.free(unsafe.Pointer(_lv_second_ms.data)) + _lv_entry_Second := _lv_second_ret + _ret[i] = struct { + First string + Second string + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QUrlQuery) QueryItemValue2(key string, encoding QUrl__ComponentFormattingOption) string { key_ms := C.struct_miqt_string{} key_ms.data = C.CString(key) diff --git a/qt6/gen_qurlquery.h b/qt6/gen_qurlquery.h index 0ee94330..a5488e18 100644 --- a/qt6/gen_qurlquery.h +++ b/qt6/gen_qurlquery.h @@ -1,5 +1,6 @@ -#ifndef GEN_QURLQUERY_H -#define GEN_QURLQUERY_H +#pragma once +#ifndef MIQT_QT6_GEN_QURLQUERY_H +#define MIQT_QT6_GEN_QURLQUERY_H #include #include @@ -40,16 +41,19 @@ struct miqt_string QUrlQuery_ToString(const QUrlQuery* self); void QUrlQuery_SetQueryDelimiters(QUrlQuery* self, QChar* valueDelimiter, QChar* pairDelimiter); QChar* QUrlQuery_QueryValueDelimiter(const QUrlQuery* self); QChar* QUrlQuery_QueryPairDelimiter(const QUrlQuery* self); +void QUrlQuery_SetQueryItems(QUrlQuery* self, struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ query); +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QUrlQuery_QueryItems(const QUrlQuery* self); bool QUrlQuery_HasQueryItem(const QUrlQuery* self, struct miqt_string key); void QUrlQuery_AddQueryItem(QUrlQuery* self, struct miqt_string key, struct miqt_string value); void QUrlQuery_RemoveQueryItem(QUrlQuery* self, struct miqt_string key); struct miqt_string QUrlQuery_QueryItemValue(const QUrlQuery* self, struct miqt_string key); -struct miqt_array QUrlQuery_AllQueryItemValues(const QUrlQuery* self, struct miqt_string key); +struct miqt_array /* of struct miqt_string */ QUrlQuery_AllQueryItemValues(const QUrlQuery* self, struct miqt_string key); void QUrlQuery_RemoveAllQueryItems(QUrlQuery* self, struct miqt_string key); struct miqt_string QUrlQuery_Query1(const QUrlQuery* self, unsigned int encoding); struct miqt_string QUrlQuery_ToString1(const QUrlQuery* self, unsigned int encoding); +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QUrlQuery_QueryItems1(const QUrlQuery* self, unsigned int encoding); struct miqt_string QUrlQuery_QueryItemValue2(const QUrlQuery* self, struct miqt_string key, unsigned int encoding); -struct miqt_array QUrlQuery_AllQueryItemValues2(const QUrlQuery* self, struct miqt_string key, unsigned int encoding); +struct miqt_array /* of struct miqt_string */ QUrlQuery_AllQueryItemValues2(const QUrlQuery* self, struct miqt_string key, unsigned int encoding); void QUrlQuery_Delete(QUrlQuery* self); #ifdef __cplusplus diff --git a/qt6/gen_qutf8stringview.h b/qt6/gen_qutf8stringview.h index b92abc00..dc950168 100644 --- a/qt6/gen_qutf8stringview.h +++ b/qt6/gen_qutf8stringview.h @@ -1,5 +1,6 @@ -#ifndef GEN_QUTF8STRINGVIEW_H -#define GEN_QUTF8STRINGVIEW_H +#pragma once +#ifndef MIQT_QT6_GEN_QUTF8STRINGVIEW_H +#define MIQT_QT6_GEN_QUTF8STRINGVIEW_H #include #include diff --git a/qt6/gen_quuid.h b/qt6/gen_quuid.h index 2a308277..cbfbff09 100644 --- a/qt6/gen_quuid.h +++ b/qt6/gen_quuid.h @@ -1,5 +1,6 @@ -#ifndef GEN_QUUID_H -#define GEN_QUUID_H +#pragma once +#ifndef MIQT_QT6_GEN_QUUID_H +#define MIQT_QT6_GEN_QUUID_H #include #include diff --git a/qt6/gen_qvalidator.h b/qt6/gen_qvalidator.h index d58a1164..b9036eb7 100644 --- a/qt6/gen_qvalidator.h +++ b/qt6/gen_qvalidator.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVALIDATOR_H -#define GEN_QVALIDATOR_H +#pragma once +#ifndef MIQT_QT6_GEN_QVALIDATOR_H +#define MIQT_QT6_GEN_QVALIDATOR_H #include #include diff --git a/qt6/gen_qvariant.cpp b/qt6/gen_qvariant.cpp index 22b77f85..fe609dd9 100644 --- a/qt6/gen_qvariant.cpp +++ b/qt6/gen_qvariant.cpp @@ -96,7 +96,7 @@ QVariant* QVariant_new14(struct miqt_string stringVal) { return new QVariant(stringVal_QString); } -QVariant* QVariant_new15(struct miqt_array /* of struct miqt_string */ stringlist) { +QVariant* QVariant_new15(struct miqt_array /* of struct miqt_string */ stringlist) { QStringList stringlist_QList; stringlist_QList.reserve(stringlist.len); struct miqt_string* stringlist_arr = static_cast(stringlist.data); @@ -123,7 +123,7 @@ QVariant* QVariant_new19(QDateTime* datetime) { return new QVariant(*datetime); } -QVariant* QVariant_new20(struct miqt_map mapVal) { +QVariant* QVariant_new20(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal) { QMap mapVal_QMap; struct miqt_string* mapVal_karr = static_cast(mapVal.keys); QVariant** mapVal_varr = static_cast(mapVal.values); @@ -134,7 +134,7 @@ QVariant* QVariant_new20(struct miqt_map mapVal) { return new QVariant(mapVal_QMap); } -QVariant* QVariant_new21(struct miqt_map hash) { +QVariant* QVariant_new21(struct miqt_map /* of struct miqt_string to QVariant* */ hash) { QHash hash_QMap; hash_QMap.reserve(hash.len); struct miqt_string* hash_karr = static_cast(hash.keys); @@ -354,7 +354,7 @@ struct miqt_string QVariant_ToString(const QVariant* self) { return _ms; } -struct miqt_array QVariant_ToStringList(const QVariant* self) { +struct miqt_array /* of struct miqt_string */ QVariant_ToStringList(const QVariant* self) { QStringList _ret = self->toStringList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -390,7 +390,7 @@ QDateTime* QVariant_ToDateTime(const QVariant* self) { return new QDateTime(self->toDateTime()); } -struct miqt_map QVariant_ToMap(const QVariant* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QVariant_ToMap(const QVariant* self) { QMap _ret = self->toMap(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); @@ -415,7 +415,7 @@ struct miqt_map QVariant_ToMap(const QVariant* self) { return _out; } -struct miqt_map QVariant_ToHash(const QVariant* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QVariant_ToHash(const QVariant* self) { QHash _ret = self->toHash(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); diff --git a/qt6/gen_qvariant.h b/qt6/gen_qvariant.h index 2d43b1fe..4b9717fa 100644 --- a/qt6/gen_qvariant.h +++ b/qt6/gen_qvariant.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVARIANT_H -#define GEN_QVARIANT_H +#pragma once +#ifndef MIQT_QT6_GEN_QVARIANT_H +#define MIQT_QT6_GEN_QVARIANT_H #include #include @@ -97,13 +98,13 @@ QVariant* QVariant_new11(const char* str); QVariant* QVariant_new12(struct miqt_string bytearray); QVariant* QVariant_new13(QBitArray* bitarray); QVariant* QVariant_new14(struct miqt_string stringVal); -QVariant* QVariant_new15(struct miqt_array /* of struct miqt_string */ stringlist); +QVariant* QVariant_new15(struct miqt_array /* of struct miqt_string */ stringlist); QVariant* QVariant_new16(QChar* qchar); QVariant* QVariant_new17(QDate* date); QVariant* QVariant_new18(QTime* time); QVariant* QVariant_new19(QDateTime* datetime); -QVariant* QVariant_new20(struct miqt_map mapVal); -QVariant* QVariant_new21(struct miqt_map hash); +QVariant* QVariant_new20(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal); +QVariant* QVariant_new21(struct miqt_map /* of struct miqt_string to QVariant* */ hash); QVariant* QVariant_new22(QSize* size); QVariant* QVariant_new23(QSizeF* size); QVariant* QVariant_new24(QPoint* pt); @@ -152,13 +153,13 @@ double QVariant_ToReal(const QVariant* self); struct miqt_string QVariant_ToByteArray(const QVariant* self); QBitArray* QVariant_ToBitArray(const QVariant* self); struct miqt_string QVariant_ToString(const QVariant* self); -struct miqt_array QVariant_ToStringList(const QVariant* self); +struct miqt_array /* of struct miqt_string */ QVariant_ToStringList(const QVariant* self); QChar* QVariant_ToChar(const QVariant* self); QDate* QVariant_ToDate(const QVariant* self); QTime* QVariant_ToTime(const QVariant* self); QDateTime* QVariant_ToDateTime(const QVariant* self); -struct miqt_map QVariant_ToMap(const QVariant* self); -struct miqt_map QVariant_ToHash(const QVariant* self); +struct miqt_map /* of struct miqt_string to QVariant* */ QVariant_ToMap(const QVariant* self); +struct miqt_map /* of struct miqt_string to QVariant* */ QVariant_ToHash(const QVariant* self); QPoint* QVariant_ToPoint(const QVariant* self); QPointF* QVariant_ToPointF(const QVariant* self); QRect* QVariant_ToRect(const QVariant* self); diff --git a/qt6/gen_qvariantanimation.cpp b/qt6/gen_qvariantanimation.cpp index 5da4fb42..c8df6b62 100644 --- a/qt6/gen_qvariantanimation.cpp +++ b/qt6/gen_qvariantanimation.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -61,6 +62,44 @@ void QVariantAnimation_SetKeyValueAt(QVariantAnimation* self, double step, QVari self->setKeyValueAt(static_cast(step), *value); } +struct miqt_array /* of struct miqt_map tuple of double and QVariant* */ QVariantAnimation_KeyValues(const QVariantAnimation* self) { + QVariantAnimation::KeyValues _ret = self->keyValues(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of double and QVariant* */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of double and QVariant* */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + double* _lv_first_arr = static_cast(malloc(sizeof(double))); + QVariant** _lv_second_arr = static_cast(malloc(sizeof(QVariant*))); + _lv_first_arr[0] = _lv_ret.first; + _lv_second_arr[0] = new QVariant(_lv_ret.second); + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + +void QVariantAnimation_SetKeyValues(QVariantAnimation* self, struct miqt_array /* of struct miqt_map tuple of double and QVariant* */ values) { + QVariantAnimation::KeyValues values_QList; + values_QList.reserve(values.len); + struct miqt_map /* tuple of double and QVariant* */ * values_arr = static_cast(values.data); + for(size_t i = 0; i < values.len; ++i) { + QPair values_arr_i_QPair; + double* values_arr_i_first_arr = static_cast(values_arr[i].keys); + QVariant** values_arr_i_second_arr = static_cast(values_arr[i].values); + values_arr_i_QPair.first = static_cast(values_arr_i_first_arr[0]); + values_arr_i_QPair.second = *(values_arr_i_second_arr[0]); + values_QList.push_back(values_arr_i_QPair); + } + self->setKeyValues(values_QList); +} + QVariant* QVariantAnimation_CurrentValue(const QVariantAnimation* self) { return new QVariant(self->currentValue()); } diff --git a/qt6/gen_qvariantanimation.go b/qt6/gen_qvariantanimation.go index 1e02e56d..08d8175c 100644 --- a/qt6/gen_qvariantanimation.go +++ b/qt6/gen_qvariantanimation.go @@ -108,6 +108,59 @@ func (this *QVariantAnimation) SetKeyValueAt(step float64, value *QVariant) { C.QVariantAnimation_SetKeyValueAt(this.h, (C.double)(step), value.cPointer()) } +func (this *QVariantAnimation) KeyValues() []struct { + First float64 + Second QVariant +} { + var _ma C.struct_miqt_array = C.QVariantAnimation_KeyValues(this.h) + _ret := make([]struct { + First float64 + Second QVariant + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]*C.QVariant)(unsafe.Pointer(_lv_mm.values)) + _lv_entry_First := (float64)(_lv_First_CArray[0]) + + _lv_second_ret := _lv_Second_CArray[0] + _lv_second_goptr := newQVariant(_lv_second_ret) + _lv_second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _lv_entry_Second := *_lv_second_goptr + + _ret[i] = struct { + First float64 + Second QVariant + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + +func (this *QVariantAnimation) SetKeyValues(values []struct { + First float64 + Second QVariant +}) { + values_CArray := (*[0xffff]C.struct_miqt_map)(C.malloc(C.size_t(8 * len(values)))) + defer C.free(unsafe.Pointer(values_CArray)) + for i := range values { + values_i_First_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(values_i_First_CArray)) + values_i_Second_CArray := (*[0xffff]*C.QVariant)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(values_i_Second_CArray)) + values_i_First_CArray[0] = (C.double)(values[i].First) + values_i_Second_CArray[0] = values[i].Second.cPointer() + values_i_pair := C.struct_miqt_map{ + len: 1, + keys: unsafe.Pointer(values_i_First_CArray), + values: unsafe.Pointer(values_i_Second_CArray), + } + values_CArray[i] = values_i_pair + } + values_ma := C.struct_miqt_array{len: C.size_t(len(values)), data: unsafe.Pointer(values_CArray)} + C.QVariantAnimation_SetKeyValues(this.h, values_ma) +} + func (this *QVariantAnimation) CurrentValue() *QVariant { _ret := C.QVariantAnimation_CurrentValue(this.h) _goptr := newQVariant(_ret) diff --git a/qt6/gen_qvariantanimation.h b/qt6/gen_qvariantanimation.h index dd04a72d..0267c2eb 100644 --- a/qt6/gen_qvariantanimation.h +++ b/qt6/gen_qvariantanimation.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVARIANTANIMATION_H -#define GEN_QVARIANTANIMATION_H +#pragma once +#ifndef MIQT_QT6_GEN_QVARIANTANIMATION_H +#define MIQT_QT6_GEN_QVARIANTANIMATION_H #include #include @@ -38,6 +39,8 @@ QVariant* QVariantAnimation_EndValue(const QVariantAnimation* self); void QVariantAnimation_SetEndValue(QVariantAnimation* self, QVariant* value); QVariant* QVariantAnimation_KeyValueAt(const QVariantAnimation* self, double step); void QVariantAnimation_SetKeyValueAt(QVariantAnimation* self, double step, QVariant* value); +struct miqt_array /* of struct miqt_map tuple of double and QVariant* */ QVariantAnimation_KeyValues(const QVariantAnimation* self); +void QVariantAnimation_SetKeyValues(QVariantAnimation* self, struct miqt_array /* of struct miqt_map tuple of double and QVariant* */ values); QVariant* QVariantAnimation_CurrentValue(const QVariantAnimation* self); int QVariantAnimation_Duration(const QVariantAnimation* self); void QVariantAnimation_SetDuration(QVariantAnimation* self, int msecs); diff --git a/qt6/gen_qvarlengtharray.h b/qt6/gen_qvarlengtharray.h index ec062d2b..a94d1835 100644 --- a/qt6/gen_qvarlengtharray.h +++ b/qt6/gen_qvarlengtharray.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVARLENGTHARRAY_H -#define GEN_QVARLENGTHARRAY_H +#pragma once +#ifndef MIQT_QT6_GEN_QVARLENGTHARRAY_H +#define MIQT_QT6_GEN_QVARLENGTHARRAY_H #include #include diff --git a/qt6/gen_qvectornd.h b/qt6/gen_qvectornd.h index 3299f758..47994df0 100644 --- a/qt6/gen_qvectornd.h +++ b/qt6/gen_qvectornd.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVECTORND_H -#define GEN_QVECTORND_H +#pragma once +#ifndef MIQT_QT6_GEN_QVECTORND_H +#define MIQT_QT6_GEN_QVECTORND_H #include #include diff --git a/qt6/gen_qversionnumber.cpp b/qt6/gen_qversionnumber.cpp index f2be1539..cd7c6d5a 100644 --- a/qt6/gen_qversionnumber.cpp +++ b/qt6/gen_qversionnumber.cpp @@ -13,7 +13,7 @@ QVersionNumber* QVersionNumber_new() { return new QVersionNumber(); } -QVersionNumber* QVersionNumber_new2(struct miqt_array /* of int */ seg) { +QVersionNumber* QVersionNumber_new2(struct miqt_array /* of int */ seg) { QList seg_QList; seg_QList.reserve(seg.len); int* seg_arr = static_cast(seg.data); @@ -63,7 +63,7 @@ QVersionNumber* QVersionNumber_Normalized(const QVersionNumber* self) { return new QVersionNumber(self->normalized()); } -struct miqt_array QVersionNumber_Segments(const QVersionNumber* self) { +struct miqt_array /* of int */ QVersionNumber_Segments(const QVersionNumber* self) { QList _ret = self->segments(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt6/gen_qversionnumber.h b/qt6/gen_qversionnumber.h index 6fa71b0c..e3d98dc1 100644 --- a/qt6/gen_qversionnumber.h +++ b/qt6/gen_qversionnumber.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVERSIONNUMBER_H -#define GEN_QVERSIONNUMBER_H +#pragma once +#ifndef MIQT_QT6_GEN_QVERSIONNUMBER_H +#define MIQT_QT6_GEN_QVERSIONNUMBER_H #include #include @@ -24,7 +25,7 @@ typedef struct QVersionNumber QVersionNumber; #endif QVersionNumber* QVersionNumber_new(); -QVersionNumber* QVersionNumber_new2(struct miqt_array /* of int */ seg); +QVersionNumber* QVersionNumber_new2(struct miqt_array /* of int */ seg); QVersionNumber* QVersionNumber_new3(int maj); QVersionNumber* QVersionNumber_new4(int maj, int min); QVersionNumber* QVersionNumber_new5(int maj, int min, int mic); @@ -35,7 +36,7 @@ int QVersionNumber_MajorVersion(const QVersionNumber* self); int QVersionNumber_MinorVersion(const QVersionNumber* self); int QVersionNumber_MicroVersion(const QVersionNumber* self); QVersionNumber* QVersionNumber_Normalized(const QVersionNumber* self); -struct miqt_array QVersionNumber_Segments(const QVersionNumber* self); +struct miqt_array /* of int */ QVersionNumber_Segments(const QVersionNumber* self); int QVersionNumber_SegmentAt(const QVersionNumber* self, ptrdiff_t index); ptrdiff_t QVersionNumber_SegmentCount(const QVersionNumber* self); bool QVersionNumber_IsPrefixOf(const QVersionNumber* self, QVersionNumber* other); diff --git a/qt6/gen_qwaitcondition.h b/qt6/gen_qwaitcondition.h index a1fdefef..7279158b 100644 --- a/qt6/gen_qwaitcondition.h +++ b/qt6/gen_qwaitcondition.h @@ -1,5 +1,6 @@ -#ifndef GEN_QWAITCONDITION_H -#define GEN_QWAITCONDITION_H +#pragma once +#ifndef MIQT_QT6_GEN_QWAITCONDITION_H +#define MIQT_QT6_GEN_QWAITCONDITION_H #include #include diff --git a/qt6/gen_qwhatsthis.h b/qt6/gen_qwhatsthis.h index e427a89a..0edffef9 100644 --- a/qt6/gen_qwhatsthis.h +++ b/qt6/gen_qwhatsthis.h @@ -1,5 +1,6 @@ -#ifndef GEN_QWHATSTHIS_H -#define GEN_QWHATSTHIS_H +#pragma once +#ifndef MIQT_QT6_GEN_QWHATSTHIS_H +#define MIQT_QT6_GEN_QWHATSTHIS_H #include #include diff --git a/qt6/gen_qwidget.cpp b/qt6/gen_qwidget.cpp index 644e8822..bf521cbd 100644 --- a/qt6/gen_qwidget.cpp +++ b/qt6/gen_qwidget.cpp @@ -1077,7 +1077,7 @@ void QWidget_AddAction(QWidget* self, QAction* action) { self->addAction(action); } -void QWidget_AddActions(QWidget* self, struct miqt_array /* of QAction* */ actions) { +void QWidget_AddActions(QWidget* self, struct miqt_array /* of QAction* */ actions) { QList actions_QList; actions_QList.reserve(actions.len); QAction** actions_arr = static_cast(actions.data); @@ -1087,7 +1087,7 @@ void QWidget_AddActions(QWidget* self, struct miqt_array /* of QAction* */ actio self->addActions(actions_QList); } -void QWidget_InsertActions(QWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions) { +void QWidget_InsertActions(QWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions) { QList actions_QList; actions_QList.reserve(actions.len); QAction** actions_arr = static_cast(actions.data); @@ -1105,7 +1105,7 @@ void QWidget_RemoveAction(QWidget* self, QAction* action) { self->removeAction(action); } -struct miqt_array QWidget_Actions(const QWidget* self) { +struct miqt_array /* of QAction* */ QWidget_Actions(const QWidget* self) { QList _ret = self->actions(); // Convert QList<> from C++ memory to manually-managed C memory QAction** _arr = static_cast(malloc(sizeof(QAction*) * _ret.length())); diff --git a/qt6/gen_qwidget.h b/qt6/gen_qwidget.h index e9d6f3bd..c131f71c 100644 --- a/qt6/gen_qwidget.h +++ b/qt6/gen_qwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QWIDGET_H -#define GEN_QWIDGET_H +#pragma once +#ifndef MIQT_QT6_GEN_QWIDGET_H +#define MIQT_QT6_GEN_QWIDGET_H #include #include @@ -316,11 +317,11 @@ QWidget* QWidget_PreviousInFocusChain(const QWidget* self); bool QWidget_AcceptDrops(const QWidget* self); void QWidget_SetAcceptDrops(QWidget* self, bool on); void QWidget_AddAction(QWidget* self, QAction* action); -void QWidget_AddActions(QWidget* self, struct miqt_array /* of QAction* */ actions); -void QWidget_InsertActions(QWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions); +void QWidget_AddActions(QWidget* self, struct miqt_array /* of QAction* */ actions); +void QWidget_InsertActions(QWidget* self, QAction* before, struct miqt_array /* of QAction* */ actions); void QWidget_InsertAction(QWidget* self, QAction* before, QAction* action); void QWidget_RemoveAction(QWidget* self, QAction* action); -struct miqt_array QWidget_Actions(const QWidget* self); +struct miqt_array /* of QAction* */ QWidget_Actions(const QWidget* self); QAction* QWidget_AddActionWithText(QWidget* self, struct miqt_string text); QAction* QWidget_AddAction2(QWidget* self, QIcon* icon, struct miqt_string text); QAction* QWidget_AddAction3(QWidget* self, struct miqt_string text, QKeySequence* shortcut); diff --git a/qt6/gen_qwidgetaction.h b/qt6/gen_qwidgetaction.h index 914fba31..dc551e22 100644 --- a/qt6/gen_qwidgetaction.h +++ b/qt6/gen_qwidgetaction.h @@ -1,5 +1,6 @@ -#ifndef GEN_QWIDGETACTION_H -#define GEN_QWIDGETACTION_H +#pragma once +#ifndef MIQT_QT6_GEN_QWIDGETACTION_H +#define MIQT_QT6_GEN_QWIDGETACTION_H #include #include diff --git a/qt6/gen_qwindow.h b/qt6/gen_qwindow.h index 012704db..ebdc0f51 100644 --- a/qt6/gen_qwindow.h +++ b/qt6/gen_qwindow.h @@ -1,5 +1,6 @@ -#ifndef GEN_QWINDOW_H -#define GEN_QWINDOW_H +#pragma once +#ifndef MIQT_QT6_GEN_QWINDOW_H +#define MIQT_QT6_GEN_QWINDOW_H #include #include diff --git a/qt6/gen_qwizard.cpp b/qt6/gen_qwizard.cpp index a6202ebf..f4eff838 100644 --- a/qt6/gen_qwizard.cpp +++ b/qt6/gen_qwizard.cpp @@ -65,7 +65,7 @@ bool QWizard_HasVisitedPage(const QWizard* self, int id) { return self->hasVisitedPage(static_cast(id)); } -struct miqt_array QWizard_VisitedIds(const QWizard* self) { +struct miqt_array /* of int */ QWizard_VisitedIds(const QWizard* self) { QList _ret = self->visitedIds(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -78,7 +78,7 @@ struct miqt_array QWizard_VisitedIds(const QWizard* self) { return _out; } -struct miqt_array QWizard_PageIds(const QWizard* self) { +struct miqt_array /* of int */ QWizard_PageIds(const QWizard* self) { QList _ret = self->pageIds(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -167,7 +167,7 @@ struct miqt_string QWizard_ButtonText(const QWizard* self, int which) { return _ms; } -void QWizard_SetButtonLayout(QWizard* self, struct miqt_array /* of int */ layout) { +void QWizard_SetButtonLayout(QWizard* self, struct miqt_array /* of int */ layout) { QList layout_QList; layout_QList.reserve(layout.len); int* layout_arr = static_cast(layout.data); diff --git a/qt6/gen_qwizard.h b/qt6/gen_qwizard.h index 7a294914..74ef19a7 100644 --- a/qt6/gen_qwizard.h +++ b/qt6/gen_qwizard.h @@ -1,5 +1,6 @@ -#ifndef GEN_QWIZARD_H -#define GEN_QWIZARD_H +#pragma once +#ifndef MIQT_QT6_GEN_QWIZARD_H +#define MIQT_QT6_GEN_QWIZARD_H #include #include @@ -44,8 +45,8 @@ void QWizard_SetPage(QWizard* self, int id, QWizardPage* page); void QWizard_RemovePage(QWizard* self, int id); QWizardPage* QWizard_Page(const QWizard* self, int id); bool QWizard_HasVisitedPage(const QWizard* self, int id); -struct miqt_array QWizard_VisitedIds(const QWizard* self); -struct miqt_array QWizard_PageIds(const QWizard* self); +struct miqt_array /* of int */ QWizard_VisitedIds(const QWizard* self); +struct miqt_array /* of int */ QWizard_PageIds(const QWizard* self); void QWizard_SetStartId(QWizard* self, int id); int QWizard_StartId(const QWizard* self); QWizardPage* QWizard_CurrentPage(const QWizard* self); @@ -62,7 +63,7 @@ void QWizard_SetOptions(QWizard* self, int options); int QWizard_Options(const QWizard* self); void QWizard_SetButtonText(QWizard* self, int which, struct miqt_string text); struct miqt_string QWizard_ButtonText(const QWizard* self, int which); -void QWizard_SetButtonLayout(QWizard* self, struct miqt_array /* of int */ layout); +void QWizard_SetButtonLayout(QWizard* self, struct miqt_array /* of int */ layout); void QWizard_SetButton(QWizard* self, int which, QAbstractButton* button); QAbstractButton* QWizard_Button(const QWizard* self, int which); void QWizard_SetTitleFormat(QWizard* self, int format); diff --git a/qt6/gen_qxmlstream.cpp b/qt6/gen_qxmlstream.cpp index 73f8e6c7..68f770e3 100644 --- a/qt6/gen_qxmlstream.cpp +++ b/qt6/gen_qxmlstream.cpp @@ -330,7 +330,7 @@ struct miqt_string QXmlStreamReader_ReadElementText(QXmlStreamReader* self) { return _ms; } -struct miqt_array QXmlStreamReader_NamespaceDeclarations(const QXmlStreamReader* self) { +struct miqt_array /* of QXmlStreamNamespaceDeclaration* */ QXmlStreamReader_NamespaceDeclarations(const QXmlStreamReader* self) { QXmlStreamNamespaceDeclarations _ret = self->namespaceDeclarations(); // Convert QList<> from C++ memory to manually-managed C memory QXmlStreamNamespaceDeclaration** _arr = static_cast(malloc(sizeof(QXmlStreamNamespaceDeclaration*) * _ret.length())); @@ -347,7 +347,7 @@ void QXmlStreamReader_AddExtraNamespaceDeclaration(QXmlStreamReader* self, QXmlS self->addExtraNamespaceDeclaration(*extraNamespaceDeclaraction); } -void QXmlStreamReader_AddExtraNamespaceDeclarations(QXmlStreamReader* self, struct miqt_array /* of QXmlStreamNamespaceDeclaration* */ extraNamespaceDeclaractions) { +void QXmlStreamReader_AddExtraNamespaceDeclarations(QXmlStreamReader* self, struct miqt_array /* of QXmlStreamNamespaceDeclaration* */ extraNamespaceDeclaractions) { QXmlStreamNamespaceDeclarations extraNamespaceDeclaractions_QList; extraNamespaceDeclaractions_QList.reserve(extraNamespaceDeclaractions.len); QXmlStreamNamespaceDeclaration** extraNamespaceDeclaractions_arr = static_cast(extraNamespaceDeclaractions.data); @@ -357,7 +357,7 @@ void QXmlStreamReader_AddExtraNamespaceDeclarations(QXmlStreamReader* self, stru self->addExtraNamespaceDeclarations(extraNamespaceDeclaractions_QList); } -struct miqt_array QXmlStreamReader_NotationDeclarations(const QXmlStreamReader* self) { +struct miqt_array /* of QXmlStreamNotationDeclaration* */ QXmlStreamReader_NotationDeclarations(const QXmlStreamReader* self) { QXmlStreamNotationDeclarations _ret = self->notationDeclarations(); // Convert QList<> from C++ memory to manually-managed C memory QXmlStreamNotationDeclaration** _arr = static_cast(malloc(sizeof(QXmlStreamNotationDeclaration*) * _ret.length())); @@ -370,7 +370,7 @@ struct miqt_array QXmlStreamReader_NotationDeclarations(const QXmlStreamReader* return _out; } -struct miqt_array QXmlStreamReader_EntityDeclarations(const QXmlStreamReader* self) { +struct miqt_array /* of QXmlStreamEntityDeclaration* */ QXmlStreamReader_EntityDeclarations(const QXmlStreamReader* self) { QXmlStreamEntityDeclarations _ret = self->entityDeclarations(); // Convert QList<> from C++ memory to manually-managed C memory QXmlStreamEntityDeclaration** _arr = static_cast(malloc(sizeof(QXmlStreamEntityDeclaration*) * _ret.length())); diff --git a/qt6/gen_qxmlstream.h b/qt6/gen_qxmlstream.h index 9da82375..98c0961c 100644 --- a/qt6/gen_qxmlstream.h +++ b/qt6/gen_qxmlstream.h @@ -1,5 +1,6 @@ -#ifndef GEN_QXMLSTREAM_H -#define GEN_QXMLSTREAM_H +#pragma once +#ifndef MIQT_QT6_GEN_QXMLSTREAM_H +#define MIQT_QT6_GEN_QXMLSTREAM_H #include #include @@ -113,11 +114,11 @@ long long QXmlStreamReader_LineNumber(const QXmlStreamReader* self); long long QXmlStreamReader_ColumnNumber(const QXmlStreamReader* self); long long QXmlStreamReader_CharacterOffset(const QXmlStreamReader* self); struct miqt_string QXmlStreamReader_ReadElementText(QXmlStreamReader* self); -struct miqt_array QXmlStreamReader_NamespaceDeclarations(const QXmlStreamReader* self); +struct miqt_array /* of QXmlStreamNamespaceDeclaration* */ QXmlStreamReader_NamespaceDeclarations(const QXmlStreamReader* self); void QXmlStreamReader_AddExtraNamespaceDeclaration(QXmlStreamReader* self, QXmlStreamNamespaceDeclaration* extraNamespaceDeclaraction); -void QXmlStreamReader_AddExtraNamespaceDeclarations(QXmlStreamReader* self, struct miqt_array /* of QXmlStreamNamespaceDeclaration* */ extraNamespaceDeclaractions); -struct miqt_array QXmlStreamReader_NotationDeclarations(const QXmlStreamReader* self); -struct miqt_array QXmlStreamReader_EntityDeclarations(const QXmlStreamReader* self); +void QXmlStreamReader_AddExtraNamespaceDeclarations(QXmlStreamReader* self, struct miqt_array /* of QXmlStreamNamespaceDeclaration* */ extraNamespaceDeclaractions); +struct miqt_array /* of QXmlStreamNotationDeclaration* */ QXmlStreamReader_NotationDeclarations(const QXmlStreamReader* self); +struct miqt_array /* of QXmlStreamEntityDeclaration* */ QXmlStreamReader_EntityDeclarations(const QXmlStreamReader* self); int QXmlStreamReader_EntityExpansionLimit(const QXmlStreamReader* self); void QXmlStreamReader_SetEntityExpansionLimit(QXmlStreamReader* self, int limit); void QXmlStreamReader_RaiseError(QXmlStreamReader* self); diff --git a/qt6/multimedia/gen_qaudio.h b/qt6/multimedia/gen_qaudio.h index fd053642..58523f9b 100644 --- a/qt6/multimedia/gen_qaudio.h +++ b/qt6/multimedia/gen_qaudio.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIO_H -#define GEN_QAUDIO_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QAUDIO_H +#define MIQT_QT6_MULTIMEDIA_GEN_QAUDIO_H #include #include diff --git a/qt6/multimedia/gen_qaudiobuffer.h b/qt6/multimedia/gen_qaudiobuffer.h index 06ed49be..1ad31814 100644 --- a/qt6/multimedia/gen_qaudiobuffer.h +++ b/qt6/multimedia/gen_qaudiobuffer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOBUFFER_H -#define GEN_QAUDIOBUFFER_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QAUDIOBUFFER_H +#define MIQT_QT6_MULTIMEDIA_GEN_QAUDIOBUFFER_H #include #include diff --git a/qt6/multimedia/gen_qaudiodecoder.h b/qt6/multimedia/gen_qaudiodecoder.h index 36298ab1..e95a9a11 100644 --- a/qt6/multimedia/gen_qaudiodecoder.h +++ b/qt6/multimedia/gen_qaudiodecoder.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIODECODER_H -#define GEN_QAUDIODECODER_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QAUDIODECODER_H +#define MIQT_QT6_MULTIMEDIA_GEN_QAUDIODECODER_H #include #include diff --git a/qt6/multimedia/gen_qaudiodevice.cpp b/qt6/multimedia/gen_qaudiodevice.cpp index 6214dd39..35ddb8af 100644 --- a/qt6/multimedia/gen_qaudiodevice.cpp +++ b/qt6/multimedia/gen_qaudiodevice.cpp @@ -90,7 +90,7 @@ int QAudioDevice_MaximumChannelCount(const QAudioDevice* self) { return self->maximumChannelCount(); } -struct miqt_array QAudioDevice_SupportedSampleFormats(const QAudioDevice* self) { +struct miqt_array /* of uint16_t */ QAudioDevice_SupportedSampleFormats(const QAudioDevice* self) { QList _ret = self->supportedSampleFormats(); // Convert QList<> from C++ memory to manually-managed C memory uint16_t* _arr = static_cast(malloc(sizeof(uint16_t) * _ret.length())); diff --git a/qt6/multimedia/gen_qaudiodevice.h b/qt6/multimedia/gen_qaudiodevice.h index ebeb5cf4..17096e96 100644 --- a/qt6/multimedia/gen_qaudiodevice.h +++ b/qt6/multimedia/gen_qaudiodevice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIODEVICE_H -#define GEN_QAUDIODEVICE_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QAUDIODEVICE_H +#define MIQT_QT6_MULTIMEDIA_GEN_QAUDIODEVICE_H #include #include @@ -40,7 +41,7 @@ int QAudioDevice_MinimumSampleRate(const QAudioDevice* self); int QAudioDevice_MaximumSampleRate(const QAudioDevice* self); int QAudioDevice_MinimumChannelCount(const QAudioDevice* self); int QAudioDevice_MaximumChannelCount(const QAudioDevice* self); -struct miqt_array QAudioDevice_SupportedSampleFormats(const QAudioDevice* self); +struct miqt_array /* of uint16_t */ QAudioDevice_SupportedSampleFormats(const QAudioDevice* self); uint32_t QAudioDevice_ChannelConfiguration(const QAudioDevice* self); void QAudioDevice_Delete(QAudioDevice* self); diff --git a/qt6/multimedia/gen_qaudioformat.h b/qt6/multimedia/gen_qaudioformat.h index 436f4280..6a480fe7 100644 --- a/qt6/multimedia/gen_qaudioformat.h +++ b/qt6/multimedia/gen_qaudioformat.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOFORMAT_H -#define GEN_QAUDIOFORMAT_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QAUDIOFORMAT_H +#define MIQT_QT6_MULTIMEDIA_GEN_QAUDIOFORMAT_H #include #include diff --git a/qt6/multimedia/gen_qaudioinput.h b/qt6/multimedia/gen_qaudioinput.h index 65e4a4cb..b2232224 100644 --- a/qt6/multimedia/gen_qaudioinput.h +++ b/qt6/multimedia/gen_qaudioinput.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOINPUT_H -#define GEN_QAUDIOINPUT_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QAUDIOINPUT_H +#define MIQT_QT6_MULTIMEDIA_GEN_QAUDIOINPUT_H #include #include diff --git a/qt6/multimedia/gen_qaudiooutput.h b/qt6/multimedia/gen_qaudiooutput.h index 9705a77d..d71b6537 100644 --- a/qt6/multimedia/gen_qaudiooutput.h +++ b/qt6/multimedia/gen_qaudiooutput.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOOUTPUT_H -#define GEN_QAUDIOOUTPUT_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QAUDIOOUTPUT_H +#define MIQT_QT6_MULTIMEDIA_GEN_QAUDIOOUTPUT_H #include #include diff --git a/qt6/multimedia/gen_qaudiosink.h b/qt6/multimedia/gen_qaudiosink.h index a52a44ac..76a9860b 100644 --- a/qt6/multimedia/gen_qaudiosink.h +++ b/qt6/multimedia/gen_qaudiosink.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOSINK_H -#define GEN_QAUDIOSINK_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QAUDIOSINK_H +#define MIQT_QT6_MULTIMEDIA_GEN_QAUDIOSINK_H #include #include diff --git a/qt6/multimedia/gen_qaudiosource.h b/qt6/multimedia/gen_qaudiosource.h index 9e8c6929..4a5c8620 100644 --- a/qt6/multimedia/gen_qaudiosource.h +++ b/qt6/multimedia/gen_qaudiosource.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOSOURCE_H -#define GEN_QAUDIOSOURCE_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QAUDIOSOURCE_H +#define MIQT_QT6_MULTIMEDIA_GEN_QAUDIOSOURCE_H #include #include diff --git a/qt6/multimedia/gen_qcamera.h b/qt6/multimedia/gen_qcamera.h index 627df8b4..dd6efaaa 100644 --- a/qt6/multimedia/gen_qcamera.h +++ b/qt6/multimedia/gen_qcamera.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERA_H -#define GEN_QCAMERA_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QCAMERA_H +#define MIQT_QT6_MULTIMEDIA_GEN_QCAMERA_H #include #include diff --git a/qt6/multimedia/gen_qcameradevice.cpp b/qt6/multimedia/gen_qcameradevice.cpp index b065afb9..8a23ef5c 100644 --- a/qt6/multimedia/gen_qcameradevice.cpp +++ b/qt6/multimedia/gen_qcameradevice.cpp @@ -108,7 +108,7 @@ int QCameraDevice_Position(const QCameraDevice* self) { return static_cast(_ret); } -struct miqt_array QCameraDevice_PhotoResolutions(const QCameraDevice* self) { +struct miqt_array /* of QSize* */ QCameraDevice_PhotoResolutions(const QCameraDevice* self) { QList _ret = self->photoResolutions(); // Convert QList<> from C++ memory to manually-managed C memory QSize** _arr = static_cast(malloc(sizeof(QSize*) * _ret.length())); @@ -121,7 +121,7 @@ struct miqt_array QCameraDevice_PhotoResolutions(const QCameraDevice* self) { return _out; } -struct miqt_array QCameraDevice_VideoFormats(const QCameraDevice* self) { +struct miqt_array /* of QCameraFormat* */ QCameraDevice_VideoFormats(const QCameraDevice* self) { QList _ret = self->videoFormats(); // Convert QList<> from C++ memory to manually-managed C memory QCameraFormat** _arr = static_cast(malloc(sizeof(QCameraFormat*) * _ret.length())); diff --git a/qt6/multimedia/gen_qcameradevice.h b/qt6/multimedia/gen_qcameradevice.h index 2b88bb29..0a2f1362 100644 --- a/qt6/multimedia/gen_qcameradevice.h +++ b/qt6/multimedia/gen_qcameradevice.h @@ -1,5 +1,6 @@ -#ifndef GEN_QCAMERADEVICE_H -#define GEN_QCAMERADEVICE_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QCAMERADEVICE_H +#define MIQT_QT6_MULTIMEDIA_GEN_QCAMERADEVICE_H #include #include @@ -47,8 +48,8 @@ struct miqt_string QCameraDevice_Id(const QCameraDevice* self); struct miqt_string QCameraDevice_Description(const QCameraDevice* self); bool QCameraDevice_IsDefault(const QCameraDevice* self); int QCameraDevice_Position(const QCameraDevice* self); -struct miqt_array QCameraDevice_PhotoResolutions(const QCameraDevice* self); -struct miqt_array QCameraDevice_VideoFormats(const QCameraDevice* self); +struct miqt_array /* of QSize* */ QCameraDevice_PhotoResolutions(const QCameraDevice* self); +struct miqt_array /* of QCameraFormat* */ QCameraDevice_VideoFormats(const QCameraDevice* self); void QCameraDevice_Delete(QCameraDevice* self); #ifdef __cplusplus diff --git a/qt6/multimedia/gen_qgraphicsvideoitem.h b/qt6/multimedia/gen_qgraphicsvideoitem.h index 2077181a..d2c527f4 100644 --- a/qt6/multimedia/gen_qgraphicsvideoitem.h +++ b/qt6/multimedia/gen_qgraphicsvideoitem.h @@ -1,5 +1,6 @@ -#ifndef GEN_QGRAPHICSVIDEOITEM_H -#define GEN_QGRAPHICSVIDEOITEM_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QGRAPHICSVIDEOITEM_H +#define MIQT_QT6_MULTIMEDIA_GEN_QGRAPHICSVIDEOITEM_H #include #include diff --git a/qt6/multimedia/gen_qimagecapture.cpp b/qt6/multimedia/gen_qimagecapture.cpp index 59128edf..c04ccb0f 100644 --- a/qt6/multimedia/gen_qimagecapture.cpp +++ b/qt6/multimedia/gen_qimagecapture.cpp @@ -78,7 +78,7 @@ void QImageCapture_SetFileFormat(QImageCapture* self, int format) { self->setFileFormat(static_cast(format)); } -struct miqt_array QImageCapture_SupportedFormats() { +struct miqt_array /* of int */ QImageCapture_SupportedFormats() { QList _ret = QImageCapture::supportedFormats(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt6/multimedia/gen_qimagecapture.h b/qt6/multimedia/gen_qimagecapture.h index 771f68d0..3942364d 100644 --- a/qt6/multimedia/gen_qimagecapture.h +++ b/qt6/multimedia/gen_qimagecapture.h @@ -1,5 +1,6 @@ -#ifndef GEN_QIMAGECAPTURE_H -#define GEN_QIMAGECAPTURE_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QIMAGECAPTURE_H +#define MIQT_QT6_MULTIMEDIA_GEN_QIMAGECAPTURE_H #include #include @@ -45,7 +46,7 @@ struct miqt_string QImageCapture_ErrorString(const QImageCapture* self); bool QImageCapture_IsReadyForCapture(const QImageCapture* self); int QImageCapture_FileFormat(const QImageCapture* self); void QImageCapture_SetFileFormat(QImageCapture* self, int format); -struct miqt_array QImageCapture_SupportedFormats(); +struct miqt_array /* of int */ QImageCapture_SupportedFormats(); struct miqt_string QImageCapture_FileFormatName(int c); struct miqt_string QImageCapture_FileFormatDescription(int c); QSize* QImageCapture_Resolution(const QImageCapture* self); diff --git a/qt6/multimedia/gen_qmediacapturesession.h b/qt6/multimedia/gen_qmediacapturesession.h index 0f2cce56..31dc23cd 100644 --- a/qt6/multimedia/gen_qmediacapturesession.h +++ b/qt6/multimedia/gen_qmediacapturesession.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIACAPTURESESSION_H -#define GEN_QMEDIACAPTURESESSION_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QMEDIACAPTURESESSION_H +#define MIQT_QT6_MULTIMEDIA_GEN_QMEDIACAPTURESESSION_H #include #include diff --git a/qt6/multimedia/gen_qmediadevices.cpp b/qt6/multimedia/gen_qmediadevices.cpp index 2614e675..dde6efd3 100644 --- a/qt6/multimedia/gen_qmediadevices.cpp +++ b/qt6/multimedia/gen_qmediadevices.cpp @@ -38,7 +38,7 @@ struct miqt_string QMediaDevices_Tr(const char* s) { return _ms; } -struct miqt_array QMediaDevices_AudioInputs() { +struct miqt_array /* of QAudioDevice* */ QMediaDevices_AudioInputs() { QList _ret = QMediaDevices::audioInputs(); // Convert QList<> from C++ memory to manually-managed C memory QAudioDevice** _arr = static_cast(malloc(sizeof(QAudioDevice*) * _ret.length())); @@ -51,7 +51,7 @@ struct miqt_array QMediaDevices_AudioInputs() { return _out; } -struct miqt_array QMediaDevices_AudioOutputs() { +struct miqt_array /* of QAudioDevice* */ QMediaDevices_AudioOutputs() { QList _ret = QMediaDevices::audioOutputs(); // Convert QList<> from C++ memory to manually-managed C memory QAudioDevice** _arr = static_cast(malloc(sizeof(QAudioDevice*) * _ret.length())); @@ -64,7 +64,7 @@ struct miqt_array QMediaDevices_AudioOutputs() { return _out; } -struct miqt_array QMediaDevices_VideoInputs() { +struct miqt_array /* of QCameraDevice* */ QMediaDevices_VideoInputs() { QList _ret = QMediaDevices::videoInputs(); // Convert QList<> from C++ memory to manually-managed C memory QCameraDevice** _arr = static_cast(malloc(sizeof(QCameraDevice*) * _ret.length())); diff --git a/qt6/multimedia/gen_qmediadevices.h b/qt6/multimedia/gen_qmediadevices.h index 87414744..874437df 100644 --- a/qt6/multimedia/gen_qmediadevices.h +++ b/qt6/multimedia/gen_qmediadevices.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIADEVICES_H -#define GEN_QMEDIADEVICES_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QMEDIADEVICES_H +#define MIQT_QT6_MULTIMEDIA_GEN_QMEDIADEVICES_H #include #include @@ -32,9 +33,9 @@ QMediaDevices* QMediaDevices_new2(QObject* parent); QMetaObject* QMediaDevices_MetaObject(const QMediaDevices* self); void* QMediaDevices_Metacast(QMediaDevices* self, const char* param1); struct miqt_string QMediaDevices_Tr(const char* s); -struct miqt_array QMediaDevices_AudioInputs(); -struct miqt_array QMediaDevices_AudioOutputs(); -struct miqt_array QMediaDevices_VideoInputs(); +struct miqt_array /* of QAudioDevice* */ QMediaDevices_AudioInputs(); +struct miqt_array /* of QAudioDevice* */ QMediaDevices_AudioOutputs(); +struct miqt_array /* of QCameraDevice* */ QMediaDevices_VideoInputs(); QAudioDevice* QMediaDevices_DefaultAudioInput(); QAudioDevice* QMediaDevices_DefaultAudioOutput(); QCameraDevice* QMediaDevices_DefaultVideoInput(); diff --git a/qt6/multimedia/gen_qmediaformat.cpp b/qt6/multimedia/gen_qmediaformat.cpp index 2ff743d5..ea91474f 100644 --- a/qt6/multimedia/gen_qmediaformat.cpp +++ b/qt6/multimedia/gen_qmediaformat.cpp @@ -63,7 +63,7 @@ QMimeType* QMediaFormat_MimeType(const QMediaFormat* self) { return new QMimeType(self->mimeType()); } -struct miqt_array QMediaFormat_SupportedFileFormats(QMediaFormat* self, int m) { +struct miqt_array /* of int */ QMediaFormat_SupportedFileFormats(QMediaFormat* self, int m) { QList _ret = self->supportedFileFormats(static_cast(m)); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -77,7 +77,7 @@ struct miqt_array QMediaFormat_SupportedFileFormats(QMediaFormat* self, int m) { return _out; } -struct miqt_array QMediaFormat_SupportedVideoCodecs(QMediaFormat* self, int m) { +struct miqt_array /* of int */ QMediaFormat_SupportedVideoCodecs(QMediaFormat* self, int m) { QList _ret = self->supportedVideoCodecs(static_cast(m)); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -91,7 +91,7 @@ struct miqt_array QMediaFormat_SupportedVideoCodecs(QMediaFormat* self, int m) { return _out; } -struct miqt_array QMediaFormat_SupportedAudioCodecs(QMediaFormat* self, int m) { +struct miqt_array /* of int */ QMediaFormat_SupportedAudioCodecs(QMediaFormat* self, int m) { QList _ret = self->supportedAudioCodecs(static_cast(m)); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt6/multimedia/gen_qmediaformat.h b/qt6/multimedia/gen_qmediaformat.h index c6b3222e..12636c32 100644 --- a/qt6/multimedia/gen_qmediaformat.h +++ b/qt6/multimedia/gen_qmediaformat.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIAFORMAT_H -#define GEN_QMEDIAFORMAT_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QMEDIAFORMAT_H +#define MIQT_QT6_MULTIMEDIA_GEN_QMEDIAFORMAT_H #include #include @@ -34,9 +35,9 @@ void QMediaFormat_SetAudioCodec(QMediaFormat* self, int codec); int QMediaFormat_AudioCodec(const QMediaFormat* self); bool QMediaFormat_IsSupported(const QMediaFormat* self, int mode); QMimeType* QMediaFormat_MimeType(const QMediaFormat* self); -struct miqt_array QMediaFormat_SupportedFileFormats(QMediaFormat* self, int m); -struct miqt_array QMediaFormat_SupportedVideoCodecs(QMediaFormat* self, int m); -struct miqt_array QMediaFormat_SupportedAudioCodecs(QMediaFormat* self, int m); +struct miqt_array /* of int */ QMediaFormat_SupportedFileFormats(QMediaFormat* self, int m); +struct miqt_array /* of int */ QMediaFormat_SupportedVideoCodecs(QMediaFormat* self, int m); +struct miqt_array /* of int */ QMediaFormat_SupportedAudioCodecs(QMediaFormat* self, int m); struct miqt_string QMediaFormat_FileFormatName(int fileFormat); struct miqt_string QMediaFormat_AudioCodecName(int codec); struct miqt_string QMediaFormat_VideoCodecName(int codec); diff --git a/qt6/multimedia/gen_qmediametadata.cpp b/qt6/multimedia/gen_qmediametadata.cpp index f67ae4f4..deda9c3d 100644 --- a/qt6/multimedia/gen_qmediametadata.cpp +++ b/qt6/multimedia/gen_qmediametadata.cpp @@ -28,7 +28,7 @@ void QMediaMetaData_Remove(QMediaMetaData* self, int k) { self->remove(static_cast(k)); } -struct miqt_array QMediaMetaData_Keys(const QMediaMetaData* self) { +struct miqt_array /* of int */ QMediaMetaData_Keys(const QMediaMetaData* self) { QList _ret = self->keys(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt6/multimedia/gen_qmediametadata.h b/qt6/multimedia/gen_qmediametadata.h index a4a689a8..51e00c8c 100644 --- a/qt6/multimedia/gen_qmediametadata.h +++ b/qt6/multimedia/gen_qmediametadata.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIAMETADATA_H -#define GEN_QMEDIAMETADATA_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QMEDIAMETADATA_H +#define MIQT_QT6_MULTIMEDIA_GEN_QMEDIAMETADATA_H #include #include @@ -26,7 +27,7 @@ QMediaMetaData* QMediaMetaData_new2(); QVariant* QMediaMetaData_Value(const QMediaMetaData* self, int k); void QMediaMetaData_Insert(QMediaMetaData* self, int k, QVariant* value); void QMediaMetaData_Remove(QMediaMetaData* self, int k); -struct miqt_array QMediaMetaData_Keys(const QMediaMetaData* self); +struct miqt_array /* of int */ QMediaMetaData_Keys(const QMediaMetaData* self); QVariant* QMediaMetaData_OperatorSubscript(QMediaMetaData* self, int k); void QMediaMetaData_Clear(QMediaMetaData* self); bool QMediaMetaData_IsEmpty(const QMediaMetaData* self); diff --git a/qt6/multimedia/gen_qmediaplayer.cpp b/qt6/multimedia/gen_qmediaplayer.cpp index 961011f1..3f3653e2 100644 --- a/qt6/multimedia/gen_qmediaplayer.cpp +++ b/qt6/multimedia/gen_qmediaplayer.cpp @@ -42,7 +42,7 @@ struct miqt_string QMediaPlayer_Tr(const char* s) { return _ms; } -struct miqt_array QMediaPlayer_AudioTracks(const QMediaPlayer* self) { +struct miqt_array /* of QMediaMetaData* */ QMediaPlayer_AudioTracks(const QMediaPlayer* self) { QList _ret = self->audioTracks(); // Convert QList<> from C++ memory to manually-managed C memory QMediaMetaData** _arr = static_cast(malloc(sizeof(QMediaMetaData*) * _ret.length())); @@ -55,7 +55,7 @@ struct miqt_array QMediaPlayer_AudioTracks(const QMediaPlayer* self) { return _out; } -struct miqt_array QMediaPlayer_VideoTracks(const QMediaPlayer* self) { +struct miqt_array /* of QMediaMetaData* */ QMediaPlayer_VideoTracks(const QMediaPlayer* self) { QList _ret = self->videoTracks(); // Convert QList<> from C++ memory to manually-managed C memory QMediaMetaData** _arr = static_cast(malloc(sizeof(QMediaMetaData*) * _ret.length())); @@ -68,7 +68,7 @@ struct miqt_array QMediaPlayer_VideoTracks(const QMediaPlayer* self) { return _out; } -struct miqt_array QMediaPlayer_SubtitleTracks(const QMediaPlayer* self) { +struct miqt_array /* of QMediaMetaData* */ QMediaPlayer_SubtitleTracks(const QMediaPlayer* self) { QList _ret = self->subtitleTracks(); // Convert QList<> from C++ memory to manually-managed C memory QMediaMetaData** _arr = static_cast(malloc(sizeof(QMediaMetaData*) * _ret.length())); diff --git a/qt6/multimedia/gen_qmediaplayer.h b/qt6/multimedia/gen_qmediaplayer.h index cd35e207..6496fc02 100644 --- a/qt6/multimedia/gen_qmediaplayer.h +++ b/qt6/multimedia/gen_qmediaplayer.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIAPLAYER_H -#define GEN_QMEDIAPLAYER_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QMEDIAPLAYER_H +#define MIQT_QT6_MULTIMEDIA_GEN_QMEDIAPLAYER_H #include #include @@ -40,9 +41,9 @@ QMediaPlayer* QMediaPlayer_new2(QObject* parent); QMetaObject* QMediaPlayer_MetaObject(const QMediaPlayer* self); void* QMediaPlayer_Metacast(QMediaPlayer* self, const char* param1); struct miqt_string QMediaPlayer_Tr(const char* s); -struct miqt_array QMediaPlayer_AudioTracks(const QMediaPlayer* self); -struct miqt_array QMediaPlayer_VideoTracks(const QMediaPlayer* self); -struct miqt_array QMediaPlayer_SubtitleTracks(const QMediaPlayer* self); +struct miqt_array /* of QMediaMetaData* */ QMediaPlayer_AudioTracks(const QMediaPlayer* self); +struct miqt_array /* of QMediaMetaData* */ QMediaPlayer_VideoTracks(const QMediaPlayer* self); +struct miqt_array /* of QMediaMetaData* */ QMediaPlayer_SubtitleTracks(const QMediaPlayer* self); int QMediaPlayer_ActiveAudioTrack(const QMediaPlayer* self); int QMediaPlayer_ActiveVideoTrack(const QMediaPlayer* self); int QMediaPlayer_ActiveSubtitleTrack(const QMediaPlayer* self); diff --git a/qt6/multimedia/gen_qmediarecorder.h b/qt6/multimedia/gen_qmediarecorder.h index fcba02b7..6c984e04 100644 --- a/qt6/multimedia/gen_qmediarecorder.h +++ b/qt6/multimedia/gen_qmediarecorder.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIARECORDER_H -#define GEN_QMEDIARECORDER_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QMEDIARECORDER_H +#define MIQT_QT6_MULTIMEDIA_GEN_QMEDIARECORDER_H #include #include diff --git a/qt6/multimedia/gen_qmediatimerange.cpp b/qt6/multimedia/gen_qmediatimerange.cpp index 2fc93f00..0c51d6b8 100644 --- a/qt6/multimedia/gen_qmediatimerange.cpp +++ b/qt6/multimedia/gen_qmediatimerange.cpp @@ -47,7 +47,7 @@ long long QMediaTimeRange_LatestTime(const QMediaTimeRange* self) { return static_cast(_ret); } -struct miqt_array QMediaTimeRange_Intervals(const QMediaTimeRange* self) { +struct miqt_array /* of QMediaTimeRange__Interval* */ QMediaTimeRange_Intervals(const QMediaTimeRange* self) { QList _ret = self->intervals(); // Convert QList<> from C++ memory to manually-managed C memory QMediaTimeRange__Interval** _arr = static_cast(malloc(sizeof(QMediaTimeRange__Interval*) * _ret.length())); diff --git a/qt6/multimedia/gen_qmediatimerange.h b/qt6/multimedia/gen_qmediatimerange.h index 34de9713..3fb507eb 100644 --- a/qt6/multimedia/gen_qmediatimerange.h +++ b/qt6/multimedia/gen_qmediatimerange.h @@ -1,5 +1,6 @@ -#ifndef GEN_QMEDIATIMERANGE_H -#define GEN_QMEDIATIMERANGE_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QMEDIATIMERANGE_H +#define MIQT_QT6_MULTIMEDIA_GEN_QMEDIATIMERANGE_H #include #include @@ -35,7 +36,7 @@ void QMediaTimeRange_Detach(QMediaTimeRange* self); void QMediaTimeRange_OperatorAssignWithQMediaTimeRangeInterval(QMediaTimeRange* self, QMediaTimeRange__Interval* param1); long long QMediaTimeRange_EarliestTime(const QMediaTimeRange* self); long long QMediaTimeRange_LatestTime(const QMediaTimeRange* self); -struct miqt_array QMediaTimeRange_Intervals(const QMediaTimeRange* self); +struct miqt_array /* of QMediaTimeRange__Interval* */ QMediaTimeRange_Intervals(const QMediaTimeRange* self); bool QMediaTimeRange_IsEmpty(const QMediaTimeRange* self); bool QMediaTimeRange_IsContinuous(const QMediaTimeRange* self); bool QMediaTimeRange_Contains(const QMediaTimeRange* self, long long time); diff --git a/qt6/multimedia/gen_qsoundeffect.cpp b/qt6/multimedia/gen_qsoundeffect.cpp index 1c246d33..2d789baf 100644 --- a/qt6/multimedia/gen_qsoundeffect.cpp +++ b/qt6/multimedia/gen_qsoundeffect.cpp @@ -46,7 +46,7 @@ struct miqt_string QSoundEffect_Tr(const char* s) { return _ms; } -struct miqt_array QSoundEffect_SupportedMimeTypes() { +struct miqt_array /* of struct miqt_string */ QSoundEffect_SupportedMimeTypes() { QStringList _ret = QSoundEffect::supportedMimeTypes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/multimedia/gen_qsoundeffect.h b/qt6/multimedia/gen_qsoundeffect.h index 5c31f60b..4086d7e9 100644 --- a/qt6/multimedia/gen_qsoundeffect.h +++ b/qt6/multimedia/gen_qsoundeffect.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSOUNDEFFECT_H -#define GEN_QSOUNDEFFECT_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QSOUNDEFFECT_H +#define MIQT_QT6_MULTIMEDIA_GEN_QSOUNDEFFECT_H #include #include @@ -34,7 +35,7 @@ QSoundEffect* QSoundEffect_new4(QAudioDevice* audioDevice, QObject* parent); QMetaObject* QSoundEffect_MetaObject(const QSoundEffect* self); void* QSoundEffect_Metacast(QSoundEffect* self, const char* param1); struct miqt_string QSoundEffect_Tr(const char* s); -struct miqt_array QSoundEffect_SupportedMimeTypes(); +struct miqt_array /* of struct miqt_string */ QSoundEffect_SupportedMimeTypes(); QUrl* QSoundEffect_Source(const QSoundEffect* self); void QSoundEffect_SetSource(QSoundEffect* self, QUrl* url); int QSoundEffect_LoopCount(const QSoundEffect* self); diff --git a/qt6/multimedia/gen_qvideoframe.go b/qt6/multimedia/gen_qvideoframe.go index 0911eeec..9f1eea55 100644 --- a/qt6/multimedia/gen_qvideoframe.go +++ b/qt6/multimedia/gen_qvideoframe.go @@ -171,11 +171,11 @@ func (this *QVideoFrame) BytesPerLine(plane int) int { } func (this *QVideoFrame) Bits(plane int) *byte { - return (*byte)(C.QVideoFrame_Bits(this.h, (C.int)(plane))) + return (*byte)(unsafe.Pointer(C.QVideoFrame_Bits(this.h, (C.int)(plane)))) } func (this *QVideoFrame) BitsWithPlane(plane int) *byte { - return (*byte)(C.QVideoFrame_BitsWithPlane(this.h, (C.int)(plane))) + return (*byte)(unsafe.Pointer(C.QVideoFrame_BitsWithPlane(this.h, (C.int)(plane)))) } func (this *QVideoFrame) MappedBytes(plane int) int { diff --git a/qt6/multimedia/gen_qvideoframe.h b/qt6/multimedia/gen_qvideoframe.h index f938ba99..3b6df1cc 100644 --- a/qt6/multimedia/gen_qvideoframe.h +++ b/qt6/multimedia/gen_qvideoframe.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVIDEOFRAME_H -#define GEN_QVIDEOFRAME_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QVIDEOFRAME_H +#define MIQT_QT6_MULTIMEDIA_GEN_QVIDEOFRAME_H #include #include diff --git a/qt6/multimedia/gen_qvideoframeformat.h b/qt6/multimedia/gen_qvideoframeformat.h index ec3d27ae..12d0eb0c 100644 --- a/qt6/multimedia/gen_qvideoframeformat.h +++ b/qt6/multimedia/gen_qvideoframeformat.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVIDEOFRAMEFORMAT_H -#define GEN_QVIDEOFRAMEFORMAT_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QVIDEOFRAMEFORMAT_H +#define MIQT_QT6_MULTIMEDIA_GEN_QVIDEOFRAMEFORMAT_H #include #include diff --git a/qt6/multimedia/gen_qvideosink.h b/qt6/multimedia/gen_qvideosink.h index 5fed6a59..ff32a3b3 100644 --- a/qt6/multimedia/gen_qvideosink.h +++ b/qt6/multimedia/gen_qvideosink.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVIDEOSINK_H -#define GEN_QVIDEOSINK_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QVIDEOSINK_H +#define MIQT_QT6_MULTIMEDIA_GEN_QVIDEOSINK_H #include #include diff --git a/qt6/multimedia/gen_qvideowidget.h b/qt6/multimedia/gen_qvideowidget.h index 4393aa3c..47ffaa0e 100644 --- a/qt6/multimedia/gen_qvideowidget.h +++ b/qt6/multimedia/gen_qvideowidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QVIDEOWIDGET_H -#define GEN_QVIDEOWIDGET_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QVIDEOWIDGET_H +#define MIQT_QT6_MULTIMEDIA_GEN_QVIDEOWIDGET_H #include #include diff --git a/qt6/multimedia/gen_qwavedecoder.h b/qt6/multimedia/gen_qwavedecoder.h index 08b250bd..0028c13c 100644 --- a/qt6/multimedia/gen_qwavedecoder.h +++ b/qt6/multimedia/gen_qwavedecoder.h @@ -1,5 +1,6 @@ -#ifndef GEN_QWAVEDECODER_H -#define GEN_QWAVEDECODER_H +#pragma once +#ifndef MIQT_QT6_MULTIMEDIA_GEN_QWAVEDECODER_H +#define MIQT_QT6_MULTIMEDIA_GEN_QWAVEDECODER_H #include #include diff --git a/qt6/network/gen_qabstractnetworkcache.cpp b/qt6/network/gen_qabstractnetworkcache.cpp index 7c884f65..d2baddea 100644 --- a/qt6/network/gen_qabstractnetworkcache.cpp +++ b/qt6/network/gen_qabstractnetworkcache.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -49,6 +50,56 @@ void QNetworkCacheMetaData_SetUrl(QNetworkCacheMetaData* self, QUrl* url) { self->setUrl(*url); } +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QNetworkCacheMetaData_RawHeaders(const QNetworkCacheMetaData* self) { + QNetworkCacheMetaData::RawHeaderList _ret = self->rawHeaders(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + struct miqt_string* _lv_first_arr = static_cast(malloc(sizeof(struct miqt_string))); + struct miqt_string* _lv_second_arr = static_cast(malloc(sizeof(struct miqt_string))); + QByteArray _lv_first_qb = _lv_ret.first; + struct miqt_string _lv_first_ms; + _lv_first_ms.len = _lv_first_qb.length(); + _lv_first_ms.data = static_cast(malloc(_lv_first_ms.len)); + memcpy(_lv_first_ms.data, _lv_first_qb.data(), _lv_first_ms.len); + _lv_first_arr[0] = _lv_first_ms; + QByteArray _lv_second_qb = _lv_ret.second; + struct miqt_string _lv_second_ms; + _lv_second_ms.len = _lv_second_qb.length(); + _lv_second_ms.data = static_cast(malloc(_lv_second_ms.len)); + memcpy(_lv_second_ms.data, _lv_second_qb.data(), _lv_second_ms.len); + _lv_second_arr[0] = _lv_second_ms; + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + +void QNetworkCacheMetaData_SetRawHeaders(QNetworkCacheMetaData* self, struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ headers) { + QNetworkCacheMetaData::RawHeaderList headers_QList; + headers_QList.reserve(headers.len); + struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ * headers_arr = static_cast(headers.data); + for(size_t i = 0; i < headers.len; ++i) { + QPair headers_arr_i_QPair; + struct miqt_string* headers_arr_i_first_arr = static_cast(headers_arr[i].keys); + struct miqt_string* headers_arr_i_second_arr = static_cast(headers_arr[i].values); + QByteArray headers_arr_i_first_arr_0_QByteArray(headers_arr_i_first_arr[0].data, headers_arr_i_first_arr[0].len); + QByteArray headers_arr_i_second_arr_0_QByteArray(headers_arr_i_second_arr[0].data, headers_arr_i_second_arr[0].len); + headers_arr_i_QPair.first = headers_arr_i_first_arr_0_QByteArray; + headers_arr_i_QPair.second = headers_arr_i_second_arr_0_QByteArray; + headers_QList.push_back(headers_arr_i_QPair); + } + self->setRawHeaders(headers_QList); +} + QDateTime* QNetworkCacheMetaData_LastModified(const QNetworkCacheMetaData* self) { return new QDateTime(self->lastModified()); } @@ -73,7 +124,7 @@ void QNetworkCacheMetaData_SetSaveToDisk(QNetworkCacheMetaData* self, bool allow self->setSaveToDisk(allow); } -struct miqt_map QNetworkCacheMetaData_Attributes(const QNetworkCacheMetaData* self) { +struct miqt_map /* of int to QVariant* */ QNetworkCacheMetaData_Attributes(const QNetworkCacheMetaData* self) { QNetworkCacheMetaData::AttributesMap _ret = self->attributes(); // Convert QMap<> from C++ memory to manually-managed C memory int* _karr = static_cast(malloc(sizeof(int) * _ret.size())); @@ -92,7 +143,7 @@ struct miqt_map QNetworkCacheMetaData_Attributes(const QNetworkCacheMetaData* se return _out; } -void QNetworkCacheMetaData_SetAttributes(QNetworkCacheMetaData* self, struct miqt_map attributes) { +void QNetworkCacheMetaData_SetAttributes(QNetworkCacheMetaData* self, struct miqt_map /* of int to QVariant* */ attributes) { QNetworkCacheMetaData::AttributesMap attributes_QMap; attributes_QMap.reserve(attributes.len); int* attributes_karr = static_cast(attributes.keys); diff --git a/qt6/network/gen_qabstractnetworkcache.go b/qt6/network/gen_qabstractnetworkcache.go index 04573b92..27aeedd0 100644 --- a/qt6/network/gen_qabstractnetworkcache.go +++ b/qt6/network/gen_qabstractnetworkcache.go @@ -86,6 +86,66 @@ func (this *QNetworkCacheMetaData) SetUrl(url *qt6.QUrl) { C.QNetworkCacheMetaData_SetUrl(this.h, (*C.QUrl)(url.UnsafePointer())) } +func (this *QNetworkCacheMetaData) RawHeaders() []struct { + First []byte + Second []byte +} { + var _ma C.struct_miqt_array = C.QNetworkCacheMetaData_RawHeaders(this.h) + _ret := make([]struct { + First []byte + Second []byte + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.values)) + var _lv_first_bytearray C.struct_miqt_string = _lv_First_CArray[0] + _lv_first_ret := C.GoBytes(unsafe.Pointer(_lv_first_bytearray.data), C.int(int64(_lv_first_bytearray.len))) + C.free(unsafe.Pointer(_lv_first_bytearray.data)) + _lv_entry_First := _lv_first_ret + var _lv_second_bytearray C.struct_miqt_string = _lv_Second_CArray[0] + _lv_second_ret := C.GoBytes(unsafe.Pointer(_lv_second_bytearray.data), C.int(int64(_lv_second_bytearray.len))) + C.free(unsafe.Pointer(_lv_second_bytearray.data)) + _lv_entry_Second := _lv_second_ret + _ret[i] = struct { + First []byte + Second []byte + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + +func (this *QNetworkCacheMetaData) SetRawHeaders(headers []struct { + First []byte + Second []byte +}) { + headers_CArray := (*[0xffff]C.struct_miqt_map)(C.malloc(C.size_t(8 * len(headers)))) + defer C.free(unsafe.Pointer(headers_CArray)) + for i := range headers { + headers_i_First_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{}))))) + defer C.free(unsafe.Pointer(headers_i_First_CArray)) + headers_i_Second_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{}))))) + defer C.free(unsafe.Pointer(headers_i_Second_CArray)) + headers_i_First_alias := C.struct_miqt_string{} + headers_i_First_alias.data = (*C.char)(unsafe.Pointer(&headers[i].First[0])) + headers_i_First_alias.len = C.size_t(len(headers[i].First)) + headers_i_First_CArray[0] = headers_i_First_alias + headers_i_Second_alias := C.struct_miqt_string{} + headers_i_Second_alias.data = (*C.char)(unsafe.Pointer(&headers[i].Second[0])) + headers_i_Second_alias.len = C.size_t(len(headers[i].Second)) + headers_i_Second_CArray[0] = headers_i_Second_alias + headers_i_pair := C.struct_miqt_map{ + len: 1, + keys: unsafe.Pointer(headers_i_First_CArray), + values: unsafe.Pointer(headers_i_Second_CArray), + } + headers_CArray[i] = headers_i_pair + } + headers_ma := C.struct_miqt_array{len: C.size_t(len(headers)), data: unsafe.Pointer(headers_CArray)} + C.QNetworkCacheMetaData_SetRawHeaders(this.h, headers_ma) +} + func (this *QNetworkCacheMetaData) LastModified() *qt6.QDateTime { _ret := C.QNetworkCacheMetaData_LastModified(this.h) _goptr := qt6.UnsafeNewQDateTime(unsafe.Pointer(_ret)) diff --git a/qt6/network/gen_qabstractnetworkcache.h b/qt6/network/gen_qabstractnetworkcache.h index 4ccb6225..ef79a374 100644 --- a/qt6/network/gen_qabstractnetworkcache.h +++ b/qt6/network/gen_qabstractnetworkcache.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTNETWORKCACHE_H -#define GEN_QABSTRACTNETWORKCACHE_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QABSTRACTNETWORKCACHE_H +#define MIQT_QT6_NETWORK_GEN_QABSTRACTNETWORKCACHE_H #include #include @@ -40,14 +41,16 @@ bool QNetworkCacheMetaData_OperatorNotEqual(const QNetworkCacheMetaData* self, Q bool QNetworkCacheMetaData_IsValid(const QNetworkCacheMetaData* self); QUrl* QNetworkCacheMetaData_Url(const QNetworkCacheMetaData* self); void QNetworkCacheMetaData_SetUrl(QNetworkCacheMetaData* self, QUrl* url); +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QNetworkCacheMetaData_RawHeaders(const QNetworkCacheMetaData* self); +void QNetworkCacheMetaData_SetRawHeaders(QNetworkCacheMetaData* self, struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ headers); QDateTime* QNetworkCacheMetaData_LastModified(const QNetworkCacheMetaData* self); void QNetworkCacheMetaData_SetLastModified(QNetworkCacheMetaData* self, QDateTime* dateTime); QDateTime* QNetworkCacheMetaData_ExpirationDate(const QNetworkCacheMetaData* self); void QNetworkCacheMetaData_SetExpirationDate(QNetworkCacheMetaData* self, QDateTime* dateTime); bool QNetworkCacheMetaData_SaveToDisk(const QNetworkCacheMetaData* self); void QNetworkCacheMetaData_SetSaveToDisk(QNetworkCacheMetaData* self, bool allow); -struct miqt_map QNetworkCacheMetaData_Attributes(const QNetworkCacheMetaData* self); -void QNetworkCacheMetaData_SetAttributes(QNetworkCacheMetaData* self, struct miqt_map attributes); +struct miqt_map /* of int to QVariant* */ QNetworkCacheMetaData_Attributes(const QNetworkCacheMetaData* self); +void QNetworkCacheMetaData_SetAttributes(QNetworkCacheMetaData* self, struct miqt_map /* of int to QVariant* */ attributes); void QNetworkCacheMetaData_Delete(QNetworkCacheMetaData* self); QMetaObject* QAbstractNetworkCache_MetaObject(const QAbstractNetworkCache* self); diff --git a/qt6/network/gen_qabstractsocket.h b/qt6/network/gen_qabstractsocket.h index 84c3444c..9d985792 100644 --- a/qt6/network/gen_qabstractsocket.h +++ b/qt6/network/gen_qabstractsocket.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTSOCKET_H -#define GEN_QABSTRACTSOCKET_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QABSTRACTSOCKET_H +#define MIQT_QT6_NETWORK_GEN_QABSTRACTSOCKET_H #include #include diff --git a/qt6/network/gen_qauthenticator.cpp b/qt6/network/gen_qauthenticator.cpp index 5429269a..7561038f 100644 --- a/qt6/network/gen_qauthenticator.cpp +++ b/qt6/network/gen_qauthenticator.cpp @@ -81,7 +81,7 @@ QVariant* QAuthenticator_Option(const QAuthenticator* self, struct miqt_string o return new QVariant(self->option(opt_QString)); } -struct miqt_map QAuthenticator_Options(const QAuthenticator* self) { +struct miqt_map /* of struct miqt_string to QVariant* */ QAuthenticator_Options(const QAuthenticator* self) { QVariantHash _ret = self->options(); // Convert QMap<> from C++ memory to manually-managed C memory struct miqt_string* _karr = static_cast(malloc(sizeof(struct miqt_string) * _ret.size())); diff --git a/qt6/network/gen_qauthenticator.h b/qt6/network/gen_qauthenticator.h index 6c9e012c..6ab8f215 100644 --- a/qt6/network/gen_qauthenticator.h +++ b/qt6/network/gen_qauthenticator.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUTHENTICATOR_H -#define GEN_QAUTHENTICATOR_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QAUTHENTICATOR_H +#define MIQT_QT6_NETWORK_GEN_QAUTHENTICATOR_H #include #include @@ -33,7 +34,7 @@ void QAuthenticator_SetPassword(QAuthenticator* self, struct miqt_string passwor struct miqt_string QAuthenticator_Realm(const QAuthenticator* self); void QAuthenticator_SetRealm(QAuthenticator* self, struct miqt_string realm); QVariant* QAuthenticator_Option(const QAuthenticator* self, struct miqt_string opt); -struct miqt_map QAuthenticator_Options(const QAuthenticator* self); +struct miqt_map /* of struct miqt_string to QVariant* */ QAuthenticator_Options(const QAuthenticator* self); void QAuthenticator_SetOption(QAuthenticator* self, struct miqt_string opt, QVariant* value); bool QAuthenticator_IsNull(const QAuthenticator* self); void QAuthenticator_Detach(QAuthenticator* self); diff --git a/qt6/network/gen_qdnslookup.cpp b/qt6/network/gen_qdnslookup.cpp index b5f2f959..218cc3f9 100644 --- a/qt6/network/gen_qdnslookup.cpp +++ b/qt6/network/gen_qdnslookup.cpp @@ -249,7 +249,7 @@ unsigned int QDnsTextRecord_TimeToLive(const QDnsTextRecord* self) { return static_cast(_ret); } -struct miqt_array QDnsTextRecord_Values(const QDnsTextRecord* self) { +struct miqt_array /* of struct miqt_string */ QDnsTextRecord_Values(const QDnsTextRecord* self) { QList _ret = self->values(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -371,7 +371,7 @@ void QDnsLookup_SetNameserver(QDnsLookup* self, QHostAddress* nameserver) { self->setNameserver(*nameserver); } -struct miqt_array QDnsLookup_CanonicalNameRecords(const QDnsLookup* self) { +struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_CanonicalNameRecords(const QDnsLookup* self) { QList _ret = self->canonicalNameRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsDomainNameRecord** _arr = static_cast(malloc(sizeof(QDnsDomainNameRecord*) * _ret.length())); @@ -384,7 +384,7 @@ struct miqt_array QDnsLookup_CanonicalNameRecords(const QDnsLookup* self) { return _out; } -struct miqt_array QDnsLookup_HostAddressRecords(const QDnsLookup* self) { +struct miqt_array /* of QDnsHostAddressRecord* */ QDnsLookup_HostAddressRecords(const QDnsLookup* self) { QList _ret = self->hostAddressRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsHostAddressRecord** _arr = static_cast(malloc(sizeof(QDnsHostAddressRecord*) * _ret.length())); @@ -397,7 +397,7 @@ struct miqt_array QDnsLookup_HostAddressRecords(const QDnsLookup* self) { return _out; } -struct miqt_array QDnsLookup_MailExchangeRecords(const QDnsLookup* self) { +struct miqt_array /* of QDnsMailExchangeRecord* */ QDnsLookup_MailExchangeRecords(const QDnsLookup* self) { QList _ret = self->mailExchangeRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsMailExchangeRecord** _arr = static_cast(malloc(sizeof(QDnsMailExchangeRecord*) * _ret.length())); @@ -410,7 +410,7 @@ struct miqt_array QDnsLookup_MailExchangeRecords(const QDnsLookup* self) { return _out; } -struct miqt_array QDnsLookup_NameServerRecords(const QDnsLookup* self) { +struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_NameServerRecords(const QDnsLookup* self) { QList _ret = self->nameServerRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsDomainNameRecord** _arr = static_cast(malloc(sizeof(QDnsDomainNameRecord*) * _ret.length())); @@ -423,7 +423,7 @@ struct miqt_array QDnsLookup_NameServerRecords(const QDnsLookup* self) { return _out; } -struct miqt_array QDnsLookup_PointerRecords(const QDnsLookup* self) { +struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_PointerRecords(const QDnsLookup* self) { QList _ret = self->pointerRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsDomainNameRecord** _arr = static_cast(malloc(sizeof(QDnsDomainNameRecord*) * _ret.length())); @@ -436,7 +436,7 @@ struct miqt_array QDnsLookup_PointerRecords(const QDnsLookup* self) { return _out; } -struct miqt_array QDnsLookup_ServiceRecords(const QDnsLookup* self) { +struct miqt_array /* of QDnsServiceRecord* */ QDnsLookup_ServiceRecords(const QDnsLookup* self) { QList _ret = self->serviceRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsServiceRecord** _arr = static_cast(malloc(sizeof(QDnsServiceRecord*) * _ret.length())); @@ -449,7 +449,7 @@ struct miqt_array QDnsLookup_ServiceRecords(const QDnsLookup* self) { return _out; } -struct miqt_array QDnsLookup_TextRecords(const QDnsLookup* self) { +struct miqt_array /* of QDnsTextRecord* */ QDnsLookup_TextRecords(const QDnsLookup* self) { QList _ret = self->textRecords(); // Convert QList<> from C++ memory to manually-managed C memory QDnsTextRecord** _arr = static_cast(malloc(sizeof(QDnsTextRecord*) * _ret.length())); diff --git a/qt6/network/gen_qdnslookup.h b/qt6/network/gen_qdnslookup.h index 16f09c51..0dd07822 100644 --- a/qt6/network/gen_qdnslookup.h +++ b/qt6/network/gen_qdnslookup.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDNSLOOKUP_H -#define GEN_QDNSLOOKUP_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QDNSLOOKUP_H +#define MIQT_QT6_NETWORK_GEN_QDNSLOOKUP_H #include #include @@ -83,7 +84,7 @@ void QDnsTextRecord_OperatorAssign(QDnsTextRecord* self, QDnsTextRecord* other); void QDnsTextRecord_Swap(QDnsTextRecord* self, QDnsTextRecord* other); struct miqt_string QDnsTextRecord_Name(const QDnsTextRecord* self); unsigned int QDnsTextRecord_TimeToLive(const QDnsTextRecord* self); -struct miqt_array QDnsTextRecord_Values(const QDnsTextRecord* self); +struct miqt_array /* of struct miqt_string */ QDnsTextRecord_Values(const QDnsTextRecord* self); void QDnsTextRecord_Delete(QDnsTextRecord* self); QDnsLookup* QDnsLookup_new(); @@ -104,13 +105,13 @@ int QDnsLookup_Type(const QDnsLookup* self); void QDnsLookup_SetType(QDnsLookup* self, int typeVal); QHostAddress* QDnsLookup_Nameserver(const QDnsLookup* self); void QDnsLookup_SetNameserver(QDnsLookup* self, QHostAddress* nameserver); -struct miqt_array QDnsLookup_CanonicalNameRecords(const QDnsLookup* self); -struct miqt_array QDnsLookup_HostAddressRecords(const QDnsLookup* self); -struct miqt_array QDnsLookup_MailExchangeRecords(const QDnsLookup* self); -struct miqt_array QDnsLookup_NameServerRecords(const QDnsLookup* self); -struct miqt_array QDnsLookup_PointerRecords(const QDnsLookup* self); -struct miqt_array QDnsLookup_ServiceRecords(const QDnsLookup* self); -struct miqt_array QDnsLookup_TextRecords(const QDnsLookup* self); +struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_CanonicalNameRecords(const QDnsLookup* self); +struct miqt_array /* of QDnsHostAddressRecord* */ QDnsLookup_HostAddressRecords(const QDnsLookup* self); +struct miqt_array /* of QDnsMailExchangeRecord* */ QDnsLookup_MailExchangeRecords(const QDnsLookup* self); +struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_NameServerRecords(const QDnsLookup* self); +struct miqt_array /* of QDnsDomainNameRecord* */ QDnsLookup_PointerRecords(const QDnsLookup* self); +struct miqt_array /* of QDnsServiceRecord* */ QDnsLookup_ServiceRecords(const QDnsLookup* self); +struct miqt_array /* of QDnsTextRecord* */ QDnsLookup_TextRecords(const QDnsLookup* self); void QDnsLookup_Abort(QDnsLookup* self); void QDnsLookup_Lookup(QDnsLookup* self); void QDnsLookup_Finished(QDnsLookup* self); diff --git a/qt6/network/gen_qdtls.cpp b/qt6/network/gen_qdtls.cpp index af5a50c8..2921ac04 100644 --- a/qt6/network/gen_qdtls.cpp +++ b/qt6/network/gen_qdtls.cpp @@ -265,7 +265,7 @@ struct miqt_string QDtls_DtlsErrorString(const QDtls* self) { return _ms; } -struct miqt_array QDtls_PeerVerificationErrors(const QDtls* self) { +struct miqt_array /* of QSslError* */ QDtls_PeerVerificationErrors(const QDtls* self) { QList _ret = self->peerVerificationErrors(); // Convert QList<> from C++ memory to manually-managed C memory QSslError** _arr = static_cast(malloc(sizeof(QSslError*) * _ret.length())); @@ -278,7 +278,7 @@ struct miqt_array QDtls_PeerVerificationErrors(const QDtls* self) { return _out; } -void QDtls_IgnoreVerificationErrors(QDtls* self, struct miqt_array /* of QSslError* */ errorsToIgnore) { +void QDtls_IgnoreVerificationErrors(QDtls* self, struct miqt_array /* of QSslError* */ errorsToIgnore) { QList errorsToIgnore_QList; errorsToIgnore_QList.reserve(errorsToIgnore.len); QSslError** errorsToIgnore_arr = static_cast(errorsToIgnore.data); diff --git a/qt6/network/gen_qdtls.h b/qt6/network/gen_qdtls.h index 77ea5f74..35ccb24c 100644 --- a/qt6/network/gen_qdtls.h +++ b/qt6/network/gen_qdtls.h @@ -1,5 +1,6 @@ -#ifndef GEN_QDTLS_H -#define GEN_QDTLS_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QDTLS_H +#define MIQT_QT6_NETWORK_GEN_QDTLS_H #include #include @@ -90,8 +91,8 @@ long long QDtls_WriteDatagramEncrypted(QDtls* self, QUdpSocket* socket, struct m struct miqt_string QDtls_DecryptDatagram(QDtls* self, QUdpSocket* socket, struct miqt_string dgram); unsigned char QDtls_DtlsError(const QDtls* self); struct miqt_string QDtls_DtlsErrorString(const QDtls* self); -struct miqt_array QDtls_PeerVerificationErrors(const QDtls* self); -void QDtls_IgnoreVerificationErrors(QDtls* self, struct miqt_array /* of QSslError* */ errorsToIgnore); +struct miqt_array /* of QSslError* */ QDtls_PeerVerificationErrors(const QDtls* self); +void QDtls_IgnoreVerificationErrors(QDtls* self, struct miqt_array /* of QSslError* */ errorsToIgnore); void QDtls_PskRequired(QDtls* self, QSslPreSharedKeyAuthenticator* authenticator); void QDtls_connect_PskRequired(QDtls* self, intptr_t slot); void QDtls_HandshakeTimeout(QDtls* self); diff --git a/qt6/network/gen_qhostaddress.cpp b/qt6/network/gen_qhostaddress.cpp index 9fb5d015..ae870dd4 100644 --- a/qt6/network/gen_qhostaddress.cpp +++ b/qt6/network/gen_qhostaddress.cpp @@ -151,6 +151,15 @@ bool QHostAddress_IsInSubnet(const QHostAddress* self, QHostAddress* subnet, int return self->isInSubnet(*subnet, static_cast(netmask)); } +bool QHostAddress_IsInSubnetWithSubnet(const QHostAddress* self, struct miqt_map /* tuple of QHostAddress* and int */ subnet) { + QPair subnet_QPair; + QHostAddress** subnet_first_arr = static_cast(subnet.keys); + int* subnet_second_arr = static_cast(subnet.values); + subnet_QPair.first = *(subnet_first_arr[0]); + subnet_QPair.second = static_cast(subnet_second_arr[0]); + return self->isInSubnet(subnet_QPair); +} + bool QHostAddress_IsLoopback(const QHostAddress* self) { return self->isLoopback(); } @@ -179,6 +188,21 @@ bool QHostAddress_IsBroadcast(const QHostAddress* self) { return self->isBroadcast(); } +struct miqt_map /* tuple of QHostAddress* and int */ QHostAddress_ParseSubnet(struct miqt_string subnet) { + QString subnet_QString = QString::fromUtf8(subnet.data, subnet.len); + QPair _ret = QHostAddress::parseSubnet(subnet_QString); + // Convert QPair<> from C++ memory to manually-managed C memory + QHostAddress** _first_arr = static_cast(malloc(sizeof(QHostAddress*))); + int* _second_arr = static_cast(malloc(sizeof(int))); + _first_arr[0] = new QHostAddress(_ret.first); + _second_arr[0] = _ret.second; + struct miqt_map _out; + _out.len = 1; + _out.keys = static_cast(_first_arr); + _out.values = static_cast(_second_arr); + return _out; +} + unsigned int QHostAddress_ToIPv4Address1(const QHostAddress* self, bool* ok) { quint32 _ret = self->toIPv4Address(ok); return static_cast(_ret); diff --git a/qt6/network/gen_qhostaddress.go b/qt6/network/gen_qhostaddress.go index 2d544839..e2f5cbcb 100644 --- a/qt6/network/gen_qhostaddress.go +++ b/qt6/network/gen_qhostaddress.go @@ -263,6 +263,24 @@ func (this *QHostAddress) IsInSubnet(subnet *QHostAddress, netmask int) bool { return (bool)(C.QHostAddress_IsInSubnet(this.h, subnet.cPointer(), (C.int)(netmask))) } +func (this *QHostAddress) IsInSubnetWithSubnet(subnet struct { + First QHostAddress + Second int +}) bool { + subnet_First_CArray := (*[0xffff]*C.QHostAddress)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(subnet_First_CArray)) + subnet_Second_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8))) + defer C.free(unsafe.Pointer(subnet_Second_CArray)) + subnet_First_CArray[0] = subnet.First.cPointer() + subnet_Second_CArray[0] = (C.int)(subnet.Second) + subnet_pair := C.struct_miqt_map{ + len: 1, + keys: unsafe.Pointer(subnet_First_CArray), + values: unsafe.Pointer(subnet_Second_CArray), + } + return (bool)(C.QHostAddress_IsInSubnetWithSubnet(this.h, subnet_pair)) +} + func (this *QHostAddress) IsLoopback() bool { return (bool)(C.QHostAddress_IsLoopback(this.h)) } @@ -291,6 +309,30 @@ func (this *QHostAddress) IsBroadcast() bool { return (bool)(C.QHostAddress_IsBroadcast(this.h)) } +func QHostAddress_ParseSubnet(subnet string) struct { + First QHostAddress + Second int +} { + subnet_ms := C.struct_miqt_string{} + subnet_ms.data = C.CString(subnet) + subnet_ms.len = C.size_t(len(subnet)) + defer C.free(unsafe.Pointer(subnet_ms.data)) + var _mm C.struct_miqt_map = C.QHostAddress_ParseSubnet(subnet_ms) + _First_CArray := (*[0xffff]*C.QHostAddress)(unsafe.Pointer(_mm.keys)) + _Second_CArray := (*[0xffff]C.int)(unsafe.Pointer(_mm.values)) + _first_ret := _First_CArray[0] + _first_goptr := newQHostAddress(_first_ret) + _first_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + _entry_First := *_first_goptr + + _entry_Second := (int)(_Second_CArray[0]) + + return struct { + First QHostAddress + Second int + }{First: _entry_First, Second: _entry_Second} +} + func (this *QHostAddress) ToIPv4Address1(ok *bool) uint { return (uint)(C.QHostAddress_ToIPv4Address1(this.h, (*C.bool)(unsafe.Pointer(ok)))) } diff --git a/qt6/network/gen_qhostaddress.h b/qt6/network/gen_qhostaddress.h index 04190839..ae92b56c 100644 --- a/qt6/network/gen_qhostaddress.h +++ b/qt6/network/gen_qhostaddress.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHOSTADDRESS_H -#define GEN_QHOSTADDRESS_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QHOSTADDRESS_H +#define MIQT_QT6_NETWORK_GEN_QHOSTADDRESS_H #include #include @@ -53,6 +54,7 @@ bool QHostAddress_OperatorNotEqualWithAddress(const QHostAddress* self, int addr bool QHostAddress_IsNull(const QHostAddress* self); void QHostAddress_Clear(QHostAddress* self); bool QHostAddress_IsInSubnet(const QHostAddress* self, QHostAddress* subnet, int netmask); +bool QHostAddress_IsInSubnetWithSubnet(const QHostAddress* self, struct miqt_map /* tuple of QHostAddress* and int */ subnet); bool QHostAddress_IsLoopback(const QHostAddress* self); bool QHostAddress_IsGlobal(const QHostAddress* self); bool QHostAddress_IsLinkLocal(const QHostAddress* self); @@ -60,6 +62,7 @@ bool QHostAddress_IsSiteLocal(const QHostAddress* self); bool QHostAddress_IsUniqueLocalUnicast(const QHostAddress* self); bool QHostAddress_IsMulticast(const QHostAddress* self); bool QHostAddress_IsBroadcast(const QHostAddress* self); +struct miqt_map /* tuple of QHostAddress* and int */ QHostAddress_ParseSubnet(struct miqt_string subnet); unsigned int QHostAddress_ToIPv4Address1(const QHostAddress* self, bool* ok); bool QHostAddress_IsEqual2(const QHostAddress* self, QHostAddress* address, int mode); void QHostAddress_Delete(QHostAddress* self); diff --git a/qt6/network/gen_qhostinfo.cpp b/qt6/network/gen_qhostinfo.cpp index 7b5a390c..428a71ba 100644 --- a/qt6/network/gen_qhostinfo.cpp +++ b/qt6/network/gen_qhostinfo.cpp @@ -44,7 +44,7 @@ void QHostInfo_SetHostName(QHostInfo* self, struct miqt_string name) { self->setHostName(name_QString); } -struct miqt_array QHostInfo_Addresses(const QHostInfo* self) { +struct miqt_array /* of QHostAddress* */ QHostInfo_Addresses(const QHostInfo* self) { QList _ret = self->addresses(); // Convert QList<> from C++ memory to manually-managed C memory QHostAddress** _arr = static_cast(malloc(sizeof(QHostAddress*) * _ret.length())); @@ -57,7 +57,7 @@ struct miqt_array QHostInfo_Addresses(const QHostInfo* self) { return _out; } -void QHostInfo_SetAddresses(QHostInfo* self, struct miqt_array /* of QHostAddress* */ addresses) { +void QHostInfo_SetAddresses(QHostInfo* self, struct miqt_array /* of QHostAddress* */ addresses) { QList addresses_QList; addresses_QList.reserve(addresses.len); QHostAddress** addresses_arr = static_cast(addresses.data); diff --git a/qt6/network/gen_qhostinfo.h b/qt6/network/gen_qhostinfo.h index 48de0784..a7faea88 100644 --- a/qt6/network/gen_qhostinfo.h +++ b/qt6/network/gen_qhostinfo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHOSTINFO_H -#define GEN_QHOSTINFO_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QHOSTINFO_H +#define MIQT_QT6_NETWORK_GEN_QHOSTINFO_H #include #include @@ -28,8 +29,8 @@ void QHostInfo_OperatorAssign(QHostInfo* self, QHostInfo* d); void QHostInfo_Swap(QHostInfo* self, QHostInfo* other); struct miqt_string QHostInfo_HostName(const QHostInfo* self); void QHostInfo_SetHostName(QHostInfo* self, struct miqt_string name); -struct miqt_array QHostInfo_Addresses(const QHostInfo* self); -void QHostInfo_SetAddresses(QHostInfo* self, struct miqt_array /* of QHostAddress* */ addresses); +struct miqt_array /* of QHostAddress* */ QHostInfo_Addresses(const QHostInfo* self); +void QHostInfo_SetAddresses(QHostInfo* self, struct miqt_array /* of QHostAddress* */ addresses); int QHostInfo_Error(const QHostInfo* self); void QHostInfo_SetError(QHostInfo* self, int error); struct miqt_string QHostInfo_ErrorString(const QHostInfo* self); diff --git a/qt6/network/gen_qhstspolicy.h b/qt6/network/gen_qhstspolicy.h index 9ef8b3a9..cf726548 100644 --- a/qt6/network/gen_qhstspolicy.h +++ b/qt6/network/gen_qhstspolicy.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHSTSPOLICY_H -#define GEN_QHSTSPOLICY_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QHSTSPOLICY_H +#define MIQT_QT6_NETWORK_GEN_QHSTSPOLICY_H #include #include diff --git a/qt6/network/gen_qhttp2configuration.h b/qt6/network/gen_qhttp2configuration.h index 47253732..77f417e7 100644 --- a/qt6/network/gen_qhttp2configuration.h +++ b/qt6/network/gen_qhttp2configuration.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHTTP2CONFIGURATION_H -#define GEN_QHTTP2CONFIGURATION_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QHTTP2CONFIGURATION_H +#define MIQT_QT6_NETWORK_GEN_QHTTP2CONFIGURATION_H #include #include diff --git a/qt6/network/gen_qhttpmultipart.h b/qt6/network/gen_qhttpmultipart.h index 4f807cb6..261dcdb4 100644 --- a/qt6/network/gen_qhttpmultipart.h +++ b/qt6/network/gen_qhttpmultipart.h @@ -1,5 +1,6 @@ -#ifndef GEN_QHTTPMULTIPART_H -#define GEN_QHTTPMULTIPART_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QHTTPMULTIPART_H +#define MIQT_QT6_NETWORK_GEN_QHTTPMULTIPART_H #include #include diff --git a/qt6/network/gen_qlocalserver.h b/qt6/network/gen_qlocalserver.h index ac915c08..52c855ce 100644 --- a/qt6/network/gen_qlocalserver.h +++ b/qt6/network/gen_qlocalserver.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLOCALSERVER_H -#define GEN_QLOCALSERVER_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QLOCALSERVER_H +#define MIQT_QT6_NETWORK_GEN_QLOCALSERVER_H #include #include diff --git a/qt6/network/gen_qlocalsocket.h b/qt6/network/gen_qlocalsocket.h index 43b468cb..2dce947f 100644 --- a/qt6/network/gen_qlocalsocket.h +++ b/qt6/network/gen_qlocalsocket.h @@ -1,5 +1,6 @@ -#ifndef GEN_QLOCALSOCKET_H -#define GEN_QLOCALSOCKET_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QLOCALSOCKET_H +#define MIQT_QT6_NETWORK_GEN_QLOCALSOCKET_H #include #include diff --git a/qt6/network/gen_qnetworkaccessmanager.cpp b/qt6/network/gen_qnetworkaccessmanager.cpp index 0f2f6bff..04223898 100644 --- a/qt6/network/gen_qnetworkaccessmanager.cpp +++ b/qt6/network/gen_qnetworkaccessmanager.cpp @@ -50,7 +50,7 @@ struct miqt_string QNetworkAccessManager_Tr(const char* s) { return _ms; } -struct miqt_array QNetworkAccessManager_SupportedSchemes(const QNetworkAccessManager* self) { +struct miqt_array /* of struct miqt_string */ QNetworkAccessManager_SupportedSchemes(const QNetworkAccessManager* self) { QStringList _ret = self->supportedSchemes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -126,7 +126,7 @@ bool QNetworkAccessManager_IsStrictTransportSecurityStoreEnabled(const QNetworkA return self->isStrictTransportSecurityStoreEnabled(); } -void QNetworkAccessManager_AddStrictTransportSecurityHosts(QNetworkAccessManager* self, struct miqt_array /* of QHstsPolicy* */ knownHosts) { +void QNetworkAccessManager_AddStrictTransportSecurityHosts(QNetworkAccessManager* self, struct miqt_array /* of QHstsPolicy* */ knownHosts) { QList knownHosts_QList; knownHosts_QList.reserve(knownHosts.len); QHstsPolicy** knownHosts_arr = static_cast(knownHosts.data); @@ -136,7 +136,7 @@ void QNetworkAccessManager_AddStrictTransportSecurityHosts(QNetworkAccessManager self->addStrictTransportSecurityHosts(knownHosts_QList); } -struct miqt_array QNetworkAccessManager_StrictTransportSecurityHosts(const QNetworkAccessManager* self) { +struct miqt_array /* of QHstsPolicy* */ QNetworkAccessManager_StrictTransportSecurityHosts(const QNetworkAccessManager* self) { QList _ret = self->strictTransportSecurityHosts(); // Convert QList<> from C++ memory to manually-managed C memory QHstsPolicy** _arr = static_cast(malloc(sizeof(QHstsPolicy*) * _ret.length())); @@ -292,7 +292,7 @@ void QNetworkAccessManager_connect_Encrypted(QNetworkAccessManager* self, intptr }); } -void QNetworkAccessManager_SslErrors(QNetworkAccessManager* self, QNetworkReply* reply, struct miqt_array /* of QSslError* */ errors) { +void QNetworkAccessManager_SslErrors(QNetworkAccessManager* self, QNetworkReply* reply, struct miqt_array /* of QSslError* */ errors) { QList errors_QList; errors_QList.reserve(errors.len); QSslError** errors_arr = static_cast(errors.data); @@ -314,7 +314,7 @@ void QNetworkAccessManager_connect_SslErrors(QNetworkAccessManager* self, intptr struct miqt_array errors_out; errors_out.len = errors_ret.length(); errors_out.data = static_cast(errors_arr); - struct miqt_array sigval2 = errors_out; + struct miqt_array /* of QSslError* */ sigval2 = errors_out; miqt_exec_callback_QNetworkAccessManager_SslErrors(slot, sigval1, sigval2); }); } diff --git a/qt6/network/gen_qnetworkaccessmanager.h b/qt6/network/gen_qnetworkaccessmanager.h index e6284c67..55cd22e3 100644 --- a/qt6/network/gen_qnetworkaccessmanager.h +++ b/qt6/network/gen_qnetworkaccessmanager.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKACCESSMANAGER_H -#define GEN_QNETWORKACCESSMANAGER_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QNETWORKACCESSMANAGER_H +#define MIQT_QT6_NETWORK_GEN_QNETWORKACCESSMANAGER_H #include #include @@ -56,7 +57,7 @@ QNetworkAccessManager* QNetworkAccessManager_new2(QObject* parent); QMetaObject* QNetworkAccessManager_MetaObject(const QNetworkAccessManager* self); void* QNetworkAccessManager_Metacast(QNetworkAccessManager* self, const char* param1); struct miqt_string QNetworkAccessManager_Tr(const char* s); -struct miqt_array QNetworkAccessManager_SupportedSchemes(const QNetworkAccessManager* self); +struct miqt_array /* of struct miqt_string */ QNetworkAccessManager_SupportedSchemes(const QNetworkAccessManager* self); void QNetworkAccessManager_ClearAccessCache(QNetworkAccessManager* self); void QNetworkAccessManager_ClearConnectionCache(QNetworkAccessManager* self); QNetworkProxy* QNetworkAccessManager_Proxy(const QNetworkAccessManager* self); @@ -71,8 +72,8 @@ void QNetworkAccessManager_SetStrictTransportSecurityEnabled(QNetworkAccessManag bool QNetworkAccessManager_IsStrictTransportSecurityEnabled(const QNetworkAccessManager* self); void QNetworkAccessManager_EnableStrictTransportSecurityStore(QNetworkAccessManager* self, bool enabled); bool QNetworkAccessManager_IsStrictTransportSecurityStoreEnabled(const QNetworkAccessManager* self); -void QNetworkAccessManager_AddStrictTransportSecurityHosts(QNetworkAccessManager* self, struct miqt_array /* of QHstsPolicy* */ knownHosts); -struct miqt_array QNetworkAccessManager_StrictTransportSecurityHosts(const QNetworkAccessManager* self); +void QNetworkAccessManager_AddStrictTransportSecurityHosts(QNetworkAccessManager* self, struct miqt_array /* of QHstsPolicy* */ knownHosts); +struct miqt_array /* of QHstsPolicy* */ QNetworkAccessManager_StrictTransportSecurityHosts(const QNetworkAccessManager* self); QNetworkReply* QNetworkAccessManager_Head(QNetworkAccessManager* self, QNetworkRequest* request); QNetworkReply* QNetworkAccessManager_Get(QNetworkAccessManager* self, QNetworkRequest* request); QNetworkReply* QNetworkAccessManager_Post(QNetworkAccessManager* self, QNetworkRequest* request, QIODevice* data); @@ -102,7 +103,7 @@ void QNetworkAccessManager_Finished(QNetworkAccessManager* self, QNetworkReply* void QNetworkAccessManager_connect_Finished(QNetworkAccessManager* self, intptr_t slot); void QNetworkAccessManager_Encrypted(QNetworkAccessManager* self, QNetworkReply* reply); void QNetworkAccessManager_connect_Encrypted(QNetworkAccessManager* self, intptr_t slot); -void QNetworkAccessManager_SslErrors(QNetworkAccessManager* self, QNetworkReply* reply, struct miqt_array /* of QSslError* */ errors); +void QNetworkAccessManager_SslErrors(QNetworkAccessManager* self, QNetworkReply* reply, struct miqt_array /* of QSslError* */ errors); void QNetworkAccessManager_connect_SslErrors(QNetworkAccessManager* self, intptr_t slot); void QNetworkAccessManager_PreSharedKeyAuthenticationRequired(QNetworkAccessManager* self, QNetworkReply* reply, QSslPreSharedKeyAuthenticator* authenticator); void QNetworkAccessManager_connect_PreSharedKeyAuthenticationRequired(QNetworkAccessManager* self, intptr_t slot); diff --git a/qt6/network/gen_qnetworkcookie.cpp b/qt6/network/gen_qnetworkcookie.cpp index 42a61e8f..0b1e49fe 100644 --- a/qt6/network/gen_qnetworkcookie.cpp +++ b/qt6/network/gen_qnetworkcookie.cpp @@ -159,7 +159,7 @@ void QNetworkCookie_Normalize(QNetworkCookie* self, QUrl* url) { self->normalize(*url); } -struct miqt_array QNetworkCookie_ParseCookies(struct miqt_string cookieString) { +struct miqt_array /* of QNetworkCookie* */ QNetworkCookie_ParseCookies(struct miqt_string cookieString) { QByteArray cookieString_QByteArray(cookieString.data, cookieString.len); QList _ret = QNetworkCookie::parseCookies(cookieString_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt6/network/gen_qnetworkcookie.h b/qt6/network/gen_qnetworkcookie.h index 3a7ff848..4f5f142f 100644 --- a/qt6/network/gen_qnetworkcookie.h +++ b/qt6/network/gen_qnetworkcookie.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKCOOKIE_H -#define GEN_QNETWORKCOOKIE_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QNETWORKCOOKIE_H +#define MIQT_QT6_NETWORK_GEN_QNETWORKCOOKIE_H #include #include @@ -53,7 +54,7 @@ void QNetworkCookie_SetValue(QNetworkCookie* self, struct miqt_string value); struct miqt_string QNetworkCookie_ToRawForm(const QNetworkCookie* self); bool QNetworkCookie_HasSameIdentifier(const QNetworkCookie* self, QNetworkCookie* other); void QNetworkCookie_Normalize(QNetworkCookie* self, QUrl* url); -struct miqt_array QNetworkCookie_ParseCookies(struct miqt_string cookieString); +struct miqt_array /* of QNetworkCookie* */ QNetworkCookie_ParseCookies(struct miqt_string cookieString); struct miqt_string QNetworkCookie_ToRawForm1(const QNetworkCookie* self, int form); void QNetworkCookie_Delete(QNetworkCookie* self); diff --git a/qt6/network/gen_qnetworkcookiejar.cpp b/qt6/network/gen_qnetworkcookiejar.cpp index fab09f03..43051753 100644 --- a/qt6/network/gen_qnetworkcookiejar.cpp +++ b/qt6/network/gen_qnetworkcookiejar.cpp @@ -38,7 +38,7 @@ struct miqt_string QNetworkCookieJar_Tr(const char* s) { return _ms; } -struct miqt_array QNetworkCookieJar_CookiesForUrl(const QNetworkCookieJar* self, QUrl* url) { +struct miqt_array /* of QNetworkCookie* */ QNetworkCookieJar_CookiesForUrl(const QNetworkCookieJar* self, QUrl* url) { QList _ret = self->cookiesForUrl(*url); // Convert QList<> from C++ memory to manually-managed C memory QNetworkCookie** _arr = static_cast(malloc(sizeof(QNetworkCookie*) * _ret.length())); @@ -51,7 +51,7 @@ struct miqt_array QNetworkCookieJar_CookiesForUrl(const QNetworkCookieJar* self, return _out; } -bool QNetworkCookieJar_SetCookiesFromUrl(QNetworkCookieJar* self, struct miqt_array /* of QNetworkCookie* */ cookieList, QUrl* url) { +bool QNetworkCookieJar_SetCookiesFromUrl(QNetworkCookieJar* self, struct miqt_array /* of QNetworkCookie* */ cookieList, QUrl* url) { QList cookieList_QList; cookieList_QList.reserve(cookieList.len); QNetworkCookie** cookieList_arr = static_cast(cookieList.data); diff --git a/qt6/network/gen_qnetworkcookiejar.h b/qt6/network/gen_qnetworkcookiejar.h index a9d8060a..90b5eabb 100644 --- a/qt6/network/gen_qnetworkcookiejar.h +++ b/qt6/network/gen_qnetworkcookiejar.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKCOOKIEJAR_H -#define GEN_QNETWORKCOOKIEJAR_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QNETWORKCOOKIEJAR_H +#define MIQT_QT6_NETWORK_GEN_QNETWORKCOOKIEJAR_H #include #include @@ -32,8 +33,8 @@ QNetworkCookieJar* QNetworkCookieJar_new2(QObject* parent); QMetaObject* QNetworkCookieJar_MetaObject(const QNetworkCookieJar* self); void* QNetworkCookieJar_Metacast(QNetworkCookieJar* self, const char* param1); struct miqt_string QNetworkCookieJar_Tr(const char* s); -struct miqt_array QNetworkCookieJar_CookiesForUrl(const QNetworkCookieJar* self, QUrl* url); -bool QNetworkCookieJar_SetCookiesFromUrl(QNetworkCookieJar* self, struct miqt_array /* of QNetworkCookie* */ cookieList, QUrl* url); +struct miqt_array /* of QNetworkCookie* */ QNetworkCookieJar_CookiesForUrl(const QNetworkCookieJar* self, QUrl* url); +bool QNetworkCookieJar_SetCookiesFromUrl(QNetworkCookieJar* self, struct miqt_array /* of QNetworkCookie* */ cookieList, QUrl* url); bool QNetworkCookieJar_InsertCookie(QNetworkCookieJar* self, QNetworkCookie* cookie); bool QNetworkCookieJar_UpdateCookie(QNetworkCookieJar* self, QNetworkCookie* cookie); bool QNetworkCookieJar_DeleteCookie(QNetworkCookieJar* self, QNetworkCookie* cookie); diff --git a/qt6/network/gen_qnetworkdatagram.h b/qt6/network/gen_qnetworkdatagram.h index a2c65f34..d909a8c2 100644 --- a/qt6/network/gen_qnetworkdatagram.h +++ b/qt6/network/gen_qnetworkdatagram.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKDATAGRAM_H -#define GEN_QNETWORKDATAGRAM_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QNETWORKDATAGRAM_H +#define MIQT_QT6_NETWORK_GEN_QNETWORKDATAGRAM_H #include #include diff --git a/qt6/network/gen_qnetworkdiskcache.h b/qt6/network/gen_qnetworkdiskcache.h index 33598ae8..e3ee1250 100644 --- a/qt6/network/gen_qnetworkdiskcache.h +++ b/qt6/network/gen_qnetworkdiskcache.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKDISKCACHE_H -#define GEN_QNETWORKDISKCACHE_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QNETWORKDISKCACHE_H +#define MIQT_QT6_NETWORK_GEN_QNETWORKDISKCACHE_H #include #include diff --git a/qt6/network/gen_qnetworkinformation.cpp b/qt6/network/gen_qnetworkinformation.cpp index 383defc7..7d10be81 100644 --- a/qt6/network/gen_qnetworkinformation.cpp +++ b/qt6/network/gen_qnetworkinformation.cpp @@ -77,7 +77,7 @@ bool QNetworkInformation_LoadWithFeatures(int features) { return QNetworkInformation::load(static_cast(features)); } -struct miqt_array QNetworkInformation_AvailableBackends() { +struct miqt_array /* of struct miqt_string */ QNetworkInformation_AvailableBackends() { QStringList _ret = QNetworkInformation::availableBackends(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/network/gen_qnetworkinformation.h b/qt6/network/gen_qnetworkinformation.h index ee55b2cd..67c6527b 100644 --- a/qt6/network/gen_qnetworkinformation.h +++ b/qt6/network/gen_qnetworkinformation.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKINFORMATION_H -#define GEN_QNETWORKINFORMATION_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QNETWORKINFORMATION_H +#define MIQT_QT6_NETWORK_GEN_QNETWORKINFORMATION_H #include #include @@ -34,7 +35,7 @@ int QNetworkInformation_SupportedFeatures(const QNetworkInformation* self); bool QNetworkInformation_LoadDefaultBackend(); bool QNetworkInformation_LoadBackendByFeatures(int features); bool QNetworkInformation_LoadWithFeatures(int features); -struct miqt_array QNetworkInformation_AvailableBackends(); +struct miqt_array /* of struct miqt_string */ QNetworkInformation_AvailableBackends(); QNetworkInformation* QNetworkInformation_Instance(); void QNetworkInformation_ReachabilityChanged(QNetworkInformation* self, int newReachability); void QNetworkInformation_connect_ReachabilityChanged(QNetworkInformation* self, intptr_t slot); diff --git a/qt6/network/gen_qnetworkinterface.cpp b/qt6/network/gen_qnetworkinterface.cpp index 1cb80e3f..66734515 100644 --- a/qt6/network/gen_qnetworkinterface.cpp +++ b/qt6/network/gen_qnetworkinterface.cpp @@ -178,7 +178,7 @@ struct miqt_string QNetworkInterface_HardwareAddress(const QNetworkInterface* se return _ms; } -struct miqt_array QNetworkInterface_AddressEntries(const QNetworkInterface* self) { +struct miqt_array /* of QNetworkAddressEntry* */ QNetworkInterface_AddressEntries(const QNetworkInterface* self) { QList _ret = self->addressEntries(); // Convert QList<> from C++ memory to manually-managed C memory QNetworkAddressEntry** _arr = static_cast(malloc(sizeof(QNetworkAddressEntry*) * _ret.length())); @@ -216,7 +216,7 @@ struct miqt_string QNetworkInterface_InterfaceNameFromIndex(int index) { return _ms; } -struct miqt_array QNetworkInterface_AllInterfaces() { +struct miqt_array /* of QNetworkInterface* */ QNetworkInterface_AllInterfaces() { QList _ret = QNetworkInterface::allInterfaces(); // Convert QList<> from C++ memory to manually-managed C memory QNetworkInterface** _arr = static_cast(malloc(sizeof(QNetworkInterface*) * _ret.length())); @@ -229,7 +229,7 @@ struct miqt_array QNetworkInterface_AllInterfaces() { return _out; } -struct miqt_array QNetworkInterface_AllAddresses() { +struct miqt_array /* of QHostAddress* */ QNetworkInterface_AllAddresses() { QList _ret = QNetworkInterface::allAddresses(); // Convert QList<> from C++ memory to manually-managed C memory QHostAddress** _arr = static_cast(malloc(sizeof(QHostAddress*) * _ret.length())); diff --git a/qt6/network/gen_qnetworkinterface.h b/qt6/network/gen_qnetworkinterface.h index dab8810c..fe35f360 100644 --- a/qt6/network/gen_qnetworkinterface.h +++ b/qt6/network/gen_qnetworkinterface.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKINTERFACE_H -#define GEN_QNETWORKINTERFACE_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QNETWORKINTERFACE_H +#define MIQT_QT6_NETWORK_GEN_QNETWORKINTERFACE_H #include #include @@ -62,13 +63,13 @@ struct miqt_string QNetworkInterface_HumanReadableName(const QNetworkInterface* int QNetworkInterface_Flags(const QNetworkInterface* self); int QNetworkInterface_Type(const QNetworkInterface* self); struct miqt_string QNetworkInterface_HardwareAddress(const QNetworkInterface* self); -struct miqt_array QNetworkInterface_AddressEntries(const QNetworkInterface* self); +struct miqt_array /* of QNetworkAddressEntry* */ QNetworkInterface_AddressEntries(const QNetworkInterface* self); int QNetworkInterface_InterfaceIndexFromName(struct miqt_string name); QNetworkInterface* QNetworkInterface_InterfaceFromName(struct miqt_string name); QNetworkInterface* QNetworkInterface_InterfaceFromIndex(int index); struct miqt_string QNetworkInterface_InterfaceNameFromIndex(int index); -struct miqt_array QNetworkInterface_AllInterfaces(); -struct miqt_array QNetworkInterface_AllAddresses(); +struct miqt_array /* of QNetworkInterface* */ QNetworkInterface_AllInterfaces(); +struct miqt_array /* of QHostAddress* */ QNetworkInterface_AllAddresses(); void QNetworkInterface_Delete(QNetworkInterface* self); #ifdef __cplusplus diff --git a/qt6/network/gen_qnetworkproxy.cpp b/qt6/network/gen_qnetworkproxy.cpp index 52e48e7c..a52c2ceb 100644 --- a/qt6/network/gen_qnetworkproxy.cpp +++ b/qt6/network/gen_qnetworkproxy.cpp @@ -299,7 +299,7 @@ bool QNetworkProxy_HasRawHeader(const QNetworkProxy* self, struct miqt_string he return self->hasRawHeader(headerName_QByteArray); } -struct miqt_array QNetworkProxy_RawHeaderList(const QNetworkProxy* self) { +struct miqt_array /* of struct miqt_string */ QNetworkProxy_RawHeaderList(const QNetworkProxy* self) { QList _ret = self->rawHeaderList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -337,7 +337,7 @@ void QNetworkProxy_Delete(QNetworkProxy* self) { delete self; } -struct miqt_array QNetworkProxyFactory_QueryProxy(QNetworkProxyFactory* self) { +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_QueryProxy(QNetworkProxyFactory* self) { QList _ret = self->queryProxy(); // Convert QList<> from C++ memory to manually-managed C memory QNetworkProxy** _arr = static_cast(malloc(sizeof(QNetworkProxy*) * _ret.length())); @@ -362,7 +362,7 @@ void QNetworkProxyFactory_SetApplicationProxyFactory(QNetworkProxyFactory* facto QNetworkProxyFactory::setApplicationProxyFactory(factory); } -struct miqt_array QNetworkProxyFactory_ProxyForQuery(QNetworkProxyQuery* query) { +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_ProxyForQuery(QNetworkProxyQuery* query) { QList _ret = QNetworkProxyFactory::proxyForQuery(*query); // Convert QList<> from C++ memory to manually-managed C memory QNetworkProxy** _arr = static_cast(malloc(sizeof(QNetworkProxy*) * _ret.length())); @@ -375,7 +375,7 @@ struct miqt_array QNetworkProxyFactory_ProxyForQuery(QNetworkProxyQuery* query) return _out; } -struct miqt_array QNetworkProxyFactory_SystemProxyForQuery() { +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_SystemProxyForQuery() { QList _ret = QNetworkProxyFactory::systemProxyForQuery(); // Convert QList<> from C++ memory to manually-managed C memory QNetworkProxy** _arr = static_cast(malloc(sizeof(QNetworkProxy*) * _ret.length())); @@ -392,7 +392,7 @@ void QNetworkProxyFactory_OperatorAssign(QNetworkProxyFactory* self, QNetworkPro self->operator=(*param1); } -struct miqt_array QNetworkProxyFactory_QueryProxy1(QNetworkProxyFactory* self, QNetworkProxyQuery* query) { +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_QueryProxy1(QNetworkProxyFactory* self, QNetworkProxyQuery* query) { QList _ret = self->queryProxy(*query); // Convert QList<> from C++ memory to manually-managed C memory QNetworkProxy** _arr = static_cast(malloc(sizeof(QNetworkProxy*) * _ret.length())); @@ -405,7 +405,7 @@ struct miqt_array QNetworkProxyFactory_QueryProxy1(QNetworkProxyFactory* self, Q return _out; } -struct miqt_array QNetworkProxyFactory_SystemProxyForQuery1(QNetworkProxyQuery* query) { +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_SystemProxyForQuery1(QNetworkProxyQuery* query) { QList _ret = QNetworkProxyFactory::systemProxyForQuery(*query); // Convert QList<> from C++ memory to manually-managed C memory QNetworkProxy** _arr = static_cast(malloc(sizeof(QNetworkProxy*) * _ret.length())); diff --git a/qt6/network/gen_qnetworkproxy.h b/qt6/network/gen_qnetworkproxy.h index 40eaa4e9..f5bebe92 100644 --- a/qt6/network/gen_qnetworkproxy.h +++ b/qt6/network/gen_qnetworkproxy.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKPROXY_H -#define GEN_QNETWORKPROXY_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QNETWORKPROXY_H +#define MIQT_QT6_NETWORK_GEN_QNETWORKPROXY_H #include #include @@ -87,20 +88,20 @@ QNetworkProxy* QNetworkProxy_ApplicationProxy(); QVariant* QNetworkProxy_Header(const QNetworkProxy* self, int header); void QNetworkProxy_SetHeader(QNetworkProxy* self, int header, QVariant* value); bool QNetworkProxy_HasRawHeader(const QNetworkProxy* self, struct miqt_string headerName); -struct miqt_array QNetworkProxy_RawHeaderList(const QNetworkProxy* self); +struct miqt_array /* of struct miqt_string */ QNetworkProxy_RawHeaderList(const QNetworkProxy* self); struct miqt_string QNetworkProxy_RawHeader(const QNetworkProxy* self, struct miqt_string headerName); void QNetworkProxy_SetRawHeader(QNetworkProxy* self, struct miqt_string headerName, struct miqt_string value); void QNetworkProxy_Delete(QNetworkProxy* self); -struct miqt_array QNetworkProxyFactory_QueryProxy(QNetworkProxyFactory* self); +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_QueryProxy(QNetworkProxyFactory* self); bool QNetworkProxyFactory_UsesSystemConfiguration(); void QNetworkProxyFactory_SetUseSystemConfiguration(bool enable); void QNetworkProxyFactory_SetApplicationProxyFactory(QNetworkProxyFactory* factory); -struct miqt_array QNetworkProxyFactory_ProxyForQuery(QNetworkProxyQuery* query); -struct miqt_array QNetworkProxyFactory_SystemProxyForQuery(); +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_ProxyForQuery(QNetworkProxyQuery* query); +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_SystemProxyForQuery(); void QNetworkProxyFactory_OperatorAssign(QNetworkProxyFactory* self, QNetworkProxyFactory* param1); -struct miqt_array QNetworkProxyFactory_QueryProxy1(QNetworkProxyFactory* self, QNetworkProxyQuery* query); -struct miqt_array QNetworkProxyFactory_SystemProxyForQuery1(QNetworkProxyQuery* query); +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_QueryProxy1(QNetworkProxyFactory* self, QNetworkProxyQuery* query); +struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_SystemProxyForQuery1(QNetworkProxyQuery* query); void QNetworkProxyFactory_Delete(QNetworkProxyFactory* self); #ifdef __cplusplus diff --git a/qt6/network/gen_qnetworkreply.cpp b/qt6/network/gen_qnetworkreply.cpp index f5b3c1c3..77f3c5ce 100644 --- a/qt6/network/gen_qnetworkreply.cpp +++ b/qt6/network/gen_qnetworkreply.cpp @@ -91,7 +91,7 @@ bool QNetworkReply_HasRawHeader(const QNetworkReply* self, struct miqt_string he return self->hasRawHeader(headerName_QByteArray); } -struct miqt_array QNetworkReply_RawHeaderList(const QNetworkReply* self) { +struct miqt_array /* of struct miqt_string */ QNetworkReply_RawHeaderList(const QNetworkReply* self) { QList _ret = self->rawHeaderList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -119,6 +119,39 @@ struct miqt_string QNetworkReply_RawHeader(const QNetworkReply* self, struct miq return _ms; } +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QNetworkReply_RawHeaderPairs(const QNetworkReply* self) { + const QList& _ret = self->rawHeaderPairs(); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ * _arr = static_cast(malloc(sizeof(struct miqt_map /* tuple of struct miqt_string and struct miqt_string */ ) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QPair _lv_ret = _ret[i]; + // Convert QPair<> from C++ memory to manually-managed C memory + struct miqt_string* _lv_first_arr = static_cast(malloc(sizeof(struct miqt_string))); + struct miqt_string* _lv_second_arr = static_cast(malloc(sizeof(struct miqt_string))); + QByteArray _lv_first_qb = _lv_ret.first; + struct miqt_string _lv_first_ms; + _lv_first_ms.len = _lv_first_qb.length(); + _lv_first_ms.data = static_cast(malloc(_lv_first_ms.len)); + memcpy(_lv_first_ms.data, _lv_first_qb.data(), _lv_first_ms.len); + _lv_first_arr[0] = _lv_first_ms; + QByteArray _lv_second_qb = _lv_ret.second; + struct miqt_string _lv_second_ms; + _lv_second_ms.len = _lv_second_qb.length(); + _lv_second_ms.data = static_cast(malloc(_lv_second_ms.len)); + memcpy(_lv_second_ms.data, _lv_second_qb.data(), _lv_second_ms.len); + _lv_second_arr[0] = _lv_second_ms; + struct miqt_map _lv_out; + _lv_out.len = 1; + _lv_out.keys = static_cast(_lv_first_arr); + _lv_out.values = static_cast(_lv_second_arr); + _arr[i] = _lv_out; + } + struct miqt_array _out; + _out.len = _ret.length(); + _out.data = static_cast(_arr); + return _out; +} + QVariant* QNetworkReply_Attribute(const QNetworkReply* self, int code) { return new QVariant(self->attribute(static_cast(code))); } @@ -131,7 +164,7 @@ void QNetworkReply_SetSslConfiguration(QNetworkReply* self, QSslConfiguration* c self->setSslConfiguration(*configuration); } -void QNetworkReply_IgnoreSslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors) { +void QNetworkReply_IgnoreSslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors) { QList errors_QList; errors_QList.reserve(errors.len); QSslError** errors_arr = static_cast(errors.data); @@ -211,7 +244,7 @@ void QNetworkReply_connect_Encrypted(QNetworkReply* self, intptr_t slot) { }); } -void QNetworkReply_SslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors) { +void QNetworkReply_SslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors) { QList errors_QList; errors_QList.reserve(errors.len); QSslError** errors_arr = static_cast(errors.data); @@ -232,7 +265,7 @@ void QNetworkReply_connect_SslErrors(QNetworkReply* self, intptr_t slot) { struct miqt_array errors_out; errors_out.len = errors_ret.length(); errors_out.data = static_cast(errors_arr); - struct miqt_array sigval1 = errors_out; + struct miqt_array /* of QSslError* */ sigval1 = errors_out; miqt_exec_callback_QNetworkReply_SslErrors(slot, sigval1); }); } diff --git a/qt6/network/gen_qnetworkreply.go b/qt6/network/gen_qnetworkreply.go index 5f04ba72..67f484c6 100644 --- a/qt6/network/gen_qnetworkreply.go +++ b/qt6/network/gen_qnetworkreply.go @@ -190,6 +190,36 @@ func (this *QNetworkReply) RawHeader(headerName []byte) []byte { return _ret } +func (this *QNetworkReply) RawHeaderPairs() []struct { + First []byte + Second []byte +} { + var _ma C.struct_miqt_array = C.QNetworkReply_RawHeaderPairs(this.h) + _ret := make([]struct { + First []byte + Second []byte + }, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_mm C.struct_miqt_map = _outCast[i] + _lv_First_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.keys)) + _lv_Second_CArray := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_lv_mm.values)) + var _lv_first_bytearray C.struct_miqt_string = _lv_First_CArray[0] + _lv_first_ret := C.GoBytes(unsafe.Pointer(_lv_first_bytearray.data), C.int(int64(_lv_first_bytearray.len))) + C.free(unsafe.Pointer(_lv_first_bytearray.data)) + _lv_entry_First := _lv_first_ret + var _lv_second_bytearray C.struct_miqt_string = _lv_Second_CArray[0] + _lv_second_ret := C.GoBytes(unsafe.Pointer(_lv_second_bytearray.data), C.int(int64(_lv_second_bytearray.len))) + C.free(unsafe.Pointer(_lv_second_bytearray.data)) + _lv_entry_Second := _lv_second_ret + _ret[i] = struct { + First []byte + Second []byte + }{First: _lv_entry_First, Second: _lv_entry_Second} + } + return _ret +} + func (this *QNetworkReply) Attribute(code QNetworkRequest__Attribute) *qt6.QVariant { _ret := C.QNetworkReply_Attribute(this.h, (C.int)(code)) _goptr := qt6.UnsafeNewQVariant(unsafe.Pointer(_ret)) diff --git a/qt6/network/gen_qnetworkreply.h b/qt6/network/gen_qnetworkreply.h index ad2a7f8b..4948f624 100644 --- a/qt6/network/gen_qnetworkreply.h +++ b/qt6/network/gen_qnetworkreply.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKREPLY_H -#define GEN_QNETWORKREPLY_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QNETWORKREPLY_H +#define MIQT_QT6_NETWORK_GEN_QNETWORKREPLY_H #include #include @@ -53,12 +54,13 @@ bool QNetworkReply_IsRunning(const QNetworkReply* self); QUrl* QNetworkReply_Url(const QNetworkReply* self); QVariant* QNetworkReply_Header(const QNetworkReply* self, int header); bool QNetworkReply_HasRawHeader(const QNetworkReply* self, struct miqt_string headerName); -struct miqt_array QNetworkReply_RawHeaderList(const QNetworkReply* self); +struct miqt_array /* of struct miqt_string */ QNetworkReply_RawHeaderList(const QNetworkReply* self); struct miqt_string QNetworkReply_RawHeader(const QNetworkReply* self, struct miqt_string headerName); +struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QNetworkReply_RawHeaderPairs(const QNetworkReply* self); QVariant* QNetworkReply_Attribute(const QNetworkReply* self, int code); QSslConfiguration* QNetworkReply_SslConfiguration(const QNetworkReply* self); void QNetworkReply_SetSslConfiguration(QNetworkReply* self, QSslConfiguration* configuration); -void QNetworkReply_IgnoreSslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors); +void QNetworkReply_IgnoreSslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors); void QNetworkReply_Abort(QNetworkReply* self); void QNetworkReply_IgnoreSslErrors2(QNetworkReply* self); void QNetworkReply_SocketStartedConnecting(QNetworkReply* self); @@ -73,7 +75,7 @@ void QNetworkReply_ErrorOccurred(QNetworkReply* self, int param1); void QNetworkReply_connect_ErrorOccurred(QNetworkReply* self, intptr_t slot); void QNetworkReply_Encrypted(QNetworkReply* self); void QNetworkReply_connect_Encrypted(QNetworkReply* self, intptr_t slot); -void QNetworkReply_SslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors); +void QNetworkReply_SslErrors(QNetworkReply* self, struct miqt_array /* of QSslError* */ errors); void QNetworkReply_connect_SslErrors(QNetworkReply* self, intptr_t slot); void QNetworkReply_PreSharedKeyAuthenticationRequired(QNetworkReply* self, QSslPreSharedKeyAuthenticator* authenticator); void QNetworkReply_connect_PreSharedKeyAuthenticationRequired(QNetworkReply* self, intptr_t slot); diff --git a/qt6/network/gen_qnetworkrequest.cpp b/qt6/network/gen_qnetworkrequest.cpp index 681a86f9..b7d5f8bc 100644 --- a/qt6/network/gen_qnetworkrequest.cpp +++ b/qt6/network/gen_qnetworkrequest.cpp @@ -62,7 +62,7 @@ bool QNetworkRequest_HasRawHeader(const QNetworkRequest* self, struct miqt_strin return self->hasRawHeader(headerName_QByteArray); } -struct miqt_array QNetworkRequest_RawHeaderList(const QNetworkRequest* self) { +struct miqt_array /* of struct miqt_string */ QNetworkRequest_RawHeaderList(const QNetworkRequest* self) { QList _ret = self->rawHeaderList(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/network/gen_qnetworkrequest.h b/qt6/network/gen_qnetworkrequest.h index 72a01ad6..06c54519 100644 --- a/qt6/network/gen_qnetworkrequest.h +++ b/qt6/network/gen_qnetworkrequest.h @@ -1,5 +1,6 @@ -#ifndef GEN_QNETWORKREQUEST_H -#define GEN_QNETWORKREQUEST_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QNETWORKREQUEST_H +#define MIQT_QT6_NETWORK_GEN_QNETWORKREQUEST_H #include #include @@ -43,7 +44,7 @@ void QNetworkRequest_SetUrl(QNetworkRequest* self, QUrl* url); QVariant* QNetworkRequest_Header(const QNetworkRequest* self, int header); void QNetworkRequest_SetHeader(QNetworkRequest* self, int header, QVariant* value); bool QNetworkRequest_HasRawHeader(const QNetworkRequest* self, struct miqt_string headerName); -struct miqt_array QNetworkRequest_RawHeaderList(const QNetworkRequest* self); +struct miqt_array /* of struct miqt_string */ QNetworkRequest_RawHeaderList(const QNetworkRequest* self); struct miqt_string QNetworkRequest_RawHeader(const QNetworkRequest* self, struct miqt_string headerName); void QNetworkRequest_SetRawHeader(QNetworkRequest* self, struct miqt_string headerName, struct miqt_string value); QVariant* QNetworkRequest_Attribute(const QNetworkRequest* self, int code); diff --git a/qt6/network/gen_qocspresponse.h b/qt6/network/gen_qocspresponse.h index 2b0e1ba4..95f43f03 100644 --- a/qt6/network/gen_qocspresponse.h +++ b/qt6/network/gen_qocspresponse.h @@ -1,5 +1,6 @@ -#ifndef GEN_QOCSPRESPONSE_H -#define GEN_QOCSPRESPONSE_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QOCSPRESPONSE_H +#define MIQT_QT6_NETWORK_GEN_QOCSPRESPONSE_H #include #include diff --git a/qt6/network/gen_qsctpserver.h b/qt6/network/gen_qsctpserver.h index 5679a3f7..c77a1c27 100644 --- a/qt6/network/gen_qsctpserver.h +++ b/qt6/network/gen_qsctpserver.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCTPSERVER_H -#define GEN_QSCTPSERVER_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QSCTPSERVER_H +#define MIQT_QT6_NETWORK_GEN_QSCTPSERVER_H #include #include diff --git a/qt6/network/gen_qsctpsocket.h b/qt6/network/gen_qsctpsocket.h index 17246d2a..181899c4 100644 --- a/qt6/network/gen_qsctpsocket.h +++ b/qt6/network/gen_qsctpsocket.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSCTPSOCKET_H -#define GEN_QSCTPSOCKET_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QSCTPSOCKET_H +#define MIQT_QT6_NETWORK_GEN_QSCTPSOCKET_H #include #include diff --git a/qt6/network/gen_qssl.h b/qt6/network/gen_qssl.h index eb871f45..00afc592 100644 --- a/qt6/network/gen_qssl.h +++ b/qt6/network/gen_qssl.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSL_H -#define GEN_QSSL_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QSSL_H +#define MIQT_QT6_NETWORK_GEN_QSSL_H #include #include diff --git a/qt6/network/gen_qsslcertificate.cpp b/qt6/network/gen_qsslcertificate.cpp index aff23945..01166b92 100644 --- a/qt6/network/gen_qsslcertificate.cpp +++ b/qt6/network/gen_qsslcertificate.cpp @@ -98,7 +98,7 @@ struct miqt_string QSslCertificate_Digest(const QSslCertificate* self) { return _ms; } -struct miqt_array QSslCertificate_IssuerInfo(const QSslCertificate* self, int info) { +struct miqt_array /* of struct miqt_string */ QSslCertificate_IssuerInfo(const QSslCertificate* self, int info) { QStringList _ret = self->issuerInfo(static_cast(info)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -118,7 +118,7 @@ struct miqt_array QSslCertificate_IssuerInfo(const QSslCertificate* self, int in return _out; } -struct miqt_array QSslCertificate_IssuerInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute) { +struct miqt_array /* of struct miqt_string */ QSslCertificate_IssuerInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute) { QByteArray attribute_QByteArray(attribute.data, attribute.len); QStringList _ret = self->issuerInfo(attribute_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory @@ -139,7 +139,7 @@ struct miqt_array QSslCertificate_IssuerInfoWithAttribute(const QSslCertificate* return _out; } -struct miqt_array QSslCertificate_SubjectInfo(const QSslCertificate* self, int info) { +struct miqt_array /* of struct miqt_string */ QSslCertificate_SubjectInfo(const QSslCertificate* self, int info) { QStringList _ret = self->subjectInfo(static_cast(info)); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -159,7 +159,7 @@ struct miqt_array QSslCertificate_SubjectInfo(const QSslCertificate* self, int i return _out; } -struct miqt_array QSslCertificate_SubjectInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute) { +struct miqt_array /* of struct miqt_string */ QSslCertificate_SubjectInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute) { QByteArray attribute_QByteArray(attribute.data, attribute.len); QStringList _ret = self->subjectInfo(attribute_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory @@ -202,7 +202,7 @@ struct miqt_string QSslCertificate_SubjectDisplayName(const QSslCertificate* sel return _ms; } -struct miqt_array QSslCertificate_SubjectInfoAttributes(const QSslCertificate* self) { +struct miqt_array /* of struct miqt_string */ QSslCertificate_SubjectInfoAttributes(const QSslCertificate* self) { QList _ret = self->subjectInfoAttributes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -220,7 +220,7 @@ struct miqt_array QSslCertificate_SubjectInfoAttributes(const QSslCertificate* s return _out; } -struct miqt_array QSslCertificate_IssuerInfoAttributes(const QSslCertificate* self) { +struct miqt_array /* of struct miqt_string */ QSslCertificate_IssuerInfoAttributes(const QSslCertificate* self) { QList _ret = self->issuerInfoAttributes(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -250,7 +250,7 @@ QSslKey* QSslCertificate_PublicKey(const QSslCertificate* self) { return new QSslKey(self->publicKey()); } -struct miqt_array QSslCertificate_Extensions(const QSslCertificate* self) { +struct miqt_array /* of QSslCertificateExtension* */ QSslCertificate_Extensions(const QSslCertificate* self) { QList _ret = self->extensions(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificateExtension** _arr = static_cast(malloc(sizeof(QSslCertificateExtension*) * _ret.length())); @@ -292,7 +292,7 @@ struct miqt_string QSslCertificate_ToText(const QSslCertificate* self) { return _ms; } -struct miqt_array QSslCertificate_FromPath(struct miqt_string path) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromPath(struct miqt_string path) { QString path_QString = QString::fromUtf8(path.data, path.len); QList _ret = QSslCertificate::fromPath(path_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -306,7 +306,7 @@ struct miqt_array QSslCertificate_FromPath(struct miqt_string path) { return _out; } -struct miqt_array QSslCertificate_FromDevice(QIODevice* device) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromDevice(QIODevice* device) { QList _ret = QSslCertificate::fromDevice(device); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -319,7 +319,7 @@ struct miqt_array QSslCertificate_FromDevice(QIODevice* device) { return _out; } -struct miqt_array QSslCertificate_FromData(struct miqt_string data) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromData(struct miqt_string data) { QByteArray data_QByteArray(data.data, data.len); QList _ret = QSslCertificate::fromData(data_QByteArray); // Convert QList<> from C++ memory to manually-managed C memory @@ -333,7 +333,7 @@ struct miqt_array QSslCertificate_FromData(struct miqt_string data) { return _out; } -struct miqt_array QSslCertificate_Verify(struct miqt_array /* of QSslCertificate* */ certificateChain) { +struct miqt_array /* of QSslError* */ QSslCertificate_Verify(struct miqt_array /* of QSslCertificate* */ certificateChain) { QList certificateChain_QList; certificateChain_QList.reserve(certificateChain.len); QSslCertificate** certificateChain_arr = static_cast(certificateChain.data); @@ -370,7 +370,7 @@ struct miqt_string QSslCertificate_Digest1(const QSslCertificate* self, int algo return _ms; } -struct miqt_array QSslCertificate_FromPath2(struct miqt_string path, int format) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromPath2(struct miqt_string path, int format) { QString path_QString = QString::fromUtf8(path.data, path.len); QList _ret = QSslCertificate::fromPath(path_QString, static_cast(format)); // Convert QList<> from C++ memory to manually-managed C memory @@ -384,7 +384,7 @@ struct miqt_array QSslCertificate_FromPath2(struct miqt_string path, int format) return _out; } -struct miqt_array QSslCertificate_FromPath3(struct miqt_string path, int format, int syntax) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromPath3(struct miqt_string path, int format, int syntax) { QString path_QString = QString::fromUtf8(path.data, path.len); QList _ret = QSslCertificate::fromPath(path_QString, static_cast(format), static_cast(syntax)); // Convert QList<> from C++ memory to manually-managed C memory @@ -398,7 +398,7 @@ struct miqt_array QSslCertificate_FromPath3(struct miqt_string path, int format, return _out; } -struct miqt_array QSslCertificate_FromDevice2(QIODevice* device, int format) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromDevice2(QIODevice* device, int format) { QList _ret = QSslCertificate::fromDevice(device, static_cast(format)); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -411,7 +411,7 @@ struct miqt_array QSslCertificate_FromDevice2(QIODevice* device, int format) { return _out; } -struct miqt_array QSslCertificate_FromData2(struct miqt_string data, int format) { +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromData2(struct miqt_string data, int format) { QByteArray data_QByteArray(data.data, data.len); QList _ret = QSslCertificate::fromData(data_QByteArray, static_cast(format)); // Convert QList<> from C++ memory to manually-managed C memory @@ -425,7 +425,7 @@ struct miqt_array QSslCertificate_FromData2(struct miqt_string data, int format) return _out; } -struct miqt_array QSslCertificate_Verify2(struct miqt_array /* of QSslCertificate* */ certificateChain, struct miqt_string hostName) { +struct miqt_array /* of QSslError* */ QSslCertificate_Verify2(struct miqt_array /* of QSslCertificate* */ certificateChain, struct miqt_string hostName) { QList certificateChain_QList; certificateChain_QList.reserve(certificateChain.len); QSslCertificate** certificateChain_arr = static_cast(certificateChain.data); @@ -445,7 +445,7 @@ struct miqt_array QSslCertificate_Verify2(struct miqt_array /* of QSslCertificat return _out; } -bool QSslCertificate_ImportPkcs124(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates) { +bool QSslCertificate_ImportPkcs124(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates) { QList caCertificates_QList; caCertificates_QList.reserve(caCertificates.len); QSslCertificate** caCertificates_arr = static_cast(caCertificates.data); @@ -455,7 +455,7 @@ bool QSslCertificate_ImportPkcs124(QIODevice* device, QSslKey* key, QSslCertific return QSslCertificate::importPkcs12(device, key, cert, &caCertificates_QList); } -bool QSslCertificate_ImportPkcs125(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates, struct miqt_string passPhrase) { +bool QSslCertificate_ImportPkcs125(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates, struct miqt_string passPhrase) { QList caCertificates_QList; caCertificates_QList.reserve(caCertificates.len); QSslCertificate** caCertificates_arr = static_cast(caCertificates.data); diff --git a/qt6/network/gen_qsslcertificate.h b/qt6/network/gen_qsslcertificate.h index f1af5935..be605d35 100644 --- a/qt6/network/gen_qsslcertificate.h +++ b/qt6/network/gen_qsslcertificate.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLCERTIFICATE_H -#define GEN_QSSLCERTIFICATE_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QSSLCERTIFICATE_H +#define MIQT_QT6_NETWORK_GEN_QSSLCERTIFICATE_H #include #include @@ -48,35 +49,35 @@ void QSslCertificate_Clear(QSslCertificate* self); struct miqt_string QSslCertificate_Version(const QSslCertificate* self); struct miqt_string QSslCertificate_SerialNumber(const QSslCertificate* self); struct miqt_string QSslCertificate_Digest(const QSslCertificate* self); -struct miqt_array QSslCertificate_IssuerInfo(const QSslCertificate* self, int info); -struct miqt_array QSslCertificate_IssuerInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute); -struct miqt_array QSslCertificate_SubjectInfo(const QSslCertificate* self, int info); -struct miqt_array QSslCertificate_SubjectInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute); +struct miqt_array /* of struct miqt_string */ QSslCertificate_IssuerInfo(const QSslCertificate* self, int info); +struct miqt_array /* of struct miqt_string */ QSslCertificate_IssuerInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute); +struct miqt_array /* of struct miqt_string */ QSslCertificate_SubjectInfo(const QSslCertificate* self, int info); +struct miqt_array /* of struct miqt_string */ QSslCertificate_SubjectInfoWithAttribute(const QSslCertificate* self, struct miqt_string attribute); struct miqt_string QSslCertificate_IssuerDisplayName(const QSslCertificate* self); struct miqt_string QSslCertificate_SubjectDisplayName(const QSslCertificate* self); -struct miqt_array QSslCertificate_SubjectInfoAttributes(const QSslCertificate* self); -struct miqt_array QSslCertificate_IssuerInfoAttributes(const QSslCertificate* self); +struct miqt_array /* of struct miqt_string */ QSslCertificate_SubjectInfoAttributes(const QSslCertificate* self); +struct miqt_array /* of struct miqt_string */ QSslCertificate_IssuerInfoAttributes(const QSslCertificate* self); QDateTime* QSslCertificate_EffectiveDate(const QSslCertificate* self); QDateTime* QSslCertificate_ExpiryDate(const QSslCertificate* self); QSslKey* QSslCertificate_PublicKey(const QSslCertificate* self); -struct miqt_array QSslCertificate_Extensions(const QSslCertificate* self); +struct miqt_array /* of QSslCertificateExtension* */ QSslCertificate_Extensions(const QSslCertificate* self); struct miqt_string QSslCertificate_ToPem(const QSslCertificate* self); struct miqt_string QSslCertificate_ToDer(const QSslCertificate* self); struct miqt_string QSslCertificate_ToText(const QSslCertificate* self); -struct miqt_array QSslCertificate_FromPath(struct miqt_string path); -struct miqt_array QSslCertificate_FromDevice(QIODevice* device); -struct miqt_array QSslCertificate_FromData(struct miqt_string data); -struct miqt_array QSslCertificate_Verify(struct miqt_array /* of QSslCertificate* */ certificateChain); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromPath(struct miqt_string path); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromDevice(QIODevice* device); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromData(struct miqt_string data); +struct miqt_array /* of QSslError* */ QSslCertificate_Verify(struct miqt_array /* of QSslCertificate* */ certificateChain); bool QSslCertificate_ImportPkcs12(QIODevice* device, QSslKey* key, QSslCertificate* cert); void* QSslCertificate_Handle(const QSslCertificate* self); struct miqt_string QSslCertificate_Digest1(const QSslCertificate* self, int algorithm); -struct miqt_array QSslCertificate_FromPath2(struct miqt_string path, int format); -struct miqt_array QSslCertificate_FromPath3(struct miqt_string path, int format, int syntax); -struct miqt_array QSslCertificate_FromDevice2(QIODevice* device, int format); -struct miqt_array QSslCertificate_FromData2(struct miqt_string data, int format); -struct miqt_array QSslCertificate_Verify2(struct miqt_array /* of QSslCertificate* */ certificateChain, struct miqt_string hostName); -bool QSslCertificate_ImportPkcs124(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates); -bool QSslCertificate_ImportPkcs125(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates, struct miqt_string passPhrase); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromPath2(struct miqt_string path, int format); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromPath3(struct miqt_string path, int format, int syntax); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromDevice2(QIODevice* device, int format); +struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromData2(struct miqt_string data, int format); +struct miqt_array /* of QSslError* */ QSslCertificate_Verify2(struct miqt_array /* of QSslCertificate* */ certificateChain, struct miqt_string hostName); +bool QSslCertificate_ImportPkcs124(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates); +bool QSslCertificate_ImportPkcs125(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates, struct miqt_string passPhrase); void QSslCertificate_Delete(QSslCertificate* self); #ifdef __cplusplus diff --git a/qt6/network/gen_qsslcertificateextension.h b/qt6/network/gen_qsslcertificateextension.h index edbfd926..de3e3a68 100644 --- a/qt6/network/gen_qsslcertificateextension.h +++ b/qt6/network/gen_qsslcertificateextension.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLCERTIFICATEEXTENSION_H -#define GEN_QSSLCERTIFICATEEXTENSION_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QSSLCERTIFICATEEXTENSION_H +#define MIQT_QT6_NETWORK_GEN_QSSLCERTIFICATEEXTENSION_H #include #include diff --git a/qt6/network/gen_qsslcipher.h b/qt6/network/gen_qsslcipher.h index 21972991..ea75b25c 100644 --- a/qt6/network/gen_qsslcipher.h +++ b/qt6/network/gen_qsslcipher.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLCIPHER_H -#define GEN_QSSLCIPHER_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QSSLCIPHER_H +#define MIQT_QT6_NETWORK_GEN_QSSLCIPHER_H #include #include diff --git a/qt6/network/gen_qsslconfiguration.cpp b/qt6/network/gen_qsslconfiguration.cpp index c8f73f5a..10698d0c 100644 --- a/qt6/network/gen_qsslconfiguration.cpp +++ b/qt6/network/gen_qsslconfiguration.cpp @@ -68,7 +68,7 @@ void QSslConfiguration_SetPeerVerifyDepth(QSslConfiguration* self, int depth) { self->setPeerVerifyDepth(static_cast(depth)); } -struct miqt_array QSslConfiguration_LocalCertificateChain(const QSslConfiguration* self) { +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_LocalCertificateChain(const QSslConfiguration* self) { QList _ret = self->localCertificateChain(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -81,7 +81,7 @@ struct miqt_array QSslConfiguration_LocalCertificateChain(const QSslConfiguratio return _out; } -void QSslConfiguration_SetLocalCertificateChain(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ localChain) { +void QSslConfiguration_SetLocalCertificateChain(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ localChain) { QList localChain_QList; localChain_QList.reserve(localChain.len); QSslCertificate** localChain_arr = static_cast(localChain.data); @@ -103,7 +103,7 @@ QSslCertificate* QSslConfiguration_PeerCertificate(const QSslConfiguration* self return new QSslCertificate(self->peerCertificate()); } -struct miqt_array QSslConfiguration_PeerCertificateChain(const QSslConfiguration* self) { +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_PeerCertificateChain(const QSslConfiguration* self) { QList _ret = self->peerCertificateChain(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -133,7 +133,7 @@ void QSslConfiguration_SetPrivateKey(QSslConfiguration* self, QSslKey* key) { self->setPrivateKey(*key); } -struct miqt_array QSslConfiguration_Ciphers(const QSslConfiguration* self) { +struct miqt_array /* of QSslCipher* */ QSslConfiguration_Ciphers(const QSslConfiguration* self) { QList _ret = self->ciphers(); // Convert QList<> from C++ memory to manually-managed C memory QSslCipher** _arr = static_cast(malloc(sizeof(QSslCipher*) * _ret.length())); @@ -146,7 +146,7 @@ struct miqt_array QSslConfiguration_Ciphers(const QSslConfiguration* self) { return _out; } -void QSslConfiguration_SetCiphers(QSslConfiguration* self, struct miqt_array /* of QSslCipher* */ ciphers) { +void QSslConfiguration_SetCiphers(QSslConfiguration* self, struct miqt_array /* of QSslCipher* */ ciphers) { QList ciphers_QList; ciphers_QList.reserve(ciphers.len); QSslCipher** ciphers_arr = static_cast(ciphers.data); @@ -161,7 +161,7 @@ void QSslConfiguration_SetCiphersWithCiphers(QSslConfiguration* self, struct miq self->setCiphers(ciphers_QString); } -struct miqt_array QSslConfiguration_SupportedCiphers() { +struct miqt_array /* of QSslCipher* */ QSslConfiguration_SupportedCiphers() { QList _ret = QSslConfiguration::supportedCiphers(); // Convert QList<> from C++ memory to manually-managed C memory QSslCipher** _arr = static_cast(malloc(sizeof(QSslCipher*) * _ret.length())); @@ -174,7 +174,7 @@ struct miqt_array QSslConfiguration_SupportedCiphers() { return _out; } -struct miqt_array QSslConfiguration_CaCertificates(const QSslConfiguration* self) { +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_CaCertificates(const QSslConfiguration* self) { QList _ret = self->caCertificates(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -187,7 +187,7 @@ struct miqt_array QSslConfiguration_CaCertificates(const QSslConfiguration* self return _out; } -void QSslConfiguration_SetCaCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates) { +void QSslConfiguration_SetCaCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates) { QList certificates_QList; certificates_QList.reserve(certificates.len); QSslCertificate** certificates_arr = static_cast(certificates.data); @@ -206,7 +206,7 @@ void QSslConfiguration_AddCaCertificate(QSslConfiguration* self, QSslCertificate self->addCaCertificate(*certificate); } -void QSslConfiguration_AddCaCertificatesWithCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates) { +void QSslConfiguration_AddCaCertificatesWithCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates) { QList certificates_QList; certificates_QList.reserve(certificates.len); QSslCertificate** certificates_arr = static_cast(certificates.data); @@ -216,7 +216,7 @@ void QSslConfiguration_AddCaCertificatesWithCertificates(QSslConfiguration* self self->addCaCertificates(certificates_QList); } -struct miqt_array QSslConfiguration_SystemCaCertificates() { +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_SystemCaCertificates() { QList _ret = QSslConfiguration::systemCaCertificates(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -259,7 +259,7 @@ QSslKey* QSslConfiguration_EphemeralServerKey(const QSslConfiguration* self) { return new QSslKey(self->ephemeralServerKey()); } -struct miqt_array QSslConfiguration_EllipticCurves(const QSslConfiguration* self) { +struct miqt_array /* of QSslEllipticCurve* */ QSslConfiguration_EllipticCurves(const QSslConfiguration* self) { QList _ret = self->ellipticCurves(); // Convert QList<> from C++ memory to manually-managed C memory QSslEllipticCurve** _arr = static_cast(malloc(sizeof(QSslEllipticCurve*) * _ret.length())); @@ -272,7 +272,7 @@ struct miqt_array QSslConfiguration_EllipticCurves(const QSslConfiguration* self return _out; } -void QSslConfiguration_SetEllipticCurves(QSslConfiguration* self, struct miqt_array /* of QSslEllipticCurve* */ curves) { +void QSslConfiguration_SetEllipticCurves(QSslConfiguration* self, struct miqt_array /* of QSslEllipticCurve* */ curves) { QList curves_QList; curves_QList.reserve(curves.len); QSslEllipticCurve** curves_arr = static_cast(curves.data); @@ -282,7 +282,7 @@ void QSslConfiguration_SetEllipticCurves(QSslConfiguration* self, struct miqt_ar self->setEllipticCurves(curves_QList); } -struct miqt_array QSslConfiguration_SupportedEllipticCurves() { +struct miqt_array /* of QSslEllipticCurve* */ QSslConfiguration_SupportedEllipticCurves() { QList _ret = QSslConfiguration::supportedEllipticCurves(); // Convert QList<> from C++ memory to manually-managed C memory QSslEllipticCurve** _arr = static_cast(malloc(sizeof(QSslEllipticCurve*) * _ret.length())); @@ -374,7 +374,7 @@ bool QSslConfiguration_OcspStaplingEnabled(const QSslConfiguration* self) { return self->ocspStaplingEnabled(); } -void QSslConfiguration_SetAllowedNextProtocols(QSslConfiguration* self, struct miqt_array /* of struct miqt_string */ protocols) { +void QSslConfiguration_SetAllowedNextProtocols(QSslConfiguration* self, struct miqt_array /* of struct miqt_string */ protocols) { QList protocols_QList; protocols_QList.reserve(protocols.len); struct miqt_string* protocols_arr = static_cast(protocols.data); @@ -385,7 +385,7 @@ void QSslConfiguration_SetAllowedNextProtocols(QSslConfiguration* self, struct m self->setAllowedNextProtocols(protocols_QList); } -struct miqt_array QSslConfiguration_AllowedNextProtocols(const QSslConfiguration* self) { +struct miqt_array /* of struct miqt_string */ QSslConfiguration_AllowedNextProtocols(const QSslConfiguration* self) { QList _ret = self->allowedNextProtocols(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); diff --git a/qt6/network/gen_qsslconfiguration.h b/qt6/network/gen_qsslconfiguration.h index 9c850386..631e4973 100644 --- a/qt6/network/gen_qsslconfiguration.h +++ b/qt6/network/gen_qsslconfiguration.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLCONFIGURATION_H -#define GEN_QSSLCONFIGURATION_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QSSLCONFIGURATION_H +#define MIQT_QT6_NETWORK_GEN_QSSLCONFIGURATION_H #include #include @@ -46,35 +47,35 @@ int QSslConfiguration_PeerVerifyMode(const QSslConfiguration* self); void QSslConfiguration_SetPeerVerifyMode(QSslConfiguration* self, int mode); int QSslConfiguration_PeerVerifyDepth(const QSslConfiguration* self); void QSslConfiguration_SetPeerVerifyDepth(QSslConfiguration* self, int depth); -struct miqt_array QSslConfiguration_LocalCertificateChain(const QSslConfiguration* self); -void QSslConfiguration_SetLocalCertificateChain(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ localChain); +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_LocalCertificateChain(const QSslConfiguration* self); +void QSslConfiguration_SetLocalCertificateChain(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ localChain); QSslCertificate* QSslConfiguration_LocalCertificate(const QSslConfiguration* self); void QSslConfiguration_SetLocalCertificate(QSslConfiguration* self, QSslCertificate* certificate); QSslCertificate* QSslConfiguration_PeerCertificate(const QSslConfiguration* self); -struct miqt_array QSslConfiguration_PeerCertificateChain(const QSslConfiguration* self); +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_PeerCertificateChain(const QSslConfiguration* self); QSslCipher* QSslConfiguration_SessionCipher(const QSslConfiguration* self); int QSslConfiguration_SessionProtocol(const QSslConfiguration* self); QSslKey* QSslConfiguration_PrivateKey(const QSslConfiguration* self); void QSslConfiguration_SetPrivateKey(QSslConfiguration* self, QSslKey* key); -struct miqt_array QSslConfiguration_Ciphers(const QSslConfiguration* self); -void QSslConfiguration_SetCiphers(QSslConfiguration* self, struct miqt_array /* of QSslCipher* */ ciphers); +struct miqt_array /* of QSslCipher* */ QSslConfiguration_Ciphers(const QSslConfiguration* self); +void QSslConfiguration_SetCiphers(QSslConfiguration* self, struct miqt_array /* of QSslCipher* */ ciphers); void QSslConfiguration_SetCiphersWithCiphers(QSslConfiguration* self, struct miqt_string ciphers); -struct miqt_array QSslConfiguration_SupportedCiphers(); -struct miqt_array QSslConfiguration_CaCertificates(const QSslConfiguration* self); -void QSslConfiguration_SetCaCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates); +struct miqt_array /* of QSslCipher* */ QSslConfiguration_SupportedCiphers(); +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_CaCertificates(const QSslConfiguration* self); +void QSslConfiguration_SetCaCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates); bool QSslConfiguration_AddCaCertificates(QSslConfiguration* self, struct miqt_string path); void QSslConfiguration_AddCaCertificate(QSslConfiguration* self, QSslCertificate* certificate); -void QSslConfiguration_AddCaCertificatesWithCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates); -struct miqt_array QSslConfiguration_SystemCaCertificates(); +void QSslConfiguration_AddCaCertificatesWithCertificates(QSslConfiguration* self, struct miqt_array /* of QSslCertificate* */ certificates); +struct miqt_array /* of QSslCertificate* */ QSslConfiguration_SystemCaCertificates(); void QSslConfiguration_SetSslOption(QSslConfiguration* self, int option, bool on); bool QSslConfiguration_TestSslOption(const QSslConfiguration* self, int option); struct miqt_string QSslConfiguration_SessionTicket(const QSslConfiguration* self); void QSslConfiguration_SetSessionTicket(QSslConfiguration* self, struct miqt_string sessionTicket); int QSslConfiguration_SessionTicketLifeTimeHint(const QSslConfiguration* self); QSslKey* QSslConfiguration_EphemeralServerKey(const QSslConfiguration* self); -struct miqt_array QSslConfiguration_EllipticCurves(const QSslConfiguration* self); -void QSslConfiguration_SetEllipticCurves(QSslConfiguration* self, struct miqt_array /* of QSslEllipticCurve* */ curves); -struct miqt_array QSslConfiguration_SupportedEllipticCurves(); +struct miqt_array /* of QSslEllipticCurve* */ QSslConfiguration_EllipticCurves(const QSslConfiguration* self); +void QSslConfiguration_SetEllipticCurves(QSslConfiguration* self, struct miqt_array /* of QSslEllipticCurve* */ curves); +struct miqt_array /* of QSslEllipticCurve* */ QSslConfiguration_SupportedEllipticCurves(); struct miqt_string QSslConfiguration_PreSharedKeyIdentityHint(const QSslConfiguration* self); void QSslConfiguration_SetPreSharedKeyIdentityHint(QSslConfiguration* self, struct miqt_string hint); QSslDiffieHellmanParameters* QSslConfiguration_DiffieHellmanParameters(const QSslConfiguration* self); @@ -93,8 +94,8 @@ bool QSslConfiguration_MissingCertificateIsFatal(const QSslConfiguration* self); void QSslConfiguration_SetMissingCertificateIsFatal(QSslConfiguration* self, bool cannotRecover); void QSslConfiguration_SetOcspStaplingEnabled(QSslConfiguration* self, bool enable); bool QSslConfiguration_OcspStaplingEnabled(const QSslConfiguration* self); -void QSslConfiguration_SetAllowedNextProtocols(QSslConfiguration* self, struct miqt_array /* of struct miqt_string */ protocols); -struct miqt_array QSslConfiguration_AllowedNextProtocols(const QSslConfiguration* self); +void QSslConfiguration_SetAllowedNextProtocols(QSslConfiguration* self, struct miqt_array /* of struct miqt_string */ protocols); +struct miqt_array /* of struct miqt_string */ QSslConfiguration_AllowedNextProtocols(const QSslConfiguration* self); struct miqt_string QSslConfiguration_NextNegotiatedProtocol(const QSslConfiguration* self); int QSslConfiguration_NextProtocolNegotiationStatus(const QSslConfiguration* self); bool QSslConfiguration_AddCaCertificates2(QSslConfiguration* self, struct miqt_string path, int format); diff --git a/qt6/network/gen_qssldiffiehellmanparameters.h b/qt6/network/gen_qssldiffiehellmanparameters.h index 096f9f8f..58e75ea7 100644 --- a/qt6/network/gen_qssldiffiehellmanparameters.h +++ b/qt6/network/gen_qssldiffiehellmanparameters.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLDIFFIEHELLMANPARAMETERS_H -#define GEN_QSSLDIFFIEHELLMANPARAMETERS_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QSSLDIFFIEHELLMANPARAMETERS_H +#define MIQT_QT6_NETWORK_GEN_QSSLDIFFIEHELLMANPARAMETERS_H #include #include diff --git a/qt6/network/gen_qsslellipticcurve.h b/qt6/network/gen_qsslellipticcurve.h index 082b9379..47ab7162 100644 --- a/qt6/network/gen_qsslellipticcurve.h +++ b/qt6/network/gen_qsslellipticcurve.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLELLIPTICCURVE_H -#define GEN_QSSLELLIPTICCURVE_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QSSLELLIPTICCURVE_H +#define MIQT_QT6_NETWORK_GEN_QSSLELLIPTICCURVE_H #include #include diff --git a/qt6/network/gen_qsslerror.h b/qt6/network/gen_qsslerror.h index 745e3cf9..c407ce44 100644 --- a/qt6/network/gen_qsslerror.h +++ b/qt6/network/gen_qsslerror.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLERROR_H -#define GEN_QSSLERROR_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QSSLERROR_H +#define MIQT_QT6_NETWORK_GEN_QSSLERROR_H #include #include diff --git a/qt6/network/gen_qsslkey.h b/qt6/network/gen_qsslkey.h index df2b5091..a8b1fb8c 100644 --- a/qt6/network/gen_qsslkey.h +++ b/qt6/network/gen_qsslkey.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLKEY_H -#define GEN_QSSLKEY_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QSSLKEY_H +#define MIQT_QT6_NETWORK_GEN_QSSLKEY_H #include #include diff --git a/qt6/network/gen_qsslpresharedkeyauthenticator.h b/qt6/network/gen_qsslpresharedkeyauthenticator.h index 2e0d6087..b48b7a14 100644 --- a/qt6/network/gen_qsslpresharedkeyauthenticator.h +++ b/qt6/network/gen_qsslpresharedkeyauthenticator.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLPRESHAREDKEYAUTHENTICATOR_H -#define GEN_QSSLPRESHAREDKEYAUTHENTICATOR_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QSSLPRESHAREDKEYAUTHENTICATOR_H +#define MIQT_QT6_NETWORK_GEN_QSSLPRESHAREDKEYAUTHENTICATOR_H #include #include diff --git a/qt6/network/gen_qsslserver.cpp b/qt6/network/gen_qsslserver.cpp index 8e90df8d..d30e23b8 100644 --- a/qt6/network/gen_qsslserver.cpp +++ b/qt6/network/gen_qsslserver.cpp @@ -56,7 +56,7 @@ int QSslServer_HandshakeTimeout(const QSslServer* self) { return self->handshakeTimeout(); } -void QSslServer_SslErrors(QSslServer* self, QSslSocket* socket, struct miqt_array /* of QSslError* */ errors) { +void QSslServer_SslErrors(QSslServer* self, QSslSocket* socket, struct miqt_array /* of QSslError* */ errors) { QList errors_QList; errors_QList.reserve(errors.len); QSslError** errors_arr = static_cast(errors.data); @@ -78,7 +78,7 @@ void QSslServer_connect_SslErrors(QSslServer* self, intptr_t slot) { struct miqt_array errors_out; errors_out.len = errors_ret.length(); errors_out.data = static_cast(errors_arr); - struct miqt_array sigval2 = errors_out; + struct miqt_array /* of QSslError* */ sigval2 = errors_out; miqt_exec_callback_QSslServer_SslErrors(slot, sigval1, sigval2); }); } diff --git a/qt6/network/gen_qsslserver.h b/qt6/network/gen_qsslserver.h index b6dc984f..5393ddc8 100644 --- a/qt6/network/gen_qsslserver.h +++ b/qt6/network/gen_qsslserver.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLSERVER_H -#define GEN_QSSLSERVER_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QSSLSERVER_H +#define MIQT_QT6_NETWORK_GEN_QSSLSERVER_H #include #include @@ -40,7 +41,7 @@ void QSslServer_SetSslConfiguration(QSslServer* self, QSslConfiguration* sslConf QSslConfiguration* QSslServer_SslConfiguration(const QSslServer* self); void QSslServer_SetHandshakeTimeout(QSslServer* self, int timeout); int QSslServer_HandshakeTimeout(const QSslServer* self); -void QSslServer_SslErrors(QSslServer* self, QSslSocket* socket, struct miqt_array /* of QSslError* */ errors); +void QSslServer_SslErrors(QSslServer* self, QSslSocket* socket, struct miqt_array /* of QSslError* */ errors); void QSslServer_connect_SslErrors(QSslServer* self, intptr_t slot); void QSslServer_PeerVerifyError(QSslServer* self, QSslSocket* socket, QSslError* error); void QSslServer_connect_PeerVerifyError(QSslServer* self, intptr_t slot); diff --git a/qt6/network/gen_qsslsocket.cpp b/qt6/network/gen_qsslsocket.cpp index ad3f064a..4de76013 100644 --- a/qt6/network/gen_qsslsocket.cpp +++ b/qt6/network/gen_qsslsocket.cpp @@ -176,7 +176,7 @@ void QSslSocket_SetSslConfiguration(QSslSocket* self, QSslConfiguration* config) self->setSslConfiguration(*config); } -void QSslSocket_SetLocalCertificateChain(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ localChain) { +void QSslSocket_SetLocalCertificateChain(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ localChain) { QList localChain_QList; localChain_QList.reserve(localChain.len); QSslCertificate** localChain_arr = static_cast(localChain.data); @@ -186,7 +186,7 @@ void QSslSocket_SetLocalCertificateChain(QSslSocket* self, struct miqt_array /* self->setLocalCertificateChain(localChain_QList); } -struct miqt_array QSslSocket_LocalCertificateChain(const QSslSocket* self) { +struct miqt_array /* of QSslCertificate* */ QSslSocket_LocalCertificateChain(const QSslSocket* self) { QList _ret = self->localCertificateChain(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -216,7 +216,7 @@ QSslCertificate* QSslSocket_PeerCertificate(const QSslSocket* self) { return new QSslCertificate(self->peerCertificate()); } -struct miqt_array QSslSocket_PeerCertificateChain(const QSslSocket* self) { +struct miqt_array /* of QSslCertificate* */ QSslSocket_PeerCertificateChain(const QSslSocket* self) { QList _ret = self->peerCertificateChain(); // Convert QList<> from C++ memory to manually-managed C memory QSslCertificate** _arr = static_cast(malloc(sizeof(QSslCertificate*) * _ret.length())); @@ -238,7 +238,7 @@ int QSslSocket_SessionProtocol(const QSslSocket* self) { return static_cast(_ret); } -struct miqt_array QSslSocket_OcspResponses(const QSslSocket* self) { +struct miqt_array /* of QOcspResponse* */ QSslSocket_OcspResponses(const QSslSocket* self) { QList _ret = self->ocspResponses(); // Convert QList<> from C++ memory to manually-managed C memory QOcspResponse** _arr = static_cast(malloc(sizeof(QOcspResponse*) * _ret.length())); @@ -284,7 +284,7 @@ bool QSslSocket_WaitForDisconnected(QSslSocket* self) { return self->waitForDisconnected(); } -struct miqt_array QSslSocket_SslHandshakeErrors(const QSslSocket* self) { +struct miqt_array /* of QSslError* */ QSslSocket_SslHandshakeErrors(const QSslSocket* self) { QList _ret = self->sslHandshakeErrors(); // Convert QList<> from C++ memory to manually-managed C memory QSslError** _arr = static_cast(malloc(sizeof(QSslError*) * _ret.length())); @@ -331,7 +331,7 @@ struct miqt_string QSslSocket_SslLibraryBuildVersionString() { return _ms; } -struct miqt_array QSslSocket_AvailableBackends() { +struct miqt_array /* of struct miqt_string */ QSslSocket_AvailableBackends() { QList _ret = QSslSocket::availableBackends(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -367,7 +367,7 @@ bool QSslSocket_SetActiveBackend(struct miqt_string backendName) { return QSslSocket::setActiveBackend(backendName_QString); } -struct miqt_array QSslSocket_SupportedProtocols() { +struct miqt_array /* of int */ QSslSocket_SupportedProtocols() { QList _ret = QSslSocket::supportedProtocols(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -385,7 +385,7 @@ bool QSslSocket_IsProtocolSupported(int protocol) { return QSslSocket::isProtocolSupported(static_cast(protocol)); } -struct miqt_array QSslSocket_ImplementedClasses() { +struct miqt_array /* of int */ QSslSocket_ImplementedClasses() { QList _ret = QSslSocket::implementedClasses(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -403,7 +403,7 @@ bool QSslSocket_IsClassImplemented(int cl) { return QSslSocket::isClassImplemented(static_cast(cl)); } -struct miqt_array QSslSocket_SupportedFeatures() { +struct miqt_array /* of int */ QSslSocket_SupportedFeatures() { QList _ret = QSslSocket::supportedFeatures(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -421,7 +421,7 @@ bool QSslSocket_IsFeatureSupported(int feat) { return QSslSocket::isFeatureSupported(static_cast(feat)); } -void QSslSocket_IgnoreSslErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors) { +void QSslSocket_IgnoreSslErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors) { QList errors_QList; errors_QList.reserve(errors.len); QSslError** errors_arr = static_cast(errors.data); @@ -470,7 +470,7 @@ void QSslSocket_connect_PeerVerifyError(QSslSocket* self, intptr_t slot) { }); } -void QSslSocket_SslErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors) { +void QSslSocket_SslErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors) { QList errors_QList; errors_QList.reserve(errors.len); QSslError** errors_arr = static_cast(errors.data); @@ -491,7 +491,7 @@ void QSslSocket_connect_SslErrors(QSslSocket* self, intptr_t slot) { struct miqt_array errors_out; errors_out.len = errors_ret.length(); errors_out.data = static_cast(errors_arr); - struct miqt_array sigval1 = errors_out; + struct miqt_array /* of QSslError* */ sigval1 = errors_out; miqt_exec_callback_QSslSocket_SslErrors(slot, sigval1); }); } @@ -703,7 +703,7 @@ bool QSslSocket_WaitForDisconnected1(QSslSocket* self, int msecs) { return self->waitForDisconnected(static_cast(msecs)); } -struct miqt_array QSslSocket_SupportedProtocols1(struct miqt_string backendName) { +struct miqt_array /* of int */ QSslSocket_SupportedProtocols1(struct miqt_string backendName) { QString backendName_QString = QString::fromUtf8(backendName.data, backendName.len); QList _ret = QSslSocket::supportedProtocols(backendName_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -723,7 +723,7 @@ bool QSslSocket_IsProtocolSupported2(int protocol, struct miqt_string backendNam return QSslSocket::isProtocolSupported(static_cast(protocol), backendName_QString); } -struct miqt_array QSslSocket_ImplementedClasses1(struct miqt_string backendName) { +struct miqt_array /* of int */ QSslSocket_ImplementedClasses1(struct miqt_string backendName) { QString backendName_QString = QString::fromUtf8(backendName.data, backendName.len); QList _ret = QSslSocket::implementedClasses(backendName_QString); // Convert QList<> from C++ memory to manually-managed C memory @@ -743,7 +743,7 @@ bool QSslSocket_IsClassImplemented2(int cl, struct miqt_string backendName) { return QSslSocket::isClassImplemented(static_cast(cl), backendName_QString); } -struct miqt_array QSslSocket_SupportedFeatures1(struct miqt_string backendName) { +struct miqt_array /* of int */ QSslSocket_SupportedFeatures1(struct miqt_string backendName) { QString backendName_QString = QString::fromUtf8(backendName.data, backendName.len); QList _ret = QSslSocket::supportedFeatures(backendName_QString); // Convert QList<> from C++ memory to manually-managed C memory diff --git a/qt6/network/gen_qsslsocket.h b/qt6/network/gen_qsslsocket.h index 6cc5633c..1f4c3f48 100644 --- a/qt6/network/gen_qsslsocket.h +++ b/qt6/network/gen_qsslsocket.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSSLSOCKET_H -#define GEN_QSSLSOCKET_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QSSLSOCKET_H +#define MIQT_QT6_NETWORK_GEN_QSSLSOCKET_H #include #include @@ -74,16 +75,16 @@ long long QSslSocket_EncryptedBytesAvailable(const QSslSocket* self); long long QSslSocket_EncryptedBytesToWrite(const QSslSocket* self); QSslConfiguration* QSslSocket_SslConfiguration(const QSslSocket* self); void QSslSocket_SetSslConfiguration(QSslSocket* self, QSslConfiguration* config); -void QSslSocket_SetLocalCertificateChain(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ localChain); -struct miqt_array QSslSocket_LocalCertificateChain(const QSslSocket* self); +void QSslSocket_SetLocalCertificateChain(QSslSocket* self, struct miqt_array /* of QSslCertificate* */ localChain); +struct miqt_array /* of QSslCertificate* */ QSslSocket_LocalCertificateChain(const QSslSocket* self); void QSslSocket_SetLocalCertificate(QSslSocket* self, QSslCertificate* certificate); void QSslSocket_SetLocalCertificateWithFileName(QSslSocket* self, struct miqt_string fileName); QSslCertificate* QSslSocket_LocalCertificate(const QSslSocket* self); QSslCertificate* QSslSocket_PeerCertificate(const QSslSocket* self); -struct miqt_array QSslSocket_PeerCertificateChain(const QSslSocket* self); +struct miqt_array /* of QSslCertificate* */ QSslSocket_PeerCertificateChain(const QSslSocket* self); QSslCipher* QSslSocket_SessionCipher(const QSslSocket* self); int QSslSocket_SessionProtocol(const QSslSocket* self); -struct miqt_array QSslSocket_OcspResponses(const QSslSocket* self); +struct miqt_array /* of QOcspResponse* */ QSslSocket_OcspResponses(const QSslSocket* self); void QSslSocket_SetPrivateKey(QSslSocket* self, QSslKey* key); void QSslSocket_SetPrivateKeyWithFileName(QSslSocket* self, struct miqt_string fileName); QSslKey* QSslSocket_PrivateKey(const QSslSocket* self); @@ -92,22 +93,22 @@ bool QSslSocket_WaitForEncrypted(QSslSocket* self); bool QSslSocket_WaitForReadyRead(QSslSocket* self); bool QSslSocket_WaitForBytesWritten(QSslSocket* self); bool QSslSocket_WaitForDisconnected(QSslSocket* self); -struct miqt_array QSslSocket_SslHandshakeErrors(const QSslSocket* self); +struct miqt_array /* of QSslError* */ QSslSocket_SslHandshakeErrors(const QSslSocket* self); bool QSslSocket_SupportsSsl(); long QSslSocket_SslLibraryVersionNumber(); struct miqt_string QSslSocket_SslLibraryVersionString(); long QSslSocket_SslLibraryBuildVersionNumber(); struct miqt_string QSslSocket_SslLibraryBuildVersionString(); -struct miqt_array QSslSocket_AvailableBackends(); +struct miqt_array /* of struct miqt_string */ QSslSocket_AvailableBackends(); struct miqt_string QSslSocket_ActiveBackend(); bool QSslSocket_SetActiveBackend(struct miqt_string backendName); -struct miqt_array QSslSocket_SupportedProtocols(); +struct miqt_array /* of int */ QSslSocket_SupportedProtocols(); bool QSslSocket_IsProtocolSupported(int protocol); -struct miqt_array QSslSocket_ImplementedClasses(); +struct miqt_array /* of int */ QSslSocket_ImplementedClasses(); bool QSslSocket_IsClassImplemented(int cl); -struct miqt_array QSslSocket_SupportedFeatures(); +struct miqt_array /* of int */ QSslSocket_SupportedFeatures(); bool QSslSocket_IsFeatureSupported(int feat); -void QSslSocket_IgnoreSslErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors); +void QSslSocket_IgnoreSslErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors); void QSslSocket_ContinueInterruptedHandshake(QSslSocket* self); void QSslSocket_StartClientEncryption(QSslSocket* self); void QSslSocket_StartServerEncryption(QSslSocket* self); @@ -116,7 +117,7 @@ void QSslSocket_Encrypted(QSslSocket* self); void QSslSocket_connect_Encrypted(QSslSocket* self, intptr_t slot); void QSslSocket_PeerVerifyError(QSslSocket* self, QSslError* error); void QSslSocket_connect_PeerVerifyError(QSslSocket* self, intptr_t slot); -void QSslSocket_SslErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors); +void QSslSocket_SslErrors(QSslSocket* self, struct miqt_array /* of QSslError* */ errors); void QSslSocket_connect_SslErrors(QSslSocket* self, intptr_t slot); void QSslSocket_ModeChanged(QSslSocket* self, int newMode); void QSslSocket_connect_ModeChanged(QSslSocket* self, intptr_t slot); @@ -151,11 +152,11 @@ bool QSslSocket_WaitForEncrypted1(QSslSocket* self, int msecs); bool QSslSocket_WaitForReadyRead1(QSslSocket* self, int msecs); bool QSslSocket_WaitForBytesWritten1(QSslSocket* self, int msecs); bool QSslSocket_WaitForDisconnected1(QSslSocket* self, int msecs); -struct miqt_array QSslSocket_SupportedProtocols1(struct miqt_string backendName); +struct miqt_array /* of int */ QSslSocket_SupportedProtocols1(struct miqt_string backendName); bool QSslSocket_IsProtocolSupported2(int protocol, struct miqt_string backendName); -struct miqt_array QSslSocket_ImplementedClasses1(struct miqt_string backendName); +struct miqt_array /* of int */ QSslSocket_ImplementedClasses1(struct miqt_string backendName); bool QSslSocket_IsClassImplemented2(int cl, struct miqt_string backendName); -struct miqt_array QSslSocket_SupportedFeatures1(struct miqt_string backendName); +struct miqt_array /* of int */ QSslSocket_SupportedFeatures1(struct miqt_string backendName); bool QSslSocket_IsFeatureSupported2(int feat, struct miqt_string backendName); void QSslSocket_Delete(QSslSocket* self); diff --git a/qt6/network/gen_qtcpserver.h b/qt6/network/gen_qtcpserver.h index 09ee0f55..1b13e9c8 100644 --- a/qt6/network/gen_qtcpserver.h +++ b/qt6/network/gen_qtcpserver.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTCPSERVER_H -#define GEN_QTCPSERVER_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QTCPSERVER_H +#define MIQT_QT6_NETWORK_GEN_QTCPSERVER_H #include #include diff --git a/qt6/network/gen_qtcpsocket.h b/qt6/network/gen_qtcpsocket.h index 0b7c7d4c..51f474eb 100644 --- a/qt6/network/gen_qtcpsocket.h +++ b/qt6/network/gen_qtcpsocket.h @@ -1,5 +1,6 @@ -#ifndef GEN_QTCPSOCKET_H -#define GEN_QTCPSOCKET_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QTCPSOCKET_H +#define MIQT_QT6_NETWORK_GEN_QTCPSOCKET_H #include #include diff --git a/qt6/network/gen_qudpsocket.h b/qt6/network/gen_qudpsocket.h index adb7928b..f3f07e44 100644 --- a/qt6/network/gen_qudpsocket.h +++ b/qt6/network/gen_qudpsocket.h @@ -1,5 +1,6 @@ -#ifndef GEN_QUDPSOCKET_H -#define GEN_QUDPSOCKET_H +#pragma once +#ifndef MIQT_QT6_NETWORK_GEN_QUDPSOCKET_H +#define MIQT_QT6_NETWORK_GEN_QUDPSOCKET_H #include #include diff --git a/qt6/printsupport/gen_qabstractprintdialog.cpp b/qt6/printsupport/gen_qabstractprintdialog.cpp index b30e036b..4dc69ba2 100644 --- a/qt6/printsupport/gen_qabstractprintdialog.cpp +++ b/qt6/printsupport/gen_qabstractprintdialog.cpp @@ -37,7 +37,7 @@ struct miqt_string QAbstractPrintDialog_Tr(const char* s) { return _ms; } -void QAbstractPrintDialog_SetOptionTabs(QAbstractPrintDialog* self, struct miqt_array /* of QWidget* */ tabs) { +void QAbstractPrintDialog_SetOptionTabs(QAbstractPrintDialog* self, struct miqt_array /* of QWidget* */ tabs) { QList tabs_QList; tabs_QList.reserve(tabs.len); QWidget** tabs_arr = static_cast(tabs.data); diff --git a/qt6/printsupport/gen_qabstractprintdialog.h b/qt6/printsupport/gen_qabstractprintdialog.h index e6cb0542..e39ab16c 100644 --- a/qt6/printsupport/gen_qabstractprintdialog.h +++ b/qt6/printsupport/gen_qabstractprintdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QABSTRACTPRINTDIALOG_H -#define GEN_QABSTRACTPRINTDIALOG_H +#pragma once +#ifndef MIQT_QT6_PRINTSUPPORT_GEN_QABSTRACTPRINTDIALOG_H +#define MIQT_QT6_PRINTSUPPORT_GEN_QABSTRACTPRINTDIALOG_H #include #include @@ -30,7 +31,7 @@ QAbstractPrintDialog* QAbstractPrintDialog_new2(QPrinter* printer, QWidget* pare QMetaObject* QAbstractPrintDialog_MetaObject(const QAbstractPrintDialog* self); void* QAbstractPrintDialog_Metacast(QAbstractPrintDialog* self, const char* param1); struct miqt_string QAbstractPrintDialog_Tr(const char* s); -void QAbstractPrintDialog_SetOptionTabs(QAbstractPrintDialog* self, struct miqt_array /* of QWidget* */ tabs); +void QAbstractPrintDialog_SetOptionTabs(QAbstractPrintDialog* self, struct miqt_array /* of QWidget* */ tabs); void QAbstractPrintDialog_SetPrintRange(QAbstractPrintDialog* self, int rangeVal); int QAbstractPrintDialog_PrintRange(const QAbstractPrintDialog* self); void QAbstractPrintDialog_SetMinMax(QAbstractPrintDialog* self, int min, int max); diff --git a/qt6/printsupport/gen_qpagesetupdialog.h b/qt6/printsupport/gen_qpagesetupdialog.h index f2c609fa..e197d923 100644 --- a/qt6/printsupport/gen_qpagesetupdialog.h +++ b/qt6/printsupport/gen_qpagesetupdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPAGESETUPDIALOG_H -#define GEN_QPAGESETUPDIALOG_H +#pragma once +#ifndef MIQT_QT6_PRINTSUPPORT_GEN_QPAGESETUPDIALOG_H +#define MIQT_QT6_PRINTSUPPORT_GEN_QPAGESETUPDIALOG_H #include #include diff --git a/qt6/printsupport/gen_qprintdialog.h b/qt6/printsupport/gen_qprintdialog.h index 753bca74..b9daf22f 100644 --- a/qt6/printsupport/gen_qprintdialog.h +++ b/qt6/printsupport/gen_qprintdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPRINTDIALOG_H -#define GEN_QPRINTDIALOG_H +#pragma once +#ifndef MIQT_QT6_PRINTSUPPORT_GEN_QPRINTDIALOG_H +#define MIQT_QT6_PRINTSUPPORT_GEN_QPRINTDIALOG_H #include #include diff --git a/qt6/printsupport/gen_qprintengine.h b/qt6/printsupport/gen_qprintengine.h index c29d9bd5..a1365351 100644 --- a/qt6/printsupport/gen_qprintengine.h +++ b/qt6/printsupport/gen_qprintengine.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPRINTENGINE_H -#define GEN_QPRINTENGINE_H +#pragma once +#ifndef MIQT_QT6_PRINTSUPPORT_GEN_QPRINTENGINE_H +#define MIQT_QT6_PRINTSUPPORT_GEN_QPRINTENGINE_H #include #include diff --git a/qt6/printsupport/gen_qprinter.cpp b/qt6/printsupport/gen_qprinter.cpp index dc41d588..8788b40d 100644 --- a/qt6/printsupport/gen_qprinter.cpp +++ b/qt6/printsupport/gen_qprinter.cpp @@ -205,7 +205,7 @@ int QPrinter_Duplex(const QPrinter* self) { return static_cast(_ret); } -struct miqt_array QPrinter_SupportedResolutions(const QPrinter* self) { +struct miqt_array /* of int */ QPrinter_SupportedResolutions(const QPrinter* self) { QList _ret = self->supportedResolutions(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); diff --git a/qt6/printsupport/gen_qprinter.h b/qt6/printsupport/gen_qprinter.h index c9a3909b..ef5d6b51 100644 --- a/qt6/printsupport/gen_qprinter.h +++ b/qt6/printsupport/gen_qprinter.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPRINTER_H -#define GEN_QPRINTER_H +#pragma once +#ifndef MIQT_QT6_PRINTSUPPORT_GEN_QPRINTER_H +#define MIQT_QT6_PRINTSUPPORT_GEN_QPRINTER_H #include #include @@ -64,7 +65,7 @@ void QPrinter_SetPaperSource(QPrinter* self, int paperSource); int QPrinter_PaperSource(const QPrinter* self); void QPrinter_SetDuplex(QPrinter* self, int duplex); int QPrinter_Duplex(const QPrinter* self); -struct miqt_array QPrinter_SupportedResolutions(const QPrinter* self); +struct miqt_array /* of int */ QPrinter_SupportedResolutions(const QPrinter* self); void QPrinter_SetFontEmbeddingEnabled(QPrinter* self, bool enable); bool QPrinter_FontEmbeddingEnabled(const QPrinter* self); QRectF* QPrinter_PaperRect(const QPrinter* self, int param1); diff --git a/qt6/printsupport/gen_qprinterinfo.cpp b/qt6/printsupport/gen_qprinterinfo.cpp index 93d6734f..30674afd 100644 --- a/qt6/printsupport/gen_qprinterinfo.cpp +++ b/qt6/printsupport/gen_qprinterinfo.cpp @@ -86,7 +86,7 @@ int QPrinterInfo_State(const QPrinterInfo* self) { return static_cast(_ret); } -struct miqt_array QPrinterInfo_SupportedPageSizes(const QPrinterInfo* self) { +struct miqt_array /* of QPageSize* */ QPrinterInfo_SupportedPageSizes(const QPrinterInfo* self) { QList _ret = self->supportedPageSizes(); // Convert QList<> from C++ memory to manually-managed C memory QPageSize** _arr = static_cast(malloc(sizeof(QPageSize*) * _ret.length())); @@ -115,7 +115,7 @@ QPageSize* QPrinterInfo_MaximumPhysicalPageSize(const QPrinterInfo* self) { return new QPageSize(self->maximumPhysicalPageSize()); } -struct miqt_array QPrinterInfo_SupportedResolutions(const QPrinterInfo* self) { +struct miqt_array /* of int */ QPrinterInfo_SupportedResolutions(const QPrinterInfo* self) { QList _ret = self->supportedResolutions(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -133,7 +133,7 @@ int QPrinterInfo_DefaultDuplexMode(const QPrinterInfo* self) { return static_cast(_ret); } -struct miqt_array QPrinterInfo_SupportedDuplexModes(const QPrinterInfo* self) { +struct miqt_array /* of int */ QPrinterInfo_SupportedDuplexModes(const QPrinterInfo* self) { QList _ret = self->supportedDuplexModes(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -152,7 +152,7 @@ int QPrinterInfo_DefaultColorMode(const QPrinterInfo* self) { return static_cast(_ret); } -struct miqt_array QPrinterInfo_SupportedColorModes(const QPrinterInfo* self) { +struct miqt_array /* of int */ QPrinterInfo_SupportedColorModes(const QPrinterInfo* self) { QList _ret = self->supportedColorModes(); // Convert QList<> from C++ memory to manually-managed C memory int* _arr = static_cast(malloc(sizeof(int) * _ret.length())); @@ -166,7 +166,7 @@ struct miqt_array QPrinterInfo_SupportedColorModes(const QPrinterInfo* self) { return _out; } -struct miqt_array QPrinterInfo_AvailablePrinterNames() { +struct miqt_array /* of struct miqt_string */ QPrinterInfo_AvailablePrinterNames() { QStringList _ret = QPrinterInfo::availablePrinterNames(); // Convert QList<> from C++ memory to manually-managed C memory struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); @@ -186,7 +186,7 @@ struct miqt_array QPrinterInfo_AvailablePrinterNames() { return _out; } -struct miqt_array QPrinterInfo_AvailablePrinters() { +struct miqt_array /* of QPrinterInfo* */ QPrinterInfo_AvailablePrinters() { QList _ret = QPrinterInfo::availablePrinters(); // Convert QList<> from C++ memory to manually-managed C memory QPrinterInfo** _arr = static_cast(malloc(sizeof(QPrinterInfo*) * _ret.length())); diff --git a/qt6/printsupport/gen_qprinterinfo.h b/qt6/printsupport/gen_qprinterinfo.h index 675dc804..5b871647 100644 --- a/qt6/printsupport/gen_qprinterinfo.h +++ b/qt6/printsupport/gen_qprinterinfo.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPRINTERINFO_H -#define GEN_QPRINTERINFO_H +#pragma once +#ifndef MIQT_QT6_PRINTSUPPORT_GEN_QPRINTERINFO_H +#define MIQT_QT6_PRINTSUPPORT_GEN_QPRINTERINFO_H #include #include @@ -35,18 +36,18 @@ bool QPrinterInfo_IsNull(const QPrinterInfo* self); bool QPrinterInfo_IsDefault(const QPrinterInfo* self); bool QPrinterInfo_IsRemote(const QPrinterInfo* self); int QPrinterInfo_State(const QPrinterInfo* self); -struct miqt_array QPrinterInfo_SupportedPageSizes(const QPrinterInfo* self); +struct miqt_array /* of QPageSize* */ QPrinterInfo_SupportedPageSizes(const QPrinterInfo* self); QPageSize* QPrinterInfo_DefaultPageSize(const QPrinterInfo* self); bool QPrinterInfo_SupportsCustomPageSizes(const QPrinterInfo* self); QPageSize* QPrinterInfo_MinimumPhysicalPageSize(const QPrinterInfo* self); QPageSize* QPrinterInfo_MaximumPhysicalPageSize(const QPrinterInfo* self); -struct miqt_array QPrinterInfo_SupportedResolutions(const QPrinterInfo* self); +struct miqt_array /* of int */ QPrinterInfo_SupportedResolutions(const QPrinterInfo* self); int QPrinterInfo_DefaultDuplexMode(const QPrinterInfo* self); -struct miqt_array QPrinterInfo_SupportedDuplexModes(const QPrinterInfo* self); +struct miqt_array /* of int */ QPrinterInfo_SupportedDuplexModes(const QPrinterInfo* self); int QPrinterInfo_DefaultColorMode(const QPrinterInfo* self); -struct miqt_array QPrinterInfo_SupportedColorModes(const QPrinterInfo* self); -struct miqt_array QPrinterInfo_AvailablePrinterNames(); -struct miqt_array QPrinterInfo_AvailablePrinters(); +struct miqt_array /* of int */ QPrinterInfo_SupportedColorModes(const QPrinterInfo* self); +struct miqt_array /* of struct miqt_string */ QPrinterInfo_AvailablePrinterNames(); +struct miqt_array /* of QPrinterInfo* */ QPrinterInfo_AvailablePrinters(); struct miqt_string QPrinterInfo_DefaultPrinterName(); QPrinterInfo* QPrinterInfo_DefaultPrinter(); QPrinterInfo* QPrinterInfo_PrinterInfo(struct miqt_string printerName); diff --git a/qt6/printsupport/gen_qprintpreviewdialog.h b/qt6/printsupport/gen_qprintpreviewdialog.h index f17ae8e7..05f3fe60 100644 --- a/qt6/printsupport/gen_qprintpreviewdialog.h +++ b/qt6/printsupport/gen_qprintpreviewdialog.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPRINTPREVIEWDIALOG_H -#define GEN_QPRINTPREVIEWDIALOG_H +#pragma once +#ifndef MIQT_QT6_PRINTSUPPORT_GEN_QPRINTPREVIEWDIALOG_H +#define MIQT_QT6_PRINTSUPPORT_GEN_QPRINTPREVIEWDIALOG_H #include #include diff --git a/qt6/printsupport/gen_qprintpreviewwidget.h b/qt6/printsupport/gen_qprintpreviewwidget.h index 93161ff8..fc25e4e4 100644 --- a/qt6/printsupport/gen_qprintpreviewwidget.h +++ b/qt6/printsupport/gen_qprintpreviewwidget.h @@ -1,5 +1,6 @@ -#ifndef GEN_QPRINTPREVIEWWIDGET_H -#define GEN_QPRINTPREVIEWWIDGET_H +#pragma once +#ifndef MIQT_QT6_PRINTSUPPORT_GEN_QPRINTPREVIEWWIDGET_H +#define MIQT_QT6_PRINTSUPPORT_GEN_QPRINTPREVIEWWIDGET_H #include #include diff --git a/qt6/spatialaudio/gen_qambientsound.h b/qt6/spatialaudio/gen_qambientsound.h index 8241ad2c..8d3aa1e3 100644 --- a/qt6/spatialaudio/gen_qambientsound.h +++ b/qt6/spatialaudio/gen_qambientsound.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAMBIENTSOUND_H -#define GEN_QAMBIENTSOUND_H +#pragma once +#ifndef MIQT_QT6_SPATIALAUDIO_GEN_QAMBIENTSOUND_H +#define MIQT_QT6_SPATIALAUDIO_GEN_QAMBIENTSOUND_H #include #include diff --git a/qt6/spatialaudio/gen_qaudioengine.h b/qt6/spatialaudio/gen_qaudioengine.h index 46657f55..8a72cfed 100644 --- a/qt6/spatialaudio/gen_qaudioengine.h +++ b/qt6/spatialaudio/gen_qaudioengine.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOENGINE_H -#define GEN_QAUDIOENGINE_H +#pragma once +#ifndef MIQT_QT6_SPATIALAUDIO_GEN_QAUDIOENGINE_H +#define MIQT_QT6_SPATIALAUDIO_GEN_QAUDIOENGINE_H #include #include diff --git a/qt6/spatialaudio/gen_qaudiolistener.h b/qt6/spatialaudio/gen_qaudiolistener.h index 4a64af2b..3881adf2 100644 --- a/qt6/spatialaudio/gen_qaudiolistener.h +++ b/qt6/spatialaudio/gen_qaudiolistener.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOLISTENER_H -#define GEN_QAUDIOLISTENER_H +#pragma once +#ifndef MIQT_QT6_SPATIALAUDIO_GEN_QAUDIOLISTENER_H +#define MIQT_QT6_SPATIALAUDIO_GEN_QAUDIOLISTENER_H #include #include diff --git a/qt6/spatialaudio/gen_qaudioroom.h b/qt6/spatialaudio/gen_qaudioroom.h index 3d886fc9..5d522cea 100644 --- a/qt6/spatialaudio/gen_qaudioroom.h +++ b/qt6/spatialaudio/gen_qaudioroom.h @@ -1,5 +1,6 @@ -#ifndef GEN_QAUDIOROOM_H -#define GEN_QAUDIOROOM_H +#pragma once +#ifndef MIQT_QT6_SPATIALAUDIO_GEN_QAUDIOROOM_H +#define MIQT_QT6_SPATIALAUDIO_GEN_QAUDIOROOM_H #include #include diff --git a/qt6/spatialaudio/gen_qspatialsound.h b/qt6/spatialaudio/gen_qspatialsound.h index 34aa7968..93341e2d 100644 --- a/qt6/spatialaudio/gen_qspatialsound.h +++ b/qt6/spatialaudio/gen_qspatialsound.h @@ -1,5 +1,6 @@ -#ifndef GEN_QSPATIALSOUND_H -#define GEN_QSPATIALSOUND_H +#pragma once +#ifndef MIQT_QT6_SPATIALAUDIO_GEN_QSPATIALSOUND_H +#define MIQT_QT6_SPATIALAUDIO_GEN_QSPATIALSOUND_H #include #include