From 37cb716ccfb6759cd13a81a58e37bc35ecc40753 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 20 Oct 2024 17:59:23 +1300 Subject: [PATCH] qscintilla: build --- .../qscintilla/gen_qsciabstractapis.cpp | 147 ++ .../qscintilla/gen_qsciabstractapis.go | 205 ++ .../qscintilla/gen_qsciabstractapis.h | 44 + .../qscintilla/gen_qsciapis.cpp | 267 ++ .../qscintilla/gen_qsciapis.go | 356 +++ .../qscintilla/gen_qsciapis.h | 67 + .../qscintilla/gen_qscicommand.cpp | 51 + .../qscintilla/gen_qscicommand.go | 196 ++ .../qscintilla/gen_qscicommand.h | 36 + .../qscintilla/gen_qscicommandset.cpp | 51 + .../qscintilla/gen_qscicommandset.go | 90 + .../qscintilla/gen_qscicommandset.h | 40 + .../qscintilla/gen_qscidocument.cpp | 20 + .../qscintilla/gen_qscidocument.go | 73 + .../qscintilla/gen_qscidocument.h | 31 + .../qscintilla/gen_qscilexer.cpp | 391 +++ .../qscintilla/gen_qscilexer.go | 512 ++++ .../qscintilla/gen_qscilexer.h | 111 + .../qscintilla/gen_qscilexeravs.cpp | 156 ++ .../qscintilla/gen_qscilexeravs.go | 228 ++ .../qscintilla/gen_qscilexeravs.h | 59 + .../qscintilla/gen_qscilexerbash.cpp | 164 ++ .../qscintilla/gen_qscilexerbash.go | 238 ++ .../qscintilla/gen_qscilexerbash.h | 61 + .../qscintilla/gen_qscilexerbatch.cpp | 144 ++ .../qscintilla/gen_qscilexerbatch.go | 212 ++ .../qscintilla/gen_qscilexerbatch.h | 56 + .../qscintilla/gen_qscilexercmake.cpp | 144 ++ .../qscintilla/gen_qscilexercmake.go | 218 ++ .../qscintilla/gen_qscilexercmake.h | 56 + .../qscintilla/gen_qscilexercoffeescript.cpp | 225 ++ .../qscintilla/gen_qscilexercoffeescript.go | 308 +++ .../qscintilla/gen_qscilexercoffeescript.h | 72 + .../qscintilla/gen_qscilexercpp.cpp | 285 +++ .../qscintilla/gen_qscilexercpp.go | 402 +++ .../qscintilla/gen_qscilexercpp.h | 87 + .../qscintilla/gen_qscilexercsharp.cpp | 132 + .../qscintilla/gen_qscilexercsharp.go | 185 ++ .../qscintilla/gen_qscilexercsharp.h | 53 + .../qscintilla/gen_qscilexercss.cpp | 192 ++ .../qscintilla/gen_qscilexercss.go | 277 +++ .../qscintilla/gen_qscilexercss.h | 68 + .../qscintilla/gen_qscilexercustom.cpp | 114 + .../qscintilla/gen_qscilexercustom.go | 159 ++ .../qscintilla/gen_qscilexercustom.h | 49 + .../qscintilla/gen_qscilexerd.cpp | 217 ++ .../qscintilla/gen_qscilexerd.go | 299 +++ .../qscintilla/gen_qscilexerd.h | 70 + .../qscintilla/gen_qscilexerdiff.cpp | 123 + .../qscintilla/gen_qscilexerdiff.go | 189 ++ .../qscintilla/gen_qscilexerdiff.h | 49 + .../qscintilla/gen_qscilexeredifact.cpp | 119 + .../qscintilla/gen_qscilexeredifact.go | 181 ++ .../qscintilla/gen_qscilexeredifact.h | 48 + .../qscintilla/gen_qscilexerfortran.cpp | 107 + .../qscintilla/gen_qscilexerfortran.go | 158 ++ .../qscintilla/gen_qscilexerfortran.h | 45 + .../qscintilla/gen_qscilexerfortran77.cpp | 152 ++ .../qscintilla/gen_qscilexerfortran77.go | 226 ++ .../qscintilla/gen_qscilexerfortran77.h | 58 + .../qscintilla/gen_qscilexerhtml.cpp | 204 ++ .../qscintilla/gen_qscilexerhtml.go | 375 +++ .../qscintilla/gen_qscilexerhtml.h | 71 + .../qscintilla/gen_qscilexeridl.cpp | 119 + .../qscintilla/gen_qscilexeridl.go | 167 ++ .../qscintilla/gen_qscilexeridl.h | 48 + .../qscintilla/gen_qscilexerjava.cpp | 103 + .../qscintilla/gen_qscilexerjava.go | 153 ++ .../qscintilla/gen_qscilexerjava.h | 44 + .../qscintilla/gen_qscilexerjavascript.cpp | 132 + .../qscintilla/gen_qscilexerjavascript.go | 185 ++ .../qscintilla/gen_qscilexerjavascript.h | 53 + .../qscintilla/gen_qscilexerjson.cpp | 164 ++ .../qscintilla/gen_qscilexerjson.go | 237 ++ .../qscintilla/gen_qscilexerjson.h | 61 + .../qscintilla/gen_qscilexerlua.cpp | 181 ++ .../qscintilla/gen_qscilexerlua.go | 255 ++ .../qscintilla/gen_qscilexerlua.h | 61 + .../qscintilla/gen_qscilexermakefile.cpp | 136 + .../qscintilla/gen_qscilexermakefile.go | 202 ++ .../qscintilla/gen_qscilexermakefile.h | 54 + .../qscintilla/gen_qscilexermarkdown.cpp | 128 + .../qscintilla/gen_qscilexermarkdown.go | 208 ++ .../qscintilla/gen_qscilexermarkdown.h | 52 + .../qscintilla/gen_qscilexermatlab.cpp | 128 + .../qscintilla/gen_qscilexermatlab.go | 193 ++ .../qscintilla/gen_qscilexermatlab.h | 52 + .../qscintilla/gen_qscilexeroctave.cpp | 107 + .../qscintilla/gen_qscilexeroctave.go | 158 ++ .../qscintilla/gen_qscilexeroctave.h | 45 + .../qscintilla/gen_qscilexerpascal.cpp | 221 ++ .../qscintilla/gen_qscilexerpascal.go | 294 +++ .../qscintilla/gen_qscilexerpascal.h | 71 + .../qscintilla/gen_qscilexerperl.cpp | 225 ++ .../qscintilla/gen_qscilexerperl.go | 323 +++ .../qscintilla/gen_qscilexerperl.h | 72 + .../qscintilla/gen_qscilexerpo.cpp | 144 ++ .../qscintilla/gen_qscilexerpo.go | 214 ++ .../qscintilla/gen_qscilexerpo.h | 56 + .../qscintilla/gen_qscilexerpostscript.cpp | 172 ++ .../qscintilla/gen_qscilexerpostscript.go | 247 ++ .../qscintilla/gen_qscilexerpostscript.h | 63 + .../qscintilla/gen_qscilexerpov.cpp | 172 ++ .../qscintilla/gen_qscilexerpov.go | 249 ++ .../qscintilla/gen_qscilexerpov.h | 63 + .../qscintilla/gen_qscilexerproperties.cpp | 156 ++ .../qscintilla/gen_qscilexerproperties.go | 221 ++ .../qscintilla/gen_qscilexerproperties.h | 59 + .../qscintilla/gen_qscilexerpython.cpp | 254 ++ .../qscintilla/gen_qscilexerpython.go | 337 +++ .../qscintilla/gen_qscilexerpython.h | 79 + .../qscintilla/gen_qscilexerruby.cpp | 184 ++ .../qscintilla/gen_qscilexerruby.go | 280 +++ .../qscintilla/gen_qscilexerruby.h | 66 + .../qscintilla/gen_qscilexerspice.cpp | 132 + .../qscintilla/gen_qscilexerspice.go | 197 ++ .../qscintilla/gen_qscilexerspice.h | 53 + .../qscintilla/gen_qscilexersql.cpp | 208 ++ .../qscintilla/gen_qscilexersql.go | 289 +++ .../qscintilla/gen_qscilexersql.h | 72 + .../qscintilla/gen_qscilexertcl.cpp | 152 ++ .../qscintilla/gen_qscilexertcl.go | 233 ++ .../qscintilla/gen_qscilexertcl.h | 58 + .../qscintilla/gen_qscilexertex.cpp | 163 ++ .../qscintilla/gen_qscilexertex.go | 224 ++ .../qscintilla/gen_qscilexertex.h | 59 + .../qscintilla/gen_qscilexerverilog.cpp | 188 ++ .../qscintilla/gen_qscilexerverilog.go | 286 +++ .../qscintilla/gen_qscilexerverilog.h | 67 + .../qscintilla/gen_qscilexervhdl.cpp | 184 ++ .../qscintilla/gen_qscilexervhdl.go | 259 ++ .../qscintilla/gen_qscilexervhdl.h | 66 + .../qscintilla/gen_qscilexerxml.cpp | 137 + .../qscintilla/gen_qscilexerxml.go | 195 ++ .../qscintilla/gen_qscilexerxml.h | 56 + .../qscintilla/gen_qscilexeryaml.cpp | 148 ++ .../qscintilla/gen_qscilexeryaml.go | 217 ++ .../qscintilla/gen_qscilexeryaml.h | 57 + .../qscintilla/gen_qscimacro.cpp | 127 + .../qscintilla/gen_qscimacro.go | 178 ++ .../qscintilla/gen_qscimacro.h | 48 + .../qscintilla/gen_qsciprinter.cpp | 63 + .../qscintilla/gen_qsciprinter.go | 116 + .../qscintilla/gen_qsciprinter.h | 47 + .../qscintilla/gen_qsciscintilla.cpp | 1562 ++++++++++++ .../qscintilla/gen_qsciscintilla.go | 1958 +++++++++++++++ .../qscintilla/gen_qsciscintilla.h | 385 +++ .../qscintilla/gen_qsciscintillabase.cpp | 614 +++++ .../qscintilla/gen_qsciscintillabase.go | 2207 +++++++++++++++++ .../qscintilla/gen_qsciscintillabase.h | 148 ++ .../qscintilla/gen_qscistyle.cpp | 132 + .../qscintilla/gen_qscistyle.go | 208 ++ .../qscintilla/gen_qscistyle.h | 61 + .../qscintilla/gen_qscistyledtext.cpp | 44 + .../qscintilla/gen_qscistyledtext.go | 98 + .../qscintilla/gen_qscistyledtext.h | 38 + 156 files changed, 29105 insertions(+) create mode 100644 qt-restricted-extras/qscintilla/gen_qsciabstractapis.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qsciabstractapis.go create mode 100644 qt-restricted-extras/qscintilla/gen_qsciabstractapis.h create mode 100644 qt-restricted-extras/qscintilla/gen_qsciapis.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qsciapis.go create mode 100644 qt-restricted-extras/qscintilla/gen_qsciapis.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscicommand.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscicommand.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscicommand.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscicommandset.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscicommandset.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscicommandset.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscidocument.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscidocument.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscidocument.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexer.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexer.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexer.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeravs.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeravs.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeravs.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerbash.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerbash.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerbash.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerbatch.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerbatch.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerbatch.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercmake.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercmake.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercmake.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercpp.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercpp.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercpp.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercsharp.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercsharp.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercsharp.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercss.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercss.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercss.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercustom.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercustom.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexercustom.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerd.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerd.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerd.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerdiff.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerdiff.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerdiff.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeredifact.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeredifact.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeredifact.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerfortran.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerfortran.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerfortran.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerfortran77.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerfortran77.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerfortran77.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerhtml.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerhtml.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerhtml.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeridl.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeridl.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeridl.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerjava.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerjava.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerjava.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerjavascript.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerjavascript.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerjavascript.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerjson.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerjson.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerjson.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerlua.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerlua.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerlua.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexermakefile.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexermakefile.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexermakefile.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexermarkdown.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexermarkdown.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexermarkdown.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexermatlab.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexermatlab.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexermatlab.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeroctave.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeroctave.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeroctave.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpascal.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpascal.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpascal.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerperl.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerperl.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerperl.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpo.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpo.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpo.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpostscript.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpostscript.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpostscript.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpov.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpov.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpov.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerproperties.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerproperties.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerproperties.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpython.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpython.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerpython.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerruby.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerruby.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerruby.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerspice.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerspice.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerspice.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexersql.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexersql.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexersql.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexertcl.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexertcl.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexertcl.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexertex.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexertex.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexertex.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerverilog.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerverilog.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerverilog.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexervhdl.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexervhdl.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexervhdl.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerxml.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerxml.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexerxml.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeryaml.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeryaml.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscilexeryaml.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscimacro.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscimacro.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscimacro.h create mode 100644 qt-restricted-extras/qscintilla/gen_qsciprinter.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qsciprinter.go create mode 100644 qt-restricted-extras/qscintilla/gen_qsciprinter.h create mode 100644 qt-restricted-extras/qscintilla/gen_qsciscintilla.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qsciscintilla.go create mode 100644 qt-restricted-extras/qscintilla/gen_qsciscintilla.h create mode 100644 qt-restricted-extras/qscintilla/gen_qsciscintillabase.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qsciscintillabase.go create mode 100644 qt-restricted-extras/qscintilla/gen_qsciscintillabase.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscistyle.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscistyle.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscistyle.h create mode 100644 qt-restricted-extras/qscintilla/gen_qscistyledtext.cpp create mode 100644 qt-restricted-extras/qscintilla/gen_qscistyledtext.go create mode 100644 qt-restricted-extras/qscintilla/gen_qscistyledtext.h diff --git a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.cpp b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.cpp new file mode 100644 index 00000000..34e27ef6 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.cpp @@ -0,0 +1,147 @@ +#include +#include +#include +#include +#include +#include +#include "gen_qsciabstractapis.h" +#include "_cgo_export.h" + +QMetaObject* QsciAbstractAPIs_MetaObject(const QsciAbstractAPIs* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciAbstractAPIs_Metacast(QsciAbstractAPIs* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciAbstractAPIs_Tr(const char* s) { + QString _ret = QsciAbstractAPIs::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciAbstractAPIs_TrUtf8(const char* s) { + QString _ret = QsciAbstractAPIs::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +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) { + QStringList context_QList; + context_QList.reserve(context->len); + struct miqt_string* context_arr = static_cast(context->data); + for(size_t i = 0; i < context->len; ++i) { + QString context_arr_i_QString = QString::fromUtf8(context_arr[i].data, context_arr[i].len); + context_QList.push_back(context_arr_i_QString); + } + QStringList list_QList; + list_QList.reserve(list->len); + struct miqt_string* list_arr = static_cast(list->data); + for(size_t i = 0; i < list->len; ++i) { + QString list_arr_i_QString = QString::fromUtf8(list_arr[i].data, list_arr[i].len); + list_QList.push_back(list_arr_i_QString); + } + self->updateAutoCompletionList(context_QList, list_QList); +} + +void QsciAbstractAPIs_AutoCompletionSelected(QsciAbstractAPIs* self, struct miqt_string selection) { + QString selection_QString = QString::fromUtf8(selection.data, selection.len); + 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) { + QStringList context_QList; + context_QList.reserve(context->len); + struct miqt_string* context_arr = static_cast(context->data); + for(size_t i = 0; i < context->len; ++i) { + QString context_arr_i_QString = QString::fromUtf8(context_arr[i].data, context_arr[i].len); + context_QList.push_back(context_arr_i_QString); + } + QList shifts_QList; + shifts_QList.reserve(shifts->len); + int* shifts_arr = static_cast(shifts->data); + for(size_t i = 0; i < shifts->len; ++i) { + shifts_QList.push_back(static_cast(shifts_arr[i])); + } + QStringList _ret = self->callTips(context_QList, static_cast(commas), static_cast(style), shifts_QList); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QString _lv_ret = _ret[i]; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_b = _lv_ret.toUtf8(); + struct miqt_string _lv_ms; + _lv_ms.len = _lv_b.length(); + _lv_ms.data = static_cast(malloc(_lv_ms.len)); + memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len); + _arr[i] = _lv_ms; + } + struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); + _out->len = _ret.length(); + _out->data = static_cast(_arr); + return _out; +} + +struct miqt_string QsciAbstractAPIs_Tr2(const char* s, const char* c) { + QString _ret = QsciAbstractAPIs::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciAbstractAPIs_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciAbstractAPIs::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciAbstractAPIs_TrUtf82(const char* s, const char* c) { + QString _ret = QsciAbstractAPIs::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciAbstractAPIs_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciAbstractAPIs::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciAbstractAPIs_Delete(QsciAbstractAPIs* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.go b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.go new file mode 100644 index 00000000..c47db279 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.go @@ -0,0 +1,205 @@ +package qscintilla + +/* + +#include "gen_qsciabstractapis.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciAbstractAPIs struct { + h *C.QsciAbstractAPIs + *qt.QObject +} + +func (this *QsciAbstractAPIs) cPointer() *C.QsciAbstractAPIs { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciAbstractAPIs) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciAbstractAPIs(h *C.QsciAbstractAPIs) *QsciAbstractAPIs { + if h == nil { + return nil + } + return &QsciAbstractAPIs{h: h, QObject: qt.UnsafeNewQObject(unsafe.Pointer(h))} +} + +func UnsafeNewQsciAbstractAPIs(h unsafe.Pointer) *QsciAbstractAPIs { + return newQsciAbstractAPIs((*C.QsciAbstractAPIs)(h)) +} + +func (this *QsciAbstractAPIs) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciAbstractAPIs_MetaObject(this.h))) +} + +func (this *QsciAbstractAPIs) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciAbstractAPIs_Metacast(this.h, param1_Cstring)) +} + +func QsciAbstractAPIs_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciAbstractAPIs_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciAbstractAPIs_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciAbstractAPIs_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciAbstractAPIs) Lexer() *QsciLexer { + return UnsafeNewQsciLexer(unsafe.Pointer(C.QsciAbstractAPIs_Lexer(this.h))) +} + +func (this *QsciAbstractAPIs) UpdateAutoCompletionList(context []string, list []string) { + // For the C ABI, malloc a C array of structs + context_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(context)))) + defer C.free(unsafe.Pointer(context_CArray)) + for i := range context { + context_i_ms := C.struct_miqt_string{} + context_i_ms.data = C.CString(context[i]) + context_i_ms.len = C.size_t(len(context[i])) + defer C.free(unsafe.Pointer(context_i_ms.data)) + context_CArray[i] = context_i_ms + } + context_ma := &C.struct_miqt_array{len: C.size_t(len(context)), data: unsafe.Pointer(context_CArray)} + defer runtime.KeepAlive(unsafe.Pointer(context_ma)) + // For the C ABI, malloc a C array of structs + list_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(list)))) + defer C.free(unsafe.Pointer(list_CArray)) + for i := range list { + list_i_ms := C.struct_miqt_string{} + list_i_ms.data = C.CString(list[i]) + list_i_ms.len = C.size_t(len(list[i])) + defer C.free(unsafe.Pointer(list_i_ms.data)) + list_CArray[i] = list_i_ms + } + list_ma := &C.struct_miqt_array{len: C.size_t(len(list)), data: unsafe.Pointer(list_CArray)} + defer runtime.KeepAlive(unsafe.Pointer(list_ma)) + C.QsciAbstractAPIs_UpdateAutoCompletionList(this.h, context_ma, list_ma) +} + +func (this *QsciAbstractAPIs) AutoCompletionSelected(selection string) { + selection_ms := C.struct_miqt_string{} + selection_ms.data = C.CString(selection) + selection_ms.len = C.size_t(len(selection)) + defer C.free(unsafe.Pointer(selection_ms.data)) + C.QsciAbstractAPIs_AutoCompletionSelected(this.h, selection_ms) +} + +func (this *QsciAbstractAPIs) CallTips(context []string, commas int, style QsciScintilla__CallTipsStyle, shifts []int) []string { + // For the C ABI, malloc a C array of structs + context_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(context)))) + defer C.free(unsafe.Pointer(context_CArray)) + for i := range context { + context_i_ms := C.struct_miqt_string{} + context_i_ms.data = C.CString(context[i]) + context_i_ms.len = C.size_t(len(context[i])) + defer C.free(unsafe.Pointer(context_i_ms.data)) + context_CArray[i] = context_i_ms + } + context_ma := &C.struct_miqt_array{len: C.size_t(len(context)), data: unsafe.Pointer(context_CArray)} + defer runtime.KeepAlive(unsafe.Pointer(context_ma)) + // For the C ABI, malloc a C array of raw pointers + shifts_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(shifts)))) + defer C.free(unsafe.Pointer(shifts_CArray)) + for i := range shifts { + shifts_CArray[i] = (C.int)(shifts[i]) + } + shifts_ma := &C.struct_miqt_array{len: C.size_t(len(shifts)), data: unsafe.Pointer(shifts_CArray)} + defer runtime.KeepAlive(unsafe.Pointer(shifts_ma)) + var _ma *C.struct_miqt_array = C.QsciAbstractAPIs_CallTips(this.h, context_ma, (C.int)(commas), (C.int)(style), shifts_ma) + _ret := make([]string, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_ms C.struct_miqt_string = _outCast[i] + _lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len))) + C.free(unsafe.Pointer(_lv_ms.data)) + _ret[i] = _lv_ret + } + C.free(unsafe.Pointer(_ma)) + return _ret +} + +func QsciAbstractAPIs_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciAbstractAPIs_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciAbstractAPIs_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciAbstractAPIs_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciAbstractAPIs_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciAbstractAPIs_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciAbstractAPIs_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciAbstractAPIs_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciAbstractAPIs) Delete() { + C.QsciAbstractAPIs_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciAbstractAPIs) GoGC() { + runtime.SetFinalizer(this, func(this *QsciAbstractAPIs) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.h b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.h new file mode 100644 index 00000000..5974111f --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.h @@ -0,0 +1,44 @@ +#ifndef GEN_QSCIABSTRACTAPIS_H +#define GEN_QSCIABSTRACTAPIS_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QMetaObject; +class QsciAbstractAPIs; +class QsciLexer; +#else +typedef struct QMetaObject QMetaObject; +typedef struct QsciAbstractAPIs QsciAbstractAPIs; +typedef struct QsciLexer QsciLexer; +#endif + +QMetaObject* QsciAbstractAPIs_MetaObject(const QsciAbstractAPIs* self); +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_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_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); +struct miqt_string QsciAbstractAPIs_TrUtf83(const char* s, const char* c, int n); +void QsciAbstractAPIs_Delete(QsciAbstractAPIs* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qsciapis.cpp b/qt-restricted-extras/qscintilla/gen_qsciapis.cpp new file mode 100644 index 00000000..06e66693 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciapis.cpp @@ -0,0 +1,267 @@ +#include +#include +#include +#include +#include +#include +#include +#include "gen_qsciapis.h" +#include "_cgo_export.h" + +QsciAPIs* QsciAPIs_new(QsciLexer* lexer) { + return new QsciAPIs(lexer); +} + +QMetaObject* QsciAPIs_MetaObject(const QsciAPIs* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciAPIs_Metacast(QsciAPIs* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciAPIs_Tr(const char* s) { + QString _ret = QsciAPIs::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciAPIs_TrUtf8(const char* s) { + QString _ret = QsciAPIs::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciAPIs_Add(QsciAPIs* self, struct miqt_string entry) { + QString entry_QString = QString::fromUtf8(entry.data, entry.len); + self->add(entry_QString); +} + +void QsciAPIs_Clear(QsciAPIs* self) { + self->clear(); +} + +bool QsciAPIs_Load(QsciAPIs* self, struct miqt_string filename) { + QString filename_QString = QString::fromUtf8(filename.data, filename.len); + return self->load(filename_QString); +} + +void QsciAPIs_Remove(QsciAPIs* self, struct miqt_string entry) { + QString entry_QString = QString::fromUtf8(entry.data, entry.len); + self->remove(entry_QString); +} + +void QsciAPIs_Prepare(QsciAPIs* self) { + self->prepare(); +} + +void QsciAPIs_CancelPreparation(QsciAPIs* self) { + self->cancelPreparation(); +} + +struct miqt_string QsciAPIs_DefaultPreparedName(const QsciAPIs* self) { + QString _ret = self->defaultPreparedName(); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +bool QsciAPIs_IsPrepared(const QsciAPIs* self) { + return self->isPrepared(); +} + +bool QsciAPIs_LoadPrepared(QsciAPIs* self) { + return self->loadPrepared(); +} + +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) { + QStringList context_QList; + context_QList.reserve(context->len); + struct miqt_string* context_arr = static_cast(context->data); + for(size_t i = 0; i < context->len; ++i) { + QString context_arr_i_QString = QString::fromUtf8(context_arr[i].data, context_arr[i].len); + context_QList.push_back(context_arr_i_QString); + } + QStringList list_QList; + list_QList.reserve(list->len); + struct miqt_string* list_arr = static_cast(list->data); + for(size_t i = 0; i < list->len; ++i) { + QString list_arr_i_QString = QString::fromUtf8(list_arr[i].data, list_arr[i].len); + list_QList.push_back(list_arr_i_QString); + } + self->updateAutoCompletionList(context_QList, list_QList); +} + +void QsciAPIs_AutoCompletionSelected(QsciAPIs* self, struct miqt_string sel) { + QString sel_QString = QString::fromUtf8(sel.data, sel.len); + 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) { + QStringList context_QList; + context_QList.reserve(context->len); + struct miqt_string* context_arr = static_cast(context->data); + for(size_t i = 0; i < context->len; ++i) { + QString context_arr_i_QString = QString::fromUtf8(context_arr[i].data, context_arr[i].len); + context_QList.push_back(context_arr_i_QString); + } + QList shifts_QList; + shifts_QList.reserve(shifts->len); + int* shifts_arr = static_cast(shifts->data); + for(size_t i = 0; i < shifts->len; ++i) { + shifts_QList.push_back(static_cast(shifts_arr[i])); + } + QStringList _ret = self->callTips(context_QList, static_cast(commas), static_cast(style), shifts_QList); + // Convert QList<> from C++ memory to manually-managed C memory + struct miqt_string* _arr = static_cast(malloc(sizeof(struct miqt_string) * _ret.length())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QString _lv_ret = _ret[i]; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_b = _lv_ret.toUtf8(); + struct miqt_string _lv_ms; + _lv_ms.len = _lv_b.length(); + _lv_ms.data = static_cast(malloc(_lv_ms.len)); + memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len); + _arr[i] = _lv_ms; + } + struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); + _out->len = _ret.length(); + _out->data = static_cast(_arr); + return _out; +} + +bool QsciAPIs_Event(QsciAPIs* self, QEvent* e) { + return self->event(e); +} + +struct miqt_array* 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())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QString _lv_ret = _ret[i]; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_b = _lv_ret.toUtf8(); + struct miqt_string _lv_ms; + _lv_ms.len = _lv_b.length(); + _lv_ms.data = static_cast(malloc(_lv_ms.len)); + memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len); + _arr[i] = _lv_ms; + } + struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); + _out->len = _ret.length(); + _out->data = static_cast(_arr); + return _out; +} + +void QsciAPIs_ApiPreparationCancelled(QsciAPIs* self) { + self->apiPreparationCancelled(); +} + +void QsciAPIs_connect_ApiPreparationCancelled(QsciAPIs* self, intptr_t slot) { + QsciAPIs::connect(self, static_cast(&QsciAPIs::apiPreparationCancelled), self, [=]() { + miqt_exec_callback_QsciAPIs_ApiPreparationCancelled(slot); + }); +} + +void QsciAPIs_ApiPreparationStarted(QsciAPIs* self) { + self->apiPreparationStarted(); +} + +void QsciAPIs_connect_ApiPreparationStarted(QsciAPIs* self, intptr_t slot) { + QsciAPIs::connect(self, static_cast(&QsciAPIs::apiPreparationStarted), self, [=]() { + miqt_exec_callback_QsciAPIs_ApiPreparationStarted(slot); + }); +} + +void QsciAPIs_ApiPreparationFinished(QsciAPIs* self) { + self->apiPreparationFinished(); +} + +void QsciAPIs_connect_ApiPreparationFinished(QsciAPIs* self, intptr_t slot) { + QsciAPIs::connect(self, static_cast(&QsciAPIs::apiPreparationFinished), self, [=]() { + miqt_exec_callback_QsciAPIs_ApiPreparationFinished(slot); + }); +} + +struct miqt_string QsciAPIs_Tr2(const char* s, const char* c) { + QString _ret = QsciAPIs::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciAPIs_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciAPIs::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciAPIs_TrUtf82(const char* s, const char* c) { + QString _ret = QsciAPIs::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciAPIs_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciAPIs::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +bool QsciAPIs_IsPrepared1(const QsciAPIs* self, struct miqt_string filename) { + QString filename_QString = QString::fromUtf8(filename.data, filename.len); + return self->isPrepared(filename_QString); +} + +bool QsciAPIs_LoadPrepared1(QsciAPIs* self, struct miqt_string filename) { + QString filename_QString = QString::fromUtf8(filename.data, filename.len); + return self->loadPrepared(filename_QString); +} + +bool QsciAPIs_SavePrepared1(const QsciAPIs* self, struct miqt_string filename) { + QString filename_QString = QString::fromUtf8(filename.data, filename.len); + return self->savePrepared(filename_QString); +} + +void QsciAPIs_Delete(QsciAPIs* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qsciapis.go b/qt-restricted-extras/qscintilla/gen_qsciapis.go new file mode 100644 index 00000000..5019e893 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciapis.go @@ -0,0 +1,356 @@ +package qscintilla + +/* + +#include "gen_qsciapis.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "runtime/cgo" + "unsafe" +) + +type QsciAPIs struct { + h *C.QsciAPIs + *QsciAbstractAPIs +} + +func (this *QsciAPIs) cPointer() *C.QsciAPIs { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciAPIs) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciAPIs(h *C.QsciAPIs) *QsciAPIs { + if h == nil { + return nil + } + return &QsciAPIs{h: h, QsciAbstractAPIs: UnsafeNewQsciAbstractAPIs(unsafe.Pointer(h))} +} + +func UnsafeNewQsciAPIs(h unsafe.Pointer) *QsciAPIs { + return newQsciAPIs((*C.QsciAPIs)(h)) +} + +// NewQsciAPIs constructs a new QsciAPIs object. +func NewQsciAPIs(lexer *QsciLexer) *QsciAPIs { + ret := C.QsciAPIs_new(lexer.cPointer()) + return newQsciAPIs(ret) +} + +func (this *QsciAPIs) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciAPIs_MetaObject(this.h))) +} + +func (this *QsciAPIs) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciAPIs_Metacast(this.h, param1_Cstring)) +} + +func QsciAPIs_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciAPIs_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciAPIs_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciAPIs_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciAPIs) Add(entry string) { + entry_ms := C.struct_miqt_string{} + entry_ms.data = C.CString(entry) + entry_ms.len = C.size_t(len(entry)) + defer C.free(unsafe.Pointer(entry_ms.data)) + C.QsciAPIs_Add(this.h, entry_ms) +} + +func (this *QsciAPIs) Clear() { + C.QsciAPIs_Clear(this.h) +} + +func (this *QsciAPIs) Load(filename string) bool { + filename_ms := C.struct_miqt_string{} + filename_ms.data = C.CString(filename) + filename_ms.len = C.size_t(len(filename)) + defer C.free(unsafe.Pointer(filename_ms.data)) + return (bool)(C.QsciAPIs_Load(this.h, filename_ms)) +} + +func (this *QsciAPIs) Remove(entry string) { + entry_ms := C.struct_miqt_string{} + entry_ms.data = C.CString(entry) + entry_ms.len = C.size_t(len(entry)) + defer C.free(unsafe.Pointer(entry_ms.data)) + C.QsciAPIs_Remove(this.h, entry_ms) +} + +func (this *QsciAPIs) Prepare() { + C.QsciAPIs_Prepare(this.h) +} + +func (this *QsciAPIs) CancelPreparation() { + C.QsciAPIs_CancelPreparation(this.h) +} + +func (this *QsciAPIs) DefaultPreparedName() string { + var _ms C.struct_miqt_string = C.QsciAPIs_DefaultPreparedName(this.h) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciAPIs) IsPrepared() bool { + return (bool)(C.QsciAPIs_IsPrepared(this.h)) +} + +func (this *QsciAPIs) LoadPrepared() bool { + return (bool)(C.QsciAPIs_LoadPrepared(this.h)) +} + +func (this *QsciAPIs) SavePrepared() bool { + return (bool)(C.QsciAPIs_SavePrepared(this.h)) +} + +func (this *QsciAPIs) UpdateAutoCompletionList(context []string, list []string) { + // For the C ABI, malloc a C array of structs + context_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(context)))) + defer C.free(unsafe.Pointer(context_CArray)) + for i := range context { + context_i_ms := C.struct_miqt_string{} + context_i_ms.data = C.CString(context[i]) + context_i_ms.len = C.size_t(len(context[i])) + defer C.free(unsafe.Pointer(context_i_ms.data)) + context_CArray[i] = context_i_ms + } + context_ma := &C.struct_miqt_array{len: C.size_t(len(context)), data: unsafe.Pointer(context_CArray)} + defer runtime.KeepAlive(unsafe.Pointer(context_ma)) + // For the C ABI, malloc a C array of structs + list_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(list)))) + defer C.free(unsafe.Pointer(list_CArray)) + for i := range list { + list_i_ms := C.struct_miqt_string{} + list_i_ms.data = C.CString(list[i]) + list_i_ms.len = C.size_t(len(list[i])) + defer C.free(unsafe.Pointer(list_i_ms.data)) + list_CArray[i] = list_i_ms + } + list_ma := &C.struct_miqt_array{len: C.size_t(len(list)), data: unsafe.Pointer(list_CArray)} + defer runtime.KeepAlive(unsafe.Pointer(list_ma)) + C.QsciAPIs_UpdateAutoCompletionList(this.h, context_ma, list_ma) +} + +func (this *QsciAPIs) AutoCompletionSelected(sel string) { + sel_ms := C.struct_miqt_string{} + sel_ms.data = C.CString(sel) + sel_ms.len = C.size_t(len(sel)) + defer C.free(unsafe.Pointer(sel_ms.data)) + C.QsciAPIs_AutoCompletionSelected(this.h, sel_ms) +} + +func (this *QsciAPIs) CallTips(context []string, commas int, style QsciScintilla__CallTipsStyle, shifts []int) []string { + // For the C ABI, malloc a C array of structs + context_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(context)))) + defer C.free(unsafe.Pointer(context_CArray)) + for i := range context { + context_i_ms := C.struct_miqt_string{} + context_i_ms.data = C.CString(context[i]) + context_i_ms.len = C.size_t(len(context[i])) + defer C.free(unsafe.Pointer(context_i_ms.data)) + context_CArray[i] = context_i_ms + } + context_ma := &C.struct_miqt_array{len: C.size_t(len(context)), data: unsafe.Pointer(context_CArray)} + defer runtime.KeepAlive(unsafe.Pointer(context_ma)) + // For the C ABI, malloc a C array of raw pointers + shifts_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(shifts)))) + defer C.free(unsafe.Pointer(shifts_CArray)) + for i := range shifts { + shifts_CArray[i] = (C.int)(shifts[i]) + } + shifts_ma := &C.struct_miqt_array{len: C.size_t(len(shifts)), data: unsafe.Pointer(shifts_CArray)} + defer runtime.KeepAlive(unsafe.Pointer(shifts_ma)) + var _ma *C.struct_miqt_array = C.QsciAPIs_CallTips(this.h, context_ma, (C.int)(commas), (C.int)(style), shifts_ma) + _ret := make([]string, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_ms C.struct_miqt_string = _outCast[i] + _lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len))) + C.free(unsafe.Pointer(_lv_ms.data)) + _ret[i] = _lv_ret + } + C.free(unsafe.Pointer(_ma)) + return _ret +} + +func (this *QsciAPIs) Event(e *qt.QEvent) bool { + return (bool)(C.QsciAPIs_Event(this.h, (*C.QEvent)(e.UnsafePointer()))) +} + +func (this *QsciAPIs) InstalledAPIFiles() []string { + var _ma *C.struct_miqt_array = C.QsciAPIs_InstalledAPIFiles(this.h) + _ret := make([]string, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_ms C.struct_miqt_string = _outCast[i] + _lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len))) + C.free(unsafe.Pointer(_lv_ms.data)) + _ret[i] = _lv_ret + } + C.free(unsafe.Pointer(_ma)) + return _ret +} + +func (this *QsciAPIs) ApiPreparationCancelled() { + C.QsciAPIs_ApiPreparationCancelled(this.h) +} +func (this *QsciAPIs) OnApiPreparationCancelled(slot func()) { + C.QsciAPIs_connect_ApiPreparationCancelled(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciAPIs_ApiPreparationCancelled +func miqt_exec_callback_QsciAPIs_ApiPreparationCancelled(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciAPIs) ApiPreparationStarted() { + C.QsciAPIs_ApiPreparationStarted(this.h) +} +func (this *QsciAPIs) OnApiPreparationStarted(slot func()) { + C.QsciAPIs_connect_ApiPreparationStarted(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciAPIs_ApiPreparationStarted +func miqt_exec_callback_QsciAPIs_ApiPreparationStarted(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciAPIs) ApiPreparationFinished() { + C.QsciAPIs_ApiPreparationFinished(this.h) +} +func (this *QsciAPIs) OnApiPreparationFinished(slot func()) { + C.QsciAPIs_connect_ApiPreparationFinished(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciAPIs_ApiPreparationFinished +func miqt_exec_callback_QsciAPIs_ApiPreparationFinished(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func QsciAPIs_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciAPIs_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciAPIs_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciAPIs_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciAPIs_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciAPIs_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciAPIs_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciAPIs_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciAPIs) IsPrepared1(filename string) bool { + filename_ms := C.struct_miqt_string{} + filename_ms.data = C.CString(filename) + filename_ms.len = C.size_t(len(filename)) + defer C.free(unsafe.Pointer(filename_ms.data)) + return (bool)(C.QsciAPIs_IsPrepared1(this.h, filename_ms)) +} + +func (this *QsciAPIs) LoadPrepared1(filename string) bool { + filename_ms := C.struct_miqt_string{} + filename_ms.data = C.CString(filename) + filename_ms.len = C.size_t(len(filename)) + defer C.free(unsafe.Pointer(filename_ms.data)) + return (bool)(C.QsciAPIs_LoadPrepared1(this.h, filename_ms)) +} + +func (this *QsciAPIs) SavePrepared1(filename string) bool { + filename_ms := C.struct_miqt_string{} + filename_ms.data = C.CString(filename) + filename_ms.len = C.size_t(len(filename)) + defer C.free(unsafe.Pointer(filename_ms.data)) + return (bool)(C.QsciAPIs_SavePrepared1(this.h, filename_ms)) +} + +// Delete this object from C++ memory. +func (this *QsciAPIs) Delete() { + C.QsciAPIs_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciAPIs) GoGC() { + runtime.SetFinalizer(this, func(this *QsciAPIs) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qsciapis.h b/qt-restricted-extras/qscintilla/gen_qsciapis.h new file mode 100644 index 00000000..58b048ce --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciapis.h @@ -0,0 +1,67 @@ +#ifndef GEN_QSCIAPIS_H +#define GEN_QSCIAPIS_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QEvent; +class QMetaObject; +class QsciAPIs; +class QsciLexer; +#else +typedef struct QEvent QEvent; +typedef struct QMetaObject QMetaObject; +typedef struct QsciAPIs QsciAPIs; +typedef struct QsciLexer QsciLexer; +#endif + +QsciAPIs* QsciAPIs_new(QsciLexer* lexer); +QMetaObject* QsciAPIs_MetaObject(const QsciAPIs* self); +void* QsciAPIs_Metacast(QsciAPIs* self, const char* param1); +struct miqt_string QsciAPIs_Tr(const char* s); +struct miqt_string QsciAPIs_TrUtf8(const char* s); +void QsciAPIs_Add(QsciAPIs* self, struct miqt_string entry); +void QsciAPIs_Clear(QsciAPIs* self); +bool QsciAPIs_Load(QsciAPIs* self, struct miqt_string filename); +void QsciAPIs_Remove(QsciAPIs* self, struct miqt_string entry); +void QsciAPIs_Prepare(QsciAPIs* self); +void QsciAPIs_CancelPreparation(QsciAPIs* self); +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_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); +bool QsciAPIs_Event(QsciAPIs* self, QEvent* e); +struct miqt_array* QsciAPIs_InstalledAPIFiles(const QsciAPIs* self); +void QsciAPIs_ApiPreparationCancelled(QsciAPIs* self); +void QsciAPIs_connect_ApiPreparationCancelled(QsciAPIs* self, intptr_t slot); +void QsciAPIs_ApiPreparationStarted(QsciAPIs* self); +void QsciAPIs_connect_ApiPreparationStarted(QsciAPIs* self, intptr_t slot); +void QsciAPIs_ApiPreparationFinished(QsciAPIs* self); +void QsciAPIs_connect_ApiPreparationFinished(QsciAPIs* self, intptr_t slot); +struct miqt_string QsciAPIs_Tr2(const char* s, const char* c); +struct miqt_string QsciAPIs_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciAPIs_TrUtf82(const char* s, const char* c); +struct miqt_string QsciAPIs_TrUtf83(const char* s, const char* c, int n); +bool QsciAPIs_IsPrepared1(const QsciAPIs* self, struct miqt_string filename); +bool QsciAPIs_LoadPrepared1(QsciAPIs* self, struct miqt_string filename); +bool QsciAPIs_SavePrepared1(const QsciAPIs* self, struct miqt_string filename); +void QsciAPIs_Delete(QsciAPIs* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscicommand.cpp b/qt-restricted-extras/qscintilla/gen_qscicommand.cpp new file mode 100644 index 00000000..b542ece4 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscicommand.cpp @@ -0,0 +1,51 @@ +#include +#include +#include +#include +#include "gen_qscicommand.h" +#include "_cgo_export.h" + +int QsciCommand_Command(const QsciCommand* self) { + QsciCommand::Command _ret = self->command(); + return static_cast(_ret); +} + +void QsciCommand_Execute(QsciCommand* self) { + self->execute(); +} + +void QsciCommand_SetKey(QsciCommand* self, int key) { + self->setKey(static_cast(key)); +} + +void QsciCommand_SetAlternateKey(QsciCommand* self, int altkey) { + self->setAlternateKey(static_cast(altkey)); +} + +int QsciCommand_Key(const QsciCommand* self) { + return self->key(); +} + +int QsciCommand_AlternateKey(const QsciCommand* self) { + return self->alternateKey(); +} + +bool QsciCommand_ValidKey(int key) { + return QsciCommand::validKey(static_cast(key)); +} + +struct miqt_string QsciCommand_Description(const QsciCommand* self) { + QString _ret = self->description(); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciCommand_Delete(QsciCommand* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscicommand.go b/qt-restricted-extras/qscintilla/gen_qscicommand.go new file mode 100644 index 00000000..d5696556 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscicommand.go @@ -0,0 +1,196 @@ +package qscintilla + +/* + +#include "gen_qscicommand.h" +#include + +*/ +import "C" + +import ( + "runtime" + "unsafe" +) + +type QsciCommand__Command int + +const ( + QsciCommand__LineDown QsciCommand__Command = 2300 + QsciCommand__LineDownExtend QsciCommand__Command = 2301 + QsciCommand__LineDownRectExtend QsciCommand__Command = 2426 + QsciCommand__LineScrollDown QsciCommand__Command = 2342 + QsciCommand__LineUp QsciCommand__Command = 2302 + QsciCommand__LineUpExtend QsciCommand__Command = 2303 + QsciCommand__LineUpRectExtend QsciCommand__Command = 2427 + QsciCommand__LineScrollUp QsciCommand__Command = 2343 + QsciCommand__ScrollToStart QsciCommand__Command = 2628 + QsciCommand__ScrollToEnd QsciCommand__Command = 2629 + QsciCommand__VerticalCentreCaret QsciCommand__Command = 2619 + QsciCommand__ParaDown QsciCommand__Command = 2413 + QsciCommand__ParaDownExtend QsciCommand__Command = 2414 + QsciCommand__ParaUp QsciCommand__Command = 2415 + QsciCommand__ParaUpExtend QsciCommand__Command = 2416 + QsciCommand__CharLeft QsciCommand__Command = 2304 + QsciCommand__CharLeftExtend QsciCommand__Command = 2305 + QsciCommand__CharLeftRectExtend QsciCommand__Command = 2428 + QsciCommand__CharRight QsciCommand__Command = 2306 + QsciCommand__CharRightExtend QsciCommand__Command = 2307 + QsciCommand__CharRightRectExtend QsciCommand__Command = 2429 + QsciCommand__WordLeft QsciCommand__Command = 2308 + QsciCommand__WordLeftExtend QsciCommand__Command = 2309 + QsciCommand__WordRight QsciCommand__Command = 2310 + QsciCommand__WordRightExtend QsciCommand__Command = 2311 + QsciCommand__WordLeftEnd QsciCommand__Command = 2439 + QsciCommand__WordLeftEndExtend QsciCommand__Command = 2440 + QsciCommand__WordRightEnd QsciCommand__Command = 2441 + QsciCommand__WordRightEndExtend QsciCommand__Command = 2442 + QsciCommand__WordPartLeft QsciCommand__Command = 2390 + QsciCommand__WordPartLeftExtend QsciCommand__Command = 2391 + QsciCommand__WordPartRight QsciCommand__Command = 2392 + QsciCommand__WordPartRightExtend QsciCommand__Command = 2393 + QsciCommand__Home QsciCommand__Command = 2312 + QsciCommand__HomeExtend QsciCommand__Command = 2313 + QsciCommand__HomeRectExtend QsciCommand__Command = 2430 + QsciCommand__HomeDisplay QsciCommand__Command = 2345 + QsciCommand__HomeDisplayExtend QsciCommand__Command = 2346 + QsciCommand__HomeWrap QsciCommand__Command = 2349 + QsciCommand__HomeWrapExtend QsciCommand__Command = 2450 + QsciCommand__VCHome QsciCommand__Command = 2331 + QsciCommand__VCHomeExtend QsciCommand__Command = 2332 + QsciCommand__VCHomeRectExtend QsciCommand__Command = 2431 + QsciCommand__VCHomeWrap QsciCommand__Command = 2453 + QsciCommand__VCHomeWrapExtend QsciCommand__Command = 2454 + QsciCommand__LineEnd QsciCommand__Command = 2314 + QsciCommand__LineEndExtend QsciCommand__Command = 2315 + QsciCommand__LineEndRectExtend QsciCommand__Command = 2432 + QsciCommand__LineEndDisplay QsciCommand__Command = 2347 + QsciCommand__LineEndDisplayExtend QsciCommand__Command = 2348 + QsciCommand__LineEndWrap QsciCommand__Command = 2451 + QsciCommand__LineEndWrapExtend QsciCommand__Command = 2452 + QsciCommand__DocumentStart QsciCommand__Command = 2316 + QsciCommand__DocumentStartExtend QsciCommand__Command = 2317 + QsciCommand__DocumentEnd QsciCommand__Command = 2318 + QsciCommand__DocumentEndExtend QsciCommand__Command = 2319 + QsciCommand__PageUp QsciCommand__Command = 2320 + QsciCommand__PageUpExtend QsciCommand__Command = 2321 + QsciCommand__PageUpRectExtend QsciCommand__Command = 2433 + QsciCommand__PageDown QsciCommand__Command = 2322 + QsciCommand__PageDownExtend QsciCommand__Command = 2323 + QsciCommand__PageDownRectExtend QsciCommand__Command = 2434 + QsciCommand__StutteredPageUp QsciCommand__Command = 2435 + QsciCommand__StutteredPageUpExtend QsciCommand__Command = 2436 + QsciCommand__StutteredPageDown QsciCommand__Command = 2437 + QsciCommand__StutteredPageDownExtend QsciCommand__Command = 2438 + QsciCommand__Delete QsciCommand__Command = 2180 + QsciCommand__DeleteBack QsciCommand__Command = 2326 + QsciCommand__DeleteBackNotLine QsciCommand__Command = 2344 + QsciCommand__DeleteWordLeft QsciCommand__Command = 2335 + QsciCommand__DeleteWordRight QsciCommand__Command = 2336 + QsciCommand__DeleteWordRightEnd QsciCommand__Command = 2518 + QsciCommand__DeleteLineLeft QsciCommand__Command = 2395 + QsciCommand__DeleteLineRight QsciCommand__Command = 2396 + QsciCommand__LineDelete QsciCommand__Command = 2338 + QsciCommand__LineCut QsciCommand__Command = 2337 + QsciCommand__LineCopy QsciCommand__Command = 2455 + QsciCommand__LineTranspose QsciCommand__Command = 2339 + QsciCommand__LineDuplicate QsciCommand__Command = 2404 + QsciCommand__SelectAll QsciCommand__Command = 2013 + QsciCommand__MoveSelectedLinesUp QsciCommand__Command = 2620 + QsciCommand__MoveSelectedLinesDown QsciCommand__Command = 2621 + QsciCommand__SelectionDuplicate QsciCommand__Command = 2469 + QsciCommand__SelectionLowerCase QsciCommand__Command = 2340 + QsciCommand__SelectionUpperCase QsciCommand__Command = 2341 + QsciCommand__SelectionCut QsciCommand__Command = 2177 + QsciCommand__SelectionCopy QsciCommand__Command = 2178 + QsciCommand__Paste QsciCommand__Command = 2179 + QsciCommand__EditToggleOvertype QsciCommand__Command = 2324 + QsciCommand__Newline QsciCommand__Command = 2329 + QsciCommand__Formfeed QsciCommand__Command = 2330 + QsciCommand__Tab QsciCommand__Command = 2327 + QsciCommand__Backtab QsciCommand__Command = 2328 + QsciCommand__Cancel QsciCommand__Command = 2325 + QsciCommand__Undo QsciCommand__Command = 2176 + QsciCommand__Redo QsciCommand__Command = 2011 + QsciCommand__ZoomIn QsciCommand__Command = 2333 + QsciCommand__ZoomOut QsciCommand__Command = 2334 + QsciCommand__ReverseLines QsciCommand__Command = 2354 +) + +type QsciCommand struct { + h *C.QsciCommand +} + +func (this *QsciCommand) cPointer() *C.QsciCommand { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciCommand) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciCommand(h *C.QsciCommand) *QsciCommand { + if h == nil { + return nil + } + return &QsciCommand{h: h} +} + +func UnsafeNewQsciCommand(h unsafe.Pointer) *QsciCommand { + return newQsciCommand((*C.QsciCommand)(h)) +} + +func (this *QsciCommand) Command() QsciCommand__Command { + return (QsciCommand__Command)(C.QsciCommand_Command(this.h)) +} + +func (this *QsciCommand) Execute() { + C.QsciCommand_Execute(this.h) +} + +func (this *QsciCommand) SetKey(key int) { + C.QsciCommand_SetKey(this.h, (C.int)(key)) +} + +func (this *QsciCommand) SetAlternateKey(altkey int) { + C.QsciCommand_SetAlternateKey(this.h, (C.int)(altkey)) +} + +func (this *QsciCommand) Key() int { + return (int)(C.QsciCommand_Key(this.h)) +} + +func (this *QsciCommand) AlternateKey() int { + return (int)(C.QsciCommand_AlternateKey(this.h)) +} + +func QsciCommand_ValidKey(key int) bool { + return (bool)(C.QsciCommand_ValidKey((C.int)(key))) +} + +func (this *QsciCommand) Description() string { + var _ms C.struct_miqt_string = C.QsciCommand_Description(this.h) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciCommand) Delete() { + C.QsciCommand_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciCommand) GoGC() { + runtime.SetFinalizer(this, func(this *QsciCommand) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscicommand.h b/qt-restricted-extras/qscintilla/gen_qscicommand.h new file mode 100644 index 00000000..c80273d0 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscicommand.h @@ -0,0 +1,36 @@ +#ifndef GEN_QSCICOMMAND_H +#define GEN_QSCICOMMAND_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QsciCommand; +#else +typedef struct QsciCommand QsciCommand; +#endif + +int QsciCommand_Command(const QsciCommand* self); +void QsciCommand_Execute(QsciCommand* self); +void QsciCommand_SetKey(QsciCommand* self, int key); +void QsciCommand_SetAlternateKey(QsciCommand* self, int altkey); +int QsciCommand_Key(const QsciCommand* self); +int QsciCommand_AlternateKey(const QsciCommand* self); +bool QsciCommand_ValidKey(int key); +struct miqt_string QsciCommand_Description(const QsciCommand* self); +void QsciCommand_Delete(QsciCommand* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscicommandset.cpp b/qt-restricted-extras/qscintilla/gen_qscicommandset.cpp new file mode 100644 index 00000000..6a0821ee --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscicommandset.cpp @@ -0,0 +1,51 @@ +#include +#include +#include +#include "gen_qscicommandset.h" +#include "_cgo_export.h" + +bool QsciCommandSet_ReadSettings(QsciCommandSet* self, QSettings* qs) { + return self->readSettings(*qs); +} + +bool QsciCommandSet_WriteSettings(QsciCommandSet* self, QSettings* qs) { + return self->writeSettings(*qs); +} + +struct miqt_array* 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())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + _arr[i] = _ret[i]; + } + struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); + _out->len = _ret.length(); + _out->data = static_cast(_arr); + return _out; +} + +void QsciCommandSet_ClearKeys(QsciCommandSet* self) { + self->clearKeys(); +} + +void QsciCommandSet_ClearAlternateKeys(QsciCommandSet* self) { + self->clearAlternateKeys(); +} + +QsciCommand* QsciCommandSet_BoundTo(const QsciCommandSet* self, int key) { + return self->boundTo(static_cast(key)); +} + +QsciCommand* QsciCommandSet_Find(const QsciCommandSet* self, int command) { + return self->find(static_cast(command)); +} + +bool QsciCommandSet_ReadSettings2(QsciCommandSet* self, QSettings* qs, const char* prefix) { + return self->readSettings(*qs, prefix); +} + +bool QsciCommandSet_WriteSettings2(QsciCommandSet* self, QSettings* qs, const char* prefix) { + return self->writeSettings(*qs, prefix); +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscicommandset.go b/qt-restricted-extras/qscintilla/gen_qscicommandset.go new file mode 100644 index 00000000..f295db55 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscicommandset.go @@ -0,0 +1,90 @@ +package qscintilla + +/* + +#include "gen_qscicommandset.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "unsafe" +) + +type QsciCommandSet struct { + h *C.QsciCommandSet +} + +func (this *QsciCommandSet) cPointer() *C.QsciCommandSet { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciCommandSet) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciCommandSet(h *C.QsciCommandSet) *QsciCommandSet { + if h == nil { + return nil + } + return &QsciCommandSet{h: h} +} + +func UnsafeNewQsciCommandSet(h unsafe.Pointer) *QsciCommandSet { + return newQsciCommandSet((*C.QsciCommandSet)(h)) +} + +func (this *QsciCommandSet) ReadSettings(qs *qt.QSettings) bool { + return (bool)(C.QsciCommandSet_ReadSettings(this.h, (*C.QSettings)(qs.UnsafePointer()))) +} + +func (this *QsciCommandSet) WriteSettings(qs *qt.QSettings) bool { + return (bool)(C.QsciCommandSet_WriteSettings(this.h, (*C.QSettings)(qs.UnsafePointer()))) +} + +func (this *QsciCommandSet) Commands() []*QsciCommand { + var _ma *C.struct_miqt_array = C.QsciCommandSet_Commands(this.h) + _ret := make([]*QsciCommand, int(_ma.len)) + _outCast := (*[0xffff]*C.QsciCommand)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + _ret[i] = UnsafeNewQsciCommand(unsafe.Pointer(_outCast[i])) + } + C.free(unsafe.Pointer(_ma)) + return _ret +} + +func (this *QsciCommandSet) ClearKeys() { + C.QsciCommandSet_ClearKeys(this.h) +} + +func (this *QsciCommandSet) ClearAlternateKeys() { + C.QsciCommandSet_ClearAlternateKeys(this.h) +} + +func (this *QsciCommandSet) BoundTo(key int) *QsciCommand { + return UnsafeNewQsciCommand(unsafe.Pointer(C.QsciCommandSet_BoundTo(this.h, (C.int)(key)))) +} + +func (this *QsciCommandSet) Find(command QsciCommand__Command) *QsciCommand { + return UnsafeNewQsciCommand(unsafe.Pointer(C.QsciCommandSet_Find(this.h, (C.int)(command)))) +} + +func (this *QsciCommandSet) ReadSettings2(qs *qt.QSettings, prefix string) bool { + prefix_Cstring := C.CString(prefix) + defer C.free(unsafe.Pointer(prefix_Cstring)) + return (bool)(C.QsciCommandSet_ReadSettings2(this.h, (*C.QSettings)(qs.UnsafePointer()), prefix_Cstring)) +} + +func (this *QsciCommandSet) WriteSettings2(qs *qt.QSettings, prefix string) bool { + prefix_Cstring := C.CString(prefix) + defer C.free(unsafe.Pointer(prefix_Cstring)) + return (bool)(C.QsciCommandSet_WriteSettings2(this.h, (*C.QSettings)(qs.UnsafePointer()), prefix_Cstring)) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscicommandset.h b/qt-restricted-extras/qscintilla/gen_qscicommandset.h new file mode 100644 index 00000000..44047215 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscicommandset.h @@ -0,0 +1,40 @@ +#ifndef GEN_QSCICOMMANDSET_H +#define GEN_QSCICOMMANDSET_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QSettings; +class QsciCommand; +class QsciCommandSet; +#else +typedef struct QSettings QSettings; +typedef struct QsciCommand QsciCommand; +typedef struct QsciCommandSet QsciCommandSet; +#endif + +bool QsciCommandSet_ReadSettings(QsciCommandSet* self, QSettings* qs); +bool QsciCommandSet_WriteSettings(QsciCommandSet* self, QSettings* qs); +struct miqt_array* QsciCommandSet_Commands(QsciCommandSet* self); +void QsciCommandSet_ClearKeys(QsciCommandSet* self); +void QsciCommandSet_ClearAlternateKeys(QsciCommandSet* self); +QsciCommand* QsciCommandSet_BoundTo(const QsciCommandSet* self, int key); +QsciCommand* QsciCommandSet_Find(const QsciCommandSet* self, int command); +bool QsciCommandSet_ReadSettings2(QsciCommandSet* self, QSettings* qs, const char* prefix); +bool QsciCommandSet_WriteSettings2(QsciCommandSet* self, QSettings* qs, const char* prefix); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscidocument.cpp b/qt-restricted-extras/qscintilla/gen_qscidocument.cpp new file mode 100644 index 00000000..f08bc32e --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscidocument.cpp @@ -0,0 +1,20 @@ +#include +#include "gen_qscidocument.h" +#include "_cgo_export.h" + +QsciDocument* QsciDocument_new() { + return new QsciDocument(); +} + +QsciDocument* QsciDocument_new2(QsciDocument* param1) { + return new QsciDocument(*param1); +} + +void QsciDocument_OperatorAssign(QsciDocument* self, QsciDocument* param1) { + self->operator=(*param1); +} + +void QsciDocument_Delete(QsciDocument* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscidocument.go b/qt-restricted-extras/qscintilla/gen_qscidocument.go new file mode 100644 index 00000000..b3541162 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscidocument.go @@ -0,0 +1,73 @@ +package qscintilla + +/* + +#include "gen_qscidocument.h" +#include + +*/ +import "C" + +import ( + "runtime" + "unsafe" +) + +type QsciDocument struct { + h *C.QsciDocument +} + +func (this *QsciDocument) cPointer() *C.QsciDocument { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciDocument) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciDocument(h *C.QsciDocument) *QsciDocument { + if h == nil { + return nil + } + return &QsciDocument{h: h} +} + +func UnsafeNewQsciDocument(h unsafe.Pointer) *QsciDocument { + return newQsciDocument((*C.QsciDocument)(h)) +} + +// NewQsciDocument constructs a new QsciDocument object. +func NewQsciDocument() *QsciDocument { + ret := C.QsciDocument_new() + return newQsciDocument(ret) +} + +// NewQsciDocument2 constructs a new QsciDocument object. +func NewQsciDocument2(param1 *QsciDocument) *QsciDocument { + ret := C.QsciDocument_new2(param1.cPointer()) + return newQsciDocument(ret) +} + +func (this *QsciDocument) OperatorAssign(param1 *QsciDocument) { + C.QsciDocument_OperatorAssign(this.h, param1.cPointer()) +} + +// Delete this object from C++ memory. +func (this *QsciDocument) Delete() { + C.QsciDocument_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciDocument) GoGC() { + runtime.SetFinalizer(this, func(this *QsciDocument) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscidocument.h b/qt-restricted-extras/qscintilla/gen_qscidocument.h new file mode 100644 index 00000000..01ad57bc --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscidocument.h @@ -0,0 +1,31 @@ +#ifndef GEN_QSCIDOCUMENT_H +#define GEN_QSCIDOCUMENT_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QsciDocument; +#else +typedef struct QsciDocument QsciDocument; +#endif + +QsciDocument* QsciDocument_new(); +QsciDocument* QsciDocument_new2(QsciDocument* param1); +void QsciDocument_OperatorAssign(QsciDocument* self, QsciDocument* param1); +void QsciDocument_Delete(QsciDocument* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexer.cpp b/qt-restricted-extras/qscintilla/gen_qscilexer.cpp new file mode 100644 index 00000000..1566aed1 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexer.cpp @@ -0,0 +1,391 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexer.h" +#include "_cgo_export.h" + +QMetaObject* QsciLexer_MetaObject(const QsciLexer* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexer_Metacast(QsciLexer* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexer_Tr(const char* s) { + QString _ret = QsciLexer::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexer_TrUtf8(const char* s) { + QString _ret = QsciLexer::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexer_Language(const QsciLexer* self) { + return (const char*) self->language(); +} + +const char* QsciLexer_Lexer(const QsciLexer* self) { + return (const char*) self->lexer(); +} + +int QsciLexer_LexerId(const QsciLexer* self) { + return self->lexerId(); +} + +QsciAbstractAPIs* QsciLexer_Apis(const QsciLexer* self) { + return self->apis(); +} + +const char* QsciLexer_AutoCompletionFillups(const QsciLexer* self) { + return (const char*) self->autoCompletionFillups(); +} + +struct miqt_array* 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())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QString _lv_ret = _ret[i]; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_b = _lv_ret.toUtf8(); + struct miqt_string _lv_ms; + _lv_ms.len = _lv_b.length(); + _lv_ms.data = static_cast(malloc(_lv_ms.len)); + memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len); + _arr[i] = _lv_ms; + } + struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); + _out->len = _ret.length(); + _out->data = static_cast(_arr); + return _out; +} + +int QsciLexer_AutoIndentStyle(QsciLexer* self) { + return self->autoIndentStyle(); +} + +const char* QsciLexer_BlockEnd(const QsciLexer* self) { + return (const char*) self->blockEnd(); +} + +int QsciLexer_BlockLookback(const QsciLexer* self) { + return self->blockLookback(); +} + +const char* QsciLexer_BlockStart(const QsciLexer* self) { + return (const char*) self->blockStart(); +} + +const char* QsciLexer_BlockStartKeyword(const QsciLexer* self) { + return (const char*) self->blockStartKeyword(); +} + +int QsciLexer_BraceStyle(const QsciLexer* self) { + return self->braceStyle(); +} + +bool QsciLexer_CaseSensitive(const QsciLexer* self) { + return self->caseSensitive(); +} + +QColor* QsciLexer_Color(const QsciLexer* self, int style) { + return new QColor(self->color(static_cast(style))); +} + +bool QsciLexer_EolFill(const QsciLexer* self, int style) { + return self->eolFill(static_cast(style)); +} + +QFont* QsciLexer_Font(const QsciLexer* self, int style) { + return new QFont(self->font(static_cast(style))); +} + +int QsciLexer_IndentationGuideView(const QsciLexer* self) { + return self->indentationGuideView(); +} + +const char* QsciLexer_Keywords(const QsciLexer* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +int QsciLexer_DefaultStyle(const QsciLexer* self) { + return self->defaultStyle(); +} + +struct miqt_string QsciLexer_Description(const QsciLexer* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +QColor* QsciLexer_Paper(const QsciLexer* self, int style) { + return new QColor(self->paper(static_cast(style))); +} + +QColor* QsciLexer_DefaultColor(const QsciLexer* self) { + return new QColor(self->defaultColor()); +} + +QColor* QsciLexer_DefaultColorWithStyle(const QsciLexer* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexer_DefaultEolFill(const QsciLexer* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexer_DefaultFont(const QsciLexer* self) { + return new QFont(self->defaultFont()); +} + +QFont* QsciLexer_DefaultFontWithStyle(const QsciLexer* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexer_DefaultPaper(const QsciLexer* self) { + return new QColor(self->defaultPaper()); +} + +QColor* QsciLexer_DefaultPaperWithStyle(const QsciLexer* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +QsciScintilla* QsciLexer_Editor(const QsciLexer* self) { + return self->editor(); +} + +void QsciLexer_SetAPIs(QsciLexer* self, QsciAbstractAPIs* apis) { + self->setAPIs(apis); +} + +void QsciLexer_SetDefaultColor(QsciLexer* self, QColor* c) { + self->setDefaultColor(*c); +} + +void QsciLexer_SetDefaultFont(QsciLexer* self, QFont* f) { + self->setDefaultFont(*f); +} + +void QsciLexer_SetDefaultPaper(QsciLexer* self, QColor* c) { + self->setDefaultPaper(*c); +} + +void QsciLexer_SetEditor(QsciLexer* self, QsciScintilla* editor) { + self->setEditor(editor); +} + +bool QsciLexer_ReadSettings(QsciLexer* self, QSettings* qs) { + return self->readSettings(*qs); +} + +void QsciLexer_RefreshProperties(QsciLexer* self) { + self->refreshProperties(); +} + +int QsciLexer_StyleBitsNeeded(const QsciLexer* self) { + return self->styleBitsNeeded(); +} + +const char* QsciLexer_WordCharacters(const QsciLexer* self) { + return (const char*) self->wordCharacters(); +} + +bool QsciLexer_WriteSettings(const QsciLexer* self, QSettings* qs) { + return self->writeSettings(*qs); +} + +void QsciLexer_SetAutoIndentStyle(QsciLexer* self, int autoindentstyle) { + self->setAutoIndentStyle(static_cast(autoindentstyle)); +} + +void QsciLexer_SetColor(QsciLexer* self, QColor* c) { + self->setColor(*c); +} + +void QsciLexer_SetEolFill(QsciLexer* self, bool eoffill) { + self->setEolFill(eoffill); +} + +void QsciLexer_SetFont(QsciLexer* self, QFont* f) { + self->setFont(*f); +} + +void QsciLexer_SetPaper(QsciLexer* self, QColor* c) { + self->setPaper(*c); +} + +void QsciLexer_ColorChanged(QsciLexer* self, QColor* c, int style) { + self->colorChanged(*c, static_cast(style)); +} + +void QsciLexer_connect_ColorChanged(QsciLexer* self, intptr_t slot) { + QsciLexer::connect(self, static_cast(&QsciLexer::colorChanged), self, [=](const QColor& c, int style) { + const QColor& c_ret = c; + // Cast returned reference into pointer + QColor* sigval1 = const_cast(&c_ret); + int sigval2 = style; + miqt_exec_callback_QsciLexer_ColorChanged(slot, sigval1, sigval2); + }); +} + +void QsciLexer_EolFillChanged(QsciLexer* self, bool eolfilled, int style) { + self->eolFillChanged(eolfilled, static_cast(style)); +} + +void QsciLexer_connect_EolFillChanged(QsciLexer* self, intptr_t slot) { + QsciLexer::connect(self, static_cast(&QsciLexer::eolFillChanged), self, [=](bool eolfilled, int style) { + bool sigval1 = eolfilled; + int sigval2 = style; + miqt_exec_callback_QsciLexer_EolFillChanged(slot, sigval1, sigval2); + }); +} + +void QsciLexer_FontChanged(QsciLexer* self, QFont* f, int style) { + self->fontChanged(*f, static_cast(style)); +} + +void QsciLexer_connect_FontChanged(QsciLexer* self, intptr_t slot) { + QsciLexer::connect(self, static_cast(&QsciLexer::fontChanged), self, [=](const QFont& f, int style) { + const QFont& f_ret = f; + // Cast returned reference into pointer + QFont* sigval1 = const_cast(&f_ret); + int sigval2 = style; + miqt_exec_callback_QsciLexer_FontChanged(slot, sigval1, sigval2); + }); +} + +void QsciLexer_PaperChanged(QsciLexer* self, QColor* c, int style) { + self->paperChanged(*c, static_cast(style)); +} + +void QsciLexer_connect_PaperChanged(QsciLexer* self, intptr_t slot) { + QsciLexer::connect(self, static_cast(&QsciLexer::paperChanged), self, [=](const QColor& c, int style) { + const QColor& c_ret = c; + // Cast returned reference into pointer + QColor* sigval1 = const_cast(&c_ret); + int sigval2 = style; + miqt_exec_callback_QsciLexer_PaperChanged(slot, sigval1, sigval2); + }); +} + +void QsciLexer_PropertyChanged(QsciLexer* self, const char* prop, const char* val) { + self->propertyChanged(prop, val); +} + +void QsciLexer_connect_PropertyChanged(QsciLexer* self, intptr_t slot) { + QsciLexer::connect(self, static_cast(&QsciLexer::propertyChanged), self, [=](const char* prop, const char* val) { + const char* sigval1 = (const char*) prop; + const char* sigval2 = (const char*) val; + miqt_exec_callback_QsciLexer_PropertyChanged(slot, sigval1, sigval2); + }); +} + +struct miqt_string QsciLexer_Tr2(const char* s, const char* c) { + QString _ret = QsciLexer::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexer_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexer::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexer_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexer::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexer_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexer::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexer_BlockEnd1(const QsciLexer* self, int* style) { + return (const char*) self->blockEnd(static_cast(style)); +} + +const char* QsciLexer_BlockStart1(const QsciLexer* self, int* style) { + return (const char*) self->blockStart(static_cast(style)); +} + +const char* QsciLexer_BlockStartKeyword1(const QsciLexer* self, int* style) { + return (const char*) self->blockStartKeyword(static_cast(style)); +} + +bool QsciLexer_ReadSettings2(QsciLexer* self, QSettings* qs, const char* prefix) { + return self->readSettings(*qs, prefix); +} + +bool QsciLexer_WriteSettings2(const QsciLexer* self, QSettings* qs, const char* prefix) { + return self->writeSettings(*qs, prefix); +} + +void QsciLexer_SetColor2(QsciLexer* self, QColor* c, int style) { + self->setColor(*c, static_cast(style)); +} + +void QsciLexer_SetEolFill2(QsciLexer* self, bool eoffill, int style) { + self->setEolFill(eoffill, static_cast(style)); +} + +void QsciLexer_SetFont2(QsciLexer* self, QFont* f, int style) { + self->setFont(*f, static_cast(style)); +} + +void QsciLexer_SetPaper2(QsciLexer* self, QColor* c, int style) { + self->setPaper(*c, static_cast(style)); +} + +void QsciLexer_Delete(QsciLexer* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexer.go b/qt-restricted-extras/qscintilla/gen_qscilexer.go new file mode 100644 index 00000000..97ec6079 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexer.go @@ -0,0 +1,512 @@ +package qscintilla + +/* + +#include "gen_qscilexer.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "runtime/cgo" + "unsafe" +) + +type QsciLexer struct { + h *C.QsciLexer + *qt.QObject +} + +func (this *QsciLexer) cPointer() *C.QsciLexer { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexer) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexer(h *C.QsciLexer) *QsciLexer { + if h == nil { + return nil + } + return &QsciLexer{h: h, QObject: qt.UnsafeNewQObject(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexer(h unsafe.Pointer) *QsciLexer { + return newQsciLexer((*C.QsciLexer)(h)) +} + +func (this *QsciLexer) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexer_MetaObject(this.h))) +} + +func (this *QsciLexer) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexer_Metacast(this.h, param1_Cstring)) +} + +func QsciLexer_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexer_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexer_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexer_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexer) Language() string { + _ret := C.QsciLexer_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexer) Lexer() string { + _ret := C.QsciLexer_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexer) LexerId() int { + return (int)(C.QsciLexer_LexerId(this.h)) +} + +func (this *QsciLexer) Apis() *QsciAbstractAPIs { + return UnsafeNewQsciAbstractAPIs(unsafe.Pointer(C.QsciLexer_Apis(this.h))) +} + +func (this *QsciLexer) AutoCompletionFillups() string { + _ret := C.QsciLexer_AutoCompletionFillups(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexer) AutoCompletionWordSeparators() []string { + var _ma *C.struct_miqt_array = C.QsciLexer_AutoCompletionWordSeparators(this.h) + _ret := make([]string, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_ms C.struct_miqt_string = _outCast[i] + _lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len))) + C.free(unsafe.Pointer(_lv_ms.data)) + _ret[i] = _lv_ret + } + C.free(unsafe.Pointer(_ma)) + return _ret +} + +func (this *QsciLexer) AutoIndentStyle() int { + return (int)(C.QsciLexer_AutoIndentStyle(this.h)) +} + +func (this *QsciLexer) BlockEnd() string { + _ret := C.QsciLexer_BlockEnd(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexer) BlockLookback() int { + return (int)(C.QsciLexer_BlockLookback(this.h)) +} + +func (this *QsciLexer) BlockStart() string { + _ret := C.QsciLexer_BlockStart(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexer) BlockStartKeyword() string { + _ret := C.QsciLexer_BlockStartKeyword(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexer) BraceStyle() int { + return (int)(C.QsciLexer_BraceStyle(this.h)) +} + +func (this *QsciLexer) CaseSensitive() bool { + return (bool)(C.QsciLexer_CaseSensitive(this.h)) +} + +func (this *QsciLexer) Color(style int) *qt.QColor { + _ret := C.QsciLexer_Color(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexer) EolFill(style int) bool { + return (bool)(C.QsciLexer_EolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexer) Font(style int) *qt.QFont { + _ret := C.QsciLexer_Font(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexer) IndentationGuideView() int { + return (int)(C.QsciLexer_IndentationGuideView(this.h)) +} + +func (this *QsciLexer) Keywords(set int) string { + _ret := C.QsciLexer_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexer) DefaultStyle() int { + return (int)(C.QsciLexer_DefaultStyle(this.h)) +} + +func (this *QsciLexer) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexer_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexer) Paper(style int) *qt.QColor { + _ret := C.QsciLexer_Paper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexer) DefaultColor() *qt.QColor { + _ret := C.QsciLexer_DefaultColor(this.h) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexer) DefaultColorWithStyle(style int) *qt.QColor { + _ret := C.QsciLexer_DefaultColorWithStyle(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexer) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexer_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexer) DefaultFont() *qt.QFont { + _ret := C.QsciLexer_DefaultFont(this.h) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexer) DefaultFontWithStyle(style int) *qt.QFont { + _ret := C.QsciLexer_DefaultFontWithStyle(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexer) DefaultPaper() *qt.QColor { + _ret := C.QsciLexer_DefaultPaper(this.h) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexer) DefaultPaperWithStyle(style int) *qt.QColor { + _ret := C.QsciLexer_DefaultPaperWithStyle(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexer) Editor() *QsciScintilla { + return UnsafeNewQsciScintilla(unsafe.Pointer(C.QsciLexer_Editor(this.h))) +} + +func (this *QsciLexer) SetAPIs(apis *QsciAbstractAPIs) { + C.QsciLexer_SetAPIs(this.h, apis.cPointer()) +} + +func (this *QsciLexer) SetDefaultColor(c *qt.QColor) { + C.QsciLexer_SetDefaultColor(this.h, (*C.QColor)(c.UnsafePointer())) +} + +func (this *QsciLexer) SetDefaultFont(f *qt.QFont) { + C.QsciLexer_SetDefaultFont(this.h, (*C.QFont)(f.UnsafePointer())) +} + +func (this *QsciLexer) SetDefaultPaper(c *qt.QColor) { + C.QsciLexer_SetDefaultPaper(this.h, (*C.QColor)(c.UnsafePointer())) +} + +func (this *QsciLexer) SetEditor(editor *QsciScintilla) { + C.QsciLexer_SetEditor(this.h, editor.cPointer()) +} + +func (this *QsciLexer) ReadSettings(qs *qt.QSettings) bool { + return (bool)(C.QsciLexer_ReadSettings(this.h, (*C.QSettings)(qs.UnsafePointer()))) +} + +func (this *QsciLexer) RefreshProperties() { + C.QsciLexer_RefreshProperties(this.h) +} + +func (this *QsciLexer) StyleBitsNeeded() int { + return (int)(C.QsciLexer_StyleBitsNeeded(this.h)) +} + +func (this *QsciLexer) WordCharacters() string { + _ret := C.QsciLexer_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexer) WriteSettings(qs *qt.QSettings) bool { + return (bool)(C.QsciLexer_WriteSettings(this.h, (*C.QSettings)(qs.UnsafePointer()))) +} + +func (this *QsciLexer) SetAutoIndentStyle(autoindentstyle int) { + C.QsciLexer_SetAutoIndentStyle(this.h, (C.int)(autoindentstyle)) +} + +func (this *QsciLexer) SetColor(c *qt.QColor) { + C.QsciLexer_SetColor(this.h, (*C.QColor)(c.UnsafePointer())) +} + +func (this *QsciLexer) SetEolFill(eoffill bool) { + C.QsciLexer_SetEolFill(this.h, (C.bool)(eoffill)) +} + +func (this *QsciLexer) SetFont(f *qt.QFont) { + C.QsciLexer_SetFont(this.h, (*C.QFont)(f.UnsafePointer())) +} + +func (this *QsciLexer) SetPaper(c *qt.QColor) { + C.QsciLexer_SetPaper(this.h, (*C.QColor)(c.UnsafePointer())) +} + +func (this *QsciLexer) ColorChanged(c *qt.QColor, style int) { + C.QsciLexer_ColorChanged(this.h, (*C.QColor)(c.UnsafePointer()), (C.int)(style)) +} +func (this *QsciLexer) OnColorChanged(slot func(c *qt.QColor, style int)) { + C.QsciLexer_connect_ColorChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciLexer_ColorChanged +func miqt_exec_callback_QsciLexer_ColorChanged(cb C.intptr_t, c *C.QColor, style C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(c *qt.QColor, style int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := qt.UnsafeNewQColor(unsafe.Pointer(c)) + slotval2 := (int)(style) + + gofunc(slotval1, slotval2) +} + +func (this *QsciLexer) EolFillChanged(eolfilled bool, style int) { + C.QsciLexer_EolFillChanged(this.h, (C.bool)(eolfilled), (C.int)(style)) +} +func (this *QsciLexer) OnEolFillChanged(slot func(eolfilled bool, style int)) { + C.QsciLexer_connect_EolFillChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciLexer_EolFillChanged +func miqt_exec_callback_QsciLexer_EolFillChanged(cb C.intptr_t, eolfilled C.bool, style C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(eolfilled bool, style int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (bool)(eolfilled) + + slotval2 := (int)(style) + + gofunc(slotval1, slotval2) +} + +func (this *QsciLexer) FontChanged(f *qt.QFont, style int) { + C.QsciLexer_FontChanged(this.h, (*C.QFont)(f.UnsafePointer()), (C.int)(style)) +} +func (this *QsciLexer) OnFontChanged(slot func(f *qt.QFont, style int)) { + C.QsciLexer_connect_FontChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciLexer_FontChanged +func miqt_exec_callback_QsciLexer_FontChanged(cb C.intptr_t, f *C.QFont, style C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(f *qt.QFont, style int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := qt.UnsafeNewQFont(unsafe.Pointer(f)) + slotval2 := (int)(style) + + gofunc(slotval1, slotval2) +} + +func (this *QsciLexer) PaperChanged(c *qt.QColor, style int) { + C.QsciLexer_PaperChanged(this.h, (*C.QColor)(c.UnsafePointer()), (C.int)(style)) +} +func (this *QsciLexer) OnPaperChanged(slot func(c *qt.QColor, style int)) { + C.QsciLexer_connect_PaperChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciLexer_PaperChanged +func miqt_exec_callback_QsciLexer_PaperChanged(cb C.intptr_t, c *C.QColor, style C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(c *qt.QColor, style int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := qt.UnsafeNewQColor(unsafe.Pointer(c)) + slotval2 := (int)(style) + + gofunc(slotval1, slotval2) +} + +func (this *QsciLexer) PropertyChanged(prop string, val string) { + prop_Cstring := C.CString(prop) + defer C.free(unsafe.Pointer(prop_Cstring)) + val_Cstring := C.CString(val) + defer C.free(unsafe.Pointer(val_Cstring)) + C.QsciLexer_PropertyChanged(this.h, prop_Cstring, val_Cstring) +} +func (this *QsciLexer) OnPropertyChanged(slot func(prop string, val string)) { + C.QsciLexer_connect_PropertyChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciLexer_PropertyChanged +func miqt_exec_callback_QsciLexer_PropertyChanged(cb C.intptr_t, prop *C.const_char, val *C.const_char) { + gofunc, ok := cgo.Handle(cb).Value().(func(prop string, val string)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + prop_ret := prop + slotval1 := C.GoString(prop_ret) + + val_ret := val + slotval2 := C.GoString(val_ret) + + gofunc(slotval1, slotval2) +} + +func QsciLexer_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexer_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexer_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexer_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexer_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexer_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexer_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexer_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexer) BlockEnd1(style *int) string { + _ret := C.QsciLexer_BlockEnd1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexer) BlockStart1(style *int) string { + _ret := C.QsciLexer_BlockStart1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexer) BlockStartKeyword1(style *int) string { + _ret := C.QsciLexer_BlockStartKeyword1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexer) ReadSettings2(qs *qt.QSettings, prefix string) bool { + prefix_Cstring := C.CString(prefix) + defer C.free(unsafe.Pointer(prefix_Cstring)) + return (bool)(C.QsciLexer_ReadSettings2(this.h, (*C.QSettings)(qs.UnsafePointer()), prefix_Cstring)) +} + +func (this *QsciLexer) WriteSettings2(qs *qt.QSettings, prefix string) bool { + prefix_Cstring := C.CString(prefix) + defer C.free(unsafe.Pointer(prefix_Cstring)) + return (bool)(C.QsciLexer_WriteSettings2(this.h, (*C.QSettings)(qs.UnsafePointer()), prefix_Cstring)) +} + +func (this *QsciLexer) SetColor2(c *qt.QColor, style int) { + C.QsciLexer_SetColor2(this.h, (*C.QColor)(c.UnsafePointer()), (C.int)(style)) +} + +func (this *QsciLexer) SetEolFill2(eoffill bool, style int) { + C.QsciLexer_SetEolFill2(this.h, (C.bool)(eoffill), (C.int)(style)) +} + +func (this *QsciLexer) SetFont2(f *qt.QFont, style int) { + C.QsciLexer_SetFont2(this.h, (*C.QFont)(f.UnsafePointer()), (C.int)(style)) +} + +func (this *QsciLexer) SetPaper2(c *qt.QColor, style int) { + C.QsciLexer_SetPaper2(this.h, (*C.QColor)(c.UnsafePointer()), (C.int)(style)) +} + +// Delete this object from C++ memory. +func (this *QsciLexer) Delete() { + C.QsciLexer_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexer) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexer) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexer.h b/qt-restricted-extras/qscintilla/gen_qscilexer.h new file mode 100644 index 00000000..ef8c3861 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexer.h @@ -0,0 +1,111 @@ +#ifndef GEN_QSCILEXER_H +#define GEN_QSCILEXER_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QSettings; +class QsciAbstractAPIs; +class QsciLexer; +class QsciScintilla; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QSettings QSettings; +typedef struct QsciAbstractAPIs QsciAbstractAPIs; +typedef struct QsciLexer QsciLexer; +typedef struct QsciScintilla QsciScintilla; +#endif + +QMetaObject* QsciLexer_MetaObject(const QsciLexer* self); +void* QsciLexer_Metacast(QsciLexer* self, const char* param1); +struct miqt_string QsciLexer_Tr(const char* s); +struct miqt_string QsciLexer_TrUtf8(const char* s); +const char* QsciLexer_Language(const QsciLexer* self); +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); +int QsciLexer_AutoIndentStyle(QsciLexer* self); +const char* QsciLexer_BlockEnd(const QsciLexer* self); +int QsciLexer_BlockLookback(const QsciLexer* self); +const char* QsciLexer_BlockStart(const QsciLexer* self); +const char* QsciLexer_BlockStartKeyword(const QsciLexer* self); +int QsciLexer_BraceStyle(const QsciLexer* self); +bool QsciLexer_CaseSensitive(const QsciLexer* self); +QColor* QsciLexer_Color(const QsciLexer* self, int style); +bool QsciLexer_EolFill(const QsciLexer* self, int style); +QFont* QsciLexer_Font(const QsciLexer* self, int style); +int QsciLexer_IndentationGuideView(const QsciLexer* self); +const char* QsciLexer_Keywords(const QsciLexer* self, int set); +int QsciLexer_DefaultStyle(const QsciLexer* self); +struct miqt_string QsciLexer_Description(const QsciLexer* self, int style); +QColor* QsciLexer_Paper(const QsciLexer* self, int style); +QColor* QsciLexer_DefaultColor(const QsciLexer* self); +QColor* QsciLexer_DefaultColorWithStyle(const QsciLexer* self, int style); +bool QsciLexer_DefaultEolFill(const QsciLexer* self, int style); +QFont* QsciLexer_DefaultFont(const QsciLexer* self); +QFont* QsciLexer_DefaultFontWithStyle(const QsciLexer* self, int style); +QColor* QsciLexer_DefaultPaper(const QsciLexer* self); +QColor* QsciLexer_DefaultPaperWithStyle(const QsciLexer* self, int style); +QsciScintilla* QsciLexer_Editor(const QsciLexer* self); +void QsciLexer_SetAPIs(QsciLexer* self, QsciAbstractAPIs* apis); +void QsciLexer_SetDefaultColor(QsciLexer* self, QColor* c); +void QsciLexer_SetDefaultFont(QsciLexer* self, QFont* f); +void QsciLexer_SetDefaultPaper(QsciLexer* self, QColor* c); +void QsciLexer_SetEditor(QsciLexer* self, QsciScintilla* editor); +bool QsciLexer_ReadSettings(QsciLexer* self, QSettings* qs); +void QsciLexer_RefreshProperties(QsciLexer* self); +int QsciLexer_StyleBitsNeeded(const QsciLexer* self); +const char* QsciLexer_WordCharacters(const QsciLexer* self); +bool QsciLexer_WriteSettings(const QsciLexer* self, QSettings* qs); +void QsciLexer_SetAutoIndentStyle(QsciLexer* self, int autoindentstyle); +void QsciLexer_SetColor(QsciLexer* self, QColor* c); +void QsciLexer_SetEolFill(QsciLexer* self, bool eoffill); +void QsciLexer_SetFont(QsciLexer* self, QFont* f); +void QsciLexer_SetPaper(QsciLexer* self, QColor* c); +void QsciLexer_ColorChanged(QsciLexer* self, QColor* c, int style); +void QsciLexer_connect_ColorChanged(QsciLexer* self, intptr_t slot); +void QsciLexer_EolFillChanged(QsciLexer* self, bool eolfilled, int style); +void QsciLexer_connect_EolFillChanged(QsciLexer* self, intptr_t slot); +void QsciLexer_FontChanged(QsciLexer* self, QFont* f, int style); +void QsciLexer_connect_FontChanged(QsciLexer* self, intptr_t slot); +void QsciLexer_PaperChanged(QsciLexer* self, QColor* c, int style); +void QsciLexer_connect_PaperChanged(QsciLexer* self, intptr_t slot); +void QsciLexer_PropertyChanged(QsciLexer* self, const char* prop, const char* val); +void QsciLexer_connect_PropertyChanged(QsciLexer* self, intptr_t slot); +struct miqt_string QsciLexer_Tr2(const char* s, const char* c); +struct miqt_string QsciLexer_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexer_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexer_TrUtf83(const char* s, const char* c, int n); +const char* QsciLexer_BlockEnd1(const QsciLexer* self, int* style); +const char* QsciLexer_BlockStart1(const QsciLexer* self, int* style); +const char* QsciLexer_BlockStartKeyword1(const QsciLexer* self, int* style); +bool QsciLexer_ReadSettings2(QsciLexer* self, QSettings* qs, const char* prefix); +bool QsciLexer_WriteSettings2(const QsciLexer* self, QSettings* qs, const char* prefix); +void QsciLexer_SetColor2(QsciLexer* self, QColor* c, int style); +void QsciLexer_SetEolFill2(QsciLexer* self, bool eoffill, int style); +void QsciLexer_SetFont2(QsciLexer* self, QFont* f, int style); +void QsciLexer_SetPaper2(QsciLexer* self, QColor* c, int style); +void QsciLexer_Delete(QsciLexer* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeravs.cpp b/qt-restricted-extras/qscintilla/gen_qscilexeravs.cpp new file mode 100644 index 00000000..756c0dd0 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeravs.cpp @@ -0,0 +1,156 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexeravs.h" +#include "_cgo_export.h" + +QsciLexerAVS* QsciLexerAVS_new() { + return new QsciLexerAVS(); +} + +QsciLexerAVS* QsciLexerAVS_new2(QObject* parent) { + return new QsciLexerAVS(parent); +} + +QMetaObject* QsciLexerAVS_MetaObject(const QsciLexerAVS* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerAVS_Metacast(QsciLexerAVS* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerAVS_Tr(const char* s) { + QString _ret = QsciLexerAVS::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerAVS_TrUtf8(const char* s) { + QString _ret = QsciLexerAVS::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerAVS_Language(const QsciLexerAVS* self) { + return (const char*) self->language(); +} + +const char* QsciLexerAVS_Lexer(const QsciLexerAVS* self) { + return (const char*) self->lexer(); +} + +int QsciLexerAVS_BraceStyle(const QsciLexerAVS* self) { + return self->braceStyle(); +} + +const char* QsciLexerAVS_WordCharacters(const QsciLexerAVS* self) { + return (const char*) self->wordCharacters(); +} + +QColor* QsciLexerAVS_DefaultColor(const QsciLexerAVS* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +QFont* QsciLexerAVS_DefaultFont(const QsciLexerAVS* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +const char* QsciLexerAVS_Keywords(const QsciLexerAVS* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerAVS_Description(const QsciLexerAVS* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerAVS_RefreshProperties(QsciLexerAVS* self) { + self->refreshProperties(); +} + +bool QsciLexerAVS_FoldComments(const QsciLexerAVS* self) { + return self->foldComments(); +} + +bool QsciLexerAVS_FoldCompact(const QsciLexerAVS* self) { + return self->foldCompact(); +} + +void QsciLexerAVS_SetFoldComments(QsciLexerAVS* self, bool fold) { + self->setFoldComments(fold); +} + +void QsciLexerAVS_SetFoldCompact(QsciLexerAVS* self, bool fold) { + self->setFoldCompact(fold); +} + +struct miqt_string QsciLexerAVS_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerAVS::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerAVS_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerAVS::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerAVS_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerAVS::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerAVS_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerAVS::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerAVS_Delete(QsciLexerAVS* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeravs.go b/qt-restricted-extras/qscintilla/gen_qscilexeravs.go new file mode 100644 index 00000000..24985246 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeravs.go @@ -0,0 +1,228 @@ +package qscintilla + +/* + +#include "gen_qscilexeravs.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerAVS__ int + +const ( + QsciLexerAVS__Default QsciLexerAVS__ = 0 + QsciLexerAVS__BlockComment QsciLexerAVS__ = 1 + QsciLexerAVS__NestedBlockComment QsciLexerAVS__ = 2 + QsciLexerAVS__LineComment QsciLexerAVS__ = 3 + QsciLexerAVS__Number QsciLexerAVS__ = 4 + QsciLexerAVS__Operator QsciLexerAVS__ = 5 + QsciLexerAVS__Identifier QsciLexerAVS__ = 6 + QsciLexerAVS__String QsciLexerAVS__ = 7 + QsciLexerAVS__TripleString QsciLexerAVS__ = 8 + QsciLexerAVS__Keyword QsciLexerAVS__ = 9 + QsciLexerAVS__Filter QsciLexerAVS__ = 10 + QsciLexerAVS__Plugin QsciLexerAVS__ = 11 + QsciLexerAVS__Function QsciLexerAVS__ = 12 + QsciLexerAVS__ClipProperty QsciLexerAVS__ = 13 + QsciLexerAVS__KeywordSet6 QsciLexerAVS__ = 14 +) + +type QsciLexerAVS struct { + h *C.QsciLexerAVS + *QsciLexer +} + +func (this *QsciLexerAVS) cPointer() *C.QsciLexerAVS { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerAVS) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerAVS(h *C.QsciLexerAVS) *QsciLexerAVS { + if h == nil { + return nil + } + return &QsciLexerAVS{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerAVS(h unsafe.Pointer) *QsciLexerAVS { + return newQsciLexerAVS((*C.QsciLexerAVS)(h)) +} + +// NewQsciLexerAVS constructs a new QsciLexerAVS object. +func NewQsciLexerAVS() *QsciLexerAVS { + ret := C.QsciLexerAVS_new() + return newQsciLexerAVS(ret) +} + +// NewQsciLexerAVS2 constructs a new QsciLexerAVS object. +func NewQsciLexerAVS2(parent *qt.QObject) *QsciLexerAVS { + ret := C.QsciLexerAVS_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerAVS(ret) +} + +func (this *QsciLexerAVS) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerAVS_MetaObject(this.h))) +} + +func (this *QsciLexerAVS) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerAVS_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerAVS_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerAVS_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerAVS_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerAVS_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerAVS) Language() string { + _ret := C.QsciLexerAVS_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerAVS) Lexer() string { + _ret := C.QsciLexerAVS_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerAVS) BraceStyle() int { + return (int)(C.QsciLexerAVS_BraceStyle(this.h)) +} + +func (this *QsciLexerAVS) WordCharacters() string { + _ret := C.QsciLexerAVS_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerAVS) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerAVS_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerAVS) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerAVS_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerAVS) Keywords(set int) string { + _ret := C.QsciLexerAVS_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerAVS) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerAVS_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerAVS) RefreshProperties() { + C.QsciLexerAVS_RefreshProperties(this.h) +} + +func (this *QsciLexerAVS) FoldComments() bool { + return (bool)(C.QsciLexerAVS_FoldComments(this.h)) +} + +func (this *QsciLexerAVS) FoldCompact() bool { + return (bool)(C.QsciLexerAVS_FoldCompact(this.h)) +} + +func (this *QsciLexerAVS) SetFoldComments(fold bool) { + C.QsciLexerAVS_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerAVS) SetFoldCompact(fold bool) { + C.QsciLexerAVS_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func QsciLexerAVS_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerAVS_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerAVS_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerAVS_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerAVS_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerAVS_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerAVS_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerAVS_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerAVS) Delete() { + C.QsciLexerAVS_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerAVS) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerAVS) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeravs.h b/qt-restricted-extras/qscintilla/gen_qscilexeravs.h new file mode 100644 index 00000000..fc9968c0 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeravs.h @@ -0,0 +1,59 @@ +#ifndef GEN_QSCILEXERAVS_H +#define GEN_QSCILEXERAVS_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerAVS; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerAVS QsciLexerAVS; +#endif + +QsciLexerAVS* QsciLexerAVS_new(); +QsciLexerAVS* QsciLexerAVS_new2(QObject* parent); +QMetaObject* QsciLexerAVS_MetaObject(const QsciLexerAVS* self); +void* QsciLexerAVS_Metacast(QsciLexerAVS* self, const char* param1); +struct miqt_string QsciLexerAVS_Tr(const char* s); +struct miqt_string QsciLexerAVS_TrUtf8(const char* s); +const char* QsciLexerAVS_Language(const QsciLexerAVS* self); +const char* QsciLexerAVS_Lexer(const QsciLexerAVS* self); +int QsciLexerAVS_BraceStyle(const QsciLexerAVS* self); +const char* QsciLexerAVS_WordCharacters(const QsciLexerAVS* self); +QColor* QsciLexerAVS_DefaultColor(const QsciLexerAVS* self, int style); +QFont* QsciLexerAVS_DefaultFont(const QsciLexerAVS* self, int style); +const char* QsciLexerAVS_Keywords(const QsciLexerAVS* self, int set); +struct miqt_string QsciLexerAVS_Description(const QsciLexerAVS* self, int style); +void QsciLexerAVS_RefreshProperties(QsciLexerAVS* self); +bool QsciLexerAVS_FoldComments(const QsciLexerAVS* self); +bool QsciLexerAVS_FoldCompact(const QsciLexerAVS* self); +void QsciLexerAVS_SetFoldComments(QsciLexerAVS* self, bool fold); +void QsciLexerAVS_SetFoldCompact(QsciLexerAVS* self, bool fold); +struct miqt_string QsciLexerAVS_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerAVS_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerAVS_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerAVS_TrUtf83(const char* s, const char* c, int n); +void QsciLexerAVS_Delete(QsciLexerAVS* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerbash.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerbash.cpp new file mode 100644 index 00000000..7f514f10 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerbash.cpp @@ -0,0 +1,164 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerbash.h" +#include "_cgo_export.h" + +QsciLexerBash* QsciLexerBash_new() { + return new QsciLexerBash(); +} + +QsciLexerBash* QsciLexerBash_new2(QObject* parent) { + return new QsciLexerBash(parent); +} + +QMetaObject* QsciLexerBash_MetaObject(const QsciLexerBash* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerBash_Metacast(QsciLexerBash* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerBash_Tr(const char* s) { + QString _ret = QsciLexerBash::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerBash_TrUtf8(const char* s) { + QString _ret = QsciLexerBash::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerBash_Language(const QsciLexerBash* self) { + return (const char*) self->language(); +} + +const char* QsciLexerBash_Lexer(const QsciLexerBash* self) { + return (const char*) self->lexer(); +} + +int QsciLexerBash_BraceStyle(const QsciLexerBash* self) { + return self->braceStyle(); +} + +const char* QsciLexerBash_WordCharacters(const QsciLexerBash* self) { + return (const char*) self->wordCharacters(); +} + +QColor* QsciLexerBash_DefaultColor(const QsciLexerBash* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerBash_DefaultEolFill(const QsciLexerBash* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerBash_DefaultFont(const QsciLexerBash* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerBash_DefaultPaper(const QsciLexerBash* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerBash_Keywords(const QsciLexerBash* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerBash_Description(const QsciLexerBash* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerBash_RefreshProperties(QsciLexerBash* self) { + self->refreshProperties(); +} + +bool QsciLexerBash_FoldComments(const QsciLexerBash* self) { + return self->foldComments(); +} + +bool QsciLexerBash_FoldCompact(const QsciLexerBash* self) { + return self->foldCompact(); +} + +void QsciLexerBash_SetFoldComments(QsciLexerBash* self, bool fold) { + self->setFoldComments(fold); +} + +void QsciLexerBash_SetFoldCompact(QsciLexerBash* self, bool fold) { + self->setFoldCompact(fold); +} + +struct miqt_string QsciLexerBash_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerBash::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerBash_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerBash::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerBash_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerBash::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerBash_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerBash::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerBash_Delete(QsciLexerBash* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerbash.go b/qt-restricted-extras/qscintilla/gen_qscilexerbash.go new file mode 100644 index 00000000..8166a961 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerbash.go @@ -0,0 +1,238 @@ +package qscintilla + +/* + +#include "gen_qscilexerbash.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerBash__ int + +const ( + QsciLexerBash__Default QsciLexerBash__ = 0 + QsciLexerBash__Error QsciLexerBash__ = 1 + QsciLexerBash__Comment QsciLexerBash__ = 2 + QsciLexerBash__Number QsciLexerBash__ = 3 + QsciLexerBash__Keyword QsciLexerBash__ = 4 + QsciLexerBash__DoubleQuotedString QsciLexerBash__ = 5 + QsciLexerBash__SingleQuotedString QsciLexerBash__ = 6 + QsciLexerBash__Operator QsciLexerBash__ = 7 + QsciLexerBash__Identifier QsciLexerBash__ = 8 + QsciLexerBash__Scalar QsciLexerBash__ = 9 + QsciLexerBash__ParameterExpansion QsciLexerBash__ = 10 + QsciLexerBash__Backticks QsciLexerBash__ = 11 + QsciLexerBash__HereDocumentDelimiter QsciLexerBash__ = 12 + QsciLexerBash__SingleQuotedHereDocument QsciLexerBash__ = 13 +) + +type QsciLexerBash struct { + h *C.QsciLexerBash + *QsciLexer +} + +func (this *QsciLexerBash) cPointer() *C.QsciLexerBash { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerBash) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerBash(h *C.QsciLexerBash) *QsciLexerBash { + if h == nil { + return nil + } + return &QsciLexerBash{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerBash(h unsafe.Pointer) *QsciLexerBash { + return newQsciLexerBash((*C.QsciLexerBash)(h)) +} + +// NewQsciLexerBash constructs a new QsciLexerBash object. +func NewQsciLexerBash() *QsciLexerBash { + ret := C.QsciLexerBash_new() + return newQsciLexerBash(ret) +} + +// NewQsciLexerBash2 constructs a new QsciLexerBash object. +func NewQsciLexerBash2(parent *qt.QObject) *QsciLexerBash { + ret := C.QsciLexerBash_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerBash(ret) +} + +func (this *QsciLexerBash) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerBash_MetaObject(this.h))) +} + +func (this *QsciLexerBash) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerBash_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerBash_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerBash_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerBash_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerBash_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerBash) Language() string { + _ret := C.QsciLexerBash_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerBash) Lexer() string { + _ret := C.QsciLexerBash_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerBash) BraceStyle() int { + return (int)(C.QsciLexerBash_BraceStyle(this.h)) +} + +func (this *QsciLexerBash) WordCharacters() string { + _ret := C.QsciLexerBash_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerBash) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerBash_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerBash) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerBash_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerBash) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerBash_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerBash) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerBash_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerBash) Keywords(set int) string { + _ret := C.QsciLexerBash_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerBash) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerBash_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerBash) RefreshProperties() { + C.QsciLexerBash_RefreshProperties(this.h) +} + +func (this *QsciLexerBash) FoldComments() bool { + return (bool)(C.QsciLexerBash_FoldComments(this.h)) +} + +func (this *QsciLexerBash) FoldCompact() bool { + return (bool)(C.QsciLexerBash_FoldCompact(this.h)) +} + +func (this *QsciLexerBash) SetFoldComments(fold bool) { + C.QsciLexerBash_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerBash) SetFoldCompact(fold bool) { + C.QsciLexerBash_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func QsciLexerBash_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerBash_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerBash_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerBash_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerBash_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerBash_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerBash_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerBash_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerBash) Delete() { + C.QsciLexerBash_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerBash) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerBash) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerbash.h b/qt-restricted-extras/qscintilla/gen_qscilexerbash.h new file mode 100644 index 00000000..e6d0a228 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerbash.h @@ -0,0 +1,61 @@ +#ifndef GEN_QSCILEXERBASH_H +#define GEN_QSCILEXERBASH_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerBash; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerBash QsciLexerBash; +#endif + +QsciLexerBash* QsciLexerBash_new(); +QsciLexerBash* QsciLexerBash_new2(QObject* parent); +QMetaObject* QsciLexerBash_MetaObject(const QsciLexerBash* self); +void* QsciLexerBash_Metacast(QsciLexerBash* self, const char* param1); +struct miqt_string QsciLexerBash_Tr(const char* s); +struct miqt_string QsciLexerBash_TrUtf8(const char* s); +const char* QsciLexerBash_Language(const QsciLexerBash* self); +const char* QsciLexerBash_Lexer(const QsciLexerBash* self); +int QsciLexerBash_BraceStyle(const QsciLexerBash* self); +const char* QsciLexerBash_WordCharacters(const QsciLexerBash* self); +QColor* QsciLexerBash_DefaultColor(const QsciLexerBash* self, int style); +bool QsciLexerBash_DefaultEolFill(const QsciLexerBash* self, int style); +QFont* QsciLexerBash_DefaultFont(const QsciLexerBash* self, int style); +QColor* QsciLexerBash_DefaultPaper(const QsciLexerBash* self, int style); +const char* QsciLexerBash_Keywords(const QsciLexerBash* self, int set); +struct miqt_string QsciLexerBash_Description(const QsciLexerBash* self, int style); +void QsciLexerBash_RefreshProperties(QsciLexerBash* self); +bool QsciLexerBash_FoldComments(const QsciLexerBash* self); +bool QsciLexerBash_FoldCompact(const QsciLexerBash* self); +void QsciLexerBash_SetFoldComments(QsciLexerBash* self, bool fold); +void QsciLexerBash_SetFoldCompact(QsciLexerBash* self, bool fold); +struct miqt_string QsciLexerBash_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerBash_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerBash_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerBash_TrUtf83(const char* s, const char* c, int n); +void QsciLexerBash_Delete(QsciLexerBash* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerbatch.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerbatch.cpp new file mode 100644 index 00000000..3e30314a --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerbatch.cpp @@ -0,0 +1,144 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerbatch.h" +#include "_cgo_export.h" + +QsciLexerBatch* QsciLexerBatch_new() { + return new QsciLexerBatch(); +} + +QsciLexerBatch* QsciLexerBatch_new2(QObject* parent) { + return new QsciLexerBatch(parent); +} + +QMetaObject* QsciLexerBatch_MetaObject(const QsciLexerBatch* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerBatch_Metacast(QsciLexerBatch* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerBatch_Tr(const char* s) { + QString _ret = QsciLexerBatch::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerBatch_TrUtf8(const char* s) { + QString _ret = QsciLexerBatch::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerBatch_Language(const QsciLexerBatch* self) { + return (const char*) self->language(); +} + +const char* QsciLexerBatch_Lexer(const QsciLexerBatch* self) { + return (const char*) self->lexer(); +} + +const char* QsciLexerBatch_WordCharacters(const QsciLexerBatch* self) { + return (const char*) self->wordCharacters(); +} + +bool QsciLexerBatch_CaseSensitive(const QsciLexerBatch* self) { + return self->caseSensitive(); +} + +QColor* QsciLexerBatch_DefaultColor(const QsciLexerBatch* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerBatch_DefaultEolFill(const QsciLexerBatch* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerBatch_DefaultFont(const QsciLexerBatch* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerBatch_DefaultPaper(const QsciLexerBatch* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerBatch_Keywords(const QsciLexerBatch* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerBatch_Description(const QsciLexerBatch* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerBatch_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerBatch::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerBatch_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerBatch::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerBatch_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerBatch::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerBatch_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerBatch::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerBatch_Delete(QsciLexerBatch* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerbatch.go b/qt-restricted-extras/qscintilla/gen_qscilexerbatch.go new file mode 100644 index 00000000..be001c11 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerbatch.go @@ -0,0 +1,212 @@ +package qscintilla + +/* + +#include "gen_qscilexerbatch.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerBatch__ int + +const ( + QsciLexerBatch__Default QsciLexerBatch__ = 0 + QsciLexerBatch__Comment QsciLexerBatch__ = 1 + QsciLexerBatch__Keyword QsciLexerBatch__ = 2 + QsciLexerBatch__Label QsciLexerBatch__ = 3 + QsciLexerBatch__HideCommandChar QsciLexerBatch__ = 4 + QsciLexerBatch__ExternalCommand QsciLexerBatch__ = 5 + QsciLexerBatch__Variable QsciLexerBatch__ = 6 + QsciLexerBatch__Operator QsciLexerBatch__ = 7 +) + +type QsciLexerBatch struct { + h *C.QsciLexerBatch + *QsciLexer +} + +func (this *QsciLexerBatch) cPointer() *C.QsciLexerBatch { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerBatch) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerBatch(h *C.QsciLexerBatch) *QsciLexerBatch { + if h == nil { + return nil + } + return &QsciLexerBatch{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerBatch(h unsafe.Pointer) *QsciLexerBatch { + return newQsciLexerBatch((*C.QsciLexerBatch)(h)) +} + +// NewQsciLexerBatch constructs a new QsciLexerBatch object. +func NewQsciLexerBatch() *QsciLexerBatch { + ret := C.QsciLexerBatch_new() + return newQsciLexerBatch(ret) +} + +// NewQsciLexerBatch2 constructs a new QsciLexerBatch object. +func NewQsciLexerBatch2(parent *qt.QObject) *QsciLexerBatch { + ret := C.QsciLexerBatch_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerBatch(ret) +} + +func (this *QsciLexerBatch) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerBatch_MetaObject(this.h))) +} + +func (this *QsciLexerBatch) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerBatch_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerBatch_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerBatch_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerBatch_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerBatch_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerBatch) Language() string { + _ret := C.QsciLexerBatch_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerBatch) Lexer() string { + _ret := C.QsciLexerBatch_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerBatch) WordCharacters() string { + _ret := C.QsciLexerBatch_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerBatch) CaseSensitive() bool { + return (bool)(C.QsciLexerBatch_CaseSensitive(this.h)) +} + +func (this *QsciLexerBatch) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerBatch_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerBatch) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerBatch_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerBatch) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerBatch_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerBatch) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerBatch_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerBatch) Keywords(set int) string { + _ret := C.QsciLexerBatch_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerBatch) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerBatch_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerBatch_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerBatch_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerBatch_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerBatch_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerBatch_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerBatch_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerBatch_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerBatch_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerBatch) Delete() { + C.QsciLexerBatch_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerBatch) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerBatch) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerbatch.h b/qt-restricted-extras/qscintilla/gen_qscilexerbatch.h new file mode 100644 index 00000000..0a7ad087 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerbatch.h @@ -0,0 +1,56 @@ +#ifndef GEN_QSCILEXERBATCH_H +#define GEN_QSCILEXERBATCH_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerBatch; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerBatch QsciLexerBatch; +#endif + +QsciLexerBatch* QsciLexerBatch_new(); +QsciLexerBatch* QsciLexerBatch_new2(QObject* parent); +QMetaObject* QsciLexerBatch_MetaObject(const QsciLexerBatch* self); +void* QsciLexerBatch_Metacast(QsciLexerBatch* self, const char* param1); +struct miqt_string QsciLexerBatch_Tr(const char* s); +struct miqt_string QsciLexerBatch_TrUtf8(const char* s); +const char* QsciLexerBatch_Language(const QsciLexerBatch* self); +const char* QsciLexerBatch_Lexer(const QsciLexerBatch* self); +const char* QsciLexerBatch_WordCharacters(const QsciLexerBatch* self); +bool QsciLexerBatch_CaseSensitive(const QsciLexerBatch* self); +QColor* QsciLexerBatch_DefaultColor(const QsciLexerBatch* self, int style); +bool QsciLexerBatch_DefaultEolFill(const QsciLexerBatch* self, int style); +QFont* QsciLexerBatch_DefaultFont(const QsciLexerBatch* self, int style); +QColor* QsciLexerBatch_DefaultPaper(const QsciLexerBatch* self, int style); +const char* QsciLexerBatch_Keywords(const QsciLexerBatch* self, int set); +struct miqt_string QsciLexerBatch_Description(const QsciLexerBatch* self, int style); +struct miqt_string QsciLexerBatch_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerBatch_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerBatch_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerBatch_TrUtf83(const char* s, const char* c, int n); +void QsciLexerBatch_Delete(QsciLexerBatch* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercmake.cpp b/qt-restricted-extras/qscintilla/gen_qscilexercmake.cpp new file mode 100644 index 00000000..a363987b --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercmake.cpp @@ -0,0 +1,144 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexercmake.h" +#include "_cgo_export.h" + +QsciLexerCMake* QsciLexerCMake_new() { + return new QsciLexerCMake(); +} + +QsciLexerCMake* QsciLexerCMake_new2(QObject* parent) { + return new QsciLexerCMake(parent); +} + +QMetaObject* QsciLexerCMake_MetaObject(const QsciLexerCMake* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerCMake_Metacast(QsciLexerCMake* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerCMake_Tr(const char* s) { + QString _ret = QsciLexerCMake::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCMake_TrUtf8(const char* s) { + QString _ret = QsciLexerCMake::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerCMake_Language(const QsciLexerCMake* self) { + return (const char*) self->language(); +} + +const char* QsciLexerCMake_Lexer(const QsciLexerCMake* self) { + return (const char*) self->lexer(); +} + +QColor* QsciLexerCMake_DefaultColor(const QsciLexerCMake* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +QFont* QsciLexerCMake_DefaultFont(const QsciLexerCMake* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerCMake_DefaultPaper(const QsciLexerCMake* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerCMake_Keywords(const QsciLexerCMake* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerCMake_Description(const QsciLexerCMake* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerCMake_RefreshProperties(QsciLexerCMake* self) { + self->refreshProperties(); +} + +bool QsciLexerCMake_FoldAtElse(const QsciLexerCMake* self) { + return self->foldAtElse(); +} + +void QsciLexerCMake_SetFoldAtElse(QsciLexerCMake* self, bool fold) { + self->setFoldAtElse(fold); +} + +struct miqt_string QsciLexerCMake_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerCMake::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCMake_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerCMake::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCMake_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerCMake::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCMake_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerCMake::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerCMake_Delete(QsciLexerCMake* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercmake.go b/qt-restricted-extras/qscintilla/gen_qscilexercmake.go new file mode 100644 index 00000000..f02dee76 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercmake.go @@ -0,0 +1,218 @@ +package qscintilla + +/* + +#include "gen_qscilexercmake.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerCMake__ int + +const ( + QsciLexerCMake__Default QsciLexerCMake__ = 0 + QsciLexerCMake__Comment QsciLexerCMake__ = 1 + QsciLexerCMake__String QsciLexerCMake__ = 2 + QsciLexerCMake__StringLeftQuote QsciLexerCMake__ = 3 + QsciLexerCMake__StringRightQuote QsciLexerCMake__ = 4 + QsciLexerCMake__Function QsciLexerCMake__ = 5 + QsciLexerCMake__Variable QsciLexerCMake__ = 6 + QsciLexerCMake__Label QsciLexerCMake__ = 7 + QsciLexerCMake__KeywordSet3 QsciLexerCMake__ = 8 + QsciLexerCMake__BlockWhile QsciLexerCMake__ = 9 + QsciLexerCMake__BlockForeach QsciLexerCMake__ = 10 + QsciLexerCMake__BlockIf QsciLexerCMake__ = 11 + QsciLexerCMake__BlockMacro QsciLexerCMake__ = 12 + QsciLexerCMake__StringVariable QsciLexerCMake__ = 13 + QsciLexerCMake__Number QsciLexerCMake__ = 14 +) + +type QsciLexerCMake struct { + h *C.QsciLexerCMake + *QsciLexer +} + +func (this *QsciLexerCMake) cPointer() *C.QsciLexerCMake { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerCMake) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerCMake(h *C.QsciLexerCMake) *QsciLexerCMake { + if h == nil { + return nil + } + return &QsciLexerCMake{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerCMake(h unsafe.Pointer) *QsciLexerCMake { + return newQsciLexerCMake((*C.QsciLexerCMake)(h)) +} + +// NewQsciLexerCMake constructs a new QsciLexerCMake object. +func NewQsciLexerCMake() *QsciLexerCMake { + ret := C.QsciLexerCMake_new() + return newQsciLexerCMake(ret) +} + +// NewQsciLexerCMake2 constructs a new QsciLexerCMake object. +func NewQsciLexerCMake2(parent *qt.QObject) *QsciLexerCMake { + ret := C.QsciLexerCMake_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerCMake(ret) +} + +func (this *QsciLexerCMake) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerCMake_MetaObject(this.h))) +} + +func (this *QsciLexerCMake) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerCMake_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerCMake_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCMake_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCMake_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCMake_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerCMake) Language() string { + _ret := C.QsciLexerCMake_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCMake) Lexer() string { + _ret := C.QsciLexerCMake_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCMake) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerCMake_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerCMake) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerCMake_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerCMake) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerCMake_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerCMake) Keywords(set int) string { + _ret := C.QsciLexerCMake_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerCMake) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerCMake_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerCMake) RefreshProperties() { + C.QsciLexerCMake_RefreshProperties(this.h) +} + +func (this *QsciLexerCMake) FoldAtElse() bool { + return (bool)(C.QsciLexerCMake_FoldAtElse(this.h)) +} + +func (this *QsciLexerCMake) SetFoldAtElse(fold bool) { + C.QsciLexerCMake_SetFoldAtElse(this.h, (C.bool)(fold)) +} + +func QsciLexerCMake_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCMake_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCMake_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCMake_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCMake_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCMake_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCMake_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCMake_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerCMake) Delete() { + C.QsciLexerCMake_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerCMake) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerCMake) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercmake.h b/qt-restricted-extras/qscintilla/gen_qscilexercmake.h new file mode 100644 index 00000000..91b13e6d --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercmake.h @@ -0,0 +1,56 @@ +#ifndef GEN_QSCILEXERCMAKE_H +#define GEN_QSCILEXERCMAKE_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerCMake; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerCMake QsciLexerCMake; +#endif + +QsciLexerCMake* QsciLexerCMake_new(); +QsciLexerCMake* QsciLexerCMake_new2(QObject* parent); +QMetaObject* QsciLexerCMake_MetaObject(const QsciLexerCMake* self); +void* QsciLexerCMake_Metacast(QsciLexerCMake* self, const char* param1); +struct miqt_string QsciLexerCMake_Tr(const char* s); +struct miqt_string QsciLexerCMake_TrUtf8(const char* s); +const char* QsciLexerCMake_Language(const QsciLexerCMake* self); +const char* QsciLexerCMake_Lexer(const QsciLexerCMake* self); +QColor* QsciLexerCMake_DefaultColor(const QsciLexerCMake* self, int style); +QFont* QsciLexerCMake_DefaultFont(const QsciLexerCMake* self, int style); +QColor* QsciLexerCMake_DefaultPaper(const QsciLexerCMake* self, int style); +const char* QsciLexerCMake_Keywords(const QsciLexerCMake* self, int set); +struct miqt_string QsciLexerCMake_Description(const QsciLexerCMake* self, int style); +void QsciLexerCMake_RefreshProperties(QsciLexerCMake* self); +bool QsciLexerCMake_FoldAtElse(const QsciLexerCMake* self); +void QsciLexerCMake_SetFoldAtElse(QsciLexerCMake* self, bool fold); +struct miqt_string QsciLexerCMake_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerCMake_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerCMake_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerCMake_TrUtf83(const char* s, const char* c, int n); +void QsciLexerCMake_Delete(QsciLexerCMake* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.cpp b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.cpp new file mode 100644 index 00000000..b13bd19b --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.cpp @@ -0,0 +1,225 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexercoffeescript.h" +#include "_cgo_export.h" + +QsciLexerCoffeeScript* QsciLexerCoffeeScript_new() { + return new QsciLexerCoffeeScript(); +} + +QsciLexerCoffeeScript* QsciLexerCoffeeScript_new2(QObject* parent) { + return new QsciLexerCoffeeScript(parent); +} + +QMetaObject* QsciLexerCoffeeScript_MetaObject(const QsciLexerCoffeeScript* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerCoffeeScript_Metacast(QsciLexerCoffeeScript* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerCoffeeScript_Tr(const char* s) { + QString _ret = QsciLexerCoffeeScript::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCoffeeScript_TrUtf8(const char* s) { + QString _ret = QsciLexerCoffeeScript::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerCoffeeScript_Language(const QsciLexerCoffeeScript* self) { + return (const char*) self->language(); +} + +const char* QsciLexerCoffeeScript_Lexer(const QsciLexerCoffeeScript* self) { + return (const char*) self->lexer(); +} + +struct miqt_array* 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())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QString _lv_ret = _ret[i]; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_b = _lv_ret.toUtf8(); + struct miqt_string _lv_ms; + _lv_ms.len = _lv_b.length(); + _lv_ms.data = static_cast(malloc(_lv_ms.len)); + memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len); + _arr[i] = _lv_ms; + } + struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); + _out->len = _ret.length(); + _out->data = static_cast(_arr); + return _out; +} + +const char* QsciLexerCoffeeScript_BlockEnd(const QsciLexerCoffeeScript* self) { + return (const char*) self->blockEnd(); +} + +const char* QsciLexerCoffeeScript_BlockStart(const QsciLexerCoffeeScript* self) { + return (const char*) self->blockStart(); +} + +const char* QsciLexerCoffeeScript_BlockStartKeyword(const QsciLexerCoffeeScript* self) { + return (const char*) self->blockStartKeyword(); +} + +int QsciLexerCoffeeScript_BraceStyle(const QsciLexerCoffeeScript* self) { + return self->braceStyle(); +} + +const char* QsciLexerCoffeeScript_WordCharacters(const QsciLexerCoffeeScript* self) { + return (const char*) self->wordCharacters(); +} + +QColor* QsciLexerCoffeeScript_DefaultColor(const QsciLexerCoffeeScript* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerCoffeeScript_DefaultEolFill(const QsciLexerCoffeeScript* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerCoffeeScript_DefaultFont(const QsciLexerCoffeeScript* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerCoffeeScript_DefaultPaper(const QsciLexerCoffeeScript* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerCoffeeScript_Keywords(const QsciLexerCoffeeScript* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerCoffeeScript_Description(const QsciLexerCoffeeScript* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerCoffeeScript_RefreshProperties(QsciLexerCoffeeScript* self) { + self->refreshProperties(); +} + +bool QsciLexerCoffeeScript_DollarsAllowed(const QsciLexerCoffeeScript* self) { + return self->dollarsAllowed(); +} + +void QsciLexerCoffeeScript_SetDollarsAllowed(QsciLexerCoffeeScript* self, bool allowed) { + self->setDollarsAllowed(allowed); +} + +bool QsciLexerCoffeeScript_FoldComments(const QsciLexerCoffeeScript* self) { + return self->foldComments(); +} + +void QsciLexerCoffeeScript_SetFoldComments(QsciLexerCoffeeScript* self, bool fold) { + self->setFoldComments(fold); +} + +bool QsciLexerCoffeeScript_FoldCompact(const QsciLexerCoffeeScript* self) { + return self->foldCompact(); +} + +void QsciLexerCoffeeScript_SetFoldCompact(QsciLexerCoffeeScript* self, bool fold) { + self->setFoldCompact(fold); +} + +bool QsciLexerCoffeeScript_StylePreprocessor(const QsciLexerCoffeeScript* self) { + return self->stylePreprocessor(); +} + +void QsciLexerCoffeeScript_SetStylePreprocessor(QsciLexerCoffeeScript* self, bool style) { + self->setStylePreprocessor(style); +} + +struct miqt_string QsciLexerCoffeeScript_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerCoffeeScript::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCoffeeScript_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerCoffeeScript::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCoffeeScript_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerCoffeeScript::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCoffeeScript_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerCoffeeScript::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerCoffeeScript_BlockEnd1(const QsciLexerCoffeeScript* self, int* style) { + return (const char*) self->blockEnd(static_cast(style)); +} + +const char* QsciLexerCoffeeScript_BlockStart1(const QsciLexerCoffeeScript* self, int* style) { + return (const char*) self->blockStart(static_cast(style)); +} + +const char* QsciLexerCoffeeScript_BlockStartKeyword1(const QsciLexerCoffeeScript* self, int* style) { + return (const char*) self->blockStartKeyword(static_cast(style)); +} + +void QsciLexerCoffeeScript_Delete(QsciLexerCoffeeScript* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.go b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.go new file mode 100644 index 00000000..722b5eec --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.go @@ -0,0 +1,308 @@ +package qscintilla + +/* + +#include "gen_qscilexercoffeescript.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerCoffeeScript__ int + +const ( + QsciLexerCoffeeScript__Default QsciLexerCoffeeScript__ = 0 + QsciLexerCoffeeScript__Comment QsciLexerCoffeeScript__ = 1 + QsciLexerCoffeeScript__CommentLine QsciLexerCoffeeScript__ = 2 + QsciLexerCoffeeScript__CommentDoc QsciLexerCoffeeScript__ = 3 + QsciLexerCoffeeScript__Number QsciLexerCoffeeScript__ = 4 + QsciLexerCoffeeScript__Keyword QsciLexerCoffeeScript__ = 5 + QsciLexerCoffeeScript__DoubleQuotedString QsciLexerCoffeeScript__ = 6 + QsciLexerCoffeeScript__SingleQuotedString QsciLexerCoffeeScript__ = 7 + QsciLexerCoffeeScript__UUID QsciLexerCoffeeScript__ = 8 + QsciLexerCoffeeScript__PreProcessor QsciLexerCoffeeScript__ = 9 + QsciLexerCoffeeScript__Operator QsciLexerCoffeeScript__ = 10 + QsciLexerCoffeeScript__Identifier QsciLexerCoffeeScript__ = 11 + QsciLexerCoffeeScript__UnclosedString QsciLexerCoffeeScript__ = 12 + QsciLexerCoffeeScript__VerbatimString QsciLexerCoffeeScript__ = 13 + QsciLexerCoffeeScript__Regex QsciLexerCoffeeScript__ = 14 + QsciLexerCoffeeScript__CommentLineDoc QsciLexerCoffeeScript__ = 15 + QsciLexerCoffeeScript__KeywordSet2 QsciLexerCoffeeScript__ = 16 + QsciLexerCoffeeScript__CommentDocKeyword QsciLexerCoffeeScript__ = 17 + QsciLexerCoffeeScript__CommentDocKeywordError QsciLexerCoffeeScript__ = 18 + QsciLexerCoffeeScript__GlobalClass QsciLexerCoffeeScript__ = 19 + QsciLexerCoffeeScript__CommentBlock QsciLexerCoffeeScript__ = 22 + QsciLexerCoffeeScript__BlockRegex QsciLexerCoffeeScript__ = 23 + QsciLexerCoffeeScript__BlockRegexComment QsciLexerCoffeeScript__ = 24 + QsciLexerCoffeeScript__InstanceProperty QsciLexerCoffeeScript__ = 25 +) + +type QsciLexerCoffeeScript struct { + h *C.QsciLexerCoffeeScript + *QsciLexer +} + +func (this *QsciLexerCoffeeScript) cPointer() *C.QsciLexerCoffeeScript { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerCoffeeScript) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerCoffeeScript(h *C.QsciLexerCoffeeScript) *QsciLexerCoffeeScript { + if h == nil { + return nil + } + return &QsciLexerCoffeeScript{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerCoffeeScript(h unsafe.Pointer) *QsciLexerCoffeeScript { + return newQsciLexerCoffeeScript((*C.QsciLexerCoffeeScript)(h)) +} + +// NewQsciLexerCoffeeScript constructs a new QsciLexerCoffeeScript object. +func NewQsciLexerCoffeeScript() *QsciLexerCoffeeScript { + ret := C.QsciLexerCoffeeScript_new() + return newQsciLexerCoffeeScript(ret) +} + +// NewQsciLexerCoffeeScript2 constructs a new QsciLexerCoffeeScript object. +func NewQsciLexerCoffeeScript2(parent *qt.QObject) *QsciLexerCoffeeScript { + ret := C.QsciLexerCoffeeScript_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerCoffeeScript(ret) +} + +func (this *QsciLexerCoffeeScript) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerCoffeeScript_MetaObject(this.h))) +} + +func (this *QsciLexerCoffeeScript) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerCoffeeScript_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerCoffeeScript_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCoffeeScript_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCoffeeScript_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCoffeeScript_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerCoffeeScript) Language() string { + _ret := C.QsciLexerCoffeeScript_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCoffeeScript) Lexer() string { + _ret := C.QsciLexerCoffeeScript_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCoffeeScript) AutoCompletionWordSeparators() []string { + var _ma *C.struct_miqt_array = C.QsciLexerCoffeeScript_AutoCompletionWordSeparators(this.h) + _ret := make([]string, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_ms C.struct_miqt_string = _outCast[i] + _lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len))) + C.free(unsafe.Pointer(_lv_ms.data)) + _ret[i] = _lv_ret + } + C.free(unsafe.Pointer(_ma)) + return _ret +} + +func (this *QsciLexerCoffeeScript) BlockEnd() string { + _ret := C.QsciLexerCoffeeScript_BlockEnd(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCoffeeScript) BlockStart() string { + _ret := C.QsciLexerCoffeeScript_BlockStart(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCoffeeScript) BlockStartKeyword() string { + _ret := C.QsciLexerCoffeeScript_BlockStartKeyword(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCoffeeScript) BraceStyle() int { + return (int)(C.QsciLexerCoffeeScript_BraceStyle(this.h)) +} + +func (this *QsciLexerCoffeeScript) WordCharacters() string { + _ret := C.QsciLexerCoffeeScript_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCoffeeScript) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerCoffeeScript_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerCoffeeScript) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerCoffeeScript_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerCoffeeScript) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerCoffeeScript_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerCoffeeScript) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerCoffeeScript_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerCoffeeScript) Keywords(set int) string { + _ret := C.QsciLexerCoffeeScript_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerCoffeeScript) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerCoffeeScript_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerCoffeeScript) RefreshProperties() { + C.QsciLexerCoffeeScript_RefreshProperties(this.h) +} + +func (this *QsciLexerCoffeeScript) DollarsAllowed() bool { + return (bool)(C.QsciLexerCoffeeScript_DollarsAllowed(this.h)) +} + +func (this *QsciLexerCoffeeScript) SetDollarsAllowed(allowed bool) { + C.QsciLexerCoffeeScript_SetDollarsAllowed(this.h, (C.bool)(allowed)) +} + +func (this *QsciLexerCoffeeScript) FoldComments() bool { + return (bool)(C.QsciLexerCoffeeScript_FoldComments(this.h)) +} + +func (this *QsciLexerCoffeeScript) SetFoldComments(fold bool) { + C.QsciLexerCoffeeScript_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerCoffeeScript) FoldCompact() bool { + return (bool)(C.QsciLexerCoffeeScript_FoldCompact(this.h)) +} + +func (this *QsciLexerCoffeeScript) SetFoldCompact(fold bool) { + C.QsciLexerCoffeeScript_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerCoffeeScript) StylePreprocessor() bool { + return (bool)(C.QsciLexerCoffeeScript_StylePreprocessor(this.h)) +} + +func (this *QsciLexerCoffeeScript) SetStylePreprocessor(style bool) { + C.QsciLexerCoffeeScript_SetStylePreprocessor(this.h, (C.bool)(style)) +} + +func QsciLexerCoffeeScript_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCoffeeScript_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCoffeeScript_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCoffeeScript_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCoffeeScript_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCoffeeScript_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCoffeeScript_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCoffeeScript_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerCoffeeScript) BlockEnd1(style *int) string { + _ret := C.QsciLexerCoffeeScript_BlockEnd1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexerCoffeeScript) BlockStart1(style *int) string { + _ret := C.QsciLexerCoffeeScript_BlockStart1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexerCoffeeScript) BlockStartKeyword1(style *int) string { + _ret := C.QsciLexerCoffeeScript_BlockStartKeyword1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +// Delete this object from C++ memory. +func (this *QsciLexerCoffeeScript) Delete() { + C.QsciLexerCoffeeScript_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerCoffeeScript) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerCoffeeScript) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.h b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.h new file mode 100644 index 00000000..275b026c --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.h @@ -0,0 +1,72 @@ +#ifndef GEN_QSCILEXERCOFFEESCRIPT_H +#define GEN_QSCILEXERCOFFEESCRIPT_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerCoffeeScript; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerCoffeeScript QsciLexerCoffeeScript; +#endif + +QsciLexerCoffeeScript* QsciLexerCoffeeScript_new(); +QsciLexerCoffeeScript* QsciLexerCoffeeScript_new2(QObject* parent); +QMetaObject* QsciLexerCoffeeScript_MetaObject(const QsciLexerCoffeeScript* self); +void* QsciLexerCoffeeScript_Metacast(QsciLexerCoffeeScript* self, const char* param1); +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); +const char* QsciLexerCoffeeScript_BlockEnd(const QsciLexerCoffeeScript* self); +const char* QsciLexerCoffeeScript_BlockStart(const QsciLexerCoffeeScript* self); +const char* QsciLexerCoffeeScript_BlockStartKeyword(const QsciLexerCoffeeScript* self); +int QsciLexerCoffeeScript_BraceStyle(const QsciLexerCoffeeScript* self); +const char* QsciLexerCoffeeScript_WordCharacters(const QsciLexerCoffeeScript* self); +QColor* QsciLexerCoffeeScript_DefaultColor(const QsciLexerCoffeeScript* self, int style); +bool QsciLexerCoffeeScript_DefaultEolFill(const QsciLexerCoffeeScript* self, int style); +QFont* QsciLexerCoffeeScript_DefaultFont(const QsciLexerCoffeeScript* self, int style); +QColor* QsciLexerCoffeeScript_DefaultPaper(const QsciLexerCoffeeScript* self, int style); +const char* QsciLexerCoffeeScript_Keywords(const QsciLexerCoffeeScript* self, int set); +struct miqt_string QsciLexerCoffeeScript_Description(const QsciLexerCoffeeScript* self, int style); +void QsciLexerCoffeeScript_RefreshProperties(QsciLexerCoffeeScript* self); +bool QsciLexerCoffeeScript_DollarsAllowed(const QsciLexerCoffeeScript* self); +void QsciLexerCoffeeScript_SetDollarsAllowed(QsciLexerCoffeeScript* self, bool allowed); +bool QsciLexerCoffeeScript_FoldComments(const QsciLexerCoffeeScript* self); +void QsciLexerCoffeeScript_SetFoldComments(QsciLexerCoffeeScript* self, bool fold); +bool QsciLexerCoffeeScript_FoldCompact(const QsciLexerCoffeeScript* self); +void QsciLexerCoffeeScript_SetFoldCompact(QsciLexerCoffeeScript* self, bool fold); +bool QsciLexerCoffeeScript_StylePreprocessor(const QsciLexerCoffeeScript* self); +void QsciLexerCoffeeScript_SetStylePreprocessor(QsciLexerCoffeeScript* self, bool style); +struct miqt_string QsciLexerCoffeeScript_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerCoffeeScript_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerCoffeeScript_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerCoffeeScript_TrUtf83(const char* s, const char* c, int n); +const char* QsciLexerCoffeeScript_BlockEnd1(const QsciLexerCoffeeScript* self, int* style); +const char* QsciLexerCoffeeScript_BlockStart1(const QsciLexerCoffeeScript* self, int* style); +const char* QsciLexerCoffeeScript_BlockStartKeyword1(const QsciLexerCoffeeScript* self, int* style); +void QsciLexerCoffeeScript_Delete(QsciLexerCoffeeScript* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercpp.cpp b/qt-restricted-extras/qscintilla/gen_qscilexercpp.cpp new file mode 100644 index 00000000..f6b3c8d6 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercpp.cpp @@ -0,0 +1,285 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexercpp.h" +#include "_cgo_export.h" + +QsciLexerCPP* QsciLexerCPP_new() { + return new QsciLexerCPP(); +} + +QsciLexerCPP* QsciLexerCPP_new2(QObject* parent) { + return new QsciLexerCPP(parent); +} + +QsciLexerCPP* QsciLexerCPP_new3(QObject* parent, bool caseInsensitiveKeywords) { + return new QsciLexerCPP(parent, caseInsensitiveKeywords); +} + +QMetaObject* QsciLexerCPP_MetaObject(const QsciLexerCPP* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerCPP_Metacast(QsciLexerCPP* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerCPP_Tr(const char* s) { + QString _ret = QsciLexerCPP::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCPP_TrUtf8(const char* s) { + QString _ret = QsciLexerCPP::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerCPP_Language(const QsciLexerCPP* self) { + return (const char*) self->language(); +} + +const char* QsciLexerCPP_Lexer(const QsciLexerCPP* self) { + return (const char*) self->lexer(); +} + +struct miqt_array* 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())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QString _lv_ret = _ret[i]; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_b = _lv_ret.toUtf8(); + struct miqt_string _lv_ms; + _lv_ms.len = _lv_b.length(); + _lv_ms.data = static_cast(malloc(_lv_ms.len)); + memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len); + _arr[i] = _lv_ms; + } + struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); + _out->len = _ret.length(); + _out->data = static_cast(_arr); + return _out; +} + +const char* QsciLexerCPP_BlockEnd(const QsciLexerCPP* self) { + return (const char*) self->blockEnd(); +} + +const char* QsciLexerCPP_BlockStart(const QsciLexerCPP* self) { + return (const char*) self->blockStart(); +} + +const char* QsciLexerCPP_BlockStartKeyword(const QsciLexerCPP* self) { + return (const char*) self->blockStartKeyword(); +} + +int QsciLexerCPP_BraceStyle(const QsciLexerCPP* self) { + return self->braceStyle(); +} + +const char* QsciLexerCPP_WordCharacters(const QsciLexerCPP* self) { + return (const char*) self->wordCharacters(); +} + +QColor* QsciLexerCPP_DefaultColor(const QsciLexerCPP* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerCPP_DefaultEolFill(const QsciLexerCPP* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerCPP_DefaultFont(const QsciLexerCPP* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerCPP_DefaultPaper(const QsciLexerCPP* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerCPP_Keywords(const QsciLexerCPP* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerCPP_Description(const QsciLexerCPP* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerCPP_RefreshProperties(QsciLexerCPP* self) { + self->refreshProperties(); +} + +bool QsciLexerCPP_FoldAtElse(const QsciLexerCPP* self) { + return self->foldAtElse(); +} + +bool QsciLexerCPP_FoldComments(const QsciLexerCPP* self) { + return self->foldComments(); +} + +bool QsciLexerCPP_FoldCompact(const QsciLexerCPP* self) { + return self->foldCompact(); +} + +bool QsciLexerCPP_FoldPreprocessor(const QsciLexerCPP* self) { + return self->foldPreprocessor(); +} + +bool QsciLexerCPP_StylePreprocessor(const QsciLexerCPP* self) { + return self->stylePreprocessor(); +} + +void QsciLexerCPP_SetDollarsAllowed(QsciLexerCPP* self, bool allowed) { + self->setDollarsAllowed(allowed); +} + +bool QsciLexerCPP_DollarsAllowed(const QsciLexerCPP* self) { + return self->dollarsAllowed(); +} + +void QsciLexerCPP_SetHighlightTripleQuotedStrings(QsciLexerCPP* self, bool enabled) { + self->setHighlightTripleQuotedStrings(enabled); +} + +bool QsciLexerCPP_HighlightTripleQuotedStrings(const QsciLexerCPP* self) { + return self->highlightTripleQuotedStrings(); +} + +void QsciLexerCPP_SetHighlightHashQuotedStrings(QsciLexerCPP* self, bool enabled) { + self->setHighlightHashQuotedStrings(enabled); +} + +bool QsciLexerCPP_HighlightHashQuotedStrings(const QsciLexerCPP* self) { + return self->highlightHashQuotedStrings(); +} + +void QsciLexerCPP_SetHighlightBackQuotedStrings(QsciLexerCPP* self, bool enabled) { + self->setHighlightBackQuotedStrings(enabled); +} + +bool QsciLexerCPP_HighlightBackQuotedStrings(const QsciLexerCPP* self) { + return self->highlightBackQuotedStrings(); +} + +void QsciLexerCPP_SetHighlightEscapeSequences(QsciLexerCPP* self, bool enabled) { + self->setHighlightEscapeSequences(enabled); +} + +bool QsciLexerCPP_HighlightEscapeSequences(const QsciLexerCPP* self) { + return self->highlightEscapeSequences(); +} + +void QsciLexerCPP_SetVerbatimStringEscapeSequencesAllowed(QsciLexerCPP* self, bool allowed) { + self->setVerbatimStringEscapeSequencesAllowed(allowed); +} + +bool QsciLexerCPP_VerbatimStringEscapeSequencesAllowed(const QsciLexerCPP* self) { + return self->verbatimStringEscapeSequencesAllowed(); +} + +void QsciLexerCPP_SetFoldAtElse(QsciLexerCPP* self, bool fold) { + self->setFoldAtElse(fold); +} + +void QsciLexerCPP_SetFoldComments(QsciLexerCPP* self, bool fold) { + self->setFoldComments(fold); +} + +void QsciLexerCPP_SetFoldCompact(QsciLexerCPP* self, bool fold) { + self->setFoldCompact(fold); +} + +void QsciLexerCPP_SetFoldPreprocessor(QsciLexerCPP* self, bool fold) { + self->setFoldPreprocessor(fold); +} + +void QsciLexerCPP_SetStylePreprocessor(QsciLexerCPP* self, bool style) { + self->setStylePreprocessor(style); +} + +struct miqt_string QsciLexerCPP_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerCPP::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCPP_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerCPP::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCPP_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerCPP::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCPP_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerCPP::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerCPP_BlockEnd1(const QsciLexerCPP* self, int* style) { + return (const char*) self->blockEnd(static_cast(style)); +} + +const char* QsciLexerCPP_BlockStart1(const QsciLexerCPP* self, int* style) { + return (const char*) self->blockStart(static_cast(style)); +} + +const char* QsciLexerCPP_BlockStartKeyword1(const QsciLexerCPP* self, int* style) { + return (const char*) self->blockStartKeyword(static_cast(style)); +} + +void QsciLexerCPP_Delete(QsciLexerCPP* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercpp.go b/qt-restricted-extras/qscintilla/gen_qscilexercpp.go new file mode 100644 index 00000000..8fc8d3ff --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercpp.go @@ -0,0 +1,402 @@ +package qscintilla + +/* + +#include "gen_qscilexercpp.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerCPP__ int + +const ( + QsciLexerCPP__Default QsciLexerCPP__ = 0 + QsciLexerCPP__InactiveDefault QsciLexerCPP__ = 64 + QsciLexerCPP__Comment QsciLexerCPP__ = 1 + QsciLexerCPP__InactiveComment QsciLexerCPP__ = 65 + QsciLexerCPP__CommentLine QsciLexerCPP__ = 2 + QsciLexerCPP__InactiveCommentLine QsciLexerCPP__ = 66 + QsciLexerCPP__CommentDoc QsciLexerCPP__ = 3 + QsciLexerCPP__InactiveCommentDoc QsciLexerCPP__ = 67 + QsciLexerCPP__Number QsciLexerCPP__ = 4 + QsciLexerCPP__InactiveNumber QsciLexerCPP__ = 68 + QsciLexerCPP__Keyword QsciLexerCPP__ = 5 + QsciLexerCPP__InactiveKeyword QsciLexerCPP__ = 69 + QsciLexerCPP__DoubleQuotedString QsciLexerCPP__ = 6 + QsciLexerCPP__InactiveDoubleQuotedString QsciLexerCPP__ = 70 + QsciLexerCPP__SingleQuotedString QsciLexerCPP__ = 7 + QsciLexerCPP__InactiveSingleQuotedString QsciLexerCPP__ = 71 + QsciLexerCPP__UUID QsciLexerCPP__ = 8 + QsciLexerCPP__InactiveUUID QsciLexerCPP__ = 72 + QsciLexerCPP__PreProcessor QsciLexerCPP__ = 9 + QsciLexerCPP__InactivePreProcessor QsciLexerCPP__ = 73 + QsciLexerCPP__Operator QsciLexerCPP__ = 10 + QsciLexerCPP__InactiveOperator QsciLexerCPP__ = 74 + QsciLexerCPP__Identifier QsciLexerCPP__ = 11 + QsciLexerCPP__InactiveIdentifier QsciLexerCPP__ = 75 + QsciLexerCPP__UnclosedString QsciLexerCPP__ = 12 + QsciLexerCPP__InactiveUnclosedString QsciLexerCPP__ = 76 + QsciLexerCPP__VerbatimString QsciLexerCPP__ = 13 + QsciLexerCPP__InactiveVerbatimString QsciLexerCPP__ = 77 + QsciLexerCPP__Regex QsciLexerCPP__ = 14 + QsciLexerCPP__InactiveRegex QsciLexerCPP__ = 78 + QsciLexerCPP__CommentLineDoc QsciLexerCPP__ = 15 + QsciLexerCPP__InactiveCommentLineDoc QsciLexerCPP__ = 79 + QsciLexerCPP__KeywordSet2 QsciLexerCPP__ = 16 + QsciLexerCPP__InactiveKeywordSet2 QsciLexerCPP__ = 80 + QsciLexerCPP__CommentDocKeyword QsciLexerCPP__ = 17 + QsciLexerCPP__InactiveCommentDocKeyword QsciLexerCPP__ = 81 + QsciLexerCPP__CommentDocKeywordError QsciLexerCPP__ = 18 + QsciLexerCPP__InactiveCommentDocKeywordError QsciLexerCPP__ = 82 + QsciLexerCPP__GlobalClass QsciLexerCPP__ = 19 + QsciLexerCPP__InactiveGlobalClass QsciLexerCPP__ = 83 + QsciLexerCPP__RawString QsciLexerCPP__ = 20 + QsciLexerCPP__InactiveRawString QsciLexerCPP__ = 84 + QsciLexerCPP__TripleQuotedVerbatimString QsciLexerCPP__ = 21 + QsciLexerCPP__InactiveTripleQuotedVerbatimString QsciLexerCPP__ = 85 + QsciLexerCPP__HashQuotedString QsciLexerCPP__ = 22 + QsciLexerCPP__InactiveHashQuotedString QsciLexerCPP__ = 86 + QsciLexerCPP__PreProcessorComment QsciLexerCPP__ = 23 + QsciLexerCPP__InactivePreProcessorComment QsciLexerCPP__ = 87 + QsciLexerCPP__PreProcessorCommentLineDoc QsciLexerCPP__ = 24 + QsciLexerCPP__InactivePreProcessorCommentLineDoc QsciLexerCPP__ = 88 + QsciLexerCPP__UserLiteral QsciLexerCPP__ = 25 + QsciLexerCPP__InactiveUserLiteral QsciLexerCPP__ = 89 + QsciLexerCPP__TaskMarker QsciLexerCPP__ = 26 + QsciLexerCPP__InactiveTaskMarker QsciLexerCPP__ = 90 + QsciLexerCPP__EscapeSequence QsciLexerCPP__ = 27 + QsciLexerCPP__InactiveEscapeSequence QsciLexerCPP__ = 91 +) + +type QsciLexerCPP struct { + h *C.QsciLexerCPP + *QsciLexer +} + +func (this *QsciLexerCPP) cPointer() *C.QsciLexerCPP { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerCPP) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerCPP(h *C.QsciLexerCPP) *QsciLexerCPP { + if h == nil { + return nil + } + return &QsciLexerCPP{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerCPP(h unsafe.Pointer) *QsciLexerCPP { + return newQsciLexerCPP((*C.QsciLexerCPP)(h)) +} + +// NewQsciLexerCPP constructs a new QsciLexerCPP object. +func NewQsciLexerCPP() *QsciLexerCPP { + ret := C.QsciLexerCPP_new() + return newQsciLexerCPP(ret) +} + +// NewQsciLexerCPP2 constructs a new QsciLexerCPP object. +func NewQsciLexerCPP2(parent *qt.QObject) *QsciLexerCPP { + ret := C.QsciLexerCPP_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerCPP(ret) +} + +// NewQsciLexerCPP3 constructs a new QsciLexerCPP object. +func NewQsciLexerCPP3(parent *qt.QObject, caseInsensitiveKeywords bool) *QsciLexerCPP { + ret := C.QsciLexerCPP_new3((*C.QObject)(parent.UnsafePointer()), (C.bool)(caseInsensitiveKeywords)) + return newQsciLexerCPP(ret) +} + +func (this *QsciLexerCPP) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerCPP_MetaObject(this.h))) +} + +func (this *QsciLexerCPP) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerCPP_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerCPP_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCPP_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCPP_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCPP_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerCPP) Language() string { + _ret := C.QsciLexerCPP_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCPP) Lexer() string { + _ret := C.QsciLexerCPP_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCPP) AutoCompletionWordSeparators() []string { + var _ma *C.struct_miqt_array = C.QsciLexerCPP_AutoCompletionWordSeparators(this.h) + _ret := make([]string, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_ms C.struct_miqt_string = _outCast[i] + _lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len))) + C.free(unsafe.Pointer(_lv_ms.data)) + _ret[i] = _lv_ret + } + C.free(unsafe.Pointer(_ma)) + return _ret +} + +func (this *QsciLexerCPP) BlockEnd() string { + _ret := C.QsciLexerCPP_BlockEnd(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCPP) BlockStart() string { + _ret := C.QsciLexerCPP_BlockStart(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCPP) BlockStartKeyword() string { + _ret := C.QsciLexerCPP_BlockStartKeyword(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCPP) BraceStyle() int { + return (int)(C.QsciLexerCPP_BraceStyle(this.h)) +} + +func (this *QsciLexerCPP) WordCharacters() string { + _ret := C.QsciLexerCPP_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCPP) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerCPP_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerCPP) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerCPP_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerCPP) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerCPP_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerCPP) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerCPP_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerCPP) Keywords(set int) string { + _ret := C.QsciLexerCPP_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerCPP) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerCPP_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerCPP) RefreshProperties() { + C.QsciLexerCPP_RefreshProperties(this.h) +} + +func (this *QsciLexerCPP) FoldAtElse() bool { + return (bool)(C.QsciLexerCPP_FoldAtElse(this.h)) +} + +func (this *QsciLexerCPP) FoldComments() bool { + return (bool)(C.QsciLexerCPP_FoldComments(this.h)) +} + +func (this *QsciLexerCPP) FoldCompact() bool { + return (bool)(C.QsciLexerCPP_FoldCompact(this.h)) +} + +func (this *QsciLexerCPP) FoldPreprocessor() bool { + return (bool)(C.QsciLexerCPP_FoldPreprocessor(this.h)) +} + +func (this *QsciLexerCPP) StylePreprocessor() bool { + return (bool)(C.QsciLexerCPP_StylePreprocessor(this.h)) +} + +func (this *QsciLexerCPP) SetDollarsAllowed(allowed bool) { + C.QsciLexerCPP_SetDollarsAllowed(this.h, (C.bool)(allowed)) +} + +func (this *QsciLexerCPP) DollarsAllowed() bool { + return (bool)(C.QsciLexerCPP_DollarsAllowed(this.h)) +} + +func (this *QsciLexerCPP) SetHighlightTripleQuotedStrings(enabled bool) { + C.QsciLexerCPP_SetHighlightTripleQuotedStrings(this.h, (C.bool)(enabled)) +} + +func (this *QsciLexerCPP) HighlightTripleQuotedStrings() bool { + return (bool)(C.QsciLexerCPP_HighlightTripleQuotedStrings(this.h)) +} + +func (this *QsciLexerCPP) SetHighlightHashQuotedStrings(enabled bool) { + C.QsciLexerCPP_SetHighlightHashQuotedStrings(this.h, (C.bool)(enabled)) +} + +func (this *QsciLexerCPP) HighlightHashQuotedStrings() bool { + return (bool)(C.QsciLexerCPP_HighlightHashQuotedStrings(this.h)) +} + +func (this *QsciLexerCPP) SetHighlightBackQuotedStrings(enabled bool) { + C.QsciLexerCPP_SetHighlightBackQuotedStrings(this.h, (C.bool)(enabled)) +} + +func (this *QsciLexerCPP) HighlightBackQuotedStrings() bool { + return (bool)(C.QsciLexerCPP_HighlightBackQuotedStrings(this.h)) +} + +func (this *QsciLexerCPP) SetHighlightEscapeSequences(enabled bool) { + C.QsciLexerCPP_SetHighlightEscapeSequences(this.h, (C.bool)(enabled)) +} + +func (this *QsciLexerCPP) HighlightEscapeSequences() bool { + return (bool)(C.QsciLexerCPP_HighlightEscapeSequences(this.h)) +} + +func (this *QsciLexerCPP) SetVerbatimStringEscapeSequencesAllowed(allowed bool) { + C.QsciLexerCPP_SetVerbatimStringEscapeSequencesAllowed(this.h, (C.bool)(allowed)) +} + +func (this *QsciLexerCPP) VerbatimStringEscapeSequencesAllowed() bool { + return (bool)(C.QsciLexerCPP_VerbatimStringEscapeSequencesAllowed(this.h)) +} + +func (this *QsciLexerCPP) SetFoldAtElse(fold bool) { + C.QsciLexerCPP_SetFoldAtElse(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerCPP) SetFoldComments(fold bool) { + C.QsciLexerCPP_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerCPP) SetFoldCompact(fold bool) { + C.QsciLexerCPP_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerCPP) SetFoldPreprocessor(fold bool) { + C.QsciLexerCPP_SetFoldPreprocessor(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerCPP) SetStylePreprocessor(style bool) { + C.QsciLexerCPP_SetStylePreprocessor(this.h, (C.bool)(style)) +} + +func QsciLexerCPP_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCPP_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCPP_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCPP_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCPP_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCPP_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCPP_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCPP_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerCPP) BlockEnd1(style *int) string { + _ret := C.QsciLexerCPP_BlockEnd1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexerCPP) BlockStart1(style *int) string { + _ret := C.QsciLexerCPP_BlockStart1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexerCPP) BlockStartKeyword1(style *int) string { + _ret := C.QsciLexerCPP_BlockStartKeyword1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +// Delete this object from C++ memory. +func (this *QsciLexerCPP) Delete() { + C.QsciLexerCPP_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerCPP) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerCPP) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercpp.h b/qt-restricted-extras/qscintilla/gen_qscilexercpp.h new file mode 100644 index 00000000..54cbd3ea --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercpp.h @@ -0,0 +1,87 @@ +#ifndef GEN_QSCILEXERCPP_H +#define GEN_QSCILEXERCPP_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerCPP; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerCPP QsciLexerCPP; +#endif + +QsciLexerCPP* QsciLexerCPP_new(); +QsciLexerCPP* QsciLexerCPP_new2(QObject* parent); +QsciLexerCPP* QsciLexerCPP_new3(QObject* parent, bool caseInsensitiveKeywords); +QMetaObject* QsciLexerCPP_MetaObject(const QsciLexerCPP* self); +void* QsciLexerCPP_Metacast(QsciLexerCPP* self, const char* param1); +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); +const char* QsciLexerCPP_BlockEnd(const QsciLexerCPP* self); +const char* QsciLexerCPP_BlockStart(const QsciLexerCPP* self); +const char* QsciLexerCPP_BlockStartKeyword(const QsciLexerCPP* self); +int QsciLexerCPP_BraceStyle(const QsciLexerCPP* self); +const char* QsciLexerCPP_WordCharacters(const QsciLexerCPP* self); +QColor* QsciLexerCPP_DefaultColor(const QsciLexerCPP* self, int style); +bool QsciLexerCPP_DefaultEolFill(const QsciLexerCPP* self, int style); +QFont* QsciLexerCPP_DefaultFont(const QsciLexerCPP* self, int style); +QColor* QsciLexerCPP_DefaultPaper(const QsciLexerCPP* self, int style); +const char* QsciLexerCPP_Keywords(const QsciLexerCPP* self, int set); +struct miqt_string QsciLexerCPP_Description(const QsciLexerCPP* self, int style); +void QsciLexerCPP_RefreshProperties(QsciLexerCPP* self); +bool QsciLexerCPP_FoldAtElse(const QsciLexerCPP* self); +bool QsciLexerCPP_FoldComments(const QsciLexerCPP* self); +bool QsciLexerCPP_FoldCompact(const QsciLexerCPP* self); +bool QsciLexerCPP_FoldPreprocessor(const QsciLexerCPP* self); +bool QsciLexerCPP_StylePreprocessor(const QsciLexerCPP* self); +void QsciLexerCPP_SetDollarsAllowed(QsciLexerCPP* self, bool allowed); +bool QsciLexerCPP_DollarsAllowed(const QsciLexerCPP* self); +void QsciLexerCPP_SetHighlightTripleQuotedStrings(QsciLexerCPP* self, bool enabled); +bool QsciLexerCPP_HighlightTripleQuotedStrings(const QsciLexerCPP* self); +void QsciLexerCPP_SetHighlightHashQuotedStrings(QsciLexerCPP* self, bool enabled); +bool QsciLexerCPP_HighlightHashQuotedStrings(const QsciLexerCPP* self); +void QsciLexerCPP_SetHighlightBackQuotedStrings(QsciLexerCPP* self, bool enabled); +bool QsciLexerCPP_HighlightBackQuotedStrings(const QsciLexerCPP* self); +void QsciLexerCPP_SetHighlightEscapeSequences(QsciLexerCPP* self, bool enabled); +bool QsciLexerCPP_HighlightEscapeSequences(const QsciLexerCPP* self); +void QsciLexerCPP_SetVerbatimStringEscapeSequencesAllowed(QsciLexerCPP* self, bool allowed); +bool QsciLexerCPP_VerbatimStringEscapeSequencesAllowed(const QsciLexerCPP* self); +void QsciLexerCPP_SetFoldAtElse(QsciLexerCPP* self, bool fold); +void QsciLexerCPP_SetFoldComments(QsciLexerCPP* self, bool fold); +void QsciLexerCPP_SetFoldCompact(QsciLexerCPP* self, bool fold); +void QsciLexerCPP_SetFoldPreprocessor(QsciLexerCPP* self, bool fold); +void QsciLexerCPP_SetStylePreprocessor(QsciLexerCPP* self, bool style); +struct miqt_string QsciLexerCPP_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerCPP_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerCPP_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerCPP_TrUtf83(const char* s, const char* c, int n); +const char* QsciLexerCPP_BlockEnd1(const QsciLexerCPP* self, int* style); +const char* QsciLexerCPP_BlockStart1(const QsciLexerCPP* self, int* style); +const char* QsciLexerCPP_BlockStartKeyword1(const QsciLexerCPP* self, int* style); +void QsciLexerCPP_Delete(QsciLexerCPP* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercsharp.cpp b/qt-restricted-extras/qscintilla/gen_qscilexercsharp.cpp new file mode 100644 index 00000000..d60b996d --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercsharp.cpp @@ -0,0 +1,132 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexercsharp.h" +#include "_cgo_export.h" + +QsciLexerCSharp* QsciLexerCSharp_new() { + return new QsciLexerCSharp(); +} + +QsciLexerCSharp* QsciLexerCSharp_new2(QObject* parent) { + return new QsciLexerCSharp(parent); +} + +QMetaObject* QsciLexerCSharp_MetaObject(const QsciLexerCSharp* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerCSharp_Metacast(QsciLexerCSharp* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerCSharp_Tr(const char* s) { + QString _ret = QsciLexerCSharp::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCSharp_TrUtf8(const char* s) { + QString _ret = QsciLexerCSharp::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerCSharp_Language(const QsciLexerCSharp* self) { + return (const char*) self->language(); +} + +QColor* QsciLexerCSharp_DefaultColor(const QsciLexerCSharp* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerCSharp_DefaultEolFill(const QsciLexerCSharp* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerCSharp_DefaultFont(const QsciLexerCSharp* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerCSharp_DefaultPaper(const QsciLexerCSharp* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerCSharp_Keywords(const QsciLexerCSharp* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerCSharp_Description(const QsciLexerCSharp* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCSharp_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerCSharp::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCSharp_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerCSharp::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCSharp_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerCSharp::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCSharp_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerCSharp::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerCSharp_Delete(QsciLexerCSharp* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercsharp.go b/qt-restricted-extras/qscintilla/gen_qscilexercsharp.go new file mode 100644 index 00000000..effed776 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercsharp.go @@ -0,0 +1,185 @@ +package qscintilla + +/* + +#include "gen_qscilexercsharp.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerCSharp struct { + h *C.QsciLexerCSharp + *QsciLexerCPP +} + +func (this *QsciLexerCSharp) cPointer() *C.QsciLexerCSharp { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerCSharp) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerCSharp(h *C.QsciLexerCSharp) *QsciLexerCSharp { + if h == nil { + return nil + } + return &QsciLexerCSharp{h: h, QsciLexerCPP: UnsafeNewQsciLexerCPP(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerCSharp(h unsafe.Pointer) *QsciLexerCSharp { + return newQsciLexerCSharp((*C.QsciLexerCSharp)(h)) +} + +// NewQsciLexerCSharp constructs a new QsciLexerCSharp object. +func NewQsciLexerCSharp() *QsciLexerCSharp { + ret := C.QsciLexerCSharp_new() + return newQsciLexerCSharp(ret) +} + +// NewQsciLexerCSharp2 constructs a new QsciLexerCSharp object. +func NewQsciLexerCSharp2(parent *qt.QObject) *QsciLexerCSharp { + ret := C.QsciLexerCSharp_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerCSharp(ret) +} + +func (this *QsciLexerCSharp) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerCSharp_MetaObject(this.h))) +} + +func (this *QsciLexerCSharp) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerCSharp_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerCSharp_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCSharp_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCSharp_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCSharp_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerCSharp) Language() string { + _ret := C.QsciLexerCSharp_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCSharp) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerCSharp_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerCSharp) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerCSharp_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerCSharp) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerCSharp_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerCSharp) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerCSharp_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerCSharp) Keywords(set int) string { + _ret := C.QsciLexerCSharp_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerCSharp) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerCSharp_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCSharp_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCSharp_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCSharp_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCSharp_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCSharp_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCSharp_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCSharp_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCSharp_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerCSharp) Delete() { + C.QsciLexerCSharp_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerCSharp) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerCSharp) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercsharp.h b/qt-restricted-extras/qscintilla/gen_qscilexercsharp.h new file mode 100644 index 00000000..fdb99457 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercsharp.h @@ -0,0 +1,53 @@ +#ifndef GEN_QSCILEXERCSHARP_H +#define GEN_QSCILEXERCSHARP_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerCSharp; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerCSharp QsciLexerCSharp; +#endif + +QsciLexerCSharp* QsciLexerCSharp_new(); +QsciLexerCSharp* QsciLexerCSharp_new2(QObject* parent); +QMetaObject* QsciLexerCSharp_MetaObject(const QsciLexerCSharp* self); +void* QsciLexerCSharp_Metacast(QsciLexerCSharp* self, const char* param1); +struct miqt_string QsciLexerCSharp_Tr(const char* s); +struct miqt_string QsciLexerCSharp_TrUtf8(const char* s); +const char* QsciLexerCSharp_Language(const QsciLexerCSharp* self); +QColor* QsciLexerCSharp_DefaultColor(const QsciLexerCSharp* self, int style); +bool QsciLexerCSharp_DefaultEolFill(const QsciLexerCSharp* self, int style); +QFont* QsciLexerCSharp_DefaultFont(const QsciLexerCSharp* self, int style); +QColor* QsciLexerCSharp_DefaultPaper(const QsciLexerCSharp* self, int style); +const char* QsciLexerCSharp_Keywords(const QsciLexerCSharp* self, int set); +struct miqt_string QsciLexerCSharp_Description(const QsciLexerCSharp* self, int style); +struct miqt_string QsciLexerCSharp_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerCSharp_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerCSharp_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerCSharp_TrUtf83(const char* s, const char* c, int n); +void QsciLexerCSharp_Delete(QsciLexerCSharp* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercss.cpp b/qt-restricted-extras/qscintilla/gen_qscilexercss.cpp new file mode 100644 index 00000000..1f282786 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercss.cpp @@ -0,0 +1,192 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexercss.h" +#include "_cgo_export.h" + +QsciLexerCSS* QsciLexerCSS_new() { + return new QsciLexerCSS(); +} + +QsciLexerCSS* QsciLexerCSS_new2(QObject* parent) { + return new QsciLexerCSS(parent); +} + +QMetaObject* QsciLexerCSS_MetaObject(const QsciLexerCSS* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerCSS_Metacast(QsciLexerCSS* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerCSS_Tr(const char* s) { + QString _ret = QsciLexerCSS::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCSS_TrUtf8(const char* s) { + QString _ret = QsciLexerCSS::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerCSS_Language(const QsciLexerCSS* self) { + return (const char*) self->language(); +} + +const char* QsciLexerCSS_Lexer(const QsciLexerCSS* self) { + return (const char*) self->lexer(); +} + +const char* QsciLexerCSS_BlockEnd(const QsciLexerCSS* self) { + return (const char*) self->blockEnd(); +} + +const char* QsciLexerCSS_BlockStart(const QsciLexerCSS* self) { + return (const char*) self->blockStart(); +} + +const char* QsciLexerCSS_WordCharacters(const QsciLexerCSS* self) { + return (const char*) self->wordCharacters(); +} + +QColor* QsciLexerCSS_DefaultColor(const QsciLexerCSS* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +QFont* QsciLexerCSS_DefaultFont(const QsciLexerCSS* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +const char* QsciLexerCSS_Keywords(const QsciLexerCSS* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerCSS_Description(const QsciLexerCSS* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerCSS_RefreshProperties(QsciLexerCSS* self) { + self->refreshProperties(); +} + +bool QsciLexerCSS_FoldComments(const QsciLexerCSS* self) { + return self->foldComments(); +} + +bool QsciLexerCSS_FoldCompact(const QsciLexerCSS* self) { + return self->foldCompact(); +} + +void QsciLexerCSS_SetHSSLanguage(QsciLexerCSS* self, bool enabled) { + self->setHSSLanguage(enabled); +} + +bool QsciLexerCSS_HSSLanguage(const QsciLexerCSS* self) { + return self->HSSLanguage(); +} + +void QsciLexerCSS_SetLessLanguage(QsciLexerCSS* self, bool enabled) { + self->setLessLanguage(enabled); +} + +bool QsciLexerCSS_LessLanguage(const QsciLexerCSS* self) { + return self->LessLanguage(); +} + +void QsciLexerCSS_SetSCSSLanguage(QsciLexerCSS* self, bool enabled) { + self->setSCSSLanguage(enabled); +} + +bool QsciLexerCSS_SCSSLanguage(const QsciLexerCSS* self) { + return self->SCSSLanguage(); +} + +void QsciLexerCSS_SetFoldComments(QsciLexerCSS* self, bool fold) { + self->setFoldComments(fold); +} + +void QsciLexerCSS_SetFoldCompact(QsciLexerCSS* self, bool fold) { + self->setFoldCompact(fold); +} + +struct miqt_string QsciLexerCSS_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerCSS::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCSS_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerCSS::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCSS_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerCSS::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCSS_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerCSS::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerCSS_BlockEnd1(const QsciLexerCSS* self, int* style) { + return (const char*) self->blockEnd(static_cast(style)); +} + +const char* QsciLexerCSS_BlockStart1(const QsciLexerCSS* self, int* style) { + return (const char*) self->blockStart(static_cast(style)); +} + +void QsciLexerCSS_Delete(QsciLexerCSS* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercss.go b/qt-restricted-extras/qscintilla/gen_qscilexercss.go new file mode 100644 index 00000000..d131919b --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercss.go @@ -0,0 +1,277 @@ +package qscintilla + +/* + +#include "gen_qscilexercss.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerCSS__ int + +const ( + QsciLexerCSS__Default QsciLexerCSS__ = 0 + QsciLexerCSS__Tag QsciLexerCSS__ = 1 + QsciLexerCSS__ClassSelector QsciLexerCSS__ = 2 + QsciLexerCSS__PseudoClass QsciLexerCSS__ = 3 + QsciLexerCSS__UnknownPseudoClass QsciLexerCSS__ = 4 + QsciLexerCSS__Operator QsciLexerCSS__ = 5 + QsciLexerCSS__CSS1Property QsciLexerCSS__ = 6 + QsciLexerCSS__UnknownProperty QsciLexerCSS__ = 7 + QsciLexerCSS__Value QsciLexerCSS__ = 8 + QsciLexerCSS__Comment QsciLexerCSS__ = 9 + QsciLexerCSS__IDSelector QsciLexerCSS__ = 10 + QsciLexerCSS__Important QsciLexerCSS__ = 11 + QsciLexerCSS__AtRule QsciLexerCSS__ = 12 + QsciLexerCSS__DoubleQuotedString QsciLexerCSS__ = 13 + QsciLexerCSS__SingleQuotedString QsciLexerCSS__ = 14 + QsciLexerCSS__CSS2Property QsciLexerCSS__ = 15 + QsciLexerCSS__Attribute QsciLexerCSS__ = 16 + QsciLexerCSS__CSS3Property QsciLexerCSS__ = 17 + QsciLexerCSS__PseudoElement QsciLexerCSS__ = 18 + QsciLexerCSS__ExtendedCSSProperty QsciLexerCSS__ = 19 + QsciLexerCSS__ExtendedPseudoClass QsciLexerCSS__ = 20 + QsciLexerCSS__ExtendedPseudoElement QsciLexerCSS__ = 21 + QsciLexerCSS__MediaRule QsciLexerCSS__ = 22 + QsciLexerCSS__Variable QsciLexerCSS__ = 23 +) + +type QsciLexerCSS struct { + h *C.QsciLexerCSS + *QsciLexer +} + +func (this *QsciLexerCSS) cPointer() *C.QsciLexerCSS { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerCSS) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerCSS(h *C.QsciLexerCSS) *QsciLexerCSS { + if h == nil { + return nil + } + return &QsciLexerCSS{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerCSS(h unsafe.Pointer) *QsciLexerCSS { + return newQsciLexerCSS((*C.QsciLexerCSS)(h)) +} + +// NewQsciLexerCSS constructs a new QsciLexerCSS object. +func NewQsciLexerCSS() *QsciLexerCSS { + ret := C.QsciLexerCSS_new() + return newQsciLexerCSS(ret) +} + +// NewQsciLexerCSS2 constructs a new QsciLexerCSS object. +func NewQsciLexerCSS2(parent *qt.QObject) *QsciLexerCSS { + ret := C.QsciLexerCSS_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerCSS(ret) +} + +func (this *QsciLexerCSS) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerCSS_MetaObject(this.h))) +} + +func (this *QsciLexerCSS) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerCSS_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerCSS_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCSS_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCSS_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCSS_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerCSS) Language() string { + _ret := C.QsciLexerCSS_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCSS) Lexer() string { + _ret := C.QsciLexerCSS_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCSS) BlockEnd() string { + _ret := C.QsciLexerCSS_BlockEnd(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCSS) BlockStart() string { + _ret := C.QsciLexerCSS_BlockStart(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCSS) WordCharacters() string { + _ret := C.QsciLexerCSS_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerCSS) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerCSS_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerCSS) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerCSS_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerCSS) Keywords(set int) string { + _ret := C.QsciLexerCSS_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerCSS) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerCSS_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerCSS) RefreshProperties() { + C.QsciLexerCSS_RefreshProperties(this.h) +} + +func (this *QsciLexerCSS) FoldComments() bool { + return (bool)(C.QsciLexerCSS_FoldComments(this.h)) +} + +func (this *QsciLexerCSS) FoldCompact() bool { + return (bool)(C.QsciLexerCSS_FoldCompact(this.h)) +} + +func (this *QsciLexerCSS) SetHSSLanguage(enabled bool) { + C.QsciLexerCSS_SetHSSLanguage(this.h, (C.bool)(enabled)) +} + +func (this *QsciLexerCSS) HSSLanguage() bool { + return (bool)(C.QsciLexerCSS_HSSLanguage(this.h)) +} + +func (this *QsciLexerCSS) SetLessLanguage(enabled bool) { + C.QsciLexerCSS_SetLessLanguage(this.h, (C.bool)(enabled)) +} + +func (this *QsciLexerCSS) LessLanguage() bool { + return (bool)(C.QsciLexerCSS_LessLanguage(this.h)) +} + +func (this *QsciLexerCSS) SetSCSSLanguage(enabled bool) { + C.QsciLexerCSS_SetSCSSLanguage(this.h, (C.bool)(enabled)) +} + +func (this *QsciLexerCSS) SCSSLanguage() bool { + return (bool)(C.QsciLexerCSS_SCSSLanguage(this.h)) +} + +func (this *QsciLexerCSS) SetFoldComments(fold bool) { + C.QsciLexerCSS_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerCSS) SetFoldCompact(fold bool) { + C.QsciLexerCSS_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func QsciLexerCSS_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCSS_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCSS_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCSS_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCSS_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCSS_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCSS_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCSS_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerCSS) BlockEnd1(style *int) string { + _ret := C.QsciLexerCSS_BlockEnd1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexerCSS) BlockStart1(style *int) string { + _ret := C.QsciLexerCSS_BlockStart1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +// Delete this object from C++ memory. +func (this *QsciLexerCSS) Delete() { + C.QsciLexerCSS_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerCSS) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerCSS) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercss.h b/qt-restricted-extras/qscintilla/gen_qscilexercss.h new file mode 100644 index 00000000..c1311748 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercss.h @@ -0,0 +1,68 @@ +#ifndef GEN_QSCILEXERCSS_H +#define GEN_QSCILEXERCSS_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerCSS; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerCSS QsciLexerCSS; +#endif + +QsciLexerCSS* QsciLexerCSS_new(); +QsciLexerCSS* QsciLexerCSS_new2(QObject* parent); +QMetaObject* QsciLexerCSS_MetaObject(const QsciLexerCSS* self); +void* QsciLexerCSS_Metacast(QsciLexerCSS* self, const char* param1); +struct miqt_string QsciLexerCSS_Tr(const char* s); +struct miqt_string QsciLexerCSS_TrUtf8(const char* s); +const char* QsciLexerCSS_Language(const QsciLexerCSS* self); +const char* QsciLexerCSS_Lexer(const QsciLexerCSS* self); +const char* QsciLexerCSS_BlockEnd(const QsciLexerCSS* self); +const char* QsciLexerCSS_BlockStart(const QsciLexerCSS* self); +const char* QsciLexerCSS_WordCharacters(const QsciLexerCSS* self); +QColor* QsciLexerCSS_DefaultColor(const QsciLexerCSS* self, int style); +QFont* QsciLexerCSS_DefaultFont(const QsciLexerCSS* self, int style); +const char* QsciLexerCSS_Keywords(const QsciLexerCSS* self, int set); +struct miqt_string QsciLexerCSS_Description(const QsciLexerCSS* self, int style); +void QsciLexerCSS_RefreshProperties(QsciLexerCSS* self); +bool QsciLexerCSS_FoldComments(const QsciLexerCSS* self); +bool QsciLexerCSS_FoldCompact(const QsciLexerCSS* self); +void QsciLexerCSS_SetHSSLanguage(QsciLexerCSS* self, bool enabled); +bool QsciLexerCSS_HSSLanguage(const QsciLexerCSS* self); +void QsciLexerCSS_SetLessLanguage(QsciLexerCSS* self, bool enabled); +bool QsciLexerCSS_LessLanguage(const QsciLexerCSS* self); +void QsciLexerCSS_SetSCSSLanguage(QsciLexerCSS* self, bool enabled); +bool QsciLexerCSS_SCSSLanguage(const QsciLexerCSS* self); +void QsciLexerCSS_SetFoldComments(QsciLexerCSS* self, bool fold); +void QsciLexerCSS_SetFoldCompact(QsciLexerCSS* self, bool fold); +struct miqt_string QsciLexerCSS_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerCSS_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerCSS_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerCSS_TrUtf83(const char* s, const char* c, int n); +const char* QsciLexerCSS_BlockEnd1(const QsciLexerCSS* self, int* style); +const char* QsciLexerCSS_BlockStart1(const QsciLexerCSS* self, int* style); +void QsciLexerCSS_Delete(QsciLexerCSS* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercustom.cpp b/qt-restricted-extras/qscintilla/gen_qscilexercustom.cpp new file mode 100644 index 00000000..96c07e00 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercustom.cpp @@ -0,0 +1,114 @@ +#include +#include +#include +#include +#include +#include "gen_qscilexercustom.h" +#include "_cgo_export.h" + +QMetaObject* QsciLexerCustom_MetaObject(const QsciLexerCustom* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerCustom_Metacast(QsciLexerCustom* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerCustom_Tr(const char* s) { + QString _ret = QsciLexerCustom::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCustom_TrUtf8(const char* s) { + QString _ret = QsciLexerCustom::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerCustom_SetStyling(QsciLexerCustom* self, int length, int style) { + self->setStyling(static_cast(length), static_cast(style)); +} + +void QsciLexerCustom_SetStyling2(QsciLexerCustom* self, int length, QsciStyle* style) { + self->setStyling(static_cast(length), *style); +} + +void QsciLexerCustom_StartStyling(QsciLexerCustom* self, int pos) { + self->startStyling(static_cast(pos)); +} + +void QsciLexerCustom_StyleText(QsciLexerCustom* self, int start, int end) { + self->styleText(static_cast(start), static_cast(end)); +} + +void QsciLexerCustom_SetEditor(QsciLexerCustom* self, QsciScintilla* editor) { + self->setEditor(editor); +} + +int QsciLexerCustom_StyleBitsNeeded(const QsciLexerCustom* self) { + return self->styleBitsNeeded(); +} + +struct miqt_string QsciLexerCustom_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerCustom::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCustom_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerCustom::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCustom_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerCustom::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerCustom_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerCustom::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerCustom_StartStyling2(QsciLexerCustom* self, int pos, int styleBits) { + self->startStyling(static_cast(pos), static_cast(styleBits)); +} + +void QsciLexerCustom_Delete(QsciLexerCustom* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercustom.go b/qt-restricted-extras/qscintilla/gen_qscilexercustom.go new file mode 100644 index 00000000..ea19d86b --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercustom.go @@ -0,0 +1,159 @@ +package qscintilla + +/* + +#include "gen_qscilexercustom.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerCustom struct { + h *C.QsciLexerCustom + *QsciLexer +} + +func (this *QsciLexerCustom) cPointer() *C.QsciLexerCustom { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerCustom) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerCustom(h *C.QsciLexerCustom) *QsciLexerCustom { + if h == nil { + return nil + } + return &QsciLexerCustom{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerCustom(h unsafe.Pointer) *QsciLexerCustom { + return newQsciLexerCustom((*C.QsciLexerCustom)(h)) +} + +func (this *QsciLexerCustom) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerCustom_MetaObject(this.h))) +} + +func (this *QsciLexerCustom) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerCustom_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerCustom_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCustom_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCustom_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCustom_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerCustom) SetStyling(length int, style int) { + C.QsciLexerCustom_SetStyling(this.h, (C.int)(length), (C.int)(style)) +} + +func (this *QsciLexerCustom) SetStyling2(length int, style *QsciStyle) { + C.QsciLexerCustom_SetStyling2(this.h, (C.int)(length), style.cPointer()) +} + +func (this *QsciLexerCustom) StartStyling(pos int) { + C.QsciLexerCustom_StartStyling(this.h, (C.int)(pos)) +} + +func (this *QsciLexerCustom) StyleText(start int, end int) { + C.QsciLexerCustom_StyleText(this.h, (C.int)(start), (C.int)(end)) +} + +func (this *QsciLexerCustom) SetEditor(editor *QsciScintilla) { + C.QsciLexerCustom_SetEditor(this.h, editor.cPointer()) +} + +func (this *QsciLexerCustom) StyleBitsNeeded() int { + return (int)(C.QsciLexerCustom_StyleBitsNeeded(this.h)) +} + +func QsciLexerCustom_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCustom_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCustom_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCustom_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCustom_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCustom_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerCustom_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerCustom_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerCustom) StartStyling2(pos int, styleBits int) { + C.QsciLexerCustom_StartStyling2(this.h, (C.int)(pos), (C.int)(styleBits)) +} + +// Delete this object from C++ memory. +func (this *QsciLexerCustom) Delete() { + C.QsciLexerCustom_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerCustom) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerCustom) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercustom.h b/qt-restricted-extras/qscintilla/gen_qscilexercustom.h new file mode 100644 index 00000000..adbf296c --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexercustom.h @@ -0,0 +1,49 @@ +#ifndef GEN_QSCILEXERCUSTOM_H +#define GEN_QSCILEXERCUSTOM_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QMetaObject; +class QsciLexerCustom; +class QsciScintilla; +class QsciStyle; +#else +typedef struct QMetaObject QMetaObject; +typedef struct QsciLexerCustom QsciLexerCustom; +typedef struct QsciScintilla QsciScintilla; +typedef struct QsciStyle QsciStyle; +#endif + +QMetaObject* QsciLexerCustom_MetaObject(const QsciLexerCustom* self); +void* QsciLexerCustom_Metacast(QsciLexerCustom* self, const char* param1); +struct miqt_string QsciLexerCustom_Tr(const char* s); +struct miqt_string QsciLexerCustom_TrUtf8(const char* s); +void QsciLexerCustom_SetStyling(QsciLexerCustom* self, int length, int style); +void QsciLexerCustom_SetStyling2(QsciLexerCustom* self, int length, QsciStyle* style); +void QsciLexerCustom_StartStyling(QsciLexerCustom* self, int pos); +void QsciLexerCustom_StyleText(QsciLexerCustom* self, int start, int end); +void QsciLexerCustom_SetEditor(QsciLexerCustom* self, QsciScintilla* editor); +int QsciLexerCustom_StyleBitsNeeded(const QsciLexerCustom* self); +struct miqt_string QsciLexerCustom_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerCustom_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerCustom_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerCustom_TrUtf83(const char* s, const char* c, int n); +void QsciLexerCustom_StartStyling2(QsciLexerCustom* self, int pos, int styleBits); +void QsciLexerCustom_Delete(QsciLexerCustom* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerd.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerd.cpp new file mode 100644 index 00000000..918929bd --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerd.cpp @@ -0,0 +1,217 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerd.h" +#include "_cgo_export.h" + +QsciLexerD* QsciLexerD_new() { + return new QsciLexerD(); +} + +QsciLexerD* QsciLexerD_new2(QObject* parent) { + return new QsciLexerD(parent); +} + +QMetaObject* QsciLexerD_MetaObject(const QsciLexerD* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerD_Metacast(QsciLexerD* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerD_Tr(const char* s) { + QString _ret = QsciLexerD::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerD_TrUtf8(const char* s) { + QString _ret = QsciLexerD::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerD_Language(const QsciLexerD* self) { + return (const char*) self->language(); +} + +const char* QsciLexerD_Lexer(const QsciLexerD* self) { + return (const char*) self->lexer(); +} + +struct miqt_array* 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())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QString _lv_ret = _ret[i]; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_b = _lv_ret.toUtf8(); + struct miqt_string _lv_ms; + _lv_ms.len = _lv_b.length(); + _lv_ms.data = static_cast(malloc(_lv_ms.len)); + memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len); + _arr[i] = _lv_ms; + } + struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); + _out->len = _ret.length(); + _out->data = static_cast(_arr); + return _out; +} + +const char* QsciLexerD_BlockEnd(const QsciLexerD* self) { + return (const char*) self->blockEnd(); +} + +const char* QsciLexerD_BlockStart(const QsciLexerD* self) { + return (const char*) self->blockStart(); +} + +const char* QsciLexerD_BlockStartKeyword(const QsciLexerD* self) { + return (const char*) self->blockStartKeyword(); +} + +int QsciLexerD_BraceStyle(const QsciLexerD* self) { + return self->braceStyle(); +} + +const char* QsciLexerD_WordCharacters(const QsciLexerD* self) { + return (const char*) self->wordCharacters(); +} + +QColor* QsciLexerD_DefaultColor(const QsciLexerD* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerD_DefaultEolFill(const QsciLexerD* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerD_DefaultFont(const QsciLexerD* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerD_DefaultPaper(const QsciLexerD* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerD_Keywords(const QsciLexerD* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerD_Description(const QsciLexerD* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerD_RefreshProperties(QsciLexerD* self) { + self->refreshProperties(); +} + +bool QsciLexerD_FoldAtElse(const QsciLexerD* self) { + return self->foldAtElse(); +} + +bool QsciLexerD_FoldComments(const QsciLexerD* self) { + return self->foldComments(); +} + +bool QsciLexerD_FoldCompact(const QsciLexerD* self) { + return self->foldCompact(); +} + +void QsciLexerD_SetFoldAtElse(QsciLexerD* self, bool fold) { + self->setFoldAtElse(fold); +} + +void QsciLexerD_SetFoldComments(QsciLexerD* self, bool fold) { + self->setFoldComments(fold); +} + +void QsciLexerD_SetFoldCompact(QsciLexerD* self, bool fold) { + self->setFoldCompact(fold); +} + +struct miqt_string QsciLexerD_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerD::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerD_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerD::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerD_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerD::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerD_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerD::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerD_BlockEnd1(const QsciLexerD* self, int* style) { + return (const char*) self->blockEnd(static_cast(style)); +} + +const char* QsciLexerD_BlockStart1(const QsciLexerD* self, int* style) { + return (const char*) self->blockStart(static_cast(style)); +} + +const char* QsciLexerD_BlockStartKeyword1(const QsciLexerD* self, int* style) { + return (const char*) self->blockStartKeyword(static_cast(style)); +} + +void QsciLexerD_Delete(QsciLexerD* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerd.go b/qt-restricted-extras/qscintilla/gen_qscilexerd.go new file mode 100644 index 00000000..98366f91 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerd.go @@ -0,0 +1,299 @@ +package qscintilla + +/* + +#include "gen_qscilexerd.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerD__ int + +const ( + QsciLexerD__Default QsciLexerD__ = 0 + QsciLexerD__Comment QsciLexerD__ = 1 + QsciLexerD__CommentLine QsciLexerD__ = 2 + QsciLexerD__CommentDoc QsciLexerD__ = 3 + QsciLexerD__CommentNested QsciLexerD__ = 4 + QsciLexerD__Number QsciLexerD__ = 5 + QsciLexerD__Keyword QsciLexerD__ = 6 + QsciLexerD__KeywordSecondary QsciLexerD__ = 7 + QsciLexerD__KeywordDoc QsciLexerD__ = 8 + QsciLexerD__Typedefs QsciLexerD__ = 9 + QsciLexerD__String QsciLexerD__ = 10 + QsciLexerD__UnclosedString QsciLexerD__ = 11 + QsciLexerD__Character QsciLexerD__ = 12 + QsciLexerD__Operator QsciLexerD__ = 13 + QsciLexerD__Identifier QsciLexerD__ = 14 + QsciLexerD__CommentLineDoc QsciLexerD__ = 15 + QsciLexerD__CommentDocKeyword QsciLexerD__ = 16 + QsciLexerD__CommentDocKeywordError QsciLexerD__ = 17 + QsciLexerD__BackquoteString QsciLexerD__ = 18 + QsciLexerD__RawString QsciLexerD__ = 19 + QsciLexerD__KeywordSet5 QsciLexerD__ = 20 + QsciLexerD__KeywordSet6 QsciLexerD__ = 21 + QsciLexerD__KeywordSet7 QsciLexerD__ = 22 +) + +type QsciLexerD struct { + h *C.QsciLexerD + *QsciLexer +} + +func (this *QsciLexerD) cPointer() *C.QsciLexerD { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerD) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerD(h *C.QsciLexerD) *QsciLexerD { + if h == nil { + return nil + } + return &QsciLexerD{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerD(h unsafe.Pointer) *QsciLexerD { + return newQsciLexerD((*C.QsciLexerD)(h)) +} + +// NewQsciLexerD constructs a new QsciLexerD object. +func NewQsciLexerD() *QsciLexerD { + ret := C.QsciLexerD_new() + return newQsciLexerD(ret) +} + +// NewQsciLexerD2 constructs a new QsciLexerD object. +func NewQsciLexerD2(parent *qt.QObject) *QsciLexerD { + ret := C.QsciLexerD_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerD(ret) +} + +func (this *QsciLexerD) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerD_MetaObject(this.h))) +} + +func (this *QsciLexerD) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerD_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerD_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerD_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerD_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerD_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerD) Language() string { + _ret := C.QsciLexerD_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerD) Lexer() string { + _ret := C.QsciLexerD_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerD) AutoCompletionWordSeparators() []string { + var _ma *C.struct_miqt_array = C.QsciLexerD_AutoCompletionWordSeparators(this.h) + _ret := make([]string, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_ms C.struct_miqt_string = _outCast[i] + _lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len))) + C.free(unsafe.Pointer(_lv_ms.data)) + _ret[i] = _lv_ret + } + C.free(unsafe.Pointer(_ma)) + return _ret +} + +func (this *QsciLexerD) BlockEnd() string { + _ret := C.QsciLexerD_BlockEnd(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerD) BlockStart() string { + _ret := C.QsciLexerD_BlockStart(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerD) BlockStartKeyword() string { + _ret := C.QsciLexerD_BlockStartKeyword(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerD) BraceStyle() int { + return (int)(C.QsciLexerD_BraceStyle(this.h)) +} + +func (this *QsciLexerD) WordCharacters() string { + _ret := C.QsciLexerD_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerD) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerD_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerD) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerD_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerD) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerD_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerD) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerD_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerD) Keywords(set int) string { + _ret := C.QsciLexerD_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerD) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerD_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerD) RefreshProperties() { + C.QsciLexerD_RefreshProperties(this.h) +} + +func (this *QsciLexerD) FoldAtElse() bool { + return (bool)(C.QsciLexerD_FoldAtElse(this.h)) +} + +func (this *QsciLexerD) FoldComments() bool { + return (bool)(C.QsciLexerD_FoldComments(this.h)) +} + +func (this *QsciLexerD) FoldCompact() bool { + return (bool)(C.QsciLexerD_FoldCompact(this.h)) +} + +func (this *QsciLexerD) SetFoldAtElse(fold bool) { + C.QsciLexerD_SetFoldAtElse(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerD) SetFoldComments(fold bool) { + C.QsciLexerD_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerD) SetFoldCompact(fold bool) { + C.QsciLexerD_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func QsciLexerD_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerD_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerD_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerD_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerD_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerD_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerD_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerD_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerD) BlockEnd1(style *int) string { + _ret := C.QsciLexerD_BlockEnd1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexerD) BlockStart1(style *int) string { + _ret := C.QsciLexerD_BlockStart1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexerD) BlockStartKeyword1(style *int) string { + _ret := C.QsciLexerD_BlockStartKeyword1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +// Delete this object from C++ memory. +func (this *QsciLexerD) Delete() { + C.QsciLexerD_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerD) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerD) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerd.h b/qt-restricted-extras/qscintilla/gen_qscilexerd.h new file mode 100644 index 00000000..b7fb3117 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerd.h @@ -0,0 +1,70 @@ +#ifndef GEN_QSCILEXERD_H +#define GEN_QSCILEXERD_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerD; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerD QsciLexerD; +#endif + +QsciLexerD* QsciLexerD_new(); +QsciLexerD* QsciLexerD_new2(QObject* parent); +QMetaObject* QsciLexerD_MetaObject(const QsciLexerD* self); +void* QsciLexerD_Metacast(QsciLexerD* self, const char* param1); +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); +const char* QsciLexerD_BlockEnd(const QsciLexerD* self); +const char* QsciLexerD_BlockStart(const QsciLexerD* self); +const char* QsciLexerD_BlockStartKeyword(const QsciLexerD* self); +int QsciLexerD_BraceStyle(const QsciLexerD* self); +const char* QsciLexerD_WordCharacters(const QsciLexerD* self); +QColor* QsciLexerD_DefaultColor(const QsciLexerD* self, int style); +bool QsciLexerD_DefaultEolFill(const QsciLexerD* self, int style); +QFont* QsciLexerD_DefaultFont(const QsciLexerD* self, int style); +QColor* QsciLexerD_DefaultPaper(const QsciLexerD* self, int style); +const char* QsciLexerD_Keywords(const QsciLexerD* self, int set); +struct miqt_string QsciLexerD_Description(const QsciLexerD* self, int style); +void QsciLexerD_RefreshProperties(QsciLexerD* self); +bool QsciLexerD_FoldAtElse(const QsciLexerD* self); +bool QsciLexerD_FoldComments(const QsciLexerD* self); +bool QsciLexerD_FoldCompact(const QsciLexerD* self); +void QsciLexerD_SetFoldAtElse(QsciLexerD* self, bool fold); +void QsciLexerD_SetFoldComments(QsciLexerD* self, bool fold); +void QsciLexerD_SetFoldCompact(QsciLexerD* self, bool fold); +struct miqt_string QsciLexerD_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerD_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerD_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerD_TrUtf83(const char* s, const char* c, int n); +const char* QsciLexerD_BlockEnd1(const QsciLexerD* self, int* style); +const char* QsciLexerD_BlockStart1(const QsciLexerD* self, int* style); +const char* QsciLexerD_BlockStartKeyword1(const QsciLexerD* self, int* style); +void QsciLexerD_Delete(QsciLexerD* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerdiff.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerdiff.cpp new file mode 100644 index 00000000..27472fb6 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerdiff.cpp @@ -0,0 +1,123 @@ +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerdiff.h" +#include "_cgo_export.h" + +QsciLexerDiff* QsciLexerDiff_new() { + return new QsciLexerDiff(); +} + +QsciLexerDiff* QsciLexerDiff_new2(QObject* parent) { + return new QsciLexerDiff(parent); +} + +QMetaObject* QsciLexerDiff_MetaObject(const QsciLexerDiff* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerDiff_Metacast(QsciLexerDiff* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerDiff_Tr(const char* s) { + QString _ret = QsciLexerDiff::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerDiff_TrUtf8(const char* s) { + QString _ret = QsciLexerDiff::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerDiff_Language(const QsciLexerDiff* self) { + return (const char*) self->language(); +} + +const char* QsciLexerDiff_Lexer(const QsciLexerDiff* self) { + return (const char*) self->lexer(); +} + +const char* QsciLexerDiff_WordCharacters(const QsciLexerDiff* self) { + return (const char*) self->wordCharacters(); +} + +QColor* QsciLexerDiff_DefaultColor(const QsciLexerDiff* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +struct miqt_string QsciLexerDiff_Description(const QsciLexerDiff* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerDiff_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerDiff::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerDiff_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerDiff::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerDiff_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerDiff::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerDiff_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerDiff::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerDiff_Delete(QsciLexerDiff* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerdiff.go b/qt-restricted-extras/qscintilla/gen_qscilexerdiff.go new file mode 100644 index 00000000..1423f66f --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerdiff.go @@ -0,0 +1,189 @@ +package qscintilla + +/* + +#include "gen_qscilexerdiff.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerDiff__ int + +const ( + QsciLexerDiff__Default QsciLexerDiff__ = 0 + QsciLexerDiff__Comment QsciLexerDiff__ = 1 + QsciLexerDiff__Command QsciLexerDiff__ = 2 + QsciLexerDiff__Header QsciLexerDiff__ = 3 + QsciLexerDiff__Position QsciLexerDiff__ = 4 + QsciLexerDiff__LineRemoved QsciLexerDiff__ = 5 + QsciLexerDiff__LineAdded QsciLexerDiff__ = 6 + QsciLexerDiff__LineChanged QsciLexerDiff__ = 7 + QsciLexerDiff__AddingPatchAdded QsciLexerDiff__ = 8 + QsciLexerDiff__RemovingPatchAdded QsciLexerDiff__ = 9 + QsciLexerDiff__AddingPatchRemoved QsciLexerDiff__ = 10 + QsciLexerDiff__RemovingPatchRemoved QsciLexerDiff__ = 11 +) + +type QsciLexerDiff struct { + h *C.QsciLexerDiff + *QsciLexer +} + +func (this *QsciLexerDiff) cPointer() *C.QsciLexerDiff { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerDiff) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerDiff(h *C.QsciLexerDiff) *QsciLexerDiff { + if h == nil { + return nil + } + return &QsciLexerDiff{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerDiff(h unsafe.Pointer) *QsciLexerDiff { + return newQsciLexerDiff((*C.QsciLexerDiff)(h)) +} + +// NewQsciLexerDiff constructs a new QsciLexerDiff object. +func NewQsciLexerDiff() *QsciLexerDiff { + ret := C.QsciLexerDiff_new() + return newQsciLexerDiff(ret) +} + +// NewQsciLexerDiff2 constructs a new QsciLexerDiff object. +func NewQsciLexerDiff2(parent *qt.QObject) *QsciLexerDiff { + ret := C.QsciLexerDiff_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerDiff(ret) +} + +func (this *QsciLexerDiff) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerDiff_MetaObject(this.h))) +} + +func (this *QsciLexerDiff) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerDiff_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerDiff_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerDiff_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerDiff_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerDiff_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerDiff) Language() string { + _ret := C.QsciLexerDiff_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerDiff) Lexer() string { + _ret := C.QsciLexerDiff_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerDiff) WordCharacters() string { + _ret := C.QsciLexerDiff_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerDiff) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerDiff_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerDiff) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerDiff_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerDiff_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerDiff_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerDiff_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerDiff_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerDiff_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerDiff_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerDiff_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerDiff_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerDiff) Delete() { + C.QsciLexerDiff_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerDiff) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerDiff) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerdiff.h b/qt-restricted-extras/qscintilla/gen_qscilexerdiff.h new file mode 100644 index 00000000..c8295060 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerdiff.h @@ -0,0 +1,49 @@ +#ifndef GEN_QSCILEXERDIFF_H +#define GEN_QSCILEXERDIFF_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QMetaObject; +class QObject; +class QsciLexerDiff; +#else +typedef struct QColor QColor; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerDiff QsciLexerDiff; +#endif + +QsciLexerDiff* QsciLexerDiff_new(); +QsciLexerDiff* QsciLexerDiff_new2(QObject* parent); +QMetaObject* QsciLexerDiff_MetaObject(const QsciLexerDiff* self); +void* QsciLexerDiff_Metacast(QsciLexerDiff* self, const char* param1); +struct miqt_string QsciLexerDiff_Tr(const char* s); +struct miqt_string QsciLexerDiff_TrUtf8(const char* s); +const char* QsciLexerDiff_Language(const QsciLexerDiff* self); +const char* QsciLexerDiff_Lexer(const QsciLexerDiff* self); +const char* QsciLexerDiff_WordCharacters(const QsciLexerDiff* self); +QColor* QsciLexerDiff_DefaultColor(const QsciLexerDiff* self, int style); +struct miqt_string QsciLexerDiff_Description(const QsciLexerDiff* self, int style); +struct miqt_string QsciLexerDiff_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerDiff_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerDiff_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerDiff_TrUtf83(const char* s, const char* c, int n); +void QsciLexerDiff_Delete(QsciLexerDiff* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeredifact.cpp b/qt-restricted-extras/qscintilla/gen_qscilexeredifact.cpp new file mode 100644 index 00000000..e323e3d8 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeredifact.cpp @@ -0,0 +1,119 @@ +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexeredifact.h" +#include "_cgo_export.h" + +QsciLexerEDIFACT* QsciLexerEDIFACT_new() { + return new QsciLexerEDIFACT(); +} + +QsciLexerEDIFACT* QsciLexerEDIFACT_new2(QObject* parent) { + return new QsciLexerEDIFACT(parent); +} + +QMetaObject* QsciLexerEDIFACT_MetaObject(const QsciLexerEDIFACT* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerEDIFACT_Metacast(QsciLexerEDIFACT* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerEDIFACT_Tr(const char* s) { + QString _ret = QsciLexerEDIFACT::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerEDIFACT_TrUtf8(const char* s) { + QString _ret = QsciLexerEDIFACT::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerEDIFACT_Language(const QsciLexerEDIFACT* self) { + return (const char*) self->language(); +} + +const char* QsciLexerEDIFACT_Lexer(const QsciLexerEDIFACT* self) { + return (const char*) self->lexer(); +} + +QColor* QsciLexerEDIFACT_DefaultColor(const QsciLexerEDIFACT* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +struct miqt_string QsciLexerEDIFACT_Description(const QsciLexerEDIFACT* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerEDIFACT_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerEDIFACT::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerEDIFACT_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerEDIFACT::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerEDIFACT_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerEDIFACT::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerEDIFACT_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerEDIFACT::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerEDIFACT_Delete(QsciLexerEDIFACT* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeredifact.go b/qt-restricted-extras/qscintilla/gen_qscilexeredifact.go new file mode 100644 index 00000000..98419d91 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeredifact.go @@ -0,0 +1,181 @@ +package qscintilla + +/* + +#include "gen_qscilexeredifact.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerEDIFACT__ int + +const ( + QsciLexerEDIFACT__Default QsciLexerEDIFACT__ = 0 + QsciLexerEDIFACT__SegmentStart QsciLexerEDIFACT__ = 1 + QsciLexerEDIFACT__SegmentEnd QsciLexerEDIFACT__ = 2 + QsciLexerEDIFACT__ElementSeparator QsciLexerEDIFACT__ = 3 + QsciLexerEDIFACT__CompositeSeparator QsciLexerEDIFACT__ = 4 + QsciLexerEDIFACT__ReleaseSeparator QsciLexerEDIFACT__ = 5 + QsciLexerEDIFACT__UNASegmentHeader QsciLexerEDIFACT__ = 6 + QsciLexerEDIFACT__UNHSegmentHeader QsciLexerEDIFACT__ = 7 + QsciLexerEDIFACT__BadSegment QsciLexerEDIFACT__ = 8 +) + +type QsciLexerEDIFACT struct { + h *C.QsciLexerEDIFACT + *QsciLexer +} + +func (this *QsciLexerEDIFACT) cPointer() *C.QsciLexerEDIFACT { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerEDIFACT) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerEDIFACT(h *C.QsciLexerEDIFACT) *QsciLexerEDIFACT { + if h == nil { + return nil + } + return &QsciLexerEDIFACT{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerEDIFACT(h unsafe.Pointer) *QsciLexerEDIFACT { + return newQsciLexerEDIFACT((*C.QsciLexerEDIFACT)(h)) +} + +// NewQsciLexerEDIFACT constructs a new QsciLexerEDIFACT object. +func NewQsciLexerEDIFACT() *QsciLexerEDIFACT { + ret := C.QsciLexerEDIFACT_new() + return newQsciLexerEDIFACT(ret) +} + +// NewQsciLexerEDIFACT2 constructs a new QsciLexerEDIFACT object. +func NewQsciLexerEDIFACT2(parent *qt.QObject) *QsciLexerEDIFACT { + ret := C.QsciLexerEDIFACT_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerEDIFACT(ret) +} + +func (this *QsciLexerEDIFACT) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerEDIFACT_MetaObject(this.h))) +} + +func (this *QsciLexerEDIFACT) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerEDIFACT_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerEDIFACT_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerEDIFACT_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerEDIFACT_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerEDIFACT_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerEDIFACT) Language() string { + _ret := C.QsciLexerEDIFACT_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerEDIFACT) Lexer() string { + _ret := C.QsciLexerEDIFACT_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerEDIFACT) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerEDIFACT_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerEDIFACT) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerEDIFACT_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerEDIFACT_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerEDIFACT_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerEDIFACT_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerEDIFACT_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerEDIFACT_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerEDIFACT_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerEDIFACT_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerEDIFACT_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerEDIFACT) Delete() { + C.QsciLexerEDIFACT_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerEDIFACT) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerEDIFACT) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeredifact.h b/qt-restricted-extras/qscintilla/gen_qscilexeredifact.h new file mode 100644 index 00000000..a63ac5a9 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeredifact.h @@ -0,0 +1,48 @@ +#ifndef GEN_QSCILEXEREDIFACT_H +#define GEN_QSCILEXEREDIFACT_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QMetaObject; +class QObject; +class QsciLexerEDIFACT; +#else +typedef struct QColor QColor; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerEDIFACT QsciLexerEDIFACT; +#endif + +QsciLexerEDIFACT* QsciLexerEDIFACT_new(); +QsciLexerEDIFACT* QsciLexerEDIFACT_new2(QObject* parent); +QMetaObject* QsciLexerEDIFACT_MetaObject(const QsciLexerEDIFACT* self); +void* QsciLexerEDIFACT_Metacast(QsciLexerEDIFACT* self, const char* param1); +struct miqt_string QsciLexerEDIFACT_Tr(const char* s); +struct miqt_string QsciLexerEDIFACT_TrUtf8(const char* s); +const char* QsciLexerEDIFACT_Language(const QsciLexerEDIFACT* self); +const char* QsciLexerEDIFACT_Lexer(const QsciLexerEDIFACT* self); +QColor* QsciLexerEDIFACT_DefaultColor(const QsciLexerEDIFACT* self, int style); +struct miqt_string QsciLexerEDIFACT_Description(const QsciLexerEDIFACT* self, int style); +struct miqt_string QsciLexerEDIFACT_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerEDIFACT_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerEDIFACT_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerEDIFACT_TrUtf83(const char* s, const char* c, int n); +void QsciLexerEDIFACT_Delete(QsciLexerEDIFACT* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerfortran.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerfortran.cpp new file mode 100644 index 00000000..c5612eb6 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerfortran.cpp @@ -0,0 +1,107 @@ +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerfortran.h" +#include "_cgo_export.h" + +QsciLexerFortran* QsciLexerFortran_new() { + return new QsciLexerFortran(); +} + +QsciLexerFortran* QsciLexerFortran_new2(QObject* parent) { + return new QsciLexerFortran(parent); +} + +QMetaObject* QsciLexerFortran_MetaObject(const QsciLexerFortran* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerFortran_Metacast(QsciLexerFortran* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerFortran_Tr(const char* s) { + QString _ret = QsciLexerFortran::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerFortran_TrUtf8(const char* s) { + QString _ret = QsciLexerFortran::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerFortran_Language(const QsciLexerFortran* self) { + return (const char*) self->language(); +} + +const char* QsciLexerFortran_Lexer(const QsciLexerFortran* self) { + return (const char*) self->lexer(); +} + +const char* QsciLexerFortran_Keywords(const QsciLexerFortran* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerFortran_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerFortran::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerFortran_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerFortran::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerFortran_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerFortran::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerFortran_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerFortran::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerFortran_Delete(QsciLexerFortran* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerfortran.go b/qt-restricted-extras/qscintilla/gen_qscilexerfortran.go new file mode 100644 index 00000000..42d04a1a --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerfortran.go @@ -0,0 +1,158 @@ +package qscintilla + +/* + +#include "gen_qscilexerfortran.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerFortran struct { + h *C.QsciLexerFortran + *QsciLexerFortran77 +} + +func (this *QsciLexerFortran) cPointer() *C.QsciLexerFortran { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerFortran) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerFortran(h *C.QsciLexerFortran) *QsciLexerFortran { + if h == nil { + return nil + } + return &QsciLexerFortran{h: h, QsciLexerFortran77: UnsafeNewQsciLexerFortran77(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerFortran(h unsafe.Pointer) *QsciLexerFortran { + return newQsciLexerFortran((*C.QsciLexerFortran)(h)) +} + +// NewQsciLexerFortran constructs a new QsciLexerFortran object. +func NewQsciLexerFortran() *QsciLexerFortran { + ret := C.QsciLexerFortran_new() + return newQsciLexerFortran(ret) +} + +// NewQsciLexerFortran2 constructs a new QsciLexerFortran object. +func NewQsciLexerFortran2(parent *qt.QObject) *QsciLexerFortran { + ret := C.QsciLexerFortran_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerFortran(ret) +} + +func (this *QsciLexerFortran) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerFortran_MetaObject(this.h))) +} + +func (this *QsciLexerFortran) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerFortran_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerFortran_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerFortran_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerFortran_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerFortran_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerFortran) Language() string { + _ret := C.QsciLexerFortran_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerFortran) Lexer() string { + _ret := C.QsciLexerFortran_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerFortran) Keywords(set int) string { + _ret := C.QsciLexerFortran_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func QsciLexerFortran_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerFortran_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerFortran_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerFortran_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerFortran_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerFortran_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerFortran_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerFortran_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerFortran) Delete() { + C.QsciLexerFortran_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerFortran) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerFortran) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerfortran.h b/qt-restricted-extras/qscintilla/gen_qscilexerfortran.h new file mode 100644 index 00000000..c66dd068 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerfortran.h @@ -0,0 +1,45 @@ +#ifndef GEN_QSCILEXERFORTRAN_H +#define GEN_QSCILEXERFORTRAN_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QMetaObject; +class QObject; +class QsciLexerFortran; +#else +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerFortran QsciLexerFortran; +#endif + +QsciLexerFortran* QsciLexerFortran_new(); +QsciLexerFortran* QsciLexerFortran_new2(QObject* parent); +QMetaObject* QsciLexerFortran_MetaObject(const QsciLexerFortran* self); +void* QsciLexerFortran_Metacast(QsciLexerFortran* self, const char* param1); +struct miqt_string QsciLexerFortran_Tr(const char* s); +struct miqt_string QsciLexerFortran_TrUtf8(const char* s); +const char* QsciLexerFortran_Language(const QsciLexerFortran* self); +const char* QsciLexerFortran_Lexer(const QsciLexerFortran* self); +const char* QsciLexerFortran_Keywords(const QsciLexerFortran* self, int set); +struct miqt_string QsciLexerFortran_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerFortran_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerFortran_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerFortran_TrUtf83(const char* s, const char* c, int n); +void QsciLexerFortran_Delete(QsciLexerFortran* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.cpp new file mode 100644 index 00000000..19301d11 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.cpp @@ -0,0 +1,152 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerfortran77.h" +#include "_cgo_export.h" + +QsciLexerFortran77* QsciLexerFortran77_new() { + return new QsciLexerFortran77(); +} + +QsciLexerFortran77* QsciLexerFortran77_new2(QObject* parent) { + return new QsciLexerFortran77(parent); +} + +QMetaObject* QsciLexerFortran77_MetaObject(const QsciLexerFortran77* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerFortran77_Metacast(QsciLexerFortran77* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerFortran77_Tr(const char* s) { + QString _ret = QsciLexerFortran77::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerFortran77_TrUtf8(const char* s) { + QString _ret = QsciLexerFortran77::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerFortran77_Language(const QsciLexerFortran77* self) { + return (const char*) self->language(); +} + +const char* QsciLexerFortran77_Lexer(const QsciLexerFortran77* self) { + return (const char*) self->lexer(); +} + +int QsciLexerFortran77_BraceStyle(const QsciLexerFortran77* self) { + return self->braceStyle(); +} + +QColor* QsciLexerFortran77_DefaultColor(const QsciLexerFortran77* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerFortran77_DefaultEolFill(const QsciLexerFortran77* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerFortran77_DefaultFont(const QsciLexerFortran77* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerFortran77_DefaultPaper(const QsciLexerFortran77* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerFortran77_Keywords(const QsciLexerFortran77* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerFortran77_Description(const QsciLexerFortran77* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerFortran77_RefreshProperties(QsciLexerFortran77* self) { + self->refreshProperties(); +} + +bool QsciLexerFortran77_FoldCompact(const QsciLexerFortran77* self) { + return self->foldCompact(); +} + +void QsciLexerFortran77_SetFoldCompact(QsciLexerFortran77* self, bool fold) { + self->setFoldCompact(fold); +} + +struct miqt_string QsciLexerFortran77_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerFortran77::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerFortran77_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerFortran77::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerFortran77_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerFortran77::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerFortran77_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerFortran77::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerFortran77_Delete(QsciLexerFortran77* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.go b/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.go new file mode 100644 index 00000000..3485009a --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.go @@ -0,0 +1,226 @@ +package qscintilla + +/* + +#include "gen_qscilexerfortran77.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerFortran77__ int + +const ( + QsciLexerFortran77__Default QsciLexerFortran77__ = 0 + QsciLexerFortran77__Comment QsciLexerFortran77__ = 1 + QsciLexerFortran77__Number QsciLexerFortran77__ = 2 + QsciLexerFortran77__SingleQuotedString QsciLexerFortran77__ = 3 + QsciLexerFortran77__DoubleQuotedString QsciLexerFortran77__ = 4 + QsciLexerFortran77__UnclosedString QsciLexerFortran77__ = 5 + QsciLexerFortran77__Operator QsciLexerFortran77__ = 6 + QsciLexerFortran77__Identifier QsciLexerFortran77__ = 7 + QsciLexerFortran77__Keyword QsciLexerFortran77__ = 8 + QsciLexerFortran77__IntrinsicFunction QsciLexerFortran77__ = 9 + QsciLexerFortran77__ExtendedFunction QsciLexerFortran77__ = 10 + QsciLexerFortran77__PreProcessor QsciLexerFortran77__ = 11 + QsciLexerFortran77__DottedOperator QsciLexerFortran77__ = 12 + QsciLexerFortran77__Label QsciLexerFortran77__ = 13 + QsciLexerFortran77__Continuation QsciLexerFortran77__ = 14 +) + +type QsciLexerFortran77 struct { + h *C.QsciLexerFortran77 + *QsciLexer +} + +func (this *QsciLexerFortran77) cPointer() *C.QsciLexerFortran77 { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerFortran77) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerFortran77(h *C.QsciLexerFortran77) *QsciLexerFortran77 { + if h == nil { + return nil + } + return &QsciLexerFortran77{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerFortran77(h unsafe.Pointer) *QsciLexerFortran77 { + return newQsciLexerFortran77((*C.QsciLexerFortran77)(h)) +} + +// NewQsciLexerFortran77 constructs a new QsciLexerFortran77 object. +func NewQsciLexerFortran77() *QsciLexerFortran77 { + ret := C.QsciLexerFortran77_new() + return newQsciLexerFortran77(ret) +} + +// NewQsciLexerFortran772 constructs a new QsciLexerFortran77 object. +func NewQsciLexerFortran772(parent *qt.QObject) *QsciLexerFortran77 { + ret := C.QsciLexerFortran77_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerFortran77(ret) +} + +func (this *QsciLexerFortran77) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerFortran77_MetaObject(this.h))) +} + +func (this *QsciLexerFortran77) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerFortran77_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerFortran77_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerFortran77_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerFortran77_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerFortran77_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerFortran77) Language() string { + _ret := C.QsciLexerFortran77_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerFortran77) Lexer() string { + _ret := C.QsciLexerFortran77_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerFortran77) BraceStyle() int { + return (int)(C.QsciLexerFortran77_BraceStyle(this.h)) +} + +func (this *QsciLexerFortran77) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerFortran77_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerFortran77) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerFortran77_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerFortran77) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerFortran77_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerFortran77) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerFortran77_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerFortran77) Keywords(set int) string { + _ret := C.QsciLexerFortran77_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerFortran77) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerFortran77_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerFortran77) RefreshProperties() { + C.QsciLexerFortran77_RefreshProperties(this.h) +} + +func (this *QsciLexerFortran77) FoldCompact() bool { + return (bool)(C.QsciLexerFortran77_FoldCompact(this.h)) +} + +func (this *QsciLexerFortran77) SetFoldCompact(fold bool) { + C.QsciLexerFortran77_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func QsciLexerFortran77_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerFortran77_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerFortran77_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerFortran77_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerFortran77_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerFortran77_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerFortran77_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerFortran77_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerFortran77) Delete() { + C.QsciLexerFortran77_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerFortran77) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerFortran77) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.h b/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.h new file mode 100644 index 00000000..15355fc8 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.h @@ -0,0 +1,58 @@ +#ifndef GEN_QSCILEXERFORTRAN77_H +#define GEN_QSCILEXERFORTRAN77_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerFortran77; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerFortran77 QsciLexerFortran77; +#endif + +QsciLexerFortran77* QsciLexerFortran77_new(); +QsciLexerFortran77* QsciLexerFortran77_new2(QObject* parent); +QMetaObject* QsciLexerFortran77_MetaObject(const QsciLexerFortran77* self); +void* QsciLexerFortran77_Metacast(QsciLexerFortran77* self, const char* param1); +struct miqt_string QsciLexerFortran77_Tr(const char* s); +struct miqt_string QsciLexerFortran77_TrUtf8(const char* s); +const char* QsciLexerFortran77_Language(const QsciLexerFortran77* self); +const char* QsciLexerFortran77_Lexer(const QsciLexerFortran77* self); +int QsciLexerFortran77_BraceStyle(const QsciLexerFortran77* self); +QColor* QsciLexerFortran77_DefaultColor(const QsciLexerFortran77* self, int style); +bool QsciLexerFortran77_DefaultEolFill(const QsciLexerFortran77* self, int style); +QFont* QsciLexerFortran77_DefaultFont(const QsciLexerFortran77* self, int style); +QColor* QsciLexerFortran77_DefaultPaper(const QsciLexerFortran77* self, int style); +const char* QsciLexerFortran77_Keywords(const QsciLexerFortran77* self, int set); +struct miqt_string QsciLexerFortran77_Description(const QsciLexerFortran77* self, int style); +void QsciLexerFortran77_RefreshProperties(QsciLexerFortran77* self); +bool QsciLexerFortran77_FoldCompact(const QsciLexerFortran77* self); +void QsciLexerFortran77_SetFoldCompact(QsciLexerFortran77* self, bool fold); +struct miqt_string QsciLexerFortran77_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerFortran77_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerFortran77_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerFortran77_TrUtf83(const char* s, const char* c, int n); +void QsciLexerFortran77_Delete(QsciLexerFortran77* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerhtml.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerhtml.cpp new file mode 100644 index 00000000..e7db2791 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerhtml.cpp @@ -0,0 +1,204 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerhtml.h" +#include "_cgo_export.h" + +QsciLexerHTML* QsciLexerHTML_new() { + return new QsciLexerHTML(); +} + +QsciLexerHTML* QsciLexerHTML_new2(QObject* parent) { + return new QsciLexerHTML(parent); +} + +QMetaObject* QsciLexerHTML_MetaObject(const QsciLexerHTML* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerHTML_Metacast(QsciLexerHTML* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerHTML_Tr(const char* s) { + QString _ret = QsciLexerHTML::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerHTML_TrUtf8(const char* s) { + QString _ret = QsciLexerHTML::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerHTML_Language(const QsciLexerHTML* self) { + return (const char*) self->language(); +} + +const char* QsciLexerHTML_Lexer(const QsciLexerHTML* self) { + return (const char*) self->lexer(); +} + +const char* QsciLexerHTML_AutoCompletionFillups(const QsciLexerHTML* self) { + return (const char*) self->autoCompletionFillups(); +} + +const char* QsciLexerHTML_WordCharacters(const QsciLexerHTML* self) { + return (const char*) self->wordCharacters(); +} + +QColor* QsciLexerHTML_DefaultColor(const QsciLexerHTML* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerHTML_DefaultEolFill(const QsciLexerHTML* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerHTML_DefaultFont(const QsciLexerHTML* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerHTML_DefaultPaper(const QsciLexerHTML* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerHTML_Keywords(const QsciLexerHTML* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerHTML_Description(const QsciLexerHTML* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerHTML_RefreshProperties(QsciLexerHTML* self) { + self->refreshProperties(); +} + +bool QsciLexerHTML_CaseSensitiveTags(const QsciLexerHTML* self) { + return self->caseSensitiveTags(); +} + +void QsciLexerHTML_SetDjangoTemplates(QsciLexerHTML* self, bool enabled) { + self->setDjangoTemplates(enabled); +} + +bool QsciLexerHTML_DjangoTemplates(const QsciLexerHTML* self) { + return self->djangoTemplates(); +} + +bool QsciLexerHTML_FoldCompact(const QsciLexerHTML* self) { + return self->foldCompact(); +} + +bool QsciLexerHTML_FoldPreprocessor(const QsciLexerHTML* self) { + return self->foldPreprocessor(); +} + +void QsciLexerHTML_SetFoldScriptComments(QsciLexerHTML* self, bool fold) { + self->setFoldScriptComments(fold); +} + +bool QsciLexerHTML_FoldScriptComments(const QsciLexerHTML* self) { + return self->foldScriptComments(); +} + +void QsciLexerHTML_SetFoldScriptHeredocs(QsciLexerHTML* self, bool fold) { + self->setFoldScriptHeredocs(fold); +} + +bool QsciLexerHTML_FoldScriptHeredocs(const QsciLexerHTML* self) { + return self->foldScriptHeredocs(); +} + +void QsciLexerHTML_SetMakoTemplates(QsciLexerHTML* self, bool enabled) { + self->setMakoTemplates(enabled); +} + +bool QsciLexerHTML_MakoTemplates(const QsciLexerHTML* self) { + return self->makoTemplates(); +} + +void QsciLexerHTML_SetFoldCompact(QsciLexerHTML* self, bool fold) { + self->setFoldCompact(fold); +} + +void QsciLexerHTML_SetFoldPreprocessor(QsciLexerHTML* self, bool fold) { + self->setFoldPreprocessor(fold); +} + +void QsciLexerHTML_SetCaseSensitiveTags(QsciLexerHTML* self, bool sens) { + self->setCaseSensitiveTags(sens); +} + +struct miqt_string QsciLexerHTML_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerHTML::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerHTML_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerHTML::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerHTML_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerHTML::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerHTML_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerHTML::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerHTML_Delete(QsciLexerHTML* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerhtml.go b/qt-restricted-extras/qscintilla/gen_qscilexerhtml.go new file mode 100644 index 00000000..785df5ee --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerhtml.go @@ -0,0 +1,375 @@ +package qscintilla + +/* + +#include "gen_qscilexerhtml.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerHTML__ int + +const ( + QsciLexerHTML__Default QsciLexerHTML__ = 0 + QsciLexerHTML__Tag QsciLexerHTML__ = 1 + QsciLexerHTML__UnknownTag QsciLexerHTML__ = 2 + QsciLexerHTML__Attribute QsciLexerHTML__ = 3 + QsciLexerHTML__UnknownAttribute QsciLexerHTML__ = 4 + QsciLexerHTML__HTMLNumber QsciLexerHTML__ = 5 + QsciLexerHTML__HTMLDoubleQuotedString QsciLexerHTML__ = 6 + QsciLexerHTML__HTMLSingleQuotedString QsciLexerHTML__ = 7 + QsciLexerHTML__OtherInTag QsciLexerHTML__ = 8 + QsciLexerHTML__HTMLComment QsciLexerHTML__ = 9 + QsciLexerHTML__Entity QsciLexerHTML__ = 10 + QsciLexerHTML__XMLTagEnd QsciLexerHTML__ = 11 + QsciLexerHTML__XMLStart QsciLexerHTML__ = 12 + QsciLexerHTML__XMLEnd QsciLexerHTML__ = 13 + QsciLexerHTML__Script QsciLexerHTML__ = 14 + QsciLexerHTML__ASPAtStart QsciLexerHTML__ = 15 + QsciLexerHTML__ASPStart QsciLexerHTML__ = 16 + QsciLexerHTML__CDATA QsciLexerHTML__ = 17 + QsciLexerHTML__PHPStart QsciLexerHTML__ = 18 + QsciLexerHTML__HTMLValue QsciLexerHTML__ = 19 + QsciLexerHTML__ASPXCComment QsciLexerHTML__ = 20 + QsciLexerHTML__SGMLDefault QsciLexerHTML__ = 21 + QsciLexerHTML__SGMLCommand QsciLexerHTML__ = 22 + QsciLexerHTML__SGMLParameter QsciLexerHTML__ = 23 + QsciLexerHTML__SGMLDoubleQuotedString QsciLexerHTML__ = 24 + QsciLexerHTML__SGMLSingleQuotedString QsciLexerHTML__ = 25 + QsciLexerHTML__SGMLError QsciLexerHTML__ = 26 + QsciLexerHTML__SGMLSpecial QsciLexerHTML__ = 27 + QsciLexerHTML__SGMLEntity QsciLexerHTML__ = 28 + QsciLexerHTML__SGMLComment QsciLexerHTML__ = 29 + QsciLexerHTML__SGMLParameterComment QsciLexerHTML__ = 30 + QsciLexerHTML__SGMLBlockDefault QsciLexerHTML__ = 31 + QsciLexerHTML__JavaScriptStart QsciLexerHTML__ = 40 + QsciLexerHTML__JavaScriptDefault QsciLexerHTML__ = 41 + QsciLexerHTML__JavaScriptComment QsciLexerHTML__ = 42 + QsciLexerHTML__JavaScriptCommentLine QsciLexerHTML__ = 43 + QsciLexerHTML__JavaScriptCommentDoc QsciLexerHTML__ = 44 + QsciLexerHTML__JavaScriptNumber QsciLexerHTML__ = 45 + QsciLexerHTML__JavaScriptWord QsciLexerHTML__ = 46 + QsciLexerHTML__JavaScriptKeyword QsciLexerHTML__ = 47 + QsciLexerHTML__JavaScriptDoubleQuotedString QsciLexerHTML__ = 48 + QsciLexerHTML__JavaScriptSingleQuotedString QsciLexerHTML__ = 49 + QsciLexerHTML__JavaScriptSymbol QsciLexerHTML__ = 50 + QsciLexerHTML__JavaScriptUnclosedString QsciLexerHTML__ = 51 + QsciLexerHTML__JavaScriptRegex QsciLexerHTML__ = 52 + QsciLexerHTML__ASPJavaScriptStart QsciLexerHTML__ = 55 + QsciLexerHTML__ASPJavaScriptDefault QsciLexerHTML__ = 56 + QsciLexerHTML__ASPJavaScriptComment QsciLexerHTML__ = 57 + QsciLexerHTML__ASPJavaScriptCommentLine QsciLexerHTML__ = 58 + QsciLexerHTML__ASPJavaScriptCommentDoc QsciLexerHTML__ = 59 + QsciLexerHTML__ASPJavaScriptNumber QsciLexerHTML__ = 60 + QsciLexerHTML__ASPJavaScriptWord QsciLexerHTML__ = 61 + QsciLexerHTML__ASPJavaScriptKeyword QsciLexerHTML__ = 62 + QsciLexerHTML__ASPJavaScriptDoubleQuotedString QsciLexerHTML__ = 63 + QsciLexerHTML__ASPJavaScriptSingleQuotedString QsciLexerHTML__ = 64 + QsciLexerHTML__ASPJavaScriptSymbol QsciLexerHTML__ = 65 + QsciLexerHTML__ASPJavaScriptUnclosedString QsciLexerHTML__ = 66 + QsciLexerHTML__ASPJavaScriptRegex QsciLexerHTML__ = 67 + QsciLexerHTML__VBScriptStart QsciLexerHTML__ = 70 + QsciLexerHTML__VBScriptDefault QsciLexerHTML__ = 71 + QsciLexerHTML__VBScriptComment QsciLexerHTML__ = 72 + QsciLexerHTML__VBScriptNumber QsciLexerHTML__ = 73 + QsciLexerHTML__VBScriptKeyword QsciLexerHTML__ = 74 + QsciLexerHTML__VBScriptString QsciLexerHTML__ = 75 + QsciLexerHTML__VBScriptIdentifier QsciLexerHTML__ = 76 + QsciLexerHTML__VBScriptUnclosedString QsciLexerHTML__ = 77 + QsciLexerHTML__ASPVBScriptStart QsciLexerHTML__ = 80 + QsciLexerHTML__ASPVBScriptDefault QsciLexerHTML__ = 81 + QsciLexerHTML__ASPVBScriptComment QsciLexerHTML__ = 82 + QsciLexerHTML__ASPVBScriptNumber QsciLexerHTML__ = 83 + QsciLexerHTML__ASPVBScriptKeyword QsciLexerHTML__ = 84 + QsciLexerHTML__ASPVBScriptString QsciLexerHTML__ = 85 + QsciLexerHTML__ASPVBScriptIdentifier QsciLexerHTML__ = 86 + QsciLexerHTML__ASPVBScriptUnclosedString QsciLexerHTML__ = 87 + QsciLexerHTML__PythonStart QsciLexerHTML__ = 90 + QsciLexerHTML__PythonDefault QsciLexerHTML__ = 91 + QsciLexerHTML__PythonComment QsciLexerHTML__ = 92 + QsciLexerHTML__PythonNumber QsciLexerHTML__ = 93 + QsciLexerHTML__PythonDoubleQuotedString QsciLexerHTML__ = 94 + QsciLexerHTML__PythonSingleQuotedString QsciLexerHTML__ = 95 + QsciLexerHTML__PythonKeyword QsciLexerHTML__ = 96 + QsciLexerHTML__PythonTripleSingleQuotedString QsciLexerHTML__ = 97 + QsciLexerHTML__PythonTripleDoubleQuotedString QsciLexerHTML__ = 98 + QsciLexerHTML__PythonClassName QsciLexerHTML__ = 99 + QsciLexerHTML__PythonFunctionMethodName QsciLexerHTML__ = 100 + QsciLexerHTML__PythonOperator QsciLexerHTML__ = 101 + QsciLexerHTML__PythonIdentifier QsciLexerHTML__ = 102 + QsciLexerHTML__ASPPythonStart QsciLexerHTML__ = 105 + QsciLexerHTML__ASPPythonDefault QsciLexerHTML__ = 106 + QsciLexerHTML__ASPPythonComment QsciLexerHTML__ = 107 + QsciLexerHTML__ASPPythonNumber QsciLexerHTML__ = 108 + QsciLexerHTML__ASPPythonDoubleQuotedString QsciLexerHTML__ = 109 + QsciLexerHTML__ASPPythonSingleQuotedString QsciLexerHTML__ = 110 + QsciLexerHTML__ASPPythonKeyword QsciLexerHTML__ = 111 + QsciLexerHTML__ASPPythonTripleSingleQuotedString QsciLexerHTML__ = 112 + QsciLexerHTML__ASPPythonTripleDoubleQuotedString QsciLexerHTML__ = 113 + QsciLexerHTML__ASPPythonClassName QsciLexerHTML__ = 114 + QsciLexerHTML__ASPPythonFunctionMethodName QsciLexerHTML__ = 115 + QsciLexerHTML__ASPPythonOperator QsciLexerHTML__ = 116 + QsciLexerHTML__ASPPythonIdentifier QsciLexerHTML__ = 117 + QsciLexerHTML__PHPDefault QsciLexerHTML__ = 118 + QsciLexerHTML__PHPDoubleQuotedString QsciLexerHTML__ = 119 + QsciLexerHTML__PHPSingleQuotedString QsciLexerHTML__ = 120 + QsciLexerHTML__PHPKeyword QsciLexerHTML__ = 121 + QsciLexerHTML__PHPNumber QsciLexerHTML__ = 122 + QsciLexerHTML__PHPVariable QsciLexerHTML__ = 123 + QsciLexerHTML__PHPComment QsciLexerHTML__ = 124 + QsciLexerHTML__PHPCommentLine QsciLexerHTML__ = 125 + QsciLexerHTML__PHPDoubleQuotedVariable QsciLexerHTML__ = 126 + QsciLexerHTML__PHPOperator QsciLexerHTML__ = 127 +) + +type QsciLexerHTML struct { + h *C.QsciLexerHTML + *QsciLexer +} + +func (this *QsciLexerHTML) cPointer() *C.QsciLexerHTML { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerHTML) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerHTML(h *C.QsciLexerHTML) *QsciLexerHTML { + if h == nil { + return nil + } + return &QsciLexerHTML{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerHTML(h unsafe.Pointer) *QsciLexerHTML { + return newQsciLexerHTML((*C.QsciLexerHTML)(h)) +} + +// NewQsciLexerHTML constructs a new QsciLexerHTML object. +func NewQsciLexerHTML() *QsciLexerHTML { + ret := C.QsciLexerHTML_new() + return newQsciLexerHTML(ret) +} + +// NewQsciLexerHTML2 constructs a new QsciLexerHTML object. +func NewQsciLexerHTML2(parent *qt.QObject) *QsciLexerHTML { + ret := C.QsciLexerHTML_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerHTML(ret) +} + +func (this *QsciLexerHTML) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerHTML_MetaObject(this.h))) +} + +func (this *QsciLexerHTML) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerHTML_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerHTML_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerHTML_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerHTML_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerHTML_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerHTML) Language() string { + _ret := C.QsciLexerHTML_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerHTML) Lexer() string { + _ret := C.QsciLexerHTML_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerHTML) AutoCompletionFillups() string { + _ret := C.QsciLexerHTML_AutoCompletionFillups(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerHTML) WordCharacters() string { + _ret := C.QsciLexerHTML_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerHTML) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerHTML_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerHTML) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerHTML_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerHTML) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerHTML_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerHTML) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerHTML_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerHTML) Keywords(set int) string { + _ret := C.QsciLexerHTML_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerHTML) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerHTML_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerHTML) RefreshProperties() { + C.QsciLexerHTML_RefreshProperties(this.h) +} + +func (this *QsciLexerHTML) CaseSensitiveTags() bool { + return (bool)(C.QsciLexerHTML_CaseSensitiveTags(this.h)) +} + +func (this *QsciLexerHTML) SetDjangoTemplates(enabled bool) { + C.QsciLexerHTML_SetDjangoTemplates(this.h, (C.bool)(enabled)) +} + +func (this *QsciLexerHTML) DjangoTemplates() bool { + return (bool)(C.QsciLexerHTML_DjangoTemplates(this.h)) +} + +func (this *QsciLexerHTML) FoldCompact() bool { + return (bool)(C.QsciLexerHTML_FoldCompact(this.h)) +} + +func (this *QsciLexerHTML) FoldPreprocessor() bool { + return (bool)(C.QsciLexerHTML_FoldPreprocessor(this.h)) +} + +func (this *QsciLexerHTML) SetFoldScriptComments(fold bool) { + C.QsciLexerHTML_SetFoldScriptComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerHTML) FoldScriptComments() bool { + return (bool)(C.QsciLexerHTML_FoldScriptComments(this.h)) +} + +func (this *QsciLexerHTML) SetFoldScriptHeredocs(fold bool) { + C.QsciLexerHTML_SetFoldScriptHeredocs(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerHTML) FoldScriptHeredocs() bool { + return (bool)(C.QsciLexerHTML_FoldScriptHeredocs(this.h)) +} + +func (this *QsciLexerHTML) SetMakoTemplates(enabled bool) { + C.QsciLexerHTML_SetMakoTemplates(this.h, (C.bool)(enabled)) +} + +func (this *QsciLexerHTML) MakoTemplates() bool { + return (bool)(C.QsciLexerHTML_MakoTemplates(this.h)) +} + +func (this *QsciLexerHTML) SetFoldCompact(fold bool) { + C.QsciLexerHTML_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerHTML) SetFoldPreprocessor(fold bool) { + C.QsciLexerHTML_SetFoldPreprocessor(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerHTML) SetCaseSensitiveTags(sens bool) { + C.QsciLexerHTML_SetCaseSensitiveTags(this.h, (C.bool)(sens)) +} + +func QsciLexerHTML_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerHTML_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerHTML_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerHTML_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerHTML_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerHTML_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerHTML_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerHTML_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerHTML) Delete() { + C.QsciLexerHTML_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerHTML) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerHTML) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerhtml.h b/qt-restricted-extras/qscintilla/gen_qscilexerhtml.h new file mode 100644 index 00000000..f5f0fe9c --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerhtml.h @@ -0,0 +1,71 @@ +#ifndef GEN_QSCILEXERHTML_H +#define GEN_QSCILEXERHTML_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerHTML; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerHTML QsciLexerHTML; +#endif + +QsciLexerHTML* QsciLexerHTML_new(); +QsciLexerHTML* QsciLexerHTML_new2(QObject* parent); +QMetaObject* QsciLexerHTML_MetaObject(const QsciLexerHTML* self); +void* QsciLexerHTML_Metacast(QsciLexerHTML* self, const char* param1); +struct miqt_string QsciLexerHTML_Tr(const char* s); +struct miqt_string QsciLexerHTML_TrUtf8(const char* s); +const char* QsciLexerHTML_Language(const QsciLexerHTML* self); +const char* QsciLexerHTML_Lexer(const QsciLexerHTML* self); +const char* QsciLexerHTML_AutoCompletionFillups(const QsciLexerHTML* self); +const char* QsciLexerHTML_WordCharacters(const QsciLexerHTML* self); +QColor* QsciLexerHTML_DefaultColor(const QsciLexerHTML* self, int style); +bool QsciLexerHTML_DefaultEolFill(const QsciLexerHTML* self, int style); +QFont* QsciLexerHTML_DefaultFont(const QsciLexerHTML* self, int style); +QColor* QsciLexerHTML_DefaultPaper(const QsciLexerHTML* self, int style); +const char* QsciLexerHTML_Keywords(const QsciLexerHTML* self, int set); +struct miqt_string QsciLexerHTML_Description(const QsciLexerHTML* self, int style); +void QsciLexerHTML_RefreshProperties(QsciLexerHTML* self); +bool QsciLexerHTML_CaseSensitiveTags(const QsciLexerHTML* self); +void QsciLexerHTML_SetDjangoTemplates(QsciLexerHTML* self, bool enabled); +bool QsciLexerHTML_DjangoTemplates(const QsciLexerHTML* self); +bool QsciLexerHTML_FoldCompact(const QsciLexerHTML* self); +bool QsciLexerHTML_FoldPreprocessor(const QsciLexerHTML* self); +void QsciLexerHTML_SetFoldScriptComments(QsciLexerHTML* self, bool fold); +bool QsciLexerHTML_FoldScriptComments(const QsciLexerHTML* self); +void QsciLexerHTML_SetFoldScriptHeredocs(QsciLexerHTML* self, bool fold); +bool QsciLexerHTML_FoldScriptHeredocs(const QsciLexerHTML* self); +void QsciLexerHTML_SetMakoTemplates(QsciLexerHTML* self, bool enabled); +bool QsciLexerHTML_MakoTemplates(const QsciLexerHTML* self); +void QsciLexerHTML_SetFoldCompact(QsciLexerHTML* self, bool fold); +void QsciLexerHTML_SetFoldPreprocessor(QsciLexerHTML* self, bool fold); +void QsciLexerHTML_SetCaseSensitiveTags(QsciLexerHTML* self, bool sens); +struct miqt_string QsciLexerHTML_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerHTML_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerHTML_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerHTML_TrUtf83(const char* s, const char* c, int n); +void QsciLexerHTML_Delete(QsciLexerHTML* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeridl.cpp b/qt-restricted-extras/qscintilla/gen_qscilexeridl.cpp new file mode 100644 index 00000000..96767c92 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeridl.cpp @@ -0,0 +1,119 @@ +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexeridl.h" +#include "_cgo_export.h" + +QsciLexerIDL* QsciLexerIDL_new() { + return new QsciLexerIDL(); +} + +QsciLexerIDL* QsciLexerIDL_new2(QObject* parent) { + return new QsciLexerIDL(parent); +} + +QMetaObject* QsciLexerIDL_MetaObject(const QsciLexerIDL* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerIDL_Metacast(QsciLexerIDL* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerIDL_Tr(const char* s) { + QString _ret = QsciLexerIDL::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerIDL_TrUtf8(const char* s) { + QString _ret = QsciLexerIDL::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerIDL_Language(const QsciLexerIDL* self) { + return (const char*) self->language(); +} + +QColor* QsciLexerIDL_DefaultColor(const QsciLexerIDL* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +const char* QsciLexerIDL_Keywords(const QsciLexerIDL* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerIDL_Description(const QsciLexerIDL* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerIDL_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerIDL::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerIDL_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerIDL::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerIDL_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerIDL::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerIDL_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerIDL::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerIDL_Delete(QsciLexerIDL* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeridl.go b/qt-restricted-extras/qscintilla/gen_qscilexeridl.go new file mode 100644 index 00000000..ff5e6529 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeridl.go @@ -0,0 +1,167 @@ +package qscintilla + +/* + +#include "gen_qscilexeridl.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerIDL struct { + h *C.QsciLexerIDL + *QsciLexerCPP +} + +func (this *QsciLexerIDL) cPointer() *C.QsciLexerIDL { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerIDL) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerIDL(h *C.QsciLexerIDL) *QsciLexerIDL { + if h == nil { + return nil + } + return &QsciLexerIDL{h: h, QsciLexerCPP: UnsafeNewQsciLexerCPP(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerIDL(h unsafe.Pointer) *QsciLexerIDL { + return newQsciLexerIDL((*C.QsciLexerIDL)(h)) +} + +// NewQsciLexerIDL constructs a new QsciLexerIDL object. +func NewQsciLexerIDL() *QsciLexerIDL { + ret := C.QsciLexerIDL_new() + return newQsciLexerIDL(ret) +} + +// NewQsciLexerIDL2 constructs a new QsciLexerIDL object. +func NewQsciLexerIDL2(parent *qt.QObject) *QsciLexerIDL { + ret := C.QsciLexerIDL_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerIDL(ret) +} + +func (this *QsciLexerIDL) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerIDL_MetaObject(this.h))) +} + +func (this *QsciLexerIDL) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerIDL_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerIDL_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerIDL_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerIDL_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerIDL_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerIDL) Language() string { + _ret := C.QsciLexerIDL_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerIDL) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerIDL_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerIDL) Keywords(set int) string { + _ret := C.QsciLexerIDL_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerIDL) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerIDL_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerIDL_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerIDL_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerIDL_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerIDL_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerIDL_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerIDL_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerIDL_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerIDL_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerIDL) Delete() { + C.QsciLexerIDL_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerIDL) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerIDL) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeridl.h b/qt-restricted-extras/qscintilla/gen_qscilexeridl.h new file mode 100644 index 00000000..5ef57ea7 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeridl.h @@ -0,0 +1,48 @@ +#ifndef GEN_QSCILEXERIDL_H +#define GEN_QSCILEXERIDL_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QMetaObject; +class QObject; +class QsciLexerIDL; +#else +typedef struct QColor QColor; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerIDL QsciLexerIDL; +#endif + +QsciLexerIDL* QsciLexerIDL_new(); +QsciLexerIDL* QsciLexerIDL_new2(QObject* parent); +QMetaObject* QsciLexerIDL_MetaObject(const QsciLexerIDL* self); +void* QsciLexerIDL_Metacast(QsciLexerIDL* self, const char* param1); +struct miqt_string QsciLexerIDL_Tr(const char* s); +struct miqt_string QsciLexerIDL_TrUtf8(const char* s); +const char* QsciLexerIDL_Language(const QsciLexerIDL* self); +QColor* QsciLexerIDL_DefaultColor(const QsciLexerIDL* self, int style); +const char* QsciLexerIDL_Keywords(const QsciLexerIDL* self, int set); +struct miqt_string QsciLexerIDL_Description(const QsciLexerIDL* self, int style); +struct miqt_string QsciLexerIDL_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerIDL_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerIDL_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerIDL_TrUtf83(const char* s, const char* c, int n); +void QsciLexerIDL_Delete(QsciLexerIDL* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjava.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerjava.cpp new file mode 100644 index 00000000..6e390621 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjava.cpp @@ -0,0 +1,103 @@ +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerjava.h" +#include "_cgo_export.h" + +QsciLexerJava* QsciLexerJava_new() { + return new QsciLexerJava(); +} + +QsciLexerJava* QsciLexerJava_new2(QObject* parent) { + return new QsciLexerJava(parent); +} + +QMetaObject* QsciLexerJava_MetaObject(const QsciLexerJava* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerJava_Metacast(QsciLexerJava* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerJava_Tr(const char* s) { + QString _ret = QsciLexerJava::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerJava_TrUtf8(const char* s) { + QString _ret = QsciLexerJava::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerJava_Language(const QsciLexerJava* self) { + return (const char*) self->language(); +} + +const char* QsciLexerJava_Keywords(const QsciLexerJava* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerJava_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerJava::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerJava_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerJava::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerJava_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerJava::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerJava_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerJava::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerJava_Delete(QsciLexerJava* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjava.go b/qt-restricted-extras/qscintilla/gen_qscilexerjava.go new file mode 100644 index 00000000..269a2aa5 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjava.go @@ -0,0 +1,153 @@ +package qscintilla + +/* + +#include "gen_qscilexerjava.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerJava struct { + h *C.QsciLexerJava + *QsciLexerCPP +} + +func (this *QsciLexerJava) cPointer() *C.QsciLexerJava { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerJava) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerJava(h *C.QsciLexerJava) *QsciLexerJava { + if h == nil { + return nil + } + return &QsciLexerJava{h: h, QsciLexerCPP: UnsafeNewQsciLexerCPP(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerJava(h unsafe.Pointer) *QsciLexerJava { + return newQsciLexerJava((*C.QsciLexerJava)(h)) +} + +// NewQsciLexerJava constructs a new QsciLexerJava object. +func NewQsciLexerJava() *QsciLexerJava { + ret := C.QsciLexerJava_new() + return newQsciLexerJava(ret) +} + +// NewQsciLexerJava2 constructs a new QsciLexerJava object. +func NewQsciLexerJava2(parent *qt.QObject) *QsciLexerJava { + ret := C.QsciLexerJava_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerJava(ret) +} + +func (this *QsciLexerJava) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerJava_MetaObject(this.h))) +} + +func (this *QsciLexerJava) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerJava_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerJava_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJava_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerJava_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJava_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerJava) Language() string { + _ret := C.QsciLexerJava_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerJava) Keywords(set int) string { + _ret := C.QsciLexerJava_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func QsciLexerJava_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJava_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerJava_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJava_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerJava_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJava_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerJava_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJava_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerJava) Delete() { + C.QsciLexerJava_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerJava) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerJava) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjava.h b/qt-restricted-extras/qscintilla/gen_qscilexerjava.h new file mode 100644 index 00000000..ec5ed907 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjava.h @@ -0,0 +1,44 @@ +#ifndef GEN_QSCILEXERJAVA_H +#define GEN_QSCILEXERJAVA_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QMetaObject; +class QObject; +class QsciLexerJava; +#else +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerJava QsciLexerJava; +#endif + +QsciLexerJava* QsciLexerJava_new(); +QsciLexerJava* QsciLexerJava_new2(QObject* parent); +QMetaObject* QsciLexerJava_MetaObject(const QsciLexerJava* self); +void* QsciLexerJava_Metacast(QsciLexerJava* self, const char* param1); +struct miqt_string QsciLexerJava_Tr(const char* s); +struct miqt_string QsciLexerJava_TrUtf8(const char* s); +const char* QsciLexerJava_Language(const QsciLexerJava* self); +const char* QsciLexerJava_Keywords(const QsciLexerJava* self, int set); +struct miqt_string QsciLexerJava_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerJava_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerJava_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerJava_TrUtf83(const char* s, const char* c, int n); +void QsciLexerJava_Delete(QsciLexerJava* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.cpp new file mode 100644 index 00000000..b208ff22 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.cpp @@ -0,0 +1,132 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerjavascript.h" +#include "_cgo_export.h" + +QsciLexerJavaScript* QsciLexerJavaScript_new() { + return new QsciLexerJavaScript(); +} + +QsciLexerJavaScript* QsciLexerJavaScript_new2(QObject* parent) { + return new QsciLexerJavaScript(parent); +} + +QMetaObject* QsciLexerJavaScript_MetaObject(const QsciLexerJavaScript* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerJavaScript_Metacast(QsciLexerJavaScript* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerJavaScript_Tr(const char* s) { + QString _ret = QsciLexerJavaScript::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerJavaScript_TrUtf8(const char* s) { + QString _ret = QsciLexerJavaScript::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerJavaScript_Language(const QsciLexerJavaScript* self) { + return (const char*) self->language(); +} + +QColor* QsciLexerJavaScript_DefaultColor(const QsciLexerJavaScript* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerJavaScript_DefaultEolFill(const QsciLexerJavaScript* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerJavaScript_DefaultFont(const QsciLexerJavaScript* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerJavaScript_DefaultPaper(const QsciLexerJavaScript* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerJavaScript_Keywords(const QsciLexerJavaScript* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerJavaScript_Description(const QsciLexerJavaScript* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerJavaScript_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerJavaScript::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerJavaScript_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerJavaScript::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerJavaScript_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerJavaScript::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerJavaScript_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerJavaScript::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerJavaScript_Delete(QsciLexerJavaScript* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.go b/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.go new file mode 100644 index 00000000..30df6906 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.go @@ -0,0 +1,185 @@ +package qscintilla + +/* + +#include "gen_qscilexerjavascript.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerJavaScript struct { + h *C.QsciLexerJavaScript + *QsciLexerCPP +} + +func (this *QsciLexerJavaScript) cPointer() *C.QsciLexerJavaScript { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerJavaScript) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerJavaScript(h *C.QsciLexerJavaScript) *QsciLexerJavaScript { + if h == nil { + return nil + } + return &QsciLexerJavaScript{h: h, QsciLexerCPP: UnsafeNewQsciLexerCPP(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerJavaScript(h unsafe.Pointer) *QsciLexerJavaScript { + return newQsciLexerJavaScript((*C.QsciLexerJavaScript)(h)) +} + +// NewQsciLexerJavaScript constructs a new QsciLexerJavaScript object. +func NewQsciLexerJavaScript() *QsciLexerJavaScript { + ret := C.QsciLexerJavaScript_new() + return newQsciLexerJavaScript(ret) +} + +// NewQsciLexerJavaScript2 constructs a new QsciLexerJavaScript object. +func NewQsciLexerJavaScript2(parent *qt.QObject) *QsciLexerJavaScript { + ret := C.QsciLexerJavaScript_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerJavaScript(ret) +} + +func (this *QsciLexerJavaScript) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerJavaScript_MetaObject(this.h))) +} + +func (this *QsciLexerJavaScript) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerJavaScript_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerJavaScript_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJavaScript_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerJavaScript_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJavaScript_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerJavaScript) Language() string { + _ret := C.QsciLexerJavaScript_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerJavaScript) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerJavaScript_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerJavaScript) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerJavaScript_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerJavaScript) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerJavaScript_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerJavaScript) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerJavaScript_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerJavaScript) Keywords(set int) string { + _ret := C.QsciLexerJavaScript_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerJavaScript) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerJavaScript_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerJavaScript_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJavaScript_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerJavaScript_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJavaScript_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerJavaScript_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJavaScript_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerJavaScript_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJavaScript_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerJavaScript) Delete() { + C.QsciLexerJavaScript_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerJavaScript) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerJavaScript) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.h b/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.h new file mode 100644 index 00000000..3a2d44a6 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.h @@ -0,0 +1,53 @@ +#ifndef GEN_QSCILEXERJAVASCRIPT_H +#define GEN_QSCILEXERJAVASCRIPT_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerJavaScript; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerJavaScript QsciLexerJavaScript; +#endif + +QsciLexerJavaScript* QsciLexerJavaScript_new(); +QsciLexerJavaScript* QsciLexerJavaScript_new2(QObject* parent); +QMetaObject* QsciLexerJavaScript_MetaObject(const QsciLexerJavaScript* self); +void* QsciLexerJavaScript_Metacast(QsciLexerJavaScript* self, const char* param1); +struct miqt_string QsciLexerJavaScript_Tr(const char* s); +struct miqt_string QsciLexerJavaScript_TrUtf8(const char* s); +const char* QsciLexerJavaScript_Language(const QsciLexerJavaScript* self); +QColor* QsciLexerJavaScript_DefaultColor(const QsciLexerJavaScript* self, int style); +bool QsciLexerJavaScript_DefaultEolFill(const QsciLexerJavaScript* self, int style); +QFont* QsciLexerJavaScript_DefaultFont(const QsciLexerJavaScript* self, int style); +QColor* QsciLexerJavaScript_DefaultPaper(const QsciLexerJavaScript* self, int style); +const char* QsciLexerJavaScript_Keywords(const QsciLexerJavaScript* self, int set); +struct miqt_string QsciLexerJavaScript_Description(const QsciLexerJavaScript* self, int style); +struct miqt_string QsciLexerJavaScript_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerJavaScript_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerJavaScript_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerJavaScript_TrUtf83(const char* s, const char* c, int n); +void QsciLexerJavaScript_Delete(QsciLexerJavaScript* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjson.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerjson.cpp new file mode 100644 index 00000000..d359f695 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjson.cpp @@ -0,0 +1,164 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerjson.h" +#include "_cgo_export.h" + +QsciLexerJSON* QsciLexerJSON_new() { + return new QsciLexerJSON(); +} + +QsciLexerJSON* QsciLexerJSON_new2(QObject* parent) { + return new QsciLexerJSON(parent); +} + +QMetaObject* QsciLexerJSON_MetaObject(const QsciLexerJSON* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerJSON_Metacast(QsciLexerJSON* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerJSON_Tr(const char* s) { + QString _ret = QsciLexerJSON::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerJSON_TrUtf8(const char* s) { + QString _ret = QsciLexerJSON::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerJSON_Language(const QsciLexerJSON* self) { + return (const char*) self->language(); +} + +const char* QsciLexerJSON_Lexer(const QsciLexerJSON* self) { + return (const char*) self->lexer(); +} + +QColor* QsciLexerJSON_DefaultColor(const QsciLexerJSON* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerJSON_DefaultEolFill(const QsciLexerJSON* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerJSON_DefaultFont(const QsciLexerJSON* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerJSON_DefaultPaper(const QsciLexerJSON* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerJSON_Keywords(const QsciLexerJSON* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerJSON_Description(const QsciLexerJSON* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerJSON_RefreshProperties(QsciLexerJSON* self) { + self->refreshProperties(); +} + +void QsciLexerJSON_SetHighlightComments(QsciLexerJSON* self, bool highlight) { + self->setHighlightComments(highlight); +} + +bool QsciLexerJSON_HighlightComments(const QsciLexerJSON* self) { + return self->highlightComments(); +} + +void QsciLexerJSON_SetHighlightEscapeSequences(QsciLexerJSON* self, bool highlight) { + self->setHighlightEscapeSequences(highlight); +} + +bool QsciLexerJSON_HighlightEscapeSequences(const QsciLexerJSON* self) { + return self->highlightEscapeSequences(); +} + +void QsciLexerJSON_SetFoldCompact(QsciLexerJSON* self, bool fold) { + self->setFoldCompact(fold); +} + +bool QsciLexerJSON_FoldCompact(const QsciLexerJSON* self) { + return self->foldCompact(); +} + +struct miqt_string QsciLexerJSON_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerJSON::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerJSON_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerJSON::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerJSON_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerJSON::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerJSON_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerJSON::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerJSON_Delete(QsciLexerJSON* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjson.go b/qt-restricted-extras/qscintilla/gen_qscilexerjson.go new file mode 100644 index 00000000..dde16489 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjson.go @@ -0,0 +1,237 @@ +package qscintilla + +/* + +#include "gen_qscilexerjson.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerJSON__ int + +const ( + QsciLexerJSON__Default QsciLexerJSON__ = 0 + QsciLexerJSON__Number QsciLexerJSON__ = 1 + QsciLexerJSON__String QsciLexerJSON__ = 2 + QsciLexerJSON__UnclosedString QsciLexerJSON__ = 3 + QsciLexerJSON__Property QsciLexerJSON__ = 4 + QsciLexerJSON__EscapeSequence QsciLexerJSON__ = 5 + QsciLexerJSON__CommentLine QsciLexerJSON__ = 6 + QsciLexerJSON__CommentBlock QsciLexerJSON__ = 7 + QsciLexerJSON__Operator QsciLexerJSON__ = 8 + QsciLexerJSON__IRI QsciLexerJSON__ = 9 + QsciLexerJSON__IRICompact QsciLexerJSON__ = 10 + QsciLexerJSON__Keyword QsciLexerJSON__ = 11 + QsciLexerJSON__KeywordLD QsciLexerJSON__ = 12 + QsciLexerJSON__Error QsciLexerJSON__ = 13 +) + +type QsciLexerJSON struct { + h *C.QsciLexerJSON + *QsciLexer +} + +func (this *QsciLexerJSON) cPointer() *C.QsciLexerJSON { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerJSON) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerJSON(h *C.QsciLexerJSON) *QsciLexerJSON { + if h == nil { + return nil + } + return &QsciLexerJSON{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerJSON(h unsafe.Pointer) *QsciLexerJSON { + return newQsciLexerJSON((*C.QsciLexerJSON)(h)) +} + +// NewQsciLexerJSON constructs a new QsciLexerJSON object. +func NewQsciLexerJSON() *QsciLexerJSON { + ret := C.QsciLexerJSON_new() + return newQsciLexerJSON(ret) +} + +// NewQsciLexerJSON2 constructs a new QsciLexerJSON object. +func NewQsciLexerJSON2(parent *qt.QObject) *QsciLexerJSON { + ret := C.QsciLexerJSON_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerJSON(ret) +} + +func (this *QsciLexerJSON) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerJSON_MetaObject(this.h))) +} + +func (this *QsciLexerJSON) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerJSON_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerJSON_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJSON_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerJSON_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJSON_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerJSON) Language() string { + _ret := C.QsciLexerJSON_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerJSON) Lexer() string { + _ret := C.QsciLexerJSON_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerJSON) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerJSON_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerJSON) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerJSON_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerJSON) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerJSON_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerJSON) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerJSON_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerJSON) Keywords(set int) string { + _ret := C.QsciLexerJSON_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerJSON) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerJSON_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerJSON) RefreshProperties() { + C.QsciLexerJSON_RefreshProperties(this.h) +} + +func (this *QsciLexerJSON) SetHighlightComments(highlight bool) { + C.QsciLexerJSON_SetHighlightComments(this.h, (C.bool)(highlight)) +} + +func (this *QsciLexerJSON) HighlightComments() bool { + return (bool)(C.QsciLexerJSON_HighlightComments(this.h)) +} + +func (this *QsciLexerJSON) SetHighlightEscapeSequences(highlight bool) { + C.QsciLexerJSON_SetHighlightEscapeSequences(this.h, (C.bool)(highlight)) +} + +func (this *QsciLexerJSON) HighlightEscapeSequences() bool { + return (bool)(C.QsciLexerJSON_HighlightEscapeSequences(this.h)) +} + +func (this *QsciLexerJSON) SetFoldCompact(fold bool) { + C.QsciLexerJSON_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerJSON) FoldCompact() bool { + return (bool)(C.QsciLexerJSON_FoldCompact(this.h)) +} + +func QsciLexerJSON_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJSON_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerJSON_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJSON_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerJSON_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJSON_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerJSON_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerJSON_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerJSON) Delete() { + C.QsciLexerJSON_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerJSON) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerJSON) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjson.h b/qt-restricted-extras/qscintilla/gen_qscilexerjson.h new file mode 100644 index 00000000..8b396604 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjson.h @@ -0,0 +1,61 @@ +#ifndef GEN_QSCILEXERJSON_H +#define GEN_QSCILEXERJSON_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerJSON; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerJSON QsciLexerJSON; +#endif + +QsciLexerJSON* QsciLexerJSON_new(); +QsciLexerJSON* QsciLexerJSON_new2(QObject* parent); +QMetaObject* QsciLexerJSON_MetaObject(const QsciLexerJSON* self); +void* QsciLexerJSON_Metacast(QsciLexerJSON* self, const char* param1); +struct miqt_string QsciLexerJSON_Tr(const char* s); +struct miqt_string QsciLexerJSON_TrUtf8(const char* s); +const char* QsciLexerJSON_Language(const QsciLexerJSON* self); +const char* QsciLexerJSON_Lexer(const QsciLexerJSON* self); +QColor* QsciLexerJSON_DefaultColor(const QsciLexerJSON* self, int style); +bool QsciLexerJSON_DefaultEolFill(const QsciLexerJSON* self, int style); +QFont* QsciLexerJSON_DefaultFont(const QsciLexerJSON* self, int style); +QColor* QsciLexerJSON_DefaultPaper(const QsciLexerJSON* self, int style); +const char* QsciLexerJSON_Keywords(const QsciLexerJSON* self, int set); +struct miqt_string QsciLexerJSON_Description(const QsciLexerJSON* self, int style); +void QsciLexerJSON_RefreshProperties(QsciLexerJSON* self); +void QsciLexerJSON_SetHighlightComments(QsciLexerJSON* self, bool highlight); +bool QsciLexerJSON_HighlightComments(const QsciLexerJSON* self); +void QsciLexerJSON_SetHighlightEscapeSequences(QsciLexerJSON* self, bool highlight); +bool QsciLexerJSON_HighlightEscapeSequences(const QsciLexerJSON* self); +void QsciLexerJSON_SetFoldCompact(QsciLexerJSON* self, bool fold); +bool QsciLexerJSON_FoldCompact(const QsciLexerJSON* self); +struct miqt_string QsciLexerJSON_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerJSON_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerJSON_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerJSON_TrUtf83(const char* s, const char* c, int n); +void QsciLexerJSON_Delete(QsciLexerJSON* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerlua.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerlua.cpp new file mode 100644 index 00000000..abd12202 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerlua.cpp @@ -0,0 +1,181 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerlua.h" +#include "_cgo_export.h" + +QsciLexerLua* QsciLexerLua_new() { + return new QsciLexerLua(); +} + +QsciLexerLua* QsciLexerLua_new2(QObject* parent) { + return new QsciLexerLua(parent); +} + +QMetaObject* QsciLexerLua_MetaObject(const QsciLexerLua* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerLua_Metacast(QsciLexerLua* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerLua_Tr(const char* s) { + QString _ret = QsciLexerLua::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerLua_TrUtf8(const char* s) { + QString _ret = QsciLexerLua::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerLua_Language(const QsciLexerLua* self) { + return (const char*) self->language(); +} + +const char* QsciLexerLua_Lexer(const QsciLexerLua* self) { + return (const char*) self->lexer(); +} + +struct miqt_array* 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())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QString _lv_ret = _ret[i]; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_b = _lv_ret.toUtf8(); + struct miqt_string _lv_ms; + _lv_ms.len = _lv_b.length(); + _lv_ms.data = static_cast(malloc(_lv_ms.len)); + memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len); + _arr[i] = _lv_ms; + } + struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); + _out->len = _ret.length(); + _out->data = static_cast(_arr); + return _out; +} + +const char* QsciLexerLua_BlockStart(const QsciLexerLua* self) { + return (const char*) self->blockStart(); +} + +int QsciLexerLua_BraceStyle(const QsciLexerLua* self) { + return self->braceStyle(); +} + +QColor* QsciLexerLua_DefaultColor(const QsciLexerLua* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerLua_DefaultEolFill(const QsciLexerLua* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerLua_DefaultFont(const QsciLexerLua* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerLua_DefaultPaper(const QsciLexerLua* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerLua_Keywords(const QsciLexerLua* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerLua_Description(const QsciLexerLua* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerLua_RefreshProperties(QsciLexerLua* self) { + self->refreshProperties(); +} + +bool QsciLexerLua_FoldCompact(const QsciLexerLua* self) { + return self->foldCompact(); +} + +void QsciLexerLua_SetFoldCompact(QsciLexerLua* self, bool fold) { + self->setFoldCompact(fold); +} + +struct miqt_string QsciLexerLua_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerLua::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerLua_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerLua::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerLua_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerLua::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerLua_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerLua::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerLua_BlockStart1(const QsciLexerLua* self, int* style) { + return (const char*) self->blockStart(static_cast(style)); +} + +void QsciLexerLua_Delete(QsciLexerLua* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerlua.go b/qt-restricted-extras/qscintilla/gen_qscilexerlua.go new file mode 100644 index 00000000..e7c4e79c --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerlua.go @@ -0,0 +1,255 @@ +package qscintilla + +/* + +#include "gen_qscilexerlua.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerLua__ int + +const ( + QsciLexerLua__Default QsciLexerLua__ = 0 + QsciLexerLua__Comment QsciLexerLua__ = 1 + QsciLexerLua__LineComment QsciLexerLua__ = 2 + QsciLexerLua__Number QsciLexerLua__ = 4 + QsciLexerLua__Keyword QsciLexerLua__ = 5 + QsciLexerLua__String QsciLexerLua__ = 6 + QsciLexerLua__Character QsciLexerLua__ = 7 + QsciLexerLua__LiteralString QsciLexerLua__ = 8 + QsciLexerLua__Preprocessor QsciLexerLua__ = 9 + QsciLexerLua__Operator QsciLexerLua__ = 10 + QsciLexerLua__Identifier QsciLexerLua__ = 11 + QsciLexerLua__UnclosedString QsciLexerLua__ = 12 + QsciLexerLua__BasicFunctions QsciLexerLua__ = 13 + QsciLexerLua__StringTableMathsFunctions QsciLexerLua__ = 14 + QsciLexerLua__CoroutinesIOSystemFacilities QsciLexerLua__ = 15 + QsciLexerLua__KeywordSet5 QsciLexerLua__ = 16 + QsciLexerLua__KeywordSet6 QsciLexerLua__ = 17 + QsciLexerLua__KeywordSet7 QsciLexerLua__ = 18 + QsciLexerLua__KeywordSet8 QsciLexerLua__ = 19 + QsciLexerLua__Label QsciLexerLua__ = 20 +) + +type QsciLexerLua struct { + h *C.QsciLexerLua + *QsciLexer +} + +func (this *QsciLexerLua) cPointer() *C.QsciLexerLua { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerLua) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerLua(h *C.QsciLexerLua) *QsciLexerLua { + if h == nil { + return nil + } + return &QsciLexerLua{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerLua(h unsafe.Pointer) *QsciLexerLua { + return newQsciLexerLua((*C.QsciLexerLua)(h)) +} + +// NewQsciLexerLua constructs a new QsciLexerLua object. +func NewQsciLexerLua() *QsciLexerLua { + ret := C.QsciLexerLua_new() + return newQsciLexerLua(ret) +} + +// NewQsciLexerLua2 constructs a new QsciLexerLua object. +func NewQsciLexerLua2(parent *qt.QObject) *QsciLexerLua { + ret := C.QsciLexerLua_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerLua(ret) +} + +func (this *QsciLexerLua) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerLua_MetaObject(this.h))) +} + +func (this *QsciLexerLua) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerLua_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerLua_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerLua_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerLua_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerLua_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerLua) Language() string { + _ret := C.QsciLexerLua_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerLua) Lexer() string { + _ret := C.QsciLexerLua_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerLua) AutoCompletionWordSeparators() []string { + var _ma *C.struct_miqt_array = C.QsciLexerLua_AutoCompletionWordSeparators(this.h) + _ret := make([]string, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_ms C.struct_miqt_string = _outCast[i] + _lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len))) + C.free(unsafe.Pointer(_lv_ms.data)) + _ret[i] = _lv_ret + } + C.free(unsafe.Pointer(_ma)) + return _ret +} + +func (this *QsciLexerLua) BlockStart() string { + _ret := C.QsciLexerLua_BlockStart(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerLua) BraceStyle() int { + return (int)(C.QsciLexerLua_BraceStyle(this.h)) +} + +func (this *QsciLexerLua) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerLua_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerLua) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerLua_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerLua) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerLua_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerLua) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerLua_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerLua) Keywords(set int) string { + _ret := C.QsciLexerLua_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerLua) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerLua_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerLua) RefreshProperties() { + C.QsciLexerLua_RefreshProperties(this.h) +} + +func (this *QsciLexerLua) FoldCompact() bool { + return (bool)(C.QsciLexerLua_FoldCompact(this.h)) +} + +func (this *QsciLexerLua) SetFoldCompact(fold bool) { + C.QsciLexerLua_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func QsciLexerLua_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerLua_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerLua_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerLua_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerLua_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerLua_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerLua_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerLua_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerLua) BlockStart1(style *int) string { + _ret := C.QsciLexerLua_BlockStart1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +// Delete this object from C++ memory. +func (this *QsciLexerLua) Delete() { + C.QsciLexerLua_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerLua) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerLua) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerlua.h b/qt-restricted-extras/qscintilla/gen_qscilexerlua.h new file mode 100644 index 00000000..333eae28 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerlua.h @@ -0,0 +1,61 @@ +#ifndef GEN_QSCILEXERLUA_H +#define GEN_QSCILEXERLUA_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerLua; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerLua QsciLexerLua; +#endif + +QsciLexerLua* QsciLexerLua_new(); +QsciLexerLua* QsciLexerLua_new2(QObject* parent); +QMetaObject* QsciLexerLua_MetaObject(const QsciLexerLua* self); +void* QsciLexerLua_Metacast(QsciLexerLua* self, const char* param1); +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); +const char* QsciLexerLua_BlockStart(const QsciLexerLua* self); +int QsciLexerLua_BraceStyle(const QsciLexerLua* self); +QColor* QsciLexerLua_DefaultColor(const QsciLexerLua* self, int style); +bool QsciLexerLua_DefaultEolFill(const QsciLexerLua* self, int style); +QFont* QsciLexerLua_DefaultFont(const QsciLexerLua* self, int style); +QColor* QsciLexerLua_DefaultPaper(const QsciLexerLua* self, int style); +const char* QsciLexerLua_Keywords(const QsciLexerLua* self, int set); +struct miqt_string QsciLexerLua_Description(const QsciLexerLua* self, int style); +void QsciLexerLua_RefreshProperties(QsciLexerLua* self); +bool QsciLexerLua_FoldCompact(const QsciLexerLua* self); +void QsciLexerLua_SetFoldCompact(QsciLexerLua* self, bool fold); +struct miqt_string QsciLexerLua_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerLua_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerLua_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerLua_TrUtf83(const char* s, const char* c, int n); +const char* QsciLexerLua_BlockStart1(const QsciLexerLua* self, int* style); +void QsciLexerLua_Delete(QsciLexerLua* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermakefile.cpp b/qt-restricted-extras/qscintilla/gen_qscilexermakefile.cpp new file mode 100644 index 00000000..49327daf --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexermakefile.cpp @@ -0,0 +1,136 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexermakefile.h" +#include "_cgo_export.h" + +QsciLexerMakefile* QsciLexerMakefile_new() { + return new QsciLexerMakefile(); +} + +QsciLexerMakefile* QsciLexerMakefile_new2(QObject* parent) { + return new QsciLexerMakefile(parent); +} + +QMetaObject* QsciLexerMakefile_MetaObject(const QsciLexerMakefile* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerMakefile_Metacast(QsciLexerMakefile* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerMakefile_Tr(const char* s) { + QString _ret = QsciLexerMakefile::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMakefile_TrUtf8(const char* s) { + QString _ret = QsciLexerMakefile::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerMakefile_Language(const QsciLexerMakefile* self) { + return (const char*) self->language(); +} + +const char* QsciLexerMakefile_Lexer(const QsciLexerMakefile* self) { + return (const char*) self->lexer(); +} + +const char* QsciLexerMakefile_WordCharacters(const QsciLexerMakefile* self) { + return (const char*) self->wordCharacters(); +} + +QColor* QsciLexerMakefile_DefaultColor(const QsciLexerMakefile* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerMakefile_DefaultEolFill(const QsciLexerMakefile* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerMakefile_DefaultFont(const QsciLexerMakefile* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerMakefile_DefaultPaper(const QsciLexerMakefile* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +struct miqt_string QsciLexerMakefile_Description(const QsciLexerMakefile* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMakefile_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerMakefile::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMakefile_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerMakefile::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMakefile_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerMakefile::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMakefile_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerMakefile::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerMakefile_Delete(QsciLexerMakefile* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermakefile.go b/qt-restricted-extras/qscintilla/gen_qscilexermakefile.go new file mode 100644 index 00000000..012a7b33 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexermakefile.go @@ -0,0 +1,202 @@ +package qscintilla + +/* + +#include "gen_qscilexermakefile.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerMakefile__ int + +const ( + QsciLexerMakefile__Default QsciLexerMakefile__ = 0 + QsciLexerMakefile__Comment QsciLexerMakefile__ = 1 + QsciLexerMakefile__Preprocessor QsciLexerMakefile__ = 2 + QsciLexerMakefile__Variable QsciLexerMakefile__ = 3 + QsciLexerMakefile__Operator QsciLexerMakefile__ = 4 + QsciLexerMakefile__Target QsciLexerMakefile__ = 5 + QsciLexerMakefile__Error QsciLexerMakefile__ = 9 +) + +type QsciLexerMakefile struct { + h *C.QsciLexerMakefile + *QsciLexer +} + +func (this *QsciLexerMakefile) cPointer() *C.QsciLexerMakefile { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerMakefile) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerMakefile(h *C.QsciLexerMakefile) *QsciLexerMakefile { + if h == nil { + return nil + } + return &QsciLexerMakefile{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerMakefile(h unsafe.Pointer) *QsciLexerMakefile { + return newQsciLexerMakefile((*C.QsciLexerMakefile)(h)) +} + +// NewQsciLexerMakefile constructs a new QsciLexerMakefile object. +func NewQsciLexerMakefile() *QsciLexerMakefile { + ret := C.QsciLexerMakefile_new() + return newQsciLexerMakefile(ret) +} + +// NewQsciLexerMakefile2 constructs a new QsciLexerMakefile object. +func NewQsciLexerMakefile2(parent *qt.QObject) *QsciLexerMakefile { + ret := C.QsciLexerMakefile_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerMakefile(ret) +} + +func (this *QsciLexerMakefile) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerMakefile_MetaObject(this.h))) +} + +func (this *QsciLexerMakefile) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerMakefile_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerMakefile_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMakefile_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMakefile_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMakefile_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerMakefile) Language() string { + _ret := C.QsciLexerMakefile_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerMakefile) Lexer() string { + _ret := C.QsciLexerMakefile_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerMakefile) WordCharacters() string { + _ret := C.QsciLexerMakefile_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerMakefile) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerMakefile_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerMakefile) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerMakefile_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerMakefile) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerMakefile_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerMakefile) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerMakefile_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerMakefile) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerMakefile_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMakefile_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMakefile_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMakefile_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMakefile_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMakefile_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMakefile_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMakefile_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMakefile_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerMakefile) Delete() { + C.QsciLexerMakefile_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerMakefile) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerMakefile) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermakefile.h b/qt-restricted-extras/qscintilla/gen_qscilexermakefile.h new file mode 100644 index 00000000..0609e4c9 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexermakefile.h @@ -0,0 +1,54 @@ +#ifndef GEN_QSCILEXERMAKEFILE_H +#define GEN_QSCILEXERMAKEFILE_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerMakefile; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerMakefile QsciLexerMakefile; +#endif + +QsciLexerMakefile* QsciLexerMakefile_new(); +QsciLexerMakefile* QsciLexerMakefile_new2(QObject* parent); +QMetaObject* QsciLexerMakefile_MetaObject(const QsciLexerMakefile* self); +void* QsciLexerMakefile_Metacast(QsciLexerMakefile* self, const char* param1); +struct miqt_string QsciLexerMakefile_Tr(const char* s); +struct miqt_string QsciLexerMakefile_TrUtf8(const char* s); +const char* QsciLexerMakefile_Language(const QsciLexerMakefile* self); +const char* QsciLexerMakefile_Lexer(const QsciLexerMakefile* self); +const char* QsciLexerMakefile_WordCharacters(const QsciLexerMakefile* self); +QColor* QsciLexerMakefile_DefaultColor(const QsciLexerMakefile* self, int style); +bool QsciLexerMakefile_DefaultEolFill(const QsciLexerMakefile* self, int style); +QFont* QsciLexerMakefile_DefaultFont(const QsciLexerMakefile* self, int style); +QColor* QsciLexerMakefile_DefaultPaper(const QsciLexerMakefile* self, int style); +struct miqt_string QsciLexerMakefile_Description(const QsciLexerMakefile* self, int style); +struct miqt_string QsciLexerMakefile_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerMakefile_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerMakefile_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerMakefile_TrUtf83(const char* s, const char* c, int n); +void QsciLexerMakefile_Delete(QsciLexerMakefile* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.cpp b/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.cpp new file mode 100644 index 00000000..a7b5da38 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.cpp @@ -0,0 +1,128 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexermarkdown.h" +#include "_cgo_export.h" + +QsciLexerMarkdown* QsciLexerMarkdown_new() { + return new QsciLexerMarkdown(); +} + +QsciLexerMarkdown* QsciLexerMarkdown_new2(QObject* parent) { + return new QsciLexerMarkdown(parent); +} + +QMetaObject* QsciLexerMarkdown_MetaObject(const QsciLexerMarkdown* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerMarkdown_Metacast(QsciLexerMarkdown* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerMarkdown_Tr(const char* s) { + QString _ret = QsciLexerMarkdown::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMarkdown_TrUtf8(const char* s) { + QString _ret = QsciLexerMarkdown::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerMarkdown_Language(const QsciLexerMarkdown* self) { + return (const char*) self->language(); +} + +const char* QsciLexerMarkdown_Lexer(const QsciLexerMarkdown* self) { + return (const char*) self->lexer(); +} + +QColor* QsciLexerMarkdown_DefaultColor(const QsciLexerMarkdown* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +QFont* QsciLexerMarkdown_DefaultFont(const QsciLexerMarkdown* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerMarkdown_DefaultPaper(const QsciLexerMarkdown* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +struct miqt_string QsciLexerMarkdown_Description(const QsciLexerMarkdown* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMarkdown_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerMarkdown::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMarkdown_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerMarkdown::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMarkdown_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerMarkdown::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMarkdown_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerMarkdown::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerMarkdown_Delete(QsciLexerMarkdown* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.go b/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.go new file mode 100644 index 00000000..b5c496cd --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.go @@ -0,0 +1,208 @@ +package qscintilla + +/* + +#include "gen_qscilexermarkdown.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerMarkdown__ int + +const ( + QsciLexerMarkdown__Default QsciLexerMarkdown__ = 0 + QsciLexerMarkdown__Special QsciLexerMarkdown__ = 1 + QsciLexerMarkdown__StrongEmphasisAsterisks QsciLexerMarkdown__ = 2 + QsciLexerMarkdown__StrongEmphasisUnderscores QsciLexerMarkdown__ = 3 + QsciLexerMarkdown__EmphasisAsterisks QsciLexerMarkdown__ = 4 + QsciLexerMarkdown__EmphasisUnderscores QsciLexerMarkdown__ = 5 + QsciLexerMarkdown__Header1 QsciLexerMarkdown__ = 6 + QsciLexerMarkdown__Header2 QsciLexerMarkdown__ = 7 + QsciLexerMarkdown__Header3 QsciLexerMarkdown__ = 8 + QsciLexerMarkdown__Header4 QsciLexerMarkdown__ = 9 + QsciLexerMarkdown__Header5 QsciLexerMarkdown__ = 10 + QsciLexerMarkdown__Header6 QsciLexerMarkdown__ = 11 + QsciLexerMarkdown__Prechar QsciLexerMarkdown__ = 12 + QsciLexerMarkdown__UnorderedListItem QsciLexerMarkdown__ = 13 + QsciLexerMarkdown__OrderedListItem QsciLexerMarkdown__ = 14 + QsciLexerMarkdown__BlockQuote QsciLexerMarkdown__ = 15 + QsciLexerMarkdown__StrikeOut QsciLexerMarkdown__ = 16 + QsciLexerMarkdown__HorizontalRule QsciLexerMarkdown__ = 17 + QsciLexerMarkdown__Link QsciLexerMarkdown__ = 18 + QsciLexerMarkdown__CodeBackticks QsciLexerMarkdown__ = 19 + QsciLexerMarkdown__CodeDoubleBackticks QsciLexerMarkdown__ = 20 + QsciLexerMarkdown__CodeBlock QsciLexerMarkdown__ = 21 +) + +type QsciLexerMarkdown struct { + h *C.QsciLexerMarkdown + *QsciLexer +} + +func (this *QsciLexerMarkdown) cPointer() *C.QsciLexerMarkdown { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerMarkdown) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerMarkdown(h *C.QsciLexerMarkdown) *QsciLexerMarkdown { + if h == nil { + return nil + } + return &QsciLexerMarkdown{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerMarkdown(h unsafe.Pointer) *QsciLexerMarkdown { + return newQsciLexerMarkdown((*C.QsciLexerMarkdown)(h)) +} + +// NewQsciLexerMarkdown constructs a new QsciLexerMarkdown object. +func NewQsciLexerMarkdown() *QsciLexerMarkdown { + ret := C.QsciLexerMarkdown_new() + return newQsciLexerMarkdown(ret) +} + +// NewQsciLexerMarkdown2 constructs a new QsciLexerMarkdown object. +func NewQsciLexerMarkdown2(parent *qt.QObject) *QsciLexerMarkdown { + ret := C.QsciLexerMarkdown_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerMarkdown(ret) +} + +func (this *QsciLexerMarkdown) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerMarkdown_MetaObject(this.h))) +} + +func (this *QsciLexerMarkdown) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerMarkdown_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerMarkdown_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMarkdown_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMarkdown_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMarkdown_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerMarkdown) Language() string { + _ret := C.QsciLexerMarkdown_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerMarkdown) Lexer() string { + _ret := C.QsciLexerMarkdown_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerMarkdown) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerMarkdown_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerMarkdown) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerMarkdown_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerMarkdown) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerMarkdown_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerMarkdown) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerMarkdown_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMarkdown_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMarkdown_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMarkdown_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMarkdown_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMarkdown_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMarkdown_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMarkdown_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMarkdown_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerMarkdown) Delete() { + C.QsciLexerMarkdown_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerMarkdown) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerMarkdown) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.h b/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.h new file mode 100644 index 00000000..3f2a1224 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.h @@ -0,0 +1,52 @@ +#ifndef GEN_QSCILEXERMARKDOWN_H +#define GEN_QSCILEXERMARKDOWN_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerMarkdown; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerMarkdown QsciLexerMarkdown; +#endif + +QsciLexerMarkdown* QsciLexerMarkdown_new(); +QsciLexerMarkdown* QsciLexerMarkdown_new2(QObject* parent); +QMetaObject* QsciLexerMarkdown_MetaObject(const QsciLexerMarkdown* self); +void* QsciLexerMarkdown_Metacast(QsciLexerMarkdown* self, const char* param1); +struct miqt_string QsciLexerMarkdown_Tr(const char* s); +struct miqt_string QsciLexerMarkdown_TrUtf8(const char* s); +const char* QsciLexerMarkdown_Language(const QsciLexerMarkdown* self); +const char* QsciLexerMarkdown_Lexer(const QsciLexerMarkdown* self); +QColor* QsciLexerMarkdown_DefaultColor(const QsciLexerMarkdown* self, int style); +QFont* QsciLexerMarkdown_DefaultFont(const QsciLexerMarkdown* self, int style); +QColor* QsciLexerMarkdown_DefaultPaper(const QsciLexerMarkdown* self, int style); +struct miqt_string QsciLexerMarkdown_Description(const QsciLexerMarkdown* self, int style); +struct miqt_string QsciLexerMarkdown_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerMarkdown_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerMarkdown_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerMarkdown_TrUtf83(const char* s, const char* c, int n); +void QsciLexerMarkdown_Delete(QsciLexerMarkdown* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermatlab.cpp b/qt-restricted-extras/qscintilla/gen_qscilexermatlab.cpp new file mode 100644 index 00000000..c34ee419 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexermatlab.cpp @@ -0,0 +1,128 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexermatlab.h" +#include "_cgo_export.h" + +QsciLexerMatlab* QsciLexerMatlab_new() { + return new QsciLexerMatlab(); +} + +QsciLexerMatlab* QsciLexerMatlab_new2(QObject* parent) { + return new QsciLexerMatlab(parent); +} + +QMetaObject* QsciLexerMatlab_MetaObject(const QsciLexerMatlab* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerMatlab_Metacast(QsciLexerMatlab* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerMatlab_Tr(const char* s) { + QString _ret = QsciLexerMatlab::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMatlab_TrUtf8(const char* s) { + QString _ret = QsciLexerMatlab::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerMatlab_Language(const QsciLexerMatlab* self) { + return (const char*) self->language(); +} + +const char* QsciLexerMatlab_Lexer(const QsciLexerMatlab* self) { + return (const char*) self->lexer(); +} + +QColor* QsciLexerMatlab_DefaultColor(const QsciLexerMatlab* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +QFont* QsciLexerMatlab_DefaultFont(const QsciLexerMatlab* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +const char* QsciLexerMatlab_Keywords(const QsciLexerMatlab* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerMatlab_Description(const QsciLexerMatlab* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMatlab_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerMatlab::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMatlab_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerMatlab::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMatlab_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerMatlab::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerMatlab_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerMatlab::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerMatlab_Delete(QsciLexerMatlab* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermatlab.go b/qt-restricted-extras/qscintilla/gen_qscilexermatlab.go new file mode 100644 index 00000000..f9e8edb1 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexermatlab.go @@ -0,0 +1,193 @@ +package qscintilla + +/* + +#include "gen_qscilexermatlab.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerMatlab__ int + +const ( + QsciLexerMatlab__Default QsciLexerMatlab__ = 0 + QsciLexerMatlab__Comment QsciLexerMatlab__ = 1 + QsciLexerMatlab__Command QsciLexerMatlab__ = 2 + QsciLexerMatlab__Number QsciLexerMatlab__ = 3 + QsciLexerMatlab__Keyword QsciLexerMatlab__ = 4 + QsciLexerMatlab__SingleQuotedString QsciLexerMatlab__ = 5 + QsciLexerMatlab__Operator QsciLexerMatlab__ = 6 + QsciLexerMatlab__Identifier QsciLexerMatlab__ = 7 + QsciLexerMatlab__DoubleQuotedString QsciLexerMatlab__ = 8 +) + +type QsciLexerMatlab struct { + h *C.QsciLexerMatlab + *QsciLexer +} + +func (this *QsciLexerMatlab) cPointer() *C.QsciLexerMatlab { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerMatlab) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerMatlab(h *C.QsciLexerMatlab) *QsciLexerMatlab { + if h == nil { + return nil + } + return &QsciLexerMatlab{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerMatlab(h unsafe.Pointer) *QsciLexerMatlab { + return newQsciLexerMatlab((*C.QsciLexerMatlab)(h)) +} + +// NewQsciLexerMatlab constructs a new QsciLexerMatlab object. +func NewQsciLexerMatlab() *QsciLexerMatlab { + ret := C.QsciLexerMatlab_new() + return newQsciLexerMatlab(ret) +} + +// NewQsciLexerMatlab2 constructs a new QsciLexerMatlab object. +func NewQsciLexerMatlab2(parent *qt.QObject) *QsciLexerMatlab { + ret := C.QsciLexerMatlab_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerMatlab(ret) +} + +func (this *QsciLexerMatlab) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerMatlab_MetaObject(this.h))) +} + +func (this *QsciLexerMatlab) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerMatlab_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerMatlab_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMatlab_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMatlab_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMatlab_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerMatlab) Language() string { + _ret := C.QsciLexerMatlab_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerMatlab) Lexer() string { + _ret := C.QsciLexerMatlab_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerMatlab) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerMatlab_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerMatlab) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerMatlab_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerMatlab) Keywords(set int) string { + _ret := C.QsciLexerMatlab_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerMatlab) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerMatlab_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMatlab_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMatlab_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMatlab_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMatlab_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMatlab_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMatlab_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerMatlab_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerMatlab_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerMatlab) Delete() { + C.QsciLexerMatlab_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerMatlab) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerMatlab) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermatlab.h b/qt-restricted-extras/qscintilla/gen_qscilexermatlab.h new file mode 100644 index 00000000..27e2c183 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexermatlab.h @@ -0,0 +1,52 @@ +#ifndef GEN_QSCILEXERMATLAB_H +#define GEN_QSCILEXERMATLAB_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerMatlab; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerMatlab QsciLexerMatlab; +#endif + +QsciLexerMatlab* QsciLexerMatlab_new(); +QsciLexerMatlab* QsciLexerMatlab_new2(QObject* parent); +QMetaObject* QsciLexerMatlab_MetaObject(const QsciLexerMatlab* self); +void* QsciLexerMatlab_Metacast(QsciLexerMatlab* self, const char* param1); +struct miqt_string QsciLexerMatlab_Tr(const char* s); +struct miqt_string QsciLexerMatlab_TrUtf8(const char* s); +const char* QsciLexerMatlab_Language(const QsciLexerMatlab* self); +const char* QsciLexerMatlab_Lexer(const QsciLexerMatlab* self); +QColor* QsciLexerMatlab_DefaultColor(const QsciLexerMatlab* self, int style); +QFont* QsciLexerMatlab_DefaultFont(const QsciLexerMatlab* self, int style); +const char* QsciLexerMatlab_Keywords(const QsciLexerMatlab* self, int set); +struct miqt_string QsciLexerMatlab_Description(const QsciLexerMatlab* self, int style); +struct miqt_string QsciLexerMatlab_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerMatlab_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerMatlab_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerMatlab_TrUtf83(const char* s, const char* c, int n); +void QsciLexerMatlab_Delete(QsciLexerMatlab* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeroctave.cpp b/qt-restricted-extras/qscintilla/gen_qscilexeroctave.cpp new file mode 100644 index 00000000..15e60b8a --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeroctave.cpp @@ -0,0 +1,107 @@ +#include +#include +#include +#include +#include +#include +#include "gen_qscilexeroctave.h" +#include "_cgo_export.h" + +QsciLexerOctave* QsciLexerOctave_new() { + return new QsciLexerOctave(); +} + +QsciLexerOctave* QsciLexerOctave_new2(QObject* parent) { + return new QsciLexerOctave(parent); +} + +QMetaObject* QsciLexerOctave_MetaObject(const QsciLexerOctave* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerOctave_Metacast(QsciLexerOctave* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerOctave_Tr(const char* s) { + QString _ret = QsciLexerOctave::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerOctave_TrUtf8(const char* s) { + QString _ret = QsciLexerOctave::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerOctave_Language(const QsciLexerOctave* self) { + return (const char*) self->language(); +} + +const char* QsciLexerOctave_Lexer(const QsciLexerOctave* self) { + return (const char*) self->lexer(); +} + +const char* QsciLexerOctave_Keywords(const QsciLexerOctave* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerOctave_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerOctave::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerOctave_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerOctave::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerOctave_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerOctave::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerOctave_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerOctave::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerOctave_Delete(QsciLexerOctave* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeroctave.go b/qt-restricted-extras/qscintilla/gen_qscilexeroctave.go new file mode 100644 index 00000000..4eaa7b38 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeroctave.go @@ -0,0 +1,158 @@ +package qscintilla + +/* + +#include "gen_qscilexeroctave.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerOctave struct { + h *C.QsciLexerOctave + *QsciLexerMatlab +} + +func (this *QsciLexerOctave) cPointer() *C.QsciLexerOctave { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerOctave) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerOctave(h *C.QsciLexerOctave) *QsciLexerOctave { + if h == nil { + return nil + } + return &QsciLexerOctave{h: h, QsciLexerMatlab: UnsafeNewQsciLexerMatlab(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerOctave(h unsafe.Pointer) *QsciLexerOctave { + return newQsciLexerOctave((*C.QsciLexerOctave)(h)) +} + +// NewQsciLexerOctave constructs a new QsciLexerOctave object. +func NewQsciLexerOctave() *QsciLexerOctave { + ret := C.QsciLexerOctave_new() + return newQsciLexerOctave(ret) +} + +// NewQsciLexerOctave2 constructs a new QsciLexerOctave object. +func NewQsciLexerOctave2(parent *qt.QObject) *QsciLexerOctave { + ret := C.QsciLexerOctave_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerOctave(ret) +} + +func (this *QsciLexerOctave) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerOctave_MetaObject(this.h))) +} + +func (this *QsciLexerOctave) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerOctave_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerOctave_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerOctave_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerOctave_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerOctave_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerOctave) Language() string { + _ret := C.QsciLexerOctave_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerOctave) Lexer() string { + _ret := C.QsciLexerOctave_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerOctave) Keywords(set int) string { + _ret := C.QsciLexerOctave_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func QsciLexerOctave_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerOctave_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerOctave_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerOctave_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerOctave_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerOctave_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerOctave_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerOctave_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerOctave) Delete() { + C.QsciLexerOctave_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerOctave) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerOctave) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeroctave.h b/qt-restricted-extras/qscintilla/gen_qscilexeroctave.h new file mode 100644 index 00000000..6468b523 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeroctave.h @@ -0,0 +1,45 @@ +#ifndef GEN_QSCILEXEROCTAVE_H +#define GEN_QSCILEXEROCTAVE_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QMetaObject; +class QObject; +class QsciLexerOctave; +#else +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerOctave QsciLexerOctave; +#endif + +QsciLexerOctave* QsciLexerOctave_new(); +QsciLexerOctave* QsciLexerOctave_new2(QObject* parent); +QMetaObject* QsciLexerOctave_MetaObject(const QsciLexerOctave* self); +void* QsciLexerOctave_Metacast(QsciLexerOctave* self, const char* param1); +struct miqt_string QsciLexerOctave_Tr(const char* s); +struct miqt_string QsciLexerOctave_TrUtf8(const char* s); +const char* QsciLexerOctave_Language(const QsciLexerOctave* self); +const char* QsciLexerOctave_Lexer(const QsciLexerOctave* self); +const char* QsciLexerOctave_Keywords(const QsciLexerOctave* self, int set); +struct miqt_string QsciLexerOctave_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerOctave_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerOctave_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerOctave_TrUtf83(const char* s, const char* c, int n); +void QsciLexerOctave_Delete(QsciLexerOctave* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpascal.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.cpp new file mode 100644 index 00000000..809584c8 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.cpp @@ -0,0 +1,221 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerpascal.h" +#include "_cgo_export.h" + +QsciLexerPascal* QsciLexerPascal_new() { + return new QsciLexerPascal(); +} + +QsciLexerPascal* QsciLexerPascal_new2(QObject* parent) { + return new QsciLexerPascal(parent); +} + +QMetaObject* QsciLexerPascal_MetaObject(const QsciLexerPascal* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerPascal_Metacast(QsciLexerPascal* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerPascal_Tr(const char* s) { + QString _ret = QsciLexerPascal::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPascal_TrUtf8(const char* s) { + QString _ret = QsciLexerPascal::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerPascal_Language(const QsciLexerPascal* self) { + return (const char*) self->language(); +} + +const char* QsciLexerPascal_Lexer(const QsciLexerPascal* self) { + return (const char*) self->lexer(); +} + +struct miqt_array* 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())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QString _lv_ret = _ret[i]; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_b = _lv_ret.toUtf8(); + struct miqt_string _lv_ms; + _lv_ms.len = _lv_b.length(); + _lv_ms.data = static_cast(malloc(_lv_ms.len)); + memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len); + _arr[i] = _lv_ms; + } + struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); + _out->len = _ret.length(); + _out->data = static_cast(_arr); + return _out; +} + +const char* QsciLexerPascal_BlockEnd(const QsciLexerPascal* self) { + return (const char*) self->blockEnd(); +} + +const char* QsciLexerPascal_BlockStart(const QsciLexerPascal* self) { + return (const char*) self->blockStart(); +} + +const char* QsciLexerPascal_BlockStartKeyword(const QsciLexerPascal* self) { + return (const char*) self->blockStartKeyword(); +} + +int QsciLexerPascal_BraceStyle(const QsciLexerPascal* self) { + return self->braceStyle(); +} + +QColor* QsciLexerPascal_DefaultColor(const QsciLexerPascal* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerPascal_DefaultEolFill(const QsciLexerPascal* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerPascal_DefaultFont(const QsciLexerPascal* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerPascal_DefaultPaper(const QsciLexerPascal* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerPascal_Keywords(const QsciLexerPascal* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerPascal_Description(const QsciLexerPascal* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerPascal_RefreshProperties(QsciLexerPascal* self) { + self->refreshProperties(); +} + +bool QsciLexerPascal_FoldComments(const QsciLexerPascal* self) { + return self->foldComments(); +} + +bool QsciLexerPascal_FoldCompact(const QsciLexerPascal* self) { + return self->foldCompact(); +} + +bool QsciLexerPascal_FoldPreprocessor(const QsciLexerPascal* self) { + return self->foldPreprocessor(); +} + +void QsciLexerPascal_SetSmartHighlighting(QsciLexerPascal* self, bool enabled) { + self->setSmartHighlighting(enabled); +} + +bool QsciLexerPascal_SmartHighlighting(const QsciLexerPascal* self) { + return self->smartHighlighting(); +} + +void QsciLexerPascal_SetFoldComments(QsciLexerPascal* self, bool fold) { + self->setFoldComments(fold); +} + +void QsciLexerPascal_SetFoldCompact(QsciLexerPascal* self, bool fold) { + self->setFoldCompact(fold); +} + +void QsciLexerPascal_SetFoldPreprocessor(QsciLexerPascal* self, bool fold) { + self->setFoldPreprocessor(fold); +} + +struct miqt_string QsciLexerPascal_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerPascal::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPascal_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerPascal::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPascal_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerPascal::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPascal_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerPascal::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerPascal_BlockEnd1(const QsciLexerPascal* self, int* style) { + return (const char*) self->blockEnd(static_cast(style)); +} + +const char* QsciLexerPascal_BlockStart1(const QsciLexerPascal* self, int* style) { + return (const char*) self->blockStart(static_cast(style)); +} + +const char* QsciLexerPascal_BlockStartKeyword1(const QsciLexerPascal* self, int* style) { + return (const char*) self->blockStartKeyword(static_cast(style)); +} + +void QsciLexerPascal_Delete(QsciLexerPascal* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpascal.go b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.go new file mode 100644 index 00000000..220464e8 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.go @@ -0,0 +1,294 @@ +package qscintilla + +/* + +#include "gen_qscilexerpascal.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerPascal__ int + +const ( + QsciLexerPascal__Default QsciLexerPascal__ = 0 + QsciLexerPascal__Identifier QsciLexerPascal__ = 1 + QsciLexerPascal__Comment QsciLexerPascal__ = 2 + QsciLexerPascal__CommentParenthesis QsciLexerPascal__ = 3 + QsciLexerPascal__CommentLine QsciLexerPascal__ = 4 + QsciLexerPascal__PreProcessor QsciLexerPascal__ = 5 + QsciLexerPascal__PreProcessorParenthesis QsciLexerPascal__ = 6 + QsciLexerPascal__Number QsciLexerPascal__ = 7 + QsciLexerPascal__HexNumber QsciLexerPascal__ = 8 + QsciLexerPascal__Keyword QsciLexerPascal__ = 9 + QsciLexerPascal__SingleQuotedString QsciLexerPascal__ = 10 + QsciLexerPascal__UnclosedString QsciLexerPascal__ = 11 + QsciLexerPascal__Character QsciLexerPascal__ = 12 + QsciLexerPascal__Operator QsciLexerPascal__ = 13 + QsciLexerPascal__Asm QsciLexerPascal__ = 14 +) + +type QsciLexerPascal struct { + h *C.QsciLexerPascal + *QsciLexer +} + +func (this *QsciLexerPascal) cPointer() *C.QsciLexerPascal { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerPascal) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerPascal(h *C.QsciLexerPascal) *QsciLexerPascal { + if h == nil { + return nil + } + return &QsciLexerPascal{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerPascal(h unsafe.Pointer) *QsciLexerPascal { + return newQsciLexerPascal((*C.QsciLexerPascal)(h)) +} + +// NewQsciLexerPascal constructs a new QsciLexerPascal object. +func NewQsciLexerPascal() *QsciLexerPascal { + ret := C.QsciLexerPascal_new() + return newQsciLexerPascal(ret) +} + +// NewQsciLexerPascal2 constructs a new QsciLexerPascal object. +func NewQsciLexerPascal2(parent *qt.QObject) *QsciLexerPascal { + ret := C.QsciLexerPascal_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerPascal(ret) +} + +func (this *QsciLexerPascal) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerPascal_MetaObject(this.h))) +} + +func (this *QsciLexerPascal) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerPascal_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerPascal_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPascal_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPascal_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPascal_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPascal) Language() string { + _ret := C.QsciLexerPascal_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPascal) Lexer() string { + _ret := C.QsciLexerPascal_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPascal) AutoCompletionWordSeparators() []string { + var _ma *C.struct_miqt_array = C.QsciLexerPascal_AutoCompletionWordSeparators(this.h) + _ret := make([]string, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_ms C.struct_miqt_string = _outCast[i] + _lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len))) + C.free(unsafe.Pointer(_lv_ms.data)) + _ret[i] = _lv_ret + } + C.free(unsafe.Pointer(_ma)) + return _ret +} + +func (this *QsciLexerPascal) BlockEnd() string { + _ret := C.QsciLexerPascal_BlockEnd(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPascal) BlockStart() string { + _ret := C.QsciLexerPascal_BlockStart(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPascal) BlockStartKeyword() string { + _ret := C.QsciLexerPascal_BlockStartKeyword(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPascal) BraceStyle() int { + return (int)(C.QsciLexerPascal_BraceStyle(this.h)) +} + +func (this *QsciLexerPascal) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerPascal_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPascal) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerPascal_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerPascal) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerPascal_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPascal) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerPascal_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPascal) Keywords(set int) string { + _ret := C.QsciLexerPascal_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerPascal) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerPascal_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPascal) RefreshProperties() { + C.QsciLexerPascal_RefreshProperties(this.h) +} + +func (this *QsciLexerPascal) FoldComments() bool { + return (bool)(C.QsciLexerPascal_FoldComments(this.h)) +} + +func (this *QsciLexerPascal) FoldCompact() bool { + return (bool)(C.QsciLexerPascal_FoldCompact(this.h)) +} + +func (this *QsciLexerPascal) FoldPreprocessor() bool { + return (bool)(C.QsciLexerPascal_FoldPreprocessor(this.h)) +} + +func (this *QsciLexerPascal) SetSmartHighlighting(enabled bool) { + C.QsciLexerPascal_SetSmartHighlighting(this.h, (C.bool)(enabled)) +} + +func (this *QsciLexerPascal) SmartHighlighting() bool { + return (bool)(C.QsciLexerPascal_SmartHighlighting(this.h)) +} + +func (this *QsciLexerPascal) SetFoldComments(fold bool) { + C.QsciLexerPascal_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerPascal) SetFoldCompact(fold bool) { + C.QsciLexerPascal_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerPascal) SetFoldPreprocessor(fold bool) { + C.QsciLexerPascal_SetFoldPreprocessor(this.h, (C.bool)(fold)) +} + +func QsciLexerPascal_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPascal_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPascal_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPascal_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPascal_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPascal_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPascal_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPascal_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPascal) BlockEnd1(style *int) string { + _ret := C.QsciLexerPascal_BlockEnd1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexerPascal) BlockStart1(style *int) string { + _ret := C.QsciLexerPascal_BlockStart1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexerPascal) BlockStartKeyword1(style *int) string { + _ret := C.QsciLexerPascal_BlockStartKeyword1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +// Delete this object from C++ memory. +func (this *QsciLexerPascal) Delete() { + C.QsciLexerPascal_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerPascal) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerPascal) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpascal.h b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.h new file mode 100644 index 00000000..73664757 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.h @@ -0,0 +1,71 @@ +#ifndef GEN_QSCILEXERPASCAL_H +#define GEN_QSCILEXERPASCAL_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerPascal; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerPascal QsciLexerPascal; +#endif + +QsciLexerPascal* QsciLexerPascal_new(); +QsciLexerPascal* QsciLexerPascal_new2(QObject* parent); +QMetaObject* QsciLexerPascal_MetaObject(const QsciLexerPascal* self); +void* QsciLexerPascal_Metacast(QsciLexerPascal* self, const char* param1); +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); +const char* QsciLexerPascal_BlockEnd(const QsciLexerPascal* self); +const char* QsciLexerPascal_BlockStart(const QsciLexerPascal* self); +const char* QsciLexerPascal_BlockStartKeyword(const QsciLexerPascal* self); +int QsciLexerPascal_BraceStyle(const QsciLexerPascal* self); +QColor* QsciLexerPascal_DefaultColor(const QsciLexerPascal* self, int style); +bool QsciLexerPascal_DefaultEolFill(const QsciLexerPascal* self, int style); +QFont* QsciLexerPascal_DefaultFont(const QsciLexerPascal* self, int style); +QColor* QsciLexerPascal_DefaultPaper(const QsciLexerPascal* self, int style); +const char* QsciLexerPascal_Keywords(const QsciLexerPascal* self, int set); +struct miqt_string QsciLexerPascal_Description(const QsciLexerPascal* self, int style); +void QsciLexerPascal_RefreshProperties(QsciLexerPascal* self); +bool QsciLexerPascal_FoldComments(const QsciLexerPascal* self); +bool QsciLexerPascal_FoldCompact(const QsciLexerPascal* self); +bool QsciLexerPascal_FoldPreprocessor(const QsciLexerPascal* self); +void QsciLexerPascal_SetSmartHighlighting(QsciLexerPascal* self, bool enabled); +bool QsciLexerPascal_SmartHighlighting(const QsciLexerPascal* self); +void QsciLexerPascal_SetFoldComments(QsciLexerPascal* self, bool fold); +void QsciLexerPascal_SetFoldCompact(QsciLexerPascal* self, bool fold); +void QsciLexerPascal_SetFoldPreprocessor(QsciLexerPascal* self, bool fold); +struct miqt_string QsciLexerPascal_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerPascal_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerPascal_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerPascal_TrUtf83(const char* s, const char* c, int n); +const char* QsciLexerPascal_BlockEnd1(const QsciLexerPascal* self, int* style); +const char* QsciLexerPascal_BlockStart1(const QsciLexerPascal* self, int* style); +const char* QsciLexerPascal_BlockStartKeyword1(const QsciLexerPascal* self, int* style); +void QsciLexerPascal_Delete(QsciLexerPascal* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerperl.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerperl.cpp new file mode 100644 index 00000000..b245c980 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerperl.cpp @@ -0,0 +1,225 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerperl.h" +#include "_cgo_export.h" + +QsciLexerPerl* QsciLexerPerl_new() { + return new QsciLexerPerl(); +} + +QsciLexerPerl* QsciLexerPerl_new2(QObject* parent) { + return new QsciLexerPerl(parent); +} + +QMetaObject* QsciLexerPerl_MetaObject(const QsciLexerPerl* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerPerl_Metacast(QsciLexerPerl* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerPerl_Tr(const char* s) { + QString _ret = QsciLexerPerl::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPerl_TrUtf8(const char* s) { + QString _ret = QsciLexerPerl::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerPerl_Language(const QsciLexerPerl* self) { + return (const char*) self->language(); +} + +const char* QsciLexerPerl_Lexer(const QsciLexerPerl* self) { + return (const char*) self->lexer(); +} + +struct miqt_array* 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())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QString _lv_ret = _ret[i]; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_b = _lv_ret.toUtf8(); + struct miqt_string _lv_ms; + _lv_ms.len = _lv_b.length(); + _lv_ms.data = static_cast(malloc(_lv_ms.len)); + memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len); + _arr[i] = _lv_ms; + } + struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); + _out->len = _ret.length(); + _out->data = static_cast(_arr); + return _out; +} + +const char* QsciLexerPerl_BlockEnd(const QsciLexerPerl* self) { + return (const char*) self->blockEnd(); +} + +const char* QsciLexerPerl_BlockStart(const QsciLexerPerl* self) { + return (const char*) self->blockStart(); +} + +int QsciLexerPerl_BraceStyle(const QsciLexerPerl* self) { + return self->braceStyle(); +} + +const char* QsciLexerPerl_WordCharacters(const QsciLexerPerl* self) { + return (const char*) self->wordCharacters(); +} + +QColor* QsciLexerPerl_DefaultColor(const QsciLexerPerl* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerPerl_DefaultEolFill(const QsciLexerPerl* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerPerl_DefaultFont(const QsciLexerPerl* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerPerl_DefaultPaper(const QsciLexerPerl* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerPerl_Keywords(const QsciLexerPerl* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerPerl_Description(const QsciLexerPerl* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerPerl_RefreshProperties(QsciLexerPerl* self) { + self->refreshProperties(); +} + +void QsciLexerPerl_SetFoldAtElse(QsciLexerPerl* self, bool fold) { + self->setFoldAtElse(fold); +} + +bool QsciLexerPerl_FoldAtElse(const QsciLexerPerl* self) { + return self->foldAtElse(); +} + +bool QsciLexerPerl_FoldComments(const QsciLexerPerl* self) { + return self->foldComments(); +} + +bool QsciLexerPerl_FoldCompact(const QsciLexerPerl* self) { + return self->foldCompact(); +} + +void QsciLexerPerl_SetFoldPackages(QsciLexerPerl* self, bool fold) { + self->setFoldPackages(fold); +} + +bool QsciLexerPerl_FoldPackages(const QsciLexerPerl* self) { + return self->foldPackages(); +} + +void QsciLexerPerl_SetFoldPODBlocks(QsciLexerPerl* self, bool fold) { + self->setFoldPODBlocks(fold); +} + +bool QsciLexerPerl_FoldPODBlocks(const QsciLexerPerl* self) { + return self->foldPODBlocks(); +} + +void QsciLexerPerl_SetFoldComments(QsciLexerPerl* self, bool fold) { + self->setFoldComments(fold); +} + +void QsciLexerPerl_SetFoldCompact(QsciLexerPerl* self, bool fold) { + self->setFoldCompact(fold); +} + +struct miqt_string QsciLexerPerl_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerPerl::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPerl_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerPerl::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPerl_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerPerl::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPerl_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerPerl::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerPerl_BlockEnd1(const QsciLexerPerl* self, int* style) { + return (const char*) self->blockEnd(static_cast(style)); +} + +const char* QsciLexerPerl_BlockStart1(const QsciLexerPerl* self, int* style) { + return (const char*) self->blockStart(static_cast(style)); +} + +void QsciLexerPerl_Delete(QsciLexerPerl* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerperl.go b/qt-restricted-extras/qscintilla/gen_qscilexerperl.go new file mode 100644 index 00000000..e83a0fd2 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerperl.go @@ -0,0 +1,323 @@ +package qscintilla + +/* + +#include "gen_qscilexerperl.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerPerl__ int + +const ( + QsciLexerPerl__Default QsciLexerPerl__ = 0 + QsciLexerPerl__Error QsciLexerPerl__ = 1 + QsciLexerPerl__Comment QsciLexerPerl__ = 2 + QsciLexerPerl__POD QsciLexerPerl__ = 3 + QsciLexerPerl__Number QsciLexerPerl__ = 4 + QsciLexerPerl__Keyword QsciLexerPerl__ = 5 + QsciLexerPerl__DoubleQuotedString QsciLexerPerl__ = 6 + QsciLexerPerl__SingleQuotedString QsciLexerPerl__ = 7 + QsciLexerPerl__Operator QsciLexerPerl__ = 10 + QsciLexerPerl__Identifier QsciLexerPerl__ = 11 + QsciLexerPerl__Scalar QsciLexerPerl__ = 12 + QsciLexerPerl__Array QsciLexerPerl__ = 13 + QsciLexerPerl__Hash QsciLexerPerl__ = 14 + QsciLexerPerl__SymbolTable QsciLexerPerl__ = 15 + QsciLexerPerl__Regex QsciLexerPerl__ = 17 + QsciLexerPerl__Substitution QsciLexerPerl__ = 18 + QsciLexerPerl__Backticks QsciLexerPerl__ = 20 + QsciLexerPerl__DataSection QsciLexerPerl__ = 21 + QsciLexerPerl__HereDocumentDelimiter QsciLexerPerl__ = 22 + QsciLexerPerl__SingleQuotedHereDocument QsciLexerPerl__ = 23 + QsciLexerPerl__DoubleQuotedHereDocument QsciLexerPerl__ = 24 + QsciLexerPerl__BacktickHereDocument QsciLexerPerl__ = 25 + QsciLexerPerl__QuotedStringQ QsciLexerPerl__ = 26 + QsciLexerPerl__QuotedStringQQ QsciLexerPerl__ = 27 + QsciLexerPerl__QuotedStringQX QsciLexerPerl__ = 28 + QsciLexerPerl__QuotedStringQR QsciLexerPerl__ = 29 + QsciLexerPerl__QuotedStringQW QsciLexerPerl__ = 30 + QsciLexerPerl__PODVerbatim QsciLexerPerl__ = 31 + QsciLexerPerl__SubroutinePrototype QsciLexerPerl__ = 40 + QsciLexerPerl__FormatIdentifier QsciLexerPerl__ = 41 + QsciLexerPerl__FormatBody QsciLexerPerl__ = 42 + QsciLexerPerl__DoubleQuotedStringVar QsciLexerPerl__ = 43 + QsciLexerPerl__Translation QsciLexerPerl__ = 44 + QsciLexerPerl__RegexVar QsciLexerPerl__ = 54 + QsciLexerPerl__SubstitutionVar QsciLexerPerl__ = 55 + QsciLexerPerl__BackticksVar QsciLexerPerl__ = 57 + QsciLexerPerl__DoubleQuotedHereDocumentVar QsciLexerPerl__ = 61 + QsciLexerPerl__BacktickHereDocumentVar QsciLexerPerl__ = 62 + QsciLexerPerl__QuotedStringQQVar QsciLexerPerl__ = 64 + QsciLexerPerl__QuotedStringQXVar QsciLexerPerl__ = 65 + QsciLexerPerl__QuotedStringQRVar QsciLexerPerl__ = 66 +) + +type QsciLexerPerl struct { + h *C.QsciLexerPerl + *QsciLexer +} + +func (this *QsciLexerPerl) cPointer() *C.QsciLexerPerl { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerPerl) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerPerl(h *C.QsciLexerPerl) *QsciLexerPerl { + if h == nil { + return nil + } + return &QsciLexerPerl{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerPerl(h unsafe.Pointer) *QsciLexerPerl { + return newQsciLexerPerl((*C.QsciLexerPerl)(h)) +} + +// NewQsciLexerPerl constructs a new QsciLexerPerl object. +func NewQsciLexerPerl() *QsciLexerPerl { + ret := C.QsciLexerPerl_new() + return newQsciLexerPerl(ret) +} + +// NewQsciLexerPerl2 constructs a new QsciLexerPerl object. +func NewQsciLexerPerl2(parent *qt.QObject) *QsciLexerPerl { + ret := C.QsciLexerPerl_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerPerl(ret) +} + +func (this *QsciLexerPerl) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerPerl_MetaObject(this.h))) +} + +func (this *QsciLexerPerl) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerPerl_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerPerl_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPerl_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPerl_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPerl_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPerl) Language() string { + _ret := C.QsciLexerPerl_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPerl) Lexer() string { + _ret := C.QsciLexerPerl_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPerl) AutoCompletionWordSeparators() []string { + var _ma *C.struct_miqt_array = C.QsciLexerPerl_AutoCompletionWordSeparators(this.h) + _ret := make([]string, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_ms C.struct_miqt_string = _outCast[i] + _lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len))) + C.free(unsafe.Pointer(_lv_ms.data)) + _ret[i] = _lv_ret + } + C.free(unsafe.Pointer(_ma)) + return _ret +} + +func (this *QsciLexerPerl) BlockEnd() string { + _ret := C.QsciLexerPerl_BlockEnd(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPerl) BlockStart() string { + _ret := C.QsciLexerPerl_BlockStart(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPerl) BraceStyle() int { + return (int)(C.QsciLexerPerl_BraceStyle(this.h)) +} + +func (this *QsciLexerPerl) WordCharacters() string { + _ret := C.QsciLexerPerl_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPerl) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerPerl_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPerl) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerPerl_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerPerl) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerPerl_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPerl) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerPerl_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPerl) Keywords(set int) string { + _ret := C.QsciLexerPerl_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerPerl) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerPerl_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPerl) RefreshProperties() { + C.QsciLexerPerl_RefreshProperties(this.h) +} + +func (this *QsciLexerPerl) SetFoldAtElse(fold bool) { + C.QsciLexerPerl_SetFoldAtElse(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerPerl) FoldAtElse() bool { + return (bool)(C.QsciLexerPerl_FoldAtElse(this.h)) +} + +func (this *QsciLexerPerl) FoldComments() bool { + return (bool)(C.QsciLexerPerl_FoldComments(this.h)) +} + +func (this *QsciLexerPerl) FoldCompact() bool { + return (bool)(C.QsciLexerPerl_FoldCompact(this.h)) +} + +func (this *QsciLexerPerl) SetFoldPackages(fold bool) { + C.QsciLexerPerl_SetFoldPackages(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerPerl) FoldPackages() bool { + return (bool)(C.QsciLexerPerl_FoldPackages(this.h)) +} + +func (this *QsciLexerPerl) SetFoldPODBlocks(fold bool) { + C.QsciLexerPerl_SetFoldPODBlocks(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerPerl) FoldPODBlocks() bool { + return (bool)(C.QsciLexerPerl_FoldPODBlocks(this.h)) +} + +func (this *QsciLexerPerl) SetFoldComments(fold bool) { + C.QsciLexerPerl_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerPerl) SetFoldCompact(fold bool) { + C.QsciLexerPerl_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func QsciLexerPerl_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPerl_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPerl_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPerl_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPerl_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPerl_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPerl_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPerl_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPerl) BlockEnd1(style *int) string { + _ret := C.QsciLexerPerl_BlockEnd1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexerPerl) BlockStart1(style *int) string { + _ret := C.QsciLexerPerl_BlockStart1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +// Delete this object from C++ memory. +func (this *QsciLexerPerl) Delete() { + C.QsciLexerPerl_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerPerl) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerPerl) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerperl.h b/qt-restricted-extras/qscintilla/gen_qscilexerperl.h new file mode 100644 index 00000000..58205cb0 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerperl.h @@ -0,0 +1,72 @@ +#ifndef GEN_QSCILEXERPERL_H +#define GEN_QSCILEXERPERL_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerPerl; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerPerl QsciLexerPerl; +#endif + +QsciLexerPerl* QsciLexerPerl_new(); +QsciLexerPerl* QsciLexerPerl_new2(QObject* parent); +QMetaObject* QsciLexerPerl_MetaObject(const QsciLexerPerl* self); +void* QsciLexerPerl_Metacast(QsciLexerPerl* self, const char* param1); +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); +const char* QsciLexerPerl_BlockEnd(const QsciLexerPerl* self); +const char* QsciLexerPerl_BlockStart(const QsciLexerPerl* self); +int QsciLexerPerl_BraceStyle(const QsciLexerPerl* self); +const char* QsciLexerPerl_WordCharacters(const QsciLexerPerl* self); +QColor* QsciLexerPerl_DefaultColor(const QsciLexerPerl* self, int style); +bool QsciLexerPerl_DefaultEolFill(const QsciLexerPerl* self, int style); +QFont* QsciLexerPerl_DefaultFont(const QsciLexerPerl* self, int style); +QColor* QsciLexerPerl_DefaultPaper(const QsciLexerPerl* self, int style); +const char* QsciLexerPerl_Keywords(const QsciLexerPerl* self, int set); +struct miqt_string QsciLexerPerl_Description(const QsciLexerPerl* self, int style); +void QsciLexerPerl_RefreshProperties(QsciLexerPerl* self); +void QsciLexerPerl_SetFoldAtElse(QsciLexerPerl* self, bool fold); +bool QsciLexerPerl_FoldAtElse(const QsciLexerPerl* self); +bool QsciLexerPerl_FoldComments(const QsciLexerPerl* self); +bool QsciLexerPerl_FoldCompact(const QsciLexerPerl* self); +void QsciLexerPerl_SetFoldPackages(QsciLexerPerl* self, bool fold); +bool QsciLexerPerl_FoldPackages(const QsciLexerPerl* self); +void QsciLexerPerl_SetFoldPODBlocks(QsciLexerPerl* self, bool fold); +bool QsciLexerPerl_FoldPODBlocks(const QsciLexerPerl* self); +void QsciLexerPerl_SetFoldComments(QsciLexerPerl* self, bool fold); +void QsciLexerPerl_SetFoldCompact(QsciLexerPerl* self, bool fold); +struct miqt_string QsciLexerPerl_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerPerl_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerPerl_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerPerl_TrUtf83(const char* s, const char* c, int n); +const char* QsciLexerPerl_BlockEnd1(const QsciLexerPerl* self, int* style); +const char* QsciLexerPerl_BlockStart1(const QsciLexerPerl* self, int* style); +void QsciLexerPerl_Delete(QsciLexerPerl* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpo.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerpo.cpp new file mode 100644 index 00000000..4f169421 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpo.cpp @@ -0,0 +1,144 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerpo.h" +#include "_cgo_export.h" + +QsciLexerPO* QsciLexerPO_new() { + return new QsciLexerPO(); +} + +QsciLexerPO* QsciLexerPO_new2(QObject* parent) { + return new QsciLexerPO(parent); +} + +QMetaObject* QsciLexerPO_MetaObject(const QsciLexerPO* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerPO_Metacast(QsciLexerPO* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerPO_Tr(const char* s) { + QString _ret = QsciLexerPO::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPO_TrUtf8(const char* s) { + QString _ret = QsciLexerPO::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerPO_Language(const QsciLexerPO* self) { + return (const char*) self->language(); +} + +const char* QsciLexerPO_Lexer(const QsciLexerPO* self) { + return (const char*) self->lexer(); +} + +QColor* QsciLexerPO_DefaultColor(const QsciLexerPO* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +QFont* QsciLexerPO_DefaultFont(const QsciLexerPO* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +struct miqt_string QsciLexerPO_Description(const QsciLexerPO* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerPO_RefreshProperties(QsciLexerPO* self) { + self->refreshProperties(); +} + +bool QsciLexerPO_FoldComments(const QsciLexerPO* self) { + return self->foldComments(); +} + +bool QsciLexerPO_FoldCompact(const QsciLexerPO* self) { + return self->foldCompact(); +} + +void QsciLexerPO_SetFoldComments(QsciLexerPO* self, bool fold) { + self->setFoldComments(fold); +} + +void QsciLexerPO_SetFoldCompact(QsciLexerPO* self, bool fold) { + self->setFoldCompact(fold); +} + +struct miqt_string QsciLexerPO_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerPO::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPO_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerPO::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPO_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerPO::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPO_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerPO::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerPO_Delete(QsciLexerPO* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpo.go b/qt-restricted-extras/qscintilla/gen_qscilexerpo.go new file mode 100644 index 00000000..fd2d3e70 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpo.go @@ -0,0 +1,214 @@ +package qscintilla + +/* + +#include "gen_qscilexerpo.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerPO__ int + +const ( + QsciLexerPO__Default QsciLexerPO__ = 0 + QsciLexerPO__Comment QsciLexerPO__ = 1 + QsciLexerPO__MessageId QsciLexerPO__ = 2 + QsciLexerPO__MessageIdText QsciLexerPO__ = 3 + QsciLexerPO__MessageString QsciLexerPO__ = 4 + QsciLexerPO__MessageStringText QsciLexerPO__ = 5 + QsciLexerPO__MessageContext QsciLexerPO__ = 6 + QsciLexerPO__MessageContextText QsciLexerPO__ = 7 + QsciLexerPO__Fuzzy QsciLexerPO__ = 8 + QsciLexerPO__ProgrammerComment QsciLexerPO__ = 9 + QsciLexerPO__Reference QsciLexerPO__ = 10 + QsciLexerPO__Flags QsciLexerPO__ = 11 + QsciLexerPO__MessageIdTextEOL QsciLexerPO__ = 12 + QsciLexerPO__MessageStringTextEOL QsciLexerPO__ = 13 + QsciLexerPO__MessageContextTextEOL QsciLexerPO__ = 14 +) + +type QsciLexerPO struct { + h *C.QsciLexerPO + *QsciLexer +} + +func (this *QsciLexerPO) cPointer() *C.QsciLexerPO { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerPO) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerPO(h *C.QsciLexerPO) *QsciLexerPO { + if h == nil { + return nil + } + return &QsciLexerPO{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerPO(h unsafe.Pointer) *QsciLexerPO { + return newQsciLexerPO((*C.QsciLexerPO)(h)) +} + +// NewQsciLexerPO constructs a new QsciLexerPO object. +func NewQsciLexerPO() *QsciLexerPO { + ret := C.QsciLexerPO_new() + return newQsciLexerPO(ret) +} + +// NewQsciLexerPO2 constructs a new QsciLexerPO object. +func NewQsciLexerPO2(parent *qt.QObject) *QsciLexerPO { + ret := C.QsciLexerPO_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerPO(ret) +} + +func (this *QsciLexerPO) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerPO_MetaObject(this.h))) +} + +func (this *QsciLexerPO) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerPO_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerPO_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPO_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPO_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPO_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPO) Language() string { + _ret := C.QsciLexerPO_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPO) Lexer() string { + _ret := C.QsciLexerPO_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPO) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerPO_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPO) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerPO_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPO) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerPO_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPO) RefreshProperties() { + C.QsciLexerPO_RefreshProperties(this.h) +} + +func (this *QsciLexerPO) FoldComments() bool { + return (bool)(C.QsciLexerPO_FoldComments(this.h)) +} + +func (this *QsciLexerPO) FoldCompact() bool { + return (bool)(C.QsciLexerPO_FoldCompact(this.h)) +} + +func (this *QsciLexerPO) SetFoldComments(fold bool) { + C.QsciLexerPO_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerPO) SetFoldCompact(fold bool) { + C.QsciLexerPO_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func QsciLexerPO_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPO_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPO_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPO_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPO_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPO_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPO_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPO_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerPO) Delete() { + C.QsciLexerPO_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerPO) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerPO) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpo.h b/qt-restricted-extras/qscintilla/gen_qscilexerpo.h new file mode 100644 index 00000000..db7b5afc --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpo.h @@ -0,0 +1,56 @@ +#ifndef GEN_QSCILEXERPO_H +#define GEN_QSCILEXERPO_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerPO; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerPO QsciLexerPO; +#endif + +QsciLexerPO* QsciLexerPO_new(); +QsciLexerPO* QsciLexerPO_new2(QObject* parent); +QMetaObject* QsciLexerPO_MetaObject(const QsciLexerPO* self); +void* QsciLexerPO_Metacast(QsciLexerPO* self, const char* param1); +struct miqt_string QsciLexerPO_Tr(const char* s); +struct miqt_string QsciLexerPO_TrUtf8(const char* s); +const char* QsciLexerPO_Language(const QsciLexerPO* self); +const char* QsciLexerPO_Lexer(const QsciLexerPO* self); +QColor* QsciLexerPO_DefaultColor(const QsciLexerPO* self, int style); +QFont* QsciLexerPO_DefaultFont(const QsciLexerPO* self, int style); +struct miqt_string QsciLexerPO_Description(const QsciLexerPO* self, int style); +void QsciLexerPO_RefreshProperties(QsciLexerPO* self); +bool QsciLexerPO_FoldComments(const QsciLexerPO* self); +bool QsciLexerPO_FoldCompact(const QsciLexerPO* self); +void QsciLexerPO_SetFoldComments(QsciLexerPO* self, bool fold); +void QsciLexerPO_SetFoldCompact(QsciLexerPO* self, bool fold); +struct miqt_string QsciLexerPO_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerPO_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerPO_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerPO_TrUtf83(const char* s, const char* c, int n); +void QsciLexerPO_Delete(QsciLexerPO* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.cpp new file mode 100644 index 00000000..7429bd8a --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.cpp @@ -0,0 +1,172 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerpostscript.h" +#include "_cgo_export.h" + +QsciLexerPostScript* QsciLexerPostScript_new() { + return new QsciLexerPostScript(); +} + +QsciLexerPostScript* QsciLexerPostScript_new2(QObject* parent) { + return new QsciLexerPostScript(parent); +} + +QMetaObject* QsciLexerPostScript_MetaObject(const QsciLexerPostScript* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerPostScript_Metacast(QsciLexerPostScript* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerPostScript_Tr(const char* s) { + QString _ret = QsciLexerPostScript::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPostScript_TrUtf8(const char* s) { + QString _ret = QsciLexerPostScript::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerPostScript_Language(const QsciLexerPostScript* self) { + return (const char*) self->language(); +} + +const char* QsciLexerPostScript_Lexer(const QsciLexerPostScript* self) { + return (const char*) self->lexer(); +} + +int QsciLexerPostScript_BraceStyle(const QsciLexerPostScript* self) { + return self->braceStyle(); +} + +QColor* QsciLexerPostScript_DefaultColor(const QsciLexerPostScript* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +QFont* QsciLexerPostScript_DefaultFont(const QsciLexerPostScript* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerPostScript_DefaultPaper(const QsciLexerPostScript* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerPostScript_Keywords(const QsciLexerPostScript* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerPostScript_Description(const QsciLexerPostScript* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerPostScript_RefreshProperties(QsciLexerPostScript* self) { + self->refreshProperties(); +} + +bool QsciLexerPostScript_Tokenize(const QsciLexerPostScript* self) { + return self->tokenize(); +} + +int QsciLexerPostScript_Level(const QsciLexerPostScript* self) { + return self->level(); +} + +bool QsciLexerPostScript_FoldCompact(const QsciLexerPostScript* self) { + return self->foldCompact(); +} + +bool QsciLexerPostScript_FoldAtElse(const QsciLexerPostScript* self) { + return self->foldAtElse(); +} + +void QsciLexerPostScript_SetTokenize(QsciLexerPostScript* self, bool tokenize) { + self->setTokenize(tokenize); +} + +void QsciLexerPostScript_SetLevel(QsciLexerPostScript* self, int level) { + self->setLevel(static_cast(level)); +} + +void QsciLexerPostScript_SetFoldCompact(QsciLexerPostScript* self, bool fold) { + self->setFoldCompact(fold); +} + +void QsciLexerPostScript_SetFoldAtElse(QsciLexerPostScript* self, bool fold) { + self->setFoldAtElse(fold); +} + +struct miqt_string QsciLexerPostScript_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerPostScript::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPostScript_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerPostScript::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPostScript_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerPostScript::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPostScript_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerPostScript::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerPostScript_Delete(QsciLexerPostScript* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.go b/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.go new file mode 100644 index 00000000..def9aced --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.go @@ -0,0 +1,247 @@ +package qscintilla + +/* + +#include "gen_qscilexerpostscript.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerPostScript__ int + +const ( + QsciLexerPostScript__Default QsciLexerPostScript__ = 0 + QsciLexerPostScript__Comment QsciLexerPostScript__ = 1 + QsciLexerPostScript__DSCComment QsciLexerPostScript__ = 2 + QsciLexerPostScript__DSCCommentValue QsciLexerPostScript__ = 3 + QsciLexerPostScript__Number QsciLexerPostScript__ = 4 + QsciLexerPostScript__Name QsciLexerPostScript__ = 5 + QsciLexerPostScript__Keyword QsciLexerPostScript__ = 6 + QsciLexerPostScript__Literal QsciLexerPostScript__ = 7 + QsciLexerPostScript__ImmediateEvalLiteral QsciLexerPostScript__ = 8 + QsciLexerPostScript__ArrayParenthesis QsciLexerPostScript__ = 9 + QsciLexerPostScript__DictionaryParenthesis QsciLexerPostScript__ = 10 + QsciLexerPostScript__ProcedureParenthesis QsciLexerPostScript__ = 11 + QsciLexerPostScript__Text QsciLexerPostScript__ = 12 + QsciLexerPostScript__HexString QsciLexerPostScript__ = 13 + QsciLexerPostScript__Base85String QsciLexerPostScript__ = 14 + QsciLexerPostScript__BadStringCharacter QsciLexerPostScript__ = 15 +) + +type QsciLexerPostScript struct { + h *C.QsciLexerPostScript + *QsciLexer +} + +func (this *QsciLexerPostScript) cPointer() *C.QsciLexerPostScript { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerPostScript) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerPostScript(h *C.QsciLexerPostScript) *QsciLexerPostScript { + if h == nil { + return nil + } + return &QsciLexerPostScript{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerPostScript(h unsafe.Pointer) *QsciLexerPostScript { + return newQsciLexerPostScript((*C.QsciLexerPostScript)(h)) +} + +// NewQsciLexerPostScript constructs a new QsciLexerPostScript object. +func NewQsciLexerPostScript() *QsciLexerPostScript { + ret := C.QsciLexerPostScript_new() + return newQsciLexerPostScript(ret) +} + +// NewQsciLexerPostScript2 constructs a new QsciLexerPostScript object. +func NewQsciLexerPostScript2(parent *qt.QObject) *QsciLexerPostScript { + ret := C.QsciLexerPostScript_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerPostScript(ret) +} + +func (this *QsciLexerPostScript) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerPostScript_MetaObject(this.h))) +} + +func (this *QsciLexerPostScript) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerPostScript_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerPostScript_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPostScript_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPostScript_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPostScript_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPostScript) Language() string { + _ret := C.QsciLexerPostScript_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPostScript) Lexer() string { + _ret := C.QsciLexerPostScript_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPostScript) BraceStyle() int { + return (int)(C.QsciLexerPostScript_BraceStyle(this.h)) +} + +func (this *QsciLexerPostScript) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerPostScript_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPostScript) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerPostScript_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPostScript) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerPostScript_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPostScript) Keywords(set int) string { + _ret := C.QsciLexerPostScript_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerPostScript) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerPostScript_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPostScript) RefreshProperties() { + C.QsciLexerPostScript_RefreshProperties(this.h) +} + +func (this *QsciLexerPostScript) Tokenize() bool { + return (bool)(C.QsciLexerPostScript_Tokenize(this.h)) +} + +func (this *QsciLexerPostScript) Level() int { + return (int)(C.QsciLexerPostScript_Level(this.h)) +} + +func (this *QsciLexerPostScript) FoldCompact() bool { + return (bool)(C.QsciLexerPostScript_FoldCompact(this.h)) +} + +func (this *QsciLexerPostScript) FoldAtElse() bool { + return (bool)(C.QsciLexerPostScript_FoldAtElse(this.h)) +} + +func (this *QsciLexerPostScript) SetTokenize(tokenize bool) { + C.QsciLexerPostScript_SetTokenize(this.h, (C.bool)(tokenize)) +} + +func (this *QsciLexerPostScript) SetLevel(level int) { + C.QsciLexerPostScript_SetLevel(this.h, (C.int)(level)) +} + +func (this *QsciLexerPostScript) SetFoldCompact(fold bool) { + C.QsciLexerPostScript_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerPostScript) SetFoldAtElse(fold bool) { + C.QsciLexerPostScript_SetFoldAtElse(this.h, (C.bool)(fold)) +} + +func QsciLexerPostScript_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPostScript_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPostScript_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPostScript_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPostScript_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPostScript_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPostScript_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPostScript_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerPostScript) Delete() { + C.QsciLexerPostScript_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerPostScript) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerPostScript) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.h b/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.h new file mode 100644 index 00000000..ffa1ae6e --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.h @@ -0,0 +1,63 @@ +#ifndef GEN_QSCILEXERPOSTSCRIPT_H +#define GEN_QSCILEXERPOSTSCRIPT_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerPostScript; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerPostScript QsciLexerPostScript; +#endif + +QsciLexerPostScript* QsciLexerPostScript_new(); +QsciLexerPostScript* QsciLexerPostScript_new2(QObject* parent); +QMetaObject* QsciLexerPostScript_MetaObject(const QsciLexerPostScript* self); +void* QsciLexerPostScript_Metacast(QsciLexerPostScript* self, const char* param1); +struct miqt_string QsciLexerPostScript_Tr(const char* s); +struct miqt_string QsciLexerPostScript_TrUtf8(const char* s); +const char* QsciLexerPostScript_Language(const QsciLexerPostScript* self); +const char* QsciLexerPostScript_Lexer(const QsciLexerPostScript* self); +int QsciLexerPostScript_BraceStyle(const QsciLexerPostScript* self); +QColor* QsciLexerPostScript_DefaultColor(const QsciLexerPostScript* self, int style); +QFont* QsciLexerPostScript_DefaultFont(const QsciLexerPostScript* self, int style); +QColor* QsciLexerPostScript_DefaultPaper(const QsciLexerPostScript* self, int style); +const char* QsciLexerPostScript_Keywords(const QsciLexerPostScript* self, int set); +struct miqt_string QsciLexerPostScript_Description(const QsciLexerPostScript* self, int style); +void QsciLexerPostScript_RefreshProperties(QsciLexerPostScript* self); +bool QsciLexerPostScript_Tokenize(const QsciLexerPostScript* self); +int QsciLexerPostScript_Level(const QsciLexerPostScript* self); +bool QsciLexerPostScript_FoldCompact(const QsciLexerPostScript* self); +bool QsciLexerPostScript_FoldAtElse(const QsciLexerPostScript* self); +void QsciLexerPostScript_SetTokenize(QsciLexerPostScript* self, bool tokenize); +void QsciLexerPostScript_SetLevel(QsciLexerPostScript* self, int level); +void QsciLexerPostScript_SetFoldCompact(QsciLexerPostScript* self, bool fold); +void QsciLexerPostScript_SetFoldAtElse(QsciLexerPostScript* self, bool fold); +struct miqt_string QsciLexerPostScript_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerPostScript_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerPostScript_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerPostScript_TrUtf83(const char* s, const char* c, int n); +void QsciLexerPostScript_Delete(QsciLexerPostScript* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpov.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerpov.cpp new file mode 100644 index 00000000..3bea52dc --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpov.cpp @@ -0,0 +1,172 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerpov.h" +#include "_cgo_export.h" + +QsciLexerPOV* QsciLexerPOV_new() { + return new QsciLexerPOV(); +} + +QsciLexerPOV* QsciLexerPOV_new2(QObject* parent) { + return new QsciLexerPOV(parent); +} + +QMetaObject* QsciLexerPOV_MetaObject(const QsciLexerPOV* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerPOV_Metacast(QsciLexerPOV* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerPOV_Tr(const char* s) { + QString _ret = QsciLexerPOV::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPOV_TrUtf8(const char* s) { + QString _ret = QsciLexerPOV::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerPOV_Language(const QsciLexerPOV* self) { + return (const char*) self->language(); +} + +const char* QsciLexerPOV_Lexer(const QsciLexerPOV* self) { + return (const char*) self->lexer(); +} + +int QsciLexerPOV_BraceStyle(const QsciLexerPOV* self) { + return self->braceStyle(); +} + +const char* QsciLexerPOV_WordCharacters(const QsciLexerPOV* self) { + return (const char*) self->wordCharacters(); +} + +QColor* QsciLexerPOV_DefaultColor(const QsciLexerPOV* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerPOV_DefaultEolFill(const QsciLexerPOV* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerPOV_DefaultFont(const QsciLexerPOV* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerPOV_DefaultPaper(const QsciLexerPOV* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerPOV_Keywords(const QsciLexerPOV* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerPOV_Description(const QsciLexerPOV* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerPOV_RefreshProperties(QsciLexerPOV* self) { + self->refreshProperties(); +} + +bool QsciLexerPOV_FoldComments(const QsciLexerPOV* self) { + return self->foldComments(); +} + +bool QsciLexerPOV_FoldCompact(const QsciLexerPOV* self) { + return self->foldCompact(); +} + +bool QsciLexerPOV_FoldDirectives(const QsciLexerPOV* self) { + return self->foldDirectives(); +} + +void QsciLexerPOV_SetFoldComments(QsciLexerPOV* self, bool fold) { + self->setFoldComments(fold); +} + +void QsciLexerPOV_SetFoldCompact(QsciLexerPOV* self, bool fold) { + self->setFoldCompact(fold); +} + +void QsciLexerPOV_SetFoldDirectives(QsciLexerPOV* self, bool fold) { + self->setFoldDirectives(fold); +} + +struct miqt_string QsciLexerPOV_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerPOV::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPOV_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerPOV::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPOV_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerPOV::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPOV_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerPOV::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerPOV_Delete(QsciLexerPOV* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpov.go b/qt-restricted-extras/qscintilla/gen_qscilexerpov.go new file mode 100644 index 00000000..e3f4a5f4 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpov.go @@ -0,0 +1,249 @@ +package qscintilla + +/* + +#include "gen_qscilexerpov.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerPOV__ int + +const ( + QsciLexerPOV__Default QsciLexerPOV__ = 0 + QsciLexerPOV__Comment QsciLexerPOV__ = 1 + QsciLexerPOV__CommentLine QsciLexerPOV__ = 2 + QsciLexerPOV__Number QsciLexerPOV__ = 3 + QsciLexerPOV__Operator QsciLexerPOV__ = 4 + QsciLexerPOV__Identifier QsciLexerPOV__ = 5 + QsciLexerPOV__String QsciLexerPOV__ = 6 + QsciLexerPOV__UnclosedString QsciLexerPOV__ = 7 + QsciLexerPOV__Directive QsciLexerPOV__ = 8 + QsciLexerPOV__BadDirective QsciLexerPOV__ = 9 + QsciLexerPOV__ObjectsCSGAppearance QsciLexerPOV__ = 10 + QsciLexerPOV__TypesModifiersItems QsciLexerPOV__ = 11 + QsciLexerPOV__PredefinedIdentifiers QsciLexerPOV__ = 12 + QsciLexerPOV__PredefinedFunctions QsciLexerPOV__ = 13 + QsciLexerPOV__KeywordSet6 QsciLexerPOV__ = 14 + QsciLexerPOV__KeywordSet7 QsciLexerPOV__ = 15 + QsciLexerPOV__KeywordSet8 QsciLexerPOV__ = 16 +) + +type QsciLexerPOV struct { + h *C.QsciLexerPOV + *QsciLexer +} + +func (this *QsciLexerPOV) cPointer() *C.QsciLexerPOV { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerPOV) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerPOV(h *C.QsciLexerPOV) *QsciLexerPOV { + if h == nil { + return nil + } + return &QsciLexerPOV{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerPOV(h unsafe.Pointer) *QsciLexerPOV { + return newQsciLexerPOV((*C.QsciLexerPOV)(h)) +} + +// NewQsciLexerPOV constructs a new QsciLexerPOV object. +func NewQsciLexerPOV() *QsciLexerPOV { + ret := C.QsciLexerPOV_new() + return newQsciLexerPOV(ret) +} + +// NewQsciLexerPOV2 constructs a new QsciLexerPOV object. +func NewQsciLexerPOV2(parent *qt.QObject) *QsciLexerPOV { + ret := C.QsciLexerPOV_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerPOV(ret) +} + +func (this *QsciLexerPOV) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerPOV_MetaObject(this.h))) +} + +func (this *QsciLexerPOV) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerPOV_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerPOV_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPOV_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPOV_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPOV_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPOV) Language() string { + _ret := C.QsciLexerPOV_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPOV) Lexer() string { + _ret := C.QsciLexerPOV_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPOV) BraceStyle() int { + return (int)(C.QsciLexerPOV_BraceStyle(this.h)) +} + +func (this *QsciLexerPOV) WordCharacters() string { + _ret := C.QsciLexerPOV_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPOV) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerPOV_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPOV) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerPOV_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerPOV) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerPOV_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPOV) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerPOV_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPOV) Keywords(set int) string { + _ret := C.QsciLexerPOV_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerPOV) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerPOV_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPOV) RefreshProperties() { + C.QsciLexerPOV_RefreshProperties(this.h) +} + +func (this *QsciLexerPOV) FoldComments() bool { + return (bool)(C.QsciLexerPOV_FoldComments(this.h)) +} + +func (this *QsciLexerPOV) FoldCompact() bool { + return (bool)(C.QsciLexerPOV_FoldCompact(this.h)) +} + +func (this *QsciLexerPOV) FoldDirectives() bool { + return (bool)(C.QsciLexerPOV_FoldDirectives(this.h)) +} + +func (this *QsciLexerPOV) SetFoldComments(fold bool) { + C.QsciLexerPOV_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerPOV) SetFoldCompact(fold bool) { + C.QsciLexerPOV_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerPOV) SetFoldDirectives(fold bool) { + C.QsciLexerPOV_SetFoldDirectives(this.h, (C.bool)(fold)) +} + +func QsciLexerPOV_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPOV_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPOV_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPOV_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPOV_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPOV_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPOV_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPOV_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerPOV) Delete() { + C.QsciLexerPOV_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerPOV) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerPOV) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpov.h b/qt-restricted-extras/qscintilla/gen_qscilexerpov.h new file mode 100644 index 00000000..bc86aeb0 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpov.h @@ -0,0 +1,63 @@ +#ifndef GEN_QSCILEXERPOV_H +#define GEN_QSCILEXERPOV_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerPOV; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerPOV QsciLexerPOV; +#endif + +QsciLexerPOV* QsciLexerPOV_new(); +QsciLexerPOV* QsciLexerPOV_new2(QObject* parent); +QMetaObject* QsciLexerPOV_MetaObject(const QsciLexerPOV* self); +void* QsciLexerPOV_Metacast(QsciLexerPOV* self, const char* param1); +struct miqt_string QsciLexerPOV_Tr(const char* s); +struct miqt_string QsciLexerPOV_TrUtf8(const char* s); +const char* QsciLexerPOV_Language(const QsciLexerPOV* self); +const char* QsciLexerPOV_Lexer(const QsciLexerPOV* self); +int QsciLexerPOV_BraceStyle(const QsciLexerPOV* self); +const char* QsciLexerPOV_WordCharacters(const QsciLexerPOV* self); +QColor* QsciLexerPOV_DefaultColor(const QsciLexerPOV* self, int style); +bool QsciLexerPOV_DefaultEolFill(const QsciLexerPOV* self, int style); +QFont* QsciLexerPOV_DefaultFont(const QsciLexerPOV* self, int style); +QColor* QsciLexerPOV_DefaultPaper(const QsciLexerPOV* self, int style); +const char* QsciLexerPOV_Keywords(const QsciLexerPOV* self, int set); +struct miqt_string QsciLexerPOV_Description(const QsciLexerPOV* self, int style); +void QsciLexerPOV_RefreshProperties(QsciLexerPOV* self); +bool QsciLexerPOV_FoldComments(const QsciLexerPOV* self); +bool QsciLexerPOV_FoldCompact(const QsciLexerPOV* self); +bool QsciLexerPOV_FoldDirectives(const QsciLexerPOV* self); +void QsciLexerPOV_SetFoldComments(QsciLexerPOV* self, bool fold); +void QsciLexerPOV_SetFoldCompact(QsciLexerPOV* self, bool fold); +void QsciLexerPOV_SetFoldDirectives(QsciLexerPOV* self, bool fold); +struct miqt_string QsciLexerPOV_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerPOV_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerPOV_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerPOV_TrUtf83(const char* s, const char* c, int n); +void QsciLexerPOV_Delete(QsciLexerPOV* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerproperties.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerproperties.cpp new file mode 100644 index 00000000..1d21ebdf --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerproperties.cpp @@ -0,0 +1,156 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerproperties.h" +#include "_cgo_export.h" + +QsciLexerProperties* QsciLexerProperties_new() { + return new QsciLexerProperties(); +} + +QsciLexerProperties* QsciLexerProperties_new2(QObject* parent) { + return new QsciLexerProperties(parent); +} + +QMetaObject* QsciLexerProperties_MetaObject(const QsciLexerProperties* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerProperties_Metacast(QsciLexerProperties* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerProperties_Tr(const char* s) { + QString _ret = QsciLexerProperties::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerProperties_TrUtf8(const char* s) { + QString _ret = QsciLexerProperties::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerProperties_Language(const QsciLexerProperties* self) { + return (const char*) self->language(); +} + +const char* QsciLexerProperties_Lexer(const QsciLexerProperties* self) { + return (const char*) self->lexer(); +} + +const char* QsciLexerProperties_WordCharacters(const QsciLexerProperties* self) { + return (const char*) self->wordCharacters(); +} + +QColor* QsciLexerProperties_DefaultColor(const QsciLexerProperties* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerProperties_DefaultEolFill(const QsciLexerProperties* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerProperties_DefaultFont(const QsciLexerProperties* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerProperties_DefaultPaper(const QsciLexerProperties* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +struct miqt_string QsciLexerProperties_Description(const QsciLexerProperties* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerProperties_RefreshProperties(QsciLexerProperties* self) { + self->refreshProperties(); +} + +bool QsciLexerProperties_FoldCompact(const QsciLexerProperties* self) { + return self->foldCompact(); +} + +void QsciLexerProperties_SetInitialSpaces(QsciLexerProperties* self, bool enable) { + self->setInitialSpaces(enable); +} + +bool QsciLexerProperties_InitialSpaces(const QsciLexerProperties* self) { + return self->initialSpaces(); +} + +void QsciLexerProperties_SetFoldCompact(QsciLexerProperties* self, bool fold) { + self->setFoldCompact(fold); +} + +struct miqt_string QsciLexerProperties_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerProperties::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerProperties_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerProperties::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerProperties_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerProperties::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerProperties_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerProperties::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerProperties_Delete(QsciLexerProperties* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerproperties.go b/qt-restricted-extras/qscintilla/gen_qscilexerproperties.go new file mode 100644 index 00000000..3854ff4e --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerproperties.go @@ -0,0 +1,221 @@ +package qscintilla + +/* + +#include "gen_qscilexerproperties.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerProperties__ int + +const ( + QsciLexerProperties__Default QsciLexerProperties__ = 0 + QsciLexerProperties__Comment QsciLexerProperties__ = 1 + QsciLexerProperties__Section QsciLexerProperties__ = 2 + QsciLexerProperties__Assignment QsciLexerProperties__ = 3 + QsciLexerProperties__DefaultValue QsciLexerProperties__ = 4 + QsciLexerProperties__Key QsciLexerProperties__ = 5 +) + +type QsciLexerProperties struct { + h *C.QsciLexerProperties + *QsciLexer +} + +func (this *QsciLexerProperties) cPointer() *C.QsciLexerProperties { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerProperties) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerProperties(h *C.QsciLexerProperties) *QsciLexerProperties { + if h == nil { + return nil + } + return &QsciLexerProperties{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerProperties(h unsafe.Pointer) *QsciLexerProperties { + return newQsciLexerProperties((*C.QsciLexerProperties)(h)) +} + +// NewQsciLexerProperties constructs a new QsciLexerProperties object. +func NewQsciLexerProperties() *QsciLexerProperties { + ret := C.QsciLexerProperties_new() + return newQsciLexerProperties(ret) +} + +// NewQsciLexerProperties2 constructs a new QsciLexerProperties object. +func NewQsciLexerProperties2(parent *qt.QObject) *QsciLexerProperties { + ret := C.QsciLexerProperties_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerProperties(ret) +} + +func (this *QsciLexerProperties) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerProperties_MetaObject(this.h))) +} + +func (this *QsciLexerProperties) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerProperties_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerProperties_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerProperties_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerProperties_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerProperties_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerProperties) Language() string { + _ret := C.QsciLexerProperties_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerProperties) Lexer() string { + _ret := C.QsciLexerProperties_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerProperties) WordCharacters() string { + _ret := C.QsciLexerProperties_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerProperties) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerProperties_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerProperties) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerProperties_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerProperties) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerProperties_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerProperties) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerProperties_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerProperties) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerProperties_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerProperties) RefreshProperties() { + C.QsciLexerProperties_RefreshProperties(this.h) +} + +func (this *QsciLexerProperties) FoldCompact() bool { + return (bool)(C.QsciLexerProperties_FoldCompact(this.h)) +} + +func (this *QsciLexerProperties) SetInitialSpaces(enable bool) { + C.QsciLexerProperties_SetInitialSpaces(this.h, (C.bool)(enable)) +} + +func (this *QsciLexerProperties) InitialSpaces() bool { + return (bool)(C.QsciLexerProperties_InitialSpaces(this.h)) +} + +func (this *QsciLexerProperties) SetFoldCompact(fold bool) { + C.QsciLexerProperties_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func QsciLexerProperties_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerProperties_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerProperties_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerProperties_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerProperties_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerProperties_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerProperties_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerProperties_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerProperties) Delete() { + C.QsciLexerProperties_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerProperties) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerProperties) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerproperties.h b/qt-restricted-extras/qscintilla/gen_qscilexerproperties.h new file mode 100644 index 00000000..51d2155c --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerproperties.h @@ -0,0 +1,59 @@ +#ifndef GEN_QSCILEXERPROPERTIES_H +#define GEN_QSCILEXERPROPERTIES_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerProperties; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerProperties QsciLexerProperties; +#endif + +QsciLexerProperties* QsciLexerProperties_new(); +QsciLexerProperties* QsciLexerProperties_new2(QObject* parent); +QMetaObject* QsciLexerProperties_MetaObject(const QsciLexerProperties* self); +void* QsciLexerProperties_Metacast(QsciLexerProperties* self, const char* param1); +struct miqt_string QsciLexerProperties_Tr(const char* s); +struct miqt_string QsciLexerProperties_TrUtf8(const char* s); +const char* QsciLexerProperties_Language(const QsciLexerProperties* self); +const char* QsciLexerProperties_Lexer(const QsciLexerProperties* self); +const char* QsciLexerProperties_WordCharacters(const QsciLexerProperties* self); +QColor* QsciLexerProperties_DefaultColor(const QsciLexerProperties* self, int style); +bool QsciLexerProperties_DefaultEolFill(const QsciLexerProperties* self, int style); +QFont* QsciLexerProperties_DefaultFont(const QsciLexerProperties* self, int style); +QColor* QsciLexerProperties_DefaultPaper(const QsciLexerProperties* self, int style); +struct miqt_string QsciLexerProperties_Description(const QsciLexerProperties* self, int style); +void QsciLexerProperties_RefreshProperties(QsciLexerProperties* self); +bool QsciLexerProperties_FoldCompact(const QsciLexerProperties* self); +void QsciLexerProperties_SetInitialSpaces(QsciLexerProperties* self, bool enable); +bool QsciLexerProperties_InitialSpaces(const QsciLexerProperties* self); +void QsciLexerProperties_SetFoldCompact(QsciLexerProperties* self, bool fold); +struct miqt_string QsciLexerProperties_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerProperties_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerProperties_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerProperties_TrUtf83(const char* s, const char* c, int n); +void QsciLexerProperties_Delete(QsciLexerProperties* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpython.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerpython.cpp new file mode 100644 index 00000000..3a9efa9f --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpython.cpp @@ -0,0 +1,254 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerpython.h" +#include "_cgo_export.h" + +QsciLexerPython* QsciLexerPython_new() { + return new QsciLexerPython(); +} + +QsciLexerPython* QsciLexerPython_new2(QObject* parent) { + return new QsciLexerPython(parent); +} + +QMetaObject* QsciLexerPython_MetaObject(const QsciLexerPython* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerPython_Metacast(QsciLexerPython* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerPython_Tr(const char* s) { + QString _ret = QsciLexerPython::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPython_TrUtf8(const char* s) { + QString _ret = QsciLexerPython::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerPython_Language(const QsciLexerPython* self) { + return (const char*) self->language(); +} + +const char* QsciLexerPython_Lexer(const QsciLexerPython* self) { + return (const char*) self->lexer(); +} + +struct miqt_array* 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())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QString _lv_ret = _ret[i]; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_b = _lv_ret.toUtf8(); + struct miqt_string _lv_ms; + _lv_ms.len = _lv_b.length(); + _lv_ms.data = static_cast(malloc(_lv_ms.len)); + memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len); + _arr[i] = _lv_ms; + } + struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); + _out->len = _ret.length(); + _out->data = static_cast(_arr); + return _out; +} + +int QsciLexerPython_BlockLookback(const QsciLexerPython* self) { + return self->blockLookback(); +} + +const char* QsciLexerPython_BlockStart(const QsciLexerPython* self) { + return (const char*) self->blockStart(); +} + +int QsciLexerPython_BraceStyle(const QsciLexerPython* self) { + return self->braceStyle(); +} + +QColor* QsciLexerPython_DefaultColor(const QsciLexerPython* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerPython_DefaultEolFill(const QsciLexerPython* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerPython_DefaultFont(const QsciLexerPython* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerPython_DefaultPaper(const QsciLexerPython* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +int QsciLexerPython_IndentationGuideView(const QsciLexerPython* self) { + return self->indentationGuideView(); +} + +const char* QsciLexerPython_Keywords(const QsciLexerPython* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerPython_Description(const QsciLexerPython* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerPython_RefreshProperties(QsciLexerPython* self) { + self->refreshProperties(); +} + +bool QsciLexerPython_FoldComments(const QsciLexerPython* self) { + return self->foldComments(); +} + +void QsciLexerPython_SetFoldCompact(QsciLexerPython* self, bool fold) { + self->setFoldCompact(fold); +} + +bool QsciLexerPython_FoldCompact(const QsciLexerPython* self) { + return self->foldCompact(); +} + +bool QsciLexerPython_FoldQuotes(const QsciLexerPython* self) { + return self->foldQuotes(); +} + +int QsciLexerPython_IndentationWarning(const QsciLexerPython* self) { + QsciLexerPython::IndentationWarning _ret = self->indentationWarning(); + return static_cast(_ret); +} + +void QsciLexerPython_SetHighlightSubidentifiers(QsciLexerPython* self, bool enabled) { + self->setHighlightSubidentifiers(enabled); +} + +bool QsciLexerPython_HighlightSubidentifiers(const QsciLexerPython* self) { + return self->highlightSubidentifiers(); +} + +void QsciLexerPython_SetStringsOverNewlineAllowed(QsciLexerPython* self, bool allowed) { + self->setStringsOverNewlineAllowed(allowed); +} + +bool QsciLexerPython_StringsOverNewlineAllowed(const QsciLexerPython* self) { + return self->stringsOverNewlineAllowed(); +} + +void QsciLexerPython_SetV2UnicodeAllowed(QsciLexerPython* self, bool allowed) { + self->setV2UnicodeAllowed(allowed); +} + +bool QsciLexerPython_V2UnicodeAllowed(const QsciLexerPython* self) { + return self->v2UnicodeAllowed(); +} + +void QsciLexerPython_SetV3BinaryOctalAllowed(QsciLexerPython* self, bool allowed) { + self->setV3BinaryOctalAllowed(allowed); +} + +bool QsciLexerPython_V3BinaryOctalAllowed(const QsciLexerPython* self) { + return self->v3BinaryOctalAllowed(); +} + +void QsciLexerPython_SetV3BytesAllowed(QsciLexerPython* self, bool allowed) { + self->setV3BytesAllowed(allowed); +} + +bool QsciLexerPython_V3BytesAllowed(const QsciLexerPython* self) { + return self->v3BytesAllowed(); +} + +void QsciLexerPython_SetFoldComments(QsciLexerPython* self, bool fold) { + self->setFoldComments(fold); +} + +void QsciLexerPython_SetFoldQuotes(QsciLexerPython* self, bool fold) { + self->setFoldQuotes(fold); +} + +void QsciLexerPython_SetIndentationWarning(QsciLexerPython* self, int warn) { + self->setIndentationWarning(static_cast(warn)); +} + +struct miqt_string QsciLexerPython_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerPython::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPython_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerPython::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPython_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerPython::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerPython_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerPython::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerPython_BlockStart1(const QsciLexerPython* self, int* style) { + return (const char*) self->blockStart(static_cast(style)); +} + +void QsciLexerPython_Delete(QsciLexerPython* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpython.go b/qt-restricted-extras/qscintilla/gen_qscilexerpython.go new file mode 100644 index 00000000..7360a274 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpython.go @@ -0,0 +1,337 @@ +package qscintilla + +/* + +#include "gen_qscilexerpython.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerPython__ int + +const ( + QsciLexerPython__Default QsciLexerPython__ = 0 + QsciLexerPython__Comment QsciLexerPython__ = 1 + QsciLexerPython__Number QsciLexerPython__ = 2 + QsciLexerPython__DoubleQuotedString QsciLexerPython__ = 3 + QsciLexerPython__SingleQuotedString QsciLexerPython__ = 4 + QsciLexerPython__Keyword QsciLexerPython__ = 5 + QsciLexerPython__TripleSingleQuotedString QsciLexerPython__ = 6 + QsciLexerPython__TripleDoubleQuotedString QsciLexerPython__ = 7 + QsciLexerPython__ClassName QsciLexerPython__ = 8 + QsciLexerPython__FunctionMethodName QsciLexerPython__ = 9 + QsciLexerPython__Operator QsciLexerPython__ = 10 + QsciLexerPython__Identifier QsciLexerPython__ = 11 + QsciLexerPython__CommentBlock QsciLexerPython__ = 12 + QsciLexerPython__UnclosedString QsciLexerPython__ = 13 + QsciLexerPython__HighlightedIdentifier QsciLexerPython__ = 14 + QsciLexerPython__Decorator QsciLexerPython__ = 15 + QsciLexerPython__DoubleQuotedFString QsciLexerPython__ = 16 + QsciLexerPython__SingleQuotedFString QsciLexerPython__ = 17 + QsciLexerPython__TripleSingleQuotedFString QsciLexerPython__ = 18 + QsciLexerPython__TripleDoubleQuotedFString QsciLexerPython__ = 19 +) + +type QsciLexerPython__IndentationWarning int + +const ( + QsciLexerPython__NoWarning QsciLexerPython__IndentationWarning = 0 + QsciLexerPython__Inconsistent QsciLexerPython__IndentationWarning = 1 + QsciLexerPython__TabsAfterSpaces QsciLexerPython__IndentationWarning = 2 + QsciLexerPython__Spaces QsciLexerPython__IndentationWarning = 3 + QsciLexerPython__Tabs QsciLexerPython__IndentationWarning = 4 +) + +type QsciLexerPython struct { + h *C.QsciLexerPython + *QsciLexer +} + +func (this *QsciLexerPython) cPointer() *C.QsciLexerPython { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerPython) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerPython(h *C.QsciLexerPython) *QsciLexerPython { + if h == nil { + return nil + } + return &QsciLexerPython{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerPython(h unsafe.Pointer) *QsciLexerPython { + return newQsciLexerPython((*C.QsciLexerPython)(h)) +} + +// NewQsciLexerPython constructs a new QsciLexerPython object. +func NewQsciLexerPython() *QsciLexerPython { + ret := C.QsciLexerPython_new() + return newQsciLexerPython(ret) +} + +// NewQsciLexerPython2 constructs a new QsciLexerPython object. +func NewQsciLexerPython2(parent *qt.QObject) *QsciLexerPython { + ret := C.QsciLexerPython_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerPython(ret) +} + +func (this *QsciLexerPython) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerPython_MetaObject(this.h))) +} + +func (this *QsciLexerPython) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerPython_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerPython_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPython_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPython_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPython_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPython) Language() string { + _ret := C.QsciLexerPython_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPython) Lexer() string { + _ret := C.QsciLexerPython_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPython) AutoCompletionWordSeparators() []string { + var _ma *C.struct_miqt_array = C.QsciLexerPython_AutoCompletionWordSeparators(this.h) + _ret := make([]string, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_ms C.struct_miqt_string = _outCast[i] + _lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len))) + C.free(unsafe.Pointer(_lv_ms.data)) + _ret[i] = _lv_ret + } + C.free(unsafe.Pointer(_ma)) + return _ret +} + +func (this *QsciLexerPython) BlockLookback() int { + return (int)(C.QsciLexerPython_BlockLookback(this.h)) +} + +func (this *QsciLexerPython) BlockStart() string { + _ret := C.QsciLexerPython_BlockStart(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerPython) BraceStyle() int { + return (int)(C.QsciLexerPython_BraceStyle(this.h)) +} + +func (this *QsciLexerPython) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerPython_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPython) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerPython_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerPython) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerPython_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPython) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerPython_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerPython) IndentationGuideView() int { + return (int)(C.QsciLexerPython_IndentationGuideView(this.h)) +} + +func (this *QsciLexerPython) Keywords(set int) string { + _ret := C.QsciLexerPython_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerPython) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerPython_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPython) RefreshProperties() { + C.QsciLexerPython_RefreshProperties(this.h) +} + +func (this *QsciLexerPython) FoldComments() bool { + return (bool)(C.QsciLexerPython_FoldComments(this.h)) +} + +func (this *QsciLexerPython) SetFoldCompact(fold bool) { + C.QsciLexerPython_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerPython) FoldCompact() bool { + return (bool)(C.QsciLexerPython_FoldCompact(this.h)) +} + +func (this *QsciLexerPython) FoldQuotes() bool { + return (bool)(C.QsciLexerPython_FoldQuotes(this.h)) +} + +func (this *QsciLexerPython) IndentationWarning() QsciLexerPython__IndentationWarning { + return (QsciLexerPython__IndentationWarning)(C.QsciLexerPython_IndentationWarning(this.h)) +} + +func (this *QsciLexerPython) SetHighlightSubidentifiers(enabled bool) { + C.QsciLexerPython_SetHighlightSubidentifiers(this.h, (C.bool)(enabled)) +} + +func (this *QsciLexerPython) HighlightSubidentifiers() bool { + return (bool)(C.QsciLexerPython_HighlightSubidentifiers(this.h)) +} + +func (this *QsciLexerPython) SetStringsOverNewlineAllowed(allowed bool) { + C.QsciLexerPython_SetStringsOverNewlineAllowed(this.h, (C.bool)(allowed)) +} + +func (this *QsciLexerPython) StringsOverNewlineAllowed() bool { + return (bool)(C.QsciLexerPython_StringsOverNewlineAllowed(this.h)) +} + +func (this *QsciLexerPython) SetV2UnicodeAllowed(allowed bool) { + C.QsciLexerPython_SetV2UnicodeAllowed(this.h, (C.bool)(allowed)) +} + +func (this *QsciLexerPython) V2UnicodeAllowed() bool { + return (bool)(C.QsciLexerPython_V2UnicodeAllowed(this.h)) +} + +func (this *QsciLexerPython) SetV3BinaryOctalAllowed(allowed bool) { + C.QsciLexerPython_SetV3BinaryOctalAllowed(this.h, (C.bool)(allowed)) +} + +func (this *QsciLexerPython) V3BinaryOctalAllowed() bool { + return (bool)(C.QsciLexerPython_V3BinaryOctalAllowed(this.h)) +} + +func (this *QsciLexerPython) SetV3BytesAllowed(allowed bool) { + C.QsciLexerPython_SetV3BytesAllowed(this.h, (C.bool)(allowed)) +} + +func (this *QsciLexerPython) V3BytesAllowed() bool { + return (bool)(C.QsciLexerPython_V3BytesAllowed(this.h)) +} + +func (this *QsciLexerPython) SetFoldComments(fold bool) { + C.QsciLexerPython_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerPython) SetFoldQuotes(fold bool) { + C.QsciLexerPython_SetFoldQuotes(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerPython) SetIndentationWarning(warn QsciLexerPython__IndentationWarning) { + C.QsciLexerPython_SetIndentationWarning(this.h, (C.int)(warn)) +} + +func QsciLexerPython_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPython_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPython_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPython_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPython_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPython_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerPython_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerPython_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerPython) BlockStart1(style *int) string { + _ret := C.QsciLexerPython_BlockStart1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +// Delete this object from C++ memory. +func (this *QsciLexerPython) Delete() { + C.QsciLexerPython_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerPython) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerPython) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpython.h b/qt-restricted-extras/qscintilla/gen_qscilexerpython.h new file mode 100644 index 00000000..e83af3a5 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpython.h @@ -0,0 +1,79 @@ +#ifndef GEN_QSCILEXERPYTHON_H +#define GEN_QSCILEXERPYTHON_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerPython; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerPython QsciLexerPython; +#endif + +QsciLexerPython* QsciLexerPython_new(); +QsciLexerPython* QsciLexerPython_new2(QObject* parent); +QMetaObject* QsciLexerPython_MetaObject(const QsciLexerPython* self); +void* QsciLexerPython_Metacast(QsciLexerPython* self, const char* param1); +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); +int QsciLexerPython_BlockLookback(const QsciLexerPython* self); +const char* QsciLexerPython_BlockStart(const QsciLexerPython* self); +int QsciLexerPython_BraceStyle(const QsciLexerPython* self); +QColor* QsciLexerPython_DefaultColor(const QsciLexerPython* self, int style); +bool QsciLexerPython_DefaultEolFill(const QsciLexerPython* self, int style); +QFont* QsciLexerPython_DefaultFont(const QsciLexerPython* self, int style); +QColor* QsciLexerPython_DefaultPaper(const QsciLexerPython* self, int style); +int QsciLexerPython_IndentationGuideView(const QsciLexerPython* self); +const char* QsciLexerPython_Keywords(const QsciLexerPython* self, int set); +struct miqt_string QsciLexerPython_Description(const QsciLexerPython* self, int style); +void QsciLexerPython_RefreshProperties(QsciLexerPython* self); +bool QsciLexerPython_FoldComments(const QsciLexerPython* self); +void QsciLexerPython_SetFoldCompact(QsciLexerPython* self, bool fold); +bool QsciLexerPython_FoldCompact(const QsciLexerPython* self); +bool QsciLexerPython_FoldQuotes(const QsciLexerPython* self); +int QsciLexerPython_IndentationWarning(const QsciLexerPython* self); +void QsciLexerPython_SetHighlightSubidentifiers(QsciLexerPython* self, bool enabled); +bool QsciLexerPython_HighlightSubidentifiers(const QsciLexerPython* self); +void QsciLexerPython_SetStringsOverNewlineAllowed(QsciLexerPython* self, bool allowed); +bool QsciLexerPython_StringsOverNewlineAllowed(const QsciLexerPython* self); +void QsciLexerPython_SetV2UnicodeAllowed(QsciLexerPython* self, bool allowed); +bool QsciLexerPython_V2UnicodeAllowed(const QsciLexerPython* self); +void QsciLexerPython_SetV3BinaryOctalAllowed(QsciLexerPython* self, bool allowed); +bool QsciLexerPython_V3BinaryOctalAllowed(const QsciLexerPython* self); +void QsciLexerPython_SetV3BytesAllowed(QsciLexerPython* self, bool allowed); +bool QsciLexerPython_V3BytesAllowed(const QsciLexerPython* self); +void QsciLexerPython_SetFoldComments(QsciLexerPython* self, bool fold); +void QsciLexerPython_SetFoldQuotes(QsciLexerPython* self, bool fold); +void QsciLexerPython_SetIndentationWarning(QsciLexerPython* self, int warn); +struct miqt_string QsciLexerPython_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerPython_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerPython_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerPython_TrUtf83(const char* s, const char* c, int n); +const char* QsciLexerPython_BlockStart1(const QsciLexerPython* self, int* style); +void QsciLexerPython_Delete(QsciLexerPython* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerruby.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerruby.cpp new file mode 100644 index 00000000..809e9c11 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerruby.cpp @@ -0,0 +1,184 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerruby.h" +#include "_cgo_export.h" + +QsciLexerRuby* QsciLexerRuby_new() { + return new QsciLexerRuby(); +} + +QsciLexerRuby* QsciLexerRuby_new2(QObject* parent) { + return new QsciLexerRuby(parent); +} + +QMetaObject* QsciLexerRuby_MetaObject(const QsciLexerRuby* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerRuby_Metacast(QsciLexerRuby* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerRuby_Tr(const char* s) { + QString _ret = QsciLexerRuby::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerRuby_TrUtf8(const char* s) { + QString _ret = QsciLexerRuby::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerRuby_Language(const QsciLexerRuby* self) { + return (const char*) self->language(); +} + +const char* QsciLexerRuby_Lexer(const QsciLexerRuby* self) { + return (const char*) self->lexer(); +} + +const char* QsciLexerRuby_BlockEnd(const QsciLexerRuby* self) { + return (const char*) self->blockEnd(); +} + +const char* QsciLexerRuby_BlockStart(const QsciLexerRuby* self) { + return (const char*) self->blockStart(); +} + +const char* QsciLexerRuby_BlockStartKeyword(const QsciLexerRuby* self) { + return (const char*) self->blockStartKeyword(); +} + +int QsciLexerRuby_BraceStyle(const QsciLexerRuby* self) { + return self->braceStyle(); +} + +QColor* QsciLexerRuby_DefaultColor(const QsciLexerRuby* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerRuby_DefaultEolFill(const QsciLexerRuby* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerRuby_DefaultFont(const QsciLexerRuby* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerRuby_DefaultPaper(const QsciLexerRuby* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerRuby_Keywords(const QsciLexerRuby* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerRuby_Description(const QsciLexerRuby* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerRuby_RefreshProperties(QsciLexerRuby* self) { + self->refreshProperties(); +} + +void QsciLexerRuby_SetFoldComments(QsciLexerRuby* self, bool fold) { + self->setFoldComments(fold); +} + +bool QsciLexerRuby_FoldComments(const QsciLexerRuby* self) { + return self->foldComments(); +} + +void QsciLexerRuby_SetFoldCompact(QsciLexerRuby* self, bool fold) { + self->setFoldCompact(fold); +} + +bool QsciLexerRuby_FoldCompact(const QsciLexerRuby* self) { + return self->foldCompact(); +} + +struct miqt_string QsciLexerRuby_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerRuby::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerRuby_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerRuby::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerRuby_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerRuby::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerRuby_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerRuby::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerRuby_BlockEnd1(const QsciLexerRuby* self, int* style) { + return (const char*) self->blockEnd(static_cast(style)); +} + +const char* QsciLexerRuby_BlockStart1(const QsciLexerRuby* self, int* style) { + return (const char*) self->blockStart(static_cast(style)); +} + +const char* QsciLexerRuby_BlockStartKeyword1(const QsciLexerRuby* self, int* style) { + return (const char*) self->blockStartKeyword(static_cast(style)); +} + +void QsciLexerRuby_Delete(QsciLexerRuby* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerruby.go b/qt-restricted-extras/qscintilla/gen_qscilexerruby.go new file mode 100644 index 00000000..743a828f --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerruby.go @@ -0,0 +1,280 @@ +package qscintilla + +/* + +#include "gen_qscilexerruby.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerRuby__ int + +const ( + QsciLexerRuby__Default QsciLexerRuby__ = 0 + QsciLexerRuby__Error QsciLexerRuby__ = 1 + QsciLexerRuby__Comment QsciLexerRuby__ = 2 + QsciLexerRuby__POD QsciLexerRuby__ = 3 + QsciLexerRuby__Number QsciLexerRuby__ = 4 + QsciLexerRuby__Keyword QsciLexerRuby__ = 5 + QsciLexerRuby__DoubleQuotedString QsciLexerRuby__ = 6 + QsciLexerRuby__SingleQuotedString QsciLexerRuby__ = 7 + QsciLexerRuby__ClassName QsciLexerRuby__ = 8 + QsciLexerRuby__FunctionMethodName QsciLexerRuby__ = 9 + QsciLexerRuby__Operator QsciLexerRuby__ = 10 + QsciLexerRuby__Identifier QsciLexerRuby__ = 11 + QsciLexerRuby__Regex QsciLexerRuby__ = 12 + QsciLexerRuby__Global QsciLexerRuby__ = 13 + QsciLexerRuby__Symbol QsciLexerRuby__ = 14 + QsciLexerRuby__ModuleName QsciLexerRuby__ = 15 + QsciLexerRuby__InstanceVariable QsciLexerRuby__ = 16 + QsciLexerRuby__ClassVariable QsciLexerRuby__ = 17 + QsciLexerRuby__Backticks QsciLexerRuby__ = 18 + QsciLexerRuby__DataSection QsciLexerRuby__ = 19 + QsciLexerRuby__HereDocumentDelimiter QsciLexerRuby__ = 20 + QsciLexerRuby__HereDocument QsciLexerRuby__ = 21 + QsciLexerRuby__PercentStringq QsciLexerRuby__ = 24 + QsciLexerRuby__PercentStringQ QsciLexerRuby__ = 25 + QsciLexerRuby__PercentStringx QsciLexerRuby__ = 26 + QsciLexerRuby__PercentStringr QsciLexerRuby__ = 27 + QsciLexerRuby__PercentStringw QsciLexerRuby__ = 28 + QsciLexerRuby__DemotedKeyword QsciLexerRuby__ = 29 + QsciLexerRuby__Stdin QsciLexerRuby__ = 30 + QsciLexerRuby__Stdout QsciLexerRuby__ = 31 + QsciLexerRuby__Stderr QsciLexerRuby__ = 40 +) + +type QsciLexerRuby struct { + h *C.QsciLexerRuby + *QsciLexer +} + +func (this *QsciLexerRuby) cPointer() *C.QsciLexerRuby { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerRuby) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerRuby(h *C.QsciLexerRuby) *QsciLexerRuby { + if h == nil { + return nil + } + return &QsciLexerRuby{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerRuby(h unsafe.Pointer) *QsciLexerRuby { + return newQsciLexerRuby((*C.QsciLexerRuby)(h)) +} + +// NewQsciLexerRuby constructs a new QsciLexerRuby object. +func NewQsciLexerRuby() *QsciLexerRuby { + ret := C.QsciLexerRuby_new() + return newQsciLexerRuby(ret) +} + +// NewQsciLexerRuby2 constructs a new QsciLexerRuby object. +func NewQsciLexerRuby2(parent *qt.QObject) *QsciLexerRuby { + ret := C.QsciLexerRuby_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerRuby(ret) +} + +func (this *QsciLexerRuby) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerRuby_MetaObject(this.h))) +} + +func (this *QsciLexerRuby) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerRuby_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerRuby_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerRuby_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerRuby_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerRuby_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerRuby) Language() string { + _ret := C.QsciLexerRuby_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerRuby) Lexer() string { + _ret := C.QsciLexerRuby_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerRuby) BlockEnd() string { + _ret := C.QsciLexerRuby_BlockEnd(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerRuby) BlockStart() string { + _ret := C.QsciLexerRuby_BlockStart(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerRuby) BlockStartKeyword() string { + _ret := C.QsciLexerRuby_BlockStartKeyword(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerRuby) BraceStyle() int { + return (int)(C.QsciLexerRuby_BraceStyle(this.h)) +} + +func (this *QsciLexerRuby) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerRuby_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerRuby) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerRuby_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerRuby) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerRuby_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerRuby) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerRuby_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerRuby) Keywords(set int) string { + _ret := C.QsciLexerRuby_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerRuby) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerRuby_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerRuby) RefreshProperties() { + C.QsciLexerRuby_RefreshProperties(this.h) +} + +func (this *QsciLexerRuby) SetFoldComments(fold bool) { + C.QsciLexerRuby_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerRuby) FoldComments() bool { + return (bool)(C.QsciLexerRuby_FoldComments(this.h)) +} + +func (this *QsciLexerRuby) SetFoldCompact(fold bool) { + C.QsciLexerRuby_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerRuby) FoldCompact() bool { + return (bool)(C.QsciLexerRuby_FoldCompact(this.h)) +} + +func QsciLexerRuby_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerRuby_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerRuby_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerRuby_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerRuby_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerRuby_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerRuby_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerRuby_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerRuby) BlockEnd1(style *int) string { + _ret := C.QsciLexerRuby_BlockEnd1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexerRuby) BlockStart1(style *int) string { + _ret := C.QsciLexerRuby_BlockStart1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +func (this *QsciLexerRuby) BlockStartKeyword1(style *int) string { + _ret := C.QsciLexerRuby_BlockStartKeyword1(this.h, (*C.int)(unsafe.Pointer(style))) + return C.GoString(_ret) +} + +// Delete this object from C++ memory. +func (this *QsciLexerRuby) Delete() { + C.QsciLexerRuby_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerRuby) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerRuby) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerruby.h b/qt-restricted-extras/qscintilla/gen_qscilexerruby.h new file mode 100644 index 00000000..47cbb151 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerruby.h @@ -0,0 +1,66 @@ +#ifndef GEN_QSCILEXERRUBY_H +#define GEN_QSCILEXERRUBY_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerRuby; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerRuby QsciLexerRuby; +#endif + +QsciLexerRuby* QsciLexerRuby_new(); +QsciLexerRuby* QsciLexerRuby_new2(QObject* parent); +QMetaObject* QsciLexerRuby_MetaObject(const QsciLexerRuby* self); +void* QsciLexerRuby_Metacast(QsciLexerRuby* self, const char* param1); +struct miqt_string QsciLexerRuby_Tr(const char* s); +struct miqt_string QsciLexerRuby_TrUtf8(const char* s); +const char* QsciLexerRuby_Language(const QsciLexerRuby* self); +const char* QsciLexerRuby_Lexer(const QsciLexerRuby* self); +const char* QsciLexerRuby_BlockEnd(const QsciLexerRuby* self); +const char* QsciLexerRuby_BlockStart(const QsciLexerRuby* self); +const char* QsciLexerRuby_BlockStartKeyword(const QsciLexerRuby* self); +int QsciLexerRuby_BraceStyle(const QsciLexerRuby* self); +QColor* QsciLexerRuby_DefaultColor(const QsciLexerRuby* self, int style); +bool QsciLexerRuby_DefaultEolFill(const QsciLexerRuby* self, int style); +QFont* QsciLexerRuby_DefaultFont(const QsciLexerRuby* self, int style); +QColor* QsciLexerRuby_DefaultPaper(const QsciLexerRuby* self, int style); +const char* QsciLexerRuby_Keywords(const QsciLexerRuby* self, int set); +struct miqt_string QsciLexerRuby_Description(const QsciLexerRuby* self, int style); +void QsciLexerRuby_RefreshProperties(QsciLexerRuby* self); +void QsciLexerRuby_SetFoldComments(QsciLexerRuby* self, bool fold); +bool QsciLexerRuby_FoldComments(const QsciLexerRuby* self); +void QsciLexerRuby_SetFoldCompact(QsciLexerRuby* self, bool fold); +bool QsciLexerRuby_FoldCompact(const QsciLexerRuby* self); +struct miqt_string QsciLexerRuby_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerRuby_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerRuby_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerRuby_TrUtf83(const char* s, const char* c, int n); +const char* QsciLexerRuby_BlockEnd1(const QsciLexerRuby* self, int* style); +const char* QsciLexerRuby_BlockStart1(const QsciLexerRuby* self, int* style); +const char* QsciLexerRuby_BlockStartKeyword1(const QsciLexerRuby* self, int* style); +void QsciLexerRuby_Delete(QsciLexerRuby* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerspice.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerspice.cpp new file mode 100644 index 00000000..2ba1e83c --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerspice.cpp @@ -0,0 +1,132 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerspice.h" +#include "_cgo_export.h" + +QsciLexerSpice* QsciLexerSpice_new() { + return new QsciLexerSpice(); +} + +QsciLexerSpice* QsciLexerSpice_new2(QObject* parent) { + return new QsciLexerSpice(parent); +} + +QMetaObject* QsciLexerSpice_MetaObject(const QsciLexerSpice* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerSpice_Metacast(QsciLexerSpice* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerSpice_Tr(const char* s) { + QString _ret = QsciLexerSpice::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerSpice_TrUtf8(const char* s) { + QString _ret = QsciLexerSpice::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerSpice_Language(const QsciLexerSpice* self) { + return (const char*) self->language(); +} + +const char* QsciLexerSpice_Lexer(const QsciLexerSpice* self) { + return (const char*) self->lexer(); +} + +int QsciLexerSpice_BraceStyle(const QsciLexerSpice* self) { + return self->braceStyle(); +} + +const char* QsciLexerSpice_Keywords(const QsciLexerSpice* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +QColor* QsciLexerSpice_DefaultColor(const QsciLexerSpice* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +QFont* QsciLexerSpice_DefaultFont(const QsciLexerSpice* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +struct miqt_string QsciLexerSpice_Description(const QsciLexerSpice* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerSpice_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerSpice::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerSpice_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerSpice::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerSpice_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerSpice::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerSpice_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerSpice::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerSpice_Delete(QsciLexerSpice* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerspice.go b/qt-restricted-extras/qscintilla/gen_qscilexerspice.go new file mode 100644 index 00000000..d4039c83 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerspice.go @@ -0,0 +1,197 @@ +package qscintilla + +/* + +#include "gen_qscilexerspice.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerSpice__ int + +const ( + QsciLexerSpice__Default QsciLexerSpice__ = 0 + QsciLexerSpice__Identifier QsciLexerSpice__ = 1 + QsciLexerSpice__Command QsciLexerSpice__ = 2 + QsciLexerSpice__Function QsciLexerSpice__ = 3 + QsciLexerSpice__Parameter QsciLexerSpice__ = 4 + QsciLexerSpice__Number QsciLexerSpice__ = 5 + QsciLexerSpice__Delimiter QsciLexerSpice__ = 6 + QsciLexerSpice__Value QsciLexerSpice__ = 7 + QsciLexerSpice__Comment QsciLexerSpice__ = 8 +) + +type QsciLexerSpice struct { + h *C.QsciLexerSpice + *QsciLexer +} + +func (this *QsciLexerSpice) cPointer() *C.QsciLexerSpice { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerSpice) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerSpice(h *C.QsciLexerSpice) *QsciLexerSpice { + if h == nil { + return nil + } + return &QsciLexerSpice{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerSpice(h unsafe.Pointer) *QsciLexerSpice { + return newQsciLexerSpice((*C.QsciLexerSpice)(h)) +} + +// NewQsciLexerSpice constructs a new QsciLexerSpice object. +func NewQsciLexerSpice() *QsciLexerSpice { + ret := C.QsciLexerSpice_new() + return newQsciLexerSpice(ret) +} + +// NewQsciLexerSpice2 constructs a new QsciLexerSpice object. +func NewQsciLexerSpice2(parent *qt.QObject) *QsciLexerSpice { + ret := C.QsciLexerSpice_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerSpice(ret) +} + +func (this *QsciLexerSpice) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerSpice_MetaObject(this.h))) +} + +func (this *QsciLexerSpice) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerSpice_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerSpice_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerSpice_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerSpice_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerSpice_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerSpice) Language() string { + _ret := C.QsciLexerSpice_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerSpice) Lexer() string { + _ret := C.QsciLexerSpice_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerSpice) BraceStyle() int { + return (int)(C.QsciLexerSpice_BraceStyle(this.h)) +} + +func (this *QsciLexerSpice) Keywords(set int) string { + _ret := C.QsciLexerSpice_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerSpice) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerSpice_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerSpice) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerSpice_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerSpice) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerSpice_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerSpice_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerSpice_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerSpice_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerSpice_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerSpice_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerSpice_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerSpice_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerSpice_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerSpice) Delete() { + C.QsciLexerSpice_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerSpice) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerSpice) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerspice.h b/qt-restricted-extras/qscintilla/gen_qscilexerspice.h new file mode 100644 index 00000000..1ce02cc4 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerspice.h @@ -0,0 +1,53 @@ +#ifndef GEN_QSCILEXERSPICE_H +#define GEN_QSCILEXERSPICE_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerSpice; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerSpice QsciLexerSpice; +#endif + +QsciLexerSpice* QsciLexerSpice_new(); +QsciLexerSpice* QsciLexerSpice_new2(QObject* parent); +QMetaObject* QsciLexerSpice_MetaObject(const QsciLexerSpice* self); +void* QsciLexerSpice_Metacast(QsciLexerSpice* self, const char* param1); +struct miqt_string QsciLexerSpice_Tr(const char* s); +struct miqt_string QsciLexerSpice_TrUtf8(const char* s); +const char* QsciLexerSpice_Language(const QsciLexerSpice* self); +const char* QsciLexerSpice_Lexer(const QsciLexerSpice* self); +int QsciLexerSpice_BraceStyle(const QsciLexerSpice* self); +const char* QsciLexerSpice_Keywords(const QsciLexerSpice* self, int set); +QColor* QsciLexerSpice_DefaultColor(const QsciLexerSpice* self, int style); +QFont* QsciLexerSpice_DefaultFont(const QsciLexerSpice* self, int style); +struct miqt_string QsciLexerSpice_Description(const QsciLexerSpice* self, int style); +struct miqt_string QsciLexerSpice_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerSpice_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerSpice_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerSpice_TrUtf83(const char* s, const char* c, int n); +void QsciLexerSpice_Delete(QsciLexerSpice* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexersql.cpp b/qt-restricted-extras/qscintilla/gen_qscilexersql.cpp new file mode 100644 index 00000000..77cd0d42 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexersql.cpp @@ -0,0 +1,208 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexersql.h" +#include "_cgo_export.h" + +QsciLexerSQL* QsciLexerSQL_new() { + return new QsciLexerSQL(); +} + +QsciLexerSQL* QsciLexerSQL_new2(QObject* parent) { + return new QsciLexerSQL(parent); +} + +QMetaObject* QsciLexerSQL_MetaObject(const QsciLexerSQL* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerSQL_Metacast(QsciLexerSQL* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerSQL_Tr(const char* s) { + QString _ret = QsciLexerSQL::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerSQL_TrUtf8(const char* s) { + QString _ret = QsciLexerSQL::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerSQL_Language(const QsciLexerSQL* self) { + return (const char*) self->language(); +} + +const char* QsciLexerSQL_Lexer(const QsciLexerSQL* self) { + return (const char*) self->lexer(); +} + +int QsciLexerSQL_BraceStyle(const QsciLexerSQL* self) { + return self->braceStyle(); +} + +QColor* QsciLexerSQL_DefaultColor(const QsciLexerSQL* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerSQL_DefaultEolFill(const QsciLexerSQL* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerSQL_DefaultFont(const QsciLexerSQL* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerSQL_DefaultPaper(const QsciLexerSQL* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerSQL_Keywords(const QsciLexerSQL* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerSQL_Description(const QsciLexerSQL* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerSQL_RefreshProperties(QsciLexerSQL* self) { + self->refreshProperties(); +} + +bool QsciLexerSQL_BackslashEscapes(const QsciLexerSQL* self) { + return self->backslashEscapes(); +} + +void QsciLexerSQL_SetDottedWords(QsciLexerSQL* self, bool enable) { + self->setDottedWords(enable); +} + +bool QsciLexerSQL_DottedWords(const QsciLexerSQL* self) { + return self->dottedWords(); +} + +void QsciLexerSQL_SetFoldAtElse(QsciLexerSQL* self, bool fold) { + self->setFoldAtElse(fold); +} + +bool QsciLexerSQL_FoldAtElse(const QsciLexerSQL* self) { + return self->foldAtElse(); +} + +bool QsciLexerSQL_FoldComments(const QsciLexerSQL* self) { + return self->foldComments(); +} + +bool QsciLexerSQL_FoldCompact(const QsciLexerSQL* self) { + return self->foldCompact(); +} + +void QsciLexerSQL_SetFoldOnlyBegin(QsciLexerSQL* self, bool fold) { + self->setFoldOnlyBegin(fold); +} + +bool QsciLexerSQL_FoldOnlyBegin(const QsciLexerSQL* self) { + return self->foldOnlyBegin(); +} + +void QsciLexerSQL_SetHashComments(QsciLexerSQL* self, bool enable) { + self->setHashComments(enable); +} + +bool QsciLexerSQL_HashComments(const QsciLexerSQL* self) { + return self->hashComments(); +} + +void QsciLexerSQL_SetQuotedIdentifiers(QsciLexerSQL* self, bool enable) { + self->setQuotedIdentifiers(enable); +} + +bool QsciLexerSQL_QuotedIdentifiers(const QsciLexerSQL* self) { + return self->quotedIdentifiers(); +} + +void QsciLexerSQL_SetBackslashEscapes(QsciLexerSQL* self, bool enable) { + self->setBackslashEscapes(enable); +} + +void QsciLexerSQL_SetFoldComments(QsciLexerSQL* self, bool fold) { + self->setFoldComments(fold); +} + +void QsciLexerSQL_SetFoldCompact(QsciLexerSQL* self, bool fold) { + self->setFoldCompact(fold); +} + +struct miqt_string QsciLexerSQL_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerSQL::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerSQL_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerSQL::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerSQL_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerSQL::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerSQL_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerSQL::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerSQL_Delete(QsciLexerSQL* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexersql.go b/qt-restricted-extras/qscintilla/gen_qscilexersql.go new file mode 100644 index 00000000..150bbf0a --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexersql.go @@ -0,0 +1,289 @@ +package qscintilla + +/* + +#include "gen_qscilexersql.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerSQL__ int + +const ( + QsciLexerSQL__Default QsciLexerSQL__ = 0 + QsciLexerSQL__Comment QsciLexerSQL__ = 1 + QsciLexerSQL__CommentLine QsciLexerSQL__ = 2 + QsciLexerSQL__CommentDoc QsciLexerSQL__ = 3 + QsciLexerSQL__Number QsciLexerSQL__ = 4 + QsciLexerSQL__Keyword QsciLexerSQL__ = 5 + QsciLexerSQL__DoubleQuotedString QsciLexerSQL__ = 6 + QsciLexerSQL__SingleQuotedString QsciLexerSQL__ = 7 + QsciLexerSQL__PlusKeyword QsciLexerSQL__ = 8 + QsciLexerSQL__PlusPrompt QsciLexerSQL__ = 9 + QsciLexerSQL__Operator QsciLexerSQL__ = 10 + QsciLexerSQL__Identifier QsciLexerSQL__ = 11 + QsciLexerSQL__PlusComment QsciLexerSQL__ = 13 + QsciLexerSQL__CommentLineHash QsciLexerSQL__ = 15 + QsciLexerSQL__CommentDocKeyword QsciLexerSQL__ = 17 + QsciLexerSQL__CommentDocKeywordError QsciLexerSQL__ = 18 + QsciLexerSQL__KeywordSet5 QsciLexerSQL__ = 19 + QsciLexerSQL__KeywordSet6 QsciLexerSQL__ = 20 + QsciLexerSQL__KeywordSet7 QsciLexerSQL__ = 21 + QsciLexerSQL__KeywordSet8 QsciLexerSQL__ = 22 + QsciLexerSQL__QuotedIdentifier QsciLexerSQL__ = 23 + QsciLexerSQL__QuotedOperator QsciLexerSQL__ = 24 +) + +type QsciLexerSQL struct { + h *C.QsciLexerSQL + *QsciLexer +} + +func (this *QsciLexerSQL) cPointer() *C.QsciLexerSQL { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerSQL) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerSQL(h *C.QsciLexerSQL) *QsciLexerSQL { + if h == nil { + return nil + } + return &QsciLexerSQL{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerSQL(h unsafe.Pointer) *QsciLexerSQL { + return newQsciLexerSQL((*C.QsciLexerSQL)(h)) +} + +// NewQsciLexerSQL constructs a new QsciLexerSQL object. +func NewQsciLexerSQL() *QsciLexerSQL { + ret := C.QsciLexerSQL_new() + return newQsciLexerSQL(ret) +} + +// NewQsciLexerSQL2 constructs a new QsciLexerSQL object. +func NewQsciLexerSQL2(parent *qt.QObject) *QsciLexerSQL { + ret := C.QsciLexerSQL_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerSQL(ret) +} + +func (this *QsciLexerSQL) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerSQL_MetaObject(this.h))) +} + +func (this *QsciLexerSQL) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerSQL_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerSQL_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerSQL_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerSQL_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerSQL_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerSQL) Language() string { + _ret := C.QsciLexerSQL_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerSQL) Lexer() string { + _ret := C.QsciLexerSQL_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerSQL) BraceStyle() int { + return (int)(C.QsciLexerSQL_BraceStyle(this.h)) +} + +func (this *QsciLexerSQL) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerSQL_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerSQL) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerSQL_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerSQL) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerSQL_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerSQL) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerSQL_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerSQL) Keywords(set int) string { + _ret := C.QsciLexerSQL_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerSQL) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerSQL_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerSQL) RefreshProperties() { + C.QsciLexerSQL_RefreshProperties(this.h) +} + +func (this *QsciLexerSQL) BackslashEscapes() bool { + return (bool)(C.QsciLexerSQL_BackslashEscapes(this.h)) +} + +func (this *QsciLexerSQL) SetDottedWords(enable bool) { + C.QsciLexerSQL_SetDottedWords(this.h, (C.bool)(enable)) +} + +func (this *QsciLexerSQL) DottedWords() bool { + return (bool)(C.QsciLexerSQL_DottedWords(this.h)) +} + +func (this *QsciLexerSQL) SetFoldAtElse(fold bool) { + C.QsciLexerSQL_SetFoldAtElse(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerSQL) FoldAtElse() bool { + return (bool)(C.QsciLexerSQL_FoldAtElse(this.h)) +} + +func (this *QsciLexerSQL) FoldComments() bool { + return (bool)(C.QsciLexerSQL_FoldComments(this.h)) +} + +func (this *QsciLexerSQL) FoldCompact() bool { + return (bool)(C.QsciLexerSQL_FoldCompact(this.h)) +} + +func (this *QsciLexerSQL) SetFoldOnlyBegin(fold bool) { + C.QsciLexerSQL_SetFoldOnlyBegin(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerSQL) FoldOnlyBegin() bool { + return (bool)(C.QsciLexerSQL_FoldOnlyBegin(this.h)) +} + +func (this *QsciLexerSQL) SetHashComments(enable bool) { + C.QsciLexerSQL_SetHashComments(this.h, (C.bool)(enable)) +} + +func (this *QsciLexerSQL) HashComments() bool { + return (bool)(C.QsciLexerSQL_HashComments(this.h)) +} + +func (this *QsciLexerSQL) SetQuotedIdentifiers(enable bool) { + C.QsciLexerSQL_SetQuotedIdentifiers(this.h, (C.bool)(enable)) +} + +func (this *QsciLexerSQL) QuotedIdentifiers() bool { + return (bool)(C.QsciLexerSQL_QuotedIdentifiers(this.h)) +} + +func (this *QsciLexerSQL) SetBackslashEscapes(enable bool) { + C.QsciLexerSQL_SetBackslashEscapes(this.h, (C.bool)(enable)) +} + +func (this *QsciLexerSQL) SetFoldComments(fold bool) { + C.QsciLexerSQL_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerSQL) SetFoldCompact(fold bool) { + C.QsciLexerSQL_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func QsciLexerSQL_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerSQL_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerSQL_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerSQL_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerSQL_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerSQL_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerSQL_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerSQL_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerSQL) Delete() { + C.QsciLexerSQL_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerSQL) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerSQL) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexersql.h b/qt-restricted-extras/qscintilla/gen_qscilexersql.h new file mode 100644 index 00000000..9afb262c --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexersql.h @@ -0,0 +1,72 @@ +#ifndef GEN_QSCILEXERSQL_H +#define GEN_QSCILEXERSQL_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerSQL; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerSQL QsciLexerSQL; +#endif + +QsciLexerSQL* QsciLexerSQL_new(); +QsciLexerSQL* QsciLexerSQL_new2(QObject* parent); +QMetaObject* QsciLexerSQL_MetaObject(const QsciLexerSQL* self); +void* QsciLexerSQL_Metacast(QsciLexerSQL* self, const char* param1); +struct miqt_string QsciLexerSQL_Tr(const char* s); +struct miqt_string QsciLexerSQL_TrUtf8(const char* s); +const char* QsciLexerSQL_Language(const QsciLexerSQL* self); +const char* QsciLexerSQL_Lexer(const QsciLexerSQL* self); +int QsciLexerSQL_BraceStyle(const QsciLexerSQL* self); +QColor* QsciLexerSQL_DefaultColor(const QsciLexerSQL* self, int style); +bool QsciLexerSQL_DefaultEolFill(const QsciLexerSQL* self, int style); +QFont* QsciLexerSQL_DefaultFont(const QsciLexerSQL* self, int style); +QColor* QsciLexerSQL_DefaultPaper(const QsciLexerSQL* self, int style); +const char* QsciLexerSQL_Keywords(const QsciLexerSQL* self, int set); +struct miqt_string QsciLexerSQL_Description(const QsciLexerSQL* self, int style); +void QsciLexerSQL_RefreshProperties(QsciLexerSQL* self); +bool QsciLexerSQL_BackslashEscapes(const QsciLexerSQL* self); +void QsciLexerSQL_SetDottedWords(QsciLexerSQL* self, bool enable); +bool QsciLexerSQL_DottedWords(const QsciLexerSQL* self); +void QsciLexerSQL_SetFoldAtElse(QsciLexerSQL* self, bool fold); +bool QsciLexerSQL_FoldAtElse(const QsciLexerSQL* self); +bool QsciLexerSQL_FoldComments(const QsciLexerSQL* self); +bool QsciLexerSQL_FoldCompact(const QsciLexerSQL* self); +void QsciLexerSQL_SetFoldOnlyBegin(QsciLexerSQL* self, bool fold); +bool QsciLexerSQL_FoldOnlyBegin(const QsciLexerSQL* self); +void QsciLexerSQL_SetHashComments(QsciLexerSQL* self, bool enable); +bool QsciLexerSQL_HashComments(const QsciLexerSQL* self); +void QsciLexerSQL_SetQuotedIdentifiers(QsciLexerSQL* self, bool enable); +bool QsciLexerSQL_QuotedIdentifiers(const QsciLexerSQL* self); +void QsciLexerSQL_SetBackslashEscapes(QsciLexerSQL* self, bool enable); +void QsciLexerSQL_SetFoldComments(QsciLexerSQL* self, bool fold); +void QsciLexerSQL_SetFoldCompact(QsciLexerSQL* self, bool fold); +struct miqt_string QsciLexerSQL_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerSQL_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerSQL_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerSQL_TrUtf83(const char* s, const char* c, int n); +void QsciLexerSQL_Delete(QsciLexerSQL* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexertcl.cpp b/qt-restricted-extras/qscintilla/gen_qscilexertcl.cpp new file mode 100644 index 00000000..0889feac --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexertcl.cpp @@ -0,0 +1,152 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexertcl.h" +#include "_cgo_export.h" + +QsciLexerTCL* QsciLexerTCL_new() { + return new QsciLexerTCL(); +} + +QsciLexerTCL* QsciLexerTCL_new2(QObject* parent) { + return new QsciLexerTCL(parent); +} + +QMetaObject* QsciLexerTCL_MetaObject(const QsciLexerTCL* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerTCL_Metacast(QsciLexerTCL* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerTCL_Tr(const char* s) { + QString _ret = QsciLexerTCL::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerTCL_TrUtf8(const char* s) { + QString _ret = QsciLexerTCL::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerTCL_Language(const QsciLexerTCL* self) { + return (const char*) self->language(); +} + +const char* QsciLexerTCL_Lexer(const QsciLexerTCL* self) { + return (const char*) self->lexer(); +} + +int QsciLexerTCL_BraceStyle(const QsciLexerTCL* self) { + return self->braceStyle(); +} + +QColor* QsciLexerTCL_DefaultColor(const QsciLexerTCL* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerTCL_DefaultEolFill(const QsciLexerTCL* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerTCL_DefaultFont(const QsciLexerTCL* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerTCL_DefaultPaper(const QsciLexerTCL* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerTCL_Keywords(const QsciLexerTCL* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerTCL_Description(const QsciLexerTCL* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerTCL_RefreshProperties(QsciLexerTCL* self) { + self->refreshProperties(); +} + +void QsciLexerTCL_SetFoldComments(QsciLexerTCL* self, bool fold) { + self->setFoldComments(fold); +} + +bool QsciLexerTCL_FoldComments(const QsciLexerTCL* self) { + return self->foldComments(); +} + +struct miqt_string QsciLexerTCL_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerTCL::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerTCL_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerTCL::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerTCL_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerTCL::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerTCL_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerTCL::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerTCL_Delete(QsciLexerTCL* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexertcl.go b/qt-restricted-extras/qscintilla/gen_qscilexertcl.go new file mode 100644 index 00000000..7f1700a0 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexertcl.go @@ -0,0 +1,233 @@ +package qscintilla + +/* + +#include "gen_qscilexertcl.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerTCL__ int + +const ( + QsciLexerTCL__Default QsciLexerTCL__ = 0 + QsciLexerTCL__Comment QsciLexerTCL__ = 1 + QsciLexerTCL__CommentLine QsciLexerTCL__ = 2 + QsciLexerTCL__Number QsciLexerTCL__ = 3 + QsciLexerTCL__QuotedKeyword QsciLexerTCL__ = 4 + QsciLexerTCL__QuotedString QsciLexerTCL__ = 5 + QsciLexerTCL__Operator QsciLexerTCL__ = 6 + QsciLexerTCL__Identifier QsciLexerTCL__ = 7 + QsciLexerTCL__Substitution QsciLexerTCL__ = 8 + QsciLexerTCL__SubstitutionBrace QsciLexerTCL__ = 9 + QsciLexerTCL__Modifier QsciLexerTCL__ = 10 + QsciLexerTCL__ExpandKeyword QsciLexerTCL__ = 11 + QsciLexerTCL__TCLKeyword QsciLexerTCL__ = 12 + QsciLexerTCL__TkKeyword QsciLexerTCL__ = 13 + QsciLexerTCL__ITCLKeyword QsciLexerTCL__ = 14 + QsciLexerTCL__TkCommand QsciLexerTCL__ = 15 + QsciLexerTCL__KeywordSet6 QsciLexerTCL__ = 16 + QsciLexerTCL__KeywordSet7 QsciLexerTCL__ = 17 + QsciLexerTCL__KeywordSet8 QsciLexerTCL__ = 18 + QsciLexerTCL__KeywordSet9 QsciLexerTCL__ = 19 + QsciLexerTCL__CommentBox QsciLexerTCL__ = 20 + QsciLexerTCL__CommentBlock QsciLexerTCL__ = 21 +) + +type QsciLexerTCL struct { + h *C.QsciLexerTCL + *QsciLexer +} + +func (this *QsciLexerTCL) cPointer() *C.QsciLexerTCL { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerTCL) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerTCL(h *C.QsciLexerTCL) *QsciLexerTCL { + if h == nil { + return nil + } + return &QsciLexerTCL{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerTCL(h unsafe.Pointer) *QsciLexerTCL { + return newQsciLexerTCL((*C.QsciLexerTCL)(h)) +} + +// NewQsciLexerTCL constructs a new QsciLexerTCL object. +func NewQsciLexerTCL() *QsciLexerTCL { + ret := C.QsciLexerTCL_new() + return newQsciLexerTCL(ret) +} + +// NewQsciLexerTCL2 constructs a new QsciLexerTCL object. +func NewQsciLexerTCL2(parent *qt.QObject) *QsciLexerTCL { + ret := C.QsciLexerTCL_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerTCL(ret) +} + +func (this *QsciLexerTCL) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerTCL_MetaObject(this.h))) +} + +func (this *QsciLexerTCL) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerTCL_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerTCL_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerTCL_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerTCL_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerTCL_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerTCL) Language() string { + _ret := C.QsciLexerTCL_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerTCL) Lexer() string { + _ret := C.QsciLexerTCL_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerTCL) BraceStyle() int { + return (int)(C.QsciLexerTCL_BraceStyle(this.h)) +} + +func (this *QsciLexerTCL) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerTCL_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerTCL) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerTCL_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerTCL) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerTCL_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerTCL) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerTCL_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerTCL) Keywords(set int) string { + _ret := C.QsciLexerTCL_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerTCL) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerTCL_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerTCL) RefreshProperties() { + C.QsciLexerTCL_RefreshProperties(this.h) +} + +func (this *QsciLexerTCL) SetFoldComments(fold bool) { + C.QsciLexerTCL_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerTCL) FoldComments() bool { + return (bool)(C.QsciLexerTCL_FoldComments(this.h)) +} + +func QsciLexerTCL_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerTCL_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerTCL_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerTCL_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerTCL_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerTCL_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerTCL_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerTCL_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerTCL) Delete() { + C.QsciLexerTCL_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerTCL) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerTCL) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexertcl.h b/qt-restricted-extras/qscintilla/gen_qscilexertcl.h new file mode 100644 index 00000000..3319bc71 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexertcl.h @@ -0,0 +1,58 @@ +#ifndef GEN_QSCILEXERTCL_H +#define GEN_QSCILEXERTCL_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerTCL; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerTCL QsciLexerTCL; +#endif + +QsciLexerTCL* QsciLexerTCL_new(); +QsciLexerTCL* QsciLexerTCL_new2(QObject* parent); +QMetaObject* QsciLexerTCL_MetaObject(const QsciLexerTCL* self); +void* QsciLexerTCL_Metacast(QsciLexerTCL* self, const char* param1); +struct miqt_string QsciLexerTCL_Tr(const char* s); +struct miqt_string QsciLexerTCL_TrUtf8(const char* s); +const char* QsciLexerTCL_Language(const QsciLexerTCL* self); +const char* QsciLexerTCL_Lexer(const QsciLexerTCL* self); +int QsciLexerTCL_BraceStyle(const QsciLexerTCL* self); +QColor* QsciLexerTCL_DefaultColor(const QsciLexerTCL* self, int style); +bool QsciLexerTCL_DefaultEolFill(const QsciLexerTCL* self, int style); +QFont* QsciLexerTCL_DefaultFont(const QsciLexerTCL* self, int style); +QColor* QsciLexerTCL_DefaultPaper(const QsciLexerTCL* self, int style); +const char* QsciLexerTCL_Keywords(const QsciLexerTCL* self, int set); +struct miqt_string QsciLexerTCL_Description(const QsciLexerTCL* self, int style); +void QsciLexerTCL_RefreshProperties(QsciLexerTCL* self); +void QsciLexerTCL_SetFoldComments(QsciLexerTCL* self, bool fold); +bool QsciLexerTCL_FoldComments(const QsciLexerTCL* self); +struct miqt_string QsciLexerTCL_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerTCL_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerTCL_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerTCL_TrUtf83(const char* s, const char* c, int n); +void QsciLexerTCL_Delete(QsciLexerTCL* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexertex.cpp b/qt-restricted-extras/qscintilla/gen_qscilexertex.cpp new file mode 100644 index 00000000..16fed6d0 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexertex.cpp @@ -0,0 +1,163 @@ +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexertex.h" +#include "_cgo_export.h" + +QsciLexerTeX* QsciLexerTeX_new() { + return new QsciLexerTeX(); +} + +QsciLexerTeX* QsciLexerTeX_new2(QObject* parent) { + return new QsciLexerTeX(parent); +} + +QMetaObject* QsciLexerTeX_MetaObject(const QsciLexerTeX* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerTeX_Metacast(QsciLexerTeX* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerTeX_Tr(const char* s) { + QString _ret = QsciLexerTeX::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerTeX_TrUtf8(const char* s) { + QString _ret = QsciLexerTeX::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerTeX_Language(const QsciLexerTeX* self) { + return (const char*) self->language(); +} + +const char* QsciLexerTeX_Lexer(const QsciLexerTeX* self) { + return (const char*) self->lexer(); +} + +const char* QsciLexerTeX_WordCharacters(const QsciLexerTeX* self) { + return (const char*) self->wordCharacters(); +} + +QColor* QsciLexerTeX_DefaultColor(const QsciLexerTeX* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +const char* QsciLexerTeX_Keywords(const QsciLexerTeX* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerTeX_Description(const QsciLexerTeX* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerTeX_RefreshProperties(QsciLexerTeX* self) { + self->refreshProperties(); +} + +void QsciLexerTeX_SetFoldComments(QsciLexerTeX* self, bool fold) { + self->setFoldComments(fold); +} + +bool QsciLexerTeX_FoldComments(const QsciLexerTeX* self) { + return self->foldComments(); +} + +void QsciLexerTeX_SetFoldCompact(QsciLexerTeX* self, bool fold) { + self->setFoldCompact(fold); +} + +bool QsciLexerTeX_FoldCompact(const QsciLexerTeX* self) { + return self->foldCompact(); +} + +void QsciLexerTeX_SetProcessComments(QsciLexerTeX* self, bool enable) { + self->setProcessComments(enable); +} + +bool QsciLexerTeX_ProcessComments(const QsciLexerTeX* self) { + return self->processComments(); +} + +void QsciLexerTeX_SetProcessIf(QsciLexerTeX* self, bool enable) { + self->setProcessIf(enable); +} + +bool QsciLexerTeX_ProcessIf(const QsciLexerTeX* self) { + return self->processIf(); +} + +struct miqt_string QsciLexerTeX_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerTeX::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerTeX_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerTeX::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerTeX_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerTeX::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerTeX_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerTeX::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerTeX_Delete(QsciLexerTeX* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexertex.go b/qt-restricted-extras/qscintilla/gen_qscilexertex.go new file mode 100644 index 00000000..69492f2d --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexertex.go @@ -0,0 +1,224 @@ +package qscintilla + +/* + +#include "gen_qscilexertex.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerTeX__ int + +const ( + QsciLexerTeX__Default QsciLexerTeX__ = 0 + QsciLexerTeX__Special QsciLexerTeX__ = 1 + QsciLexerTeX__Group QsciLexerTeX__ = 2 + QsciLexerTeX__Symbol QsciLexerTeX__ = 3 + QsciLexerTeX__Command QsciLexerTeX__ = 4 + QsciLexerTeX__Text QsciLexerTeX__ = 5 +) + +type QsciLexerTeX struct { + h *C.QsciLexerTeX + *QsciLexer +} + +func (this *QsciLexerTeX) cPointer() *C.QsciLexerTeX { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerTeX) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerTeX(h *C.QsciLexerTeX) *QsciLexerTeX { + if h == nil { + return nil + } + return &QsciLexerTeX{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerTeX(h unsafe.Pointer) *QsciLexerTeX { + return newQsciLexerTeX((*C.QsciLexerTeX)(h)) +} + +// NewQsciLexerTeX constructs a new QsciLexerTeX object. +func NewQsciLexerTeX() *QsciLexerTeX { + ret := C.QsciLexerTeX_new() + return newQsciLexerTeX(ret) +} + +// NewQsciLexerTeX2 constructs a new QsciLexerTeX object. +func NewQsciLexerTeX2(parent *qt.QObject) *QsciLexerTeX { + ret := C.QsciLexerTeX_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerTeX(ret) +} + +func (this *QsciLexerTeX) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerTeX_MetaObject(this.h))) +} + +func (this *QsciLexerTeX) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerTeX_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerTeX_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerTeX_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerTeX_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerTeX_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerTeX) Language() string { + _ret := C.QsciLexerTeX_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerTeX) Lexer() string { + _ret := C.QsciLexerTeX_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerTeX) WordCharacters() string { + _ret := C.QsciLexerTeX_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerTeX) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerTeX_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerTeX) Keywords(set int) string { + _ret := C.QsciLexerTeX_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerTeX) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerTeX_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerTeX) RefreshProperties() { + C.QsciLexerTeX_RefreshProperties(this.h) +} + +func (this *QsciLexerTeX) SetFoldComments(fold bool) { + C.QsciLexerTeX_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerTeX) FoldComments() bool { + return (bool)(C.QsciLexerTeX_FoldComments(this.h)) +} + +func (this *QsciLexerTeX) SetFoldCompact(fold bool) { + C.QsciLexerTeX_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerTeX) FoldCompact() bool { + return (bool)(C.QsciLexerTeX_FoldCompact(this.h)) +} + +func (this *QsciLexerTeX) SetProcessComments(enable bool) { + C.QsciLexerTeX_SetProcessComments(this.h, (C.bool)(enable)) +} + +func (this *QsciLexerTeX) ProcessComments() bool { + return (bool)(C.QsciLexerTeX_ProcessComments(this.h)) +} + +func (this *QsciLexerTeX) SetProcessIf(enable bool) { + C.QsciLexerTeX_SetProcessIf(this.h, (C.bool)(enable)) +} + +func (this *QsciLexerTeX) ProcessIf() bool { + return (bool)(C.QsciLexerTeX_ProcessIf(this.h)) +} + +func QsciLexerTeX_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerTeX_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerTeX_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerTeX_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerTeX_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerTeX_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerTeX_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerTeX_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerTeX) Delete() { + C.QsciLexerTeX_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerTeX) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerTeX) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexertex.h b/qt-restricted-extras/qscintilla/gen_qscilexertex.h new file mode 100644 index 00000000..183d1efa --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexertex.h @@ -0,0 +1,59 @@ +#ifndef GEN_QSCILEXERTEX_H +#define GEN_QSCILEXERTEX_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QMetaObject; +class QObject; +class QsciLexerTeX; +#else +typedef struct QColor QColor; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerTeX QsciLexerTeX; +#endif + +QsciLexerTeX* QsciLexerTeX_new(); +QsciLexerTeX* QsciLexerTeX_new2(QObject* parent); +QMetaObject* QsciLexerTeX_MetaObject(const QsciLexerTeX* self); +void* QsciLexerTeX_Metacast(QsciLexerTeX* self, const char* param1); +struct miqt_string QsciLexerTeX_Tr(const char* s); +struct miqt_string QsciLexerTeX_TrUtf8(const char* s); +const char* QsciLexerTeX_Language(const QsciLexerTeX* self); +const char* QsciLexerTeX_Lexer(const QsciLexerTeX* self); +const char* QsciLexerTeX_WordCharacters(const QsciLexerTeX* self); +QColor* QsciLexerTeX_DefaultColor(const QsciLexerTeX* self, int style); +const char* QsciLexerTeX_Keywords(const QsciLexerTeX* self, int set); +struct miqt_string QsciLexerTeX_Description(const QsciLexerTeX* self, int style); +void QsciLexerTeX_RefreshProperties(QsciLexerTeX* self); +void QsciLexerTeX_SetFoldComments(QsciLexerTeX* self, bool fold); +bool QsciLexerTeX_FoldComments(const QsciLexerTeX* self); +void QsciLexerTeX_SetFoldCompact(QsciLexerTeX* self, bool fold); +bool QsciLexerTeX_FoldCompact(const QsciLexerTeX* self); +void QsciLexerTeX_SetProcessComments(QsciLexerTeX* self, bool enable); +bool QsciLexerTeX_ProcessComments(const QsciLexerTeX* self); +void QsciLexerTeX_SetProcessIf(QsciLexerTeX* self, bool enable); +bool QsciLexerTeX_ProcessIf(const QsciLexerTeX* self); +struct miqt_string QsciLexerTeX_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerTeX_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerTeX_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerTeX_TrUtf83(const char* s, const char* c, int n); +void QsciLexerTeX_Delete(QsciLexerTeX* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerverilog.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerverilog.cpp new file mode 100644 index 00000000..0a94d636 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerverilog.cpp @@ -0,0 +1,188 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerverilog.h" +#include "_cgo_export.h" + +QsciLexerVerilog* QsciLexerVerilog_new() { + return new QsciLexerVerilog(); +} + +QsciLexerVerilog* QsciLexerVerilog_new2(QObject* parent) { + return new QsciLexerVerilog(parent); +} + +QMetaObject* QsciLexerVerilog_MetaObject(const QsciLexerVerilog* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerVerilog_Metacast(QsciLexerVerilog* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerVerilog_Tr(const char* s) { + QString _ret = QsciLexerVerilog::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerVerilog_TrUtf8(const char* s) { + QString _ret = QsciLexerVerilog::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerVerilog_Language(const QsciLexerVerilog* self) { + return (const char*) self->language(); +} + +const char* QsciLexerVerilog_Lexer(const QsciLexerVerilog* self) { + return (const char*) self->lexer(); +} + +int QsciLexerVerilog_BraceStyle(const QsciLexerVerilog* self) { + return self->braceStyle(); +} + +const char* QsciLexerVerilog_WordCharacters(const QsciLexerVerilog* self) { + return (const char*) self->wordCharacters(); +} + +QColor* QsciLexerVerilog_DefaultColor(const QsciLexerVerilog* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerVerilog_DefaultEolFill(const QsciLexerVerilog* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerVerilog_DefaultFont(const QsciLexerVerilog* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerVerilog_DefaultPaper(const QsciLexerVerilog* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerVerilog_Keywords(const QsciLexerVerilog* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerVerilog_Description(const QsciLexerVerilog* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerVerilog_RefreshProperties(QsciLexerVerilog* self) { + self->refreshProperties(); +} + +void QsciLexerVerilog_SetFoldAtElse(QsciLexerVerilog* self, bool fold) { + self->setFoldAtElse(fold); +} + +bool QsciLexerVerilog_FoldAtElse(const QsciLexerVerilog* self) { + return self->foldAtElse(); +} + +void QsciLexerVerilog_SetFoldComments(QsciLexerVerilog* self, bool fold) { + self->setFoldComments(fold); +} + +bool QsciLexerVerilog_FoldComments(const QsciLexerVerilog* self) { + return self->foldComments(); +} + +void QsciLexerVerilog_SetFoldCompact(QsciLexerVerilog* self, bool fold) { + self->setFoldCompact(fold); +} + +bool QsciLexerVerilog_FoldCompact(const QsciLexerVerilog* self) { + return self->foldCompact(); +} + +void QsciLexerVerilog_SetFoldPreprocessor(QsciLexerVerilog* self, bool fold) { + self->setFoldPreprocessor(fold); +} + +bool QsciLexerVerilog_FoldPreprocessor(const QsciLexerVerilog* self) { + return self->foldPreprocessor(); +} + +void QsciLexerVerilog_SetFoldAtModule(QsciLexerVerilog* self, bool fold) { + self->setFoldAtModule(fold); +} + +bool QsciLexerVerilog_FoldAtModule(const QsciLexerVerilog* self) { + return self->foldAtModule(); +} + +struct miqt_string QsciLexerVerilog_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerVerilog::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerVerilog_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerVerilog::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerVerilog_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerVerilog::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerVerilog_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerVerilog::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerVerilog_Delete(QsciLexerVerilog* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerverilog.go b/qt-restricted-extras/qscintilla/gen_qscilexerverilog.go new file mode 100644 index 00000000..eea5c1ef --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerverilog.go @@ -0,0 +1,286 @@ +package qscintilla + +/* + +#include "gen_qscilexerverilog.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerVerilog__ int + +const ( + QsciLexerVerilog__Default QsciLexerVerilog__ = 0 + QsciLexerVerilog__InactiveDefault QsciLexerVerilog__ = 64 + QsciLexerVerilog__Comment QsciLexerVerilog__ = 1 + QsciLexerVerilog__InactiveComment QsciLexerVerilog__ = 65 + QsciLexerVerilog__CommentLine QsciLexerVerilog__ = 2 + QsciLexerVerilog__InactiveCommentLine QsciLexerVerilog__ = 66 + QsciLexerVerilog__CommentBang QsciLexerVerilog__ = 3 + QsciLexerVerilog__InactiveCommentBang QsciLexerVerilog__ = 67 + QsciLexerVerilog__Number QsciLexerVerilog__ = 4 + QsciLexerVerilog__InactiveNumber QsciLexerVerilog__ = 68 + QsciLexerVerilog__Keyword QsciLexerVerilog__ = 5 + QsciLexerVerilog__InactiveKeyword QsciLexerVerilog__ = 69 + QsciLexerVerilog__String QsciLexerVerilog__ = 6 + QsciLexerVerilog__InactiveString QsciLexerVerilog__ = 70 + QsciLexerVerilog__KeywordSet2 QsciLexerVerilog__ = 7 + QsciLexerVerilog__InactiveKeywordSet2 QsciLexerVerilog__ = 71 + QsciLexerVerilog__SystemTask QsciLexerVerilog__ = 8 + QsciLexerVerilog__InactiveSystemTask QsciLexerVerilog__ = 72 + QsciLexerVerilog__Preprocessor QsciLexerVerilog__ = 9 + QsciLexerVerilog__InactivePreprocessor QsciLexerVerilog__ = 73 + QsciLexerVerilog__Operator QsciLexerVerilog__ = 10 + QsciLexerVerilog__InactiveOperator QsciLexerVerilog__ = 74 + QsciLexerVerilog__Identifier QsciLexerVerilog__ = 11 + QsciLexerVerilog__InactiveIdentifier QsciLexerVerilog__ = 75 + QsciLexerVerilog__UnclosedString QsciLexerVerilog__ = 12 + QsciLexerVerilog__InactiveUnclosedString QsciLexerVerilog__ = 76 + QsciLexerVerilog__UserKeywordSet QsciLexerVerilog__ = 19 + QsciLexerVerilog__InactiveUserKeywordSet QsciLexerVerilog__ = 83 + QsciLexerVerilog__CommentKeyword QsciLexerVerilog__ = 20 + QsciLexerVerilog__InactiveCommentKeyword QsciLexerVerilog__ = 84 + QsciLexerVerilog__DeclareInputPort QsciLexerVerilog__ = 21 + QsciLexerVerilog__InactiveDeclareInputPort QsciLexerVerilog__ = 85 + QsciLexerVerilog__DeclareOutputPort QsciLexerVerilog__ = 22 + QsciLexerVerilog__InactiveDeclareOutputPort QsciLexerVerilog__ = 86 + QsciLexerVerilog__DeclareInputOutputPort QsciLexerVerilog__ = 23 + QsciLexerVerilog__InactiveDeclareInputOutputPort QsciLexerVerilog__ = 87 + QsciLexerVerilog__PortConnection QsciLexerVerilog__ = 24 + QsciLexerVerilog__InactivePortConnection QsciLexerVerilog__ = 88 +) + +type QsciLexerVerilog struct { + h *C.QsciLexerVerilog + *QsciLexer +} + +func (this *QsciLexerVerilog) cPointer() *C.QsciLexerVerilog { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerVerilog) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerVerilog(h *C.QsciLexerVerilog) *QsciLexerVerilog { + if h == nil { + return nil + } + return &QsciLexerVerilog{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerVerilog(h unsafe.Pointer) *QsciLexerVerilog { + return newQsciLexerVerilog((*C.QsciLexerVerilog)(h)) +} + +// NewQsciLexerVerilog constructs a new QsciLexerVerilog object. +func NewQsciLexerVerilog() *QsciLexerVerilog { + ret := C.QsciLexerVerilog_new() + return newQsciLexerVerilog(ret) +} + +// NewQsciLexerVerilog2 constructs a new QsciLexerVerilog object. +func NewQsciLexerVerilog2(parent *qt.QObject) *QsciLexerVerilog { + ret := C.QsciLexerVerilog_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerVerilog(ret) +} + +func (this *QsciLexerVerilog) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerVerilog_MetaObject(this.h))) +} + +func (this *QsciLexerVerilog) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerVerilog_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerVerilog_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerVerilog_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerVerilog_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerVerilog_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerVerilog) Language() string { + _ret := C.QsciLexerVerilog_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerVerilog) Lexer() string { + _ret := C.QsciLexerVerilog_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerVerilog) BraceStyle() int { + return (int)(C.QsciLexerVerilog_BraceStyle(this.h)) +} + +func (this *QsciLexerVerilog) WordCharacters() string { + _ret := C.QsciLexerVerilog_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerVerilog) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerVerilog_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerVerilog) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerVerilog_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerVerilog) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerVerilog_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerVerilog) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerVerilog_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerVerilog) Keywords(set int) string { + _ret := C.QsciLexerVerilog_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerVerilog) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerVerilog_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerVerilog) RefreshProperties() { + C.QsciLexerVerilog_RefreshProperties(this.h) +} + +func (this *QsciLexerVerilog) SetFoldAtElse(fold bool) { + C.QsciLexerVerilog_SetFoldAtElse(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerVerilog) FoldAtElse() bool { + return (bool)(C.QsciLexerVerilog_FoldAtElse(this.h)) +} + +func (this *QsciLexerVerilog) SetFoldComments(fold bool) { + C.QsciLexerVerilog_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerVerilog) FoldComments() bool { + return (bool)(C.QsciLexerVerilog_FoldComments(this.h)) +} + +func (this *QsciLexerVerilog) SetFoldCompact(fold bool) { + C.QsciLexerVerilog_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerVerilog) FoldCompact() bool { + return (bool)(C.QsciLexerVerilog_FoldCompact(this.h)) +} + +func (this *QsciLexerVerilog) SetFoldPreprocessor(fold bool) { + C.QsciLexerVerilog_SetFoldPreprocessor(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerVerilog) FoldPreprocessor() bool { + return (bool)(C.QsciLexerVerilog_FoldPreprocessor(this.h)) +} + +func (this *QsciLexerVerilog) SetFoldAtModule(fold bool) { + C.QsciLexerVerilog_SetFoldAtModule(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerVerilog) FoldAtModule() bool { + return (bool)(C.QsciLexerVerilog_FoldAtModule(this.h)) +} + +func QsciLexerVerilog_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerVerilog_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerVerilog_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerVerilog_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerVerilog_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerVerilog_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerVerilog_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerVerilog_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerVerilog) Delete() { + C.QsciLexerVerilog_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerVerilog) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerVerilog) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerverilog.h b/qt-restricted-extras/qscintilla/gen_qscilexerverilog.h new file mode 100644 index 00000000..227bf456 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerverilog.h @@ -0,0 +1,67 @@ +#ifndef GEN_QSCILEXERVERILOG_H +#define GEN_QSCILEXERVERILOG_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerVerilog; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerVerilog QsciLexerVerilog; +#endif + +QsciLexerVerilog* QsciLexerVerilog_new(); +QsciLexerVerilog* QsciLexerVerilog_new2(QObject* parent); +QMetaObject* QsciLexerVerilog_MetaObject(const QsciLexerVerilog* self); +void* QsciLexerVerilog_Metacast(QsciLexerVerilog* self, const char* param1); +struct miqt_string QsciLexerVerilog_Tr(const char* s); +struct miqt_string QsciLexerVerilog_TrUtf8(const char* s); +const char* QsciLexerVerilog_Language(const QsciLexerVerilog* self); +const char* QsciLexerVerilog_Lexer(const QsciLexerVerilog* self); +int QsciLexerVerilog_BraceStyle(const QsciLexerVerilog* self); +const char* QsciLexerVerilog_WordCharacters(const QsciLexerVerilog* self); +QColor* QsciLexerVerilog_DefaultColor(const QsciLexerVerilog* self, int style); +bool QsciLexerVerilog_DefaultEolFill(const QsciLexerVerilog* self, int style); +QFont* QsciLexerVerilog_DefaultFont(const QsciLexerVerilog* self, int style); +QColor* QsciLexerVerilog_DefaultPaper(const QsciLexerVerilog* self, int style); +const char* QsciLexerVerilog_Keywords(const QsciLexerVerilog* self, int set); +struct miqt_string QsciLexerVerilog_Description(const QsciLexerVerilog* self, int style); +void QsciLexerVerilog_RefreshProperties(QsciLexerVerilog* self); +void QsciLexerVerilog_SetFoldAtElse(QsciLexerVerilog* self, bool fold); +bool QsciLexerVerilog_FoldAtElse(const QsciLexerVerilog* self); +void QsciLexerVerilog_SetFoldComments(QsciLexerVerilog* self, bool fold); +bool QsciLexerVerilog_FoldComments(const QsciLexerVerilog* self); +void QsciLexerVerilog_SetFoldCompact(QsciLexerVerilog* self, bool fold); +bool QsciLexerVerilog_FoldCompact(const QsciLexerVerilog* self); +void QsciLexerVerilog_SetFoldPreprocessor(QsciLexerVerilog* self, bool fold); +bool QsciLexerVerilog_FoldPreprocessor(const QsciLexerVerilog* self); +void QsciLexerVerilog_SetFoldAtModule(QsciLexerVerilog* self, bool fold); +bool QsciLexerVerilog_FoldAtModule(const QsciLexerVerilog* self); +struct miqt_string QsciLexerVerilog_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerVerilog_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerVerilog_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerVerilog_TrUtf83(const char* s, const char* c, int n); +void QsciLexerVerilog_Delete(QsciLexerVerilog* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexervhdl.cpp b/qt-restricted-extras/qscintilla/gen_qscilexervhdl.cpp new file mode 100644 index 00000000..bc11837d --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexervhdl.cpp @@ -0,0 +1,184 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexervhdl.h" +#include "_cgo_export.h" + +QsciLexerVHDL* QsciLexerVHDL_new() { + return new QsciLexerVHDL(); +} + +QsciLexerVHDL* QsciLexerVHDL_new2(QObject* parent) { + return new QsciLexerVHDL(parent); +} + +QMetaObject* QsciLexerVHDL_MetaObject(const QsciLexerVHDL* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerVHDL_Metacast(QsciLexerVHDL* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerVHDL_Tr(const char* s) { + QString _ret = QsciLexerVHDL::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerVHDL_TrUtf8(const char* s) { + QString _ret = QsciLexerVHDL::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerVHDL_Language(const QsciLexerVHDL* self) { + return (const char*) self->language(); +} + +const char* QsciLexerVHDL_Lexer(const QsciLexerVHDL* self) { + return (const char*) self->lexer(); +} + +int QsciLexerVHDL_BraceStyle(const QsciLexerVHDL* self) { + return self->braceStyle(); +} + +QColor* QsciLexerVHDL_DefaultColor(const QsciLexerVHDL* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerVHDL_DefaultEolFill(const QsciLexerVHDL* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerVHDL_DefaultFont(const QsciLexerVHDL* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerVHDL_DefaultPaper(const QsciLexerVHDL* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerVHDL_Keywords(const QsciLexerVHDL* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerVHDL_Description(const QsciLexerVHDL* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerVHDL_RefreshProperties(QsciLexerVHDL* self) { + self->refreshProperties(); +} + +bool QsciLexerVHDL_FoldComments(const QsciLexerVHDL* self) { + return self->foldComments(); +} + +bool QsciLexerVHDL_FoldCompact(const QsciLexerVHDL* self) { + return self->foldCompact(); +} + +bool QsciLexerVHDL_FoldAtElse(const QsciLexerVHDL* self) { + return self->foldAtElse(); +} + +bool QsciLexerVHDL_FoldAtBegin(const QsciLexerVHDL* self) { + return self->foldAtBegin(); +} + +bool QsciLexerVHDL_FoldAtParenthesis(const QsciLexerVHDL* self) { + return self->foldAtParenthesis(); +} + +void QsciLexerVHDL_SetFoldComments(QsciLexerVHDL* self, bool fold) { + self->setFoldComments(fold); +} + +void QsciLexerVHDL_SetFoldCompact(QsciLexerVHDL* self, bool fold) { + self->setFoldCompact(fold); +} + +void QsciLexerVHDL_SetFoldAtElse(QsciLexerVHDL* self, bool fold) { + self->setFoldAtElse(fold); +} + +void QsciLexerVHDL_SetFoldAtBegin(QsciLexerVHDL* self, bool fold) { + self->setFoldAtBegin(fold); +} + +void QsciLexerVHDL_SetFoldAtParenthesis(QsciLexerVHDL* self, bool fold) { + self->setFoldAtParenthesis(fold); +} + +struct miqt_string QsciLexerVHDL_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerVHDL::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerVHDL_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerVHDL::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerVHDL_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerVHDL::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerVHDL_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerVHDL::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerVHDL_Delete(QsciLexerVHDL* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexervhdl.go b/qt-restricted-extras/qscintilla/gen_qscilexervhdl.go new file mode 100644 index 00000000..9ab5fdb6 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexervhdl.go @@ -0,0 +1,259 @@ +package qscintilla + +/* + +#include "gen_qscilexervhdl.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerVHDL__ int + +const ( + QsciLexerVHDL__Default QsciLexerVHDL__ = 0 + QsciLexerVHDL__Comment QsciLexerVHDL__ = 1 + QsciLexerVHDL__CommentLine QsciLexerVHDL__ = 2 + QsciLexerVHDL__Number QsciLexerVHDL__ = 3 + QsciLexerVHDL__String QsciLexerVHDL__ = 4 + QsciLexerVHDL__Operator QsciLexerVHDL__ = 5 + QsciLexerVHDL__Identifier QsciLexerVHDL__ = 6 + QsciLexerVHDL__UnclosedString QsciLexerVHDL__ = 7 + QsciLexerVHDL__Keyword QsciLexerVHDL__ = 8 + QsciLexerVHDL__StandardOperator QsciLexerVHDL__ = 9 + QsciLexerVHDL__Attribute QsciLexerVHDL__ = 10 + QsciLexerVHDL__StandardFunction QsciLexerVHDL__ = 11 + QsciLexerVHDL__StandardPackage QsciLexerVHDL__ = 12 + QsciLexerVHDL__StandardType QsciLexerVHDL__ = 13 + QsciLexerVHDL__KeywordSet7 QsciLexerVHDL__ = 14 + QsciLexerVHDL__CommentBlock QsciLexerVHDL__ = 15 +) + +type QsciLexerVHDL struct { + h *C.QsciLexerVHDL + *QsciLexer +} + +func (this *QsciLexerVHDL) cPointer() *C.QsciLexerVHDL { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerVHDL) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerVHDL(h *C.QsciLexerVHDL) *QsciLexerVHDL { + if h == nil { + return nil + } + return &QsciLexerVHDL{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerVHDL(h unsafe.Pointer) *QsciLexerVHDL { + return newQsciLexerVHDL((*C.QsciLexerVHDL)(h)) +} + +// NewQsciLexerVHDL constructs a new QsciLexerVHDL object. +func NewQsciLexerVHDL() *QsciLexerVHDL { + ret := C.QsciLexerVHDL_new() + return newQsciLexerVHDL(ret) +} + +// NewQsciLexerVHDL2 constructs a new QsciLexerVHDL object. +func NewQsciLexerVHDL2(parent *qt.QObject) *QsciLexerVHDL { + ret := C.QsciLexerVHDL_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerVHDL(ret) +} + +func (this *QsciLexerVHDL) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerVHDL_MetaObject(this.h))) +} + +func (this *QsciLexerVHDL) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerVHDL_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerVHDL_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerVHDL_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerVHDL_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerVHDL_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerVHDL) Language() string { + _ret := C.QsciLexerVHDL_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerVHDL) Lexer() string { + _ret := C.QsciLexerVHDL_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerVHDL) BraceStyle() int { + return (int)(C.QsciLexerVHDL_BraceStyle(this.h)) +} + +func (this *QsciLexerVHDL) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerVHDL_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerVHDL) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerVHDL_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerVHDL) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerVHDL_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerVHDL) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerVHDL_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerVHDL) Keywords(set int) string { + _ret := C.QsciLexerVHDL_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerVHDL) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerVHDL_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerVHDL) RefreshProperties() { + C.QsciLexerVHDL_RefreshProperties(this.h) +} + +func (this *QsciLexerVHDL) FoldComments() bool { + return (bool)(C.QsciLexerVHDL_FoldComments(this.h)) +} + +func (this *QsciLexerVHDL) FoldCompact() bool { + return (bool)(C.QsciLexerVHDL_FoldCompact(this.h)) +} + +func (this *QsciLexerVHDL) FoldAtElse() bool { + return (bool)(C.QsciLexerVHDL_FoldAtElse(this.h)) +} + +func (this *QsciLexerVHDL) FoldAtBegin() bool { + return (bool)(C.QsciLexerVHDL_FoldAtBegin(this.h)) +} + +func (this *QsciLexerVHDL) FoldAtParenthesis() bool { + return (bool)(C.QsciLexerVHDL_FoldAtParenthesis(this.h)) +} + +func (this *QsciLexerVHDL) SetFoldComments(fold bool) { + C.QsciLexerVHDL_SetFoldComments(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerVHDL) SetFoldCompact(fold bool) { + C.QsciLexerVHDL_SetFoldCompact(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerVHDL) SetFoldAtElse(fold bool) { + C.QsciLexerVHDL_SetFoldAtElse(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerVHDL) SetFoldAtBegin(fold bool) { + C.QsciLexerVHDL_SetFoldAtBegin(this.h, (C.bool)(fold)) +} + +func (this *QsciLexerVHDL) SetFoldAtParenthesis(fold bool) { + C.QsciLexerVHDL_SetFoldAtParenthesis(this.h, (C.bool)(fold)) +} + +func QsciLexerVHDL_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerVHDL_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerVHDL_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerVHDL_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerVHDL_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerVHDL_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerVHDL_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerVHDL_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerVHDL) Delete() { + C.QsciLexerVHDL_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerVHDL) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerVHDL) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexervhdl.h b/qt-restricted-extras/qscintilla/gen_qscilexervhdl.h new file mode 100644 index 00000000..516abd35 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexervhdl.h @@ -0,0 +1,66 @@ +#ifndef GEN_QSCILEXERVHDL_H +#define GEN_QSCILEXERVHDL_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerVHDL; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerVHDL QsciLexerVHDL; +#endif + +QsciLexerVHDL* QsciLexerVHDL_new(); +QsciLexerVHDL* QsciLexerVHDL_new2(QObject* parent); +QMetaObject* QsciLexerVHDL_MetaObject(const QsciLexerVHDL* self); +void* QsciLexerVHDL_Metacast(QsciLexerVHDL* self, const char* param1); +struct miqt_string QsciLexerVHDL_Tr(const char* s); +struct miqt_string QsciLexerVHDL_TrUtf8(const char* s); +const char* QsciLexerVHDL_Language(const QsciLexerVHDL* self); +const char* QsciLexerVHDL_Lexer(const QsciLexerVHDL* self); +int QsciLexerVHDL_BraceStyle(const QsciLexerVHDL* self); +QColor* QsciLexerVHDL_DefaultColor(const QsciLexerVHDL* self, int style); +bool QsciLexerVHDL_DefaultEolFill(const QsciLexerVHDL* self, int style); +QFont* QsciLexerVHDL_DefaultFont(const QsciLexerVHDL* self, int style); +QColor* QsciLexerVHDL_DefaultPaper(const QsciLexerVHDL* self, int style); +const char* QsciLexerVHDL_Keywords(const QsciLexerVHDL* self, int set); +struct miqt_string QsciLexerVHDL_Description(const QsciLexerVHDL* self, int style); +void QsciLexerVHDL_RefreshProperties(QsciLexerVHDL* self); +bool QsciLexerVHDL_FoldComments(const QsciLexerVHDL* self); +bool QsciLexerVHDL_FoldCompact(const QsciLexerVHDL* self); +bool QsciLexerVHDL_FoldAtElse(const QsciLexerVHDL* self); +bool QsciLexerVHDL_FoldAtBegin(const QsciLexerVHDL* self); +bool QsciLexerVHDL_FoldAtParenthesis(const QsciLexerVHDL* self); +void QsciLexerVHDL_SetFoldComments(QsciLexerVHDL* self, bool fold); +void QsciLexerVHDL_SetFoldCompact(QsciLexerVHDL* self, bool fold); +void QsciLexerVHDL_SetFoldAtElse(QsciLexerVHDL* self, bool fold); +void QsciLexerVHDL_SetFoldAtBegin(QsciLexerVHDL* self, bool fold); +void QsciLexerVHDL_SetFoldAtParenthesis(QsciLexerVHDL* self, bool fold); +struct miqt_string QsciLexerVHDL_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerVHDL_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerVHDL_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerVHDL_TrUtf83(const char* s, const char* c, int n); +void QsciLexerVHDL_Delete(QsciLexerVHDL* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerxml.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerxml.cpp new file mode 100644 index 00000000..76e92c34 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerxml.cpp @@ -0,0 +1,137 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexerxml.h" +#include "_cgo_export.h" + +QsciLexerXML* QsciLexerXML_new() { + return new QsciLexerXML(); +} + +QsciLexerXML* QsciLexerXML_new2(QObject* parent) { + return new QsciLexerXML(parent); +} + +QMetaObject* QsciLexerXML_MetaObject(const QsciLexerXML* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerXML_Metacast(QsciLexerXML* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerXML_Tr(const char* s) { + QString _ret = QsciLexerXML::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerXML_TrUtf8(const char* s) { + QString _ret = QsciLexerXML::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerXML_Language(const QsciLexerXML* self) { + return (const char*) self->language(); +} + +const char* QsciLexerXML_Lexer(const QsciLexerXML* self) { + return (const char*) self->lexer(); +} + +QColor* QsciLexerXML_DefaultColor(const QsciLexerXML* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerXML_DefaultEolFill(const QsciLexerXML* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerXML_DefaultFont(const QsciLexerXML* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerXML_DefaultPaper(const QsciLexerXML* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerXML_Keywords(const QsciLexerXML* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +void QsciLexerXML_RefreshProperties(QsciLexerXML* self) { + self->refreshProperties(); +} + +void QsciLexerXML_SetScriptsStyled(QsciLexerXML* self, bool styled) { + self->setScriptsStyled(styled); +} + +bool QsciLexerXML_ScriptsStyled(const QsciLexerXML* self) { + return self->scriptsStyled(); +} + +struct miqt_string QsciLexerXML_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerXML::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerXML_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerXML::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerXML_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerXML::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerXML_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerXML::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerXML_Delete(QsciLexerXML* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerxml.go b/qt-restricted-extras/qscintilla/gen_qscilexerxml.go new file mode 100644 index 00000000..8a59962f --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerxml.go @@ -0,0 +1,195 @@ +package qscintilla + +/* + +#include "gen_qscilexerxml.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerXML struct { + h *C.QsciLexerXML + *QsciLexerHTML +} + +func (this *QsciLexerXML) cPointer() *C.QsciLexerXML { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerXML) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerXML(h *C.QsciLexerXML) *QsciLexerXML { + if h == nil { + return nil + } + return &QsciLexerXML{h: h, QsciLexerHTML: UnsafeNewQsciLexerHTML(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerXML(h unsafe.Pointer) *QsciLexerXML { + return newQsciLexerXML((*C.QsciLexerXML)(h)) +} + +// NewQsciLexerXML constructs a new QsciLexerXML object. +func NewQsciLexerXML() *QsciLexerXML { + ret := C.QsciLexerXML_new() + return newQsciLexerXML(ret) +} + +// NewQsciLexerXML2 constructs a new QsciLexerXML object. +func NewQsciLexerXML2(parent *qt.QObject) *QsciLexerXML { + ret := C.QsciLexerXML_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerXML(ret) +} + +func (this *QsciLexerXML) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerXML_MetaObject(this.h))) +} + +func (this *QsciLexerXML) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerXML_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerXML_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerXML_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerXML_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerXML_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerXML) Language() string { + _ret := C.QsciLexerXML_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerXML) Lexer() string { + _ret := C.QsciLexerXML_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerXML) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerXML_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerXML) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerXML_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerXML) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerXML_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerXML) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerXML_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerXML) Keywords(set int) string { + _ret := C.QsciLexerXML_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerXML) RefreshProperties() { + C.QsciLexerXML_RefreshProperties(this.h) +} + +func (this *QsciLexerXML) SetScriptsStyled(styled bool) { + C.QsciLexerXML_SetScriptsStyled(this.h, (C.bool)(styled)) +} + +func (this *QsciLexerXML) ScriptsStyled() bool { + return (bool)(C.QsciLexerXML_ScriptsStyled(this.h)) +} + +func QsciLexerXML_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerXML_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerXML_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerXML_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerXML_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerXML_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerXML_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerXML_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerXML) Delete() { + C.QsciLexerXML_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerXML) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerXML) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerxml.h b/qt-restricted-extras/qscintilla/gen_qscilexerxml.h new file mode 100644 index 00000000..f6f14efc --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexerxml.h @@ -0,0 +1,56 @@ +#ifndef GEN_QSCILEXERXML_H +#define GEN_QSCILEXERXML_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerXML; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerXML QsciLexerXML; +#endif + +QsciLexerXML* QsciLexerXML_new(); +QsciLexerXML* QsciLexerXML_new2(QObject* parent); +QMetaObject* QsciLexerXML_MetaObject(const QsciLexerXML* self); +void* QsciLexerXML_Metacast(QsciLexerXML* self, const char* param1); +struct miqt_string QsciLexerXML_Tr(const char* s); +struct miqt_string QsciLexerXML_TrUtf8(const char* s); +const char* QsciLexerXML_Language(const QsciLexerXML* self); +const char* QsciLexerXML_Lexer(const QsciLexerXML* self); +QColor* QsciLexerXML_DefaultColor(const QsciLexerXML* self, int style); +bool QsciLexerXML_DefaultEolFill(const QsciLexerXML* self, int style); +QFont* QsciLexerXML_DefaultFont(const QsciLexerXML* self, int style); +QColor* QsciLexerXML_DefaultPaper(const QsciLexerXML* self, int style); +const char* QsciLexerXML_Keywords(const QsciLexerXML* self, int set); +void QsciLexerXML_RefreshProperties(QsciLexerXML* self); +void QsciLexerXML_SetScriptsStyled(QsciLexerXML* self, bool styled); +bool QsciLexerXML_ScriptsStyled(const QsciLexerXML* self); +struct miqt_string QsciLexerXML_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerXML_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerXML_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerXML_TrUtf83(const char* s, const char* c, int n); +void QsciLexerXML_Delete(QsciLexerXML* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeryaml.cpp b/qt-restricted-extras/qscintilla/gen_qscilexeryaml.cpp new file mode 100644 index 00000000..5fe8083a --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeryaml.cpp @@ -0,0 +1,148 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qscilexeryaml.h" +#include "_cgo_export.h" + +QsciLexerYAML* QsciLexerYAML_new() { + return new QsciLexerYAML(); +} + +QsciLexerYAML* QsciLexerYAML_new2(QObject* parent) { + return new QsciLexerYAML(parent); +} + +QMetaObject* QsciLexerYAML_MetaObject(const QsciLexerYAML* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciLexerYAML_Metacast(QsciLexerYAML* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciLexerYAML_Tr(const char* s) { + QString _ret = QsciLexerYAML::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerYAML_TrUtf8(const char* s) { + QString _ret = QsciLexerYAML::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciLexerYAML_Language(const QsciLexerYAML* self) { + return (const char*) self->language(); +} + +const char* QsciLexerYAML_Lexer(const QsciLexerYAML* self) { + return (const char*) self->lexer(); +} + +QColor* QsciLexerYAML_DefaultColor(const QsciLexerYAML* self, int style) { + return new QColor(self->defaultColor(static_cast(style))); +} + +bool QsciLexerYAML_DefaultEolFill(const QsciLexerYAML* self, int style) { + return self->defaultEolFill(static_cast(style)); +} + +QFont* QsciLexerYAML_DefaultFont(const QsciLexerYAML* self, int style) { + return new QFont(self->defaultFont(static_cast(style))); +} + +QColor* QsciLexerYAML_DefaultPaper(const QsciLexerYAML* self, int style) { + return new QColor(self->defaultPaper(static_cast(style))); +} + +const char* QsciLexerYAML_Keywords(const QsciLexerYAML* self, int set) { + return (const char*) self->keywords(static_cast(set)); +} + +struct miqt_string QsciLexerYAML_Description(const QsciLexerYAML* self, int style) { + QString _ret = self->description(static_cast(style)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerYAML_RefreshProperties(QsciLexerYAML* self) { + self->refreshProperties(); +} + +bool QsciLexerYAML_FoldComments(const QsciLexerYAML* self) { + return self->foldComments(); +} + +void QsciLexerYAML_SetFoldComments(QsciLexerYAML* self, bool fold) { + self->setFoldComments(fold); +} + +struct miqt_string QsciLexerYAML_Tr2(const char* s, const char* c) { + QString _ret = QsciLexerYAML::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerYAML_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciLexerYAML::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerYAML_TrUtf82(const char* s, const char* c) { + QString _ret = QsciLexerYAML::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciLexerYAML_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciLexerYAML::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciLexerYAML_Delete(QsciLexerYAML* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeryaml.go b/qt-restricted-extras/qscintilla/gen_qscilexeryaml.go new file mode 100644 index 00000000..9b488cf5 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeryaml.go @@ -0,0 +1,217 @@ +package qscintilla + +/* + +#include "gen_qscilexeryaml.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciLexerYAML__ int + +const ( + QsciLexerYAML__Default QsciLexerYAML__ = 0 + QsciLexerYAML__Comment QsciLexerYAML__ = 1 + QsciLexerYAML__Identifier QsciLexerYAML__ = 2 + QsciLexerYAML__Keyword QsciLexerYAML__ = 3 + QsciLexerYAML__Number QsciLexerYAML__ = 4 + QsciLexerYAML__Reference QsciLexerYAML__ = 5 + QsciLexerYAML__DocumentDelimiter QsciLexerYAML__ = 6 + QsciLexerYAML__TextBlockMarker QsciLexerYAML__ = 7 + QsciLexerYAML__SyntaxErrorMarker QsciLexerYAML__ = 8 + QsciLexerYAML__Operator QsciLexerYAML__ = 9 +) + +type QsciLexerYAML struct { + h *C.QsciLexerYAML + *QsciLexer +} + +func (this *QsciLexerYAML) cPointer() *C.QsciLexerYAML { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciLexerYAML) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciLexerYAML(h *C.QsciLexerYAML) *QsciLexerYAML { + if h == nil { + return nil + } + return &QsciLexerYAML{h: h, QsciLexer: UnsafeNewQsciLexer(unsafe.Pointer(h))} +} + +func UnsafeNewQsciLexerYAML(h unsafe.Pointer) *QsciLexerYAML { + return newQsciLexerYAML((*C.QsciLexerYAML)(h)) +} + +// NewQsciLexerYAML constructs a new QsciLexerYAML object. +func NewQsciLexerYAML() *QsciLexerYAML { + ret := C.QsciLexerYAML_new() + return newQsciLexerYAML(ret) +} + +// NewQsciLexerYAML2 constructs a new QsciLexerYAML object. +func NewQsciLexerYAML2(parent *qt.QObject) *QsciLexerYAML { + ret := C.QsciLexerYAML_new2((*C.QObject)(parent.UnsafePointer())) + return newQsciLexerYAML(ret) +} + +func (this *QsciLexerYAML) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciLexerYAML_MetaObject(this.h))) +} + +func (this *QsciLexerYAML) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciLexerYAML_Metacast(this.h, param1_Cstring)) +} + +func QsciLexerYAML_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerYAML_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerYAML_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerYAML_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerYAML) Language() string { + _ret := C.QsciLexerYAML_Language(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerYAML) Lexer() string { + _ret := C.QsciLexerYAML_Lexer(this.h) + return C.GoString(_ret) +} + +func (this *QsciLexerYAML) DefaultColor(style int) *qt.QColor { + _ret := C.QsciLexerYAML_DefaultColor(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerYAML) DefaultEolFill(style int) bool { + return (bool)(C.QsciLexerYAML_DefaultEolFill(this.h, (C.int)(style))) +} + +func (this *QsciLexerYAML) DefaultFont(style int) *qt.QFont { + _ret := C.QsciLexerYAML_DefaultFont(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerYAML) DefaultPaper(style int) *qt.QColor { + _ret := C.QsciLexerYAML_DefaultPaper(this.h, (C.int)(style)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciLexerYAML) Keywords(set int) string { + _ret := C.QsciLexerYAML_Keywords(this.h, (C.int)(set)) + return C.GoString(_ret) +} + +func (this *QsciLexerYAML) Description(style int) string { + var _ms C.struct_miqt_string = C.QsciLexerYAML_Description(this.h, (C.int)(style)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciLexerYAML) RefreshProperties() { + C.QsciLexerYAML_RefreshProperties(this.h) +} + +func (this *QsciLexerYAML) FoldComments() bool { + return (bool)(C.QsciLexerYAML_FoldComments(this.h)) +} + +func (this *QsciLexerYAML) SetFoldComments(fold bool) { + C.QsciLexerYAML_SetFoldComments(this.h, (C.bool)(fold)) +} + +func QsciLexerYAML_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerYAML_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerYAML_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerYAML_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerYAML_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerYAML_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciLexerYAML_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciLexerYAML_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciLexerYAML) Delete() { + C.QsciLexerYAML_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciLexerYAML) GoGC() { + runtime.SetFinalizer(this, func(this *QsciLexerYAML) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeryaml.h b/qt-restricted-extras/qscintilla/gen_qscilexeryaml.h new file mode 100644 index 00000000..bc9e7efa --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscilexeryaml.h @@ -0,0 +1,57 @@ +#ifndef GEN_QSCILEXERYAML_H +#define GEN_QSCILEXERYAML_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QMetaObject; +class QObject; +class QsciLexerYAML; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QMetaObject QMetaObject; +typedef struct QObject QObject; +typedef struct QsciLexerYAML QsciLexerYAML; +#endif + +QsciLexerYAML* QsciLexerYAML_new(); +QsciLexerYAML* QsciLexerYAML_new2(QObject* parent); +QMetaObject* QsciLexerYAML_MetaObject(const QsciLexerYAML* self); +void* QsciLexerYAML_Metacast(QsciLexerYAML* self, const char* param1); +struct miqt_string QsciLexerYAML_Tr(const char* s); +struct miqt_string QsciLexerYAML_TrUtf8(const char* s); +const char* QsciLexerYAML_Language(const QsciLexerYAML* self); +const char* QsciLexerYAML_Lexer(const QsciLexerYAML* self); +QColor* QsciLexerYAML_DefaultColor(const QsciLexerYAML* self, int style); +bool QsciLexerYAML_DefaultEolFill(const QsciLexerYAML* self, int style); +QFont* QsciLexerYAML_DefaultFont(const QsciLexerYAML* self, int style); +QColor* QsciLexerYAML_DefaultPaper(const QsciLexerYAML* self, int style); +const char* QsciLexerYAML_Keywords(const QsciLexerYAML* self, int set); +struct miqt_string QsciLexerYAML_Description(const QsciLexerYAML* self, int style); +void QsciLexerYAML_RefreshProperties(QsciLexerYAML* self); +bool QsciLexerYAML_FoldComments(const QsciLexerYAML* self); +void QsciLexerYAML_SetFoldComments(QsciLexerYAML* self, bool fold); +struct miqt_string QsciLexerYAML_Tr2(const char* s, const char* c); +struct miqt_string QsciLexerYAML_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciLexerYAML_TrUtf82(const char* s, const char* c); +struct miqt_string QsciLexerYAML_TrUtf83(const char* s, const char* c, int n); +void QsciLexerYAML_Delete(QsciLexerYAML* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscimacro.cpp b/qt-restricted-extras/qscintilla/gen_qscimacro.cpp new file mode 100644 index 00000000..4a999027 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscimacro.cpp @@ -0,0 +1,127 @@ +#include +#include +#include +#include +#include +#include "gen_qscimacro.h" +#include "_cgo_export.h" + +QsciMacro* QsciMacro_new(QsciScintilla* parent) { + return new QsciMacro(parent); +} + +QsciMacro* QsciMacro_new2(struct miqt_string asc, QsciScintilla* parent) { + QString asc_QString = QString::fromUtf8(asc.data, asc.len); + return new QsciMacro(asc_QString, parent); +} + +QMetaObject* QsciMacro_MetaObject(const QsciMacro* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciMacro_Metacast(QsciMacro* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciMacro_Tr(const char* s) { + QString _ret = QsciMacro::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciMacro_TrUtf8(const char* s) { + QString _ret = QsciMacro::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciMacro_Clear(QsciMacro* self) { + self->clear(); +} + +bool QsciMacro_Load(QsciMacro* self, struct miqt_string asc) { + QString asc_QString = QString::fromUtf8(asc.data, asc.len); + return self->load(asc_QString); +} + +struct miqt_string QsciMacro_Save(const QsciMacro* self) { + QString _ret = self->save(); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciMacro_Play(QsciMacro* self) { + self->play(); +} + +void QsciMacro_StartRecording(QsciMacro* self) { + self->startRecording(); +} + +void QsciMacro_EndRecording(QsciMacro* self) { + self->endRecording(); +} + +struct miqt_string QsciMacro_Tr2(const char* s, const char* c) { + QString _ret = QsciMacro::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciMacro_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciMacro::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciMacro_TrUtf82(const char* s, const char* c) { + QString _ret = QsciMacro::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciMacro_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciMacro::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciMacro_Delete(QsciMacro* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscimacro.go b/qt-restricted-extras/qscintilla/gen_qscimacro.go new file mode 100644 index 00000000..4a99ea7a --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscimacro.go @@ -0,0 +1,178 @@ +package qscintilla + +/* + +#include "gen_qscimacro.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciMacro struct { + h *C.QsciMacro + *qt.QObject +} + +func (this *QsciMacro) cPointer() *C.QsciMacro { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciMacro) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciMacro(h *C.QsciMacro) *QsciMacro { + if h == nil { + return nil + } + return &QsciMacro{h: h, QObject: qt.UnsafeNewQObject(unsafe.Pointer(h))} +} + +func UnsafeNewQsciMacro(h unsafe.Pointer) *QsciMacro { + return newQsciMacro((*C.QsciMacro)(h)) +} + +// NewQsciMacro constructs a new QsciMacro object. +func NewQsciMacro(parent *QsciScintilla) *QsciMacro { + ret := C.QsciMacro_new(parent.cPointer()) + return newQsciMacro(ret) +} + +// NewQsciMacro2 constructs a new QsciMacro object. +func NewQsciMacro2(asc string, parent *QsciScintilla) *QsciMacro { + asc_ms := C.struct_miqt_string{} + asc_ms.data = C.CString(asc) + asc_ms.len = C.size_t(len(asc)) + defer C.free(unsafe.Pointer(asc_ms.data)) + ret := C.QsciMacro_new2(asc_ms, parent.cPointer()) + return newQsciMacro(ret) +} + +func (this *QsciMacro) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciMacro_MetaObject(this.h))) +} + +func (this *QsciMacro) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciMacro_Metacast(this.h, param1_Cstring)) +} + +func QsciMacro_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciMacro_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciMacro_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciMacro_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciMacro) Clear() { + C.QsciMacro_Clear(this.h) +} + +func (this *QsciMacro) Load(asc string) bool { + asc_ms := C.struct_miqt_string{} + asc_ms.data = C.CString(asc) + asc_ms.len = C.size_t(len(asc)) + defer C.free(unsafe.Pointer(asc_ms.data)) + return (bool)(C.QsciMacro_Load(this.h, asc_ms)) +} + +func (this *QsciMacro) Save() string { + var _ms C.struct_miqt_string = C.QsciMacro_Save(this.h) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciMacro) Play() { + C.QsciMacro_Play(this.h) +} + +func (this *QsciMacro) StartRecording() { + C.QsciMacro_StartRecording(this.h) +} + +func (this *QsciMacro) EndRecording() { + C.QsciMacro_EndRecording(this.h) +} + +func QsciMacro_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciMacro_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciMacro_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciMacro_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciMacro_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciMacro_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciMacro_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciMacro_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +// Delete this object from C++ memory. +func (this *QsciMacro) Delete() { + C.QsciMacro_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciMacro) GoGC() { + runtime.SetFinalizer(this, func(this *QsciMacro) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscimacro.h b/qt-restricted-extras/qscintilla/gen_qscimacro.h new file mode 100644 index 00000000..6d4f662c --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscimacro.h @@ -0,0 +1,48 @@ +#ifndef GEN_QSCIMACRO_H +#define GEN_QSCIMACRO_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QMetaObject; +class QsciMacro; +class QsciScintilla; +#else +typedef struct QMetaObject QMetaObject; +typedef struct QsciMacro QsciMacro; +typedef struct QsciScintilla QsciScintilla; +#endif + +QsciMacro* QsciMacro_new(QsciScintilla* parent); +QsciMacro* QsciMacro_new2(struct miqt_string asc, QsciScintilla* parent); +QMetaObject* QsciMacro_MetaObject(const QsciMacro* self); +void* QsciMacro_Metacast(QsciMacro* self, const char* param1); +struct miqt_string QsciMacro_Tr(const char* s); +struct miqt_string QsciMacro_TrUtf8(const char* s); +void QsciMacro_Clear(QsciMacro* self); +bool QsciMacro_Load(QsciMacro* self, struct miqt_string asc); +struct miqt_string QsciMacro_Save(const QsciMacro* self); +void QsciMacro_Play(QsciMacro* self); +void QsciMacro_StartRecording(QsciMacro* self); +void QsciMacro_EndRecording(QsciMacro* self); +struct miqt_string QsciMacro_Tr2(const char* s, const char* c); +struct miqt_string QsciMacro_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciMacro_TrUtf82(const char* s, const char* c); +struct miqt_string QsciMacro_TrUtf83(const char* s, const char* c, int n); +void QsciMacro_Delete(QsciMacro* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qsciprinter.cpp b/qt-restricted-extras/qscintilla/gen_qsciprinter.cpp new file mode 100644 index 00000000..2659aee8 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciprinter.cpp @@ -0,0 +1,63 @@ +#include +#include +#include +#include "gen_qsciprinter.h" +#include "_cgo_export.h" + +QsciPrinter* QsciPrinter_new() { + return new QsciPrinter(); +} + +QsciPrinter* QsciPrinter_new2(int mode) { + return new QsciPrinter(static_cast(mode)); +} + +void QsciPrinter_FormatPage(QsciPrinter* self, QPainter* painter, bool drawing, QRect* area, int pagenr) { + self->formatPage(*painter, drawing, *area, static_cast(pagenr)); +} + +int QsciPrinter_Magnification(const QsciPrinter* self) { + return self->magnification(); +} + +void QsciPrinter_SetMagnification(QsciPrinter* self, int magnification) { + self->setMagnification(static_cast(magnification)); +} + +int QsciPrinter_PrintRange(QsciPrinter* self, QsciScintillaBase* qsb, QPainter* painter) { + return self->printRange(qsb, *painter); +} + +int QsciPrinter_PrintRangeWithQsb(QsciPrinter* self, QsciScintillaBase* qsb) { + return self->printRange(qsb); +} + +int QsciPrinter_WrapMode(const QsciPrinter* self) { + QsciScintilla::WrapMode _ret = self->wrapMode(); + return static_cast(_ret); +} + +void QsciPrinter_SetWrapMode(QsciPrinter* self, int wmode) { + self->setWrapMode(static_cast(wmode)); +} + +int QsciPrinter_PrintRange3(QsciPrinter* self, QsciScintillaBase* qsb, QPainter* painter, int from) { + return self->printRange(qsb, *painter, static_cast(from)); +} + +int QsciPrinter_PrintRange4(QsciPrinter* self, QsciScintillaBase* qsb, QPainter* painter, int from, int to) { + return self->printRange(qsb, *painter, static_cast(from), static_cast(to)); +} + +int QsciPrinter_PrintRange2(QsciPrinter* self, QsciScintillaBase* qsb, int from) { + return self->printRange(qsb, static_cast(from)); +} + +int QsciPrinter_PrintRange32(QsciPrinter* self, QsciScintillaBase* qsb, int from, int to) { + return self->printRange(qsb, static_cast(from), static_cast(to)); +} + +void QsciPrinter_Delete(QsciPrinter* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qsciprinter.go b/qt-restricted-extras/qscintilla/gen_qsciprinter.go new file mode 100644 index 00000000..fc464c83 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciprinter.go @@ -0,0 +1,116 @@ +package qscintilla + +/* + +#include "gen_qsciprinter.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "github.com/mappu/miqt/qt/qprintsupport" + "runtime" + "unsafe" +) + +type QsciPrinter struct { + h *C.QsciPrinter + *qprintsupport.QPrinter +} + +func (this *QsciPrinter) cPointer() *C.QsciPrinter { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciPrinter) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciPrinter(h *C.QsciPrinter) *QsciPrinter { + if h == nil { + return nil + } + return &QsciPrinter{h: h, QPrinter: qprintsupport.UnsafeNewQPrinter(unsafe.Pointer(h))} +} + +func UnsafeNewQsciPrinter(h unsafe.Pointer) *QsciPrinter { + return newQsciPrinter((*C.QsciPrinter)(h)) +} + +// NewQsciPrinter constructs a new QsciPrinter object. +func NewQsciPrinter() *QsciPrinter { + ret := C.QsciPrinter_new() + return newQsciPrinter(ret) +} + +// NewQsciPrinter2 constructs a new QsciPrinter object. +func NewQsciPrinter2(mode qprintsupport.QPrinter__PrinterMode) *QsciPrinter { + ret := C.QsciPrinter_new2((C.int)(mode)) + return newQsciPrinter(ret) +} + +func (this *QsciPrinter) FormatPage(painter *qt.QPainter, drawing bool, area *qt.QRect, pagenr int) { + C.QsciPrinter_FormatPage(this.h, (*C.QPainter)(painter.UnsafePointer()), (C.bool)(drawing), (*C.QRect)(area.UnsafePointer()), (C.int)(pagenr)) +} + +func (this *QsciPrinter) Magnification() int { + return (int)(C.QsciPrinter_Magnification(this.h)) +} + +func (this *QsciPrinter) SetMagnification(magnification int) { + C.QsciPrinter_SetMagnification(this.h, (C.int)(magnification)) +} + +func (this *QsciPrinter) PrintRange(qsb *QsciScintillaBase, painter *qt.QPainter) int { + return (int)(C.QsciPrinter_PrintRange(this.h, qsb.cPointer(), (*C.QPainter)(painter.UnsafePointer()))) +} + +func (this *QsciPrinter) PrintRangeWithQsb(qsb *QsciScintillaBase) int { + return (int)(C.QsciPrinter_PrintRangeWithQsb(this.h, qsb.cPointer())) +} + +func (this *QsciPrinter) WrapMode() QsciScintilla__WrapMode { + return (QsciScintilla__WrapMode)(C.QsciPrinter_WrapMode(this.h)) +} + +func (this *QsciPrinter) SetWrapMode(wmode QsciScintilla__WrapMode) { + C.QsciPrinter_SetWrapMode(this.h, (C.int)(wmode)) +} + +func (this *QsciPrinter) PrintRange3(qsb *QsciScintillaBase, painter *qt.QPainter, from int) int { + return (int)(C.QsciPrinter_PrintRange3(this.h, qsb.cPointer(), (*C.QPainter)(painter.UnsafePointer()), (C.int)(from))) +} + +func (this *QsciPrinter) PrintRange4(qsb *QsciScintillaBase, painter *qt.QPainter, from int, to int) int { + return (int)(C.QsciPrinter_PrintRange4(this.h, qsb.cPointer(), (*C.QPainter)(painter.UnsafePointer()), (C.int)(from), (C.int)(to))) +} + +func (this *QsciPrinter) PrintRange2(qsb *QsciScintillaBase, from int) int { + return (int)(C.QsciPrinter_PrintRange2(this.h, qsb.cPointer(), (C.int)(from))) +} + +func (this *QsciPrinter) PrintRange32(qsb *QsciScintillaBase, from int, to int) int { + return (int)(C.QsciPrinter_PrintRange32(this.h, qsb.cPointer(), (C.int)(from), (C.int)(to))) +} + +// Delete this object from C++ memory. +func (this *QsciPrinter) Delete() { + C.QsciPrinter_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciPrinter) GoGC() { + runtime.SetFinalizer(this, func(this *QsciPrinter) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qsciprinter.h b/qt-restricted-extras/qscintilla/gen_qsciprinter.h new file mode 100644 index 00000000..c2152a5f --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciprinter.h @@ -0,0 +1,47 @@ +#ifndef GEN_QSCIPRINTER_H +#define GEN_QSCIPRINTER_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QPainter; +class QRect; +class QsciPrinter; +class QsciScintillaBase; +#else +typedef struct QPainter QPainter; +typedef struct QRect QRect; +typedef struct QsciPrinter QsciPrinter; +typedef struct QsciScintillaBase QsciScintillaBase; +#endif + +QsciPrinter* QsciPrinter_new(); +QsciPrinter* QsciPrinter_new2(int mode); +void QsciPrinter_FormatPage(QsciPrinter* self, QPainter* painter, bool drawing, QRect* area, int pagenr); +int QsciPrinter_Magnification(const QsciPrinter* self); +void QsciPrinter_SetMagnification(QsciPrinter* self, int magnification); +int QsciPrinter_PrintRange(QsciPrinter* self, QsciScintillaBase* qsb, QPainter* painter); +int QsciPrinter_PrintRangeWithQsb(QsciPrinter* self, QsciScintillaBase* qsb); +int QsciPrinter_WrapMode(const QsciPrinter* self); +void QsciPrinter_SetWrapMode(QsciPrinter* self, int wmode); +int QsciPrinter_PrintRange3(QsciPrinter* self, QsciScintillaBase* qsb, QPainter* painter, int from); +int QsciPrinter_PrintRange4(QsciPrinter* self, QsciScintillaBase* qsb, QPainter* painter, int from, int to); +int QsciPrinter_PrintRange2(QsciPrinter* self, QsciScintillaBase* qsb, int from); +int QsciPrinter_PrintRange32(QsciPrinter* self, QsciScintillaBase* qsb, int from, int to); +void QsciPrinter_Delete(QsciPrinter* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintilla.cpp b/qt-restricted-extras/qscintilla/gen_qsciscintilla.cpp new file mode 100644 index 00000000..d3de99cf --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciscintilla.cpp @@ -0,0 +1,1562 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qsciscintilla.h" +#include "_cgo_export.h" + +QsciScintilla* QsciScintilla_new() { + return new QsciScintilla(); +} + +QsciScintilla* QsciScintilla_new2(QWidget* parent) { + return new QsciScintilla(parent); +} + +QMetaObject* QsciScintilla_MetaObject(const QsciScintilla* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciScintilla_Metacast(QsciScintilla* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciScintilla_Tr(const char* s) { + QString _ret = QsciScintilla::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciScintilla_TrUtf8(const char* s) { + QString _ret = QsciScintilla::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_array* 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())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + QString _lv_ret = _ret[i]; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _lv_b = _lv_ret.toUtf8(); + struct miqt_string _lv_ms; + _lv_ms.len = _lv_b.length(); + _lv_ms.data = static_cast(malloc(_lv_ms.len)); + memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len); + _arr[i] = _lv_ms; + } + struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); + _out->len = _ret.length(); + _out->data = static_cast(_arr); + return _out; +} + +void QsciScintilla_Annotate(QsciScintilla* self, int line, struct miqt_string text, int style) { + QString text_QString = QString::fromUtf8(text.data, text.len); + self->annotate(static_cast(line), text_QString, static_cast(style)); +} + +void QsciScintilla_Annotate2(QsciScintilla* self, int line, struct miqt_string text, QsciStyle* style) { + QString text_QString = QString::fromUtf8(text.data, text.len); + self->annotate(static_cast(line), text_QString, *style); +} + +void QsciScintilla_Annotate3(QsciScintilla* self, int line, QsciStyledText* text) { + self->annotate(static_cast(line), *text); +} + +struct miqt_string QsciScintilla_Annotation(const QsciScintilla* self, int line) { + QString _ret = self->annotation(static_cast(line)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +int QsciScintilla_AnnotationDisplay(const QsciScintilla* self) { + QsciScintilla::AnnotationDisplay _ret = self->annotationDisplay(); + return static_cast(_ret); +} + +void QsciScintilla_ClearAnnotations(QsciScintilla* self) { + self->clearAnnotations(); +} + +bool QsciScintilla_AutoCompletionCaseSensitivity(const QsciScintilla* self) { + return self->autoCompletionCaseSensitivity(); +} + +bool QsciScintilla_AutoCompletionFillupsEnabled(const QsciScintilla* self) { + return self->autoCompletionFillupsEnabled(); +} + +bool QsciScintilla_AutoCompletionReplaceWord(const QsciScintilla* self) { + return self->autoCompletionReplaceWord(); +} + +bool QsciScintilla_AutoCompletionShowSingle(const QsciScintilla* self) { + return self->autoCompletionShowSingle(); +} + +int QsciScintilla_AutoCompletionSource(const QsciScintilla* self) { + QsciScintilla::AutoCompletionSource _ret = self->autoCompletionSource(); + return static_cast(_ret); +} + +int QsciScintilla_AutoCompletionThreshold(const QsciScintilla* self) { + return self->autoCompletionThreshold(); +} + +int QsciScintilla_AutoCompletionUseSingle(const QsciScintilla* self) { + QsciScintilla::AutoCompletionUseSingle _ret = self->autoCompletionUseSingle(); + return static_cast(_ret); +} + +bool QsciScintilla_AutoIndent(const QsciScintilla* self) { + return self->autoIndent(); +} + +bool QsciScintilla_BackspaceUnindents(const QsciScintilla* self) { + return self->backspaceUnindents(); +} + +void QsciScintilla_BeginUndoAction(QsciScintilla* self) { + self->beginUndoAction(); +} + +int QsciScintilla_BraceMatching(const QsciScintilla* self) { + QsciScintilla::BraceMatch _ret = self->braceMatching(); + return static_cast(_ret); +} + +struct miqt_string QsciScintilla_Bytes(const QsciScintilla* self, int start, int end) { + QByteArray _qb = self->bytes(static_cast(start), static_cast(end)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +int QsciScintilla_CallTipsPosition(const QsciScintilla* self) { + QsciScintilla::CallTipsPosition _ret = self->callTipsPosition(); + return static_cast(_ret); +} + +int QsciScintilla_CallTipsStyle(const QsciScintilla* self) { + QsciScintilla::CallTipsStyle _ret = self->callTipsStyle(); + return static_cast(_ret); +} + +int QsciScintilla_CallTipsVisible(const QsciScintilla* self) { + return self->callTipsVisible(); +} + +void QsciScintilla_CancelFind(QsciScintilla* self) { + self->cancelFind(); +} + +void QsciScintilla_CancelList(QsciScintilla* self) { + self->cancelList(); +} + +bool QsciScintilla_CaseSensitive(const QsciScintilla* self) { + return self->caseSensitive(); +} + +void QsciScintilla_ClearFolds(QsciScintilla* self) { + self->clearFolds(); +} + +void QsciScintilla_ClearIndicatorRange(QsciScintilla* self, int lineFrom, int indexFrom, int lineTo, int indexTo, int indicatorNumber) { + self->clearIndicatorRange(static_cast(lineFrom), static_cast(indexFrom), static_cast(lineTo), static_cast(indexTo), static_cast(indicatorNumber)); +} + +void QsciScintilla_ClearRegisteredImages(QsciScintilla* self) { + self->clearRegisteredImages(); +} + +QColor* QsciScintilla_Color(const QsciScintilla* self) { + return new QColor(self->color()); +} + +struct miqt_array* 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())); + for (size_t i = 0, e = _ret.length(); i < e; ++i) { + _arr[i] = _ret[i]; + } + struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); + _out->len = _ret.length(); + _out->data = static_cast(_arr); + return _out; +} + +void QsciScintilla_ConvertEols(QsciScintilla* self, int mode) { + self->convertEols(static_cast(mode)); +} + +QMenu* QsciScintilla_CreateStandardContextMenu(QsciScintilla* self) { + return self->createStandardContextMenu(); +} + +QsciDocument* QsciScintilla_Document(const QsciScintilla* self) { + return new QsciDocument(self->document()); +} + +void QsciScintilla_EndUndoAction(QsciScintilla* self) { + self->endUndoAction(); +} + +QColor* QsciScintilla_EdgeColor(const QsciScintilla* self) { + return new QColor(self->edgeColor()); +} + +int QsciScintilla_EdgeColumn(const QsciScintilla* self) { + return self->edgeColumn(); +} + +int QsciScintilla_EdgeMode(const QsciScintilla* self) { + QsciScintilla::EdgeMode _ret = self->edgeMode(); + return static_cast(_ret); +} + +void QsciScintilla_SetFont(QsciScintilla* self, QFont* f) { + self->setFont(*f); +} + +int QsciScintilla_EolMode(const QsciScintilla* self) { + QsciScintilla::EolMode _ret = self->eolMode(); + return static_cast(_ret); +} + +bool QsciScintilla_EolVisibility(const QsciScintilla* self) { + return self->eolVisibility(); +} + +int QsciScintilla_ExtraAscent(const QsciScintilla* self) { + return self->extraAscent(); +} + +int QsciScintilla_ExtraDescent(const QsciScintilla* self) { + return self->extraDescent(); +} + +void QsciScintilla_FillIndicatorRange(QsciScintilla* self, int lineFrom, int indexFrom, int lineTo, int indexTo, int indicatorNumber) { + self->fillIndicatorRange(static_cast(lineFrom), static_cast(indexFrom), static_cast(lineTo), static_cast(indexTo), static_cast(indicatorNumber)); +} + +bool QsciScintilla_FindFirst(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool wrap) { + QString expr_QString = QString::fromUtf8(expr.data, expr.len); + return self->findFirst(expr_QString, re, cs, wo, wrap); +} + +bool QsciScintilla_FindFirstInSelection(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo) { + QString expr_QString = QString::fromUtf8(expr.data, expr.len); + return self->findFirstInSelection(expr_QString, re, cs, wo); +} + +bool QsciScintilla_FindNext(QsciScintilla* self) { + return self->findNext(); +} + +bool QsciScintilla_FindMatchingBrace(QsciScintilla* self, long* brace, long* other, int mode) { + return self->findMatchingBrace(static_cast(*brace), static_cast(*other), static_cast(mode)); +} + +int QsciScintilla_FirstVisibleLine(const QsciScintilla* self) { + return self->firstVisibleLine(); +} + +int QsciScintilla_Folding(const QsciScintilla* self) { + QsciScintilla::FoldStyle _ret = self->folding(); + return static_cast(_ret); +} + +void QsciScintilla_GetCursorPosition(const QsciScintilla* self, int* line, int* index) { + self->getCursorPosition(static_cast(line), static_cast(index)); +} + +void QsciScintilla_GetSelection(const QsciScintilla* self, int* lineFrom, int* indexFrom, int* lineTo, int* indexTo) { + self->getSelection(static_cast(lineFrom), static_cast(indexFrom), static_cast(lineTo), static_cast(indexTo)); +} + +bool QsciScintilla_HasSelectedText(const QsciScintilla* self) { + return self->hasSelectedText(); +} + +int QsciScintilla_Indentation(const QsciScintilla* self, int line) { + return self->indentation(static_cast(line)); +} + +bool QsciScintilla_IndentationGuides(const QsciScintilla* self) { + return self->indentationGuides(); +} + +bool QsciScintilla_IndentationsUseTabs(const QsciScintilla* self) { + return self->indentationsUseTabs(); +} + +int QsciScintilla_IndentationWidth(const QsciScintilla* self) { + return self->indentationWidth(); +} + +int QsciScintilla_IndicatorDefine(QsciScintilla* self, int style) { + return self->indicatorDefine(static_cast(style)); +} + +bool QsciScintilla_IndicatorDrawUnder(const QsciScintilla* self, int indicatorNumber) { + return self->indicatorDrawUnder(static_cast(indicatorNumber)); +} + +bool QsciScintilla_IsCallTipActive(const QsciScintilla* self) { + return self->isCallTipActive(); +} + +bool QsciScintilla_IsListActive(const QsciScintilla* self) { + return self->isListActive(); +} + +bool QsciScintilla_IsModified(const QsciScintilla* self) { + return self->isModified(); +} + +bool QsciScintilla_IsReadOnly(const QsciScintilla* self) { + return self->isReadOnly(); +} + +bool QsciScintilla_IsRedoAvailable(const QsciScintilla* self) { + return self->isRedoAvailable(); +} + +bool QsciScintilla_IsUndoAvailable(const QsciScintilla* self) { + return self->isUndoAvailable(); +} + +bool QsciScintilla_IsUtf8(const QsciScintilla* self) { + return self->isUtf8(); +} + +bool QsciScintilla_IsWordCharacter(const QsciScintilla* self, char ch) { + return self->isWordCharacter(static_cast(ch)); +} + +int QsciScintilla_LineAt(const QsciScintilla* self, QPoint* point) { + return self->lineAt(*point); +} + +void QsciScintilla_LineIndexFromPosition(const QsciScintilla* self, int position, int* line, int* index) { + self->lineIndexFromPosition(static_cast(position), static_cast(line), static_cast(index)); +} + +int QsciScintilla_LineLength(const QsciScintilla* self, int line) { + return self->lineLength(static_cast(line)); +} + +int QsciScintilla_Lines(const QsciScintilla* self) { + return self->lines(); +} + +int QsciScintilla_Length(const QsciScintilla* self) { + return self->length(); +} + +QsciLexer* QsciScintilla_Lexer(const QsciScintilla* self) { + return self->lexer(); +} + +QColor* QsciScintilla_MarginBackgroundColor(const QsciScintilla* self, int margin) { + return new QColor(self->marginBackgroundColor(static_cast(margin))); +} + +bool QsciScintilla_MarginLineNumbers(const QsciScintilla* self, int margin) { + return self->marginLineNumbers(static_cast(margin)); +} + +int QsciScintilla_MarginMarkerMask(const QsciScintilla* self, int margin) { + return self->marginMarkerMask(static_cast(margin)); +} + +int QsciScintilla_MarginOptions(const QsciScintilla* self) { + return self->marginOptions(); +} + +bool QsciScintilla_MarginSensitivity(const QsciScintilla* self, int margin) { + return self->marginSensitivity(static_cast(margin)); +} + +int QsciScintilla_MarginType(const QsciScintilla* self, int margin) { + QsciScintilla::MarginType _ret = self->marginType(static_cast(margin)); + return static_cast(_ret); +} + +int QsciScintilla_MarginWidth(const QsciScintilla* self, int margin) { + return self->marginWidth(static_cast(margin)); +} + +int QsciScintilla_Margins(const QsciScintilla* self) { + return self->margins(); +} + +int QsciScintilla_MarkerDefine(QsciScintilla* self, int sym) { + return self->markerDefine(static_cast(sym)); +} + +int QsciScintilla_MarkerDefineWithCh(QsciScintilla* self, char ch) { + return self->markerDefine(static_cast(ch)); +} + +int QsciScintilla_MarkerDefineWithPm(QsciScintilla* self, QPixmap* pm) { + return self->markerDefine(*pm); +} + +int QsciScintilla_MarkerDefineWithIm(QsciScintilla* self, QImage* im) { + return self->markerDefine(*im); +} + +int QsciScintilla_MarkerAdd(QsciScintilla* self, int linenr, int markerNumber) { + return self->markerAdd(static_cast(linenr), static_cast(markerNumber)); +} + +unsigned int QsciScintilla_MarkersAtLine(const QsciScintilla* self, int linenr) { + return self->markersAtLine(static_cast(linenr)); +} + +void QsciScintilla_MarkerDelete(QsciScintilla* self, int linenr) { + self->markerDelete(static_cast(linenr)); +} + +void QsciScintilla_MarkerDeleteAll(QsciScintilla* self) { + self->markerDeleteAll(); +} + +void QsciScintilla_MarkerDeleteHandle(QsciScintilla* self, int mhandle) { + self->markerDeleteHandle(static_cast(mhandle)); +} + +int QsciScintilla_MarkerLine(const QsciScintilla* self, int mhandle) { + return self->markerLine(static_cast(mhandle)); +} + +int QsciScintilla_MarkerFindNext(const QsciScintilla* self, int linenr, unsigned int mask) { + return self->markerFindNext(static_cast(linenr), static_cast(mask)); +} + +int QsciScintilla_MarkerFindPrevious(const QsciScintilla* self, int linenr, unsigned int mask) { + return self->markerFindPrevious(static_cast(linenr), static_cast(mask)); +} + +bool QsciScintilla_OverwriteMode(const QsciScintilla* self) { + return self->overwriteMode(); +} + +QColor* QsciScintilla_Paper(const QsciScintilla* self) { + return new QColor(self->paper()); +} + +int QsciScintilla_PositionFromLineIndex(const QsciScintilla* self, int line, int index) { + return self->positionFromLineIndex(static_cast(line), static_cast(index)); +} + +bool QsciScintilla_Read(QsciScintilla* self, QIODevice* io) { + return self->read(io); +} + +void QsciScintilla_Recolor(QsciScintilla* self) { + self->recolor(); +} + +void QsciScintilla_RegisterImage(QsciScintilla* self, int id, QPixmap* pm) { + self->registerImage(static_cast(id), *pm); +} + +void QsciScintilla_RegisterImage2(QsciScintilla* self, int id, QImage* im) { + self->registerImage(static_cast(id), *im); +} + +void QsciScintilla_Replace(QsciScintilla* self, struct miqt_string replaceStr) { + QString replaceStr_QString = QString::fromUtf8(replaceStr.data, replaceStr.len); + self->replace(replaceStr_QString); +} + +void QsciScintilla_ResetFoldMarginColors(QsciScintilla* self) { + self->resetFoldMarginColors(); +} + +void QsciScintilla_ResetHotspotBackgroundColor(QsciScintilla* self) { + self->resetHotspotBackgroundColor(); +} + +void QsciScintilla_ResetHotspotForegroundColor(QsciScintilla* self) { + self->resetHotspotForegroundColor(); +} + +int QsciScintilla_ScrollWidth(const QsciScintilla* self) { + return self->scrollWidth(); +} + +bool QsciScintilla_ScrollWidthTracking(const QsciScintilla* self) { + return self->scrollWidthTracking(); +} + +void QsciScintilla_SetFoldMarginColors(QsciScintilla* self, QColor* fore, QColor* back) { + self->setFoldMarginColors(*fore, *back); +} + +void QsciScintilla_SetAnnotationDisplay(QsciScintilla* self, int display) { + self->setAnnotationDisplay(static_cast(display)); +} + +void QsciScintilla_SetAutoCompletionFillupsEnabled(QsciScintilla* self, bool enabled) { + self->setAutoCompletionFillupsEnabled(enabled); +} + +void QsciScintilla_SetAutoCompletionFillups(QsciScintilla* self, const char* fillups) { + self->setAutoCompletionFillups(fillups); +} + +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); + for(size_t i = 0; i < separators->len; ++i) { + QString separators_arr_i_QString = QString::fromUtf8(separators_arr[i].data, separators_arr[i].len); + separators_QList.push_back(separators_arr_i_QString); + } + self->setAutoCompletionWordSeparators(separators_QList); +} + +void QsciScintilla_SetCallTipsBackgroundColor(QsciScintilla* self, QColor* col) { + self->setCallTipsBackgroundColor(*col); +} + +void QsciScintilla_SetCallTipsForegroundColor(QsciScintilla* self, QColor* col) { + self->setCallTipsForegroundColor(*col); +} + +void QsciScintilla_SetCallTipsHighlightColor(QsciScintilla* self, QColor* col) { + self->setCallTipsHighlightColor(*col); +} + +void QsciScintilla_SetCallTipsPosition(QsciScintilla* self, int position) { + self->setCallTipsPosition(static_cast(position)); +} + +void QsciScintilla_SetCallTipsStyle(QsciScintilla* self, int style) { + self->setCallTipsStyle(static_cast(style)); +} + +void QsciScintilla_SetCallTipsVisible(QsciScintilla* self, int nr) { + self->setCallTipsVisible(static_cast(nr)); +} + +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); + for(size_t i = 0; i < folds->len; ++i) { + folds_QList.push_back(static_cast(folds_arr[i])); + } + self->setContractedFolds(folds_QList); +} + +void QsciScintilla_SetDocument(QsciScintilla* self, QsciDocument* document) { + self->setDocument(*document); +} + +void QsciScintilla_AddEdgeColumn(QsciScintilla* self, int colnr, QColor* col) { + self->addEdgeColumn(static_cast(colnr), *col); +} + +void QsciScintilla_ClearEdgeColumns(QsciScintilla* self) { + self->clearEdgeColumns(); +} + +void QsciScintilla_SetEdgeColor(QsciScintilla* self, QColor* col) { + self->setEdgeColor(*col); +} + +void QsciScintilla_SetEdgeColumn(QsciScintilla* self, int colnr) { + self->setEdgeColumn(static_cast(colnr)); +} + +void QsciScintilla_SetEdgeMode(QsciScintilla* self, int mode) { + self->setEdgeMode(static_cast(mode)); +} + +void QsciScintilla_SetFirstVisibleLine(QsciScintilla* self, int linenr) { + self->setFirstVisibleLine(static_cast(linenr)); +} + +void QsciScintilla_SetIndicatorDrawUnder(QsciScintilla* self, bool under) { + self->setIndicatorDrawUnder(under); +} + +void QsciScintilla_SetIndicatorForegroundColor(QsciScintilla* self, QColor* col) { + self->setIndicatorForegroundColor(*col); +} + +void QsciScintilla_SetIndicatorHoverForegroundColor(QsciScintilla* self, QColor* col) { + self->setIndicatorHoverForegroundColor(*col); +} + +void QsciScintilla_SetIndicatorHoverStyle(QsciScintilla* self, int style) { + self->setIndicatorHoverStyle(static_cast(style)); +} + +void QsciScintilla_SetIndicatorOutlineColor(QsciScintilla* self, QColor* col) { + self->setIndicatorOutlineColor(*col); +} + +void QsciScintilla_SetMarginBackgroundColor(QsciScintilla* self, int margin, QColor* col) { + self->setMarginBackgroundColor(static_cast(margin), *col); +} + +void QsciScintilla_SetMarginOptions(QsciScintilla* self, int options) { + self->setMarginOptions(static_cast(options)); +} + +void QsciScintilla_SetMarginText(QsciScintilla* self, int line, struct miqt_string text, int style) { + QString text_QString = QString::fromUtf8(text.data, text.len); + self->setMarginText(static_cast(line), text_QString, static_cast(style)); +} + +void QsciScintilla_SetMarginText2(QsciScintilla* self, int line, struct miqt_string text, QsciStyle* style) { + QString text_QString = QString::fromUtf8(text.data, text.len); + self->setMarginText(static_cast(line), text_QString, *style); +} + +void QsciScintilla_SetMarginText3(QsciScintilla* self, int line, QsciStyledText* text) { + self->setMarginText(static_cast(line), *text); +} + +void QsciScintilla_SetMarginType(QsciScintilla* self, int margin, int typeVal) { + self->setMarginType(static_cast(margin), static_cast(typeVal)); +} + +void QsciScintilla_ClearMarginText(QsciScintilla* self) { + self->clearMarginText(); +} + +void QsciScintilla_SetMargins(QsciScintilla* self, int margins) { + self->setMargins(static_cast(margins)); +} + +void QsciScintilla_SetMarkerBackgroundColor(QsciScintilla* self, QColor* col) { + self->setMarkerBackgroundColor(*col); +} + +void QsciScintilla_SetMarkerForegroundColor(QsciScintilla* self, QColor* col) { + self->setMarkerForegroundColor(*col); +} + +void QsciScintilla_SetMatchedBraceBackgroundColor(QsciScintilla* self, QColor* col) { + self->setMatchedBraceBackgroundColor(*col); +} + +void QsciScintilla_SetMatchedBraceForegroundColor(QsciScintilla* self, QColor* col) { + self->setMatchedBraceForegroundColor(*col); +} + +void QsciScintilla_SetMatchedBraceIndicator(QsciScintilla* self, int indicatorNumber) { + self->setMatchedBraceIndicator(static_cast(indicatorNumber)); +} + +void QsciScintilla_ResetMatchedBraceIndicator(QsciScintilla* self) { + self->resetMatchedBraceIndicator(); +} + +void QsciScintilla_SetScrollWidth(QsciScintilla* self, int pixelWidth) { + self->setScrollWidth(static_cast(pixelWidth)); +} + +void QsciScintilla_SetScrollWidthTracking(QsciScintilla* self, bool enabled) { + self->setScrollWidthTracking(enabled); +} + +void QsciScintilla_SetTabDrawMode(QsciScintilla* self, int mode) { + self->setTabDrawMode(static_cast(mode)); +} + +void QsciScintilla_SetUnmatchedBraceBackgroundColor(QsciScintilla* self, QColor* col) { + self->setUnmatchedBraceBackgroundColor(*col); +} + +void QsciScintilla_SetUnmatchedBraceForegroundColor(QsciScintilla* self, QColor* col) { + self->setUnmatchedBraceForegroundColor(*col); +} + +void QsciScintilla_SetUnmatchedBraceIndicator(QsciScintilla* self, int indicatorNumber) { + self->setUnmatchedBraceIndicator(static_cast(indicatorNumber)); +} + +void QsciScintilla_ResetUnmatchedBraceIndicator(QsciScintilla* self) { + self->resetUnmatchedBraceIndicator(); +} + +void QsciScintilla_SetWrapVisualFlags(QsciScintilla* self, int endFlag) { + self->setWrapVisualFlags(static_cast(endFlag)); +} + +struct miqt_string QsciScintilla_SelectedText(const QsciScintilla* self) { + QString _ret = self->selectedText(); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +bool QsciScintilla_SelectionToEol(const QsciScintilla* self) { + return self->selectionToEol(); +} + +void QsciScintilla_SetHotspotBackgroundColor(QsciScintilla* self, QColor* col) { + self->setHotspotBackgroundColor(*col); +} + +void QsciScintilla_SetHotspotForegroundColor(QsciScintilla* self, QColor* col) { + self->setHotspotForegroundColor(*col); +} + +void QsciScintilla_SetHotspotUnderline(QsciScintilla* self, bool enable) { + self->setHotspotUnderline(enable); +} + +void QsciScintilla_SetHotspotWrap(QsciScintilla* self, bool enable) { + self->setHotspotWrap(enable); +} + +void QsciScintilla_SetSelectionToEol(QsciScintilla* self, bool filled) { + self->setSelectionToEol(filled); +} + +void QsciScintilla_SetExtraAscent(QsciScintilla* self, int extra) { + self->setExtraAscent(static_cast(extra)); +} + +void QsciScintilla_SetExtraDescent(QsciScintilla* self, int extra) { + self->setExtraDescent(static_cast(extra)); +} + +void QsciScintilla_SetOverwriteMode(QsciScintilla* self, bool overwrite) { + self->setOverwriteMode(overwrite); +} + +void QsciScintilla_SetWhitespaceBackgroundColor(QsciScintilla* self, QColor* col) { + self->setWhitespaceBackgroundColor(*col); +} + +void QsciScintilla_SetWhitespaceForegroundColor(QsciScintilla* self, QColor* col) { + self->setWhitespaceForegroundColor(*col); +} + +void QsciScintilla_SetWhitespaceSize(QsciScintilla* self, int size) { + self->setWhitespaceSize(static_cast(size)); +} + +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) { + QStringList list_QList; + list_QList.reserve(list->len); + struct miqt_string* list_arr = static_cast(list->data); + for(size_t i = 0; i < list->len; ++i) { + QString list_arr_i_QString = QString::fromUtf8(list_arr[i].data, list_arr[i].len); + list_QList.push_back(list_arr_i_QString); + } + self->showUserList(static_cast(id), list_QList); +} + +QsciCommandSet* QsciScintilla_StandardCommands(const QsciScintilla* self) { + return self->standardCommands(); +} + +int QsciScintilla_TabDrawMode(const QsciScintilla* self) { + QsciScintilla::TabDrawMode _ret = self->tabDrawMode(); + return static_cast(_ret); +} + +bool QsciScintilla_TabIndents(const QsciScintilla* self) { + return self->tabIndents(); +} + +int QsciScintilla_TabWidth(const QsciScintilla* self) { + return self->tabWidth(); +} + +struct miqt_string QsciScintilla_Text(const QsciScintilla* self) { + QString _ret = self->text(); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciScintilla_TextWithLine(const QsciScintilla* self, int line) { + QString _ret = self->text(static_cast(line)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciScintilla_Text2(const QsciScintilla* self, int start, int end) { + QString _ret = self->text(static_cast(start), static_cast(end)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +int QsciScintilla_TextHeight(const QsciScintilla* self, int linenr) { + return self->textHeight(static_cast(linenr)); +} + +int QsciScintilla_WhitespaceSize(const QsciScintilla* self) { + return self->whitespaceSize(); +} + +int QsciScintilla_WhitespaceVisibility(const QsciScintilla* self) { + QsciScintilla::WhitespaceVisibility _ret = self->whitespaceVisibility(); + return static_cast(_ret); +} + +struct miqt_string QsciScintilla_WordAtLineIndex(const QsciScintilla* self, int line, int index) { + QString _ret = self->wordAtLineIndex(static_cast(line), static_cast(index)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciScintilla_WordAtPoint(const QsciScintilla* self, QPoint* point) { + QString _ret = self->wordAtPoint(*point); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +const char* QsciScintilla_WordCharacters(const QsciScintilla* self) { + return (const char*) self->wordCharacters(); +} + +int QsciScintilla_WrapMode(const QsciScintilla* self) { + QsciScintilla::WrapMode _ret = self->wrapMode(); + return static_cast(_ret); +} + +int QsciScintilla_WrapIndentMode(const QsciScintilla* self) { + QsciScintilla::WrapIndentMode _ret = self->wrapIndentMode(); + return static_cast(_ret); +} + +bool QsciScintilla_Write(const QsciScintilla* self, QIODevice* io) { + return self->write(io); +} + +void QsciScintilla_Append(QsciScintilla* self, struct miqt_string text) { + QString text_QString = QString::fromUtf8(text.data, text.len); + self->append(text_QString); +} + +void QsciScintilla_AutoCompleteFromAll(QsciScintilla* self) { + self->autoCompleteFromAll(); +} + +void QsciScintilla_AutoCompleteFromAPIs(QsciScintilla* self) { + self->autoCompleteFromAPIs(); +} + +void QsciScintilla_AutoCompleteFromDocument(QsciScintilla* self) { + self->autoCompleteFromDocument(); +} + +void QsciScintilla_CallTip(QsciScintilla* self) { + self->callTip(); +} + +void QsciScintilla_Clear(QsciScintilla* self) { + self->clear(); +} + +void QsciScintilla_Copy(QsciScintilla* self) { + self->copy(); +} + +void QsciScintilla_Cut(QsciScintilla* self) { + self->cut(); +} + +void QsciScintilla_EnsureCursorVisible(QsciScintilla* self) { + self->ensureCursorVisible(); +} + +void QsciScintilla_EnsureLineVisible(QsciScintilla* self, int line) { + self->ensureLineVisible(static_cast(line)); +} + +void QsciScintilla_FoldAll(QsciScintilla* self) { + self->foldAll(); +} + +void QsciScintilla_FoldLine(QsciScintilla* self, int line) { + self->foldLine(static_cast(line)); +} + +void QsciScintilla_Indent(QsciScintilla* self, int line) { + self->indent(static_cast(line)); +} + +void QsciScintilla_Insert(QsciScintilla* self, struct miqt_string text) { + QString text_QString = QString::fromUtf8(text.data, text.len); + self->insert(text_QString); +} + +void QsciScintilla_InsertAt(QsciScintilla* self, struct miqt_string text, int line, int index) { + QString text_QString = QString::fromUtf8(text.data, text.len); + self->insertAt(text_QString, static_cast(line), static_cast(index)); +} + +void QsciScintilla_MoveToMatchingBrace(QsciScintilla* self) { + self->moveToMatchingBrace(); +} + +void QsciScintilla_Paste(QsciScintilla* self) { + self->paste(); +} + +void QsciScintilla_Redo(QsciScintilla* self) { + self->redo(); +} + +void QsciScintilla_RemoveSelectedText(QsciScintilla* self) { + self->removeSelectedText(); +} + +void QsciScintilla_ReplaceSelectedText(QsciScintilla* self, struct miqt_string text) { + QString text_QString = QString::fromUtf8(text.data, text.len); + self->replaceSelectedText(text_QString); +} + +void QsciScintilla_ResetSelectionBackgroundColor(QsciScintilla* self) { + self->resetSelectionBackgroundColor(); +} + +void QsciScintilla_ResetSelectionForegroundColor(QsciScintilla* self) { + self->resetSelectionForegroundColor(); +} + +void QsciScintilla_SelectAll(QsciScintilla* self) { + self->selectAll(); +} + +void QsciScintilla_SelectToMatchingBrace(QsciScintilla* self) { + self->selectToMatchingBrace(); +} + +void QsciScintilla_SetAutoCompletionCaseSensitivity(QsciScintilla* self, bool cs) { + self->setAutoCompletionCaseSensitivity(cs); +} + +void QsciScintilla_SetAutoCompletionReplaceWord(QsciScintilla* self, bool replace) { + self->setAutoCompletionReplaceWord(replace); +} + +void QsciScintilla_SetAutoCompletionShowSingle(QsciScintilla* self, bool single) { + self->setAutoCompletionShowSingle(single); +} + +void QsciScintilla_SetAutoCompletionSource(QsciScintilla* self, int source) { + self->setAutoCompletionSource(static_cast(source)); +} + +void QsciScintilla_SetAutoCompletionThreshold(QsciScintilla* self, int thresh) { + self->setAutoCompletionThreshold(static_cast(thresh)); +} + +void QsciScintilla_SetAutoCompletionUseSingle(QsciScintilla* self, int single) { + self->setAutoCompletionUseSingle(static_cast(single)); +} + +void QsciScintilla_SetAutoIndent(QsciScintilla* self, bool autoindent) { + self->setAutoIndent(autoindent); +} + +void QsciScintilla_SetBraceMatching(QsciScintilla* self, int bm) { + self->setBraceMatching(static_cast(bm)); +} + +void QsciScintilla_SetBackspaceUnindents(QsciScintilla* self, bool unindent) { + self->setBackspaceUnindents(unindent); +} + +void QsciScintilla_SetCaretForegroundColor(QsciScintilla* self, QColor* col) { + self->setCaretForegroundColor(*col); +} + +void QsciScintilla_SetCaretLineBackgroundColor(QsciScintilla* self, QColor* col) { + self->setCaretLineBackgroundColor(*col); +} + +void QsciScintilla_SetCaretLineFrameWidth(QsciScintilla* self, int width) { + self->setCaretLineFrameWidth(static_cast(width)); +} + +void QsciScintilla_SetCaretLineVisible(QsciScintilla* self, bool enable) { + self->setCaretLineVisible(enable); +} + +void QsciScintilla_SetCaretWidth(QsciScintilla* self, int width) { + self->setCaretWidth(static_cast(width)); +} + +void QsciScintilla_SetColor(QsciScintilla* self, QColor* c) { + self->setColor(*c); +} + +void QsciScintilla_SetCursorPosition(QsciScintilla* self, int line, int index) { + self->setCursorPosition(static_cast(line), static_cast(index)); +} + +void QsciScintilla_SetEolMode(QsciScintilla* self, int mode) { + self->setEolMode(static_cast(mode)); +} + +void QsciScintilla_SetEolVisibility(QsciScintilla* self, bool visible) { + self->setEolVisibility(visible); +} + +void QsciScintilla_SetFolding(QsciScintilla* self, int fold) { + self->setFolding(static_cast(fold)); +} + +void QsciScintilla_SetIndentation(QsciScintilla* self, int line, int indentation) { + self->setIndentation(static_cast(line), static_cast(indentation)); +} + +void QsciScintilla_SetIndentationGuides(QsciScintilla* self, bool enable) { + self->setIndentationGuides(enable); +} + +void QsciScintilla_SetIndentationGuidesBackgroundColor(QsciScintilla* self, QColor* col) { + self->setIndentationGuidesBackgroundColor(*col); +} + +void QsciScintilla_SetIndentationGuidesForegroundColor(QsciScintilla* self, QColor* col) { + self->setIndentationGuidesForegroundColor(*col); +} + +void QsciScintilla_SetIndentationsUseTabs(QsciScintilla* self, bool tabs) { + self->setIndentationsUseTabs(tabs); +} + +void QsciScintilla_SetIndentationWidth(QsciScintilla* self, int width) { + self->setIndentationWidth(static_cast(width)); +} + +void QsciScintilla_SetLexer(QsciScintilla* self) { + self->setLexer(); +} + +void QsciScintilla_SetMarginsBackgroundColor(QsciScintilla* self, QColor* col) { + self->setMarginsBackgroundColor(*col); +} + +void QsciScintilla_SetMarginsFont(QsciScintilla* self, QFont* f) { + self->setMarginsFont(*f); +} + +void QsciScintilla_SetMarginsForegroundColor(QsciScintilla* self, QColor* col) { + self->setMarginsForegroundColor(*col); +} + +void QsciScintilla_SetMarginLineNumbers(QsciScintilla* self, int margin, bool lnrs) { + self->setMarginLineNumbers(static_cast(margin), lnrs); +} + +void QsciScintilla_SetMarginMarkerMask(QsciScintilla* self, int margin, int mask) { + self->setMarginMarkerMask(static_cast(margin), static_cast(mask)); +} + +void QsciScintilla_SetMarginSensitivity(QsciScintilla* self, int margin, bool sens) { + self->setMarginSensitivity(static_cast(margin), sens); +} + +void QsciScintilla_SetMarginWidth(QsciScintilla* self, int margin, int width) { + self->setMarginWidth(static_cast(margin), static_cast(width)); +} + +void QsciScintilla_SetMarginWidth2(QsciScintilla* self, int margin, struct miqt_string s) { + QString s_QString = QString::fromUtf8(s.data, s.len); + self->setMarginWidth(static_cast(margin), s_QString); +} + +void QsciScintilla_SetModified(QsciScintilla* self, bool m) { + self->setModified(m); +} + +void QsciScintilla_SetPaper(QsciScintilla* self, QColor* c) { + self->setPaper(*c); +} + +void QsciScintilla_SetReadOnly(QsciScintilla* self, bool ro) { + self->setReadOnly(ro); +} + +void QsciScintilla_SetSelection(QsciScintilla* self, int lineFrom, int indexFrom, int lineTo, int indexTo) { + self->setSelection(static_cast(lineFrom), static_cast(indexFrom), static_cast(lineTo), static_cast(indexTo)); +} + +void QsciScintilla_SetSelectionBackgroundColor(QsciScintilla* self, QColor* col) { + self->setSelectionBackgroundColor(*col); +} + +void QsciScintilla_SetSelectionForegroundColor(QsciScintilla* self, QColor* col) { + self->setSelectionForegroundColor(*col); +} + +void QsciScintilla_SetTabIndents(QsciScintilla* self, bool indent) { + self->setTabIndents(indent); +} + +void QsciScintilla_SetTabWidth(QsciScintilla* self, int width) { + self->setTabWidth(static_cast(width)); +} + +void QsciScintilla_SetText(QsciScintilla* self, struct miqt_string text) { + QString text_QString = QString::fromUtf8(text.data, text.len); + self->setText(text_QString); +} + +void QsciScintilla_SetUtf8(QsciScintilla* self, bool cp) { + self->setUtf8(cp); +} + +void QsciScintilla_SetWhitespaceVisibility(QsciScintilla* self, int mode) { + self->setWhitespaceVisibility(static_cast(mode)); +} + +void QsciScintilla_SetWrapMode(QsciScintilla* self, int mode) { + self->setWrapMode(static_cast(mode)); +} + +void QsciScintilla_Undo(QsciScintilla* self) { + self->undo(); +} + +void QsciScintilla_Unindent(QsciScintilla* self, int line) { + self->unindent(static_cast(line)); +} + +void QsciScintilla_ZoomIn(QsciScintilla* self, int rangeVal) { + self->zoomIn(static_cast(rangeVal)); +} + +void QsciScintilla_ZoomIn2(QsciScintilla* self) { + self->zoomIn(); +} + +void QsciScintilla_ZoomOut(QsciScintilla* self, int rangeVal) { + self->zoomOut(static_cast(rangeVal)); +} + +void QsciScintilla_ZoomOut2(QsciScintilla* self) { + self->zoomOut(); +} + +void QsciScintilla_ZoomTo(QsciScintilla* self, int size) { + self->zoomTo(static_cast(size)); +} + +void QsciScintilla_CursorPositionChanged(QsciScintilla* self, int line, int index) { + self->cursorPositionChanged(static_cast(line), static_cast(index)); +} + +void QsciScintilla_connect_CursorPositionChanged(QsciScintilla* self, intptr_t slot) { + QsciScintilla::connect(self, static_cast(&QsciScintilla::cursorPositionChanged), self, [=](int line, int index) { + int sigval1 = line; + int sigval2 = index; + miqt_exec_callback_QsciScintilla_CursorPositionChanged(slot, sigval1, sigval2); + }); +} + +void QsciScintilla_CopyAvailable(QsciScintilla* self, bool yes) { + self->copyAvailable(yes); +} + +void QsciScintilla_connect_CopyAvailable(QsciScintilla* self, intptr_t slot) { + QsciScintilla::connect(self, static_cast(&QsciScintilla::copyAvailable), self, [=](bool yes) { + bool sigval1 = yes; + miqt_exec_callback_QsciScintilla_CopyAvailable(slot, sigval1); + }); +} + +void QsciScintilla_IndicatorClicked(QsciScintilla* self, int line, int index, int state) { + self->indicatorClicked(static_cast(line), static_cast(index), static_cast(state)); +} + +void QsciScintilla_connect_IndicatorClicked(QsciScintilla* self, intptr_t slot) { + QsciScintilla::connect(self, static_cast(&QsciScintilla::indicatorClicked), self, [=](int line, int index, Qt::KeyboardModifiers state) { + int sigval1 = line; + int sigval2 = index; + Qt::KeyboardModifiers state_ret = state; + int sigval3 = static_cast(state_ret); + miqt_exec_callback_QsciScintilla_IndicatorClicked(slot, sigval1, sigval2, sigval3); + }); +} + +void QsciScintilla_IndicatorReleased(QsciScintilla* self, int line, int index, int state) { + self->indicatorReleased(static_cast(line), static_cast(index), static_cast(state)); +} + +void QsciScintilla_connect_IndicatorReleased(QsciScintilla* self, intptr_t slot) { + QsciScintilla::connect(self, static_cast(&QsciScintilla::indicatorReleased), self, [=](int line, int index, Qt::KeyboardModifiers state) { + int sigval1 = line; + int sigval2 = index; + Qt::KeyboardModifiers state_ret = state; + int sigval3 = static_cast(state_ret); + miqt_exec_callback_QsciScintilla_IndicatorReleased(slot, sigval1, sigval2, sigval3); + }); +} + +void QsciScintilla_LinesChanged(QsciScintilla* self) { + self->linesChanged(); +} + +void QsciScintilla_connect_LinesChanged(QsciScintilla* self, intptr_t slot) { + QsciScintilla::connect(self, static_cast(&QsciScintilla::linesChanged), self, [=]() { + miqt_exec_callback_QsciScintilla_LinesChanged(slot); + }); +} + +void QsciScintilla_MarginClicked(QsciScintilla* self, int margin, int line, int state) { + self->marginClicked(static_cast(margin), static_cast(line), static_cast(state)); +} + +void QsciScintilla_connect_MarginClicked(QsciScintilla* self, intptr_t slot) { + QsciScintilla::connect(self, static_cast(&QsciScintilla::marginClicked), self, [=](int margin, int line, Qt::KeyboardModifiers state) { + int sigval1 = margin; + int sigval2 = line; + Qt::KeyboardModifiers state_ret = state; + int sigval3 = static_cast(state_ret); + miqt_exec_callback_QsciScintilla_MarginClicked(slot, sigval1, sigval2, sigval3); + }); +} + +void QsciScintilla_MarginRightClicked(QsciScintilla* self, int margin, int line, int state) { + self->marginRightClicked(static_cast(margin), static_cast(line), static_cast(state)); +} + +void QsciScintilla_connect_MarginRightClicked(QsciScintilla* self, intptr_t slot) { + QsciScintilla::connect(self, static_cast(&QsciScintilla::marginRightClicked), self, [=](int margin, int line, Qt::KeyboardModifiers state) { + int sigval1 = margin; + int sigval2 = line; + Qt::KeyboardModifiers state_ret = state; + int sigval3 = static_cast(state_ret); + miqt_exec_callback_QsciScintilla_MarginRightClicked(slot, sigval1, sigval2, sigval3); + }); +} + +void QsciScintilla_ModificationAttempted(QsciScintilla* self) { + self->modificationAttempted(); +} + +void QsciScintilla_connect_ModificationAttempted(QsciScintilla* self, intptr_t slot) { + QsciScintilla::connect(self, static_cast(&QsciScintilla::modificationAttempted), self, [=]() { + miqt_exec_callback_QsciScintilla_ModificationAttempted(slot); + }); +} + +void QsciScintilla_ModificationChanged(QsciScintilla* self, bool m) { + self->modificationChanged(m); +} + +void QsciScintilla_connect_ModificationChanged(QsciScintilla* self, intptr_t slot) { + QsciScintilla::connect(self, static_cast(&QsciScintilla::modificationChanged), self, [=](bool m) { + bool sigval1 = m; + miqt_exec_callback_QsciScintilla_ModificationChanged(slot, sigval1); + }); +} + +void QsciScintilla_SelectionChanged(QsciScintilla* self) { + self->selectionChanged(); +} + +void QsciScintilla_connect_SelectionChanged(QsciScintilla* self, intptr_t slot) { + QsciScintilla::connect(self, static_cast(&QsciScintilla::selectionChanged), self, [=]() { + miqt_exec_callback_QsciScintilla_SelectionChanged(slot); + }); +} + +void QsciScintilla_TextChanged(QsciScintilla* self) { + self->textChanged(); +} + +void QsciScintilla_connect_TextChanged(QsciScintilla* self, intptr_t slot) { + QsciScintilla::connect(self, static_cast(&QsciScintilla::textChanged), self, [=]() { + miqt_exec_callback_QsciScintilla_TextChanged(slot); + }); +} + +void QsciScintilla_UserListActivated(QsciScintilla* self, int id, struct miqt_string stringVal) { + QString stringVal_QString = QString::fromUtf8(stringVal.data, stringVal.len); + self->userListActivated(static_cast(id), stringVal_QString); +} + +void QsciScintilla_connect_UserListActivated(QsciScintilla* self, intptr_t slot) { + QsciScintilla::connect(self, static_cast(&QsciScintilla::userListActivated), self, [=](int id, const QString& stringVal) { + int sigval1 = id; + const QString stringVal_ret = stringVal; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray stringVal_b = stringVal_ret.toUtf8(); + struct miqt_string stringVal_ms; + stringVal_ms.len = stringVal_b.length(); + stringVal_ms.data = static_cast(malloc(stringVal_ms.len)); + memcpy(stringVal_ms.data, stringVal_b.data(), stringVal_ms.len); + struct miqt_string sigval2 = stringVal_ms; + miqt_exec_callback_QsciScintilla_UserListActivated(slot, sigval1, sigval2); + }); +} + +struct miqt_string QsciScintilla_Tr2(const char* s, const char* c) { + QString _ret = QsciScintilla::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciScintilla_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciScintilla::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciScintilla_TrUtf82(const char* s, const char* c) { + QString _ret = QsciScintilla::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciScintilla_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciScintilla::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciScintilla_ClearAnnotations1(QsciScintilla* self, int line) { + self->clearAnnotations(static_cast(line)); +} + +bool QsciScintilla_FindFirst6(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool wrap, bool forward) { + QString expr_QString = QString::fromUtf8(expr.data, expr.len); + return self->findFirst(expr_QString, re, cs, wo, wrap, forward); +} + +bool QsciScintilla_FindFirst7(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool wrap, bool forward, int line) { + QString expr_QString = QString::fromUtf8(expr.data, expr.len); + return self->findFirst(expr_QString, re, cs, wo, wrap, forward, static_cast(line)); +} + +bool QsciScintilla_FindFirst8(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool wrap, bool forward, int line, int index) { + QString expr_QString = QString::fromUtf8(expr.data, expr.len); + return self->findFirst(expr_QString, re, cs, wo, wrap, forward, static_cast(line), static_cast(index)); +} + +bool QsciScintilla_FindFirst9(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool wrap, bool forward, int line, int index, bool show) { + QString expr_QString = QString::fromUtf8(expr.data, expr.len); + return self->findFirst(expr_QString, re, cs, wo, wrap, forward, static_cast(line), static_cast(index), show); +} + +bool QsciScintilla_FindFirst10(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool wrap, bool forward, int line, int index, bool show, bool posix) { + QString expr_QString = QString::fromUtf8(expr.data, expr.len); + return self->findFirst(expr_QString, re, cs, wo, wrap, forward, static_cast(line), static_cast(index), show, posix); +} + +bool QsciScintilla_FindFirst11(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool wrap, bool forward, int line, int index, bool show, bool posix, bool cxx11) { + QString expr_QString = QString::fromUtf8(expr.data, expr.len); + return self->findFirst(expr_QString, re, cs, wo, wrap, forward, static_cast(line), static_cast(index), show, posix, cxx11); +} + +bool QsciScintilla_FindFirstInSelection5(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool forward) { + QString expr_QString = QString::fromUtf8(expr.data, expr.len); + return self->findFirstInSelection(expr_QString, re, cs, wo, forward); +} + +bool QsciScintilla_FindFirstInSelection6(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool forward, bool show) { + QString expr_QString = QString::fromUtf8(expr.data, expr.len); + return self->findFirstInSelection(expr_QString, re, cs, wo, forward, show); +} + +bool QsciScintilla_FindFirstInSelection7(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool forward, bool show, bool posix) { + QString expr_QString = QString::fromUtf8(expr.data, expr.len); + return self->findFirstInSelection(expr_QString, re, cs, wo, forward, show, posix); +} + +bool QsciScintilla_FindFirstInSelection8(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool forward, bool show, bool posix, bool cxx11) { + QString expr_QString = QString::fromUtf8(expr.data, expr.len); + return self->findFirstInSelection(expr_QString, re, cs, wo, forward, show, posix, cxx11); +} + +int QsciScintilla_IndicatorDefine2(QsciScintilla* self, int style, int indicatorNumber) { + return self->indicatorDefine(static_cast(style), static_cast(indicatorNumber)); +} + +int QsciScintilla_MarkerDefine2(QsciScintilla* self, int sym, int markerNumber) { + return self->markerDefine(static_cast(sym), static_cast(markerNumber)); +} + +int QsciScintilla_MarkerDefine22(QsciScintilla* self, char ch, int markerNumber) { + return self->markerDefine(static_cast(ch), static_cast(markerNumber)); +} + +int QsciScintilla_MarkerDefine23(QsciScintilla* self, QPixmap* pm, int markerNumber) { + return self->markerDefine(*pm, static_cast(markerNumber)); +} + +int QsciScintilla_MarkerDefine24(QsciScintilla* self, QImage* im, int markerNumber) { + return self->markerDefine(*im, static_cast(markerNumber)); +} + +void QsciScintilla_MarkerDelete2(QsciScintilla* self, int linenr, int markerNumber) { + self->markerDelete(static_cast(linenr), static_cast(markerNumber)); +} + +void QsciScintilla_MarkerDeleteAll1(QsciScintilla* self, int markerNumber) { + self->markerDeleteAll(static_cast(markerNumber)); +} + +void QsciScintilla_Recolor1(QsciScintilla* self, int start) { + self->recolor(static_cast(start)); +} + +void QsciScintilla_Recolor2(QsciScintilla* self, int start, int end) { + self->recolor(static_cast(start), static_cast(end)); +} + +void QsciScintilla_SetIndicatorDrawUnder2(QsciScintilla* self, bool under, int indicatorNumber) { + self->setIndicatorDrawUnder(under, static_cast(indicatorNumber)); +} + +void QsciScintilla_SetIndicatorForegroundColor2(QsciScintilla* self, QColor* col, int indicatorNumber) { + self->setIndicatorForegroundColor(*col, static_cast(indicatorNumber)); +} + +void QsciScintilla_SetIndicatorHoverForegroundColor2(QsciScintilla* self, QColor* col, int indicatorNumber) { + self->setIndicatorHoverForegroundColor(*col, static_cast(indicatorNumber)); +} + +void QsciScintilla_SetIndicatorHoverStyle2(QsciScintilla* self, int style, int indicatorNumber) { + self->setIndicatorHoverStyle(static_cast(style), static_cast(indicatorNumber)); +} + +void QsciScintilla_SetIndicatorOutlineColor2(QsciScintilla* self, QColor* col, int indicatorNumber) { + self->setIndicatorOutlineColor(*col, static_cast(indicatorNumber)); +} + +void QsciScintilla_ClearMarginText1(QsciScintilla* self, int line) { + self->clearMarginText(static_cast(line)); +} + +void QsciScintilla_SetMarkerBackgroundColor2(QsciScintilla* self, QColor* col, int markerNumber) { + self->setMarkerBackgroundColor(*col, static_cast(markerNumber)); +} + +void QsciScintilla_SetMarkerForegroundColor2(QsciScintilla* self, QColor* col, int markerNumber) { + self->setMarkerForegroundColor(*col, static_cast(markerNumber)); +} + +void QsciScintilla_SetWrapVisualFlags2(QsciScintilla* self, int endFlag, int startFlag) { + self->setWrapVisualFlags(static_cast(endFlag), static_cast(startFlag)); +} + +void QsciScintilla_SetWrapVisualFlags3(QsciScintilla* self, int endFlag, int startFlag, int indent) { + self->setWrapVisualFlags(static_cast(endFlag), static_cast(startFlag), static_cast(indent)); +} + +void QsciScintilla_FoldAll1(QsciScintilla* self, bool children) { + self->foldAll(children); +} + +void QsciScintilla_SelectAll1(QsciScintilla* self, bool selectVal) { + self->selectAll(selectVal); +} + +void QsciScintilla_SetFolding2(QsciScintilla* self, int fold, int margin) { + self->setFolding(static_cast(fold), static_cast(margin)); +} + +void QsciScintilla_SetLexer1(QsciScintilla* self, QsciLexer* lexer) { + self->setLexer(lexer); +} + +void QsciScintilla_Delete(QsciScintilla* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintilla.go b/qt-restricted-extras/qscintilla/gen_qsciscintilla.go new file mode 100644 index 00000000..5acf850e --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciscintilla.go @@ -0,0 +1,1958 @@ +package qscintilla + +/* + +#include "gen_qsciscintilla.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "runtime/cgo" + "unsafe" +) + +type QsciScintilla__ int + +const ( + QsciScintilla__AiMaintain QsciScintilla__ = 1 + QsciScintilla__AiOpening QsciScintilla__ = 2 + QsciScintilla__AiClosing QsciScintilla__ = 4 + QsciScintilla__MoNone QsciScintilla__ = 0 + QsciScintilla__MoSublineSelect QsciScintilla__ = 1 +) + +type QsciScintilla__AnnotationDisplay int + +const ( + QsciScintilla__AnnotationHidden QsciScintilla__AnnotationDisplay = 0 + QsciScintilla__AnnotationStandard QsciScintilla__AnnotationDisplay = 1 + QsciScintilla__AnnotationBoxed QsciScintilla__AnnotationDisplay = 2 + QsciScintilla__AnnotationIndented QsciScintilla__AnnotationDisplay = 3 +) + +type QsciScintilla__AutoCompletionUseSingle int + +const ( + QsciScintilla__AcusNever QsciScintilla__AutoCompletionUseSingle = 0 + QsciScintilla__AcusExplicit QsciScintilla__AutoCompletionUseSingle = 1 + QsciScintilla__AcusAlways QsciScintilla__AutoCompletionUseSingle = 2 +) + +type QsciScintilla__AutoCompletionSource int + +const ( + QsciScintilla__AcsNone QsciScintilla__AutoCompletionSource = 0 + QsciScintilla__AcsAll QsciScintilla__AutoCompletionSource = 1 + QsciScintilla__AcsDocument QsciScintilla__AutoCompletionSource = 2 + QsciScintilla__AcsAPIs QsciScintilla__AutoCompletionSource = 3 +) + +type QsciScintilla__BraceMatch int + +const ( + QsciScintilla__NoBraceMatch QsciScintilla__BraceMatch = 0 + QsciScintilla__StrictBraceMatch QsciScintilla__BraceMatch = 1 + QsciScintilla__SloppyBraceMatch QsciScintilla__BraceMatch = 2 +) + +type QsciScintilla__CallTipsPosition int + +const ( + QsciScintilla__CallTipsBelowText QsciScintilla__CallTipsPosition = 0 + QsciScintilla__CallTipsAboveText QsciScintilla__CallTipsPosition = 1 +) + +type QsciScintilla__CallTipsStyle int + +const ( + QsciScintilla__CallTipsNone QsciScintilla__CallTipsStyle = 0 + QsciScintilla__CallTipsNoContext QsciScintilla__CallTipsStyle = 1 + QsciScintilla__CallTipsNoAutoCompletionContext QsciScintilla__CallTipsStyle = 2 + QsciScintilla__CallTipsContext QsciScintilla__CallTipsStyle = 3 +) + +type QsciScintilla__EdgeMode int + +const ( + QsciScintilla__EdgeNone QsciScintilla__EdgeMode = 0 + QsciScintilla__EdgeLine QsciScintilla__EdgeMode = 1 + QsciScintilla__EdgeBackground QsciScintilla__EdgeMode = 2 + QsciScintilla__EdgeMultipleLines QsciScintilla__EdgeMode = 3 +) + +type QsciScintilla__EolMode int + +const ( + QsciScintilla__EolWindows QsciScintilla__EolMode = 0 + QsciScintilla__EolUnix QsciScintilla__EolMode = 2 + QsciScintilla__EolMac QsciScintilla__EolMode = 1 +) + +type QsciScintilla__FoldStyle int + +const ( + QsciScintilla__NoFoldStyle QsciScintilla__FoldStyle = 0 + QsciScintilla__PlainFoldStyle QsciScintilla__FoldStyle = 1 + QsciScintilla__CircledFoldStyle QsciScintilla__FoldStyle = 2 + QsciScintilla__BoxedFoldStyle QsciScintilla__FoldStyle = 3 + QsciScintilla__CircledTreeFoldStyle QsciScintilla__FoldStyle = 4 + QsciScintilla__BoxedTreeFoldStyle QsciScintilla__FoldStyle = 5 +) + +type QsciScintilla__IndicatorStyle int + +const ( + QsciScintilla__PlainIndicator QsciScintilla__IndicatorStyle = 0 + QsciScintilla__SquiggleIndicator QsciScintilla__IndicatorStyle = 1 + QsciScintilla__TTIndicator QsciScintilla__IndicatorStyle = 2 + QsciScintilla__DiagonalIndicator QsciScintilla__IndicatorStyle = 3 + QsciScintilla__StrikeIndicator QsciScintilla__IndicatorStyle = 4 + QsciScintilla__HiddenIndicator QsciScintilla__IndicatorStyle = 5 + QsciScintilla__BoxIndicator QsciScintilla__IndicatorStyle = 6 + QsciScintilla__RoundBoxIndicator QsciScintilla__IndicatorStyle = 7 + QsciScintilla__StraightBoxIndicator QsciScintilla__IndicatorStyle = 8 + QsciScintilla__FullBoxIndicator QsciScintilla__IndicatorStyle = 16 + QsciScintilla__DashesIndicator QsciScintilla__IndicatorStyle = 9 + QsciScintilla__DotsIndicator QsciScintilla__IndicatorStyle = 10 + QsciScintilla__SquiggleLowIndicator QsciScintilla__IndicatorStyle = 11 + QsciScintilla__DotBoxIndicator QsciScintilla__IndicatorStyle = 12 + QsciScintilla__SquigglePixmapIndicator QsciScintilla__IndicatorStyle = 13 + QsciScintilla__ThickCompositionIndicator QsciScintilla__IndicatorStyle = 14 + QsciScintilla__ThinCompositionIndicator QsciScintilla__IndicatorStyle = 15 + QsciScintilla__TextColorIndicator QsciScintilla__IndicatorStyle = 17 + QsciScintilla__TriangleIndicator QsciScintilla__IndicatorStyle = 18 + QsciScintilla__TriangleCharacterIndicator QsciScintilla__IndicatorStyle = 19 + QsciScintilla__GradientIndicator QsciScintilla__IndicatorStyle = 20 + QsciScintilla__CentreGradientIndicator QsciScintilla__IndicatorStyle = 21 +) + +type QsciScintilla__MarginType int + +const ( + QsciScintilla__SymbolMargin QsciScintilla__MarginType = 0 + QsciScintilla__SymbolMarginDefaultForegroundColor QsciScintilla__MarginType = 3 + QsciScintilla__SymbolMarginDefaultBackgroundColor QsciScintilla__MarginType = 2 + QsciScintilla__NumberMargin QsciScintilla__MarginType = 1 + QsciScintilla__TextMargin QsciScintilla__MarginType = 4 + QsciScintilla__TextMarginRightJustified QsciScintilla__MarginType = 5 + QsciScintilla__SymbolMarginColor QsciScintilla__MarginType = 6 +) + +type QsciScintilla__MarkerSymbol int + +const ( + QsciScintilla__Circle QsciScintilla__MarkerSymbol = 0 + QsciScintilla__Rectangle QsciScintilla__MarkerSymbol = 1 + QsciScintilla__RightTriangle QsciScintilla__MarkerSymbol = 2 + QsciScintilla__SmallRectangle QsciScintilla__MarkerSymbol = 3 + QsciScintilla__RightArrow QsciScintilla__MarkerSymbol = 4 + QsciScintilla__Invisible QsciScintilla__MarkerSymbol = 5 + QsciScintilla__DownTriangle QsciScintilla__MarkerSymbol = 6 + QsciScintilla__Minus QsciScintilla__MarkerSymbol = 7 + QsciScintilla__Plus QsciScintilla__MarkerSymbol = 8 + QsciScintilla__VerticalLine QsciScintilla__MarkerSymbol = 9 + QsciScintilla__BottomLeftCorner QsciScintilla__MarkerSymbol = 10 + QsciScintilla__LeftSideSplitter QsciScintilla__MarkerSymbol = 11 + QsciScintilla__BoxedPlus QsciScintilla__MarkerSymbol = 12 + QsciScintilla__BoxedPlusConnected QsciScintilla__MarkerSymbol = 13 + QsciScintilla__BoxedMinus QsciScintilla__MarkerSymbol = 14 + QsciScintilla__BoxedMinusConnected QsciScintilla__MarkerSymbol = 15 + QsciScintilla__RoundedBottomLeftCorner QsciScintilla__MarkerSymbol = 16 + QsciScintilla__LeftSideRoundedSplitter QsciScintilla__MarkerSymbol = 17 + QsciScintilla__CircledPlus QsciScintilla__MarkerSymbol = 18 + QsciScintilla__CircledPlusConnected QsciScintilla__MarkerSymbol = 19 + QsciScintilla__CircledMinus QsciScintilla__MarkerSymbol = 20 + QsciScintilla__CircledMinusConnected QsciScintilla__MarkerSymbol = 21 + QsciScintilla__Background QsciScintilla__MarkerSymbol = 22 + QsciScintilla__ThreeDots QsciScintilla__MarkerSymbol = 23 + QsciScintilla__ThreeRightArrows QsciScintilla__MarkerSymbol = 24 + QsciScintilla__FullRectangle QsciScintilla__MarkerSymbol = 26 + QsciScintilla__LeftRectangle QsciScintilla__MarkerSymbol = 27 + QsciScintilla__Underline QsciScintilla__MarkerSymbol = 29 + QsciScintilla__Bookmark QsciScintilla__MarkerSymbol = 31 +) + +type QsciScintilla__TabDrawMode int + +const ( + QsciScintilla__TabLongArrow QsciScintilla__TabDrawMode = 0 + QsciScintilla__TabStrikeOut QsciScintilla__TabDrawMode = 1 +) + +type QsciScintilla__WhitespaceVisibility int + +const ( + QsciScintilla__WsInvisible QsciScintilla__WhitespaceVisibility = 0 + QsciScintilla__WsVisible QsciScintilla__WhitespaceVisibility = 1 + QsciScintilla__WsVisibleAfterIndent QsciScintilla__WhitespaceVisibility = 2 + QsciScintilla__WsVisibleOnlyInIndent QsciScintilla__WhitespaceVisibility = 3 +) + +type QsciScintilla__WrapMode int + +const ( + QsciScintilla__WrapNone QsciScintilla__WrapMode = 0 + QsciScintilla__WrapWord QsciScintilla__WrapMode = 1 + QsciScintilla__WrapCharacter QsciScintilla__WrapMode = 2 + QsciScintilla__WrapWhitespace QsciScintilla__WrapMode = 3 +) + +type QsciScintilla__WrapVisualFlag int + +const ( + QsciScintilla__WrapFlagNone QsciScintilla__WrapVisualFlag = 0 + QsciScintilla__WrapFlagByText QsciScintilla__WrapVisualFlag = 1 + QsciScintilla__WrapFlagByBorder QsciScintilla__WrapVisualFlag = 2 + QsciScintilla__WrapFlagInMargin QsciScintilla__WrapVisualFlag = 3 +) + +type QsciScintilla__WrapIndentMode int + +const ( + QsciScintilla__WrapIndentFixed QsciScintilla__WrapIndentMode = 0 + QsciScintilla__WrapIndentSame QsciScintilla__WrapIndentMode = 1 + QsciScintilla__WrapIndentIndented QsciScintilla__WrapIndentMode = 2 + QsciScintilla__WrapIndentDeeplyIndented QsciScintilla__WrapIndentMode = 3 +) + +type QsciScintilla struct { + h *C.QsciScintilla + *QsciScintillaBase +} + +func (this *QsciScintilla) cPointer() *C.QsciScintilla { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciScintilla) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciScintilla(h *C.QsciScintilla) *QsciScintilla { + if h == nil { + return nil + } + return &QsciScintilla{h: h, QsciScintillaBase: UnsafeNewQsciScintillaBase(unsafe.Pointer(h))} +} + +func UnsafeNewQsciScintilla(h unsafe.Pointer) *QsciScintilla { + return newQsciScintilla((*C.QsciScintilla)(h)) +} + +// NewQsciScintilla constructs a new QsciScintilla object. +func NewQsciScintilla() *QsciScintilla { + ret := C.QsciScintilla_new() + return newQsciScintilla(ret) +} + +// NewQsciScintilla2 constructs a new QsciScintilla object. +func NewQsciScintilla2(parent *qt.QWidget) *QsciScintilla { + ret := C.QsciScintilla_new2((*C.QWidget)(parent.UnsafePointer())) + return newQsciScintilla(ret) +} + +func (this *QsciScintilla) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciScintilla_MetaObject(this.h))) +} + +func (this *QsciScintilla) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciScintilla_Metacast(this.h, param1_Cstring)) +} + +func QsciScintilla_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciScintilla_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciScintilla_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciScintilla_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciScintilla) ApiContext(pos int, context_start *int, last_word_start *int) []string { + var _ma *C.struct_miqt_array = C.QsciScintilla_ApiContext(this.h, (C.int)(pos), (*C.int)(unsafe.Pointer(context_start)), (*C.int)(unsafe.Pointer(last_word_start))) + _ret := make([]string, int(_ma.len)) + _outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + var _lv_ms C.struct_miqt_string = _outCast[i] + _lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len))) + C.free(unsafe.Pointer(_lv_ms.data)) + _ret[i] = _lv_ret + } + C.free(unsafe.Pointer(_ma)) + return _ret +} + +func (this *QsciScintilla) Annotate(line int, text string, style int) { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + C.QsciScintilla_Annotate(this.h, (C.int)(line), text_ms, (C.int)(style)) +} + +func (this *QsciScintilla) Annotate2(line int, text string, style *QsciStyle) { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + C.QsciScintilla_Annotate2(this.h, (C.int)(line), text_ms, style.cPointer()) +} + +func (this *QsciScintilla) Annotate3(line int, text *QsciStyledText) { + C.QsciScintilla_Annotate3(this.h, (C.int)(line), text.cPointer()) +} + +func (this *QsciScintilla) Annotation(line int) string { + var _ms C.struct_miqt_string = C.QsciScintilla_Annotation(this.h, (C.int)(line)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciScintilla) AnnotationDisplay() QsciScintilla__AnnotationDisplay { + return (QsciScintilla__AnnotationDisplay)(C.QsciScintilla_AnnotationDisplay(this.h)) +} + +func (this *QsciScintilla) ClearAnnotations() { + C.QsciScintilla_ClearAnnotations(this.h) +} + +func (this *QsciScintilla) AutoCompletionCaseSensitivity() bool { + return (bool)(C.QsciScintilla_AutoCompletionCaseSensitivity(this.h)) +} + +func (this *QsciScintilla) AutoCompletionFillupsEnabled() bool { + return (bool)(C.QsciScintilla_AutoCompletionFillupsEnabled(this.h)) +} + +func (this *QsciScintilla) AutoCompletionReplaceWord() bool { + return (bool)(C.QsciScintilla_AutoCompletionReplaceWord(this.h)) +} + +func (this *QsciScintilla) AutoCompletionShowSingle() bool { + return (bool)(C.QsciScintilla_AutoCompletionShowSingle(this.h)) +} + +func (this *QsciScintilla) AutoCompletionSource() QsciScintilla__AutoCompletionSource { + return (QsciScintilla__AutoCompletionSource)(C.QsciScintilla_AutoCompletionSource(this.h)) +} + +func (this *QsciScintilla) AutoCompletionThreshold() int { + return (int)(C.QsciScintilla_AutoCompletionThreshold(this.h)) +} + +func (this *QsciScintilla) AutoCompletionUseSingle() QsciScintilla__AutoCompletionUseSingle { + return (QsciScintilla__AutoCompletionUseSingle)(C.QsciScintilla_AutoCompletionUseSingle(this.h)) +} + +func (this *QsciScintilla) AutoIndent() bool { + return (bool)(C.QsciScintilla_AutoIndent(this.h)) +} + +func (this *QsciScintilla) BackspaceUnindents() bool { + return (bool)(C.QsciScintilla_BackspaceUnindents(this.h)) +} + +func (this *QsciScintilla) BeginUndoAction() { + C.QsciScintilla_BeginUndoAction(this.h) +} + +func (this *QsciScintilla) BraceMatching() QsciScintilla__BraceMatch { + return (QsciScintilla__BraceMatch)(C.QsciScintilla_BraceMatching(this.h)) +} + +func (this *QsciScintilla) Bytes(start int, end int) []byte { + var _bytearray C.struct_miqt_string = C.QsciScintilla_Bytes(this.h, (C.int)(start), (C.int)(end)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *QsciScintilla) CallTipsPosition() QsciScintilla__CallTipsPosition { + return (QsciScintilla__CallTipsPosition)(C.QsciScintilla_CallTipsPosition(this.h)) +} + +func (this *QsciScintilla) CallTipsStyle() QsciScintilla__CallTipsStyle { + return (QsciScintilla__CallTipsStyle)(C.QsciScintilla_CallTipsStyle(this.h)) +} + +func (this *QsciScintilla) CallTipsVisible() int { + return (int)(C.QsciScintilla_CallTipsVisible(this.h)) +} + +func (this *QsciScintilla) CancelFind() { + C.QsciScintilla_CancelFind(this.h) +} + +func (this *QsciScintilla) CancelList() { + C.QsciScintilla_CancelList(this.h) +} + +func (this *QsciScintilla) CaseSensitive() bool { + return (bool)(C.QsciScintilla_CaseSensitive(this.h)) +} + +func (this *QsciScintilla) ClearFolds() { + C.QsciScintilla_ClearFolds(this.h) +} + +func (this *QsciScintilla) ClearIndicatorRange(lineFrom int, indexFrom int, lineTo int, indexTo int, indicatorNumber int) { + C.QsciScintilla_ClearIndicatorRange(this.h, (C.int)(lineFrom), (C.int)(indexFrom), (C.int)(lineTo), (C.int)(indexTo), (C.int)(indicatorNumber)) +} + +func (this *QsciScintilla) ClearRegisteredImages() { + C.QsciScintilla_ClearRegisteredImages(this.h) +} + +func (this *QsciScintilla) Color() *qt.QColor { + _ret := C.QsciScintilla_Color(this.h) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciScintilla) ContractedFolds() []int { + var _ma *C.struct_miqt_array = C.QsciScintilla_ContractedFolds(this.h) + _ret := make([]int, int(_ma.len)) + _outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya + for i := 0; i < int(_ma.len); i++ { + _ret[i] = (int)(_outCast[i]) + } + C.free(unsafe.Pointer(_ma)) + return _ret +} + +func (this *QsciScintilla) ConvertEols(mode QsciScintilla__EolMode) { + C.QsciScintilla_ConvertEols(this.h, (C.int)(mode)) +} + +func (this *QsciScintilla) CreateStandardContextMenu() *qt.QMenu { + return qt.UnsafeNewQMenu(unsafe.Pointer(C.QsciScintilla_CreateStandardContextMenu(this.h))) +} + +func (this *QsciScintilla) Document() *QsciDocument { + _ret := C.QsciScintilla_Document(this.h) + _goptr := newQsciDocument(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciScintilla) EndUndoAction() { + C.QsciScintilla_EndUndoAction(this.h) +} + +func (this *QsciScintilla) EdgeColor() *qt.QColor { + _ret := C.QsciScintilla_EdgeColor(this.h) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciScintilla) EdgeColumn() int { + return (int)(C.QsciScintilla_EdgeColumn(this.h)) +} + +func (this *QsciScintilla) EdgeMode() QsciScintilla__EdgeMode { + return (QsciScintilla__EdgeMode)(C.QsciScintilla_EdgeMode(this.h)) +} + +func (this *QsciScintilla) SetFont(f *qt.QFont) { + C.QsciScintilla_SetFont(this.h, (*C.QFont)(f.UnsafePointer())) +} + +func (this *QsciScintilla) EolMode() QsciScintilla__EolMode { + return (QsciScintilla__EolMode)(C.QsciScintilla_EolMode(this.h)) +} + +func (this *QsciScintilla) EolVisibility() bool { + return (bool)(C.QsciScintilla_EolVisibility(this.h)) +} + +func (this *QsciScintilla) ExtraAscent() int { + return (int)(C.QsciScintilla_ExtraAscent(this.h)) +} + +func (this *QsciScintilla) ExtraDescent() int { + return (int)(C.QsciScintilla_ExtraDescent(this.h)) +} + +func (this *QsciScintilla) FillIndicatorRange(lineFrom int, indexFrom int, lineTo int, indexTo int, indicatorNumber int) { + C.QsciScintilla_FillIndicatorRange(this.h, (C.int)(lineFrom), (C.int)(indexFrom), (C.int)(lineTo), (C.int)(indexTo), (C.int)(indicatorNumber)) +} + +func (this *QsciScintilla) FindFirst(expr string, re bool, cs bool, wo bool, wrap bool) bool { + expr_ms := C.struct_miqt_string{} + expr_ms.data = C.CString(expr) + expr_ms.len = C.size_t(len(expr)) + defer C.free(unsafe.Pointer(expr_ms.data)) + return (bool)(C.QsciScintilla_FindFirst(this.h, expr_ms, (C.bool)(re), (C.bool)(cs), (C.bool)(wo), (C.bool)(wrap))) +} + +func (this *QsciScintilla) FindFirstInSelection(expr string, re bool, cs bool, wo bool) bool { + expr_ms := C.struct_miqt_string{} + expr_ms.data = C.CString(expr) + expr_ms.len = C.size_t(len(expr)) + defer C.free(unsafe.Pointer(expr_ms.data)) + return (bool)(C.QsciScintilla_FindFirstInSelection(this.h, expr_ms, (C.bool)(re), (C.bool)(cs), (C.bool)(wo))) +} + +func (this *QsciScintilla) FindNext() bool { + return (bool)(C.QsciScintilla_FindNext(this.h)) +} + +func (this *QsciScintilla) FindMatchingBrace(brace *int64, other *int64, mode QsciScintilla__BraceMatch) bool { + return (bool)(C.QsciScintilla_FindMatchingBrace(this.h, (*C.long)(unsafe.Pointer(brace)), (*C.long)(unsafe.Pointer(other)), (C.int)(mode))) +} + +func (this *QsciScintilla) FirstVisibleLine() int { + return (int)(C.QsciScintilla_FirstVisibleLine(this.h)) +} + +func (this *QsciScintilla) Folding() QsciScintilla__FoldStyle { + return (QsciScintilla__FoldStyle)(C.QsciScintilla_Folding(this.h)) +} + +func (this *QsciScintilla) GetCursorPosition(line *int, index *int) { + C.QsciScintilla_GetCursorPosition(this.h, (*C.int)(unsafe.Pointer(line)), (*C.int)(unsafe.Pointer(index))) +} + +func (this *QsciScintilla) GetSelection(lineFrom *int, indexFrom *int, lineTo *int, indexTo *int) { + C.QsciScintilla_GetSelection(this.h, (*C.int)(unsafe.Pointer(lineFrom)), (*C.int)(unsafe.Pointer(indexFrom)), (*C.int)(unsafe.Pointer(lineTo)), (*C.int)(unsafe.Pointer(indexTo))) +} + +func (this *QsciScintilla) HasSelectedText() bool { + return (bool)(C.QsciScintilla_HasSelectedText(this.h)) +} + +func (this *QsciScintilla) Indentation(line int) int { + return (int)(C.QsciScintilla_Indentation(this.h, (C.int)(line))) +} + +func (this *QsciScintilla) IndentationGuides() bool { + return (bool)(C.QsciScintilla_IndentationGuides(this.h)) +} + +func (this *QsciScintilla) IndentationsUseTabs() bool { + return (bool)(C.QsciScintilla_IndentationsUseTabs(this.h)) +} + +func (this *QsciScintilla) IndentationWidth() int { + return (int)(C.QsciScintilla_IndentationWidth(this.h)) +} + +func (this *QsciScintilla) IndicatorDefine(style QsciScintilla__IndicatorStyle) int { + return (int)(C.QsciScintilla_IndicatorDefine(this.h, (C.int)(style))) +} + +func (this *QsciScintilla) IndicatorDrawUnder(indicatorNumber int) bool { + return (bool)(C.QsciScintilla_IndicatorDrawUnder(this.h, (C.int)(indicatorNumber))) +} + +func (this *QsciScintilla) IsCallTipActive() bool { + return (bool)(C.QsciScintilla_IsCallTipActive(this.h)) +} + +func (this *QsciScintilla) IsListActive() bool { + return (bool)(C.QsciScintilla_IsListActive(this.h)) +} + +func (this *QsciScintilla) IsModified() bool { + return (bool)(C.QsciScintilla_IsModified(this.h)) +} + +func (this *QsciScintilla) IsReadOnly() bool { + return (bool)(C.QsciScintilla_IsReadOnly(this.h)) +} + +func (this *QsciScintilla) IsRedoAvailable() bool { + return (bool)(C.QsciScintilla_IsRedoAvailable(this.h)) +} + +func (this *QsciScintilla) IsUndoAvailable() bool { + return (bool)(C.QsciScintilla_IsUndoAvailable(this.h)) +} + +func (this *QsciScintilla) IsUtf8() bool { + return (bool)(C.QsciScintilla_IsUtf8(this.h)) +} + +func (this *QsciScintilla) IsWordCharacter(ch int8) bool { + return (bool)(C.QsciScintilla_IsWordCharacter(this.h, (C.char)(ch))) +} + +func (this *QsciScintilla) LineAt(point *qt.QPoint) int { + return (int)(C.QsciScintilla_LineAt(this.h, (*C.QPoint)(point.UnsafePointer()))) +} + +func (this *QsciScintilla) LineIndexFromPosition(position int, line *int, index *int) { + C.QsciScintilla_LineIndexFromPosition(this.h, (C.int)(position), (*C.int)(unsafe.Pointer(line)), (*C.int)(unsafe.Pointer(index))) +} + +func (this *QsciScintilla) LineLength(line int) int { + return (int)(C.QsciScintilla_LineLength(this.h, (C.int)(line))) +} + +func (this *QsciScintilla) Lines() int { + return (int)(C.QsciScintilla_Lines(this.h)) +} + +func (this *QsciScintilla) Length() int { + return (int)(C.QsciScintilla_Length(this.h)) +} + +func (this *QsciScintilla) Lexer() *QsciLexer { + return UnsafeNewQsciLexer(unsafe.Pointer(C.QsciScintilla_Lexer(this.h))) +} + +func (this *QsciScintilla) MarginBackgroundColor(margin int) *qt.QColor { + _ret := C.QsciScintilla_MarginBackgroundColor(this.h, (C.int)(margin)) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciScintilla) MarginLineNumbers(margin int) bool { + return (bool)(C.QsciScintilla_MarginLineNumbers(this.h, (C.int)(margin))) +} + +func (this *QsciScintilla) MarginMarkerMask(margin int) int { + return (int)(C.QsciScintilla_MarginMarkerMask(this.h, (C.int)(margin))) +} + +func (this *QsciScintilla) MarginOptions() int { + return (int)(C.QsciScintilla_MarginOptions(this.h)) +} + +func (this *QsciScintilla) MarginSensitivity(margin int) bool { + return (bool)(C.QsciScintilla_MarginSensitivity(this.h, (C.int)(margin))) +} + +func (this *QsciScintilla) MarginType(margin int) QsciScintilla__MarginType { + return (QsciScintilla__MarginType)(C.QsciScintilla_MarginType(this.h, (C.int)(margin))) +} + +func (this *QsciScintilla) MarginWidth(margin int) int { + return (int)(C.QsciScintilla_MarginWidth(this.h, (C.int)(margin))) +} + +func (this *QsciScintilla) Margins() int { + return (int)(C.QsciScintilla_Margins(this.h)) +} + +func (this *QsciScintilla) MarkerDefine(sym QsciScintilla__MarkerSymbol) int { + return (int)(C.QsciScintilla_MarkerDefine(this.h, (C.int)(sym))) +} + +func (this *QsciScintilla) MarkerDefineWithCh(ch int8) int { + return (int)(C.QsciScintilla_MarkerDefineWithCh(this.h, (C.char)(ch))) +} + +func (this *QsciScintilla) MarkerDefineWithPm(pm *qt.QPixmap) int { + return (int)(C.QsciScintilla_MarkerDefineWithPm(this.h, (*C.QPixmap)(pm.UnsafePointer()))) +} + +func (this *QsciScintilla) MarkerDefineWithIm(im *qt.QImage) int { + return (int)(C.QsciScintilla_MarkerDefineWithIm(this.h, (*C.QImage)(im.UnsafePointer()))) +} + +func (this *QsciScintilla) MarkerAdd(linenr int, markerNumber int) int { + return (int)(C.QsciScintilla_MarkerAdd(this.h, (C.int)(linenr), (C.int)(markerNumber))) +} + +func (this *QsciScintilla) MarkersAtLine(linenr int) uint { + return (uint)(C.QsciScintilla_MarkersAtLine(this.h, (C.int)(linenr))) +} + +func (this *QsciScintilla) MarkerDelete(linenr int) { + C.QsciScintilla_MarkerDelete(this.h, (C.int)(linenr)) +} + +func (this *QsciScintilla) MarkerDeleteAll() { + C.QsciScintilla_MarkerDeleteAll(this.h) +} + +func (this *QsciScintilla) MarkerDeleteHandle(mhandle int) { + C.QsciScintilla_MarkerDeleteHandle(this.h, (C.int)(mhandle)) +} + +func (this *QsciScintilla) MarkerLine(mhandle int) int { + return (int)(C.QsciScintilla_MarkerLine(this.h, (C.int)(mhandle))) +} + +func (this *QsciScintilla) MarkerFindNext(linenr int, mask uint) int { + return (int)(C.QsciScintilla_MarkerFindNext(this.h, (C.int)(linenr), (C.uint)(mask))) +} + +func (this *QsciScintilla) MarkerFindPrevious(linenr int, mask uint) int { + return (int)(C.QsciScintilla_MarkerFindPrevious(this.h, (C.int)(linenr), (C.uint)(mask))) +} + +func (this *QsciScintilla) OverwriteMode() bool { + return (bool)(C.QsciScintilla_OverwriteMode(this.h)) +} + +func (this *QsciScintilla) Paper() *qt.QColor { + _ret := C.QsciScintilla_Paper(this.h) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciScintilla) PositionFromLineIndex(line int, index int) int { + return (int)(C.QsciScintilla_PositionFromLineIndex(this.h, (C.int)(line), (C.int)(index))) +} + +func (this *QsciScintilla) Read(io *qt.QIODevice) bool { + return (bool)(C.QsciScintilla_Read(this.h, (*C.QIODevice)(io.UnsafePointer()))) +} + +func (this *QsciScintilla) Recolor() { + C.QsciScintilla_Recolor(this.h) +} + +func (this *QsciScintilla) RegisterImage(id int, pm *qt.QPixmap) { + C.QsciScintilla_RegisterImage(this.h, (C.int)(id), (*C.QPixmap)(pm.UnsafePointer())) +} + +func (this *QsciScintilla) RegisterImage2(id int, im *qt.QImage) { + C.QsciScintilla_RegisterImage2(this.h, (C.int)(id), (*C.QImage)(im.UnsafePointer())) +} + +func (this *QsciScintilla) Replace(replaceStr string) { + replaceStr_ms := C.struct_miqt_string{} + replaceStr_ms.data = C.CString(replaceStr) + replaceStr_ms.len = C.size_t(len(replaceStr)) + defer C.free(unsafe.Pointer(replaceStr_ms.data)) + C.QsciScintilla_Replace(this.h, replaceStr_ms) +} + +func (this *QsciScintilla) ResetFoldMarginColors() { + C.QsciScintilla_ResetFoldMarginColors(this.h) +} + +func (this *QsciScintilla) ResetHotspotBackgroundColor() { + C.QsciScintilla_ResetHotspotBackgroundColor(this.h) +} + +func (this *QsciScintilla) ResetHotspotForegroundColor() { + C.QsciScintilla_ResetHotspotForegroundColor(this.h) +} + +func (this *QsciScintilla) ScrollWidth() int { + return (int)(C.QsciScintilla_ScrollWidth(this.h)) +} + +func (this *QsciScintilla) ScrollWidthTracking() bool { + return (bool)(C.QsciScintilla_ScrollWidthTracking(this.h)) +} + +func (this *QsciScintilla) SetFoldMarginColors(fore *qt.QColor, back *qt.QColor) { + C.QsciScintilla_SetFoldMarginColors(this.h, (*C.QColor)(fore.UnsafePointer()), (*C.QColor)(back.UnsafePointer())) +} + +func (this *QsciScintilla) SetAnnotationDisplay(display QsciScintilla__AnnotationDisplay) { + C.QsciScintilla_SetAnnotationDisplay(this.h, (C.int)(display)) +} + +func (this *QsciScintilla) SetAutoCompletionFillupsEnabled(enabled bool) { + C.QsciScintilla_SetAutoCompletionFillupsEnabled(this.h, (C.bool)(enabled)) +} + +func (this *QsciScintilla) SetAutoCompletionFillups(fillups string) { + fillups_Cstring := C.CString(fillups) + defer C.free(unsafe.Pointer(fillups_Cstring)) + C.QsciScintilla_SetAutoCompletionFillups(this.h, fillups_Cstring) +} + +func (this *QsciScintilla) SetAutoCompletionWordSeparators(separators []string) { + // For the C ABI, malloc a C array of structs + separators_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(separators)))) + defer C.free(unsafe.Pointer(separators_CArray)) + for i := range separators { + separators_i_ms := C.struct_miqt_string{} + separators_i_ms.data = C.CString(separators[i]) + separators_i_ms.len = C.size_t(len(separators[i])) + defer C.free(unsafe.Pointer(separators_i_ms.data)) + separators_CArray[i] = separators_i_ms + } + separators_ma := &C.struct_miqt_array{len: C.size_t(len(separators)), data: unsafe.Pointer(separators_CArray)} + defer runtime.KeepAlive(unsafe.Pointer(separators_ma)) + C.QsciScintilla_SetAutoCompletionWordSeparators(this.h, separators_ma) +} + +func (this *QsciScintilla) SetCallTipsBackgroundColor(col *qt.QColor) { + C.QsciScintilla_SetCallTipsBackgroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetCallTipsForegroundColor(col *qt.QColor) { + C.QsciScintilla_SetCallTipsForegroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetCallTipsHighlightColor(col *qt.QColor) { + C.QsciScintilla_SetCallTipsHighlightColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetCallTipsPosition(position QsciScintilla__CallTipsPosition) { + C.QsciScintilla_SetCallTipsPosition(this.h, (C.int)(position)) +} + +func (this *QsciScintilla) SetCallTipsStyle(style QsciScintilla__CallTipsStyle) { + C.QsciScintilla_SetCallTipsStyle(this.h, (C.int)(style)) +} + +func (this *QsciScintilla) SetCallTipsVisible(nr int) { + C.QsciScintilla_SetCallTipsVisible(this.h, (C.int)(nr)) +} + +func (this *QsciScintilla) SetContractedFolds(folds []int) { + // For the C ABI, malloc a C array of raw pointers + folds_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(folds)))) + defer C.free(unsafe.Pointer(folds_CArray)) + for i := range folds { + folds_CArray[i] = (C.int)(folds[i]) + } + folds_ma := &C.struct_miqt_array{len: C.size_t(len(folds)), data: unsafe.Pointer(folds_CArray)} + defer runtime.KeepAlive(unsafe.Pointer(folds_ma)) + C.QsciScintilla_SetContractedFolds(this.h, folds_ma) +} + +func (this *QsciScintilla) SetDocument(document *QsciDocument) { + C.QsciScintilla_SetDocument(this.h, document.cPointer()) +} + +func (this *QsciScintilla) AddEdgeColumn(colnr int, col *qt.QColor) { + C.QsciScintilla_AddEdgeColumn(this.h, (C.int)(colnr), (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) ClearEdgeColumns() { + C.QsciScintilla_ClearEdgeColumns(this.h) +} + +func (this *QsciScintilla) SetEdgeColor(col *qt.QColor) { + C.QsciScintilla_SetEdgeColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetEdgeColumn(colnr int) { + C.QsciScintilla_SetEdgeColumn(this.h, (C.int)(colnr)) +} + +func (this *QsciScintilla) SetEdgeMode(mode QsciScintilla__EdgeMode) { + C.QsciScintilla_SetEdgeMode(this.h, (C.int)(mode)) +} + +func (this *QsciScintilla) SetFirstVisibleLine(linenr int) { + C.QsciScintilla_SetFirstVisibleLine(this.h, (C.int)(linenr)) +} + +func (this *QsciScintilla) SetIndicatorDrawUnder(under bool) { + C.QsciScintilla_SetIndicatorDrawUnder(this.h, (C.bool)(under)) +} + +func (this *QsciScintilla) SetIndicatorForegroundColor(col *qt.QColor) { + C.QsciScintilla_SetIndicatorForegroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetIndicatorHoverForegroundColor(col *qt.QColor) { + C.QsciScintilla_SetIndicatorHoverForegroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetIndicatorHoverStyle(style QsciScintilla__IndicatorStyle) { + C.QsciScintilla_SetIndicatorHoverStyle(this.h, (C.int)(style)) +} + +func (this *QsciScintilla) SetIndicatorOutlineColor(col *qt.QColor) { + C.QsciScintilla_SetIndicatorOutlineColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetMarginBackgroundColor(margin int, col *qt.QColor) { + C.QsciScintilla_SetMarginBackgroundColor(this.h, (C.int)(margin), (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetMarginOptions(options int) { + C.QsciScintilla_SetMarginOptions(this.h, (C.int)(options)) +} + +func (this *QsciScintilla) SetMarginText(line int, text string, style int) { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + C.QsciScintilla_SetMarginText(this.h, (C.int)(line), text_ms, (C.int)(style)) +} + +func (this *QsciScintilla) SetMarginText2(line int, text string, style *QsciStyle) { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + C.QsciScintilla_SetMarginText2(this.h, (C.int)(line), text_ms, style.cPointer()) +} + +func (this *QsciScintilla) SetMarginText3(line int, text *QsciStyledText) { + C.QsciScintilla_SetMarginText3(this.h, (C.int)(line), text.cPointer()) +} + +func (this *QsciScintilla) SetMarginType(margin int, typeVal QsciScintilla__MarginType) { + C.QsciScintilla_SetMarginType(this.h, (C.int)(margin), (C.int)(typeVal)) +} + +func (this *QsciScintilla) ClearMarginText() { + C.QsciScintilla_ClearMarginText(this.h) +} + +func (this *QsciScintilla) SetMargins(margins int) { + C.QsciScintilla_SetMargins(this.h, (C.int)(margins)) +} + +func (this *QsciScintilla) SetMarkerBackgroundColor(col *qt.QColor) { + C.QsciScintilla_SetMarkerBackgroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetMarkerForegroundColor(col *qt.QColor) { + C.QsciScintilla_SetMarkerForegroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetMatchedBraceBackgroundColor(col *qt.QColor) { + C.QsciScintilla_SetMatchedBraceBackgroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetMatchedBraceForegroundColor(col *qt.QColor) { + C.QsciScintilla_SetMatchedBraceForegroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetMatchedBraceIndicator(indicatorNumber int) { + C.QsciScintilla_SetMatchedBraceIndicator(this.h, (C.int)(indicatorNumber)) +} + +func (this *QsciScintilla) ResetMatchedBraceIndicator() { + C.QsciScintilla_ResetMatchedBraceIndicator(this.h) +} + +func (this *QsciScintilla) SetScrollWidth(pixelWidth int) { + C.QsciScintilla_SetScrollWidth(this.h, (C.int)(pixelWidth)) +} + +func (this *QsciScintilla) SetScrollWidthTracking(enabled bool) { + C.QsciScintilla_SetScrollWidthTracking(this.h, (C.bool)(enabled)) +} + +func (this *QsciScintilla) SetTabDrawMode(mode QsciScintilla__TabDrawMode) { + C.QsciScintilla_SetTabDrawMode(this.h, (C.int)(mode)) +} + +func (this *QsciScintilla) SetUnmatchedBraceBackgroundColor(col *qt.QColor) { + C.QsciScintilla_SetUnmatchedBraceBackgroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetUnmatchedBraceForegroundColor(col *qt.QColor) { + C.QsciScintilla_SetUnmatchedBraceForegroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetUnmatchedBraceIndicator(indicatorNumber int) { + C.QsciScintilla_SetUnmatchedBraceIndicator(this.h, (C.int)(indicatorNumber)) +} + +func (this *QsciScintilla) ResetUnmatchedBraceIndicator() { + C.QsciScintilla_ResetUnmatchedBraceIndicator(this.h) +} + +func (this *QsciScintilla) SetWrapVisualFlags(endFlag QsciScintilla__WrapVisualFlag) { + C.QsciScintilla_SetWrapVisualFlags(this.h, (C.int)(endFlag)) +} + +func (this *QsciScintilla) SelectedText() string { + var _ms C.struct_miqt_string = C.QsciScintilla_SelectedText(this.h) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciScintilla) SelectionToEol() bool { + return (bool)(C.QsciScintilla_SelectionToEol(this.h)) +} + +func (this *QsciScintilla) SetHotspotBackgroundColor(col *qt.QColor) { + C.QsciScintilla_SetHotspotBackgroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetHotspotForegroundColor(col *qt.QColor) { + C.QsciScintilla_SetHotspotForegroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetHotspotUnderline(enable bool) { + C.QsciScintilla_SetHotspotUnderline(this.h, (C.bool)(enable)) +} + +func (this *QsciScintilla) SetHotspotWrap(enable bool) { + C.QsciScintilla_SetHotspotWrap(this.h, (C.bool)(enable)) +} + +func (this *QsciScintilla) SetSelectionToEol(filled bool) { + C.QsciScintilla_SetSelectionToEol(this.h, (C.bool)(filled)) +} + +func (this *QsciScintilla) SetExtraAscent(extra int) { + C.QsciScintilla_SetExtraAscent(this.h, (C.int)(extra)) +} + +func (this *QsciScintilla) SetExtraDescent(extra int) { + C.QsciScintilla_SetExtraDescent(this.h, (C.int)(extra)) +} + +func (this *QsciScintilla) SetOverwriteMode(overwrite bool) { + C.QsciScintilla_SetOverwriteMode(this.h, (C.bool)(overwrite)) +} + +func (this *QsciScintilla) SetWhitespaceBackgroundColor(col *qt.QColor) { + C.QsciScintilla_SetWhitespaceBackgroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetWhitespaceForegroundColor(col *qt.QColor) { + C.QsciScintilla_SetWhitespaceForegroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetWhitespaceSize(size int) { + C.QsciScintilla_SetWhitespaceSize(this.h, (C.int)(size)) +} + +func (this *QsciScintilla) SetWrapIndentMode(mode QsciScintilla__WrapIndentMode) { + C.QsciScintilla_SetWrapIndentMode(this.h, (C.int)(mode)) +} + +func (this *QsciScintilla) ShowUserList(id int, list []string) { + // For the C ABI, malloc a C array of structs + list_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(list)))) + defer C.free(unsafe.Pointer(list_CArray)) + for i := range list { + list_i_ms := C.struct_miqt_string{} + list_i_ms.data = C.CString(list[i]) + list_i_ms.len = C.size_t(len(list[i])) + defer C.free(unsafe.Pointer(list_i_ms.data)) + list_CArray[i] = list_i_ms + } + list_ma := &C.struct_miqt_array{len: C.size_t(len(list)), data: unsafe.Pointer(list_CArray)} + defer runtime.KeepAlive(unsafe.Pointer(list_ma)) + C.QsciScintilla_ShowUserList(this.h, (C.int)(id), list_ma) +} + +func (this *QsciScintilla) StandardCommands() *QsciCommandSet { + return UnsafeNewQsciCommandSet(unsafe.Pointer(C.QsciScintilla_StandardCommands(this.h))) +} + +func (this *QsciScintilla) TabDrawMode() QsciScintilla__TabDrawMode { + return (QsciScintilla__TabDrawMode)(C.QsciScintilla_TabDrawMode(this.h)) +} + +func (this *QsciScintilla) TabIndents() bool { + return (bool)(C.QsciScintilla_TabIndents(this.h)) +} + +func (this *QsciScintilla) TabWidth() int { + return (int)(C.QsciScintilla_TabWidth(this.h)) +} + +func (this *QsciScintilla) Text() string { + var _ms C.struct_miqt_string = C.QsciScintilla_Text(this.h) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciScintilla) TextWithLine(line int) string { + var _ms C.struct_miqt_string = C.QsciScintilla_TextWithLine(this.h, (C.int)(line)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciScintilla) Text2(start int, end int) string { + var _ms C.struct_miqt_string = C.QsciScintilla_Text2(this.h, (C.int)(start), (C.int)(end)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciScintilla) TextHeight(linenr int) int { + return (int)(C.QsciScintilla_TextHeight(this.h, (C.int)(linenr))) +} + +func (this *QsciScintilla) WhitespaceSize() int { + return (int)(C.QsciScintilla_WhitespaceSize(this.h)) +} + +func (this *QsciScintilla) WhitespaceVisibility() QsciScintilla__WhitespaceVisibility { + return (QsciScintilla__WhitespaceVisibility)(C.QsciScintilla_WhitespaceVisibility(this.h)) +} + +func (this *QsciScintilla) WordAtLineIndex(line int, index int) string { + var _ms C.struct_miqt_string = C.QsciScintilla_WordAtLineIndex(this.h, (C.int)(line), (C.int)(index)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciScintilla) WordAtPoint(point *qt.QPoint) string { + var _ms C.struct_miqt_string = C.QsciScintilla_WordAtPoint(this.h, (*C.QPoint)(point.UnsafePointer())) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciScintilla) WordCharacters() string { + _ret := C.QsciScintilla_WordCharacters(this.h) + return C.GoString(_ret) +} + +func (this *QsciScintilla) WrapMode() QsciScintilla__WrapMode { + return (QsciScintilla__WrapMode)(C.QsciScintilla_WrapMode(this.h)) +} + +func (this *QsciScintilla) WrapIndentMode() QsciScintilla__WrapIndentMode { + return (QsciScintilla__WrapIndentMode)(C.QsciScintilla_WrapIndentMode(this.h)) +} + +func (this *QsciScintilla) Write(io *qt.QIODevice) bool { + return (bool)(C.QsciScintilla_Write(this.h, (*C.QIODevice)(io.UnsafePointer()))) +} + +func (this *QsciScintilla) Append(text string) { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + C.QsciScintilla_Append(this.h, text_ms) +} + +func (this *QsciScintilla) AutoCompleteFromAll() { + C.QsciScintilla_AutoCompleteFromAll(this.h) +} + +func (this *QsciScintilla) AutoCompleteFromAPIs() { + C.QsciScintilla_AutoCompleteFromAPIs(this.h) +} + +func (this *QsciScintilla) AutoCompleteFromDocument() { + C.QsciScintilla_AutoCompleteFromDocument(this.h) +} + +func (this *QsciScintilla) CallTip() { + C.QsciScintilla_CallTip(this.h) +} + +func (this *QsciScintilla) Clear() { + C.QsciScintilla_Clear(this.h) +} + +func (this *QsciScintilla) Copy() { + C.QsciScintilla_Copy(this.h) +} + +func (this *QsciScintilla) Cut() { + C.QsciScintilla_Cut(this.h) +} + +func (this *QsciScintilla) EnsureCursorVisible() { + C.QsciScintilla_EnsureCursorVisible(this.h) +} + +func (this *QsciScintilla) EnsureLineVisible(line int) { + C.QsciScintilla_EnsureLineVisible(this.h, (C.int)(line)) +} + +func (this *QsciScintilla) FoldAll() { + C.QsciScintilla_FoldAll(this.h) +} + +func (this *QsciScintilla) FoldLine(line int) { + C.QsciScintilla_FoldLine(this.h, (C.int)(line)) +} + +func (this *QsciScintilla) Indent(line int) { + C.QsciScintilla_Indent(this.h, (C.int)(line)) +} + +func (this *QsciScintilla) Insert(text string) { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + C.QsciScintilla_Insert(this.h, text_ms) +} + +func (this *QsciScintilla) InsertAt(text string, line int, index int) { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + C.QsciScintilla_InsertAt(this.h, text_ms, (C.int)(line), (C.int)(index)) +} + +func (this *QsciScintilla) MoveToMatchingBrace() { + C.QsciScintilla_MoveToMatchingBrace(this.h) +} + +func (this *QsciScintilla) Paste() { + C.QsciScintilla_Paste(this.h) +} + +func (this *QsciScintilla) Redo() { + C.QsciScintilla_Redo(this.h) +} + +func (this *QsciScintilla) RemoveSelectedText() { + C.QsciScintilla_RemoveSelectedText(this.h) +} + +func (this *QsciScintilla) ReplaceSelectedText(text string) { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + C.QsciScintilla_ReplaceSelectedText(this.h, text_ms) +} + +func (this *QsciScintilla) ResetSelectionBackgroundColor() { + C.QsciScintilla_ResetSelectionBackgroundColor(this.h) +} + +func (this *QsciScintilla) ResetSelectionForegroundColor() { + C.QsciScintilla_ResetSelectionForegroundColor(this.h) +} + +func (this *QsciScintilla) SelectAll() { + C.QsciScintilla_SelectAll(this.h) +} + +func (this *QsciScintilla) SelectToMatchingBrace() { + C.QsciScintilla_SelectToMatchingBrace(this.h) +} + +func (this *QsciScintilla) SetAutoCompletionCaseSensitivity(cs bool) { + C.QsciScintilla_SetAutoCompletionCaseSensitivity(this.h, (C.bool)(cs)) +} + +func (this *QsciScintilla) SetAutoCompletionReplaceWord(replace bool) { + C.QsciScintilla_SetAutoCompletionReplaceWord(this.h, (C.bool)(replace)) +} + +func (this *QsciScintilla) SetAutoCompletionShowSingle(single bool) { + C.QsciScintilla_SetAutoCompletionShowSingle(this.h, (C.bool)(single)) +} + +func (this *QsciScintilla) SetAutoCompletionSource(source QsciScintilla__AutoCompletionSource) { + C.QsciScintilla_SetAutoCompletionSource(this.h, (C.int)(source)) +} + +func (this *QsciScintilla) SetAutoCompletionThreshold(thresh int) { + C.QsciScintilla_SetAutoCompletionThreshold(this.h, (C.int)(thresh)) +} + +func (this *QsciScintilla) SetAutoCompletionUseSingle(single QsciScintilla__AutoCompletionUseSingle) { + C.QsciScintilla_SetAutoCompletionUseSingle(this.h, (C.int)(single)) +} + +func (this *QsciScintilla) SetAutoIndent(autoindent bool) { + C.QsciScintilla_SetAutoIndent(this.h, (C.bool)(autoindent)) +} + +func (this *QsciScintilla) SetBraceMatching(bm QsciScintilla__BraceMatch) { + C.QsciScintilla_SetBraceMatching(this.h, (C.int)(bm)) +} + +func (this *QsciScintilla) SetBackspaceUnindents(unindent bool) { + C.QsciScintilla_SetBackspaceUnindents(this.h, (C.bool)(unindent)) +} + +func (this *QsciScintilla) SetCaretForegroundColor(col *qt.QColor) { + C.QsciScintilla_SetCaretForegroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetCaretLineBackgroundColor(col *qt.QColor) { + C.QsciScintilla_SetCaretLineBackgroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetCaretLineFrameWidth(width int) { + C.QsciScintilla_SetCaretLineFrameWidth(this.h, (C.int)(width)) +} + +func (this *QsciScintilla) SetCaretLineVisible(enable bool) { + C.QsciScintilla_SetCaretLineVisible(this.h, (C.bool)(enable)) +} + +func (this *QsciScintilla) SetCaretWidth(width int) { + C.QsciScintilla_SetCaretWidth(this.h, (C.int)(width)) +} + +func (this *QsciScintilla) SetColor(c *qt.QColor) { + C.QsciScintilla_SetColor(this.h, (*C.QColor)(c.UnsafePointer())) +} + +func (this *QsciScintilla) SetCursorPosition(line int, index int) { + C.QsciScintilla_SetCursorPosition(this.h, (C.int)(line), (C.int)(index)) +} + +func (this *QsciScintilla) SetEolMode(mode QsciScintilla__EolMode) { + C.QsciScintilla_SetEolMode(this.h, (C.int)(mode)) +} + +func (this *QsciScintilla) SetEolVisibility(visible bool) { + C.QsciScintilla_SetEolVisibility(this.h, (C.bool)(visible)) +} + +func (this *QsciScintilla) SetFolding(fold QsciScintilla__FoldStyle) { + C.QsciScintilla_SetFolding(this.h, (C.int)(fold)) +} + +func (this *QsciScintilla) SetIndentation(line int, indentation int) { + C.QsciScintilla_SetIndentation(this.h, (C.int)(line), (C.int)(indentation)) +} + +func (this *QsciScintilla) SetIndentationGuides(enable bool) { + C.QsciScintilla_SetIndentationGuides(this.h, (C.bool)(enable)) +} + +func (this *QsciScintilla) SetIndentationGuidesBackgroundColor(col *qt.QColor) { + C.QsciScintilla_SetIndentationGuidesBackgroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetIndentationGuidesForegroundColor(col *qt.QColor) { + C.QsciScintilla_SetIndentationGuidesForegroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetIndentationsUseTabs(tabs bool) { + C.QsciScintilla_SetIndentationsUseTabs(this.h, (C.bool)(tabs)) +} + +func (this *QsciScintilla) SetIndentationWidth(width int) { + C.QsciScintilla_SetIndentationWidth(this.h, (C.int)(width)) +} + +func (this *QsciScintilla) SetLexer() { + C.QsciScintilla_SetLexer(this.h) +} + +func (this *QsciScintilla) SetMarginsBackgroundColor(col *qt.QColor) { + C.QsciScintilla_SetMarginsBackgroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetMarginsFont(f *qt.QFont) { + C.QsciScintilla_SetMarginsFont(this.h, (*C.QFont)(f.UnsafePointer())) +} + +func (this *QsciScintilla) SetMarginsForegroundColor(col *qt.QColor) { + C.QsciScintilla_SetMarginsForegroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetMarginLineNumbers(margin int, lnrs bool) { + C.QsciScintilla_SetMarginLineNumbers(this.h, (C.int)(margin), (C.bool)(lnrs)) +} + +func (this *QsciScintilla) SetMarginMarkerMask(margin int, mask int) { + C.QsciScintilla_SetMarginMarkerMask(this.h, (C.int)(margin), (C.int)(mask)) +} + +func (this *QsciScintilla) SetMarginSensitivity(margin int, sens bool) { + C.QsciScintilla_SetMarginSensitivity(this.h, (C.int)(margin), (C.bool)(sens)) +} + +func (this *QsciScintilla) SetMarginWidth(margin int, width int) { + C.QsciScintilla_SetMarginWidth(this.h, (C.int)(margin), (C.int)(width)) +} + +func (this *QsciScintilla) SetMarginWidth2(margin int, s string) { + s_ms := C.struct_miqt_string{} + s_ms.data = C.CString(s) + s_ms.len = C.size_t(len(s)) + defer C.free(unsafe.Pointer(s_ms.data)) + C.QsciScintilla_SetMarginWidth2(this.h, (C.int)(margin), s_ms) +} + +func (this *QsciScintilla) SetModified(m bool) { + C.QsciScintilla_SetModified(this.h, (C.bool)(m)) +} + +func (this *QsciScintilla) SetPaper(c *qt.QColor) { + C.QsciScintilla_SetPaper(this.h, (*C.QColor)(c.UnsafePointer())) +} + +func (this *QsciScintilla) SetReadOnly(ro bool) { + C.QsciScintilla_SetReadOnly(this.h, (C.bool)(ro)) +} + +func (this *QsciScintilla) SetSelection(lineFrom int, indexFrom int, lineTo int, indexTo int) { + C.QsciScintilla_SetSelection(this.h, (C.int)(lineFrom), (C.int)(indexFrom), (C.int)(lineTo), (C.int)(indexTo)) +} + +func (this *QsciScintilla) SetSelectionBackgroundColor(col *qt.QColor) { + C.QsciScintilla_SetSelectionBackgroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetSelectionForegroundColor(col *qt.QColor) { + C.QsciScintilla_SetSelectionForegroundColor(this.h, (*C.QColor)(col.UnsafePointer())) +} + +func (this *QsciScintilla) SetTabIndents(indent bool) { + C.QsciScintilla_SetTabIndents(this.h, (C.bool)(indent)) +} + +func (this *QsciScintilla) SetTabWidth(width int) { + C.QsciScintilla_SetTabWidth(this.h, (C.int)(width)) +} + +func (this *QsciScintilla) SetText(text string) { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + C.QsciScintilla_SetText(this.h, text_ms) +} + +func (this *QsciScintilla) SetUtf8(cp bool) { + C.QsciScintilla_SetUtf8(this.h, (C.bool)(cp)) +} + +func (this *QsciScintilla) SetWhitespaceVisibility(mode QsciScintilla__WhitespaceVisibility) { + C.QsciScintilla_SetWhitespaceVisibility(this.h, (C.int)(mode)) +} + +func (this *QsciScintilla) SetWrapMode(mode QsciScintilla__WrapMode) { + C.QsciScintilla_SetWrapMode(this.h, (C.int)(mode)) +} + +func (this *QsciScintilla) Undo() { + C.QsciScintilla_Undo(this.h) +} + +func (this *QsciScintilla) Unindent(line int) { + C.QsciScintilla_Unindent(this.h, (C.int)(line)) +} + +func (this *QsciScintilla) ZoomIn(rangeVal int) { + C.QsciScintilla_ZoomIn(this.h, (C.int)(rangeVal)) +} + +func (this *QsciScintilla) ZoomIn2() { + C.QsciScintilla_ZoomIn2(this.h) +} + +func (this *QsciScintilla) ZoomOut(rangeVal int) { + C.QsciScintilla_ZoomOut(this.h, (C.int)(rangeVal)) +} + +func (this *QsciScintilla) ZoomOut2() { + C.QsciScintilla_ZoomOut2(this.h) +} + +func (this *QsciScintilla) ZoomTo(size int) { + C.QsciScintilla_ZoomTo(this.h, (C.int)(size)) +} + +func (this *QsciScintilla) CursorPositionChanged(line int, index int) { + C.QsciScintilla_CursorPositionChanged(this.h, (C.int)(line), (C.int)(index)) +} +func (this *QsciScintilla) OnCursorPositionChanged(slot func(line int, index int)) { + C.QsciScintilla_connect_CursorPositionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintilla_CursorPositionChanged +func miqt_exec_callback_QsciScintilla_CursorPositionChanged(cb C.intptr_t, line C.int, index C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(line int, index int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(line) + + slotval2 := (int)(index) + + gofunc(slotval1, slotval2) +} + +func (this *QsciScintilla) CopyAvailable(yes bool) { + C.QsciScintilla_CopyAvailable(this.h, (C.bool)(yes)) +} +func (this *QsciScintilla) OnCopyAvailable(slot func(yes bool)) { + C.QsciScintilla_connect_CopyAvailable(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintilla_CopyAvailable +func miqt_exec_callback_QsciScintilla_CopyAvailable(cb C.intptr_t, yes C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(yes bool)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (bool)(yes) + + gofunc(slotval1) +} + +func (this *QsciScintilla) IndicatorClicked(line int, index int, state qt.KeyboardModifier) { + C.QsciScintilla_IndicatorClicked(this.h, (C.int)(line), (C.int)(index), (C.int)(state)) +} +func (this *QsciScintilla) OnIndicatorClicked(slot func(line int, index int, state qt.KeyboardModifier)) { + C.QsciScintilla_connect_IndicatorClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintilla_IndicatorClicked +func miqt_exec_callback_QsciScintilla_IndicatorClicked(cb C.intptr_t, line C.int, index C.int, state C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(line int, index int, state qt.KeyboardModifier)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(line) + + slotval2 := (int)(index) + + slotval3 := (qt.KeyboardModifier)(state) + + gofunc(slotval1, slotval2, slotval3) +} + +func (this *QsciScintilla) IndicatorReleased(line int, index int, state qt.KeyboardModifier) { + C.QsciScintilla_IndicatorReleased(this.h, (C.int)(line), (C.int)(index), (C.int)(state)) +} +func (this *QsciScintilla) OnIndicatorReleased(slot func(line int, index int, state qt.KeyboardModifier)) { + C.QsciScintilla_connect_IndicatorReleased(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintilla_IndicatorReleased +func miqt_exec_callback_QsciScintilla_IndicatorReleased(cb C.intptr_t, line C.int, index C.int, state C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(line int, index int, state qt.KeyboardModifier)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(line) + + slotval2 := (int)(index) + + slotval3 := (qt.KeyboardModifier)(state) + + gofunc(slotval1, slotval2, slotval3) +} + +func (this *QsciScintilla) LinesChanged() { + C.QsciScintilla_LinesChanged(this.h) +} +func (this *QsciScintilla) OnLinesChanged(slot func()) { + C.QsciScintilla_connect_LinesChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintilla_LinesChanged +func miqt_exec_callback_QsciScintilla_LinesChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciScintilla) MarginClicked(margin int, line int, state qt.KeyboardModifier) { + C.QsciScintilla_MarginClicked(this.h, (C.int)(margin), (C.int)(line), (C.int)(state)) +} +func (this *QsciScintilla) OnMarginClicked(slot func(margin int, line int, state qt.KeyboardModifier)) { + C.QsciScintilla_connect_MarginClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintilla_MarginClicked +func miqt_exec_callback_QsciScintilla_MarginClicked(cb C.intptr_t, margin C.int, line C.int, state C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(margin int, line int, state qt.KeyboardModifier)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(margin) + + slotval2 := (int)(line) + + slotval3 := (qt.KeyboardModifier)(state) + + gofunc(slotval1, slotval2, slotval3) +} + +func (this *QsciScintilla) MarginRightClicked(margin int, line int, state qt.KeyboardModifier) { + C.QsciScintilla_MarginRightClicked(this.h, (C.int)(margin), (C.int)(line), (C.int)(state)) +} +func (this *QsciScintilla) OnMarginRightClicked(slot func(margin int, line int, state qt.KeyboardModifier)) { + C.QsciScintilla_connect_MarginRightClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintilla_MarginRightClicked +func miqt_exec_callback_QsciScintilla_MarginRightClicked(cb C.intptr_t, margin C.int, line C.int, state C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(margin int, line int, state qt.KeyboardModifier)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(margin) + + slotval2 := (int)(line) + + slotval3 := (qt.KeyboardModifier)(state) + + gofunc(slotval1, slotval2, slotval3) +} + +func (this *QsciScintilla) ModificationAttempted() { + C.QsciScintilla_ModificationAttempted(this.h) +} +func (this *QsciScintilla) OnModificationAttempted(slot func()) { + C.QsciScintilla_connect_ModificationAttempted(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintilla_ModificationAttempted +func miqt_exec_callback_QsciScintilla_ModificationAttempted(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciScintilla) ModificationChanged(m bool) { + C.QsciScintilla_ModificationChanged(this.h, (C.bool)(m)) +} +func (this *QsciScintilla) OnModificationChanged(slot func(m bool)) { + C.QsciScintilla_connect_ModificationChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintilla_ModificationChanged +func miqt_exec_callback_QsciScintilla_ModificationChanged(cb C.intptr_t, m C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(m bool)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (bool)(m) + + gofunc(slotval1) +} + +func (this *QsciScintilla) SelectionChanged() { + C.QsciScintilla_SelectionChanged(this.h) +} +func (this *QsciScintilla) OnSelectionChanged(slot func()) { + C.QsciScintilla_connect_SelectionChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintilla_SelectionChanged +func miqt_exec_callback_QsciScintilla_SelectionChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciScintilla) TextChanged() { + C.QsciScintilla_TextChanged(this.h) +} +func (this *QsciScintilla) OnTextChanged(slot func()) { + C.QsciScintilla_connect_TextChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintilla_TextChanged +func miqt_exec_callback_QsciScintilla_TextChanged(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciScintilla) UserListActivated(id int, stringVal string) { + stringVal_ms := C.struct_miqt_string{} + stringVal_ms.data = C.CString(stringVal) + stringVal_ms.len = C.size_t(len(stringVal)) + defer C.free(unsafe.Pointer(stringVal_ms.data)) + C.QsciScintilla_UserListActivated(this.h, (C.int)(id), stringVal_ms) +} +func (this *QsciScintilla) OnUserListActivated(slot func(id int, stringVal string)) { + C.QsciScintilla_connect_UserListActivated(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintilla_UserListActivated +func miqt_exec_callback_QsciScintilla_UserListActivated(cb C.intptr_t, id C.int, stringVal C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(id int, stringVal string)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(id) + + var stringVal_ms C.struct_miqt_string = stringVal + stringVal_ret := C.GoStringN(stringVal_ms.data, C.int(int64(stringVal_ms.len))) + C.free(unsafe.Pointer(stringVal_ms.data)) + slotval2 := stringVal_ret + + gofunc(slotval1, slotval2) +} + +func QsciScintilla_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciScintilla_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciScintilla_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciScintilla_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciScintilla_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciScintilla_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciScintilla_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciScintilla_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciScintilla) ClearAnnotations1(line int) { + C.QsciScintilla_ClearAnnotations1(this.h, (C.int)(line)) +} + +func (this *QsciScintilla) FindFirst6(expr string, re bool, cs bool, wo bool, wrap bool, forward bool) bool { + expr_ms := C.struct_miqt_string{} + expr_ms.data = C.CString(expr) + expr_ms.len = C.size_t(len(expr)) + defer C.free(unsafe.Pointer(expr_ms.data)) + return (bool)(C.QsciScintilla_FindFirst6(this.h, expr_ms, (C.bool)(re), (C.bool)(cs), (C.bool)(wo), (C.bool)(wrap), (C.bool)(forward))) +} + +func (this *QsciScintilla) FindFirst7(expr string, re bool, cs bool, wo bool, wrap bool, forward bool, line int) bool { + expr_ms := C.struct_miqt_string{} + expr_ms.data = C.CString(expr) + expr_ms.len = C.size_t(len(expr)) + defer C.free(unsafe.Pointer(expr_ms.data)) + return (bool)(C.QsciScintilla_FindFirst7(this.h, expr_ms, (C.bool)(re), (C.bool)(cs), (C.bool)(wo), (C.bool)(wrap), (C.bool)(forward), (C.int)(line))) +} + +func (this *QsciScintilla) FindFirst8(expr string, re bool, cs bool, wo bool, wrap bool, forward bool, line int, index int) bool { + expr_ms := C.struct_miqt_string{} + expr_ms.data = C.CString(expr) + expr_ms.len = C.size_t(len(expr)) + defer C.free(unsafe.Pointer(expr_ms.data)) + return (bool)(C.QsciScintilla_FindFirst8(this.h, expr_ms, (C.bool)(re), (C.bool)(cs), (C.bool)(wo), (C.bool)(wrap), (C.bool)(forward), (C.int)(line), (C.int)(index))) +} + +func (this *QsciScintilla) FindFirst9(expr string, re bool, cs bool, wo bool, wrap bool, forward bool, line int, index int, show bool) bool { + expr_ms := C.struct_miqt_string{} + expr_ms.data = C.CString(expr) + expr_ms.len = C.size_t(len(expr)) + defer C.free(unsafe.Pointer(expr_ms.data)) + return (bool)(C.QsciScintilla_FindFirst9(this.h, expr_ms, (C.bool)(re), (C.bool)(cs), (C.bool)(wo), (C.bool)(wrap), (C.bool)(forward), (C.int)(line), (C.int)(index), (C.bool)(show))) +} + +func (this *QsciScintilla) FindFirst10(expr string, re bool, cs bool, wo bool, wrap bool, forward bool, line int, index int, show bool, posix bool) bool { + expr_ms := C.struct_miqt_string{} + expr_ms.data = C.CString(expr) + expr_ms.len = C.size_t(len(expr)) + defer C.free(unsafe.Pointer(expr_ms.data)) + return (bool)(C.QsciScintilla_FindFirst10(this.h, expr_ms, (C.bool)(re), (C.bool)(cs), (C.bool)(wo), (C.bool)(wrap), (C.bool)(forward), (C.int)(line), (C.int)(index), (C.bool)(show), (C.bool)(posix))) +} + +func (this *QsciScintilla) FindFirst11(expr string, re bool, cs bool, wo bool, wrap bool, forward bool, line int, index int, show bool, posix bool, cxx11 bool) bool { + expr_ms := C.struct_miqt_string{} + expr_ms.data = C.CString(expr) + expr_ms.len = C.size_t(len(expr)) + defer C.free(unsafe.Pointer(expr_ms.data)) + return (bool)(C.QsciScintilla_FindFirst11(this.h, expr_ms, (C.bool)(re), (C.bool)(cs), (C.bool)(wo), (C.bool)(wrap), (C.bool)(forward), (C.int)(line), (C.int)(index), (C.bool)(show), (C.bool)(posix), (C.bool)(cxx11))) +} + +func (this *QsciScintilla) FindFirstInSelection5(expr string, re bool, cs bool, wo bool, forward bool) bool { + expr_ms := C.struct_miqt_string{} + expr_ms.data = C.CString(expr) + expr_ms.len = C.size_t(len(expr)) + defer C.free(unsafe.Pointer(expr_ms.data)) + return (bool)(C.QsciScintilla_FindFirstInSelection5(this.h, expr_ms, (C.bool)(re), (C.bool)(cs), (C.bool)(wo), (C.bool)(forward))) +} + +func (this *QsciScintilla) FindFirstInSelection6(expr string, re bool, cs bool, wo bool, forward bool, show bool) bool { + expr_ms := C.struct_miqt_string{} + expr_ms.data = C.CString(expr) + expr_ms.len = C.size_t(len(expr)) + defer C.free(unsafe.Pointer(expr_ms.data)) + return (bool)(C.QsciScintilla_FindFirstInSelection6(this.h, expr_ms, (C.bool)(re), (C.bool)(cs), (C.bool)(wo), (C.bool)(forward), (C.bool)(show))) +} + +func (this *QsciScintilla) FindFirstInSelection7(expr string, re bool, cs bool, wo bool, forward bool, show bool, posix bool) bool { + expr_ms := C.struct_miqt_string{} + expr_ms.data = C.CString(expr) + expr_ms.len = C.size_t(len(expr)) + defer C.free(unsafe.Pointer(expr_ms.data)) + return (bool)(C.QsciScintilla_FindFirstInSelection7(this.h, expr_ms, (C.bool)(re), (C.bool)(cs), (C.bool)(wo), (C.bool)(forward), (C.bool)(show), (C.bool)(posix))) +} + +func (this *QsciScintilla) FindFirstInSelection8(expr string, re bool, cs bool, wo bool, forward bool, show bool, posix bool, cxx11 bool) bool { + expr_ms := C.struct_miqt_string{} + expr_ms.data = C.CString(expr) + expr_ms.len = C.size_t(len(expr)) + defer C.free(unsafe.Pointer(expr_ms.data)) + return (bool)(C.QsciScintilla_FindFirstInSelection8(this.h, expr_ms, (C.bool)(re), (C.bool)(cs), (C.bool)(wo), (C.bool)(forward), (C.bool)(show), (C.bool)(posix), (C.bool)(cxx11))) +} + +func (this *QsciScintilla) IndicatorDefine2(style QsciScintilla__IndicatorStyle, indicatorNumber int) int { + return (int)(C.QsciScintilla_IndicatorDefine2(this.h, (C.int)(style), (C.int)(indicatorNumber))) +} + +func (this *QsciScintilla) MarkerDefine2(sym QsciScintilla__MarkerSymbol, markerNumber int) int { + return (int)(C.QsciScintilla_MarkerDefine2(this.h, (C.int)(sym), (C.int)(markerNumber))) +} + +func (this *QsciScintilla) MarkerDefine22(ch int8, markerNumber int) int { + return (int)(C.QsciScintilla_MarkerDefine22(this.h, (C.char)(ch), (C.int)(markerNumber))) +} + +func (this *QsciScintilla) MarkerDefine23(pm *qt.QPixmap, markerNumber int) int { + return (int)(C.QsciScintilla_MarkerDefine23(this.h, (*C.QPixmap)(pm.UnsafePointer()), (C.int)(markerNumber))) +} + +func (this *QsciScintilla) MarkerDefine24(im *qt.QImage, markerNumber int) int { + return (int)(C.QsciScintilla_MarkerDefine24(this.h, (*C.QImage)(im.UnsafePointer()), (C.int)(markerNumber))) +} + +func (this *QsciScintilla) MarkerDelete2(linenr int, markerNumber int) { + C.QsciScintilla_MarkerDelete2(this.h, (C.int)(linenr), (C.int)(markerNumber)) +} + +func (this *QsciScintilla) MarkerDeleteAll1(markerNumber int) { + C.QsciScintilla_MarkerDeleteAll1(this.h, (C.int)(markerNumber)) +} + +func (this *QsciScintilla) Recolor1(start int) { + C.QsciScintilla_Recolor1(this.h, (C.int)(start)) +} + +func (this *QsciScintilla) Recolor2(start int, end int) { + C.QsciScintilla_Recolor2(this.h, (C.int)(start), (C.int)(end)) +} + +func (this *QsciScintilla) SetIndicatorDrawUnder2(under bool, indicatorNumber int) { + C.QsciScintilla_SetIndicatorDrawUnder2(this.h, (C.bool)(under), (C.int)(indicatorNumber)) +} + +func (this *QsciScintilla) SetIndicatorForegroundColor2(col *qt.QColor, indicatorNumber int) { + C.QsciScintilla_SetIndicatorForegroundColor2(this.h, (*C.QColor)(col.UnsafePointer()), (C.int)(indicatorNumber)) +} + +func (this *QsciScintilla) SetIndicatorHoverForegroundColor2(col *qt.QColor, indicatorNumber int) { + C.QsciScintilla_SetIndicatorHoverForegroundColor2(this.h, (*C.QColor)(col.UnsafePointer()), (C.int)(indicatorNumber)) +} + +func (this *QsciScintilla) SetIndicatorHoverStyle2(style QsciScintilla__IndicatorStyle, indicatorNumber int) { + C.QsciScintilla_SetIndicatorHoverStyle2(this.h, (C.int)(style), (C.int)(indicatorNumber)) +} + +func (this *QsciScintilla) SetIndicatorOutlineColor2(col *qt.QColor, indicatorNumber int) { + C.QsciScintilla_SetIndicatorOutlineColor2(this.h, (*C.QColor)(col.UnsafePointer()), (C.int)(indicatorNumber)) +} + +func (this *QsciScintilla) ClearMarginText1(line int) { + C.QsciScintilla_ClearMarginText1(this.h, (C.int)(line)) +} + +func (this *QsciScintilla) SetMarkerBackgroundColor2(col *qt.QColor, markerNumber int) { + C.QsciScintilla_SetMarkerBackgroundColor2(this.h, (*C.QColor)(col.UnsafePointer()), (C.int)(markerNumber)) +} + +func (this *QsciScintilla) SetMarkerForegroundColor2(col *qt.QColor, markerNumber int) { + C.QsciScintilla_SetMarkerForegroundColor2(this.h, (*C.QColor)(col.UnsafePointer()), (C.int)(markerNumber)) +} + +func (this *QsciScintilla) SetWrapVisualFlags2(endFlag QsciScintilla__WrapVisualFlag, startFlag QsciScintilla__WrapVisualFlag) { + C.QsciScintilla_SetWrapVisualFlags2(this.h, (C.int)(endFlag), (C.int)(startFlag)) +} + +func (this *QsciScintilla) SetWrapVisualFlags3(endFlag QsciScintilla__WrapVisualFlag, startFlag QsciScintilla__WrapVisualFlag, indent int) { + C.QsciScintilla_SetWrapVisualFlags3(this.h, (C.int)(endFlag), (C.int)(startFlag), (C.int)(indent)) +} + +func (this *QsciScintilla) FoldAll1(children bool) { + C.QsciScintilla_FoldAll1(this.h, (C.bool)(children)) +} + +func (this *QsciScintilla) SelectAll1(selectVal bool) { + C.QsciScintilla_SelectAll1(this.h, (C.bool)(selectVal)) +} + +func (this *QsciScintilla) SetFolding2(fold QsciScintilla__FoldStyle, margin int) { + C.QsciScintilla_SetFolding2(this.h, (C.int)(fold), (C.int)(margin)) +} + +func (this *QsciScintilla) SetLexer1(lexer *QsciLexer) { + C.QsciScintilla_SetLexer1(this.h, lexer.cPointer()) +} + +// Delete this object from C++ memory. +func (this *QsciScintilla) Delete() { + C.QsciScintilla_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciScintilla) GoGC() { + runtime.SetFinalizer(this, func(this *QsciScintilla) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintilla.h b/qt-restricted-extras/qscintilla/gen_qsciscintilla.h new file mode 100644 index 00000000..08fe9284 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciscintilla.h @@ -0,0 +1,385 @@ +#ifndef GEN_QSCISCINTILLA_H +#define GEN_QSCISCINTILLA_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QByteArray; +class QColor; +class QFont; +class QIODevice; +class QImage; +class QMenu; +class QMetaObject; +class QPixmap; +class QPoint; +class QWidget; +class QsciCommandSet; +class QsciDocument; +class QsciLexer; +class QsciScintilla; +class QsciStyle; +class QsciStyledText; +#else +typedef struct QByteArray QByteArray; +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QIODevice QIODevice; +typedef struct QImage QImage; +typedef struct QMenu QMenu; +typedef struct QMetaObject QMetaObject; +typedef struct QPixmap QPixmap; +typedef struct QPoint QPoint; +typedef struct QWidget QWidget; +typedef struct QsciCommandSet QsciCommandSet; +typedef struct QsciDocument QsciDocument; +typedef struct QsciLexer QsciLexer; +typedef struct QsciScintilla QsciScintilla; +typedef struct QsciStyle QsciStyle; +typedef struct QsciStyledText QsciStyledText; +#endif + +QsciScintilla* QsciScintilla_new(); +QsciScintilla* QsciScintilla_new2(QWidget* parent); +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); +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); +struct miqt_string QsciScintilla_Annotation(const QsciScintilla* self, int line); +int QsciScintilla_AnnotationDisplay(const QsciScintilla* self); +void QsciScintilla_ClearAnnotations(QsciScintilla* self); +bool QsciScintilla_AutoCompletionCaseSensitivity(const QsciScintilla* self); +bool QsciScintilla_AutoCompletionFillupsEnabled(const QsciScintilla* self); +bool QsciScintilla_AutoCompletionReplaceWord(const QsciScintilla* self); +bool QsciScintilla_AutoCompletionShowSingle(const QsciScintilla* self); +int QsciScintilla_AutoCompletionSource(const QsciScintilla* self); +int QsciScintilla_AutoCompletionThreshold(const QsciScintilla* self); +int QsciScintilla_AutoCompletionUseSingle(const QsciScintilla* self); +bool QsciScintilla_AutoIndent(const QsciScintilla* self); +bool QsciScintilla_BackspaceUnindents(const QsciScintilla* self); +void QsciScintilla_BeginUndoAction(QsciScintilla* self); +int QsciScintilla_BraceMatching(const QsciScintilla* self); +struct miqt_string QsciScintilla_Bytes(const QsciScintilla* self, int start, int end); +int QsciScintilla_CallTipsPosition(const QsciScintilla* self); +int QsciScintilla_CallTipsStyle(const QsciScintilla* self); +int QsciScintilla_CallTipsVisible(const QsciScintilla* self); +void QsciScintilla_CancelFind(QsciScintilla* self); +void QsciScintilla_CancelList(QsciScintilla* self); +bool QsciScintilla_CaseSensitive(const QsciScintilla* self); +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); +void QsciScintilla_ConvertEols(QsciScintilla* self, int mode); +QMenu* QsciScintilla_CreateStandardContextMenu(QsciScintilla* self); +QsciDocument* QsciScintilla_Document(const QsciScintilla* self); +void QsciScintilla_EndUndoAction(QsciScintilla* self); +QColor* QsciScintilla_EdgeColor(const QsciScintilla* self); +int QsciScintilla_EdgeColumn(const QsciScintilla* self); +int QsciScintilla_EdgeMode(const QsciScintilla* self); +void QsciScintilla_SetFont(QsciScintilla* self, QFont* f); +int QsciScintilla_EolMode(const QsciScintilla* self); +bool QsciScintilla_EolVisibility(const QsciScintilla* self); +int QsciScintilla_ExtraAscent(const QsciScintilla* self); +int QsciScintilla_ExtraDescent(const QsciScintilla* self); +void QsciScintilla_FillIndicatorRange(QsciScintilla* self, int lineFrom, int indexFrom, int lineTo, int indexTo, int indicatorNumber); +bool QsciScintilla_FindFirst(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool wrap); +bool QsciScintilla_FindFirstInSelection(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo); +bool QsciScintilla_FindNext(QsciScintilla* self); +bool QsciScintilla_FindMatchingBrace(QsciScintilla* self, long* brace, long* other, int mode); +int QsciScintilla_FirstVisibleLine(const QsciScintilla* self); +int QsciScintilla_Folding(const QsciScintilla* self); +void QsciScintilla_GetCursorPosition(const QsciScintilla* self, int* line, int* index); +void QsciScintilla_GetSelection(const QsciScintilla* self, int* lineFrom, int* indexFrom, int* lineTo, int* indexTo); +bool QsciScintilla_HasSelectedText(const QsciScintilla* self); +int QsciScintilla_Indentation(const QsciScintilla* self, int line); +bool QsciScintilla_IndentationGuides(const QsciScintilla* self); +bool QsciScintilla_IndentationsUseTabs(const QsciScintilla* self); +int QsciScintilla_IndentationWidth(const QsciScintilla* self); +int QsciScintilla_IndicatorDefine(QsciScintilla* self, int style); +bool QsciScintilla_IndicatorDrawUnder(const QsciScintilla* self, int indicatorNumber); +bool QsciScintilla_IsCallTipActive(const QsciScintilla* self); +bool QsciScintilla_IsListActive(const QsciScintilla* self); +bool QsciScintilla_IsModified(const QsciScintilla* self); +bool QsciScintilla_IsReadOnly(const QsciScintilla* self); +bool QsciScintilla_IsRedoAvailable(const QsciScintilla* self); +bool QsciScintilla_IsUndoAvailable(const QsciScintilla* self); +bool QsciScintilla_IsUtf8(const QsciScintilla* self); +bool QsciScintilla_IsWordCharacter(const QsciScintilla* self, char ch); +int QsciScintilla_LineAt(const QsciScintilla* self, QPoint* point); +void QsciScintilla_LineIndexFromPosition(const QsciScintilla* self, int position, int* line, int* index); +int QsciScintilla_LineLength(const QsciScintilla* self, int line); +int QsciScintilla_Lines(const QsciScintilla* self); +int QsciScintilla_Length(const QsciScintilla* self); +QsciLexer* QsciScintilla_Lexer(const QsciScintilla* self); +QColor* QsciScintilla_MarginBackgroundColor(const QsciScintilla* self, int margin); +bool QsciScintilla_MarginLineNumbers(const QsciScintilla* self, int margin); +int QsciScintilla_MarginMarkerMask(const QsciScintilla* self, int margin); +int QsciScintilla_MarginOptions(const QsciScintilla* self); +bool QsciScintilla_MarginSensitivity(const QsciScintilla* self, int margin); +int QsciScintilla_MarginType(const QsciScintilla* self, int margin); +int QsciScintilla_MarginWidth(const QsciScintilla* self, int margin); +int QsciScintilla_Margins(const QsciScintilla* self); +int QsciScintilla_MarkerDefine(QsciScintilla* self, int sym); +int QsciScintilla_MarkerDefineWithCh(QsciScintilla* self, char ch); +int QsciScintilla_MarkerDefineWithPm(QsciScintilla* self, QPixmap* pm); +int QsciScintilla_MarkerDefineWithIm(QsciScintilla* self, QImage* im); +int QsciScintilla_MarkerAdd(QsciScintilla* self, int linenr, int markerNumber); +unsigned int QsciScintilla_MarkersAtLine(const QsciScintilla* self, int linenr); +void QsciScintilla_MarkerDelete(QsciScintilla* self, int linenr); +void QsciScintilla_MarkerDeleteAll(QsciScintilla* self); +void QsciScintilla_MarkerDeleteHandle(QsciScintilla* self, int mhandle); +int QsciScintilla_MarkerLine(const QsciScintilla* self, int mhandle); +int QsciScintilla_MarkerFindNext(const QsciScintilla* self, int linenr, unsigned int mask); +int QsciScintilla_MarkerFindPrevious(const QsciScintilla* self, int linenr, unsigned int mask); +bool QsciScintilla_OverwriteMode(const QsciScintilla* self); +QColor* QsciScintilla_Paper(const QsciScintilla* self); +int QsciScintilla_PositionFromLineIndex(const QsciScintilla* self, int line, int index); +bool QsciScintilla_Read(QsciScintilla* self, QIODevice* io); +void QsciScintilla_Recolor(QsciScintilla* self); +void QsciScintilla_RegisterImage(QsciScintilla* self, int id, QPixmap* pm); +void QsciScintilla_RegisterImage2(QsciScintilla* self, int id, QImage* im); +void QsciScintilla_Replace(QsciScintilla* self, struct miqt_string replaceStr); +void QsciScintilla_ResetFoldMarginColors(QsciScintilla* self); +void QsciScintilla_ResetHotspotBackgroundColor(QsciScintilla* self); +void QsciScintilla_ResetHotspotForegroundColor(QsciScintilla* self); +int QsciScintilla_ScrollWidth(const QsciScintilla* self); +bool QsciScintilla_ScrollWidthTracking(const QsciScintilla* self); +void QsciScintilla_SetFoldMarginColors(QsciScintilla* self, QColor* fore, QColor* back); +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_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_SetDocument(QsciScintilla* self, QsciDocument* document); +void QsciScintilla_AddEdgeColumn(QsciScintilla* self, int colnr, QColor* col); +void QsciScintilla_ClearEdgeColumns(QsciScintilla* self); +void QsciScintilla_SetEdgeColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetEdgeColumn(QsciScintilla* self, int colnr); +void QsciScintilla_SetEdgeMode(QsciScintilla* self, int mode); +void QsciScintilla_SetFirstVisibleLine(QsciScintilla* self, int linenr); +void QsciScintilla_SetIndicatorDrawUnder(QsciScintilla* self, bool under); +void QsciScintilla_SetIndicatorForegroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetIndicatorHoverForegroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetIndicatorHoverStyle(QsciScintilla* self, int style); +void QsciScintilla_SetIndicatorOutlineColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetMarginBackgroundColor(QsciScintilla* self, int margin, QColor* col); +void QsciScintilla_SetMarginOptions(QsciScintilla* self, int options); +void QsciScintilla_SetMarginText(QsciScintilla* self, int line, struct miqt_string text, int style); +void QsciScintilla_SetMarginText2(QsciScintilla* self, int line, struct miqt_string text, QsciStyle* style); +void QsciScintilla_SetMarginText3(QsciScintilla* self, int line, QsciStyledText* text); +void QsciScintilla_SetMarginType(QsciScintilla* self, int margin, int typeVal); +void QsciScintilla_ClearMarginText(QsciScintilla* self); +void QsciScintilla_SetMargins(QsciScintilla* self, int margins); +void QsciScintilla_SetMarkerBackgroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetMarkerForegroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetMatchedBraceBackgroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetMatchedBraceForegroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetMatchedBraceIndicator(QsciScintilla* self, int indicatorNumber); +void QsciScintilla_ResetMatchedBraceIndicator(QsciScintilla* self); +void QsciScintilla_SetScrollWidth(QsciScintilla* self, int pixelWidth); +void QsciScintilla_SetScrollWidthTracking(QsciScintilla* self, bool enabled); +void QsciScintilla_SetTabDrawMode(QsciScintilla* self, int mode); +void QsciScintilla_SetUnmatchedBraceBackgroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetUnmatchedBraceForegroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetUnmatchedBraceIndicator(QsciScintilla* self, int indicatorNumber); +void QsciScintilla_ResetUnmatchedBraceIndicator(QsciScintilla* self); +void QsciScintilla_SetWrapVisualFlags(QsciScintilla* self, int endFlag); +struct miqt_string QsciScintilla_SelectedText(const QsciScintilla* self); +bool QsciScintilla_SelectionToEol(const QsciScintilla* self); +void QsciScintilla_SetHotspotBackgroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetHotspotForegroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetHotspotUnderline(QsciScintilla* self, bool enable); +void QsciScintilla_SetHotspotWrap(QsciScintilla* self, bool enable); +void QsciScintilla_SetSelectionToEol(QsciScintilla* self, bool filled); +void QsciScintilla_SetExtraAscent(QsciScintilla* self, int extra); +void QsciScintilla_SetExtraDescent(QsciScintilla* self, int extra); +void QsciScintilla_SetOverwriteMode(QsciScintilla* self, bool overwrite); +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); +QsciCommandSet* QsciScintilla_StandardCommands(const QsciScintilla* self); +int QsciScintilla_TabDrawMode(const QsciScintilla* self); +bool QsciScintilla_TabIndents(const QsciScintilla* self); +int QsciScintilla_TabWidth(const QsciScintilla* self); +struct miqt_string QsciScintilla_Text(const QsciScintilla* self); +struct miqt_string QsciScintilla_TextWithLine(const QsciScintilla* self, int line); +struct miqt_string QsciScintilla_Text2(const QsciScintilla* self, int start, int end); +int QsciScintilla_TextHeight(const QsciScintilla* self, int linenr); +int QsciScintilla_WhitespaceSize(const QsciScintilla* self); +int QsciScintilla_WhitespaceVisibility(const QsciScintilla* self); +struct miqt_string QsciScintilla_WordAtLineIndex(const QsciScintilla* self, int line, int index); +struct miqt_string QsciScintilla_WordAtPoint(const QsciScintilla* self, QPoint* point); +const char* QsciScintilla_WordCharacters(const QsciScintilla* self); +int QsciScintilla_WrapMode(const QsciScintilla* self); +int QsciScintilla_WrapIndentMode(const QsciScintilla* self); +bool QsciScintilla_Write(const QsciScintilla* self, QIODevice* io); +void QsciScintilla_Append(QsciScintilla* self, struct miqt_string text); +void QsciScintilla_AutoCompleteFromAll(QsciScintilla* self); +void QsciScintilla_AutoCompleteFromAPIs(QsciScintilla* self); +void QsciScintilla_AutoCompleteFromDocument(QsciScintilla* self); +void QsciScintilla_CallTip(QsciScintilla* self); +void QsciScintilla_Clear(QsciScintilla* self); +void QsciScintilla_Copy(QsciScintilla* self); +void QsciScintilla_Cut(QsciScintilla* self); +void QsciScintilla_EnsureCursorVisible(QsciScintilla* self); +void QsciScintilla_EnsureLineVisible(QsciScintilla* self, int line); +void QsciScintilla_FoldAll(QsciScintilla* self); +void QsciScintilla_FoldLine(QsciScintilla* self, int line); +void QsciScintilla_Indent(QsciScintilla* self, int line); +void QsciScintilla_Insert(QsciScintilla* self, struct miqt_string text); +void QsciScintilla_InsertAt(QsciScintilla* self, struct miqt_string text, int line, int index); +void QsciScintilla_MoveToMatchingBrace(QsciScintilla* self); +void QsciScintilla_Paste(QsciScintilla* self); +void QsciScintilla_Redo(QsciScintilla* self); +void QsciScintilla_RemoveSelectedText(QsciScintilla* self); +void QsciScintilla_ReplaceSelectedText(QsciScintilla* self, struct miqt_string text); +void QsciScintilla_ResetSelectionBackgroundColor(QsciScintilla* self); +void QsciScintilla_ResetSelectionForegroundColor(QsciScintilla* self); +void QsciScintilla_SelectAll(QsciScintilla* self); +void QsciScintilla_SelectToMatchingBrace(QsciScintilla* self); +void QsciScintilla_SetAutoCompletionCaseSensitivity(QsciScintilla* self, bool cs); +void QsciScintilla_SetAutoCompletionReplaceWord(QsciScintilla* self, bool replace); +void QsciScintilla_SetAutoCompletionShowSingle(QsciScintilla* self, bool single); +void QsciScintilla_SetAutoCompletionSource(QsciScintilla* self, int source); +void QsciScintilla_SetAutoCompletionThreshold(QsciScintilla* self, int thresh); +void QsciScintilla_SetAutoCompletionUseSingle(QsciScintilla* self, int single); +void QsciScintilla_SetAutoIndent(QsciScintilla* self, bool autoindent); +void QsciScintilla_SetBraceMatching(QsciScintilla* self, int bm); +void QsciScintilla_SetBackspaceUnindents(QsciScintilla* self, bool unindent); +void QsciScintilla_SetCaretForegroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetCaretLineBackgroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetCaretLineFrameWidth(QsciScintilla* self, int width); +void QsciScintilla_SetCaretLineVisible(QsciScintilla* self, bool enable); +void QsciScintilla_SetCaretWidth(QsciScintilla* self, int width); +void QsciScintilla_SetColor(QsciScintilla* self, QColor* c); +void QsciScintilla_SetCursorPosition(QsciScintilla* self, int line, int index); +void QsciScintilla_SetEolMode(QsciScintilla* self, int mode); +void QsciScintilla_SetEolVisibility(QsciScintilla* self, bool visible); +void QsciScintilla_SetFolding(QsciScintilla* self, int fold); +void QsciScintilla_SetIndentation(QsciScintilla* self, int line, int indentation); +void QsciScintilla_SetIndentationGuides(QsciScintilla* self, bool enable); +void QsciScintilla_SetIndentationGuidesBackgroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetIndentationGuidesForegroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetIndentationsUseTabs(QsciScintilla* self, bool tabs); +void QsciScintilla_SetIndentationWidth(QsciScintilla* self, int width); +void QsciScintilla_SetLexer(QsciScintilla* self); +void QsciScintilla_SetMarginsBackgroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetMarginsFont(QsciScintilla* self, QFont* f); +void QsciScintilla_SetMarginsForegroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetMarginLineNumbers(QsciScintilla* self, int margin, bool lnrs); +void QsciScintilla_SetMarginMarkerMask(QsciScintilla* self, int margin, int mask); +void QsciScintilla_SetMarginSensitivity(QsciScintilla* self, int margin, bool sens); +void QsciScintilla_SetMarginWidth(QsciScintilla* self, int margin, int width); +void QsciScintilla_SetMarginWidth2(QsciScintilla* self, int margin, struct miqt_string s); +void QsciScintilla_SetModified(QsciScintilla* self, bool m); +void QsciScintilla_SetPaper(QsciScintilla* self, QColor* c); +void QsciScintilla_SetReadOnly(QsciScintilla* self, bool ro); +void QsciScintilla_SetSelection(QsciScintilla* self, int lineFrom, int indexFrom, int lineTo, int indexTo); +void QsciScintilla_SetSelectionBackgroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetSelectionForegroundColor(QsciScintilla* self, QColor* col); +void QsciScintilla_SetTabIndents(QsciScintilla* self, bool indent); +void QsciScintilla_SetTabWidth(QsciScintilla* self, int width); +void QsciScintilla_SetText(QsciScintilla* self, struct miqt_string text); +void QsciScintilla_SetUtf8(QsciScintilla* self, bool cp); +void QsciScintilla_SetWhitespaceVisibility(QsciScintilla* self, int mode); +void QsciScintilla_SetWrapMode(QsciScintilla* self, int mode); +void QsciScintilla_Undo(QsciScintilla* self); +void QsciScintilla_Unindent(QsciScintilla* self, int line); +void QsciScintilla_ZoomIn(QsciScintilla* self, int rangeVal); +void QsciScintilla_ZoomIn2(QsciScintilla* self); +void QsciScintilla_ZoomOut(QsciScintilla* self, int rangeVal); +void QsciScintilla_ZoomOut2(QsciScintilla* self); +void QsciScintilla_ZoomTo(QsciScintilla* self, int size); +void QsciScintilla_CursorPositionChanged(QsciScintilla* self, int line, int index); +void QsciScintilla_connect_CursorPositionChanged(QsciScintilla* self, intptr_t slot); +void QsciScintilla_CopyAvailable(QsciScintilla* self, bool yes); +void QsciScintilla_connect_CopyAvailable(QsciScintilla* self, intptr_t slot); +void QsciScintilla_IndicatorClicked(QsciScintilla* self, int line, int index, int state); +void QsciScintilla_connect_IndicatorClicked(QsciScintilla* self, intptr_t slot); +void QsciScintilla_IndicatorReleased(QsciScintilla* self, int line, int index, int state); +void QsciScintilla_connect_IndicatorReleased(QsciScintilla* self, intptr_t slot); +void QsciScintilla_LinesChanged(QsciScintilla* self); +void QsciScintilla_connect_LinesChanged(QsciScintilla* self, intptr_t slot); +void QsciScintilla_MarginClicked(QsciScintilla* self, int margin, int line, int state); +void QsciScintilla_connect_MarginClicked(QsciScintilla* self, intptr_t slot); +void QsciScintilla_MarginRightClicked(QsciScintilla* self, int margin, int line, int state); +void QsciScintilla_connect_MarginRightClicked(QsciScintilla* self, intptr_t slot); +void QsciScintilla_ModificationAttempted(QsciScintilla* self); +void QsciScintilla_connect_ModificationAttempted(QsciScintilla* self, intptr_t slot); +void QsciScintilla_ModificationChanged(QsciScintilla* self, bool m); +void QsciScintilla_connect_ModificationChanged(QsciScintilla* self, intptr_t slot); +void QsciScintilla_SelectionChanged(QsciScintilla* self); +void QsciScintilla_connect_SelectionChanged(QsciScintilla* self, intptr_t slot); +void QsciScintilla_TextChanged(QsciScintilla* self); +void QsciScintilla_connect_TextChanged(QsciScintilla* self, intptr_t slot); +void QsciScintilla_UserListActivated(QsciScintilla* self, int id, struct miqt_string stringVal); +void QsciScintilla_connect_UserListActivated(QsciScintilla* self, intptr_t slot); +struct miqt_string QsciScintilla_Tr2(const char* s, const char* c); +struct miqt_string QsciScintilla_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciScintilla_TrUtf82(const char* s, const char* c); +struct miqt_string QsciScintilla_TrUtf83(const char* s, const char* c, int n); +void QsciScintilla_ClearAnnotations1(QsciScintilla* self, int line); +bool QsciScintilla_FindFirst6(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool wrap, bool forward); +bool QsciScintilla_FindFirst7(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool wrap, bool forward, int line); +bool QsciScintilla_FindFirst8(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool wrap, bool forward, int line, int index); +bool QsciScintilla_FindFirst9(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool wrap, bool forward, int line, int index, bool show); +bool QsciScintilla_FindFirst10(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool wrap, bool forward, int line, int index, bool show, bool posix); +bool QsciScintilla_FindFirst11(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool wrap, bool forward, int line, int index, bool show, bool posix, bool cxx11); +bool QsciScintilla_FindFirstInSelection5(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool forward); +bool QsciScintilla_FindFirstInSelection6(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool forward, bool show); +bool QsciScintilla_FindFirstInSelection7(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool forward, bool show, bool posix); +bool QsciScintilla_FindFirstInSelection8(QsciScintilla* self, struct miqt_string expr, bool re, bool cs, bool wo, bool forward, bool show, bool posix, bool cxx11); +int QsciScintilla_IndicatorDefine2(QsciScintilla* self, int style, int indicatorNumber); +int QsciScintilla_MarkerDefine2(QsciScintilla* self, int sym, int markerNumber); +int QsciScintilla_MarkerDefine22(QsciScintilla* self, char ch, int markerNumber); +int QsciScintilla_MarkerDefine23(QsciScintilla* self, QPixmap* pm, int markerNumber); +int QsciScintilla_MarkerDefine24(QsciScintilla* self, QImage* im, int markerNumber); +void QsciScintilla_MarkerDelete2(QsciScintilla* self, int linenr, int markerNumber); +void QsciScintilla_MarkerDeleteAll1(QsciScintilla* self, int markerNumber); +void QsciScintilla_Recolor1(QsciScintilla* self, int start); +void QsciScintilla_Recolor2(QsciScintilla* self, int start, int end); +void QsciScintilla_SetIndicatorDrawUnder2(QsciScintilla* self, bool under, int indicatorNumber); +void QsciScintilla_SetIndicatorForegroundColor2(QsciScintilla* self, QColor* col, int indicatorNumber); +void QsciScintilla_SetIndicatorHoverForegroundColor2(QsciScintilla* self, QColor* col, int indicatorNumber); +void QsciScintilla_SetIndicatorHoverStyle2(QsciScintilla* self, int style, int indicatorNumber); +void QsciScintilla_SetIndicatorOutlineColor2(QsciScintilla* self, QColor* col, int indicatorNumber); +void QsciScintilla_ClearMarginText1(QsciScintilla* self, int line); +void QsciScintilla_SetMarkerBackgroundColor2(QsciScintilla* self, QColor* col, int markerNumber); +void QsciScintilla_SetMarkerForegroundColor2(QsciScintilla* self, QColor* col, int markerNumber); +void QsciScintilla_SetWrapVisualFlags2(QsciScintilla* self, int endFlag, int startFlag); +void QsciScintilla_SetWrapVisualFlags3(QsciScintilla* self, int endFlag, int startFlag, int indent); +void QsciScintilla_FoldAll1(QsciScintilla* self, bool children); +void QsciScintilla_SelectAll1(QsciScintilla* self, bool selectVal); +void QsciScintilla_SetFolding2(QsciScintilla* self, int fold, int margin); +void QsciScintilla_SetLexer1(QsciScintilla* self, QsciLexer* lexer); +void QsciScintilla_Delete(QsciScintilla* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintillabase.cpp b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.cpp new file mode 100644 index 00000000..2d67f852 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.cpp @@ -0,0 +1,614 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "gen_qsciscintillabase.h" +#include "_cgo_export.h" + +QsciScintillaBase* QsciScintillaBase_new() { + return new QsciScintillaBase(); +} + +QsciScintillaBase* QsciScintillaBase_new2(QWidget* parent) { + return new QsciScintillaBase(parent); +} + +QMetaObject* QsciScintillaBase_MetaObject(const QsciScintillaBase* self) { + return (QMetaObject*) self->metaObject(); +} + +void* QsciScintillaBase_Metacast(QsciScintillaBase* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string QsciScintillaBase_Tr(const char* s) { + QString _ret = QsciScintillaBase::tr(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciScintillaBase_TrUtf8(const char* s) { + QString _ret = QsciScintillaBase::trUtf8(s); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +QsciScintillaBase* QsciScintillaBase_Pool() { + return QsciScintillaBase::pool(); +} + +void QsciScintillaBase_ReplaceHorizontalScrollBar(QsciScintillaBase* self, QScrollBar* scrollBar) { + self->replaceHorizontalScrollBar(scrollBar); +} + +void QsciScintillaBase_ReplaceVerticalScrollBar(QsciScintillaBase* self, QScrollBar* scrollBar) { + self->replaceVerticalScrollBar(scrollBar); +} + +long QsciScintillaBase_SendScintilla(const QsciScintillaBase* self, unsigned int msg) { + return self->SendScintilla(static_cast(msg)); +} + +long QsciScintillaBase_SendScintilla2(const QsciScintillaBase* self, unsigned int msg, unsigned long wParam, void* lParam) { + return self->SendScintilla(static_cast(msg), static_cast(wParam), lParam); +} + +long QsciScintillaBase_SendScintilla3(const QsciScintillaBase* self, unsigned int msg, uintptr_t wParam, const char* lParam) { + return self->SendScintilla(static_cast(msg), static_cast(wParam), lParam); +} + +long QsciScintillaBase_SendScintilla4(const QsciScintillaBase* self, unsigned int msg, const char* lParam) { + return self->SendScintilla(static_cast(msg), lParam); +} + +long QsciScintillaBase_SendScintilla5(const QsciScintillaBase* self, unsigned int msg, const char* wParam, const char* lParam) { + return self->SendScintilla(static_cast(msg), wParam, lParam); +} + +long QsciScintillaBase_SendScintilla6(const QsciScintillaBase* self, unsigned int msg, long wParam) { + return self->SendScintilla(static_cast(msg), static_cast(wParam)); +} + +long QsciScintillaBase_SendScintilla7(const QsciScintillaBase* self, unsigned int msg, int wParam) { + return self->SendScintilla(static_cast(msg), static_cast(wParam)); +} + +long QsciScintillaBase_SendScintilla8(const QsciScintillaBase* self, unsigned int msg, long cpMin, long cpMax, char* lpstrText) { + return self->SendScintilla(static_cast(msg), static_cast(cpMin), static_cast(cpMax), lpstrText); +} + +long QsciScintillaBase_SendScintilla9(const QsciScintillaBase* self, unsigned int msg, unsigned long wParam, QColor* col) { + return self->SendScintilla(static_cast(msg), static_cast(wParam), *col); +} + +long QsciScintillaBase_SendScintilla10(const QsciScintillaBase* self, unsigned int msg, QColor* col) { + return self->SendScintilla(static_cast(msg), *col); +} + +long QsciScintillaBase_SendScintilla11(const QsciScintillaBase* self, unsigned int msg, unsigned long wParam, QPainter* hdc, QRect* rc, long cpMin, long cpMax) { + return self->SendScintilla(static_cast(msg), static_cast(wParam), hdc, *rc, static_cast(cpMin), static_cast(cpMax)); +} + +long QsciScintillaBase_SendScintilla12(const QsciScintillaBase* self, unsigned int msg, unsigned long wParam, QPixmap* lParam) { + return self->SendScintilla(static_cast(msg), static_cast(wParam), *lParam); +} + +long QsciScintillaBase_SendScintilla13(const QsciScintillaBase* self, unsigned int msg, unsigned long wParam, QImage* lParam) { + return self->SendScintilla(static_cast(msg), static_cast(wParam), *lParam); +} + +void* QsciScintillaBase_SendScintillaPtrResult(const QsciScintillaBase* self, unsigned int msg) { + return self->SendScintillaPtrResult(static_cast(msg)); +} + +int QsciScintillaBase_CommandKey(int qt_key, int* modifiers) { + return QsciScintillaBase::commandKey(static_cast(qt_key), static_cast(*modifiers)); +} + +void QsciScintillaBase_QSCN_SELCHANGED(QsciScintillaBase* self, bool yes) { + self->QSCN_SELCHANGED(yes); +} + +void QsciScintillaBase_connect_QSCN_SELCHANGED(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::QSCN_SELCHANGED), self, [=](bool yes) { + bool sigval1 = yes; + miqt_exec_callback_QsciScintillaBase_QSCN_SELCHANGED(slot, sigval1); + }); +} + +void QsciScintillaBase_SCN_AUTOCCANCELLED(QsciScintillaBase* self) { + self->SCN_AUTOCCANCELLED(); +} + +void QsciScintillaBase_connect_SCN_AUTOCCANCELLED(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_AUTOCCANCELLED), self, [=]() { + miqt_exec_callback_QsciScintillaBase_SCN_AUTOCCANCELLED(slot); + }); +} + +void QsciScintillaBase_SCN_AUTOCCHARDELETED(QsciScintillaBase* self) { + self->SCN_AUTOCCHARDELETED(); +} + +void QsciScintillaBase_connect_SCN_AUTOCCHARDELETED(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_AUTOCCHARDELETED), self, [=]() { + miqt_exec_callback_QsciScintillaBase_SCN_AUTOCCHARDELETED(slot); + }); +} + +void QsciScintillaBase_SCN_AUTOCCOMPLETED(QsciScintillaBase* self, const char* selection, int position, int ch, int method) { + self->SCN_AUTOCCOMPLETED(selection, static_cast(position), static_cast(ch), static_cast(method)); +} + +void QsciScintillaBase_connect_SCN_AUTOCCOMPLETED(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_AUTOCCOMPLETED), self, [=](const char* selection, int position, int ch, int method) { + const char* sigval1 = (const char*) selection; + int sigval2 = position; + int sigval3 = ch; + int sigval4 = method; + miqt_exec_callback_QsciScintillaBase_SCN_AUTOCCOMPLETED(slot, sigval1, sigval2, sigval3, sigval4); + }); +} + +void QsciScintillaBase_SCN_AUTOCSELECTION(QsciScintillaBase* self, const char* selection, int position, int ch, int method) { + self->SCN_AUTOCSELECTION(selection, static_cast(position), static_cast(ch), static_cast(method)); +} + +void QsciScintillaBase_connect_SCN_AUTOCSELECTION(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_AUTOCSELECTION), self, [=](const char* selection, int position, int ch, int method) { + const char* sigval1 = (const char*) selection; + int sigval2 = position; + int sigval3 = ch; + int sigval4 = method; + miqt_exec_callback_QsciScintillaBase_SCN_AUTOCSELECTION(slot, sigval1, sigval2, sigval3, sigval4); + }); +} + +void QsciScintillaBase_SCN_AUTOCSELECTION2(QsciScintillaBase* self, const char* selection, int position) { + self->SCN_AUTOCSELECTION(selection, static_cast(position)); +} + +void QsciScintillaBase_connect_SCN_AUTOCSELECTION2(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_AUTOCSELECTION), self, [=](const char* selection, int position) { + const char* sigval1 = (const char*) selection; + int sigval2 = position; + miqt_exec_callback_QsciScintillaBase_SCN_AUTOCSELECTION2(slot, sigval1, sigval2); + }); +} + +void QsciScintillaBase_SCN_AUTOCSELECTIONCHANGE(QsciScintillaBase* self, const char* selection, int id, int position) { + self->SCN_AUTOCSELECTIONCHANGE(selection, static_cast(id), static_cast(position)); +} + +void QsciScintillaBase_connect_SCN_AUTOCSELECTIONCHANGE(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_AUTOCSELECTIONCHANGE), self, [=](const char* selection, int id, int position) { + const char* sigval1 = (const char*) selection; + int sigval2 = id; + int sigval3 = position; + miqt_exec_callback_QsciScintillaBase_SCN_AUTOCSELECTIONCHANGE(slot, sigval1, sigval2, sigval3); + }); +} + +void QsciScintillaBase_SCEN_CHANGE(QsciScintillaBase* self) { + self->SCEN_CHANGE(); +} + +void QsciScintillaBase_connect_SCEN_CHANGE(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCEN_CHANGE), self, [=]() { + miqt_exec_callback_QsciScintillaBase_SCEN_CHANGE(slot); + }); +} + +void QsciScintillaBase_SCN_CALLTIPCLICK(QsciScintillaBase* self, int direction) { + self->SCN_CALLTIPCLICK(static_cast(direction)); +} + +void QsciScintillaBase_connect_SCN_CALLTIPCLICK(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_CALLTIPCLICK), self, [=](int direction) { + int sigval1 = direction; + miqt_exec_callback_QsciScintillaBase_SCN_CALLTIPCLICK(slot, sigval1); + }); +} + +void QsciScintillaBase_SCN_CHARADDED(QsciScintillaBase* self, int charadded) { + self->SCN_CHARADDED(static_cast(charadded)); +} + +void QsciScintillaBase_connect_SCN_CHARADDED(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_CHARADDED), self, [=](int charadded) { + int sigval1 = charadded; + miqt_exec_callback_QsciScintillaBase_SCN_CHARADDED(slot, sigval1); + }); +} + +void QsciScintillaBase_SCN_DOUBLECLICK(QsciScintillaBase* self, int position, int line, int modifiers) { + self->SCN_DOUBLECLICK(static_cast(position), static_cast(line), static_cast(modifiers)); +} + +void QsciScintillaBase_connect_SCN_DOUBLECLICK(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_DOUBLECLICK), self, [=](int position, int line, int modifiers) { + int sigval1 = position; + int sigval2 = line; + int sigval3 = modifiers; + miqt_exec_callback_QsciScintillaBase_SCN_DOUBLECLICK(slot, sigval1, sigval2, sigval3); + }); +} + +void QsciScintillaBase_SCN_DWELLEND(QsciScintillaBase* self, int position, int x, int y) { + self->SCN_DWELLEND(static_cast(position), static_cast(x), static_cast(y)); +} + +void QsciScintillaBase_connect_SCN_DWELLEND(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_DWELLEND), self, [=](int position, int x, int y) { + int sigval1 = position; + int sigval2 = x; + int sigval3 = y; + miqt_exec_callback_QsciScintillaBase_SCN_DWELLEND(slot, sigval1, sigval2, sigval3); + }); +} + +void QsciScintillaBase_SCN_DWELLSTART(QsciScintillaBase* self, int position, int x, int y) { + self->SCN_DWELLSTART(static_cast(position), static_cast(x), static_cast(y)); +} + +void QsciScintillaBase_connect_SCN_DWELLSTART(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_DWELLSTART), self, [=](int position, int x, int y) { + int sigval1 = position; + int sigval2 = x; + int sigval3 = y; + miqt_exec_callback_QsciScintillaBase_SCN_DWELLSTART(slot, sigval1, sigval2, sigval3); + }); +} + +void QsciScintillaBase_SCN_FOCUSIN(QsciScintillaBase* self) { + self->SCN_FOCUSIN(); +} + +void QsciScintillaBase_connect_SCN_FOCUSIN(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_FOCUSIN), self, [=]() { + miqt_exec_callback_QsciScintillaBase_SCN_FOCUSIN(slot); + }); +} + +void QsciScintillaBase_SCN_FOCUSOUT(QsciScintillaBase* self) { + self->SCN_FOCUSOUT(); +} + +void QsciScintillaBase_connect_SCN_FOCUSOUT(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_FOCUSOUT), self, [=]() { + miqt_exec_callback_QsciScintillaBase_SCN_FOCUSOUT(slot); + }); +} + +void QsciScintillaBase_SCN_HOTSPOTCLICK(QsciScintillaBase* self, int position, int modifiers) { + self->SCN_HOTSPOTCLICK(static_cast(position), static_cast(modifiers)); +} + +void QsciScintillaBase_connect_SCN_HOTSPOTCLICK(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_HOTSPOTCLICK), self, [=](int position, int modifiers) { + int sigval1 = position; + int sigval2 = modifiers; + miqt_exec_callback_QsciScintillaBase_SCN_HOTSPOTCLICK(slot, sigval1, sigval2); + }); +} + +void QsciScintillaBase_SCN_HOTSPOTDOUBLECLICK(QsciScintillaBase* self, int position, int modifiers) { + self->SCN_HOTSPOTDOUBLECLICK(static_cast(position), static_cast(modifiers)); +} + +void QsciScintillaBase_connect_SCN_HOTSPOTDOUBLECLICK(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_HOTSPOTDOUBLECLICK), self, [=](int position, int modifiers) { + int sigval1 = position; + int sigval2 = modifiers; + miqt_exec_callback_QsciScintillaBase_SCN_HOTSPOTDOUBLECLICK(slot, sigval1, sigval2); + }); +} + +void QsciScintillaBase_SCN_HOTSPOTRELEASECLICK(QsciScintillaBase* self, int position, int modifiers) { + self->SCN_HOTSPOTRELEASECLICK(static_cast(position), static_cast(modifiers)); +} + +void QsciScintillaBase_connect_SCN_HOTSPOTRELEASECLICK(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_HOTSPOTRELEASECLICK), self, [=](int position, int modifiers) { + int sigval1 = position; + int sigval2 = modifiers; + miqt_exec_callback_QsciScintillaBase_SCN_HOTSPOTRELEASECLICK(slot, sigval1, sigval2); + }); +} + +void QsciScintillaBase_SCN_INDICATORCLICK(QsciScintillaBase* self, int position, int modifiers) { + self->SCN_INDICATORCLICK(static_cast(position), static_cast(modifiers)); +} + +void QsciScintillaBase_connect_SCN_INDICATORCLICK(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_INDICATORCLICK), self, [=](int position, int modifiers) { + int sigval1 = position; + int sigval2 = modifiers; + miqt_exec_callback_QsciScintillaBase_SCN_INDICATORCLICK(slot, sigval1, sigval2); + }); +} + +void QsciScintillaBase_SCN_INDICATORRELEASE(QsciScintillaBase* self, int position, int modifiers) { + self->SCN_INDICATORRELEASE(static_cast(position), static_cast(modifiers)); +} + +void QsciScintillaBase_connect_SCN_INDICATORRELEASE(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_INDICATORRELEASE), self, [=](int position, int modifiers) { + int sigval1 = position; + int sigval2 = modifiers; + miqt_exec_callback_QsciScintillaBase_SCN_INDICATORRELEASE(slot, sigval1, sigval2); + }); +} + +void QsciScintillaBase_SCN_MACRORECORD(QsciScintillaBase* self, unsigned int param1, unsigned long param2, void* param3) { + self->SCN_MACRORECORD(static_cast(param1), static_cast(param2), param3); +} + +void QsciScintillaBase_connect_SCN_MACRORECORD(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_MACRORECORD), self, [=](unsigned int param1, unsigned long param2, void* param3) { + unsigned int sigval1 = param1; + unsigned long sigval2 = param2; + void* sigval3 = param3; + miqt_exec_callback_QsciScintillaBase_SCN_MACRORECORD(slot, sigval1, sigval2, sigval3); + }); +} + +void QsciScintillaBase_SCN_MARGINCLICK(QsciScintillaBase* self, int position, int modifiers, int margin) { + self->SCN_MARGINCLICK(static_cast(position), static_cast(modifiers), static_cast(margin)); +} + +void QsciScintillaBase_connect_SCN_MARGINCLICK(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_MARGINCLICK), self, [=](int position, int modifiers, int margin) { + int sigval1 = position; + int sigval2 = modifiers; + int sigval3 = margin; + miqt_exec_callback_QsciScintillaBase_SCN_MARGINCLICK(slot, sigval1, sigval2, sigval3); + }); +} + +void QsciScintillaBase_SCN_MARGINRIGHTCLICK(QsciScintillaBase* self, int position, int modifiers, int margin) { + self->SCN_MARGINRIGHTCLICK(static_cast(position), static_cast(modifiers), static_cast(margin)); +} + +void QsciScintillaBase_connect_SCN_MARGINRIGHTCLICK(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_MARGINRIGHTCLICK), self, [=](int position, int modifiers, int margin) { + int sigval1 = position; + int sigval2 = modifiers; + int sigval3 = margin; + miqt_exec_callback_QsciScintillaBase_SCN_MARGINRIGHTCLICK(slot, sigval1, sigval2, sigval3); + }); +} + +void QsciScintillaBase_SCN_MODIFIED(QsciScintillaBase* self, int param1, int param2, const char* param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10) { + self->SCN_MODIFIED(static_cast(param1), static_cast(param2), param3, static_cast(param4), static_cast(param5), static_cast(param6), static_cast(param7), static_cast(param8), static_cast(param9), static_cast(param10)); +} + +void QsciScintillaBase_connect_SCN_MODIFIED(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_MODIFIED), self, [=](int param1, int param2, const char* param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10) { + int sigval1 = param1; + int sigval2 = param2; + const char* sigval3 = (const char*) param3; + int sigval4 = param4; + int sigval5 = param5; + int sigval6 = param6; + int sigval7 = param7; + int sigval8 = param8; + int sigval9 = param9; + int sigval10 = param10; + miqt_exec_callback_QsciScintillaBase_SCN_MODIFIED(slot, sigval1, sigval2, sigval3, sigval4, sigval5, sigval6, sigval7, sigval8, sigval9, sigval10); + }); +} + +void QsciScintillaBase_SCN_MODIFYATTEMPTRO(QsciScintillaBase* self) { + self->SCN_MODIFYATTEMPTRO(); +} + +void QsciScintillaBase_connect_SCN_MODIFYATTEMPTRO(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_MODIFYATTEMPTRO), self, [=]() { + miqt_exec_callback_QsciScintillaBase_SCN_MODIFYATTEMPTRO(slot); + }); +} + +void QsciScintillaBase_SCN_NEEDSHOWN(QsciScintillaBase* self, int param1, int param2) { + self->SCN_NEEDSHOWN(static_cast(param1), static_cast(param2)); +} + +void QsciScintillaBase_connect_SCN_NEEDSHOWN(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_NEEDSHOWN), self, [=](int param1, int param2) { + int sigval1 = param1; + int sigval2 = param2; + miqt_exec_callback_QsciScintillaBase_SCN_NEEDSHOWN(slot, sigval1, sigval2); + }); +} + +void QsciScintillaBase_SCN_PAINTED(QsciScintillaBase* self) { + self->SCN_PAINTED(); +} + +void QsciScintillaBase_connect_SCN_PAINTED(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_PAINTED), self, [=]() { + miqt_exec_callback_QsciScintillaBase_SCN_PAINTED(slot); + }); +} + +void QsciScintillaBase_SCN_SAVEPOINTLEFT(QsciScintillaBase* self) { + self->SCN_SAVEPOINTLEFT(); +} + +void QsciScintillaBase_connect_SCN_SAVEPOINTLEFT(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_SAVEPOINTLEFT), self, [=]() { + miqt_exec_callback_QsciScintillaBase_SCN_SAVEPOINTLEFT(slot); + }); +} + +void QsciScintillaBase_SCN_SAVEPOINTREACHED(QsciScintillaBase* self) { + self->SCN_SAVEPOINTREACHED(); +} + +void QsciScintillaBase_connect_SCN_SAVEPOINTREACHED(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_SAVEPOINTREACHED), self, [=]() { + miqt_exec_callback_QsciScintillaBase_SCN_SAVEPOINTREACHED(slot); + }); +} + +void QsciScintillaBase_SCN_STYLENEEDED(QsciScintillaBase* self, int position) { + self->SCN_STYLENEEDED(static_cast(position)); +} + +void QsciScintillaBase_connect_SCN_STYLENEEDED(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_STYLENEEDED), self, [=](int position) { + int sigval1 = position; + miqt_exec_callback_QsciScintillaBase_SCN_STYLENEEDED(slot, sigval1); + }); +} + +void QsciScintillaBase_SCN_URIDROPPED(QsciScintillaBase* self, QUrl* url) { + self->SCN_URIDROPPED(*url); +} + +void QsciScintillaBase_connect_SCN_URIDROPPED(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_URIDROPPED), self, [=](const QUrl& url) { + const QUrl& url_ret = url; + // Cast returned reference into pointer + QUrl* sigval1 = const_cast(&url_ret); + miqt_exec_callback_QsciScintillaBase_SCN_URIDROPPED(slot, sigval1); + }); +} + +void QsciScintillaBase_SCN_UPDATEUI(QsciScintillaBase* self, int updated) { + self->SCN_UPDATEUI(static_cast(updated)); +} + +void QsciScintillaBase_connect_SCN_UPDATEUI(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_UPDATEUI), self, [=](int updated) { + int sigval1 = updated; + miqt_exec_callback_QsciScintillaBase_SCN_UPDATEUI(slot, sigval1); + }); +} + +void QsciScintillaBase_SCN_USERLISTSELECTION(QsciScintillaBase* self, const char* selection, int id, int ch, int method, int position) { + self->SCN_USERLISTSELECTION(selection, static_cast(id), static_cast(ch), static_cast(method), static_cast(position)); +} + +void QsciScintillaBase_connect_SCN_USERLISTSELECTION(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_USERLISTSELECTION), self, [=](const char* selection, int id, int ch, int method, int position) { + const char* sigval1 = (const char*) selection; + int sigval2 = id; + int sigval3 = ch; + int sigval4 = method; + int sigval5 = position; + miqt_exec_callback_QsciScintillaBase_SCN_USERLISTSELECTION(slot, sigval1, sigval2, sigval3, sigval4, sigval5); + }); +} + +void QsciScintillaBase_SCN_USERLISTSELECTION2(QsciScintillaBase* self, const char* selection, int id, int ch, int method) { + self->SCN_USERLISTSELECTION(selection, static_cast(id), static_cast(ch), static_cast(method)); +} + +void QsciScintillaBase_connect_SCN_USERLISTSELECTION2(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_USERLISTSELECTION), self, [=](const char* selection, int id, int ch, int method) { + const char* sigval1 = (const char*) selection; + int sigval2 = id; + int sigval3 = ch; + int sigval4 = method; + miqt_exec_callback_QsciScintillaBase_SCN_USERLISTSELECTION2(slot, sigval1, sigval2, sigval3, sigval4); + }); +} + +void QsciScintillaBase_SCN_USERLISTSELECTION3(QsciScintillaBase* self, const char* selection, int id) { + self->SCN_USERLISTSELECTION(selection, static_cast(id)); +} + +void QsciScintillaBase_connect_SCN_USERLISTSELECTION3(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_USERLISTSELECTION), self, [=](const char* selection, int id) { + const char* sigval1 = (const char*) selection; + int sigval2 = id; + miqt_exec_callback_QsciScintillaBase_SCN_USERLISTSELECTION3(slot, sigval1, sigval2); + }); +} + +void QsciScintillaBase_SCN_ZOOM(QsciScintillaBase* self) { + self->SCN_ZOOM(); +} + +void QsciScintillaBase_connect_SCN_ZOOM(QsciScintillaBase* self, intptr_t slot) { + QsciScintillaBase::connect(self, static_cast(&QsciScintillaBase::SCN_ZOOM), self, [=]() { + miqt_exec_callback_QsciScintillaBase_SCN_ZOOM(slot); + }); +} + +struct miqt_string QsciScintillaBase_Tr2(const char* s, const char* c) { + QString _ret = QsciScintillaBase::tr(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciScintillaBase_Tr3(const char* s, const char* c, int n) { + QString _ret = QsciScintillaBase::tr(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciScintillaBase_TrUtf82(const char* s, const char* c) { + QString _ret = QsciScintillaBase::trUtf8(s, c); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +struct miqt_string QsciScintillaBase_TrUtf83(const char* s, const char* c, int n) { + QString _ret = QsciScintillaBase::trUtf8(s, c, static_cast(n)); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +long QsciScintillaBase_SendScintilla22(const QsciScintillaBase* self, unsigned int msg, unsigned long wParam) { + return self->SendScintilla(static_cast(msg), static_cast(wParam)); +} + +long QsciScintillaBase_SendScintilla32(const QsciScintillaBase* self, unsigned int msg, unsigned long wParam, long lParam) { + return self->SendScintilla(static_cast(msg), static_cast(wParam), static_cast(lParam)); +} + +void QsciScintillaBase_Delete(QsciScintillaBase* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintillabase.go b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.go new file mode 100644 index 00000000..34f97e80 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.go @@ -0,0 +1,2207 @@ +package qscintilla + +/* + +#include "gen_qsciscintillabase.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "runtime/cgo" + "unsafe" +) + +type QsciScintillaBase__ int + +const ( + QsciScintillaBase__SCI_START QsciScintillaBase__ = 2000 + QsciScintillaBase__SCI_OPTIONAL_START QsciScintillaBase__ = 3000 + QsciScintillaBase__SCI_LEXER_START QsciScintillaBase__ = 4000 + QsciScintillaBase__SCI_ADDTEXT QsciScintillaBase__ = 2001 + QsciScintillaBase__SCI_ADDSTYLEDTEXT QsciScintillaBase__ = 2002 + QsciScintillaBase__SCI_INSERTTEXT QsciScintillaBase__ = 2003 + QsciScintillaBase__SCI_CLEARALL QsciScintillaBase__ = 2004 + QsciScintillaBase__SCI_CLEARDOCUMENTSTYLE QsciScintillaBase__ = 2005 + QsciScintillaBase__SCI_GETLENGTH QsciScintillaBase__ = 2006 + QsciScintillaBase__SCI_GETCHARAT QsciScintillaBase__ = 2007 + QsciScintillaBase__SCI_GETCURRENTPOS QsciScintillaBase__ = 2008 + QsciScintillaBase__SCI_GETANCHOR QsciScintillaBase__ = 2009 + QsciScintillaBase__SCI_GETSTYLEAT QsciScintillaBase__ = 2010 + QsciScintillaBase__SCI_REDO QsciScintillaBase__ = 2011 + QsciScintillaBase__SCI_SETUNDOCOLLECTION QsciScintillaBase__ = 2012 + QsciScintillaBase__SCI_SELECTALL QsciScintillaBase__ = 2013 + QsciScintillaBase__SCI_SETSAVEPOINT QsciScintillaBase__ = 2014 + QsciScintillaBase__SCI_GETSTYLEDTEXT QsciScintillaBase__ = 2015 + QsciScintillaBase__SCI_CANREDO QsciScintillaBase__ = 2016 + QsciScintillaBase__SCI_MARKERLINEFROMHANDLE QsciScintillaBase__ = 2017 + QsciScintillaBase__SCI_MARKERDELETEHANDLE QsciScintillaBase__ = 2018 + QsciScintillaBase__SCI_GETUNDOCOLLECTION QsciScintillaBase__ = 2019 + QsciScintillaBase__SCI_GETVIEWWS QsciScintillaBase__ = 2020 + QsciScintillaBase__SCI_SETVIEWWS QsciScintillaBase__ = 2021 + QsciScintillaBase__SCI_POSITIONFROMPOINT QsciScintillaBase__ = 2022 + QsciScintillaBase__SCI_POSITIONFROMPOINTCLOSE QsciScintillaBase__ = 2023 + QsciScintillaBase__SCI_GOTOLINE QsciScintillaBase__ = 2024 + QsciScintillaBase__SCI_GOTOPOS QsciScintillaBase__ = 2025 + QsciScintillaBase__SCI_SETANCHOR QsciScintillaBase__ = 2026 + QsciScintillaBase__SCI_GETCURLINE QsciScintillaBase__ = 2027 + QsciScintillaBase__SCI_GETENDSTYLED QsciScintillaBase__ = 2028 + QsciScintillaBase__SCI_CONVERTEOLS QsciScintillaBase__ = 2029 + QsciScintillaBase__SCI_GETEOLMODE QsciScintillaBase__ = 2030 + QsciScintillaBase__SCI_SETEOLMODE QsciScintillaBase__ = 2031 + QsciScintillaBase__SCI_STARTSTYLING QsciScintillaBase__ = 2032 + QsciScintillaBase__SCI_SETSTYLING QsciScintillaBase__ = 2033 + QsciScintillaBase__SCI_GETBUFFEREDDRAW QsciScintillaBase__ = 2034 + QsciScintillaBase__SCI_SETBUFFEREDDRAW QsciScintillaBase__ = 2035 + QsciScintillaBase__SCI_SETTABWIDTH QsciScintillaBase__ = 2036 + QsciScintillaBase__SCI_GETTABWIDTH QsciScintillaBase__ = 2121 + QsciScintillaBase__SCI_SETCODEPAGE QsciScintillaBase__ = 2037 + QsciScintillaBase__SCI_MARKERDEFINE QsciScintillaBase__ = 2040 + QsciScintillaBase__SCI_MARKERSETFORE QsciScintillaBase__ = 2041 + QsciScintillaBase__SCI_MARKERSETBACK QsciScintillaBase__ = 2042 + QsciScintillaBase__SCI_MARKERADD QsciScintillaBase__ = 2043 + QsciScintillaBase__SCI_MARKERDELETE QsciScintillaBase__ = 2044 + QsciScintillaBase__SCI_MARKERDELETEALL QsciScintillaBase__ = 2045 + QsciScintillaBase__SCI_MARKERGET QsciScintillaBase__ = 2046 + QsciScintillaBase__SCI_MARKERNEXT QsciScintillaBase__ = 2047 + QsciScintillaBase__SCI_MARKERPREVIOUS QsciScintillaBase__ = 2048 + QsciScintillaBase__SCI_MARKERDEFINEPIXMAP QsciScintillaBase__ = 2049 + QsciScintillaBase__SCI_SETMARGINTYPEN QsciScintillaBase__ = 2240 + QsciScintillaBase__SCI_GETMARGINTYPEN QsciScintillaBase__ = 2241 + QsciScintillaBase__SCI_SETMARGINWIDTHN QsciScintillaBase__ = 2242 + QsciScintillaBase__SCI_GETMARGINWIDTHN QsciScintillaBase__ = 2243 + QsciScintillaBase__SCI_SETMARGINMASKN QsciScintillaBase__ = 2244 + QsciScintillaBase__SCI_GETMARGINMASKN QsciScintillaBase__ = 2245 + QsciScintillaBase__SCI_SETMARGINSENSITIVEN QsciScintillaBase__ = 2246 + QsciScintillaBase__SCI_GETMARGINSENSITIVEN QsciScintillaBase__ = 2247 + QsciScintillaBase__SCI_SETMARGINCURSORN QsciScintillaBase__ = 2248 + QsciScintillaBase__SCI_GETMARGINCURSORN QsciScintillaBase__ = 2249 + QsciScintillaBase__SCI_STYLECLEARALL QsciScintillaBase__ = 2050 + QsciScintillaBase__SCI_STYLESETFORE QsciScintillaBase__ = 2051 + QsciScintillaBase__SCI_STYLESETBACK QsciScintillaBase__ = 2052 + QsciScintillaBase__SCI_STYLESETBOLD QsciScintillaBase__ = 2053 + QsciScintillaBase__SCI_STYLESETITALIC QsciScintillaBase__ = 2054 + QsciScintillaBase__SCI_STYLESETSIZE QsciScintillaBase__ = 2055 + QsciScintillaBase__SCI_STYLESETFONT QsciScintillaBase__ = 2056 + QsciScintillaBase__SCI_STYLESETEOLFILLED QsciScintillaBase__ = 2057 + QsciScintillaBase__SCI_STYLERESETDEFAULT QsciScintillaBase__ = 2058 + QsciScintillaBase__SCI_STYLESETUNDERLINE QsciScintillaBase__ = 2059 + QsciScintillaBase__SCI_STYLESETCASE QsciScintillaBase__ = 2060 + QsciScintillaBase__SCI_STYLESETSIZEFRACTIONAL QsciScintillaBase__ = 2061 + QsciScintillaBase__SCI_STYLEGETSIZEFRACTIONAL QsciScintillaBase__ = 2062 + QsciScintillaBase__SCI_STYLESETWEIGHT QsciScintillaBase__ = 2063 + QsciScintillaBase__SCI_STYLEGETWEIGHT QsciScintillaBase__ = 2064 + QsciScintillaBase__SCI_STYLESETCHARACTERSET QsciScintillaBase__ = 2066 + QsciScintillaBase__SCI_SETSELFORE QsciScintillaBase__ = 2067 + QsciScintillaBase__SCI_SETSELBACK QsciScintillaBase__ = 2068 + QsciScintillaBase__SCI_SETCARETFORE QsciScintillaBase__ = 2069 + QsciScintillaBase__SCI_ASSIGNCMDKEY QsciScintillaBase__ = 2070 + QsciScintillaBase__SCI_CLEARCMDKEY QsciScintillaBase__ = 2071 + QsciScintillaBase__SCI_CLEARALLCMDKEYS QsciScintillaBase__ = 2072 + QsciScintillaBase__SCI_SETSTYLINGEX QsciScintillaBase__ = 2073 + QsciScintillaBase__SCI_STYLESETVISIBLE QsciScintillaBase__ = 2074 + QsciScintillaBase__SCI_GETCARETPERIOD QsciScintillaBase__ = 2075 + QsciScintillaBase__SCI_SETCARETPERIOD QsciScintillaBase__ = 2076 + QsciScintillaBase__SCI_SETWORDCHARS QsciScintillaBase__ = 2077 + QsciScintillaBase__SCI_BEGINUNDOACTION QsciScintillaBase__ = 2078 + QsciScintillaBase__SCI_ENDUNDOACTION QsciScintillaBase__ = 2079 + QsciScintillaBase__SCI_INDICSETSTYLE QsciScintillaBase__ = 2080 + QsciScintillaBase__SCI_INDICGETSTYLE QsciScintillaBase__ = 2081 + QsciScintillaBase__SCI_INDICSETFORE QsciScintillaBase__ = 2082 + QsciScintillaBase__SCI_INDICGETFORE QsciScintillaBase__ = 2083 + QsciScintillaBase__SCI_SETWHITESPACEFORE QsciScintillaBase__ = 2084 + QsciScintillaBase__SCI_SETWHITESPACEBACK QsciScintillaBase__ = 2085 + QsciScintillaBase__SCI_SETWHITESPACESIZE QsciScintillaBase__ = 2086 + QsciScintillaBase__SCI_GETWHITESPACESIZE QsciScintillaBase__ = 2087 + QsciScintillaBase__SCI_SETSTYLEBITS QsciScintillaBase__ = 2090 + QsciScintillaBase__SCI_GETSTYLEBITS QsciScintillaBase__ = 2091 + QsciScintillaBase__SCI_SETLINESTATE QsciScintillaBase__ = 2092 + QsciScintillaBase__SCI_GETLINESTATE QsciScintillaBase__ = 2093 + QsciScintillaBase__SCI_GETMAXLINESTATE QsciScintillaBase__ = 2094 + QsciScintillaBase__SCI_GETCARETLINEVISIBLE QsciScintillaBase__ = 2095 + QsciScintillaBase__SCI_SETCARETLINEVISIBLE QsciScintillaBase__ = 2096 + QsciScintillaBase__SCI_GETCARETLINEBACK QsciScintillaBase__ = 2097 + QsciScintillaBase__SCI_SETCARETLINEBACK QsciScintillaBase__ = 2098 + QsciScintillaBase__SCI_STYLESETCHANGEABLE QsciScintillaBase__ = 2099 + QsciScintillaBase__SCI_AUTOCSHOW QsciScintillaBase__ = 2100 + QsciScintillaBase__SCI_AUTOCCANCEL QsciScintillaBase__ = 2101 + QsciScintillaBase__SCI_AUTOCACTIVE QsciScintillaBase__ = 2102 + QsciScintillaBase__SCI_AUTOCPOSSTART QsciScintillaBase__ = 2103 + QsciScintillaBase__SCI_AUTOCCOMPLETE QsciScintillaBase__ = 2104 + QsciScintillaBase__SCI_AUTOCSTOPS QsciScintillaBase__ = 2105 + QsciScintillaBase__SCI_AUTOCSETSEPARATOR QsciScintillaBase__ = 2106 + QsciScintillaBase__SCI_AUTOCGETSEPARATOR QsciScintillaBase__ = 2107 + QsciScintillaBase__SCI_AUTOCSELECT QsciScintillaBase__ = 2108 + QsciScintillaBase__SCI_AUTOCSETCANCELATSTART QsciScintillaBase__ = 2110 + QsciScintillaBase__SCI_AUTOCGETCANCELATSTART QsciScintillaBase__ = 2111 + QsciScintillaBase__SCI_AUTOCSETFILLUPS QsciScintillaBase__ = 2112 + QsciScintillaBase__SCI_AUTOCSETCHOOSESINGLE QsciScintillaBase__ = 2113 + QsciScintillaBase__SCI_AUTOCGETCHOOSESINGLE QsciScintillaBase__ = 2114 + QsciScintillaBase__SCI_AUTOCSETIGNORECASE QsciScintillaBase__ = 2115 + QsciScintillaBase__SCI_AUTOCGETIGNORECASE QsciScintillaBase__ = 2116 + QsciScintillaBase__SCI_USERLISTSHOW QsciScintillaBase__ = 2117 + QsciScintillaBase__SCI_AUTOCSETAUTOHIDE QsciScintillaBase__ = 2118 + QsciScintillaBase__SCI_AUTOCGETAUTOHIDE QsciScintillaBase__ = 2119 + QsciScintillaBase__SCI_AUTOCSETDROPRESTOFWORD QsciScintillaBase__ = 2270 + QsciScintillaBase__SCI_AUTOCGETDROPRESTOFWORD QsciScintillaBase__ = 2271 + QsciScintillaBase__SCI_SETINDENT QsciScintillaBase__ = 2122 + QsciScintillaBase__SCI_GETINDENT QsciScintillaBase__ = 2123 + QsciScintillaBase__SCI_SETUSETABS QsciScintillaBase__ = 2124 + QsciScintillaBase__SCI_GETUSETABS QsciScintillaBase__ = 2125 + QsciScintillaBase__SCI_SETLINEINDENTATION QsciScintillaBase__ = 2126 + QsciScintillaBase__SCI_GETLINEINDENTATION QsciScintillaBase__ = 2127 + QsciScintillaBase__SCI_GETLINEINDENTPOSITION QsciScintillaBase__ = 2128 + QsciScintillaBase__SCI_GETCOLUMN QsciScintillaBase__ = 2129 + QsciScintillaBase__SCI_SETHSCROLLBAR QsciScintillaBase__ = 2130 + QsciScintillaBase__SCI_GETHSCROLLBAR QsciScintillaBase__ = 2131 + QsciScintillaBase__SCI_SETINDENTATIONGUIDES QsciScintillaBase__ = 2132 + QsciScintillaBase__SCI_GETINDENTATIONGUIDES QsciScintillaBase__ = 2133 + QsciScintillaBase__SCI_SETHIGHLIGHTGUIDE QsciScintillaBase__ = 2134 + QsciScintillaBase__SCI_GETHIGHLIGHTGUIDE QsciScintillaBase__ = 2135 + QsciScintillaBase__SCI_GETLINEENDPOSITION QsciScintillaBase__ = 2136 + QsciScintillaBase__SCI_GETCODEPAGE QsciScintillaBase__ = 2137 + QsciScintillaBase__SCI_GETCARETFORE QsciScintillaBase__ = 2138 + QsciScintillaBase__SCI_GETREADONLY QsciScintillaBase__ = 2140 + QsciScintillaBase__SCI_SETCURRENTPOS QsciScintillaBase__ = 2141 + QsciScintillaBase__SCI_SETSELECTIONSTART QsciScintillaBase__ = 2142 + QsciScintillaBase__SCI_GETSELECTIONSTART QsciScintillaBase__ = 2143 + QsciScintillaBase__SCI_SETSELECTIONEND QsciScintillaBase__ = 2144 + QsciScintillaBase__SCI_GETSELECTIONEND QsciScintillaBase__ = 2145 + QsciScintillaBase__SCI_SETPRINTMAGNIFICATION QsciScintillaBase__ = 2146 + QsciScintillaBase__SCI_GETPRINTMAGNIFICATION QsciScintillaBase__ = 2147 + QsciScintillaBase__SCI_SETPRINTCOLOURMODE QsciScintillaBase__ = 2148 + QsciScintillaBase__SCI_GETPRINTCOLOURMODE QsciScintillaBase__ = 2149 + QsciScintillaBase__SCI_FINDTEXT QsciScintillaBase__ = 2150 + QsciScintillaBase__SCI_FORMATRANGE QsciScintillaBase__ = 2151 + QsciScintillaBase__SCI_GETFIRSTVISIBLELINE QsciScintillaBase__ = 2152 + QsciScintillaBase__SCI_GETLINE QsciScintillaBase__ = 2153 + QsciScintillaBase__SCI_GETLINECOUNT QsciScintillaBase__ = 2154 + QsciScintillaBase__SCI_SETMARGINLEFT QsciScintillaBase__ = 2155 + QsciScintillaBase__SCI_GETMARGINLEFT QsciScintillaBase__ = 2156 + QsciScintillaBase__SCI_SETMARGINRIGHT QsciScintillaBase__ = 2157 + QsciScintillaBase__SCI_GETMARGINRIGHT QsciScintillaBase__ = 2158 + QsciScintillaBase__SCI_GETMODIFY QsciScintillaBase__ = 2159 + QsciScintillaBase__SCI_SETSEL QsciScintillaBase__ = 2160 + QsciScintillaBase__SCI_GETSELTEXT QsciScintillaBase__ = 2161 + QsciScintillaBase__SCI_GETTEXTRANGE QsciScintillaBase__ = 2162 + QsciScintillaBase__SCI_HIDESELECTION QsciScintillaBase__ = 2163 + QsciScintillaBase__SCI_POINTXFROMPOSITION QsciScintillaBase__ = 2164 + QsciScintillaBase__SCI_POINTYFROMPOSITION QsciScintillaBase__ = 2165 + QsciScintillaBase__SCI_LINEFROMPOSITION QsciScintillaBase__ = 2166 + QsciScintillaBase__SCI_POSITIONFROMLINE QsciScintillaBase__ = 2167 + QsciScintillaBase__SCI_LINESCROLL QsciScintillaBase__ = 2168 + QsciScintillaBase__SCI_SCROLLCARET QsciScintillaBase__ = 2169 + QsciScintillaBase__SCI_REPLACESEL QsciScintillaBase__ = 2170 + QsciScintillaBase__SCI_SETREADONLY QsciScintillaBase__ = 2171 + QsciScintillaBase__SCI_NULL QsciScintillaBase__ = 2172 + QsciScintillaBase__SCI_CANPASTE QsciScintillaBase__ = 2173 + QsciScintillaBase__SCI_CANUNDO QsciScintillaBase__ = 2174 + QsciScintillaBase__SCI_EMPTYUNDOBUFFER QsciScintillaBase__ = 2175 + QsciScintillaBase__SCI_UNDO QsciScintillaBase__ = 2176 + QsciScintillaBase__SCI_CUT QsciScintillaBase__ = 2177 + QsciScintillaBase__SCI_COPY QsciScintillaBase__ = 2178 + QsciScintillaBase__SCI_PASTE QsciScintillaBase__ = 2179 + QsciScintillaBase__SCI_CLEAR QsciScintillaBase__ = 2180 + QsciScintillaBase__SCI_SETTEXT QsciScintillaBase__ = 2181 + QsciScintillaBase__SCI_GETTEXT QsciScintillaBase__ = 2182 + QsciScintillaBase__SCI_GETTEXTLENGTH QsciScintillaBase__ = 2183 + QsciScintillaBase__SCI_GETDIRECTFUNCTION QsciScintillaBase__ = 2184 + QsciScintillaBase__SCI_GETDIRECTPOINTER QsciScintillaBase__ = 2185 + QsciScintillaBase__SCI_SETOVERTYPE QsciScintillaBase__ = 2186 + QsciScintillaBase__SCI_GETOVERTYPE QsciScintillaBase__ = 2187 + QsciScintillaBase__SCI_SETCARETWIDTH QsciScintillaBase__ = 2188 + QsciScintillaBase__SCI_GETCARETWIDTH QsciScintillaBase__ = 2189 + QsciScintillaBase__SCI_SETTARGETSTART QsciScintillaBase__ = 2190 + QsciScintillaBase__SCI_GETTARGETSTART QsciScintillaBase__ = 2191 + QsciScintillaBase__SCI_SETTARGETEND QsciScintillaBase__ = 2192 + QsciScintillaBase__SCI_GETTARGETEND QsciScintillaBase__ = 2193 + QsciScintillaBase__SCI_REPLACETARGET QsciScintillaBase__ = 2194 + QsciScintillaBase__SCI_REPLACETARGETRE QsciScintillaBase__ = 2195 + QsciScintillaBase__SCI_SEARCHINTARGET QsciScintillaBase__ = 2197 + QsciScintillaBase__SCI_SETSEARCHFLAGS QsciScintillaBase__ = 2198 + QsciScintillaBase__SCI_GETSEARCHFLAGS QsciScintillaBase__ = 2199 + QsciScintillaBase__SCI_CALLTIPSHOW QsciScintillaBase__ = 2200 + QsciScintillaBase__SCI_CALLTIPCANCEL QsciScintillaBase__ = 2201 + QsciScintillaBase__SCI_CALLTIPACTIVE QsciScintillaBase__ = 2202 + QsciScintillaBase__SCI_CALLTIPPOSSTART QsciScintillaBase__ = 2203 + QsciScintillaBase__SCI_CALLTIPSETHLT QsciScintillaBase__ = 2204 + QsciScintillaBase__SCI_CALLTIPSETBACK QsciScintillaBase__ = 2205 + QsciScintillaBase__SCI_CALLTIPSETFORE QsciScintillaBase__ = 2206 + QsciScintillaBase__SCI_CALLTIPSETFOREHLT QsciScintillaBase__ = 2207 + QsciScintillaBase__SCI_AUTOCSETMAXWIDTH QsciScintillaBase__ = 2208 + QsciScintillaBase__SCI_AUTOCGETMAXWIDTH QsciScintillaBase__ = 2209 + QsciScintillaBase__SCI_AUTOCSETMAXHEIGHT QsciScintillaBase__ = 2210 + QsciScintillaBase__SCI_AUTOCGETMAXHEIGHT QsciScintillaBase__ = 2211 + QsciScintillaBase__SCI_CALLTIPUSESTYLE QsciScintillaBase__ = 2212 + QsciScintillaBase__SCI_CALLTIPSETPOSITION QsciScintillaBase__ = 2213 + QsciScintillaBase__SCI_CALLTIPSETPOSSTART QsciScintillaBase__ = 2214 + QsciScintillaBase__SCI_VISIBLEFROMDOCLINE QsciScintillaBase__ = 2220 + QsciScintillaBase__SCI_DOCLINEFROMVISIBLE QsciScintillaBase__ = 2221 + QsciScintillaBase__SCI_SETFOLDLEVEL QsciScintillaBase__ = 2222 + QsciScintillaBase__SCI_GETFOLDLEVEL QsciScintillaBase__ = 2223 + QsciScintillaBase__SCI_GETLASTCHILD QsciScintillaBase__ = 2224 + QsciScintillaBase__SCI_GETFOLDPARENT QsciScintillaBase__ = 2225 + QsciScintillaBase__SCI_SHOWLINES QsciScintillaBase__ = 2226 + QsciScintillaBase__SCI_HIDELINES QsciScintillaBase__ = 2227 + QsciScintillaBase__SCI_GETLINEVISIBLE QsciScintillaBase__ = 2228 + QsciScintillaBase__SCI_SETFOLDEXPANDED QsciScintillaBase__ = 2229 + QsciScintillaBase__SCI_GETFOLDEXPANDED QsciScintillaBase__ = 2230 + QsciScintillaBase__SCI_TOGGLEFOLD QsciScintillaBase__ = 2231 + QsciScintillaBase__SCI_ENSUREVISIBLE QsciScintillaBase__ = 2232 + QsciScintillaBase__SCI_SETFOLDFLAGS QsciScintillaBase__ = 2233 + QsciScintillaBase__SCI_ENSUREVISIBLEENFORCEPOLICY QsciScintillaBase__ = 2234 + QsciScintillaBase__SCI_WRAPCOUNT QsciScintillaBase__ = 2235 + QsciScintillaBase__SCI_GETALLLINESVISIBLE QsciScintillaBase__ = 2236 + QsciScintillaBase__SCI_FOLDLINE QsciScintillaBase__ = 2237 + QsciScintillaBase__SCI_FOLDCHILDREN QsciScintillaBase__ = 2238 + QsciScintillaBase__SCI_EXPANDCHILDREN QsciScintillaBase__ = 2239 + QsciScintillaBase__SCI_SETMARGINBACKN QsciScintillaBase__ = 2250 + QsciScintillaBase__SCI_GETMARGINBACKN QsciScintillaBase__ = 2251 + QsciScintillaBase__SCI_SETMARGINS QsciScintillaBase__ = 2252 + QsciScintillaBase__SCI_GETMARGINS QsciScintillaBase__ = 2253 + QsciScintillaBase__SCI_SETTABINDENTS QsciScintillaBase__ = 2260 + QsciScintillaBase__SCI_GETTABINDENTS QsciScintillaBase__ = 2261 + QsciScintillaBase__SCI_SETBACKSPACEUNINDENTS QsciScintillaBase__ = 2262 + QsciScintillaBase__SCI_GETBACKSPACEUNINDENTS QsciScintillaBase__ = 2263 + QsciScintillaBase__SCI_SETMOUSEDWELLTIME QsciScintillaBase__ = 2264 + QsciScintillaBase__SCI_GETMOUSEDWELLTIME QsciScintillaBase__ = 2265 + QsciScintillaBase__SCI_WORDSTARTPOSITION QsciScintillaBase__ = 2266 + QsciScintillaBase__SCI_WORDENDPOSITION QsciScintillaBase__ = 2267 + QsciScintillaBase__SCI_SETWRAPMODE QsciScintillaBase__ = 2268 + QsciScintillaBase__SCI_GETWRAPMODE QsciScintillaBase__ = 2269 + QsciScintillaBase__SCI_SETLAYOUTCACHE QsciScintillaBase__ = 2272 + QsciScintillaBase__SCI_GETLAYOUTCACHE QsciScintillaBase__ = 2273 + QsciScintillaBase__SCI_SETSCROLLWIDTH QsciScintillaBase__ = 2274 + QsciScintillaBase__SCI_GETSCROLLWIDTH QsciScintillaBase__ = 2275 + QsciScintillaBase__SCI_TEXTWIDTH QsciScintillaBase__ = 2276 + QsciScintillaBase__SCI_SETENDATLASTLINE QsciScintillaBase__ = 2277 + QsciScintillaBase__SCI_GETENDATLASTLINE QsciScintillaBase__ = 2278 + QsciScintillaBase__SCI_TEXTHEIGHT QsciScintillaBase__ = 2279 + QsciScintillaBase__SCI_SETVSCROLLBAR QsciScintillaBase__ = 2280 + QsciScintillaBase__SCI_GETVSCROLLBAR QsciScintillaBase__ = 2281 + QsciScintillaBase__SCI_APPENDTEXT QsciScintillaBase__ = 2282 + QsciScintillaBase__SCI_GETTWOPHASEDRAW QsciScintillaBase__ = 2283 + QsciScintillaBase__SCI_SETTWOPHASEDRAW QsciScintillaBase__ = 2284 + QsciScintillaBase__SCI_AUTOCGETTYPESEPARATOR QsciScintillaBase__ = 2285 + QsciScintillaBase__SCI_AUTOCSETTYPESEPARATOR QsciScintillaBase__ = 2286 + QsciScintillaBase__SCI_TARGETFROMSELECTION QsciScintillaBase__ = 2287 + QsciScintillaBase__SCI_LINESJOIN QsciScintillaBase__ = 2288 + QsciScintillaBase__SCI_LINESSPLIT QsciScintillaBase__ = 2289 + QsciScintillaBase__SCI_SETFOLDMARGINCOLOUR QsciScintillaBase__ = 2290 + QsciScintillaBase__SCI_SETFOLDMARGINHICOLOUR QsciScintillaBase__ = 2291 + QsciScintillaBase__SCI_MARKERSETBACKSELECTED QsciScintillaBase__ = 2292 + QsciScintillaBase__SCI_MARKERENABLEHIGHLIGHT QsciScintillaBase__ = 2293 + QsciScintillaBase__SCI_LINEDOWN QsciScintillaBase__ = 2300 + QsciScintillaBase__SCI_LINEDOWNEXTEND QsciScintillaBase__ = 2301 + QsciScintillaBase__SCI_LINEUP QsciScintillaBase__ = 2302 + QsciScintillaBase__SCI_LINEUPEXTEND QsciScintillaBase__ = 2303 + QsciScintillaBase__SCI_CHARLEFT QsciScintillaBase__ = 2304 + QsciScintillaBase__SCI_CHARLEFTEXTEND QsciScintillaBase__ = 2305 + QsciScintillaBase__SCI_CHARRIGHT QsciScintillaBase__ = 2306 + QsciScintillaBase__SCI_CHARRIGHTEXTEND QsciScintillaBase__ = 2307 + QsciScintillaBase__SCI_WORDLEFT QsciScintillaBase__ = 2308 + QsciScintillaBase__SCI_WORDLEFTEXTEND QsciScintillaBase__ = 2309 + QsciScintillaBase__SCI_WORDRIGHT QsciScintillaBase__ = 2310 + QsciScintillaBase__SCI_WORDRIGHTEXTEND QsciScintillaBase__ = 2311 + QsciScintillaBase__SCI_HOME QsciScintillaBase__ = 2312 + QsciScintillaBase__SCI_HOMEEXTEND QsciScintillaBase__ = 2313 + QsciScintillaBase__SCI_LINEEND QsciScintillaBase__ = 2314 + QsciScintillaBase__SCI_LINEENDEXTEND QsciScintillaBase__ = 2315 + QsciScintillaBase__SCI_DOCUMENTSTART QsciScintillaBase__ = 2316 + QsciScintillaBase__SCI_DOCUMENTSTARTEXTEND QsciScintillaBase__ = 2317 + QsciScintillaBase__SCI_DOCUMENTEND QsciScintillaBase__ = 2318 + QsciScintillaBase__SCI_DOCUMENTENDEXTEND QsciScintillaBase__ = 2319 + QsciScintillaBase__SCI_PAGEUP QsciScintillaBase__ = 2320 + QsciScintillaBase__SCI_PAGEUPEXTEND QsciScintillaBase__ = 2321 + QsciScintillaBase__SCI_PAGEDOWN QsciScintillaBase__ = 2322 + QsciScintillaBase__SCI_PAGEDOWNEXTEND QsciScintillaBase__ = 2323 + QsciScintillaBase__SCI_EDITTOGGLEOVERTYPE QsciScintillaBase__ = 2324 + QsciScintillaBase__SCI_CANCEL QsciScintillaBase__ = 2325 + QsciScintillaBase__SCI_DELETEBACK QsciScintillaBase__ = 2326 + QsciScintillaBase__SCI_TAB QsciScintillaBase__ = 2327 + QsciScintillaBase__SCI_BACKTAB QsciScintillaBase__ = 2328 + QsciScintillaBase__SCI_NEWLINE QsciScintillaBase__ = 2329 + QsciScintillaBase__SCI_FORMFEED QsciScintillaBase__ = 2330 + QsciScintillaBase__SCI_VCHOME QsciScintillaBase__ = 2331 + QsciScintillaBase__SCI_VCHOMEEXTEND QsciScintillaBase__ = 2332 + QsciScintillaBase__SCI_ZOOMIN QsciScintillaBase__ = 2333 + QsciScintillaBase__SCI_ZOOMOUT QsciScintillaBase__ = 2334 + QsciScintillaBase__SCI_DELWORDLEFT QsciScintillaBase__ = 2335 + QsciScintillaBase__SCI_DELWORDRIGHT QsciScintillaBase__ = 2336 + QsciScintillaBase__SCI_LINECUT QsciScintillaBase__ = 2337 + QsciScintillaBase__SCI_LINEDELETE QsciScintillaBase__ = 2338 + QsciScintillaBase__SCI_LINETRANSPOSE QsciScintillaBase__ = 2339 + QsciScintillaBase__SCI_LOWERCASE QsciScintillaBase__ = 2340 + QsciScintillaBase__SCI_UPPERCASE QsciScintillaBase__ = 2341 + QsciScintillaBase__SCI_LINESCROLLDOWN QsciScintillaBase__ = 2342 + QsciScintillaBase__SCI_LINESCROLLUP QsciScintillaBase__ = 2343 + QsciScintillaBase__SCI_DELETEBACKNOTLINE QsciScintillaBase__ = 2344 + QsciScintillaBase__SCI_HOMEDISPLAY QsciScintillaBase__ = 2345 + QsciScintillaBase__SCI_HOMEDISPLAYEXTEND QsciScintillaBase__ = 2346 + QsciScintillaBase__SCI_LINEENDDISPLAY QsciScintillaBase__ = 2347 + QsciScintillaBase__SCI_LINEENDDISPLAYEXTEND QsciScintillaBase__ = 2348 + QsciScintillaBase__SCI_MOVECARETINSIDEVIEW QsciScintillaBase__ = 2401 + QsciScintillaBase__SCI_LINELENGTH QsciScintillaBase__ = 2350 + QsciScintillaBase__SCI_BRACEHIGHLIGHT QsciScintillaBase__ = 2351 + QsciScintillaBase__SCI_BRACEBADLIGHT QsciScintillaBase__ = 2352 + QsciScintillaBase__SCI_BRACEMATCH QsciScintillaBase__ = 2353 + QsciScintillaBase__SCI_LINEREVERSE QsciScintillaBase__ = 2354 + QsciScintillaBase__SCI_GETVIEWEOL QsciScintillaBase__ = 2355 + QsciScintillaBase__SCI_SETVIEWEOL QsciScintillaBase__ = 2356 + QsciScintillaBase__SCI_GETDOCPOINTER QsciScintillaBase__ = 2357 + QsciScintillaBase__SCI_SETDOCPOINTER QsciScintillaBase__ = 2358 + QsciScintillaBase__SCI_SETMODEVENTMASK QsciScintillaBase__ = 2359 + QsciScintillaBase__SCI_GETEDGECOLUMN QsciScintillaBase__ = 2360 + QsciScintillaBase__SCI_SETEDGECOLUMN QsciScintillaBase__ = 2361 + QsciScintillaBase__SCI_GETEDGEMODE QsciScintillaBase__ = 2362 + QsciScintillaBase__SCI_SETEDGEMODE QsciScintillaBase__ = 2363 + QsciScintillaBase__SCI_GETEDGECOLOUR QsciScintillaBase__ = 2364 + QsciScintillaBase__SCI_SETEDGECOLOUR QsciScintillaBase__ = 2365 + QsciScintillaBase__SCI_SEARCHANCHOR QsciScintillaBase__ = 2366 + QsciScintillaBase__SCI_SEARCHNEXT QsciScintillaBase__ = 2367 + QsciScintillaBase__SCI_SEARCHPREV QsciScintillaBase__ = 2368 + QsciScintillaBase__SCI_LINESONSCREEN QsciScintillaBase__ = 2370 + QsciScintillaBase__SCI_USEPOPUP QsciScintillaBase__ = 2371 + QsciScintillaBase__SCI_SELECTIONISRECTANGLE QsciScintillaBase__ = 2372 + QsciScintillaBase__SCI_SETZOOM QsciScintillaBase__ = 2373 + QsciScintillaBase__SCI_GETZOOM QsciScintillaBase__ = 2374 + QsciScintillaBase__SCI_CREATEDOCUMENT QsciScintillaBase__ = 2375 + QsciScintillaBase__SCI_ADDREFDOCUMENT QsciScintillaBase__ = 2376 + QsciScintillaBase__SCI_RELEASEDOCUMENT QsciScintillaBase__ = 2377 + QsciScintillaBase__SCI_GETMODEVENTMASK QsciScintillaBase__ = 2378 + QsciScintillaBase__SCI_SETFOCUS QsciScintillaBase__ = 2380 + QsciScintillaBase__SCI_GETFOCUS QsciScintillaBase__ = 2381 + QsciScintillaBase__SCI_SETSTATUS QsciScintillaBase__ = 2382 + QsciScintillaBase__SCI_GETSTATUS QsciScintillaBase__ = 2383 + QsciScintillaBase__SCI_SETMOUSEDOWNCAPTURES QsciScintillaBase__ = 2384 + QsciScintillaBase__SCI_GETMOUSEDOWNCAPTURES QsciScintillaBase__ = 2385 + QsciScintillaBase__SCI_SETCURSOR QsciScintillaBase__ = 2386 + QsciScintillaBase__SCI_GETCURSOR QsciScintillaBase__ = 2387 + QsciScintillaBase__SCI_SETCONTROLCHARSYMBOL QsciScintillaBase__ = 2388 + QsciScintillaBase__SCI_GETCONTROLCHARSYMBOL QsciScintillaBase__ = 2389 + QsciScintillaBase__SCI_WORDPARTLEFT QsciScintillaBase__ = 2390 + QsciScintillaBase__SCI_WORDPARTLEFTEXTEND QsciScintillaBase__ = 2391 + QsciScintillaBase__SCI_WORDPARTRIGHT QsciScintillaBase__ = 2392 + QsciScintillaBase__SCI_WORDPARTRIGHTEXTEND QsciScintillaBase__ = 2393 + QsciScintillaBase__SCI_SETVISIBLEPOLICY QsciScintillaBase__ = 2394 + QsciScintillaBase__SCI_DELLINELEFT QsciScintillaBase__ = 2395 + QsciScintillaBase__SCI_DELLINERIGHT QsciScintillaBase__ = 2396 + QsciScintillaBase__SCI_SETXOFFSET QsciScintillaBase__ = 2397 + QsciScintillaBase__SCI_GETXOFFSET QsciScintillaBase__ = 2398 + QsciScintillaBase__SCI_CHOOSECARETX QsciScintillaBase__ = 2399 + QsciScintillaBase__SCI_GRABFOCUS QsciScintillaBase__ = 2400 + QsciScintillaBase__SCI_SETXCARETPOLICY QsciScintillaBase__ = 2402 + QsciScintillaBase__SCI_SETYCARETPOLICY QsciScintillaBase__ = 2403 + QsciScintillaBase__SCI_LINEDUPLICATE QsciScintillaBase__ = 2404 + QsciScintillaBase__SCI_REGISTERIMAGE QsciScintillaBase__ = 2405 + QsciScintillaBase__SCI_SETPRINTWRAPMODE QsciScintillaBase__ = 2406 + QsciScintillaBase__SCI_GETPRINTWRAPMODE QsciScintillaBase__ = 2407 + QsciScintillaBase__SCI_CLEARREGISTEREDIMAGES QsciScintillaBase__ = 2408 + QsciScintillaBase__SCI_STYLESETHOTSPOT QsciScintillaBase__ = 2409 + QsciScintillaBase__SCI_SETHOTSPOTACTIVEFORE QsciScintillaBase__ = 2410 + QsciScintillaBase__SCI_SETHOTSPOTACTIVEBACK QsciScintillaBase__ = 2411 + QsciScintillaBase__SCI_SETHOTSPOTACTIVEUNDERLINE QsciScintillaBase__ = 2412 + QsciScintillaBase__SCI_PARADOWN QsciScintillaBase__ = 2413 + QsciScintillaBase__SCI_PARADOWNEXTEND QsciScintillaBase__ = 2414 + QsciScintillaBase__SCI_PARAUP QsciScintillaBase__ = 2415 + QsciScintillaBase__SCI_PARAUPEXTEND QsciScintillaBase__ = 2416 + QsciScintillaBase__SCI_POSITIONBEFORE QsciScintillaBase__ = 2417 + QsciScintillaBase__SCI_POSITIONAFTER QsciScintillaBase__ = 2418 + QsciScintillaBase__SCI_COPYRANGE QsciScintillaBase__ = 2419 + QsciScintillaBase__SCI_COPYTEXT QsciScintillaBase__ = 2420 + QsciScintillaBase__SCI_SETHOTSPOTSINGLELINE QsciScintillaBase__ = 2421 + QsciScintillaBase__SCI_SETSELECTIONMODE QsciScintillaBase__ = 2422 + QsciScintillaBase__SCI_GETSELECTIONMODE QsciScintillaBase__ = 2423 + QsciScintillaBase__SCI_GETLINESELSTARTPOSITION QsciScintillaBase__ = 2424 + QsciScintillaBase__SCI_GETLINESELENDPOSITION QsciScintillaBase__ = 2425 + QsciScintillaBase__SCI_LINEDOWNRECTEXTEND QsciScintillaBase__ = 2426 + QsciScintillaBase__SCI_LINEUPRECTEXTEND QsciScintillaBase__ = 2427 + QsciScintillaBase__SCI_CHARLEFTRECTEXTEND QsciScintillaBase__ = 2428 + QsciScintillaBase__SCI_CHARRIGHTRECTEXTEND QsciScintillaBase__ = 2429 + QsciScintillaBase__SCI_HOMERECTEXTEND QsciScintillaBase__ = 2430 + QsciScintillaBase__SCI_VCHOMERECTEXTEND QsciScintillaBase__ = 2431 + QsciScintillaBase__SCI_LINEENDRECTEXTEND QsciScintillaBase__ = 2432 + QsciScintillaBase__SCI_PAGEUPRECTEXTEND QsciScintillaBase__ = 2433 + QsciScintillaBase__SCI_PAGEDOWNRECTEXTEND QsciScintillaBase__ = 2434 + QsciScintillaBase__SCI_STUTTEREDPAGEUP QsciScintillaBase__ = 2435 + QsciScintillaBase__SCI_STUTTEREDPAGEUPEXTEND QsciScintillaBase__ = 2436 + QsciScintillaBase__SCI_STUTTEREDPAGEDOWN QsciScintillaBase__ = 2437 + QsciScintillaBase__SCI_STUTTEREDPAGEDOWNEXTEND QsciScintillaBase__ = 2438 + QsciScintillaBase__SCI_WORDLEFTEND QsciScintillaBase__ = 2439 + QsciScintillaBase__SCI_WORDLEFTENDEXTEND QsciScintillaBase__ = 2440 + QsciScintillaBase__SCI_WORDRIGHTEND QsciScintillaBase__ = 2441 + QsciScintillaBase__SCI_WORDRIGHTENDEXTEND QsciScintillaBase__ = 2442 + QsciScintillaBase__SCI_SETWHITESPACECHARS QsciScintillaBase__ = 2443 + QsciScintillaBase__SCI_SETCHARSDEFAULT QsciScintillaBase__ = 2444 + QsciScintillaBase__SCI_AUTOCGETCURRENT QsciScintillaBase__ = 2445 + QsciScintillaBase__SCI_ALLOCATE QsciScintillaBase__ = 2446 + QsciScintillaBase__SCI_HOMEWRAP QsciScintillaBase__ = 2349 + QsciScintillaBase__SCI_HOMEWRAPEXTEND QsciScintillaBase__ = 2450 + QsciScintillaBase__SCI_LINEENDWRAP QsciScintillaBase__ = 2451 + QsciScintillaBase__SCI_LINEENDWRAPEXTEND QsciScintillaBase__ = 2452 + QsciScintillaBase__SCI_VCHOMEWRAP QsciScintillaBase__ = 2453 + QsciScintillaBase__SCI_VCHOMEWRAPEXTEND QsciScintillaBase__ = 2454 + QsciScintillaBase__SCI_LINECOPY QsciScintillaBase__ = 2455 + QsciScintillaBase__SCI_FINDCOLUMN QsciScintillaBase__ = 2456 + QsciScintillaBase__SCI_GETCARETSTICKY QsciScintillaBase__ = 2457 + QsciScintillaBase__SCI_SETCARETSTICKY QsciScintillaBase__ = 2458 + QsciScintillaBase__SCI_TOGGLECARETSTICKY QsciScintillaBase__ = 2459 + QsciScintillaBase__SCI_SETWRAPVISUALFLAGS QsciScintillaBase__ = 2460 + QsciScintillaBase__SCI_GETWRAPVISUALFLAGS QsciScintillaBase__ = 2461 + QsciScintillaBase__SCI_SETWRAPVISUALFLAGSLOCATION QsciScintillaBase__ = 2462 + QsciScintillaBase__SCI_GETWRAPVISUALFLAGSLOCATION QsciScintillaBase__ = 2463 + QsciScintillaBase__SCI_SETWRAPSTARTINDENT QsciScintillaBase__ = 2464 + QsciScintillaBase__SCI_GETWRAPSTARTINDENT QsciScintillaBase__ = 2465 + QsciScintillaBase__SCI_MARKERADDSET QsciScintillaBase__ = 2466 + QsciScintillaBase__SCI_SETPASTECONVERTENDINGS QsciScintillaBase__ = 2467 + QsciScintillaBase__SCI_GETPASTECONVERTENDINGS QsciScintillaBase__ = 2468 + QsciScintillaBase__SCI_SELECTIONDUPLICATE QsciScintillaBase__ = 2469 + QsciScintillaBase__SCI_SETCARETLINEBACKALPHA QsciScintillaBase__ = 2470 + QsciScintillaBase__SCI_GETCARETLINEBACKALPHA QsciScintillaBase__ = 2471 + QsciScintillaBase__SCI_SETWRAPINDENTMODE QsciScintillaBase__ = 2472 + QsciScintillaBase__SCI_GETWRAPINDENTMODE QsciScintillaBase__ = 2473 + QsciScintillaBase__SCI_MARKERSETALPHA QsciScintillaBase__ = 2476 + QsciScintillaBase__SCI_GETSELALPHA QsciScintillaBase__ = 2477 + QsciScintillaBase__SCI_SETSELALPHA QsciScintillaBase__ = 2478 + QsciScintillaBase__SCI_GETSELEOLFILLED QsciScintillaBase__ = 2479 + QsciScintillaBase__SCI_SETSELEOLFILLED QsciScintillaBase__ = 2480 + QsciScintillaBase__SCI_STYLEGETFORE QsciScintillaBase__ = 2481 + QsciScintillaBase__SCI_STYLEGETBACK QsciScintillaBase__ = 2482 + QsciScintillaBase__SCI_STYLEGETBOLD QsciScintillaBase__ = 2483 + QsciScintillaBase__SCI_STYLEGETITALIC QsciScintillaBase__ = 2484 + QsciScintillaBase__SCI_STYLEGETSIZE QsciScintillaBase__ = 2485 + QsciScintillaBase__SCI_STYLEGETFONT QsciScintillaBase__ = 2486 + QsciScintillaBase__SCI_STYLEGETEOLFILLED QsciScintillaBase__ = 2487 + QsciScintillaBase__SCI_STYLEGETUNDERLINE QsciScintillaBase__ = 2488 + QsciScintillaBase__SCI_STYLEGETCASE QsciScintillaBase__ = 2489 + QsciScintillaBase__SCI_STYLEGETCHARACTERSET QsciScintillaBase__ = 2490 + QsciScintillaBase__SCI_STYLEGETVISIBLE QsciScintillaBase__ = 2491 + QsciScintillaBase__SCI_STYLEGETCHANGEABLE QsciScintillaBase__ = 2492 + QsciScintillaBase__SCI_STYLEGETHOTSPOT QsciScintillaBase__ = 2493 + QsciScintillaBase__SCI_GETHOTSPOTACTIVEFORE QsciScintillaBase__ = 2494 + QsciScintillaBase__SCI_GETHOTSPOTACTIVEBACK QsciScintillaBase__ = 2495 + QsciScintillaBase__SCI_GETHOTSPOTACTIVEUNDERLINE QsciScintillaBase__ = 2496 + QsciScintillaBase__SCI_GETHOTSPOTSINGLELINE QsciScintillaBase__ = 2497 + QsciScintillaBase__SCI_BRACEHIGHLIGHTINDICATOR QsciScintillaBase__ = 2498 + QsciScintillaBase__SCI_BRACEBADLIGHTINDICATOR QsciScintillaBase__ = 2499 + QsciScintillaBase__SCI_SETINDICATORCURRENT QsciScintillaBase__ = 2500 + QsciScintillaBase__SCI_GETINDICATORCURRENT QsciScintillaBase__ = 2501 + QsciScintillaBase__SCI_SETINDICATORVALUE QsciScintillaBase__ = 2502 + QsciScintillaBase__SCI_GETINDICATORVALUE QsciScintillaBase__ = 2503 + QsciScintillaBase__SCI_INDICATORFILLRANGE QsciScintillaBase__ = 2504 + QsciScintillaBase__SCI_INDICATORCLEARRANGE QsciScintillaBase__ = 2505 + QsciScintillaBase__SCI_INDICATORALLONFOR QsciScintillaBase__ = 2506 + QsciScintillaBase__SCI_INDICATORVALUEAT QsciScintillaBase__ = 2507 + QsciScintillaBase__SCI_INDICATORSTART QsciScintillaBase__ = 2508 + QsciScintillaBase__SCI_INDICATOREND QsciScintillaBase__ = 2509 + QsciScintillaBase__SCI_INDICSETUNDER QsciScintillaBase__ = 2510 + QsciScintillaBase__SCI_INDICGETUNDER QsciScintillaBase__ = 2511 + QsciScintillaBase__SCI_SETCARETSTYLE QsciScintillaBase__ = 2512 + QsciScintillaBase__SCI_GETCARETSTYLE QsciScintillaBase__ = 2513 + QsciScintillaBase__SCI_SETPOSITIONCACHE QsciScintillaBase__ = 2514 + QsciScintillaBase__SCI_GETPOSITIONCACHE QsciScintillaBase__ = 2515 + QsciScintillaBase__SCI_SETSCROLLWIDTHTRACKING QsciScintillaBase__ = 2516 + QsciScintillaBase__SCI_GETSCROLLWIDTHTRACKING QsciScintillaBase__ = 2517 + QsciScintillaBase__SCI_DELWORDRIGHTEND QsciScintillaBase__ = 2518 + QsciScintillaBase__SCI_COPYALLOWLINE QsciScintillaBase__ = 2519 + QsciScintillaBase__SCI_GETCHARACTERPOINTER QsciScintillaBase__ = 2520 + QsciScintillaBase__SCI_INDICSETALPHA QsciScintillaBase__ = 2523 + QsciScintillaBase__SCI_INDICGETALPHA QsciScintillaBase__ = 2524 + QsciScintillaBase__SCI_SETEXTRAASCENT QsciScintillaBase__ = 2525 + QsciScintillaBase__SCI_GETEXTRAASCENT QsciScintillaBase__ = 2526 + QsciScintillaBase__SCI_SETEXTRADESCENT QsciScintillaBase__ = 2527 + QsciScintillaBase__SCI_GETEXTRADESCENT QsciScintillaBase__ = 2528 + QsciScintillaBase__SCI_MARKERSYMBOLDEFINED QsciScintillaBase__ = 2529 + QsciScintillaBase__SCI_MARGINSETTEXT QsciScintillaBase__ = 2530 + QsciScintillaBase__SCI_MARGINGETTEXT QsciScintillaBase__ = 2531 + QsciScintillaBase__SCI_MARGINSETSTYLE QsciScintillaBase__ = 2532 + QsciScintillaBase__SCI_MARGINGETSTYLE QsciScintillaBase__ = 2533 + QsciScintillaBase__SCI_MARGINSETSTYLES QsciScintillaBase__ = 2534 + QsciScintillaBase__SCI_MARGINGETSTYLES QsciScintillaBase__ = 2535 + QsciScintillaBase__SCI_MARGINTEXTCLEARALL QsciScintillaBase__ = 2536 + QsciScintillaBase__SCI_MARGINSETSTYLEOFFSET QsciScintillaBase__ = 2537 + QsciScintillaBase__SCI_MARGINGETSTYLEOFFSET QsciScintillaBase__ = 2538 + QsciScintillaBase__SCI_SETMARGINOPTIONS QsciScintillaBase__ = 2539 + QsciScintillaBase__SCI_ANNOTATIONSETTEXT QsciScintillaBase__ = 2540 + QsciScintillaBase__SCI_ANNOTATIONGETTEXT QsciScintillaBase__ = 2541 + QsciScintillaBase__SCI_ANNOTATIONSETSTYLE QsciScintillaBase__ = 2542 + QsciScintillaBase__SCI_ANNOTATIONGETSTYLE QsciScintillaBase__ = 2543 + QsciScintillaBase__SCI_ANNOTATIONSETSTYLES QsciScintillaBase__ = 2544 + QsciScintillaBase__SCI_ANNOTATIONGETSTYLES QsciScintillaBase__ = 2545 + QsciScintillaBase__SCI_ANNOTATIONGETLINES QsciScintillaBase__ = 2546 + QsciScintillaBase__SCI_ANNOTATIONCLEARALL QsciScintillaBase__ = 2547 + QsciScintillaBase__SCI_ANNOTATIONSETVISIBLE QsciScintillaBase__ = 2548 + QsciScintillaBase__SCI_ANNOTATIONGETVISIBLE QsciScintillaBase__ = 2549 + QsciScintillaBase__SCI_ANNOTATIONSETSTYLEOFFSET QsciScintillaBase__ = 2550 + QsciScintillaBase__SCI_ANNOTATIONGETSTYLEOFFSET QsciScintillaBase__ = 2551 + QsciScintillaBase__SCI_RELEASEALLEXTENDEDSTYLES QsciScintillaBase__ = 2552 + QsciScintillaBase__SCI_ALLOCATEEXTENDEDSTYLES QsciScintillaBase__ = 2553 + QsciScintillaBase__SCI_SETEMPTYSELECTION QsciScintillaBase__ = 2556 + QsciScintillaBase__SCI_GETMARGINOPTIONS QsciScintillaBase__ = 2557 + QsciScintillaBase__SCI_INDICSETOUTLINEALPHA QsciScintillaBase__ = 2558 + QsciScintillaBase__SCI_INDICGETOUTLINEALPHA QsciScintillaBase__ = 2559 + QsciScintillaBase__SCI_ADDUNDOACTION QsciScintillaBase__ = 2560 + QsciScintillaBase__SCI_CHARPOSITIONFROMPOINT QsciScintillaBase__ = 2561 + QsciScintillaBase__SCI_CHARPOSITIONFROMPOINTCLOSE QsciScintillaBase__ = 2562 + QsciScintillaBase__SCI_SETMULTIPLESELECTION QsciScintillaBase__ = 2563 + QsciScintillaBase__SCI_GETMULTIPLESELECTION QsciScintillaBase__ = 2564 + QsciScintillaBase__SCI_SETADDITIONALSELECTIONTYPING QsciScintillaBase__ = 2565 + QsciScintillaBase__SCI_GETADDITIONALSELECTIONTYPING QsciScintillaBase__ = 2566 + QsciScintillaBase__SCI_SETADDITIONALCARETSBLINK QsciScintillaBase__ = 2567 + QsciScintillaBase__SCI_GETADDITIONALCARETSBLINK QsciScintillaBase__ = 2568 + QsciScintillaBase__SCI_SCROLLRANGE QsciScintillaBase__ = 2569 + QsciScintillaBase__SCI_GETSELECTIONS QsciScintillaBase__ = 2570 + QsciScintillaBase__SCI_CLEARSELECTIONS QsciScintillaBase__ = 2571 + QsciScintillaBase__SCI_SETSELECTION QsciScintillaBase__ = 2572 + QsciScintillaBase__SCI_ADDSELECTION QsciScintillaBase__ = 2573 + QsciScintillaBase__SCI_SETMAINSELECTION QsciScintillaBase__ = 2574 + QsciScintillaBase__SCI_GETMAINSELECTION QsciScintillaBase__ = 2575 + QsciScintillaBase__SCI_SETSELECTIONNCARET QsciScintillaBase__ = 2576 + QsciScintillaBase__SCI_GETSELECTIONNCARET QsciScintillaBase__ = 2577 + QsciScintillaBase__SCI_SETSELECTIONNANCHOR QsciScintillaBase__ = 2578 + QsciScintillaBase__SCI_GETSELECTIONNANCHOR QsciScintillaBase__ = 2579 + QsciScintillaBase__SCI_SETSELECTIONNCARETVIRTUALSPACE QsciScintillaBase__ = 2580 + QsciScintillaBase__SCI_GETSELECTIONNCARETVIRTUALSPACE QsciScintillaBase__ = 2581 + QsciScintillaBase__SCI_SETSELECTIONNANCHORVIRTUALSPACE QsciScintillaBase__ = 2582 + QsciScintillaBase__SCI_GETSELECTIONNANCHORVIRTUALSPACE QsciScintillaBase__ = 2583 + QsciScintillaBase__SCI_SETSELECTIONNSTART QsciScintillaBase__ = 2584 + QsciScintillaBase__SCI_GETSELECTIONNSTART QsciScintillaBase__ = 2585 + QsciScintillaBase__SCI_SETSELECTIONNEND QsciScintillaBase__ = 2586 + QsciScintillaBase__SCI_GETSELECTIONNEND QsciScintillaBase__ = 2587 + QsciScintillaBase__SCI_SETRECTANGULARSELECTIONCARET QsciScintillaBase__ = 2588 + QsciScintillaBase__SCI_GETRECTANGULARSELECTIONCARET QsciScintillaBase__ = 2589 + QsciScintillaBase__SCI_SETRECTANGULARSELECTIONANCHOR QsciScintillaBase__ = 2590 + QsciScintillaBase__SCI_GETRECTANGULARSELECTIONANCHOR QsciScintillaBase__ = 2591 + QsciScintillaBase__SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE QsciScintillaBase__ = 2592 + QsciScintillaBase__SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE QsciScintillaBase__ = 2593 + QsciScintillaBase__SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE QsciScintillaBase__ = 2594 + QsciScintillaBase__SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE QsciScintillaBase__ = 2595 + QsciScintillaBase__SCI_SETVIRTUALSPACEOPTIONS QsciScintillaBase__ = 2596 + QsciScintillaBase__SCI_GETVIRTUALSPACEOPTIONS QsciScintillaBase__ = 2597 + QsciScintillaBase__SCI_SETRECTANGULARSELECTIONMODIFIER QsciScintillaBase__ = 2598 + QsciScintillaBase__SCI_GETRECTANGULARSELECTIONMODIFIER QsciScintillaBase__ = 2599 + QsciScintillaBase__SCI_SETADDITIONALSELFORE QsciScintillaBase__ = 2600 + QsciScintillaBase__SCI_SETADDITIONALSELBACK QsciScintillaBase__ = 2601 + QsciScintillaBase__SCI_SETADDITIONALSELALPHA QsciScintillaBase__ = 2602 + QsciScintillaBase__SCI_GETADDITIONALSELALPHA QsciScintillaBase__ = 2603 + QsciScintillaBase__SCI_SETADDITIONALCARETFORE QsciScintillaBase__ = 2604 + QsciScintillaBase__SCI_GETADDITIONALCARETFORE QsciScintillaBase__ = 2605 + QsciScintillaBase__SCI_ROTATESELECTION QsciScintillaBase__ = 2606 + QsciScintillaBase__SCI_SWAPMAINANCHORCARET QsciScintillaBase__ = 2607 + QsciScintillaBase__SCI_SETADDITIONALCARETSVISIBLE QsciScintillaBase__ = 2608 + QsciScintillaBase__SCI_GETADDITIONALCARETSVISIBLE QsciScintillaBase__ = 2609 + QsciScintillaBase__SCI_AUTOCGETCURRENTTEXT QsciScintillaBase__ = 2610 + QsciScintillaBase__SCI_SETFONTQUALITY QsciScintillaBase__ = 2611 + QsciScintillaBase__SCI_GETFONTQUALITY QsciScintillaBase__ = 2612 + QsciScintillaBase__SCI_SETFIRSTVISIBLELINE QsciScintillaBase__ = 2613 + QsciScintillaBase__SCI_SETMULTIPASTE QsciScintillaBase__ = 2614 + QsciScintillaBase__SCI_GETMULTIPASTE QsciScintillaBase__ = 2615 + QsciScintillaBase__SCI_GETTAG QsciScintillaBase__ = 2616 + QsciScintillaBase__SCI_CHANGELEXERSTATE QsciScintillaBase__ = 2617 + QsciScintillaBase__SCI_CONTRACTEDFOLDNEXT QsciScintillaBase__ = 2618 + QsciScintillaBase__SCI_VERTICALCENTRECARET QsciScintillaBase__ = 2619 + QsciScintillaBase__SCI_MOVESELECTEDLINESUP QsciScintillaBase__ = 2620 + QsciScintillaBase__SCI_MOVESELECTEDLINESDOWN QsciScintillaBase__ = 2621 + QsciScintillaBase__SCI_SETIDENTIFIER QsciScintillaBase__ = 2622 + QsciScintillaBase__SCI_GETIDENTIFIER QsciScintillaBase__ = 2623 + QsciScintillaBase__SCI_RGBAIMAGESETWIDTH QsciScintillaBase__ = 2624 + QsciScintillaBase__SCI_RGBAIMAGESETHEIGHT QsciScintillaBase__ = 2625 + QsciScintillaBase__SCI_MARKERDEFINERGBAIMAGE QsciScintillaBase__ = 2626 + QsciScintillaBase__SCI_REGISTERRGBAIMAGE QsciScintillaBase__ = 2627 + QsciScintillaBase__SCI_SCROLLTOSTART QsciScintillaBase__ = 2628 + QsciScintillaBase__SCI_SCROLLTOEND QsciScintillaBase__ = 2629 + QsciScintillaBase__SCI_SETTECHNOLOGY QsciScintillaBase__ = 2630 + QsciScintillaBase__SCI_GETTECHNOLOGY QsciScintillaBase__ = 2631 + QsciScintillaBase__SCI_CREATELOADER QsciScintillaBase__ = 2632 + QsciScintillaBase__SCI_COUNTCHARACTERS QsciScintillaBase__ = 2633 + QsciScintillaBase__SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR QsciScintillaBase__ = 2634 + QsciScintillaBase__SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR QsciScintillaBase__ = 2635 + QsciScintillaBase__SCI_AUTOCSETMULTI QsciScintillaBase__ = 2636 + QsciScintillaBase__SCI_AUTOCGETMULTI QsciScintillaBase__ = 2637 + QsciScintillaBase__SCI_FINDINDICATORSHOW QsciScintillaBase__ = 2640 + QsciScintillaBase__SCI_FINDINDICATORFLASH QsciScintillaBase__ = 2641 + QsciScintillaBase__SCI_FINDINDICATORHIDE QsciScintillaBase__ = 2642 + QsciScintillaBase__SCI_GETRANGEPOINTER QsciScintillaBase__ = 2643 + QsciScintillaBase__SCI_GETGAPPOSITION QsciScintillaBase__ = 2644 + QsciScintillaBase__SCI_DELETERANGE QsciScintillaBase__ = 2645 + QsciScintillaBase__SCI_GETWORDCHARS QsciScintillaBase__ = 2646 + QsciScintillaBase__SCI_GETWHITESPACECHARS QsciScintillaBase__ = 2647 + QsciScintillaBase__SCI_SETPUNCTUATIONCHARS QsciScintillaBase__ = 2648 + QsciScintillaBase__SCI_GETPUNCTUATIONCHARS QsciScintillaBase__ = 2649 + QsciScintillaBase__SCI_GETSELECTIONEMPTY QsciScintillaBase__ = 2650 + QsciScintillaBase__SCI_RGBAIMAGESETSCALE QsciScintillaBase__ = 2651 + QsciScintillaBase__SCI_VCHOMEDISPLAY QsciScintillaBase__ = 2652 + QsciScintillaBase__SCI_VCHOMEDISPLAYEXTEND QsciScintillaBase__ = 2653 + QsciScintillaBase__SCI_GETCARETLINEVISIBLEALWAYS QsciScintillaBase__ = 2654 + QsciScintillaBase__SCI_SETCARETLINEVISIBLEALWAYS QsciScintillaBase__ = 2655 + QsciScintillaBase__SCI_SETLINEENDTYPESALLOWED QsciScintillaBase__ = 2656 + QsciScintillaBase__SCI_GETLINEENDTYPESALLOWED QsciScintillaBase__ = 2657 + QsciScintillaBase__SCI_GETLINEENDTYPESACTIVE QsciScintillaBase__ = 2658 + QsciScintillaBase__SCI_AUTOCSETORDER QsciScintillaBase__ = 2660 + QsciScintillaBase__SCI_AUTOCGETORDER QsciScintillaBase__ = 2661 + QsciScintillaBase__SCI_FOLDALL QsciScintillaBase__ = 2662 + QsciScintillaBase__SCI_SETAUTOMATICFOLD QsciScintillaBase__ = 2663 + QsciScintillaBase__SCI_GETAUTOMATICFOLD QsciScintillaBase__ = 2664 + QsciScintillaBase__SCI_SETREPRESENTATION QsciScintillaBase__ = 2665 + QsciScintillaBase__SCI_GETREPRESENTATION QsciScintillaBase__ = 2666 + QsciScintillaBase__SCI_CLEARREPRESENTATION QsciScintillaBase__ = 2667 + QsciScintillaBase__SCI_SETMOUSESELECTIONRECTANGULARSWITCH QsciScintillaBase__ = 2668 + QsciScintillaBase__SCI_GETMOUSESELECTIONRECTANGULARSWITCH QsciScintillaBase__ = 2669 + QsciScintillaBase__SCI_POSITIONRELATIVE QsciScintillaBase__ = 2670 + QsciScintillaBase__SCI_DROPSELECTIONN QsciScintillaBase__ = 2671 + QsciScintillaBase__SCI_CHANGEINSERTION QsciScintillaBase__ = 2672 + QsciScintillaBase__SCI_GETPHASESDRAW QsciScintillaBase__ = 2673 + QsciScintillaBase__SCI_SETPHASESDRAW QsciScintillaBase__ = 2674 + QsciScintillaBase__SCI_CLEARTABSTOPS QsciScintillaBase__ = 2675 + QsciScintillaBase__SCI_ADDTABSTOP QsciScintillaBase__ = 2676 + QsciScintillaBase__SCI_GETNEXTTABSTOP QsciScintillaBase__ = 2677 + QsciScintillaBase__SCI_GETIMEINTERACTION QsciScintillaBase__ = 2678 + QsciScintillaBase__SCI_SETIMEINTERACTION QsciScintillaBase__ = 2679 + QsciScintillaBase__SCI_INDICSETHOVERSTYLE QsciScintillaBase__ = 2680 + QsciScintillaBase__SCI_INDICGETHOVERSTYLE QsciScintillaBase__ = 2681 + QsciScintillaBase__SCI_INDICSETHOVERFORE QsciScintillaBase__ = 2682 + QsciScintillaBase__SCI_INDICGETHOVERFORE QsciScintillaBase__ = 2683 + QsciScintillaBase__SCI_INDICSETFLAGS QsciScintillaBase__ = 2684 + QsciScintillaBase__SCI_INDICGETFLAGS QsciScintillaBase__ = 2685 + QsciScintillaBase__SCI_SETTARGETRANGE QsciScintillaBase__ = 2686 + QsciScintillaBase__SCI_GETTARGETTEXT QsciScintillaBase__ = 2687 + QsciScintillaBase__SCI_MULTIPLESELECTADDNEXT QsciScintillaBase__ = 2688 + QsciScintillaBase__SCI_MULTIPLESELECTADDEACH QsciScintillaBase__ = 2689 + QsciScintillaBase__SCI_TARGETWHOLEDOCUMENT QsciScintillaBase__ = 2690 + QsciScintillaBase__SCI_ISRANGEWORD QsciScintillaBase__ = 2691 + QsciScintillaBase__SCI_SETIDLESTYLING QsciScintillaBase__ = 2692 + QsciScintillaBase__SCI_GETIDLESTYLING QsciScintillaBase__ = 2693 + QsciScintillaBase__SCI_MULTIEDGEADDLINE QsciScintillaBase__ = 2694 + QsciScintillaBase__SCI_MULTIEDGECLEARALL QsciScintillaBase__ = 2695 + QsciScintillaBase__SCI_SETMOUSEWHEELCAPTURES QsciScintillaBase__ = 2696 + QsciScintillaBase__SCI_GETMOUSEWHEELCAPTURES QsciScintillaBase__ = 2697 + QsciScintillaBase__SCI_GETTABDRAWMODE QsciScintillaBase__ = 2698 + QsciScintillaBase__SCI_SETTABDRAWMODE QsciScintillaBase__ = 2699 + QsciScintillaBase__SCI_TOGGLEFOLDSHOWTEXT QsciScintillaBase__ = 2700 + QsciScintillaBase__SCI_FOLDDISPLAYTEXTSETSTYLE QsciScintillaBase__ = 2701 + QsciScintillaBase__SCI_SETACCESSIBILITY QsciScintillaBase__ = 2702 + QsciScintillaBase__SCI_GETACCESSIBILITY QsciScintillaBase__ = 2703 + QsciScintillaBase__SCI_GETCARETLINEFRAME QsciScintillaBase__ = 2704 + QsciScintillaBase__SCI_SETCARETLINEFRAME QsciScintillaBase__ = 2705 + QsciScintillaBase__SCI_STARTRECORD QsciScintillaBase__ = 3001 + QsciScintillaBase__SCI_STOPRECORD QsciScintillaBase__ = 3002 + QsciScintillaBase__SCI_SETLEXER QsciScintillaBase__ = 4001 + QsciScintillaBase__SCI_GETLEXER QsciScintillaBase__ = 4002 + QsciScintillaBase__SCI_COLOURISE QsciScintillaBase__ = 4003 + QsciScintillaBase__SCI_SETPROPERTY QsciScintillaBase__ = 4004 + QsciScintillaBase__SCI_SETKEYWORDS QsciScintillaBase__ = 4005 + QsciScintillaBase__SCI_SETLEXERLANGUAGE QsciScintillaBase__ = 4006 + QsciScintillaBase__SCI_LOADLEXERLIBRARY QsciScintillaBase__ = 4007 + QsciScintillaBase__SCI_GETPROPERTY QsciScintillaBase__ = 4008 + QsciScintillaBase__SCI_GETPROPERTYEXPANDED QsciScintillaBase__ = 4009 + QsciScintillaBase__SCI_GETPROPERTYINT QsciScintillaBase__ = 4010 + QsciScintillaBase__SCI_GETSTYLEBITSNEEDED QsciScintillaBase__ = 4011 + QsciScintillaBase__SCI_GETLEXERLANGUAGE QsciScintillaBase__ = 4012 + QsciScintillaBase__SCI_PRIVATELEXERCALL QsciScintillaBase__ = 4013 + QsciScintillaBase__SCI_PROPERTYNAMES QsciScintillaBase__ = 4014 + QsciScintillaBase__SCI_PROPERTYTYPE QsciScintillaBase__ = 4015 + QsciScintillaBase__SCI_DESCRIBEPROPERTY QsciScintillaBase__ = 4016 + QsciScintillaBase__SCI_DESCRIBEKEYWORDSETS QsciScintillaBase__ = 4017 + QsciScintillaBase__SCI_GETLINEENDTYPESSUPPORTED QsciScintillaBase__ = 4018 + QsciScintillaBase__SCI_ALLOCATESUBSTYLES QsciScintillaBase__ = 4020 + QsciScintillaBase__SCI_GETSUBSTYLESSTART QsciScintillaBase__ = 4021 + QsciScintillaBase__SCI_GETSUBSTYLESLENGTH QsciScintillaBase__ = 4022 + QsciScintillaBase__SCI_GETSTYLEFROMSUBSTYLE QsciScintillaBase__ = 4027 + QsciScintillaBase__SCI_GETPRIMARYSTYLEFROMSTYLE QsciScintillaBase__ = 4028 + QsciScintillaBase__SCI_FREESUBSTYLES QsciScintillaBase__ = 4023 + QsciScintillaBase__SCI_SETIDENTIFIERS QsciScintillaBase__ = 4024 + QsciScintillaBase__SCI_DISTANCETOSECONDARYSTYLES QsciScintillaBase__ = 4025 + QsciScintillaBase__SCI_GETSUBSTYLEBASES QsciScintillaBase__ = 4026 + QsciScintillaBase__SCI_GETLINECHARACTERINDEX QsciScintillaBase__ = 2710 + QsciScintillaBase__SCI_ALLOCATELINECHARACTERINDEX QsciScintillaBase__ = 2711 + QsciScintillaBase__SCI_RELEASELINECHARACTERINDEX QsciScintillaBase__ = 2712 + QsciScintillaBase__SCI_LINEFROMINDEXPOSITION QsciScintillaBase__ = 2713 + QsciScintillaBase__SCI_INDEXPOSITIONFROMLINE QsciScintillaBase__ = 2714 + QsciScintillaBase__SCI_COUNTCODEUNITS QsciScintillaBase__ = 2715 + QsciScintillaBase__SCI_POSITIONRELATIVECODEUNITS QsciScintillaBase__ = 2716 + QsciScintillaBase__SCI_GETNAMEDSTYLES QsciScintillaBase__ = 4029 + QsciScintillaBase__SCI_NAMEOFSTYLE QsciScintillaBase__ = 4030 + QsciScintillaBase__SCI_TAGSOFSTYLE QsciScintillaBase__ = 4031 + QsciScintillaBase__SCI_DESCRIPTIONOFSTYLE QsciScintillaBase__ = 4032 + QsciScintillaBase__SCI_GETMOVEEXTENDSSELECTION QsciScintillaBase__ = 2706 + QsciScintillaBase__SCI_SETCOMMANDEVENTS QsciScintillaBase__ = 2717 + QsciScintillaBase__SCI_GETCOMMANDEVENTS QsciScintillaBase__ = 2718 + QsciScintillaBase__SCI_GETDOCUMENTOPTIONS QsciScintillaBase__ = 2379 + QsciScintillaBase__SC_AC_FILLUP QsciScintillaBase__ = 1 + QsciScintillaBase__SC_AC_DOUBLECLICK QsciScintillaBase__ = 2 + QsciScintillaBase__SC_AC_TAB QsciScintillaBase__ = 3 + QsciScintillaBase__SC_AC_NEWLINE QsciScintillaBase__ = 4 + QsciScintillaBase__SC_AC_COMMAND QsciScintillaBase__ = 5 + QsciScintillaBase__SC_ALPHA_TRANSPARENT QsciScintillaBase__ = 0 + QsciScintillaBase__SC_ALPHA_OPAQUE QsciScintillaBase__ = 255 + QsciScintillaBase__SC_ALPHA_NOALPHA QsciScintillaBase__ = 256 + QsciScintillaBase__SC_CARETSTICKY_OFF QsciScintillaBase__ = 0 + QsciScintillaBase__SC_CARETSTICKY_ON QsciScintillaBase__ = 1 + QsciScintillaBase__SC_CARETSTICKY_WHITESPACE QsciScintillaBase__ = 2 + QsciScintillaBase__SC_DOCUMENTOPTION_DEFAULT QsciScintillaBase__ = 0 + QsciScintillaBase__SC_DOCUMENTOPTION_STYLES_NONE QsciScintillaBase__ = 1 + QsciScintillaBase__SC_DOCUMENTOPTION_TEXT_LARGE QsciScintillaBase__ = 256 + QsciScintillaBase__SC_EFF_QUALITY_MASK QsciScintillaBase__ = 15 + QsciScintillaBase__SC_EFF_QUALITY_DEFAULT QsciScintillaBase__ = 0 + QsciScintillaBase__SC_EFF_QUALITY_NON_ANTIALIASED QsciScintillaBase__ = 1 + QsciScintillaBase__SC_EFF_QUALITY_ANTIALIASED QsciScintillaBase__ = 2 + QsciScintillaBase__SC_EFF_QUALITY_LCD_OPTIMIZED QsciScintillaBase__ = 3 + QsciScintillaBase__SC_IDLESTYLING_NONE QsciScintillaBase__ = 0 + QsciScintillaBase__SC_IDLESTYLING_TOVISIBLE QsciScintillaBase__ = 1 + QsciScintillaBase__SC_IDLESTYLING_AFTERVISIBLE QsciScintillaBase__ = 2 + QsciScintillaBase__SC_IDLESTYLING_ALL QsciScintillaBase__ = 3 + QsciScintillaBase__SC_IME_WINDOWED QsciScintillaBase__ = 0 + QsciScintillaBase__SC_IME_INLINE QsciScintillaBase__ = 1 + QsciScintillaBase__SC_LINECHARACTERINDEX_NONE QsciScintillaBase__ = 0 + QsciScintillaBase__SC_LINECHARACTERINDEX_UTF32 QsciScintillaBase__ = 1 + QsciScintillaBase__SC_LINECHARACTERINDEX_UTF16 QsciScintillaBase__ = 2 + QsciScintillaBase__SC_MARGINOPTION_NONE QsciScintillaBase__ = 0 + QsciScintillaBase__SC_MARGINOPTION_SUBLINESELECT QsciScintillaBase__ = 1 + QsciScintillaBase__SC_MULTIAUTOC_ONCE QsciScintillaBase__ = 0 + QsciScintillaBase__SC_MULTIAUTOC_EACH QsciScintillaBase__ = 1 + QsciScintillaBase__SC_MULTIPASTE_ONCE QsciScintillaBase__ = 0 + QsciScintillaBase__SC_MULTIPASTE_EACH QsciScintillaBase__ = 1 + QsciScintillaBase__SC_POPUP_NEVER QsciScintillaBase__ = 0 + QsciScintillaBase__SC_POPUP_ALL QsciScintillaBase__ = 1 + QsciScintillaBase__SC_POPUP_TEXT QsciScintillaBase__ = 2 + QsciScintillaBase__SC_SEL_STREAM QsciScintillaBase__ = 0 + QsciScintillaBase__SC_SEL_RECTANGLE QsciScintillaBase__ = 1 + QsciScintillaBase__SC_SEL_LINES QsciScintillaBase__ = 2 + QsciScintillaBase__SC_SEL_THIN QsciScintillaBase__ = 3 + QsciScintillaBase__SC_STATUS_OK QsciScintillaBase__ = 0 + QsciScintillaBase__SC_STATUS_FAILURE QsciScintillaBase__ = 1 + QsciScintillaBase__SC_STATUS_BADALLOC QsciScintillaBase__ = 2 + QsciScintillaBase__SC_STATUS_WARN_START QsciScintillaBase__ = 1000 + QsciScintillaBase__SC_STATUS_WARNREGEX QsciScintillaBase__ = 1001 + QsciScintillaBase__SC_TYPE_BOOLEAN QsciScintillaBase__ = 0 + QsciScintillaBase__SC_TYPE_INTEGER QsciScintillaBase__ = 1 + QsciScintillaBase__SC_TYPE_STRING QsciScintillaBase__ = 2 + QsciScintillaBase__SC_UPDATE_CONTENT QsciScintillaBase__ = 1 + QsciScintillaBase__SC_UPDATE_SELECTION QsciScintillaBase__ = 2 + QsciScintillaBase__SC_UPDATE_V_SCROLL QsciScintillaBase__ = 4 + QsciScintillaBase__SC_UPDATE_H_SCROLL QsciScintillaBase__ = 8 + QsciScintillaBase__SC_WRAPVISUALFLAG_NONE QsciScintillaBase__ = 0 + QsciScintillaBase__SC_WRAPVISUALFLAG_END QsciScintillaBase__ = 1 + QsciScintillaBase__SC_WRAPVISUALFLAG_START QsciScintillaBase__ = 2 + QsciScintillaBase__SC_WRAPVISUALFLAG_MARGIN QsciScintillaBase__ = 4 + QsciScintillaBase__SC_WRAPVISUALFLAGLOC_DEFAULT QsciScintillaBase__ = 0 + QsciScintillaBase__SC_WRAPVISUALFLAGLOC_END_BY_TEXT QsciScintillaBase__ = 1 + QsciScintillaBase__SC_WRAPVISUALFLAGLOC_START_BY_TEXT QsciScintillaBase__ = 2 + QsciScintillaBase__SCTD_LONGARROW QsciScintillaBase__ = 0 + QsciScintillaBase__SCTD_STRIKEOUT QsciScintillaBase__ = 1 + QsciScintillaBase__SCVS_NONE QsciScintillaBase__ = 0 + QsciScintillaBase__SCVS_RECTANGULARSELECTION QsciScintillaBase__ = 1 + QsciScintillaBase__SCVS_USERACCESSIBLE QsciScintillaBase__ = 2 + QsciScintillaBase__SCVS_NOWRAPLINESTART QsciScintillaBase__ = 4 + QsciScintillaBase__SCWS_INVISIBLE QsciScintillaBase__ = 0 + QsciScintillaBase__SCWS_VISIBLEALWAYS QsciScintillaBase__ = 1 + QsciScintillaBase__SCWS_VISIBLEAFTERINDENT QsciScintillaBase__ = 2 + QsciScintillaBase__SCWS_VISIBLEONLYININDENT QsciScintillaBase__ = 3 + QsciScintillaBase__SC_EOL_CRLF QsciScintillaBase__ = 0 + QsciScintillaBase__SC_EOL_CR QsciScintillaBase__ = 1 + QsciScintillaBase__SC_EOL_LF QsciScintillaBase__ = 2 + QsciScintillaBase__SC_CP_DBCS QsciScintillaBase__ = 1 + QsciScintillaBase__SC_CP_UTF8 QsciScintillaBase__ = 65001 + QsciScintillaBase__SC_MARK_CIRCLE QsciScintillaBase__ = 0 + QsciScintillaBase__SC_MARK_ROUNDRECT QsciScintillaBase__ = 1 + QsciScintillaBase__SC_MARK_ARROW QsciScintillaBase__ = 2 + QsciScintillaBase__SC_MARK_SMALLRECT QsciScintillaBase__ = 3 + QsciScintillaBase__SC_MARK_SHORTARROW QsciScintillaBase__ = 4 + QsciScintillaBase__SC_MARK_EMPTY QsciScintillaBase__ = 5 + QsciScintillaBase__SC_MARK_ARROWDOWN QsciScintillaBase__ = 6 + QsciScintillaBase__SC_MARK_MINUS QsciScintillaBase__ = 7 + QsciScintillaBase__SC_MARK_PLUS QsciScintillaBase__ = 8 + QsciScintillaBase__SC_MARK_VLINE QsciScintillaBase__ = 9 + QsciScintillaBase__SC_MARK_LCORNER QsciScintillaBase__ = 10 + QsciScintillaBase__SC_MARK_TCORNER QsciScintillaBase__ = 11 + QsciScintillaBase__SC_MARK_BOXPLUS QsciScintillaBase__ = 12 + QsciScintillaBase__SC_MARK_BOXPLUSCONNECTED QsciScintillaBase__ = 13 + QsciScintillaBase__SC_MARK_BOXMINUS QsciScintillaBase__ = 14 + QsciScintillaBase__SC_MARK_BOXMINUSCONNECTED QsciScintillaBase__ = 15 + QsciScintillaBase__SC_MARK_LCORNERCURVE QsciScintillaBase__ = 16 + QsciScintillaBase__SC_MARK_TCORNERCURVE QsciScintillaBase__ = 17 + QsciScintillaBase__SC_MARK_CIRCLEPLUS QsciScintillaBase__ = 18 + QsciScintillaBase__SC_MARK_CIRCLEPLUSCONNECTED QsciScintillaBase__ = 19 + QsciScintillaBase__SC_MARK_CIRCLEMINUS QsciScintillaBase__ = 20 + QsciScintillaBase__SC_MARK_CIRCLEMINUSCONNECTED QsciScintillaBase__ = 21 + QsciScintillaBase__SC_MARK_BACKGROUND QsciScintillaBase__ = 22 + QsciScintillaBase__SC_MARK_DOTDOTDOT QsciScintillaBase__ = 23 + QsciScintillaBase__SC_MARK_ARROWS QsciScintillaBase__ = 24 + QsciScintillaBase__SC_MARK_PIXMAP QsciScintillaBase__ = 25 + QsciScintillaBase__SC_MARK_FULLRECT QsciScintillaBase__ = 26 + QsciScintillaBase__SC_MARK_LEFTRECT QsciScintillaBase__ = 27 + QsciScintillaBase__SC_MARK_AVAILABLE QsciScintillaBase__ = 28 + QsciScintillaBase__SC_MARK_UNDERLINE QsciScintillaBase__ = 29 + QsciScintillaBase__SC_MARK_RGBAIMAGE QsciScintillaBase__ = 30 + QsciScintillaBase__SC_MARK_BOOKMARK QsciScintillaBase__ = 31 + QsciScintillaBase__SC_MARK_CHARACTER QsciScintillaBase__ = 10000 + QsciScintillaBase__SC_MARKNUM_FOLDEREND QsciScintillaBase__ = 25 + QsciScintillaBase__SC_MARKNUM_FOLDEROPENMID QsciScintillaBase__ = 26 + QsciScintillaBase__SC_MARKNUM_FOLDERMIDTAIL QsciScintillaBase__ = 27 + QsciScintillaBase__SC_MARKNUM_FOLDERTAIL QsciScintillaBase__ = 28 + QsciScintillaBase__SC_MARKNUM_FOLDERSUB QsciScintillaBase__ = 29 + QsciScintillaBase__SC_MARKNUM_FOLDER QsciScintillaBase__ = 30 + QsciScintillaBase__SC_MARKNUM_FOLDEROPEN QsciScintillaBase__ = 31 + QsciScintillaBase__SC_MASK_FOLDERS QsciScintillaBase__ = 4261412864 + QsciScintillaBase__SC_MARGIN_SYMBOL QsciScintillaBase__ = 0 + QsciScintillaBase__SC_MARGIN_NUMBER QsciScintillaBase__ = 1 + QsciScintillaBase__SC_MARGIN_BACK QsciScintillaBase__ = 2 + QsciScintillaBase__SC_MARGIN_FORE QsciScintillaBase__ = 3 + QsciScintillaBase__SC_MARGIN_TEXT QsciScintillaBase__ = 4 + QsciScintillaBase__SC_MARGIN_RTEXT QsciScintillaBase__ = 5 + QsciScintillaBase__SC_MARGIN_COLOUR QsciScintillaBase__ = 6 + QsciScintillaBase__STYLE_DEFAULT QsciScintillaBase__ = 32 + QsciScintillaBase__STYLE_LINENUMBER QsciScintillaBase__ = 33 + QsciScintillaBase__STYLE_BRACELIGHT QsciScintillaBase__ = 34 + QsciScintillaBase__STYLE_BRACEBAD QsciScintillaBase__ = 35 + QsciScintillaBase__STYLE_CONTROLCHAR QsciScintillaBase__ = 36 + QsciScintillaBase__STYLE_INDENTGUIDE QsciScintillaBase__ = 37 + QsciScintillaBase__STYLE_CALLTIP QsciScintillaBase__ = 38 + QsciScintillaBase__STYLE_FOLDDISPLAYTEXT QsciScintillaBase__ = 39 + QsciScintillaBase__STYLE_LASTPREDEFINED QsciScintillaBase__ = 39 + QsciScintillaBase__STYLE_MAX QsciScintillaBase__ = 255 + QsciScintillaBase__SC_CHARSET_ANSI QsciScintillaBase__ = 0 + QsciScintillaBase__SC_CHARSET_DEFAULT QsciScintillaBase__ = 1 + QsciScintillaBase__SC_CHARSET_BALTIC QsciScintillaBase__ = 186 + QsciScintillaBase__SC_CHARSET_CHINESEBIG5 QsciScintillaBase__ = 136 + QsciScintillaBase__SC_CHARSET_EASTEUROPE QsciScintillaBase__ = 238 + QsciScintillaBase__SC_CHARSET_GB2312 QsciScintillaBase__ = 134 + QsciScintillaBase__SC_CHARSET_GREEK QsciScintillaBase__ = 161 + QsciScintillaBase__SC_CHARSET_HANGUL QsciScintillaBase__ = 129 + QsciScintillaBase__SC_CHARSET_MAC QsciScintillaBase__ = 77 + QsciScintillaBase__SC_CHARSET_OEM QsciScintillaBase__ = 255 + QsciScintillaBase__SC_CHARSET_RUSSIAN QsciScintillaBase__ = 204 + QsciScintillaBase__SC_CHARSET_OEM866 QsciScintillaBase__ = 866 + QsciScintillaBase__SC_CHARSET_CYRILLIC QsciScintillaBase__ = 1251 + QsciScintillaBase__SC_CHARSET_SHIFTJIS QsciScintillaBase__ = 128 + QsciScintillaBase__SC_CHARSET_SYMBOL QsciScintillaBase__ = 2 + QsciScintillaBase__SC_CHARSET_TURKISH QsciScintillaBase__ = 162 + QsciScintillaBase__SC_CHARSET_JOHAB QsciScintillaBase__ = 130 + QsciScintillaBase__SC_CHARSET_HEBREW QsciScintillaBase__ = 177 + QsciScintillaBase__SC_CHARSET_ARABIC QsciScintillaBase__ = 178 + QsciScintillaBase__SC_CHARSET_VIETNAMESE QsciScintillaBase__ = 163 + QsciScintillaBase__SC_CHARSET_THAI QsciScintillaBase__ = 222 + QsciScintillaBase__SC_CHARSET_8859_15 QsciScintillaBase__ = 1000 + QsciScintillaBase__SC_CASE_MIXED QsciScintillaBase__ = 0 + QsciScintillaBase__SC_CASE_UPPER QsciScintillaBase__ = 1 + QsciScintillaBase__SC_CASE_LOWER QsciScintillaBase__ = 2 + QsciScintillaBase__SC_CASE_CAMEL QsciScintillaBase__ = 3 + QsciScintillaBase__SC_IV_NONE QsciScintillaBase__ = 0 + QsciScintillaBase__SC_IV_REAL QsciScintillaBase__ = 1 + QsciScintillaBase__SC_IV_LOOKFORWARD QsciScintillaBase__ = 2 + QsciScintillaBase__SC_IV_LOOKBOTH QsciScintillaBase__ = 3 + QsciScintillaBase__INDIC_PLAIN QsciScintillaBase__ = 0 + QsciScintillaBase__INDIC_SQUIGGLE QsciScintillaBase__ = 1 + QsciScintillaBase__INDIC_TT QsciScintillaBase__ = 2 + QsciScintillaBase__INDIC_DIAGONAL QsciScintillaBase__ = 3 + QsciScintillaBase__INDIC_STRIKE QsciScintillaBase__ = 4 + QsciScintillaBase__INDIC_HIDDEN QsciScintillaBase__ = 5 + QsciScintillaBase__INDIC_BOX QsciScintillaBase__ = 6 + QsciScintillaBase__INDIC_ROUNDBOX QsciScintillaBase__ = 7 + QsciScintillaBase__INDIC_STRAIGHTBOX QsciScintillaBase__ = 8 + QsciScintillaBase__INDIC_DASH QsciScintillaBase__ = 9 + QsciScintillaBase__INDIC_DOTS QsciScintillaBase__ = 10 + QsciScintillaBase__INDIC_SQUIGGLELOW QsciScintillaBase__ = 11 + QsciScintillaBase__INDIC_DOTBOX QsciScintillaBase__ = 12 + QsciScintillaBase__INDIC_SQUIGGLEPIXMAP QsciScintillaBase__ = 13 + QsciScintillaBase__INDIC_COMPOSITIONTHICK QsciScintillaBase__ = 14 + QsciScintillaBase__INDIC_COMPOSITIONTHIN QsciScintillaBase__ = 15 + QsciScintillaBase__INDIC_FULLBOX QsciScintillaBase__ = 16 + QsciScintillaBase__INDIC_TEXTFORE QsciScintillaBase__ = 17 + QsciScintillaBase__INDIC_POINT QsciScintillaBase__ = 18 + QsciScintillaBase__INDIC_POINTCHARACTER QsciScintillaBase__ = 19 + QsciScintillaBase__INDIC_GRADIENT QsciScintillaBase__ = 20 + QsciScintillaBase__INDIC_GRADIENTCENTRE QsciScintillaBase__ = 21 + QsciScintillaBase__INDIC_IME QsciScintillaBase__ = 32 + QsciScintillaBase__INDIC_IME_MAX QsciScintillaBase__ = 35 + QsciScintillaBase__INDIC_CONTAINER QsciScintillaBase__ = 8 + QsciScintillaBase__INDIC_MAX QsciScintillaBase__ = 35 + QsciScintillaBase__INDIC0_MASK QsciScintillaBase__ = 32 + QsciScintillaBase__INDIC1_MASK QsciScintillaBase__ = 64 + QsciScintillaBase__INDIC2_MASK QsciScintillaBase__ = 128 + QsciScintillaBase__INDICS_MASK QsciScintillaBase__ = 224 + QsciScintillaBase__SC_INDICVALUEBIT QsciScintillaBase__ = 16777216 + QsciScintillaBase__SC_INDICVALUEMASK QsciScintillaBase__ = 16777215 + QsciScintillaBase__SC_INDICFLAG_VALUEBEFORE QsciScintillaBase__ = 1 + QsciScintillaBase__SC_PRINT_NORMAL QsciScintillaBase__ = 0 + QsciScintillaBase__SC_PRINT_INVERTLIGHT QsciScintillaBase__ = 1 + QsciScintillaBase__SC_PRINT_BLACKONWHITE QsciScintillaBase__ = 2 + QsciScintillaBase__SC_PRINT_COLOURONWHITE QsciScintillaBase__ = 3 + QsciScintillaBase__SC_PRINT_COLOURONWHITEDEFAULTBG QsciScintillaBase__ = 4 + QsciScintillaBase__SC_PRINT_SCREENCOLOURS QsciScintillaBase__ = 5 + QsciScintillaBase__SCFIND_WHOLEWORD QsciScintillaBase__ = 2 + QsciScintillaBase__SCFIND_MATCHCASE QsciScintillaBase__ = 4 + QsciScintillaBase__SCFIND_WORDSTART QsciScintillaBase__ = 1048576 + QsciScintillaBase__SCFIND_REGEXP QsciScintillaBase__ = 2097152 + QsciScintillaBase__SCFIND_POSIX QsciScintillaBase__ = 4194304 + QsciScintillaBase__SCFIND_CXX11REGEX QsciScintillaBase__ = 8388608 + QsciScintillaBase__SC_FOLDDISPLAYTEXT_HIDDEN QsciScintillaBase__ = 0 + QsciScintillaBase__SC_FOLDDISPLAYTEXT_STANDARD QsciScintillaBase__ = 1 + QsciScintillaBase__SC_FOLDDISPLAYTEXT_BOXED QsciScintillaBase__ = 2 + QsciScintillaBase__SC_FOLDLEVELBASE QsciScintillaBase__ = 1024 + QsciScintillaBase__SC_FOLDLEVELWHITEFLAG QsciScintillaBase__ = 4096 + QsciScintillaBase__SC_FOLDLEVELHEADERFLAG QsciScintillaBase__ = 8192 + QsciScintillaBase__SC_FOLDLEVELNUMBERMASK QsciScintillaBase__ = 4095 + QsciScintillaBase__SC_FOLDFLAG_LINEBEFORE_EXPANDED QsciScintillaBase__ = 2 + QsciScintillaBase__SC_FOLDFLAG_LINEBEFORE_CONTRACTED QsciScintillaBase__ = 4 + QsciScintillaBase__SC_FOLDFLAG_LINEAFTER_EXPANDED QsciScintillaBase__ = 8 + QsciScintillaBase__SC_FOLDFLAG_LINEAFTER_CONTRACTED QsciScintillaBase__ = 16 + QsciScintillaBase__SC_FOLDFLAG_LEVELNUMBERS QsciScintillaBase__ = 64 + QsciScintillaBase__SC_FOLDFLAG_LINESTATE QsciScintillaBase__ = 128 + QsciScintillaBase__SC_LINE_END_TYPE_DEFAULT QsciScintillaBase__ = 0 + QsciScintillaBase__SC_LINE_END_TYPE_UNICODE QsciScintillaBase__ = 1 + QsciScintillaBase__SC_TIME_FOREVER QsciScintillaBase__ = 10000000 + QsciScintillaBase__SC_WRAP_NONE QsciScintillaBase__ = 0 + QsciScintillaBase__SC_WRAP_WORD QsciScintillaBase__ = 1 + QsciScintillaBase__SC_WRAP_CHAR QsciScintillaBase__ = 2 + QsciScintillaBase__SC_WRAP_WHITESPACE QsciScintillaBase__ = 3 + QsciScintillaBase__SC_WRAPINDENT_FIXED QsciScintillaBase__ = 0 + QsciScintillaBase__SC_WRAPINDENT_SAME QsciScintillaBase__ = 1 + QsciScintillaBase__SC_WRAPINDENT_INDENT QsciScintillaBase__ = 2 + QsciScintillaBase__SC_WRAPINDENT_DEEPINDENT QsciScintillaBase__ = 3 + QsciScintillaBase__SC_CACHE_NONE QsciScintillaBase__ = 0 + QsciScintillaBase__SC_CACHE_CARET QsciScintillaBase__ = 1 + QsciScintillaBase__SC_CACHE_PAGE QsciScintillaBase__ = 2 + QsciScintillaBase__SC_CACHE_DOCUMENT QsciScintillaBase__ = 3 + QsciScintillaBase__SC_PHASES_ONE QsciScintillaBase__ = 0 + QsciScintillaBase__SC_PHASES_TWO QsciScintillaBase__ = 1 + QsciScintillaBase__SC_PHASES_MULTIPLE QsciScintillaBase__ = 2 + QsciScintillaBase__ANNOTATION_HIDDEN QsciScintillaBase__ = 0 + QsciScintillaBase__ANNOTATION_STANDARD QsciScintillaBase__ = 1 + QsciScintillaBase__ANNOTATION_BOXED QsciScintillaBase__ = 2 + QsciScintillaBase__ANNOTATION_INDENTED QsciScintillaBase__ = 3 + QsciScintillaBase__EDGE_NONE QsciScintillaBase__ = 0 + QsciScintillaBase__EDGE_LINE QsciScintillaBase__ = 1 + QsciScintillaBase__EDGE_BACKGROUND QsciScintillaBase__ = 2 + QsciScintillaBase__EDGE_MULTILINE QsciScintillaBase__ = 3 + QsciScintillaBase__SC_CURSORNORMAL QsciScintillaBase__ = -1 + QsciScintillaBase__SC_CURSORARROW QsciScintillaBase__ = 2 + QsciScintillaBase__SC_CURSORWAIT QsciScintillaBase__ = 4 + QsciScintillaBase__SC_CURSORREVERSEARROW QsciScintillaBase__ = 7 + QsciScintillaBase__UNDO_MAY_COALESCE QsciScintillaBase__ = 1 + QsciScintillaBase__VISIBLE_SLOP QsciScintillaBase__ = 1 + QsciScintillaBase__VISIBLE_STRICT QsciScintillaBase__ = 4 + QsciScintillaBase__CARET_SLOP QsciScintillaBase__ = 1 + QsciScintillaBase__CARET_STRICT QsciScintillaBase__ = 4 + QsciScintillaBase__CARET_JUMPS QsciScintillaBase__ = 16 + QsciScintillaBase__CARET_EVEN QsciScintillaBase__ = 8 + QsciScintillaBase__CARETSTYLE_INVISIBLE QsciScintillaBase__ = 0 + QsciScintillaBase__CARETSTYLE_LINE QsciScintillaBase__ = 1 + QsciScintillaBase__CARETSTYLE_BLOCK QsciScintillaBase__ = 2 + QsciScintillaBase__SC_MOD_INSERTTEXT QsciScintillaBase__ = 1 + QsciScintillaBase__SC_MOD_DELETETEXT QsciScintillaBase__ = 2 + QsciScintillaBase__SC_MOD_CHANGESTYLE QsciScintillaBase__ = 4 + QsciScintillaBase__SC_MOD_CHANGEFOLD QsciScintillaBase__ = 8 + QsciScintillaBase__SC_PERFORMED_USER QsciScintillaBase__ = 16 + QsciScintillaBase__SC_PERFORMED_UNDO QsciScintillaBase__ = 32 + QsciScintillaBase__SC_PERFORMED_REDO QsciScintillaBase__ = 64 + QsciScintillaBase__SC_MULTISTEPUNDOREDO QsciScintillaBase__ = 128 + QsciScintillaBase__SC_LASTSTEPINUNDOREDO QsciScintillaBase__ = 256 + QsciScintillaBase__SC_MOD_CHANGEMARKER QsciScintillaBase__ = 512 + QsciScintillaBase__SC_MOD_BEFOREINSERT QsciScintillaBase__ = 1024 + QsciScintillaBase__SC_MOD_BEFOREDELETE QsciScintillaBase__ = 2048 + QsciScintillaBase__SC_MULTILINEUNDOREDO QsciScintillaBase__ = 4096 + QsciScintillaBase__SC_STARTACTION QsciScintillaBase__ = 8192 + QsciScintillaBase__SC_MOD_CHANGEINDICATOR QsciScintillaBase__ = 16384 + QsciScintillaBase__SC_MOD_CHANGELINESTATE QsciScintillaBase__ = 32768 + QsciScintillaBase__SC_MOD_CHANGEMARGIN QsciScintillaBase__ = 65536 + QsciScintillaBase__SC_MOD_CHANGEANNOTATION QsciScintillaBase__ = 131072 + QsciScintillaBase__SC_MOD_CONTAINER QsciScintillaBase__ = 262144 + QsciScintillaBase__SC_MOD_LEXERSTATE QsciScintillaBase__ = 524288 + QsciScintillaBase__SC_MOD_INSERTCHECK QsciScintillaBase__ = 1048576 + QsciScintillaBase__SC_MOD_CHANGETABSTOPS QsciScintillaBase__ = 2097152 + QsciScintillaBase__SC_MODEVENTMASKALL QsciScintillaBase__ = 4194303 + QsciScintillaBase__SCK_DOWN QsciScintillaBase__ = 300 + QsciScintillaBase__SCK_UP QsciScintillaBase__ = 301 + QsciScintillaBase__SCK_LEFT QsciScintillaBase__ = 302 + QsciScintillaBase__SCK_RIGHT QsciScintillaBase__ = 303 + QsciScintillaBase__SCK_HOME QsciScintillaBase__ = 304 + QsciScintillaBase__SCK_END QsciScintillaBase__ = 305 + QsciScintillaBase__SCK_PRIOR QsciScintillaBase__ = 306 + QsciScintillaBase__SCK_NEXT QsciScintillaBase__ = 307 + QsciScintillaBase__SCK_DELETE QsciScintillaBase__ = 308 + QsciScintillaBase__SCK_INSERT QsciScintillaBase__ = 309 + QsciScintillaBase__SCK_ESCAPE QsciScintillaBase__ = 7 + QsciScintillaBase__SCK_BACK QsciScintillaBase__ = 8 + QsciScintillaBase__SCK_TAB QsciScintillaBase__ = 9 + QsciScintillaBase__SCK_RETURN QsciScintillaBase__ = 13 + QsciScintillaBase__SCK_ADD QsciScintillaBase__ = 310 + QsciScintillaBase__SCK_SUBTRACT QsciScintillaBase__ = 311 + QsciScintillaBase__SCK_DIVIDE QsciScintillaBase__ = 312 + QsciScintillaBase__SCK_WIN QsciScintillaBase__ = 313 + QsciScintillaBase__SCK_RWIN QsciScintillaBase__ = 314 + QsciScintillaBase__SCK_MENU QsciScintillaBase__ = 315 + QsciScintillaBase__SCMOD_NORM QsciScintillaBase__ = 0 + QsciScintillaBase__SCMOD_SHIFT QsciScintillaBase__ = 1 + QsciScintillaBase__SCMOD_CTRL QsciScintillaBase__ = 2 + QsciScintillaBase__SCMOD_ALT QsciScintillaBase__ = 4 + QsciScintillaBase__SCMOD_SUPER QsciScintillaBase__ = 8 + QsciScintillaBase__SCMOD_META QsciScintillaBase__ = 16 + QsciScintillaBase__SCLEX_CONTAINER QsciScintillaBase__ = 0 + QsciScintillaBase__SCLEX_NULL QsciScintillaBase__ = 1 + QsciScintillaBase__SCLEX_PYTHON QsciScintillaBase__ = 2 + QsciScintillaBase__SCLEX_CPP QsciScintillaBase__ = 3 + QsciScintillaBase__SCLEX_HTML QsciScintillaBase__ = 4 + QsciScintillaBase__SCLEX_XML QsciScintillaBase__ = 5 + QsciScintillaBase__SCLEX_PERL QsciScintillaBase__ = 6 + QsciScintillaBase__SCLEX_SQL QsciScintillaBase__ = 7 + QsciScintillaBase__SCLEX_VB QsciScintillaBase__ = 8 + QsciScintillaBase__SCLEX_PROPERTIES QsciScintillaBase__ = 9 + QsciScintillaBase__SCLEX_ERRORLIST QsciScintillaBase__ = 10 + QsciScintillaBase__SCLEX_MAKEFILE QsciScintillaBase__ = 11 + QsciScintillaBase__SCLEX_BATCH QsciScintillaBase__ = 12 + QsciScintillaBase__SCLEX_LATEX QsciScintillaBase__ = 14 + QsciScintillaBase__SCLEX_LUA QsciScintillaBase__ = 15 + QsciScintillaBase__SCLEX_DIFF QsciScintillaBase__ = 16 + QsciScintillaBase__SCLEX_CONF QsciScintillaBase__ = 17 + QsciScintillaBase__SCLEX_PASCAL QsciScintillaBase__ = 18 + QsciScintillaBase__SCLEX_AVE QsciScintillaBase__ = 19 + QsciScintillaBase__SCLEX_ADA QsciScintillaBase__ = 20 + QsciScintillaBase__SCLEX_LISP QsciScintillaBase__ = 21 + QsciScintillaBase__SCLEX_RUBY QsciScintillaBase__ = 22 + QsciScintillaBase__SCLEX_EIFFEL QsciScintillaBase__ = 23 + QsciScintillaBase__SCLEX_EIFFELKW QsciScintillaBase__ = 24 + QsciScintillaBase__SCLEX_TCL QsciScintillaBase__ = 25 + QsciScintillaBase__SCLEX_NNCRONTAB QsciScintillaBase__ = 26 + QsciScintillaBase__SCLEX_BULLANT QsciScintillaBase__ = 27 + QsciScintillaBase__SCLEX_VBSCRIPT QsciScintillaBase__ = 28 + QsciScintillaBase__SCLEX_ASP QsciScintillaBase__ = 4 + QsciScintillaBase__SCLEX_PHP QsciScintillaBase__ = 4 + QsciScintillaBase__SCLEX_BAAN QsciScintillaBase__ = 31 + QsciScintillaBase__SCLEX_MATLAB QsciScintillaBase__ = 32 + QsciScintillaBase__SCLEX_SCRIPTOL QsciScintillaBase__ = 33 + QsciScintillaBase__SCLEX_ASM QsciScintillaBase__ = 34 + QsciScintillaBase__SCLEX_CPPNOCASE QsciScintillaBase__ = 35 + QsciScintillaBase__SCLEX_FORTRAN QsciScintillaBase__ = 36 + QsciScintillaBase__SCLEX_F77 QsciScintillaBase__ = 37 + QsciScintillaBase__SCLEX_CSS QsciScintillaBase__ = 38 + QsciScintillaBase__SCLEX_POV QsciScintillaBase__ = 39 + QsciScintillaBase__SCLEX_LOUT QsciScintillaBase__ = 40 + QsciScintillaBase__SCLEX_ESCRIPT QsciScintillaBase__ = 41 + QsciScintillaBase__SCLEX_PS QsciScintillaBase__ = 42 + QsciScintillaBase__SCLEX_NSIS QsciScintillaBase__ = 43 + QsciScintillaBase__SCLEX_MMIXAL QsciScintillaBase__ = 44 + QsciScintillaBase__SCLEX_CLW QsciScintillaBase__ = 45 + QsciScintillaBase__SCLEX_CLWNOCASE QsciScintillaBase__ = 46 + QsciScintillaBase__SCLEX_LOT QsciScintillaBase__ = 47 + QsciScintillaBase__SCLEX_YAML QsciScintillaBase__ = 48 + QsciScintillaBase__SCLEX_TEX QsciScintillaBase__ = 49 + QsciScintillaBase__SCLEX_METAPOST QsciScintillaBase__ = 50 + QsciScintillaBase__SCLEX_POWERBASIC QsciScintillaBase__ = 51 + QsciScintillaBase__SCLEX_FORTH QsciScintillaBase__ = 52 + QsciScintillaBase__SCLEX_ERLANG QsciScintillaBase__ = 53 + QsciScintillaBase__SCLEX_OCTAVE QsciScintillaBase__ = 54 + QsciScintillaBase__SCLEX_MSSQL QsciScintillaBase__ = 55 + QsciScintillaBase__SCLEX_VERILOG QsciScintillaBase__ = 56 + QsciScintillaBase__SCLEX_KIX QsciScintillaBase__ = 57 + QsciScintillaBase__SCLEX_GUI4CLI QsciScintillaBase__ = 58 + QsciScintillaBase__SCLEX_SPECMAN QsciScintillaBase__ = 59 + QsciScintillaBase__SCLEX_AU3 QsciScintillaBase__ = 60 + QsciScintillaBase__SCLEX_APDL QsciScintillaBase__ = 61 + QsciScintillaBase__SCLEX_BASH QsciScintillaBase__ = 62 + QsciScintillaBase__SCLEX_ASN1 QsciScintillaBase__ = 63 + QsciScintillaBase__SCLEX_VHDL QsciScintillaBase__ = 64 + QsciScintillaBase__SCLEX_CAML QsciScintillaBase__ = 65 + QsciScintillaBase__SCLEX_BLITZBASIC QsciScintillaBase__ = 66 + QsciScintillaBase__SCLEX_PUREBASIC QsciScintillaBase__ = 67 + QsciScintillaBase__SCLEX_HASKELL QsciScintillaBase__ = 68 + QsciScintillaBase__SCLEX_PHPSCRIPT QsciScintillaBase__ = 69 + QsciScintillaBase__SCLEX_TADS3 QsciScintillaBase__ = 70 + QsciScintillaBase__SCLEX_REBOL QsciScintillaBase__ = 71 + QsciScintillaBase__SCLEX_SMALLTALK QsciScintillaBase__ = 72 + QsciScintillaBase__SCLEX_FLAGSHIP QsciScintillaBase__ = 73 + QsciScintillaBase__SCLEX_CSOUND QsciScintillaBase__ = 74 + QsciScintillaBase__SCLEX_FREEBASIC QsciScintillaBase__ = 75 + QsciScintillaBase__SCLEX_INNOSETUP QsciScintillaBase__ = 76 + QsciScintillaBase__SCLEX_OPAL QsciScintillaBase__ = 77 + QsciScintillaBase__SCLEX_SPICE QsciScintillaBase__ = 78 + QsciScintillaBase__SCLEX_D QsciScintillaBase__ = 79 + QsciScintillaBase__SCLEX_CMAKE QsciScintillaBase__ = 80 + QsciScintillaBase__SCLEX_GAP QsciScintillaBase__ = 81 + QsciScintillaBase__SCLEX_PLM QsciScintillaBase__ = 82 + QsciScintillaBase__SCLEX_PROGRESS QsciScintillaBase__ = 83 + QsciScintillaBase__SCLEX_ABAQUS QsciScintillaBase__ = 84 + QsciScintillaBase__SCLEX_ASYMPTOTE QsciScintillaBase__ = 85 + QsciScintillaBase__SCLEX_R QsciScintillaBase__ = 86 + QsciScintillaBase__SCLEX_MAGIK QsciScintillaBase__ = 87 + QsciScintillaBase__SCLEX_POWERSHELL QsciScintillaBase__ = 88 + QsciScintillaBase__SCLEX_MYSQL QsciScintillaBase__ = 89 + QsciScintillaBase__SCLEX_PO QsciScintillaBase__ = 90 + QsciScintillaBase__SCLEX_TAL QsciScintillaBase__ = 91 + QsciScintillaBase__SCLEX_COBOL QsciScintillaBase__ = 92 + QsciScintillaBase__SCLEX_TACL QsciScintillaBase__ = 93 + QsciScintillaBase__SCLEX_SORCUS QsciScintillaBase__ = 94 + QsciScintillaBase__SCLEX_POWERPRO QsciScintillaBase__ = 95 + QsciScintillaBase__SCLEX_NIMROD QsciScintillaBase__ = 96 + QsciScintillaBase__SCLEX_SML QsciScintillaBase__ = 97 + QsciScintillaBase__SCLEX_MARKDOWN QsciScintillaBase__ = 98 + QsciScintillaBase__SCLEX_TXT2TAGS QsciScintillaBase__ = 99 + QsciScintillaBase__SCLEX_A68K QsciScintillaBase__ = 100 + QsciScintillaBase__SCLEX_MODULA QsciScintillaBase__ = 101 + QsciScintillaBase__SCLEX_COFFEESCRIPT QsciScintillaBase__ = 102 + QsciScintillaBase__SCLEX_TCMD QsciScintillaBase__ = 103 + QsciScintillaBase__SCLEX_AVS QsciScintillaBase__ = 104 + QsciScintillaBase__SCLEX_ECL QsciScintillaBase__ = 105 + QsciScintillaBase__SCLEX_OSCRIPT QsciScintillaBase__ = 106 + QsciScintillaBase__SCLEX_VISUALPROLOG QsciScintillaBase__ = 107 + QsciScintillaBase__SCLEX_LITERATEHASKELL QsciScintillaBase__ = 108 + QsciScintillaBase__SCLEX_STTXT QsciScintillaBase__ = 109 + QsciScintillaBase__SCLEX_KVIRC QsciScintillaBase__ = 110 + QsciScintillaBase__SCLEX_RUST QsciScintillaBase__ = 111 + QsciScintillaBase__SCLEX_DMAP QsciScintillaBase__ = 112 + QsciScintillaBase__SCLEX_AS QsciScintillaBase__ = 113 + QsciScintillaBase__SCLEX_DMIS QsciScintillaBase__ = 114 + QsciScintillaBase__SCLEX_REGISTRY QsciScintillaBase__ = 115 + QsciScintillaBase__SCLEX_BIBTEX QsciScintillaBase__ = 116 + QsciScintillaBase__SCLEX_SREC QsciScintillaBase__ = 117 + QsciScintillaBase__SCLEX_IHEX QsciScintillaBase__ = 118 + QsciScintillaBase__SCLEX_TEHEX QsciScintillaBase__ = 119 + QsciScintillaBase__SCLEX_JSON QsciScintillaBase__ = 120 + QsciScintillaBase__SCLEX_EDIFACT QsciScintillaBase__ = 121 + QsciScintillaBase__SCLEX_INDENT QsciScintillaBase__ = 122 + QsciScintillaBase__SCLEX_MAXIMA QsciScintillaBase__ = 123 + QsciScintillaBase__SCLEX_STATA QsciScintillaBase__ = 124 + QsciScintillaBase__SCLEX_SAS QsciScintillaBase__ = 125 + QsciScintillaBase__SC_WEIGHT_NORMAL QsciScintillaBase__ = 400 + QsciScintillaBase__SC_WEIGHT_SEMIBOLD QsciScintillaBase__ = 600 + QsciScintillaBase__SC_WEIGHT_BOLD QsciScintillaBase__ = 700 + QsciScintillaBase__SC_TECHNOLOGY_DEFAULT QsciScintillaBase__ = 0 + QsciScintillaBase__SC_TECHNOLOGY_DIRECTWRITE QsciScintillaBase__ = 1 + QsciScintillaBase__SC_TECHNOLOGY_DIRECTWRITERETAIN QsciScintillaBase__ = 2 + QsciScintillaBase__SC_TECHNOLOGY_DIRECTWRITEDC QsciScintillaBase__ = 3 + QsciScintillaBase__SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE QsciScintillaBase__ = 0 + QsciScintillaBase__SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE QsciScintillaBase__ = 1 + QsciScintillaBase__SC_FONT_SIZE_MULTIPLIER QsciScintillaBase__ = 100 + QsciScintillaBase__SC_FOLDACTION_CONTRACT QsciScintillaBase__ = 0 + QsciScintillaBase__SC_FOLDACTION_EXPAND QsciScintillaBase__ = 1 + QsciScintillaBase__SC_FOLDACTION_TOGGLE QsciScintillaBase__ = 2 + QsciScintillaBase__SC_AUTOMATICFOLD_SHOW QsciScintillaBase__ = 1 + QsciScintillaBase__SC_AUTOMATICFOLD_CLICK QsciScintillaBase__ = 2 + QsciScintillaBase__SC_AUTOMATICFOLD_CHANGE QsciScintillaBase__ = 4 + QsciScintillaBase__SC_ORDER_PRESORTED QsciScintillaBase__ = 0 + QsciScintillaBase__SC_ORDER_PERFORMSORT QsciScintillaBase__ = 1 + QsciScintillaBase__SC_ORDER_CUSTOM QsciScintillaBase__ = 2 +) + +type QsciScintillaBase struct { + h *C.QsciScintillaBase + *qt.QAbstractScrollArea +} + +func (this *QsciScintillaBase) cPointer() *C.QsciScintillaBase { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciScintillaBase) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciScintillaBase(h *C.QsciScintillaBase) *QsciScintillaBase { + if h == nil { + return nil + } + return &QsciScintillaBase{h: h, QAbstractScrollArea: qt.UnsafeNewQAbstractScrollArea(unsafe.Pointer(h))} +} + +func UnsafeNewQsciScintillaBase(h unsafe.Pointer) *QsciScintillaBase { + return newQsciScintillaBase((*C.QsciScintillaBase)(h)) +} + +// NewQsciScintillaBase constructs a new QsciScintillaBase object. +func NewQsciScintillaBase() *QsciScintillaBase { + ret := C.QsciScintillaBase_new() + return newQsciScintillaBase(ret) +} + +// NewQsciScintillaBase2 constructs a new QsciScintillaBase object. +func NewQsciScintillaBase2(parent *qt.QWidget) *QsciScintillaBase { + ret := C.QsciScintillaBase_new2((*C.QWidget)(parent.UnsafePointer())) + return newQsciScintillaBase(ret) +} + +func (this *QsciScintillaBase) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QsciScintillaBase_MetaObject(this.h))) +} + +func (this *QsciScintillaBase) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.QsciScintillaBase_Metacast(this.h, param1_Cstring)) +} + +func QsciScintillaBase_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciScintillaBase_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciScintillaBase_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.QsciScintillaBase_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciScintillaBase_Pool() *QsciScintillaBase { + return UnsafeNewQsciScintillaBase(unsafe.Pointer(C.QsciScintillaBase_Pool())) +} + +func (this *QsciScintillaBase) ReplaceHorizontalScrollBar(scrollBar *qt.QScrollBar) { + C.QsciScintillaBase_ReplaceHorizontalScrollBar(this.h, (*C.QScrollBar)(scrollBar.UnsafePointer())) +} + +func (this *QsciScintillaBase) ReplaceVerticalScrollBar(scrollBar *qt.QScrollBar) { + C.QsciScintillaBase_ReplaceVerticalScrollBar(this.h, (*C.QScrollBar)(scrollBar.UnsafePointer())) +} + +func (this *QsciScintillaBase) SendScintilla(msg uint) int64 { + return (int64)(C.QsciScintillaBase_SendScintilla(this.h, (C.uint)(msg))) +} + +func (this *QsciScintillaBase) SendScintilla2(msg uint, wParam uint64, lParam unsafe.Pointer) int64 { + return (int64)(C.QsciScintillaBase_SendScintilla2(this.h, (C.uint)(msg), (C.ulong)(wParam), lParam)) +} + +func (this *QsciScintillaBase) SendScintilla3(msg uint, wParam uintptr, lParam string) int64 { + lParam_Cstring := C.CString(lParam) + defer C.free(unsafe.Pointer(lParam_Cstring)) + return (int64)(C.QsciScintillaBase_SendScintilla3(this.h, (C.uint)(msg), (C.uintptr_t)(wParam), lParam_Cstring)) +} + +func (this *QsciScintillaBase) SendScintilla4(msg uint, lParam string) int64 { + lParam_Cstring := C.CString(lParam) + defer C.free(unsafe.Pointer(lParam_Cstring)) + return (int64)(C.QsciScintillaBase_SendScintilla4(this.h, (C.uint)(msg), lParam_Cstring)) +} + +func (this *QsciScintillaBase) SendScintilla5(msg uint, wParam string, lParam string) int64 { + wParam_Cstring := C.CString(wParam) + defer C.free(unsafe.Pointer(wParam_Cstring)) + lParam_Cstring := C.CString(lParam) + defer C.free(unsafe.Pointer(lParam_Cstring)) + return (int64)(C.QsciScintillaBase_SendScintilla5(this.h, (C.uint)(msg), wParam_Cstring, lParam_Cstring)) +} + +func (this *QsciScintillaBase) SendScintilla6(msg uint, wParam int64) int64 { + return (int64)(C.QsciScintillaBase_SendScintilla6(this.h, (C.uint)(msg), (C.long)(wParam))) +} + +func (this *QsciScintillaBase) SendScintilla7(msg uint, wParam int) int64 { + return (int64)(C.QsciScintillaBase_SendScintilla7(this.h, (C.uint)(msg), (C.int)(wParam))) +} + +func (this *QsciScintillaBase) SendScintilla8(msg uint, cpMin int64, cpMax int64, lpstrText string) int64 { + lpstrText_Cstring := C.CString(lpstrText) + defer C.free(unsafe.Pointer(lpstrText_Cstring)) + return (int64)(C.QsciScintillaBase_SendScintilla8(this.h, (C.uint)(msg), (C.long)(cpMin), (C.long)(cpMax), lpstrText_Cstring)) +} + +func (this *QsciScintillaBase) SendScintilla9(msg uint, wParam uint64, col *qt.QColor) int64 { + return (int64)(C.QsciScintillaBase_SendScintilla9(this.h, (C.uint)(msg), (C.ulong)(wParam), (*C.QColor)(col.UnsafePointer()))) +} + +func (this *QsciScintillaBase) SendScintilla10(msg uint, col *qt.QColor) int64 { + return (int64)(C.QsciScintillaBase_SendScintilla10(this.h, (C.uint)(msg), (*C.QColor)(col.UnsafePointer()))) +} + +func (this *QsciScintillaBase) SendScintilla11(msg uint, wParam uint64, hdc *qt.QPainter, rc *qt.QRect, cpMin int64, cpMax int64) int64 { + return (int64)(C.QsciScintillaBase_SendScintilla11(this.h, (C.uint)(msg), (C.ulong)(wParam), (*C.QPainter)(hdc.UnsafePointer()), (*C.QRect)(rc.UnsafePointer()), (C.long)(cpMin), (C.long)(cpMax))) +} + +func (this *QsciScintillaBase) SendScintilla12(msg uint, wParam uint64, lParam *qt.QPixmap) int64 { + return (int64)(C.QsciScintillaBase_SendScintilla12(this.h, (C.uint)(msg), (C.ulong)(wParam), (*C.QPixmap)(lParam.UnsafePointer()))) +} + +func (this *QsciScintillaBase) SendScintilla13(msg uint, wParam uint64, lParam *qt.QImage) int64 { + return (int64)(C.QsciScintillaBase_SendScintilla13(this.h, (C.uint)(msg), (C.ulong)(wParam), (*C.QImage)(lParam.UnsafePointer()))) +} + +func (this *QsciScintillaBase) SendScintillaPtrResult(msg uint) unsafe.Pointer { + return (unsafe.Pointer)(C.QsciScintillaBase_SendScintillaPtrResult(this.h, (C.uint)(msg))) +} + +func QsciScintillaBase_CommandKey(qt_key int, modifiers *int) int { + return (int)(C.QsciScintillaBase_CommandKey((C.int)(qt_key), (*C.int)(unsafe.Pointer(modifiers)))) +} + +func (this *QsciScintillaBase) QSCN_SELCHANGED(yes bool) { + C.QsciScintillaBase_QSCN_SELCHANGED(this.h, (C.bool)(yes)) +} +func (this *QsciScintillaBase) OnQSCN_SELCHANGED(slot func(yes bool)) { + C.QsciScintillaBase_connect_QSCN_SELCHANGED(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_QSCN_SELCHANGED +func miqt_exec_callback_QsciScintillaBase_QSCN_SELCHANGED(cb C.intptr_t, yes C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(yes bool)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (bool)(yes) + + gofunc(slotval1) +} + +func (this *QsciScintillaBase) SCN_AUTOCCANCELLED() { + C.QsciScintillaBase_SCN_AUTOCCANCELLED(this.h) +} +func (this *QsciScintillaBase) OnSCN_AUTOCCANCELLED(slot func()) { + C.QsciScintillaBase_connect_SCN_AUTOCCANCELLED(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_AUTOCCANCELLED +func miqt_exec_callback_QsciScintillaBase_SCN_AUTOCCANCELLED(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciScintillaBase) SCN_AUTOCCHARDELETED() { + C.QsciScintillaBase_SCN_AUTOCCHARDELETED(this.h) +} +func (this *QsciScintillaBase) OnSCN_AUTOCCHARDELETED(slot func()) { + C.QsciScintillaBase_connect_SCN_AUTOCCHARDELETED(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_AUTOCCHARDELETED +func miqt_exec_callback_QsciScintillaBase_SCN_AUTOCCHARDELETED(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciScintillaBase) SCN_AUTOCCOMPLETED(selection string, position int, ch int, method int) { + selection_Cstring := C.CString(selection) + defer C.free(unsafe.Pointer(selection_Cstring)) + C.QsciScintillaBase_SCN_AUTOCCOMPLETED(this.h, selection_Cstring, (C.int)(position), (C.int)(ch), (C.int)(method)) +} +func (this *QsciScintillaBase) OnSCN_AUTOCCOMPLETED(slot func(selection string, position int, ch int, method int)) { + C.QsciScintillaBase_connect_SCN_AUTOCCOMPLETED(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_AUTOCCOMPLETED +func miqt_exec_callback_QsciScintillaBase_SCN_AUTOCCOMPLETED(cb C.intptr_t, selection *C.const_char, position C.int, ch C.int, method C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(selection string, position int, ch int, method int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + selection_ret := selection + slotval1 := C.GoString(selection_ret) + + slotval2 := (int)(position) + + slotval3 := (int)(ch) + + slotval4 := (int)(method) + + gofunc(slotval1, slotval2, slotval3, slotval4) +} + +func (this *QsciScintillaBase) SCN_AUTOCSELECTION(selection string, position int, ch int, method int) { + selection_Cstring := C.CString(selection) + defer C.free(unsafe.Pointer(selection_Cstring)) + C.QsciScintillaBase_SCN_AUTOCSELECTION(this.h, selection_Cstring, (C.int)(position), (C.int)(ch), (C.int)(method)) +} +func (this *QsciScintillaBase) OnSCN_AUTOCSELECTION(slot func(selection string, position int, ch int, method int)) { + C.QsciScintillaBase_connect_SCN_AUTOCSELECTION(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_AUTOCSELECTION +func miqt_exec_callback_QsciScintillaBase_SCN_AUTOCSELECTION(cb C.intptr_t, selection *C.const_char, position C.int, ch C.int, method C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(selection string, position int, ch int, method int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + selection_ret := selection + slotval1 := C.GoString(selection_ret) + + slotval2 := (int)(position) + + slotval3 := (int)(ch) + + slotval4 := (int)(method) + + gofunc(slotval1, slotval2, slotval3, slotval4) +} + +func (this *QsciScintillaBase) SCN_AUTOCSELECTION2(selection string, position int) { + selection_Cstring := C.CString(selection) + defer C.free(unsafe.Pointer(selection_Cstring)) + C.QsciScintillaBase_SCN_AUTOCSELECTION2(this.h, selection_Cstring, (C.int)(position)) +} +func (this *QsciScintillaBase) OnSCN_AUTOCSELECTION2(slot func(selection string, position int)) { + C.QsciScintillaBase_connect_SCN_AUTOCSELECTION2(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_AUTOCSELECTION2 +func miqt_exec_callback_QsciScintillaBase_SCN_AUTOCSELECTION2(cb C.intptr_t, selection *C.const_char, position C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(selection string, position int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + selection_ret := selection + slotval1 := C.GoString(selection_ret) + + slotval2 := (int)(position) + + gofunc(slotval1, slotval2) +} + +func (this *QsciScintillaBase) SCN_AUTOCSELECTIONCHANGE(selection string, id int, position int) { + selection_Cstring := C.CString(selection) + defer C.free(unsafe.Pointer(selection_Cstring)) + C.QsciScintillaBase_SCN_AUTOCSELECTIONCHANGE(this.h, selection_Cstring, (C.int)(id), (C.int)(position)) +} +func (this *QsciScintillaBase) OnSCN_AUTOCSELECTIONCHANGE(slot func(selection string, id int, position int)) { + C.QsciScintillaBase_connect_SCN_AUTOCSELECTIONCHANGE(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_AUTOCSELECTIONCHANGE +func miqt_exec_callback_QsciScintillaBase_SCN_AUTOCSELECTIONCHANGE(cb C.intptr_t, selection *C.const_char, id C.int, position C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(selection string, id int, position int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + selection_ret := selection + slotval1 := C.GoString(selection_ret) + + slotval2 := (int)(id) + + slotval3 := (int)(position) + + gofunc(slotval1, slotval2, slotval3) +} + +func (this *QsciScintillaBase) SCEN_CHANGE() { + C.QsciScintillaBase_SCEN_CHANGE(this.h) +} +func (this *QsciScintillaBase) OnSCEN_CHANGE(slot func()) { + C.QsciScintillaBase_connect_SCEN_CHANGE(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCEN_CHANGE +func miqt_exec_callback_QsciScintillaBase_SCEN_CHANGE(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciScintillaBase) SCN_CALLTIPCLICK(direction int) { + C.QsciScintillaBase_SCN_CALLTIPCLICK(this.h, (C.int)(direction)) +} +func (this *QsciScintillaBase) OnSCN_CALLTIPCLICK(slot func(direction int)) { + C.QsciScintillaBase_connect_SCN_CALLTIPCLICK(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_CALLTIPCLICK +func miqt_exec_callback_QsciScintillaBase_SCN_CALLTIPCLICK(cb C.intptr_t, direction C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(direction int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(direction) + + gofunc(slotval1) +} + +func (this *QsciScintillaBase) SCN_CHARADDED(charadded int) { + C.QsciScintillaBase_SCN_CHARADDED(this.h, (C.int)(charadded)) +} +func (this *QsciScintillaBase) OnSCN_CHARADDED(slot func(charadded int)) { + C.QsciScintillaBase_connect_SCN_CHARADDED(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_CHARADDED +func miqt_exec_callback_QsciScintillaBase_SCN_CHARADDED(cb C.intptr_t, charadded C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(charadded int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(charadded) + + gofunc(slotval1) +} + +func (this *QsciScintillaBase) SCN_DOUBLECLICK(position int, line int, modifiers int) { + C.QsciScintillaBase_SCN_DOUBLECLICK(this.h, (C.int)(position), (C.int)(line), (C.int)(modifiers)) +} +func (this *QsciScintillaBase) OnSCN_DOUBLECLICK(slot func(position int, line int, modifiers int)) { + C.QsciScintillaBase_connect_SCN_DOUBLECLICK(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_DOUBLECLICK +func miqt_exec_callback_QsciScintillaBase_SCN_DOUBLECLICK(cb C.intptr_t, position C.int, line C.int, modifiers C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position int, line int, modifiers int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(position) + + slotval2 := (int)(line) + + slotval3 := (int)(modifiers) + + gofunc(slotval1, slotval2, slotval3) +} + +func (this *QsciScintillaBase) SCN_DWELLEND(position int, x int, y int) { + C.QsciScintillaBase_SCN_DWELLEND(this.h, (C.int)(position), (C.int)(x), (C.int)(y)) +} +func (this *QsciScintillaBase) OnSCN_DWELLEND(slot func(position int, x int, y int)) { + C.QsciScintillaBase_connect_SCN_DWELLEND(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_DWELLEND +func miqt_exec_callback_QsciScintillaBase_SCN_DWELLEND(cb C.intptr_t, position C.int, x C.int, y C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position int, x int, y int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(position) + + slotval2 := (int)(x) + + slotval3 := (int)(y) + + gofunc(slotval1, slotval2, slotval3) +} + +func (this *QsciScintillaBase) SCN_DWELLSTART(position int, x int, y int) { + C.QsciScintillaBase_SCN_DWELLSTART(this.h, (C.int)(position), (C.int)(x), (C.int)(y)) +} +func (this *QsciScintillaBase) OnSCN_DWELLSTART(slot func(position int, x int, y int)) { + C.QsciScintillaBase_connect_SCN_DWELLSTART(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_DWELLSTART +func miqt_exec_callback_QsciScintillaBase_SCN_DWELLSTART(cb C.intptr_t, position C.int, x C.int, y C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position int, x int, y int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(position) + + slotval2 := (int)(x) + + slotval3 := (int)(y) + + gofunc(slotval1, slotval2, slotval3) +} + +func (this *QsciScintillaBase) SCN_FOCUSIN() { + C.QsciScintillaBase_SCN_FOCUSIN(this.h) +} +func (this *QsciScintillaBase) OnSCN_FOCUSIN(slot func()) { + C.QsciScintillaBase_connect_SCN_FOCUSIN(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_FOCUSIN +func miqt_exec_callback_QsciScintillaBase_SCN_FOCUSIN(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciScintillaBase) SCN_FOCUSOUT() { + C.QsciScintillaBase_SCN_FOCUSOUT(this.h) +} +func (this *QsciScintillaBase) OnSCN_FOCUSOUT(slot func()) { + C.QsciScintillaBase_connect_SCN_FOCUSOUT(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_FOCUSOUT +func miqt_exec_callback_QsciScintillaBase_SCN_FOCUSOUT(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciScintillaBase) SCN_HOTSPOTCLICK(position int, modifiers int) { + C.QsciScintillaBase_SCN_HOTSPOTCLICK(this.h, (C.int)(position), (C.int)(modifiers)) +} +func (this *QsciScintillaBase) OnSCN_HOTSPOTCLICK(slot func(position int, modifiers int)) { + C.QsciScintillaBase_connect_SCN_HOTSPOTCLICK(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_HOTSPOTCLICK +func miqt_exec_callback_QsciScintillaBase_SCN_HOTSPOTCLICK(cb C.intptr_t, position C.int, modifiers C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position int, modifiers int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(position) + + slotval2 := (int)(modifiers) + + gofunc(slotval1, slotval2) +} + +func (this *QsciScintillaBase) SCN_HOTSPOTDOUBLECLICK(position int, modifiers int) { + C.QsciScintillaBase_SCN_HOTSPOTDOUBLECLICK(this.h, (C.int)(position), (C.int)(modifiers)) +} +func (this *QsciScintillaBase) OnSCN_HOTSPOTDOUBLECLICK(slot func(position int, modifiers int)) { + C.QsciScintillaBase_connect_SCN_HOTSPOTDOUBLECLICK(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_HOTSPOTDOUBLECLICK +func miqt_exec_callback_QsciScintillaBase_SCN_HOTSPOTDOUBLECLICK(cb C.intptr_t, position C.int, modifiers C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position int, modifiers int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(position) + + slotval2 := (int)(modifiers) + + gofunc(slotval1, slotval2) +} + +func (this *QsciScintillaBase) SCN_HOTSPOTRELEASECLICK(position int, modifiers int) { + C.QsciScintillaBase_SCN_HOTSPOTRELEASECLICK(this.h, (C.int)(position), (C.int)(modifiers)) +} +func (this *QsciScintillaBase) OnSCN_HOTSPOTRELEASECLICK(slot func(position int, modifiers int)) { + C.QsciScintillaBase_connect_SCN_HOTSPOTRELEASECLICK(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_HOTSPOTRELEASECLICK +func miqt_exec_callback_QsciScintillaBase_SCN_HOTSPOTRELEASECLICK(cb C.intptr_t, position C.int, modifiers C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position int, modifiers int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(position) + + slotval2 := (int)(modifiers) + + gofunc(slotval1, slotval2) +} + +func (this *QsciScintillaBase) SCN_INDICATORCLICK(position int, modifiers int) { + C.QsciScintillaBase_SCN_INDICATORCLICK(this.h, (C.int)(position), (C.int)(modifiers)) +} +func (this *QsciScintillaBase) OnSCN_INDICATORCLICK(slot func(position int, modifiers int)) { + C.QsciScintillaBase_connect_SCN_INDICATORCLICK(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_INDICATORCLICK +func miqt_exec_callback_QsciScintillaBase_SCN_INDICATORCLICK(cb C.intptr_t, position C.int, modifiers C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position int, modifiers int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(position) + + slotval2 := (int)(modifiers) + + gofunc(slotval1, slotval2) +} + +func (this *QsciScintillaBase) SCN_INDICATORRELEASE(position int, modifiers int) { + C.QsciScintillaBase_SCN_INDICATORRELEASE(this.h, (C.int)(position), (C.int)(modifiers)) +} +func (this *QsciScintillaBase) OnSCN_INDICATORRELEASE(slot func(position int, modifiers int)) { + C.QsciScintillaBase_connect_SCN_INDICATORRELEASE(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_INDICATORRELEASE +func miqt_exec_callback_QsciScintillaBase_SCN_INDICATORRELEASE(cb C.intptr_t, position C.int, modifiers C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position int, modifiers int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(position) + + slotval2 := (int)(modifiers) + + gofunc(slotval1, slotval2) +} + +func (this *QsciScintillaBase) SCN_MACRORECORD(param1 uint, param2 uint64, param3 unsafe.Pointer) { + C.QsciScintillaBase_SCN_MACRORECORD(this.h, (C.uint)(param1), (C.ulong)(param2), param3) +} +func (this *QsciScintillaBase) OnSCN_MACRORECORD(slot func(param1 uint, param2 uint64, param3 unsafe.Pointer)) { + C.QsciScintillaBase_connect_SCN_MACRORECORD(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//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) { + 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?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (uint)(param1) + + slotval2 := (uint64)(param2) + + slotval3 := (unsafe.Pointer)(param3) + + gofunc(slotval1, slotval2, slotval3) +} + +func (this *QsciScintillaBase) SCN_MARGINCLICK(position int, modifiers int, margin int) { + C.QsciScintillaBase_SCN_MARGINCLICK(this.h, (C.int)(position), (C.int)(modifiers), (C.int)(margin)) +} +func (this *QsciScintillaBase) OnSCN_MARGINCLICK(slot func(position int, modifiers int, margin int)) { + C.QsciScintillaBase_connect_SCN_MARGINCLICK(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_MARGINCLICK +func miqt_exec_callback_QsciScintillaBase_SCN_MARGINCLICK(cb C.intptr_t, position C.int, modifiers C.int, margin C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position int, modifiers int, margin int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(position) + + slotval2 := (int)(modifiers) + + slotval3 := (int)(margin) + + gofunc(slotval1, slotval2, slotval3) +} + +func (this *QsciScintillaBase) SCN_MARGINRIGHTCLICK(position int, modifiers int, margin int) { + C.QsciScintillaBase_SCN_MARGINRIGHTCLICK(this.h, (C.int)(position), (C.int)(modifiers), (C.int)(margin)) +} +func (this *QsciScintillaBase) OnSCN_MARGINRIGHTCLICK(slot func(position int, modifiers int, margin int)) { + C.QsciScintillaBase_connect_SCN_MARGINRIGHTCLICK(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_MARGINRIGHTCLICK +func miqt_exec_callback_QsciScintillaBase_SCN_MARGINRIGHTCLICK(cb C.intptr_t, position C.int, modifiers C.int, margin C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position int, modifiers int, margin int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(position) + + slotval2 := (int)(modifiers) + + slotval3 := (int)(margin) + + gofunc(slotval1, slotval2, slotval3) +} + +func (this *QsciScintillaBase) SCN_MODIFIED(param1 int, param2 int, param3 string, param4 int, param5 int, param6 int, param7 int, param8 int, param9 int, param10 int) { + param3_Cstring := C.CString(param3) + defer C.free(unsafe.Pointer(param3_Cstring)) + C.QsciScintillaBase_SCN_MODIFIED(this.h, (C.int)(param1), (C.int)(param2), param3_Cstring, (C.int)(param4), (C.int)(param5), (C.int)(param6), (C.int)(param7), (C.int)(param8), (C.int)(param9), (C.int)(param10)) +} +func (this *QsciScintillaBase) OnSCN_MODIFIED(slot func(param1 int, param2 int, param3 string, param4 int, param5 int, param6 int, param7 int, param8 int, param9 int, param10 int)) { + C.QsciScintillaBase_connect_SCN_MODIFIED(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_MODIFIED +func miqt_exec_callback_QsciScintillaBase_SCN_MODIFIED(cb C.intptr_t, param1 C.int, param2 C.int, param3 *C.const_char, param4 C.int, param5 C.int, param6 C.int, param7 C.int, param8 C.int, param9 C.int, param10 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int, param2 int, param3 string, param4 int, param5 int, param6 int, param7 int, param8 int, param9 int, param10 int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(param1) + + slotval2 := (int)(param2) + + param3_ret := param3 + slotval3 := C.GoString(param3_ret) + + slotval4 := (int)(param4) + + slotval5 := (int)(param5) + + slotval6 := (int)(param6) + + slotval7 := (int)(param7) + + slotval8 := (int)(param8) + + slotval9 := (int)(param9) + + slotval10 := (int)(param10) + + gofunc(slotval1, slotval2, slotval3, slotval4, slotval5, slotval6, slotval7, slotval8, slotval9, slotval10) +} + +func (this *QsciScintillaBase) SCN_MODIFYATTEMPTRO() { + C.QsciScintillaBase_SCN_MODIFYATTEMPTRO(this.h) +} +func (this *QsciScintillaBase) OnSCN_MODIFYATTEMPTRO(slot func()) { + C.QsciScintillaBase_connect_SCN_MODIFYATTEMPTRO(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_MODIFYATTEMPTRO +func miqt_exec_callback_QsciScintillaBase_SCN_MODIFYATTEMPTRO(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciScintillaBase) SCN_NEEDSHOWN(param1 int, param2 int) { + C.QsciScintillaBase_SCN_NEEDSHOWN(this.h, (C.int)(param1), (C.int)(param2)) +} +func (this *QsciScintillaBase) OnSCN_NEEDSHOWN(slot func(param1 int, param2 int)) { + C.QsciScintillaBase_connect_SCN_NEEDSHOWN(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_NEEDSHOWN +func miqt_exec_callback_QsciScintillaBase_SCN_NEEDSHOWN(cb C.intptr_t, param1 C.int, param2 C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(param1 int, param2 int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(param1) + + slotval2 := (int)(param2) + + gofunc(slotval1, slotval2) +} + +func (this *QsciScintillaBase) SCN_PAINTED() { + C.QsciScintillaBase_SCN_PAINTED(this.h) +} +func (this *QsciScintillaBase) OnSCN_PAINTED(slot func()) { + C.QsciScintillaBase_connect_SCN_PAINTED(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_PAINTED +func miqt_exec_callback_QsciScintillaBase_SCN_PAINTED(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciScintillaBase) SCN_SAVEPOINTLEFT() { + C.QsciScintillaBase_SCN_SAVEPOINTLEFT(this.h) +} +func (this *QsciScintillaBase) OnSCN_SAVEPOINTLEFT(slot func()) { + C.QsciScintillaBase_connect_SCN_SAVEPOINTLEFT(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_SAVEPOINTLEFT +func miqt_exec_callback_QsciScintillaBase_SCN_SAVEPOINTLEFT(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciScintillaBase) SCN_SAVEPOINTREACHED() { + C.QsciScintillaBase_SCN_SAVEPOINTREACHED(this.h) +} +func (this *QsciScintillaBase) OnSCN_SAVEPOINTREACHED(slot func()) { + C.QsciScintillaBase_connect_SCN_SAVEPOINTREACHED(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_SAVEPOINTREACHED +func miqt_exec_callback_QsciScintillaBase_SCN_SAVEPOINTREACHED(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func (this *QsciScintillaBase) SCN_STYLENEEDED(position int) { + C.QsciScintillaBase_SCN_STYLENEEDED(this.h, (C.int)(position)) +} +func (this *QsciScintillaBase) OnSCN_STYLENEEDED(slot func(position int)) { + C.QsciScintillaBase_connect_SCN_STYLENEEDED(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_STYLENEEDED +func miqt_exec_callback_QsciScintillaBase_SCN_STYLENEEDED(cb C.intptr_t, position C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(position) + + gofunc(slotval1) +} + +func (this *QsciScintillaBase) SCN_URIDROPPED(url *qt.QUrl) { + C.QsciScintillaBase_SCN_URIDROPPED(this.h, (*C.QUrl)(url.UnsafePointer())) +} +func (this *QsciScintillaBase) OnSCN_URIDROPPED(slot func(url *qt.QUrl)) { + C.QsciScintillaBase_connect_SCN_URIDROPPED(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_URIDROPPED +func miqt_exec_callback_QsciScintillaBase_SCN_URIDROPPED(cb C.intptr_t, url *C.QUrl) { + gofunc, ok := cgo.Handle(cb).Value().(func(url *qt.QUrl)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := qt.UnsafeNewQUrl(unsafe.Pointer(url)) + + gofunc(slotval1) +} + +func (this *QsciScintillaBase) SCN_UPDATEUI(updated int) { + C.QsciScintillaBase_SCN_UPDATEUI(this.h, (C.int)(updated)) +} +func (this *QsciScintillaBase) OnSCN_UPDATEUI(slot func(updated int)) { + C.QsciScintillaBase_connect_SCN_UPDATEUI(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_UPDATEUI +func miqt_exec_callback_QsciScintillaBase_SCN_UPDATEUI(cb C.intptr_t, updated C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(updated int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(updated) + + gofunc(slotval1) +} + +func (this *QsciScintillaBase) SCN_USERLISTSELECTION(selection string, id int, ch int, method int, position int) { + selection_Cstring := C.CString(selection) + defer C.free(unsafe.Pointer(selection_Cstring)) + C.QsciScintillaBase_SCN_USERLISTSELECTION(this.h, selection_Cstring, (C.int)(id), (C.int)(ch), (C.int)(method), (C.int)(position)) +} +func (this *QsciScintillaBase) OnSCN_USERLISTSELECTION(slot func(selection string, id int, ch int, method int, position int)) { + C.QsciScintillaBase_connect_SCN_USERLISTSELECTION(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_USERLISTSELECTION +func miqt_exec_callback_QsciScintillaBase_SCN_USERLISTSELECTION(cb C.intptr_t, selection *C.const_char, id C.int, ch C.int, method C.int, position C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(selection string, id int, ch int, method int, position int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + selection_ret := selection + slotval1 := C.GoString(selection_ret) + + slotval2 := (int)(id) + + slotval3 := (int)(ch) + + slotval4 := (int)(method) + + slotval5 := (int)(position) + + gofunc(slotval1, slotval2, slotval3, slotval4, slotval5) +} + +func (this *QsciScintillaBase) SCN_USERLISTSELECTION2(selection string, id int, ch int, method int) { + selection_Cstring := C.CString(selection) + defer C.free(unsafe.Pointer(selection_Cstring)) + C.QsciScintillaBase_SCN_USERLISTSELECTION2(this.h, selection_Cstring, (C.int)(id), (C.int)(ch), (C.int)(method)) +} +func (this *QsciScintillaBase) OnSCN_USERLISTSELECTION2(slot func(selection string, id int, ch int, method int)) { + C.QsciScintillaBase_connect_SCN_USERLISTSELECTION2(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_USERLISTSELECTION2 +func miqt_exec_callback_QsciScintillaBase_SCN_USERLISTSELECTION2(cb C.intptr_t, selection *C.const_char, id C.int, ch C.int, method C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(selection string, id int, ch int, method int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + selection_ret := selection + slotval1 := C.GoString(selection_ret) + + slotval2 := (int)(id) + + slotval3 := (int)(ch) + + slotval4 := (int)(method) + + gofunc(slotval1, slotval2, slotval3, slotval4) +} + +func (this *QsciScintillaBase) SCN_USERLISTSELECTION3(selection string, id int) { + selection_Cstring := C.CString(selection) + defer C.free(unsafe.Pointer(selection_Cstring)) + C.QsciScintillaBase_SCN_USERLISTSELECTION3(this.h, selection_Cstring, (C.int)(id)) +} +func (this *QsciScintillaBase) OnSCN_USERLISTSELECTION3(slot func(selection string, id int)) { + C.QsciScintillaBase_connect_SCN_USERLISTSELECTION3(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_USERLISTSELECTION3 +func miqt_exec_callback_QsciScintillaBase_SCN_USERLISTSELECTION3(cb C.intptr_t, selection *C.const_char, id C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(selection string, id int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + selection_ret := selection + slotval1 := C.GoString(selection_ret) + + slotval2 := (int)(id) + + gofunc(slotval1, slotval2) +} + +func (this *QsciScintillaBase) SCN_ZOOM() { + C.QsciScintillaBase_SCN_ZOOM(this.h) +} +func (this *QsciScintillaBase) OnSCN_ZOOM(slot func()) { + C.QsciScintillaBase_connect_SCN_ZOOM(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_QsciScintillaBase_SCN_ZOOM +func miqt_exec_callback_QsciScintillaBase_SCN_ZOOM(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func QsciScintillaBase_Tr2(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciScintillaBase_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciScintillaBase_Tr3(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciScintillaBase_Tr3(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciScintillaBase_TrUtf82(s string, c string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciScintillaBase_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func QsciScintillaBase_TrUtf83(s string, c string, n int) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + var _ms C.struct_miqt_string = C.QsciScintillaBase_TrUtf83(s_Cstring, c_Cstring, (C.int)(n)) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciScintillaBase) SendScintilla22(msg uint, wParam uint64) int64 { + return (int64)(C.QsciScintillaBase_SendScintilla22(this.h, (C.uint)(msg), (C.ulong)(wParam))) +} + +func (this *QsciScintillaBase) SendScintilla32(msg uint, wParam uint64, lParam int64) int64 { + return (int64)(C.QsciScintillaBase_SendScintilla32(this.h, (C.uint)(msg), (C.ulong)(wParam), (C.long)(lParam))) +} + +// Delete this object from C++ memory. +func (this *QsciScintillaBase) Delete() { + C.QsciScintillaBase_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciScintillaBase) GoGC() { + runtime.SetFinalizer(this, func(this *QsciScintillaBase) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintillabase.h b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.h new file mode 100644 index 00000000..18f8eeb2 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.h @@ -0,0 +1,148 @@ +#ifndef GEN_QSCISCINTILLABASE_H +#define GEN_QSCISCINTILLABASE_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QImage; +class QMetaObject; +class QPainter; +class QPixmap; +class QRect; +class QScrollBar; +class QUrl; +class QWidget; +class QsciScintillaBase; +#else +typedef struct QColor QColor; +typedef struct QImage QImage; +typedef struct QMetaObject QMetaObject; +typedef struct QPainter QPainter; +typedef struct QPixmap QPixmap; +typedef struct QRect QRect; +typedef struct QScrollBar QScrollBar; +typedef struct QUrl QUrl; +typedef struct QWidget QWidget; +typedef struct QsciScintillaBase QsciScintillaBase; +#endif + +QsciScintillaBase* QsciScintillaBase_new(); +QsciScintillaBase* QsciScintillaBase_new2(QWidget* parent); +QMetaObject* QsciScintillaBase_MetaObject(const QsciScintillaBase* self); +void* QsciScintillaBase_Metacast(QsciScintillaBase* self, const char* param1); +struct miqt_string QsciScintillaBase_Tr(const char* s); +struct miqt_string QsciScintillaBase_TrUtf8(const char* s); +QsciScintillaBase* QsciScintillaBase_Pool(); +void QsciScintillaBase_ReplaceHorizontalScrollBar(QsciScintillaBase* self, QScrollBar* scrollBar); +void QsciScintillaBase_ReplaceVerticalScrollBar(QsciScintillaBase* self, QScrollBar* scrollBar); +long QsciScintillaBase_SendScintilla(const QsciScintillaBase* self, unsigned int msg); +long QsciScintillaBase_SendScintilla2(const QsciScintillaBase* self, unsigned int msg, unsigned long wParam, void* lParam); +long QsciScintillaBase_SendScintilla3(const QsciScintillaBase* self, unsigned int msg, uintptr_t wParam, const char* lParam); +long QsciScintillaBase_SendScintilla4(const QsciScintillaBase* self, unsigned int msg, const char* lParam); +long QsciScintillaBase_SendScintilla5(const QsciScintillaBase* self, unsigned int msg, const char* wParam, const char* lParam); +long QsciScintillaBase_SendScintilla6(const QsciScintillaBase* self, unsigned int msg, long wParam); +long QsciScintillaBase_SendScintilla7(const QsciScintillaBase* self, unsigned int msg, int wParam); +long QsciScintillaBase_SendScintilla8(const QsciScintillaBase* self, unsigned int msg, long cpMin, long cpMax, char* lpstrText); +long QsciScintillaBase_SendScintilla9(const QsciScintillaBase* self, unsigned int msg, unsigned long wParam, QColor* col); +long QsciScintillaBase_SendScintilla10(const QsciScintillaBase* self, unsigned int msg, QColor* col); +long QsciScintillaBase_SendScintilla11(const QsciScintillaBase* self, unsigned int msg, unsigned long wParam, QPainter* hdc, QRect* rc, long cpMin, long cpMax); +long QsciScintillaBase_SendScintilla12(const QsciScintillaBase* self, unsigned int msg, unsigned long wParam, QPixmap* lParam); +long QsciScintillaBase_SendScintilla13(const QsciScintillaBase* self, unsigned int msg, unsigned long wParam, QImage* lParam); +void* QsciScintillaBase_SendScintillaPtrResult(const QsciScintillaBase* self, unsigned int msg); +int QsciScintillaBase_CommandKey(int qt_key, int* modifiers); +void QsciScintillaBase_QSCN_SELCHANGED(QsciScintillaBase* self, bool yes); +void QsciScintillaBase_connect_QSCN_SELCHANGED(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_AUTOCCANCELLED(QsciScintillaBase* self); +void QsciScintillaBase_connect_SCN_AUTOCCANCELLED(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_AUTOCCHARDELETED(QsciScintillaBase* self); +void QsciScintillaBase_connect_SCN_AUTOCCHARDELETED(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_AUTOCCOMPLETED(QsciScintillaBase* self, const char* selection, int position, int ch, int method); +void QsciScintillaBase_connect_SCN_AUTOCCOMPLETED(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_AUTOCSELECTION(QsciScintillaBase* self, const char* selection, int position, int ch, int method); +void QsciScintillaBase_connect_SCN_AUTOCSELECTION(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_AUTOCSELECTION2(QsciScintillaBase* self, const char* selection, int position); +void QsciScintillaBase_connect_SCN_AUTOCSELECTION2(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_AUTOCSELECTIONCHANGE(QsciScintillaBase* self, const char* selection, int id, int position); +void QsciScintillaBase_connect_SCN_AUTOCSELECTIONCHANGE(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCEN_CHANGE(QsciScintillaBase* self); +void QsciScintillaBase_connect_SCEN_CHANGE(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_CALLTIPCLICK(QsciScintillaBase* self, int direction); +void QsciScintillaBase_connect_SCN_CALLTIPCLICK(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_CHARADDED(QsciScintillaBase* self, int charadded); +void QsciScintillaBase_connect_SCN_CHARADDED(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_DOUBLECLICK(QsciScintillaBase* self, int position, int line, int modifiers); +void QsciScintillaBase_connect_SCN_DOUBLECLICK(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_DWELLEND(QsciScintillaBase* self, int position, int x, int y); +void QsciScintillaBase_connect_SCN_DWELLEND(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_DWELLSTART(QsciScintillaBase* self, int position, int x, int y); +void QsciScintillaBase_connect_SCN_DWELLSTART(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_FOCUSIN(QsciScintillaBase* self); +void QsciScintillaBase_connect_SCN_FOCUSIN(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_FOCUSOUT(QsciScintillaBase* self); +void QsciScintillaBase_connect_SCN_FOCUSOUT(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_HOTSPOTCLICK(QsciScintillaBase* self, int position, int modifiers); +void QsciScintillaBase_connect_SCN_HOTSPOTCLICK(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_HOTSPOTDOUBLECLICK(QsciScintillaBase* self, int position, int modifiers); +void QsciScintillaBase_connect_SCN_HOTSPOTDOUBLECLICK(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_HOTSPOTRELEASECLICK(QsciScintillaBase* self, int position, int modifiers); +void QsciScintillaBase_connect_SCN_HOTSPOTRELEASECLICK(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_INDICATORCLICK(QsciScintillaBase* self, int position, int modifiers); +void QsciScintillaBase_connect_SCN_INDICATORCLICK(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_INDICATORRELEASE(QsciScintillaBase* self, int position, int modifiers); +void QsciScintillaBase_connect_SCN_INDICATORRELEASE(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_MACRORECORD(QsciScintillaBase* self, unsigned int param1, unsigned long param2, void* param3); +void QsciScintillaBase_connect_SCN_MACRORECORD(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_MARGINCLICK(QsciScintillaBase* self, int position, int modifiers, int margin); +void QsciScintillaBase_connect_SCN_MARGINCLICK(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_MARGINRIGHTCLICK(QsciScintillaBase* self, int position, int modifiers, int margin); +void QsciScintillaBase_connect_SCN_MARGINRIGHTCLICK(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_MODIFIED(QsciScintillaBase* self, int param1, int param2, const char* param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10); +void QsciScintillaBase_connect_SCN_MODIFIED(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_MODIFYATTEMPTRO(QsciScintillaBase* self); +void QsciScintillaBase_connect_SCN_MODIFYATTEMPTRO(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_NEEDSHOWN(QsciScintillaBase* self, int param1, int param2); +void QsciScintillaBase_connect_SCN_NEEDSHOWN(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_PAINTED(QsciScintillaBase* self); +void QsciScintillaBase_connect_SCN_PAINTED(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_SAVEPOINTLEFT(QsciScintillaBase* self); +void QsciScintillaBase_connect_SCN_SAVEPOINTLEFT(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_SAVEPOINTREACHED(QsciScintillaBase* self); +void QsciScintillaBase_connect_SCN_SAVEPOINTREACHED(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_STYLENEEDED(QsciScintillaBase* self, int position); +void QsciScintillaBase_connect_SCN_STYLENEEDED(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_URIDROPPED(QsciScintillaBase* self, QUrl* url); +void QsciScintillaBase_connect_SCN_URIDROPPED(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_UPDATEUI(QsciScintillaBase* self, int updated); +void QsciScintillaBase_connect_SCN_UPDATEUI(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_USERLISTSELECTION(QsciScintillaBase* self, const char* selection, int id, int ch, int method, int position); +void QsciScintillaBase_connect_SCN_USERLISTSELECTION(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_USERLISTSELECTION2(QsciScintillaBase* self, const char* selection, int id, int ch, int method); +void QsciScintillaBase_connect_SCN_USERLISTSELECTION2(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_USERLISTSELECTION3(QsciScintillaBase* self, const char* selection, int id); +void QsciScintillaBase_connect_SCN_USERLISTSELECTION3(QsciScintillaBase* self, intptr_t slot); +void QsciScintillaBase_SCN_ZOOM(QsciScintillaBase* self); +void QsciScintillaBase_connect_SCN_ZOOM(QsciScintillaBase* self, intptr_t slot); +struct miqt_string QsciScintillaBase_Tr2(const char* s, const char* c); +struct miqt_string QsciScintillaBase_Tr3(const char* s, const char* c, int n); +struct miqt_string QsciScintillaBase_TrUtf82(const char* s, const char* c); +struct miqt_string QsciScintillaBase_TrUtf83(const char* s, const char* c, int n); +long QsciScintillaBase_SendScintilla22(const QsciScintillaBase* self, unsigned int msg, unsigned long wParam); +long QsciScintillaBase_SendScintilla32(const QsciScintillaBase* self, unsigned int msg, unsigned long wParam, long lParam); +void QsciScintillaBase_Delete(QsciScintillaBase* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscistyle.cpp b/qt-restricted-extras/qscintilla/gen_qscistyle.cpp new file mode 100644 index 00000000..54431f91 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscistyle.cpp @@ -0,0 +1,132 @@ +#include +#include +#include +#include +#include +#include +#include "gen_qscistyle.h" +#include "_cgo_export.h" + +QsciStyle* QsciStyle_new() { + return new QsciStyle(); +} + +QsciStyle* QsciStyle_new2(int style, struct miqt_string description, QColor* color, QColor* paper, QFont* font) { + QString description_QString = QString::fromUtf8(description.data, description.len); + return new QsciStyle(static_cast(style), description_QString, *color, *paper, *font); +} + +QsciStyle* QsciStyle_new3(QsciStyle* param1) { + return new QsciStyle(*param1); +} + +QsciStyle* QsciStyle_new4(int style) { + return new QsciStyle(static_cast(style)); +} + +QsciStyle* QsciStyle_new5(int style, struct miqt_string description, QColor* color, QColor* paper, QFont* font, bool eolFill) { + QString description_QString = QString::fromUtf8(description.data, description.len); + return new QsciStyle(static_cast(style), description_QString, *color, *paper, *font, eolFill); +} + +void QsciStyle_Apply(const QsciStyle* self, QsciScintillaBase* sci) { + self->apply(sci); +} + +void QsciStyle_SetStyle(QsciStyle* self, int style) { + self->setStyle(static_cast(style)); +} + +int QsciStyle_Style(const QsciStyle* self) { + return self->style(); +} + +void QsciStyle_SetDescription(QsciStyle* self, struct miqt_string description) { + QString description_QString = QString::fromUtf8(description.data, description.len); + self->setDescription(description_QString); +} + +struct miqt_string QsciStyle_Description(const QsciStyle* self) { + QString _ret = self->description(); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +void QsciStyle_SetColor(QsciStyle* self, QColor* color) { + self->setColor(*color); +} + +QColor* QsciStyle_Color(const QsciStyle* self) { + return new QColor(self->color()); +} + +void QsciStyle_SetPaper(QsciStyle* self, QColor* paper) { + self->setPaper(*paper); +} + +QColor* QsciStyle_Paper(const QsciStyle* self) { + return new QColor(self->paper()); +} + +void QsciStyle_SetFont(QsciStyle* self, QFont* font) { + self->setFont(*font); +} + +QFont* QsciStyle_Font(const QsciStyle* self) { + return new QFont(self->font()); +} + +void QsciStyle_SetEolFill(QsciStyle* self, bool fill) { + self->setEolFill(fill); +} + +bool QsciStyle_EolFill(const QsciStyle* self) { + return self->eolFill(); +} + +void QsciStyle_SetTextCase(QsciStyle* self, int text_case) { + self->setTextCase(static_cast(text_case)); +} + +int QsciStyle_TextCase(const QsciStyle* self) { + QsciStyle::TextCase _ret = self->textCase(); + return static_cast(_ret); +} + +void QsciStyle_SetVisible(QsciStyle* self, bool visible) { + self->setVisible(visible); +} + +bool QsciStyle_Visible(const QsciStyle* self) { + return self->visible(); +} + +void QsciStyle_SetChangeable(QsciStyle* self, bool changeable) { + self->setChangeable(changeable); +} + +bool QsciStyle_Changeable(const QsciStyle* self) { + return self->changeable(); +} + +void QsciStyle_SetHotspot(QsciStyle* self, bool hotspot) { + self->setHotspot(hotspot); +} + +bool QsciStyle_Hotspot(const QsciStyle* self) { + return self->hotspot(); +} + +void QsciStyle_Refresh(QsciStyle* self) { + self->refresh(); +} + +void QsciStyle_Delete(QsciStyle* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscistyle.go b/qt-restricted-extras/qscintilla/gen_qscistyle.go new file mode 100644 index 00000000..1dc40b86 --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscistyle.go @@ -0,0 +1,208 @@ +package qscintilla + +/* + +#include "gen_qscistyle.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "unsafe" +) + +type QsciStyle__TextCase int + +const ( + QsciStyle__OriginalCase QsciStyle__TextCase = 0 + QsciStyle__UpperCase QsciStyle__TextCase = 1 + QsciStyle__LowerCase QsciStyle__TextCase = 2 +) + +type QsciStyle struct { + h *C.QsciStyle +} + +func (this *QsciStyle) cPointer() *C.QsciStyle { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciStyle) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciStyle(h *C.QsciStyle) *QsciStyle { + if h == nil { + return nil + } + return &QsciStyle{h: h} +} + +func UnsafeNewQsciStyle(h unsafe.Pointer) *QsciStyle { + return newQsciStyle((*C.QsciStyle)(h)) +} + +// NewQsciStyle constructs a new QsciStyle object. +func NewQsciStyle() *QsciStyle { + ret := C.QsciStyle_new() + return newQsciStyle(ret) +} + +// NewQsciStyle2 constructs a new QsciStyle object. +func NewQsciStyle2(style int, description string, color *qt.QColor, paper *qt.QColor, font *qt.QFont) *QsciStyle { + description_ms := C.struct_miqt_string{} + description_ms.data = C.CString(description) + description_ms.len = C.size_t(len(description)) + defer C.free(unsafe.Pointer(description_ms.data)) + ret := C.QsciStyle_new2((C.int)(style), description_ms, (*C.QColor)(color.UnsafePointer()), (*C.QColor)(paper.UnsafePointer()), (*C.QFont)(font.UnsafePointer())) + return newQsciStyle(ret) +} + +// NewQsciStyle3 constructs a new QsciStyle object. +func NewQsciStyle3(param1 *QsciStyle) *QsciStyle { + ret := C.QsciStyle_new3(param1.cPointer()) + return newQsciStyle(ret) +} + +// NewQsciStyle4 constructs a new QsciStyle object. +func NewQsciStyle4(style int) *QsciStyle { + ret := C.QsciStyle_new4((C.int)(style)) + return newQsciStyle(ret) +} + +// NewQsciStyle5 constructs a new QsciStyle object. +func NewQsciStyle5(style int, description string, color *qt.QColor, paper *qt.QColor, font *qt.QFont, eolFill bool) *QsciStyle { + description_ms := C.struct_miqt_string{} + description_ms.data = C.CString(description) + description_ms.len = C.size_t(len(description)) + defer C.free(unsafe.Pointer(description_ms.data)) + ret := C.QsciStyle_new5((C.int)(style), description_ms, (*C.QColor)(color.UnsafePointer()), (*C.QColor)(paper.UnsafePointer()), (*C.QFont)(font.UnsafePointer()), (C.bool)(eolFill)) + return newQsciStyle(ret) +} + +func (this *QsciStyle) Apply(sci *QsciScintillaBase) { + C.QsciStyle_Apply(this.h, sci.cPointer()) +} + +func (this *QsciStyle) SetStyle(style int) { + C.QsciStyle_SetStyle(this.h, (C.int)(style)) +} + +func (this *QsciStyle) Style() int { + return (int)(C.QsciStyle_Style(this.h)) +} + +func (this *QsciStyle) SetDescription(description string) { + description_ms := C.struct_miqt_string{} + description_ms.data = C.CString(description) + description_ms.len = C.size_t(len(description)) + defer C.free(unsafe.Pointer(description_ms.data)) + C.QsciStyle_SetDescription(this.h, description_ms) +} + +func (this *QsciStyle) Description() string { + var _ms C.struct_miqt_string = C.QsciStyle_Description(this.h) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciStyle) SetColor(color *qt.QColor) { + C.QsciStyle_SetColor(this.h, (*C.QColor)(color.UnsafePointer())) +} + +func (this *QsciStyle) Color() *qt.QColor { + _ret := C.QsciStyle_Color(this.h) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciStyle) SetPaper(paper *qt.QColor) { + C.QsciStyle_SetPaper(this.h, (*C.QColor)(paper.UnsafePointer())) +} + +func (this *QsciStyle) Paper() *qt.QColor { + _ret := C.QsciStyle_Paper(this.h) + _goptr := qt.UnsafeNewQColor(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciStyle) SetFont(font *qt.QFont) { + C.QsciStyle_SetFont(this.h, (*C.QFont)(font.UnsafePointer())) +} + +func (this *QsciStyle) Font() *qt.QFont { + _ret := C.QsciStyle_Font(this.h) + _goptr := qt.UnsafeNewQFont(unsafe.Pointer(_ret)) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *QsciStyle) SetEolFill(fill bool) { + C.QsciStyle_SetEolFill(this.h, (C.bool)(fill)) +} + +func (this *QsciStyle) EolFill() bool { + return (bool)(C.QsciStyle_EolFill(this.h)) +} + +func (this *QsciStyle) SetTextCase(text_case QsciStyle__TextCase) { + C.QsciStyle_SetTextCase(this.h, (C.int)(text_case)) +} + +func (this *QsciStyle) TextCase() QsciStyle__TextCase { + return (QsciStyle__TextCase)(C.QsciStyle_TextCase(this.h)) +} + +func (this *QsciStyle) SetVisible(visible bool) { + C.QsciStyle_SetVisible(this.h, (C.bool)(visible)) +} + +func (this *QsciStyle) Visible() bool { + return (bool)(C.QsciStyle_Visible(this.h)) +} + +func (this *QsciStyle) SetChangeable(changeable bool) { + C.QsciStyle_SetChangeable(this.h, (C.bool)(changeable)) +} + +func (this *QsciStyle) Changeable() bool { + return (bool)(C.QsciStyle_Changeable(this.h)) +} + +func (this *QsciStyle) SetHotspot(hotspot bool) { + C.QsciStyle_SetHotspot(this.h, (C.bool)(hotspot)) +} + +func (this *QsciStyle) Hotspot() bool { + return (bool)(C.QsciStyle_Hotspot(this.h)) +} + +func (this *QsciStyle) Refresh() { + C.QsciStyle_Refresh(this.h) +} + +// Delete this object from C++ memory. +func (this *QsciStyle) Delete() { + C.QsciStyle_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciStyle) GoGC() { + runtime.SetFinalizer(this, func(this *QsciStyle) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscistyle.h b/qt-restricted-extras/qscintilla/gen_qscistyle.h new file mode 100644 index 00000000..d42364fe --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscistyle.h @@ -0,0 +1,61 @@ +#ifndef GEN_QSCISTYLE_H +#define GEN_QSCISTYLE_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QColor; +class QFont; +class QsciScintillaBase; +class QsciStyle; +#else +typedef struct QColor QColor; +typedef struct QFont QFont; +typedef struct QsciScintillaBase QsciScintillaBase; +typedef struct QsciStyle QsciStyle; +#endif + +QsciStyle* QsciStyle_new(); +QsciStyle* QsciStyle_new2(int style, struct miqt_string description, QColor* color, QColor* paper, QFont* font); +QsciStyle* QsciStyle_new3(QsciStyle* param1); +QsciStyle* QsciStyle_new4(int style); +QsciStyle* QsciStyle_new5(int style, struct miqt_string description, QColor* color, QColor* paper, QFont* font, bool eolFill); +void QsciStyle_Apply(const QsciStyle* self, QsciScintillaBase* sci); +void QsciStyle_SetStyle(QsciStyle* self, int style); +int QsciStyle_Style(const QsciStyle* self); +void QsciStyle_SetDescription(QsciStyle* self, struct miqt_string description); +struct miqt_string QsciStyle_Description(const QsciStyle* self); +void QsciStyle_SetColor(QsciStyle* self, QColor* color); +QColor* QsciStyle_Color(const QsciStyle* self); +void QsciStyle_SetPaper(QsciStyle* self, QColor* paper); +QColor* QsciStyle_Paper(const QsciStyle* self); +void QsciStyle_SetFont(QsciStyle* self, QFont* font); +QFont* QsciStyle_Font(const QsciStyle* self); +void QsciStyle_SetEolFill(QsciStyle* self, bool fill); +bool QsciStyle_EolFill(const QsciStyle* self); +void QsciStyle_SetTextCase(QsciStyle* self, int text_case); +int QsciStyle_TextCase(const QsciStyle* self); +void QsciStyle_SetVisible(QsciStyle* self, bool visible); +bool QsciStyle_Visible(const QsciStyle* self); +void QsciStyle_SetChangeable(QsciStyle* self, bool changeable); +bool QsciStyle_Changeable(const QsciStyle* self); +void QsciStyle_SetHotspot(QsciStyle* self, bool hotspot); +bool QsciStyle_Hotspot(const QsciStyle* self); +void QsciStyle_Refresh(QsciStyle* self); +void QsciStyle_Delete(QsciStyle* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif diff --git a/qt-restricted-extras/qscintilla/gen_qscistyledtext.cpp b/qt-restricted-extras/qscintilla/gen_qscistyledtext.cpp new file mode 100644 index 00000000..bedaf71a --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscistyledtext.cpp @@ -0,0 +1,44 @@ +#include +#include +#include +#include +#include "gen_qscistyledtext.h" +#include "_cgo_export.h" + +QsciStyledText* QsciStyledText_new(struct miqt_string text, int style) { + QString text_QString = QString::fromUtf8(text.data, text.len); + return new QsciStyledText(text_QString, static_cast(style)); +} + +QsciStyledText* QsciStyledText_new2(struct miqt_string text, QsciStyle* style) { + QString text_QString = QString::fromUtf8(text.data, text.len); + return new QsciStyledText(text_QString, *style); +} + +QsciStyledText* QsciStyledText_new3(QsciStyledText* param1) { + return new QsciStyledText(*param1); +} + +void QsciStyledText_Apply(const QsciStyledText* self, QsciScintillaBase* sci) { + self->apply(sci); +} + +struct miqt_string QsciStyledText_Text(const QsciStyledText* self) { + const QString _ret = self->text(); + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray _b = _ret.toUtf8(); + struct miqt_string _ms; + _ms.len = _b.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _b.data(), _ms.len); + return _ms; +} + +int QsciStyledText_Style(const QsciStyledText* self) { + return self->style(); +} + +void QsciStyledText_Delete(QsciStyledText* self) { + delete self; +} + diff --git a/qt-restricted-extras/qscintilla/gen_qscistyledtext.go b/qt-restricted-extras/qscintilla/gen_qscistyledtext.go new file mode 100644 index 00000000..8b3d2cee --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscistyledtext.go @@ -0,0 +1,98 @@ +package qscintilla + +/* + +#include "gen_qscistyledtext.h" +#include + +*/ +import "C" + +import ( + "runtime" + "unsafe" +) + +type QsciStyledText struct { + h *C.QsciStyledText +} + +func (this *QsciStyledText) cPointer() *C.QsciStyledText { + if this == nil { + return nil + } + return this.h +} + +func (this *QsciStyledText) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newQsciStyledText(h *C.QsciStyledText) *QsciStyledText { + if h == nil { + return nil + } + return &QsciStyledText{h: h} +} + +func UnsafeNewQsciStyledText(h unsafe.Pointer) *QsciStyledText { + return newQsciStyledText((*C.QsciStyledText)(h)) +} + +// NewQsciStyledText constructs a new QsciStyledText object. +func NewQsciStyledText(text string, style int) *QsciStyledText { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + ret := C.QsciStyledText_new(text_ms, (C.int)(style)) + return newQsciStyledText(ret) +} + +// NewQsciStyledText2 constructs a new QsciStyledText object. +func NewQsciStyledText2(text string, style *QsciStyle) *QsciStyledText { + text_ms := C.struct_miqt_string{} + text_ms.data = C.CString(text) + text_ms.len = C.size_t(len(text)) + defer C.free(unsafe.Pointer(text_ms.data)) + ret := C.QsciStyledText_new2(text_ms, style.cPointer()) + return newQsciStyledText(ret) +} + +// NewQsciStyledText3 constructs a new QsciStyledText object. +func NewQsciStyledText3(param1 *QsciStyledText) *QsciStyledText { + ret := C.QsciStyledText_new3(param1.cPointer()) + return newQsciStyledText(ret) +} + +func (this *QsciStyledText) Apply(sci *QsciScintillaBase) { + C.QsciStyledText_Apply(this.h, sci.cPointer()) +} + +func (this *QsciStyledText) Text() string { + var _ms C.struct_miqt_string = C.QsciStyledText_Text(this.h) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *QsciStyledText) Style() int { + return (int)(C.QsciStyledText_Style(this.h)) +} + +// Delete this object from C++ memory. +func (this *QsciStyledText) Delete() { + C.QsciStyledText_Delete(this.h) +} + +// GoGC adds a Go Finalizer to this pointer, so that it will be deleted +// from C++ memory once it is unreachable from Go memory. +func (this *QsciStyledText) GoGC() { + runtime.SetFinalizer(this, func(this *QsciStyledText) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-restricted-extras/qscintilla/gen_qscistyledtext.h b/qt-restricted-extras/qscintilla/gen_qscistyledtext.h new file mode 100644 index 00000000..a42ec89d --- /dev/null +++ b/qt-restricted-extras/qscintilla/gen_qscistyledtext.h @@ -0,0 +1,38 @@ +#ifndef GEN_QSCISTYLEDTEXT_H +#define GEN_QSCISTYLEDTEXT_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QsciScintillaBase; +class QsciStyle; +class QsciStyledText; +#else +typedef struct QsciScintillaBase QsciScintillaBase; +typedef struct QsciStyle QsciStyle; +typedef struct QsciStyledText QsciStyledText; +#endif + +QsciStyledText* QsciStyledText_new(struct miqt_string text, int style); +QsciStyledText* QsciStyledText_new2(struct miqt_string text, QsciStyle* style); +QsciStyledText* QsciStyledText_new3(QsciStyledText* param1); +void QsciStyledText_Apply(const QsciStyledText* self, QsciScintillaBase* sci); +struct miqt_string QsciStyledText_Text(const QsciStyledText* self); +int QsciStyledText_Style(const QsciStyledText* self); +void QsciStyledText_Delete(QsciStyledText* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif