From 7fe6fae0b5d87255585e72318cc28bd586e43a32 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 20 Oct 2024 17:55:18 +1300 Subject: [PATCH 01/12] genbindings/main: use pkg-config directly to find cflags --- cmd/genbindings/main.go | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/cmd/genbindings/main.go b/cmd/genbindings/main.go index 18dca961..80b4e223 100644 --- a/cmd/genbindings/main.go +++ b/cmd/genbindings/main.go @@ -7,6 +7,7 @@ import ( "io/ioutil" "log" "os" + "os/exec" "path/filepath" "runtime" "strings" @@ -87,6 +88,15 @@ func cleanGeneratedFilesInDir(dirpath string) { log.Printf("Removed %d file(s).", cleaned) } +func pkgConfigCflags(packageName string) string { + stdout, err := exec.Command(`pkg-config`, `--cflags`, packageName).Output() + if err != nil { + panic(err) + } + + return string(stdout) +} + func main() { clang := flag.String("clang", "clang", "Custom path to clang") outDir := flag.String("outdir", "../../", "Output directory for generated gen_** files") @@ -101,8 +111,7 @@ func main() { "/usr/include/x86_64-linux-gnu/qt5/QtWidgets", }, *clang, - // pkg-config --cflags Qt5Widgets - strings.Fields(`-DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -DQT_GUI_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtGui -DQT_CORE_LIB`), + strings.Fields(pkgConfigCflags("Qt5Widgets")), filepath.Join(*outDir, "qt"), ) @@ -112,8 +121,7 @@ func main() { "/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport", }, *clang, - // pkg-config --cflags Qt5PrintSupport - strings.Fields(`-DQT_PRINTSUPPORT_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5/QtGui -DQT_WIDGETS_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -DQT_GUI_LIB -DQT_CORE_LIB`), + strings.Fields(pkgConfigCflags("Qt5PrintSupport")), filepath.Join(*outDir, "qt/qprintsupport"), ) } From 5afa94f2cc48eb54406c0cf3b52b5ec311cf9ed2 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 20 Oct 2024 17:56:37 +1300 Subject: [PATCH 02/12] doc/pkg-config: add instructions about custom pkg-config files --- .gitignore | 3 +++ pkg-config/README.md | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 pkg-config/README.md diff --git a/.gitignore b/.gitignore index 40db9c24..2386f3a3 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,9 @@ container-build-cache/ # local genbindings configuration cmd/genbindings/genbindings.local* +# local pkg-config configuration +pkg-config/*.pc + # binaries cmd/handbindings/handbindings cmd/handbindings/bindings_test/direct diff --git a/pkg-config/README.md b/pkg-config/README.md new file mode 100644 index 00000000..e26e0317 --- /dev/null +++ b/pkg-config/README.md @@ -0,0 +1,27 @@ +# pkg-config + +MIQT always uses [pkg-config](https://people.freedesktop.org/~dbn/pkg-config-guide.html) to find C++ libraries to bind to. + +For Qt Widgets, the `.pc` definition is supplied along with Qt, but for other third-party libraries, definitions might not be present. To use such third-party libraries, one option is to set the `CGO_CFLAGS`, `CGO_CXXFLAGS`, `CGO_LDFLAGS` environment variables for `go build`. However, this has a global effect and may cause issues if you use multiple libraries. Therefore, another option is to create a pkg-config file. + +To specify the CFLAGS/CXXFLAGS and LDFLAGS for a specific library, make a `MyLibrary.pc` file as follows: + +```pkgconfig +Name: My Library +Libs: -lfoo +Cflags: -I/path/ +``` + +Then run `PKG_CONFIG_PATH=/path/to/dir/ go build` so CGO will find your library. Then, the necessary flags for your system will be used only as required for the specific package. + +The `PKG_CONFIG_PATH` environment variable is understood both by CGO and by genbindings. + +## Further reading + +- [Guide to pkg-config](https://people.freedesktop.org/~dbn/pkg-config-guide.html) + +```bash +# Find where pkg-config looks for system libraries +$ pkg-config --variable pc_path pkg-config +/usr/local/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig +``` From 20f6d7878b6b8bf0ae2b1ad5450abed13b4c01c9 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 20 Oct 2024 17:55:29 +1300 Subject: [PATCH 03/12] genbindings/main: support parsing a single header instead of a directory --- cmd/genbindings/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/genbindings/main.go b/cmd/genbindings/main.go index 80b4e223..f2abbd5c 100644 --- a/cmd/genbindings/main.go +++ b/cmd/genbindings/main.go @@ -130,7 +130,11 @@ func generate(packageName string, srcDirs []string, clangBin string, cflags []st var includeFiles []string for _, srcDir := range srcDirs { - includeFiles = append(includeFiles, findHeadersInDir(srcDir)...) + if strings.HasSuffix(srcDir, `.h`) { + includeFiles = append(includeFiles, srcDir) // single .h + } else { + includeFiles = append(includeFiles, findHeadersInDir(srcDir)...) + } } log.Printf("Found %d header files to process.", len(includeFiles)) From d6391608861e45bbf188700468704101613f92b0 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 20 Oct 2024 17:58:00 +1300 Subject: [PATCH 04/12] genbindings/main: support custom clang ast node matchers --- cmd/genbindings/clangexec.go | 47 ++++++++++++++++++++++++------------ cmd/genbindings/main.go | 10 +++++--- 2 files changed, 37 insertions(+), 20 deletions(-) diff --git a/cmd/genbindings/clangexec.go b/cmd/genbindings/clangexec.go index 5a105af6..e1162d2d 100644 --- a/cmd/genbindings/clangexec.go +++ b/cmd/genbindings/clangexec.go @@ -9,6 +9,7 @@ import ( "log" "os" "os/exec" + "strings" "sync" "time" ) @@ -18,7 +19,26 @@ const ( ClangRetryDelay = 3 * time.Second ) -func clangExec(ctx context.Context, clangBin, inputHeader string, cflags []string) ([]interface{}, error) { +type ClangMatcher func(astNodeFilename string) bool + +func ClangMatchSameHeaderDefinitionOnly(astNodeFilename string) bool { + return astNodeFilename == "" +} + +type clangMatchUnderPath struct { + basePath string +} + +func (c *clangMatchUnderPath) Match(astNodeFilename string) bool { + if astNodeFilename == "" { + return true + } + return strings.HasPrefix(astNodeFilename, c.basePath) +} + +// + +func clangExec(ctx context.Context, clangBin, inputHeader string, cflags []string, matcher ClangMatcher) ([]interface{}, error) { clangArgs := []string{`-x`, `c++`} clangArgs = append(clangArgs, cflags...) @@ -44,7 +64,7 @@ func clangExec(ctx context.Context, clangBin, inputHeader string, cflags []strin wg.Add(1) go func() { defer wg.Done() - inner, innerErr = clangStripUpToFile(pr, inputHeader) + inner, innerErr = clangStripUpToFile(pr, matcher) }() err = cmd.Wait() @@ -57,10 +77,10 @@ func clangExec(ctx context.Context, clangBin, inputHeader string, cflags []strin return inner, innerErr } -func mustClangExec(ctx context.Context, clangBin, inputHeader string, cflags []string) []interface{} { +func mustClangExec(ctx context.Context, clangBin, inputHeader string, cflags []string, matcher ClangMatcher) []interface{} { for i := 0; i < ClangMaxRetries; i++ { - astInner, err := clangExec(ctx, clangBin, inputHeader, cflags) + astInner, err := clangExec(ctx, clangBin, inputHeader, cflags, matcher) if err != nil { // Log and continue with next retry log.Printf("WARNING: Clang execution failed: %v", err) @@ -83,7 +103,7 @@ func mustClangExec(ctx context.Context, clangBin, inputHeader string, cflags []s // This cleans out everything in the translation unit that came from an // #included file. // @ref https://stackoverflow.com/a/71128654 -func clangStripUpToFile(stdout io.Reader, inputFilePath string) ([]interface{}, error) { +func clangStripUpToFile(stdout io.Reader, matcher ClangMatcher) ([]interface{}, error) { var obj = map[string]interface{}{} err := json.NewDecoder(stdout).Decode(&obj) @@ -108,10 +128,8 @@ func clangStripUpToFile(stdout io.Reader, inputFilePath string) ([]interface{}, return nil, errors.New("entry is not a map") } - if _, ok := entry["isImplicit"]; ok { - // Don't keep - continue - } + // Check where this AST node came from, if it was directly written + // in this header or if it as part of an #include var match_filename = "" @@ -140,16 +158,13 @@ func clangStripUpToFile(stdout io.Reader, inputFilePath string) ([]interface{}, // log.Printf("# name=%v kind=%v filename=%q\n", entry["name"], entry["kind"], match_filename) - if match_filename == "" { + if matcher(match_filename) { // Keep ret = append(ret, entry) - - } else if match_filename != inputFilePath { - // Skip this - } else { - // Keep this - // ret = append(ret, entry) } + + // Otherwise, discard this AST node, it comes from some imported file + // that we will likely scan separately } return ret, nil diff --git a/cmd/genbindings/main.go b/cmd/genbindings/main.go index f2abbd5c..3e332255 100644 --- a/cmd/genbindings/main.go +++ b/cmd/genbindings/main.go @@ -113,6 +113,7 @@ func main() { *clang, strings.Fields(pkgConfigCflags("Qt5Widgets")), filepath.Join(*outDir, "qt"), + ClangMatchSameHeaderDefinitionOnly, ) generate( @@ -123,10 +124,11 @@ func main() { *clang, strings.Fields(pkgConfigCflags("Qt5PrintSupport")), filepath.Join(*outDir, "qt/qprintsupport"), + ClangMatchSameHeaderDefinitionOnly, ) } -func generate(packageName string, srcDirs []string, clangBin string, cflags []string, outDir string) { +func generate(packageName string, srcDirs []string, clangBin string, cflags []string, outDir string, matcher ClangMatcher) { var includeFiles []string for _, srcDir := range srcDirs { @@ -152,7 +154,7 @@ func generate(packageName string, srcDirs []string, clangBin string, cflags []st // PASS 0 (Fill clang cache) // - generateClangCaches(includeFiles, clangBin, cflags) + generateClangCaches(includeFiles, clangBin, cflags, matcher) // The cache should now be fully populated. @@ -279,7 +281,7 @@ func generate(packageName string, srcDirs []string, clangBin string, cflags []st log.Printf("Processing %d file(s) completed", len(includeFiles)) } -func generateClangCaches(includeFiles []string, clangBin string, cflags []string) { +func generateClangCaches(includeFiles []string, clangBin string, cflags []string, matcher ClangMatcher) { var clangChan = make(chan string, 0) var clangWg sync.WaitGroup @@ -301,7 +303,7 @@ func generateClangCaches(includeFiles []string, clangBin string, cflags []string // Parse the file // This seems to intermittently fail, so allow retrying - astInner := mustClangExec(ctx, clangBin, inputHeader, cflags) + astInner := mustClangExec(ctx, clangBin, inputHeader, cflags, matcher) // Write to cache jb, err := json.MarshalIndent(astInner, "", "\t") From 8a0c7029ede7acdee2f63c83bf2370315e2bde48 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 20 Oct 2024 18:01:37 +1300 Subject: [PATCH 05/12] docker: build from root repo context, to allow embedding other files --- .github/workflows/miqt.yml | 6 +++--- README.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/miqt.yml b/.github/workflows/miqt.yml index 4f2c7e4c..d5ee6cb4 100644 --- a/.github/workflows/miqt.yml +++ b/.github/workflows/miqt.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v4 - name: Linux64 docker build - run: cd docker && docker build -t miqt/genbindings:latest -f genbindings.Dockerfile . + run: docker build -t miqt/genbindings:latest -f docker/genbindings.Dockerfile . - name: Cache clang ASTs uses: actions/cache@v4 @@ -37,7 +37,7 @@ jobs: uses: actions/checkout@v4 - name: Linux64 docker build - run: cd docker && docker build -t miqt/linux64:latest -f linux64-go1.19-qt5.15-dynamic.Dockerfile . + run: docker build -t miqt/linux64:latest -f docker/linux64-go1.19-qt5.15-dynamic.Dockerfile . - name: Cache GOCACHE uses: actions/cache@v4 @@ -62,7 +62,7 @@ jobs: key: win64-gocache - name: Win64 docker build - run: cd docker && docker build -t miqt/win64:latest -f win64-cross-go1.23-qt5.15-static.Dockerfile . + run: docker build -t miqt/win64:latest -f docker/win64-cross-go1.23-qt5.15-static.Dockerfile . - name: Win64 bindings compile run: docker run -v ~/.cache/go-build:/root/.cache/go-build -v $PWD:/src -w /src miqt/win64:latest /bin/bash -c 'cd qt && go build' diff --git a/README.md b/README.md index a2be1f0f..693cb9fa 100644 --- a/README.md +++ b/README.md @@ -149,14 +149,14 @@ Static builds are also available by installing the `mingw-w64-ucrt-x86_64-qt5-st For static builds (open source application): 1. Build the necessary docker container for cross-compilation: - - `docker build -t miqt/win64-cross:latest -f win64-cross-go1.23-qt5.15-static.Dockerfile .` + - `docker build -t miqt/win64-cross:latest -f docker/win64-cross-go1.23-qt5.15-static.Dockerfile .` 2. Build your application: - `docker run --rm -v $(pwd):/src -w /src miqt/win64-cross:latest go build -buildvcs=false --tags=windowsqtstatic -ldflags '-s -w -H windowsgui'` For dynamically-linked builds (closed-source or open source application): 1. Build the necessary docker container for cross-compilation: - - `docker build -t miqt/win64-dynamic:latest -f win64-cross-go1.23-qt5.15-dynamic.Dockerfile .` + - `docker build -t miqt/win64-dynamic:latest -f docker/win64-cross-go1.23-qt5.15-dynamic.Dockerfile .` 2. Build your application: - `docker run --rm -v $(pwd):/src -w /src miqt/win64-dynamic:latest go build -buildvcs=false -ldflags '-s -w -H windowsgui'` 3. Copy necessary Qt LGPL libraries and plugin files. @@ -179,7 +179,7 @@ Miqt supports compiling for Android. Some extra steps are required to bridge the - Ensure to `import "C"`. - Check `examples/android` to see how to support both Android and desktop platforms. 2. Build the necessary docker container for cross-compilation: - - `docker build -t miqt/android:latest -f android-armv8a-go1.23-qt5.15-dynamic.Dockerfile .` + - `docker build -t miqt/android:latest -f docker/android-armv8a-go1.23-qt5.15-dynamic.Dockerfile .` 3. Build your application as `.so` format: - `docker run --rm -v $(pwd):/src -w /src miqt/android:latest go build -buildmode c-shared -ldflags "-s -w -extldflags -Wl,-soname,my_go_app.so" -o android-build/libs/arm64-v8a/my_go_app.so` 4. Build the Qt linking stub: From 7ff290b7d1443f536a03e67c7cec2d125f8b6cb3 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 20 Oct 2024 17:59:13 +1300 Subject: [PATCH 06/12] qscintilla: add support --- cmd/genbindings/exceptions.go | 11 +++++++++++ cmd/genbindings/main.go | 14 ++++++++++++++ docker/genbindings.Dockerfile | 14 +++++++++++++- pkg-config/QScintilla.pc.example | 9 +++++++++ qt-restricted-extras/qscintilla/cflags.go | 8 ++++++++ 5 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 pkg-config/QScintilla.pc.example create mode 100644 qt-restricted-extras/qscintilla/cflags.go diff --git a/cmd/genbindings/exceptions.go b/cmd/genbindings/exceptions.go index edb5c03c..5b1ed189 100644 --- a/cmd/genbindings/exceptions.go +++ b/cmd/genbindings/exceptions.go @@ -69,6 +69,11 @@ func ImportHeaderForClass(className string) bool { return false } + if strings.HasPrefix(className, "Qsci") { + // QScintilla - does not produce imports + return false + } + switch className { case "QGraphicsEffectSource", // e.g. qgraphicseffect.h "QAbstractConcatenable", // qstringbuilder.h @@ -150,6 +155,12 @@ func CheckComplexity(p CppParameter, isReturnType bool) error { if err := CheckComplexity(t, isReturnType); err != nil { // e.g. QGradientStops is a QVector<> (OK) of QGradientStop (not OK) return err } + + // qsciscintilla.h QsciScintilla_Annotate4: no copy ctor for private type QsciStyledText + // Works fine normally, but not in a list + if t.ParameterType == "QsciStyledText" { + return ErrTooComplex + } } if strings.Contains(p.ParameterType, "(*)") { // Function pointer. diff --git a/cmd/genbindings/main.go b/cmd/genbindings/main.go index 3e332255..52150a55 100644 --- a/cmd/genbindings/main.go +++ b/cmd/genbindings/main.go @@ -23,6 +23,8 @@ func importPathForQtPackage(packageName string) string { switch packageName { case "qt": return BaseModule + "/qt" + case "qscintilla": + return BaseModule + "/qt-restricted-extras/" + packageName default: return BaseModule + "/qt/" + packageName } @@ -126,6 +128,18 @@ func main() { filepath.Join(*outDir, "qt/qprintsupport"), ClangMatchSameHeaderDefinitionOnly, ) + + // Depends on QtCore/Gui/Widgets, QPrintSupport + generate( + "qscintilla", + []string{ + "/usr/include/x86_64-linux-gnu/qt5/Qsci", + }, + *clang, + strings.Fields(pkgConfigCflags("Qt5PrintSupport")), + filepath.Join(*outDir, "qt-restricted-extras/qscintilla"), + ClangMatchSameHeaderDefinitionOnly, + ) } func generate(packageName string, srcDirs []string, clangBin string, cflags []string, outDir string, matcher ClangMatcher) { diff --git a/docker/genbindings.Dockerfile b/docker/genbindings.Dockerfile index 749a36e8..0589d25d 100644 --- a/docker/genbindings.Dockerfile +++ b/docker/genbindings.Dockerfile @@ -1,4 +1,16 @@ FROM debian:bookworm RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ - apt-get install -qyy golang-go qtbase5-dev clang + apt-get install --no-install-recommends -qyy \ + golang-go \ + qtbase5-dev \ + libqscintilla2-qt5-dev \ + clang \ + git \ + ca-certificates \ + pkg-config \ + build-essential && \ + apt-get clean +RUN mkdir -p /usr/local/lib/pkgconfig +COPY pkg-config/QScintilla.pc.example /usr/local/lib/pkgconfig/QScintilla.pc +ENV GOFLAGS=-buildvcs=false diff --git a/pkg-config/QScintilla.pc.example b/pkg-config/QScintilla.pc.example new file mode 100644 index 00000000..fc740710 --- /dev/null +++ b/pkg-config/QScintilla.pc.example @@ -0,0 +1,9 @@ +includedir=/usr/include/x86_64-linux-gnu/qt5/Qsci/ + +Name: QScintilla +Description: Qt5 port of the Scintilla source code editing widget +URL: http://www.riverbankcomputing.co.uk/software/qscintilla +Version: 2.13.3 +Requires: Qt5Widgets, Qt5PrintSupport +Libs: -lqscintilla2_qt5 +Cflags: -I${includedir} diff --git a/qt-restricted-extras/qscintilla/cflags.go b/qt-restricted-extras/qscintilla/cflags.go new file mode 100644 index 00000000..391f0d16 --- /dev/null +++ b/qt-restricted-extras/qscintilla/cflags.go @@ -0,0 +1,8 @@ +package qscintilla + +/* +#cgo CFLAGS: +#cgo CXXFLAGS: -std=c++17 +#cgo pkg-config: QScintilla +*/ +import "C" From 37cb716ccfb6759cd13a81a58e37bc35ecc40753 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 20 Oct 2024 17:59:23 +1300 Subject: [PATCH 07/12] 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 From 1ef63a16732dca7228d7e41edac82f8266efd71b Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 20 Oct 2024 18:00:04 +1300 Subject: [PATCH 08/12] qscintilla: add example --- .gitignore | 1 + .../restricted-extras-qscintilla/main.go | 19 ++++++++++++++++++ .../qscintilla.png | Bin 0 -> 8906 bytes 3 files changed, 20 insertions(+) create mode 100644 examples/libraries/restricted-extras-qscintilla/main.go create mode 100644 examples/libraries/restricted-extras-qscintilla/qscintilla.png diff --git a/.gitignore b/.gitignore index 2386f3a3..0202edfa 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ examples/windowsmanifest/windowsmanifest.exe examples/uidesigner/uidesigner examples/uidesigner/uidesigner.exe examples/libraries/qt-qprintsupport/qt-qprintsupport +examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla # android temporary build files android-build diff --git a/examples/libraries/restricted-extras-qscintilla/main.go b/examples/libraries/restricted-extras-qscintilla/main.go new file mode 100644 index 00000000..6e06bfb8 --- /dev/null +++ b/examples/libraries/restricted-extras-qscintilla/main.go @@ -0,0 +1,19 @@ +package main + +import ( + "os" + + "github.com/mappu/miqt/qt" + "github.com/mappu/miqt/qt-restricted-extras/qscintilla" +) + +func main() { + + qt.NewQApplication(os.Args) + + area := qscintilla.NewQsciScintilla() + area.SetFixedSize2(640, 480) + area.Show() + + qt.QApplication_Exec() +} diff --git a/examples/libraries/restricted-extras-qscintilla/qscintilla.png b/examples/libraries/restricted-extras-qscintilla/qscintilla.png new file mode 100644 index 0000000000000000000000000000000000000000..5cdd5165aa44502f311c9a1ec421ea54c057c23b GIT binary patch literal 8906 zcmeHtd05ih*RN$|9na6)`QdOl?xr97<@!tJBJn-FX?X}ll`?L0U zt-ZK)($z`jr_DbpC@82LJ9^|d1%>5E*=N`4Rk9u^G3cD^Yfbo3&#MXwsx9)*vK&KI zfP%u7#A8Peo{6O}sR@PDDA;7gP*tuw;!HW{RIu{S6<>1inmlmXkw3Ef*j@MO+rME` z4&8e4+`;qXPWMM;+;A=Y*4_12e%*FAywh$QSbh1jQ_*_fpKeouWM1#(MJj8u zUC>4UVglWhpZ`8TfATv!7Fg(VX$SG@zRwvnQTP6^_|wu)Z{EvV+QcdqxaTEVOF4@v z$d@&U22%dG1JorWyI?FXV!HE9Cy9?_Bu{$S^OeE)H}lukT^DprWi435HMs}?x;FwU z)OWZnpyeaU3yjdWs%Zh2*OBK|OuxOil@=oJ&LqyQxLl^h&@E~WiaYFdXA?UYB!S6= z0InM*RF&Oj{^G?Ccx#FnxaS3U-e2h^rGg}4JGmAi-%zvlS<7o@Upw0LH#l8Jwvlop zyb=^27ZfBJ=K{a-Z73gKoTdfIr%@!v6Wn=Vr(XdoptRtvMS)Bc_f9KR<_D1k-`bX? zv#2EJvRIJwTmz_lI)=4q%OBXuSUs@MmF}3SW%`x*K;JFNX*V$p{i!a3F2R&d^uQ|R zmQfMSaJ`1ER!=ns5cXXvTUNHRYz<({C75c8hDU7fXrG+$O0#lk^3aYQ zN#AGveVFym@>}-RI3gZ}x=a%>_)$=Ldp4XX*Muu=7>4#<>5c4-?v3@IbzD5VIUF5& zgrTb#eF=9Z`PA@Yi^?rPj+Cz`NE07RT1*vmFZ6>y!*jzvCJA7R6MUv#Ckyym4uH*J z{%D8B)>3-ubSblxUCP}OYpB1Sc6$F}!{C9!KqfhVpd)*c?lPma#f9$p6%Q<=!68Y~ z^jqrsx`j0RZMksPRsrm08>d}&V<(X|&6(5*m0K8wkEfpHc@72lhE`A21vCUSiWsS- z+)_cQxOADJz7frCJ=Ci)>XNyt$!!}|+t8yUZ$*r)99CwBWl*Gq`$)v=MWIk91mZ3M z%ny+V4+BFxO9n6eOZ0HylHjTOfX3r=9nbyMoAkG@Lt;NC#7yRsb&EVR6_FeG_i{`! zZO$K(aG!~I4@Ja&j&b(8Ft?ttp0~?vOmk@-yNPgjE@#lDTW$#<9H-;{Lt_Cw3l%wn zJwANmHW^_?>lM%)9hK(}VdtucyOC|nM&pN>fzy5d)2(?){&J1p1Z3omJT6@sv)3yj z$q`p(ieSGwH{j-dHm>6(%wW(k(MmS#noxNO?G?QZ3!@uOY`VNDa}#P)*Cr-t|5!b= zd>6fvN9-r%llLgr_CuI6za?8~%o=yd6bp$pE-h9KpgrJiz`KBs&_aJ^9LC*O zbv+#9l&9F@fd7M8tVLb}3->(GQ>^i%EYAnkbf1(kzQ&Kfzs|rd*yIHQfPuAV1TwDL zaD1l5qBoQ<9?PMF97~P5f<0fZ2Hcc)x2?0zwb)jm<1drH@ua?2f+muEvsKS4?pT#o zx*8h{X3wwkZk?fYxmB2F+f_Sf^k|^umQ#TrJ77C8Fcr|UOqrZj+-=~q;g{kEh?>;w znrDrh5fkIV3yvl-vjvYhs5=6pdGqenx-1+k#avf>HqJja_G$8TkrG3hIaVJl=!j&O z=asW0pE+i%Ifp=QMLTVMWp>D?!X#@x4?8|)ewHLWR5EgpR{weYLh}o`orI#bjQOhK zT~B&a&6`1qy_8C9P;l@tzP>(=X!R&Izp8izqYQw5Mzm!=i=0v`>)UIZ<*dx|W~V{K zY!#sMWcPk}Q>4 zAg*_wBN(3ucq~lAcZGz{HfyYV=1^ptoh0%}ba6|?ael74dBo7sG?zq4h5j^E0?Eu{ z%!FdvzIHz@sc^Be(6PS~Df~SjTF%XwtT0;l-tDojXYt0}UiX`YxU2p5H4s8G89vTp z3sgqj(Viu_qxjO!Y|kX=OIP5fc4gvG%TY7@`4nzii6rEMNGF6^Ye$Wk6nP65UrNBF zAd5Q9gYhlT_fA)>x$DGVv@YX+DIcKqlEVFK@*Cfj8%82 z8u<9t>XRBKssR0&lZE#kGeeJe`JL+%$()BN+P{=8)MAX=6y87`8^nX0tf-xaNt@ zjld{u^n9}}_>J|}u#nNGy|;Vs^k&&5?jc`OA>$Yp6_r&46GH49JFu&?q_U>@imP>y z%hk=mr$*H1_9nB*-&qxg=z4q9=r<4rDHGalPvLL;X6wmdDPbWhv4|*~hxU`9CFlg- zs7P>UF3opDQdeTXSl{0_FoS_x}JpESZRlno@={U(4Mil zC(HN(!D0{n>NumNy7h7~j65`b!&mfbj^^QX&uh_~epTPK*efvEiVH*sRHgPfG4~XS5Rp`}4rU zH{+YO)Rw?P+X3U8*Qx7_LZOK+BTjUE*HB<_mZZ5s9myY!fqN0z)q{t{BVo@@yV<+} z9=-$%=hYZ@r;u3{rHzw|V)&(Um30~JBds2dn?FIQ(WJoXi3h5q)0|}Iq}aHE z94P~yIQ%g3Yo0W^5<U#ND1UfQzXt@srg> zoWbv!qy4%@B{s0=h>hXYv=cV4%&g^8$=W^>Lv5faOxy4P+_9blVa|eFMIYZyzeJz| zrG#O4k_T1R$2hXH4Svxnz3s9gu%ZltBA|o#nfqzSCSeSlqEU~53=lcy!-``e5aAANFb*M8#ypw24p3&P?oWojV`9?dSQ*iMSz#~r

IPz!!ObX zZZ)Tqf7L*;H&;iPM4XHWr>-GGjctv@J#MpklaOZM_~bjxG*dECU`l^gz4ygwU!xW0JH`7Y2}gQUkl%h)I+Tqf0yrhXCdk zFF>NVgta8A2YjaT9)nRhMa%c7n_UemRH0RiFaxZ#2GM)0_yF3>J~^5e?nTD6VR)O# zGo5MUE+J4~{b;IN=x%$9J!_^6KnNCMHOJ~SARAM%m$6`0QNO*2-?cxAg{X6RVp~mB!+>iax%8J}IftMucZvy9B4L#}jjA8#*r%6Im8tx{^D`Aq) z+knp}=voW_tFkbKu&;U6@FVf6I4eIbwGBjjy0R}4a6o4z!vW4G%nL-Un-p|HSCr-K z24s2}B<_mz>Z0RT8+LC&3 z7j7}t5{GqSWUm_g^bQX2!lI%3;`rLo!>fX|U9`_=gYm`NAu!vinUs0XY*}9)I?2{M zf?YU2B^=Z{gM++-OBD#D7ZrQQIZ$}taMSmq7#UBP@3t@F&WU2z-w2DZ zX;vo3LfpXchVb6LEu-V_A+~QT6HopIcG3!K*COs)PLFR}-OO>C^{YqZ+?dSMz+;AG#ON?P8L?W(p$ymA zdtwT>C%`;^B(J~UOUH5{)x0*)xj`(d>F?+-=H_7q18wtX3ClcvV{lRmNt(vXQvn~Tj%MuEvfg%{l=HMu<3kGv_oRsVD>OYW}#ldx{tT% zK=v~?&GSEi6s=avHt&G0S@`&_WLFCJT_s)v7@v(+YX@8tByLY;ovVJeK&WGluVso6 zy0fP+(LDZH7IXE~LgTHP-iVD>%iS>rD$SMMl$^@-R7NPq{@YYTWXE((KMqLP zMKxz-&A%Qo?5EVzoB?x9yHU-P`qTHF_Z-(R;Rr-~q0jsgx`A+Za&vs3yJ^kSS2Mw~ zjC=F>R9jFC_9oO;`E}EcjDDT(tYa~wHD**oWSmzdts|1vakKyS&B13H>ri_RMa4;I z94*E1tMsKPSsf|M+86afcwmV;YUr*mxN)x?Hq?*(TzZ3FwKK)Mco(FXqjUvhf2Ji! z*iq(`pZICQRU{KO++&vCXT==>tQ2sh<~) z>oHxP=R+yKk!ZU{A-U}p69;$pO`5l4_EOqO4X2xU=P$Hr=WPT|-I7RwN;Xqhw)Xc{hVe$d1-DMrgvNbCxq~P>Pn|*C1cPlC? zVq6Q%0!tDVSei?O8c61)JJEO2HvBo_fCq^pYxftwh5u{(lBi!mi>4qtWc-QHP^Rj7 zq)Zb9l3eR0g%4nUa##5A^WQ{Tn)ZLM#y?K_G3}By{yx_~PWmsK@Ske@^Q1q(`ftI) z-z~lL{A0=gIOzaJsH*Vqa)R}L`syFvEk7uJ0j)HYIlBDkUmgFyo3#2*C;vOF|9PnW zA7K4I7lrae_dgBum(%a>`}5yU`u`jLUtf3s500Jxu^Y~k6|4U5k#6CIaV@lBV?>Me z6^4IAM}I#rP1ch(%Wl7SE=4&5qym~myl}WJ6TrXO)zt-mNaNef0;69*Hp=9s%j=_m z50espMs9Vy6WcjI-4FMW$8f`t%nEsYwN`drx<=-(!hN7Jqq4o7qf4DA2r5$^svUr@ z4Axu<1OEb}v`~z@x@@S~Aq;u@pJCTud>QgViD8JASHFf%Qh^e*$11oyB8(Kb!*~2e zuRoyrW8kXGnA+Of?wMm4$+_kmok`r`$leOLE7VTJFk3uW^Ax`@n#E!-_++!G6=HI8 zbE^e|ri}n(jI9*jza1bs_TdwTvK;{TPGl**KB-E!y0w2>3b)A|T|SKeX%oOFgC$rP zRgwt+q?(6GwGlTRF<<%0?xv)lUYo3waeD^7sSAme$^!B|YcOMVtom&-JTxq(nCrES zvTx#XIHqNiXd(NH`6R#VQ;w21^~*sIix$1es0T{k%S`U1n7dwZ#Izmj3TTz@+Cfd^ zm{ja!P&_kv!7bSTuqY6CGP|2yA_MFjy>2xK$MqHWVdJQNh{U$U2U!O-aisC0tZOe z{$q&gQC|s}woT#ndfb#I@x*D(X0HSl1~%Z$kJ;o^myUNmcJzw@g&U|wGL-X4BH~t# zBfhrQ^@S=Kfp5yav|B<8WE=a!BeC*)Nu|gE*$tWxYT&U4gN)Za`dQ{Apukqi8gkYi z<((yzp!bjVhJ^(M#Y2;%2{KDbwntKAmzS#KeO_e^^!TNW3t*kmX6T3ex|Z=Q z;0>GJu6JftFxJoPq88E{tomUQlIaxFs#o9~S0dsmaqJ7%O{I$>)Pqu&vb41JmsRJB z*8i(GwMk`2lO#+FN5MXy1#dgI$UzE{Ri8J_lk0p%oC#j4xjc;Or+?;$s3yI5H z`9*Q@WTB8C$gO|pDPKj+SX?wW_grYErmEEz3dSZ+ael{{7;D*O1Zn{4X%kx14vcHI#0TB2!gWAEC{{Cvy1ys=Ehr0UUGgzJvEZX zU$NEmXqq|LbjCwcmoH#?3YheldBCq_IXblTPQ1J@j&vJ*PE|kQPL-7z1+h@ac88wU z48@jy4+nt^Is_B)Do4wtCU!tu{pJwzHM{jq|=hxX051Oqk7s7$th`vfg0s}^DAV+$Kl>rLuS?oH{v z?oD_#P-ScQdXL>|#ArS_Hk8~X9;e)}`etRMtvTu#F^ON7>6F>ZS-d^L*YhECWLn4# zw#;kD-yfYL-e}};tN*Y8P?&vGd=l$hzKq|+qBSa2Q=l{UmcfEE9s|8zaR;x#=!b?o zl$8@rf*R%JE)h?{-k_vo6dJM>%>n-?wAMN@i{l9!jWi=Rdu#SAUtgrzrRnB-HV)h$ z3ap__q+)`6PyV8c;T%8`=%>!Bp(DQKn4%-%7hn^d%tScX!1xeEUgT43qPQYL>pE_| zpUcb?$I<+FPssT0I_=+#DO9RH<2jRQ1 zZHm<$;hC-F%d6{t9r!hPNr7Pho*bA5&qqG{)-;4}>_8E%tXXS_ok3!uWZDk;?!Y%tDI00AW!Smf( z?1@UKz*&PCE0Ie_LH9tk&k#IQ`(>Eb5;uZyZD|@ScQh-y-4MhLu8X$3D8GI|Ru7(? zBm}M>`tuJRI`BX_>!JVk4;>cUQf2oE@e@+T7!5d(+(ft}d*3S@b8tOUbqJF3A8(-( Ag#Z8m literal 0 HcmV?d00001 From 82413f8967b73b343aaccba5e143d1f9e5ba5974 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 20 Oct 2024 18:02:08 +1300 Subject: [PATCH 09/12] scintillaedit: add support --- cmd/genbindings/exceptions.go | 11 ++++++++++- cmd/genbindings/intermediate.go | 4 ++++ cmd/genbindings/main.go | 15 +++++++++++++++ docker/genbindings.Dockerfile | 17 +++++++++++++++++ pkg-config/ScintillaEdit.pc.example | 9 +++++++++ qt-extras/scintillaedit/cflags.go | 8 ++++++++ 6 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 pkg-config/ScintillaEdit.pc.example create mode 100644 qt-extras/scintillaedit/cflags.go diff --git a/cmd/genbindings/exceptions.go b/cmd/genbindings/exceptions.go index 5b1ed189..058f93af 100644 --- a/cmd/genbindings/exceptions.go +++ b/cmd/genbindings/exceptions.go @@ -24,6 +24,7 @@ func InsertTypedefs() { // QFile doesn't see QFileDevice parent class enum KnownTypedefs["QFile::Permissions"] = lookupResultTypedef{"qt", CppTypedef{"QFile::Permissions", parseSingleTypeString("QFileDevice::Permissions")}} KnownTypedefs["QFileDevice::Permissions"] = lookupResultTypedef{"qt", CppTypedef{"QFile::Permissions", parseSingleTypeString("QFlags")}} + } func AllowHeader(fullpath string) bool { @@ -95,6 +96,10 @@ func AllowClass(className string) bool { return false } + if strings.HasPrefix(className, `std::`) { + return false // Scintilla bindings find some of these + } + switch className { case "QTextStreamManipulator", // Only seems to contain garbage methods @@ -135,7 +140,6 @@ func AllowMethod(mm CppMethod) error { } return nil // OK, allow - } func CheckComplexity(p CppParameter, isReturnType bool) error { @@ -187,12 +191,16 @@ func CheckComplexity(p CppParameter, isReturnType bool) error { if strings.HasPrefix(p.ParameterType, "QUrlTwoFlags<") { return ErrTooComplex // e.g. qurl.h } + if strings.HasPrefix(p.ParameterType, "FillResult<") { + return ErrTooComplex // Scintilla + } if strings.HasPrefix(p.ParameterType, "std::") { // std::initializer e.g. qcborarray.h // std::string QByteArray->toStdString(). There are QString overloads already // std::nullptr_t Qcborstreamwriter // std::chrono::nanoseconds QDeadlineTimer_RemainingTimeAsDuration // std::seed_seq QRandom + // std::exception Scintilla return ErrTooComplex } if strings.Contains(p.ParameterType, `Iterator::value_type`) { @@ -264,6 +272,7 @@ func CheckComplexity(p CppParameter, isReturnType bool) error { "QXmlStreamNamespaceDeclarations", // e.g. qxmlstream.h. As above "QXmlStreamNotationDeclarations", // e.g. qxmlstream.h. As above "QXmlStreamAttributes", // e.g. qxmlstream.h + "LineLayout::ValidLevel", // .. "QtMsgType", // e.g. qdebug.h TODO Defined in qlogging.h, but omitted because it's predefined in qglobal.h, and our clangexec is too agressive "QTextStreamFunction", // e.g. qdebug.h "QFactoryInterface", // qfactoryinterface.h diff --git a/cmd/genbindings/intermediate.go b/cmd/genbindings/intermediate.go index 87148f5e..76b601d7 100644 --- a/cmd/genbindings/intermediate.go +++ b/cmd/genbindings/intermediate.go @@ -110,6 +110,10 @@ func (p CppParameter) QtClassType() bool { return true } + if p.ParameterType == "Scintilla::Internal::Point" { + return true + } + if p.ParameterType == "QString" || p.ParameterType == "QByteArray" { return true } diff --git a/cmd/genbindings/main.go b/cmd/genbindings/main.go index 52150a55..ac512839 100644 --- a/cmd/genbindings/main.go +++ b/cmd/genbindings/main.go @@ -25,6 +25,8 @@ func importPathForQtPackage(packageName string) string { return BaseModule + "/qt" case "qscintilla": return BaseModule + "/qt-restricted-extras/" + packageName + case "scintillaedit": + return BaseModule + "/qt-extras/" + packageName default: return BaseModule + "/qt/" + packageName } @@ -102,6 +104,7 @@ func pkgConfigCflags(packageName string) string { func main() { clang := flag.String("clang", "clang", "Custom path to clang") outDir := flag.String("outdir", "../../", "Output directory for generated gen_** files") + extraLibsDir := flag.String("extralibs", "/usr/local/src/", "Base directory to find extra library checkouts") flag.Parse() @@ -140,6 +143,18 @@ func main() { filepath.Join(*outDir, "qt-restricted-extras/qscintilla"), ClangMatchSameHeaderDefinitionOnly, ) + + // Depends on QtCore/Gui/Widgets + generate( + "scintillaedit", + []string{ + filepath.Join(*extraLibsDir, "scintilla/qt/ScintillaEdit/ScintillaEdit.h"), + }, + *clang, + strings.Fields("--std=c++1z "+pkgConfigCflags("ScintillaEdit")), + filepath.Join(*outDir, "qt-extras/scintillaedit"), + (&clangMatchUnderPath{filepath.Join(*extraLibsDir, "scintilla")}).Match, + ) } func generate(packageName string, srcDirs []string, clangBin string, cflags []string, outDir string, matcher ClangMatcher) { diff --git a/docker/genbindings.Dockerfile b/docker/genbindings.Dockerfile index 0589d25d..6ef7b241 100644 --- a/docker/genbindings.Dockerfile +++ b/docker/genbindings.Dockerfile @@ -11,6 +11,23 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ pkg-config \ build-essential && \ apt-get clean + +RUN mkdir -p /usr/local/src/scintilla && \ + git clone 'https://github.com/mirror/scintilla.git' /usr/local/src/scintilla && \ + git -C /usr/local/src/scintilla checkout rel-5-5-2 + +RUN \ + cd /usr/local/src/scintilla/qt/ScintillaEditBase && \ + qmake && \ + make && \ + cd /usr/local/src/scintilla/qt/ScintillaEdit && \ + python3 WidgetGen.py && \ + qmake && \ + make + RUN mkdir -p /usr/local/lib/pkgconfig + COPY pkg-config/QScintilla.pc.example /usr/local/lib/pkgconfig/QScintilla.pc +COPY pkg-config/ScintillaEdit.pc.example /usr/local/lib/pkgconfig/ScintillaEdit.pc + ENV GOFLAGS=-buildvcs=false diff --git a/pkg-config/ScintillaEdit.pc.example b/pkg-config/ScintillaEdit.pc.example new file mode 100644 index 00000000..9146b64b --- /dev/null +++ b/pkg-config/ScintillaEdit.pc.example @@ -0,0 +1,9 @@ +srcdir=/usr/local/src/scintilla/ + +Name: ScintillaEdit +Description: Scintilla's own upstream Qt port +URL: https://www.scintilla.org/ +Version: 5.5.2 +Requires: Qt5Widgets +Libs: -L${srcdir}/bin -lScintillaEdit +Cflags: -include stdint.h -I${srcdir}/qt/ScintillaEdit -I${srcdir}/qt/ScintillaEditBase -I${srcdir}/include -I${srcdir}/src diff --git a/qt-extras/scintillaedit/cflags.go b/qt-extras/scintillaedit/cflags.go new file mode 100644 index 00000000..a162df60 --- /dev/null +++ b/qt-extras/scintillaedit/cflags.go @@ -0,0 +1,8 @@ +package scintillaedit + +/* +#cgo CFLAGS: +#cgo CXXFLAGS: --std=c++1z +#cgo pkg-config: ScintillaEdit +*/ +import "C" From 11297b8ecd15ce92b727377255cca058d66d59a1 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 20 Oct 2024 18:02:15 +1300 Subject: [PATCH 10/12] scintillaedit: build --- qt-extras/scintillaedit/gen_ScintillaEdit.cpp | 5598 ++++++++++ qt-extras/scintillaedit/gen_ScintillaEdit.go | 9336 +++++++++++++++++ qt-extras/scintillaedit/gen_ScintillaEdit.h | 1492 +++ 3 files changed, 16426 insertions(+) create mode 100644 qt-extras/scintillaedit/gen_ScintillaEdit.cpp create mode 100644 qt-extras/scintillaedit/gen_ScintillaEdit.go create mode 100644 qt-extras/scintillaedit/gen_ScintillaEdit.h diff --git a/qt-extras/scintillaedit/gen_ScintillaEdit.cpp b/qt-extras/scintillaedit/gen_ScintillaEdit.cpp new file mode 100644 index 00000000..53152e3d --- /dev/null +++ b/qt-extras/scintillaedit/gen_ScintillaEdit.cpp @@ -0,0 +1,5598 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__CharacterRange +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__CharacterRangeFull +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__ColourRGBA +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__ColourStop +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Fill +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__FillStroke +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Font +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__FontParameters +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__IListBoxDelegate +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__IScreenLine +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__IScreenLineLayout +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Interval +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__ListBox +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__ListBoxEvent +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__ListOptions +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Menu +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__PRectangle +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Point +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Stroke +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Surface +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__SurfaceMode +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Window +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__NotificationData +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__NotifyHeader +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__RangeToFormat +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__RangeToFormatFull +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Rectangle +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__TextRange +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__TextRangeFull +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__TextToFind +#define WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__TextToFindFull +#include +#include "gen_ScintillaEdit.h" +#include "_cgo_export.h" + +Scintilla__Internal__Point* Scintilla__Internal__Point_new() { + return new Scintilla::Internal::Point(); +} + +Scintilla__Internal__Point* Scintilla__Internal__Point_new2(Scintilla__Internal__Point* param1) { + return new Scintilla::Internal::Point(*param1); +} + +Scintilla__Internal__Point* Scintilla__Internal__Point_new3(double x_) { + return new Scintilla::Internal::Point(static_cast(x_)); +} + +Scintilla__Internal__Point* Scintilla__Internal__Point_new4(double x_, double y_) { + return new Scintilla::Internal::Point(static_cast(x_), static_cast(y_)); +} + +Scintilla__Internal__Point* Scintilla__Internal__Point_FromInts(int x_, int y_) { + return new Scintilla::Internal::Point(Scintilla::Internal::Point::FromInts(static_cast(x_), static_cast(y_))); +} + +bool Scintilla__Internal__Point_OperatorEqual(const Scintilla__Internal__Point* self, Scintilla__Internal__Point* other) { + return self->operator==(*other); +} + +bool Scintilla__Internal__Point_OperatorNotEqual(const Scintilla__Internal__Point* self, Scintilla__Internal__Point* other) { + return self->operator!=(*other); +} + +Scintilla__Internal__Point* Scintilla__Internal__Point_OperatorPlus(const Scintilla__Internal__Point* self, Scintilla__Internal__Point* other) { + return new Scintilla::Internal::Point(self->operator+(*other)); +} + +Scintilla__Internal__Point* Scintilla__Internal__Point_OperatorMinus(const Scintilla__Internal__Point* self, Scintilla__Internal__Point* other) { + return new Scintilla::Internal::Point(self->operator-(*other)); +} + +void Scintilla__Internal__Point_Delete(Scintilla__Internal__Point* self) { + delete self; +} + +bool Scintilla__Internal__Interval_OperatorEqual(const Scintilla__Internal__Interval* self, Scintilla__Internal__Interval* other) { + return self->operator==(*other); +} + +double Scintilla__Internal__Interval_Width(const Scintilla__Internal__Interval* self) { + Scintilla::Internal::XYPOSITION _ret = self->Width(); + return static_cast(_ret); +} + +bool Scintilla__Internal__Interval_Empty(const Scintilla__Internal__Interval* self) { + return self->Empty(); +} + +bool Scintilla__Internal__Interval_Intersects(const Scintilla__Internal__Interval* self, Scintilla__Internal__Interval* other) { + return self->Intersects(*other); +} + +Scintilla__Internal__Interval* Scintilla__Internal__Interval_Offset(const Scintilla__Internal__Interval* self, double offset) { + return new Scintilla::Internal::Interval(self->Offset(static_cast(offset))); +} + +void Scintilla__Internal__Interval_Delete(Scintilla__Internal__Interval* self) { + delete self; +} + +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new() { + return new Scintilla::Internal::PRectangle(); +} + +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new2(Scintilla__Internal__PRectangle* param1) { + return new Scintilla::Internal::PRectangle(*param1); +} + +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new3(double left_) { + return new Scintilla::Internal::PRectangle(static_cast(left_)); +} + +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new4(double left_, double top_) { + return new Scintilla::Internal::PRectangle(static_cast(left_), static_cast(top_)); +} + +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new5(double left_, double top_, double right_) { + return new Scintilla::Internal::PRectangle(static_cast(left_), static_cast(top_), static_cast(right_)); +} + +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new6(double left_, double top_, double right_, double bottom_) { + return new Scintilla::Internal::PRectangle(static_cast(left_), static_cast(top_), static_cast(right_), static_cast(bottom_)); +} + +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_FromInts(int left_, int top_, int right_, int bottom_) { + return new Scintilla::Internal::PRectangle(Scintilla::Internal::PRectangle::FromInts(static_cast(left_), static_cast(top_), static_cast(right_), static_cast(bottom_))); +} + +bool Scintilla__Internal__PRectangle_OperatorEqual(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__PRectangle* rc) { + return self->operator==(*rc); +} + +bool Scintilla__Internal__PRectangle_Contains(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__Point* pt) { + return self->Contains(*pt); +} + +bool Scintilla__Internal__PRectangle_ContainsWholePixel(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__Point* pt) { + return self->ContainsWholePixel(*pt); +} + +bool Scintilla__Internal__PRectangle_ContainsWithRc(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__PRectangle* rc) { + return self->Contains(*rc); +} + +bool Scintilla__Internal__PRectangle_Intersects(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__PRectangle* other) { + return self->Intersects(*other); +} + +bool Scintilla__Internal__PRectangle_IntersectsWithHorizontalBounds(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__Interval* horizontalBounds) { + return self->Intersects(*horizontalBounds); +} + +void Scintilla__Internal__PRectangle_Move(Scintilla__Internal__PRectangle* self, double xDelta, double yDelta) { + self->Move(static_cast(xDelta), static_cast(yDelta)); +} + +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_WithHorizontalBounds(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__Interval* horizontal) { + return new Scintilla::Internal::PRectangle(self->WithHorizontalBounds(*horizontal)); +} + +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_Inset(const Scintilla__Internal__PRectangle* self, double delta) { + return new Scintilla::Internal::PRectangle(self->Inset(static_cast(delta))); +} + +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_InsetWithDelta(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__Point* delta) { + return new Scintilla::Internal::PRectangle(self->Inset(*delta)); +} + +Scintilla__Internal__Point* Scintilla__Internal__PRectangle_Centre(const Scintilla__Internal__PRectangle* self) { + return new Scintilla::Internal::Point(self->Centre()); +} + +double Scintilla__Internal__PRectangle_Width(const Scintilla__Internal__PRectangle* self) { + Scintilla::Internal::XYPOSITION _ret = self->Width(); + return static_cast(_ret); +} + +double Scintilla__Internal__PRectangle_Height(const Scintilla__Internal__PRectangle* self) { + Scintilla::Internal::XYPOSITION _ret = self->Height(); + return static_cast(_ret); +} + +bool Scintilla__Internal__PRectangle_Empty(const Scintilla__Internal__PRectangle* self) { + return self->Empty(); +} + +void Scintilla__Internal__PRectangle_Delete(Scintilla__Internal__PRectangle* self) { + delete self; +} + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new() { + return new Scintilla::Internal::ColourRGBA(); +} + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new2(unsigned int red, unsigned int green, unsigned int blue) { + return new Scintilla::Internal::ColourRGBA(static_cast(red), static_cast(green), static_cast(blue)); +} + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new3(Scintilla__Internal__ColourRGBA* cd, unsigned int alpha) { + return new Scintilla::Internal::ColourRGBA(*cd, static_cast(alpha)); +} + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new4(Scintilla__Internal__ColourRGBA* param1) { + return new Scintilla::Internal::ColourRGBA(*param1); +} + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new5(int co_) { + return new Scintilla::Internal::ColourRGBA(static_cast(co_)); +} + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new6(unsigned int red, unsigned int green, unsigned int blue, unsigned int alpha) { + return new Scintilla::Internal::ColourRGBA(static_cast(red), static_cast(green), static_cast(blue), static_cast(alpha)); +} + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_FromRGB(int co_) { + return new Scintilla::Internal::ColourRGBA(Scintilla::Internal::ColourRGBA::FromRGB(static_cast(co_))); +} + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_Grey(unsigned int grey) { + return new Scintilla::Internal::ColourRGBA(Scintilla::Internal::ColourRGBA::Grey(static_cast(grey))); +} + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_FromIpRGB(intptr_t co_) { + return new Scintilla::Internal::ColourRGBA(Scintilla::Internal::ColourRGBA::FromIpRGB(static_cast(co_))); +} + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_WithoutAlpha(const Scintilla__Internal__ColourRGBA* self) { + return new Scintilla::Internal::ColourRGBA(self->WithoutAlpha()); +} + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_Opaque(const Scintilla__Internal__ColourRGBA* self) { + return new Scintilla::Internal::ColourRGBA(self->Opaque()); +} + +int Scintilla__Internal__ColourRGBA_AsInteger(const Scintilla__Internal__ColourRGBA* self) { + return self->AsInteger(); +} + +int Scintilla__Internal__ColourRGBA_OpaqueRGB(const Scintilla__Internal__ColourRGBA* self) { + return self->OpaqueRGB(); +} + +unsigned char Scintilla__Internal__ColourRGBA_GetRed(const Scintilla__Internal__ColourRGBA* self) { + return self->GetRed(); +} + +unsigned char Scintilla__Internal__ColourRGBA_GetGreen(const Scintilla__Internal__ColourRGBA* self) { + return self->GetGreen(); +} + +unsigned char Scintilla__Internal__ColourRGBA_GetBlue(const Scintilla__Internal__ColourRGBA* self) { + return self->GetBlue(); +} + +unsigned char Scintilla__Internal__ColourRGBA_GetAlpha(const Scintilla__Internal__ColourRGBA* self) { + return self->GetAlpha(); +} + +float Scintilla__Internal__ColourRGBA_GetRedComponent(const Scintilla__Internal__ColourRGBA* self) { + return self->GetRedComponent(); +} + +float Scintilla__Internal__ColourRGBA_GetGreenComponent(const Scintilla__Internal__ColourRGBA* self) { + return self->GetGreenComponent(); +} + +float Scintilla__Internal__ColourRGBA_GetBlueComponent(const Scintilla__Internal__ColourRGBA* self) { + return self->GetBlueComponent(); +} + +float Scintilla__Internal__ColourRGBA_GetAlphaComponent(const Scintilla__Internal__ColourRGBA* self) { + return self->GetAlphaComponent(); +} + +bool Scintilla__Internal__ColourRGBA_OperatorEqual(const Scintilla__Internal__ColourRGBA* self, Scintilla__Internal__ColourRGBA* other) { + return self->operator==(*other); +} + +bool Scintilla__Internal__ColourRGBA_IsOpaque(const Scintilla__Internal__ColourRGBA* self) { + return self->IsOpaque(); +} + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_MixedWith(const Scintilla__Internal__ColourRGBA* self, Scintilla__Internal__ColourRGBA* other) { + return new Scintilla::Internal::ColourRGBA(self->MixedWith(*other)); +} + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_MixedWith2(const Scintilla__Internal__ColourRGBA* self, Scintilla__Internal__ColourRGBA* other, double proportion) { + return new Scintilla::Internal::ColourRGBA(self->MixedWith(*other, static_cast(proportion))); +} + +void Scintilla__Internal__ColourRGBA_OperatorAssign(Scintilla__Internal__ColourRGBA* self, Scintilla__Internal__ColourRGBA* param1) { + self->operator=(*param1); +} + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_Grey2(unsigned int grey, unsigned int alpha) { + return new Scintilla::Internal::ColourRGBA(Scintilla::Internal::ColourRGBA::Grey(static_cast(grey), static_cast(alpha))); +} + +void Scintilla__Internal__ColourRGBA_Delete(Scintilla__Internal__ColourRGBA* self) { + delete self; +} + +Scintilla__Internal__Stroke* Scintilla__Internal__Stroke_new(Scintilla__Internal__ColourRGBA* colour_) { + return new Scintilla::Internal::Stroke(*colour_); +} + +Scintilla__Internal__Stroke* Scintilla__Internal__Stroke_new2(Scintilla__Internal__Stroke* param1) { + return new Scintilla::Internal::Stroke(*param1); +} + +Scintilla__Internal__Stroke* Scintilla__Internal__Stroke_new3(Scintilla__Internal__ColourRGBA* colour_, double width_) { + return new Scintilla::Internal::Stroke(*colour_, static_cast(width_)); +} + +float Scintilla__Internal__Stroke_WidthF(const Scintilla__Internal__Stroke* self) { + return self->WidthF(); +} + +void Scintilla__Internal__Stroke_Delete(Scintilla__Internal__Stroke* self) { + delete self; +} + +Scintilla__Internal__Fill* Scintilla__Internal__Fill_new(Scintilla__Internal__ColourRGBA* colour_) { + return new Scintilla::Internal::Fill(*colour_); +} + +Scintilla__Internal__Fill* Scintilla__Internal__Fill_new2(Scintilla__Internal__Fill* param1) { + return new Scintilla::Internal::Fill(*param1); +} + +void Scintilla__Internal__Fill_Delete(Scintilla__Internal__Fill* self) { + delete self; +} + +Scintilla__Internal__FillStroke* Scintilla__Internal__FillStroke_new(Scintilla__Internal__ColourRGBA* colourFill_, Scintilla__Internal__ColourRGBA* colourStroke_) { + return new Scintilla::Internal::FillStroke(*colourFill_, *colourStroke_); +} + +Scintilla__Internal__FillStroke* Scintilla__Internal__FillStroke_new2(Scintilla__Internal__ColourRGBA* colourBoth) { + return new Scintilla::Internal::FillStroke(*colourBoth); +} + +Scintilla__Internal__FillStroke* Scintilla__Internal__FillStroke_new3(Scintilla__Internal__ColourRGBA* colourFill_, Scintilla__Internal__ColourRGBA* colourStroke_, double widthStroke_) { + return new Scintilla::Internal::FillStroke(*colourFill_, *colourStroke_, static_cast(widthStroke_)); +} + +Scintilla__Internal__FillStroke* Scintilla__Internal__FillStroke_new4(Scintilla__Internal__ColourRGBA* colourBoth, double widthStroke_) { + return new Scintilla::Internal::FillStroke(*colourBoth, static_cast(widthStroke_)); +} + +void Scintilla__Internal__FillStroke_Delete(Scintilla__Internal__FillStroke* self) { + delete self; +} + +Scintilla__Internal__ColourStop* Scintilla__Internal__ColourStop_new(double position_, Scintilla__Internal__ColourRGBA* colour_) { + return new Scintilla::Internal::ColourStop(static_cast(position_), *colour_); +} + +void Scintilla__Internal__ColourStop_Delete(Scintilla__Internal__ColourStop* self) { + delete self; +} + +void Scintilla__CharacterRange_Delete(Scintilla__CharacterRange* self) { + delete self; +} + +void Scintilla__CharacterRangeFull_Delete(Scintilla__CharacterRangeFull* self) { + delete self; +} + +void Scintilla__TextRange_Delete(Scintilla__TextRange* self) { + delete self; +} + +void Scintilla__TextRangeFull_Delete(Scintilla__TextRangeFull* self) { + delete self; +} + +void Scintilla__TextToFind_Delete(Scintilla__TextToFind* self) { + delete self; +} + +void Scintilla__TextToFindFull_Delete(Scintilla__TextToFindFull* self) { + delete self; +} + +void Scintilla__Rectangle_Delete(Scintilla__Rectangle* self) { + delete self; +} + +void Scintilla__RangeToFormat_Delete(Scintilla__RangeToFormat* self) { + delete self; +} + +void Scintilla__RangeToFormatFull_Delete(Scintilla__RangeToFormatFull* self) { + delete self; +} + +void Scintilla__NotifyHeader_Delete(Scintilla__NotifyHeader* self) { + delete self; +} + +void Scintilla__NotificationData_Delete(Scintilla__NotificationData* self) { + delete self; +} + +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new(const char* faceName_) { + return new Scintilla::Internal::FontParameters(faceName_); +} + +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new2(const char* faceName_, double size_) { + return new Scintilla::Internal::FontParameters(faceName_, static_cast(size_)); +} + +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new3(const char* faceName_, double size_, int weight_) { + return new Scintilla::Internal::FontParameters(faceName_, static_cast(size_), static_cast(weight_)); +} + +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new4(const char* faceName_, double size_, int weight_, bool italic_) { + return new Scintilla::Internal::FontParameters(faceName_, static_cast(size_), static_cast(weight_), italic_); +} + +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new5(const char* faceName_, double size_, int weight_, bool italic_, int extraFontFlag_) { + return new Scintilla::Internal::FontParameters(faceName_, static_cast(size_), static_cast(weight_), italic_, static_cast(extraFontFlag_)); +} + +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new6(const char* faceName_, double size_, int weight_, bool italic_, int extraFontFlag_, int technology_) { + return new Scintilla::Internal::FontParameters(faceName_, static_cast(size_), static_cast(weight_), italic_, static_cast(extraFontFlag_), static_cast(technology_)); +} + +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new7(const char* faceName_, double size_, int weight_, bool italic_, int extraFontFlag_, int technology_, int characterSet_) { + return new Scintilla::Internal::FontParameters(faceName_, static_cast(size_), static_cast(weight_), italic_, static_cast(extraFontFlag_), static_cast(technology_), static_cast(characterSet_)); +} + +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new8(const char* faceName_, double size_, int weight_, bool italic_, int extraFontFlag_, int technology_, int characterSet_, const char* localeName_) { + return new Scintilla::Internal::FontParameters(faceName_, static_cast(size_), static_cast(weight_), italic_, static_cast(extraFontFlag_), static_cast(technology_), static_cast(characterSet_), localeName_); +} + +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new9(const char* faceName_, double size_, int weight_, bool italic_, int extraFontFlag_, int technology_, int characterSet_, const char* localeName_, int stretch_) { + return new Scintilla::Internal::FontParameters(faceName_, static_cast(size_), static_cast(weight_), italic_, static_cast(extraFontFlag_), static_cast(technology_), static_cast(characterSet_), localeName_, static_cast(stretch_)); +} + +void Scintilla__Internal__FontParameters_Delete(Scintilla__Internal__FontParameters* self) { + delete self; +} + +Scintilla__Internal__Font* Scintilla__Internal__Font_new() { + return new Scintilla::Internal::Font(); +} + +void Scintilla__Internal__Font_Delete(Scintilla__Internal__Font* self) { + delete self; +} + +size_t Scintilla__Internal__IScreenLine_Length(const Scintilla__Internal__IScreenLine* self) { + return self->Length(); +} + +size_t Scintilla__Internal__IScreenLine_RepresentationCount(const Scintilla__Internal__IScreenLine* self) { + return self->RepresentationCount(); +} + +double Scintilla__Internal__IScreenLine_Width(const Scintilla__Internal__IScreenLine* self) { + Scintilla::Internal::XYPOSITION _ret = self->Width(); + return static_cast(_ret); +} + +double Scintilla__Internal__IScreenLine_Height(const Scintilla__Internal__IScreenLine* self) { + Scintilla::Internal::XYPOSITION _ret = self->Height(); + return static_cast(_ret); +} + +double Scintilla__Internal__IScreenLine_TabWidth(const Scintilla__Internal__IScreenLine* self) { + Scintilla::Internal::XYPOSITION _ret = self->TabWidth(); + return static_cast(_ret); +} + +double Scintilla__Internal__IScreenLine_TabWidthMinimumPixels(const Scintilla__Internal__IScreenLine* self) { + Scintilla::Internal::XYPOSITION _ret = self->TabWidthMinimumPixels(); + return static_cast(_ret); +} + +Scintilla__Internal__Font* Scintilla__Internal__IScreenLine_FontOfPosition(const Scintilla__Internal__IScreenLine* self, size_t position) { + return (Scintilla__Internal__Font*) self->FontOfPosition(static_cast(position)); +} + +double Scintilla__Internal__IScreenLine_RepresentationWidth(const Scintilla__Internal__IScreenLine* self, size_t position) { + Scintilla::Internal::XYPOSITION _ret = self->RepresentationWidth(static_cast(position)); + return static_cast(_ret); +} + +double Scintilla__Internal__IScreenLine_TabPositionAfter(const Scintilla__Internal__IScreenLine* self, double xPosition) { + Scintilla::Internal::XYPOSITION _ret = self->TabPositionAfter(static_cast(xPosition)); + return static_cast(_ret); +} + +void Scintilla__Internal__IScreenLine_OperatorAssign(Scintilla__Internal__IScreenLine* self, Scintilla__Internal__IScreenLine* param1) { + self->operator=(*param1); +} + +void Scintilla__Internal__IScreenLine_Delete(Scintilla__Internal__IScreenLine* self) { + delete self; +} + +size_t Scintilla__Internal__IScreenLineLayout_PositionFromX(Scintilla__Internal__IScreenLineLayout* self, double xDistance, bool charPosition) { + return self->PositionFromX(static_cast(xDistance), charPosition); +} + +double Scintilla__Internal__IScreenLineLayout_XFromPosition(Scintilla__Internal__IScreenLineLayout* self, size_t caretPosition) { + Scintilla::Internal::XYPOSITION _ret = self->XFromPosition(static_cast(caretPosition)); + return static_cast(_ret); +} + +void Scintilla__Internal__IScreenLineLayout_OperatorAssign(Scintilla__Internal__IScreenLineLayout* self, Scintilla__Internal__IScreenLineLayout* param1) { + self->operator=(*param1); +} + +void Scintilla__Internal__IScreenLineLayout_Delete(Scintilla__Internal__IScreenLineLayout* self) { + delete self; +} + +Scintilla__Internal__SurfaceMode* Scintilla__Internal__SurfaceMode_new() { + return new Scintilla::Internal::SurfaceMode(); +} + +Scintilla__Internal__SurfaceMode* Scintilla__Internal__SurfaceMode_new2(int codePage_, bool bidiR2L_) { + return new Scintilla::Internal::SurfaceMode(static_cast(codePage_), bidiR2L_); +} + +void Scintilla__Internal__SurfaceMode_Delete(Scintilla__Internal__SurfaceMode* self) { + delete self; +} + +void Scintilla__Internal__Surface_Init(Scintilla__Internal__Surface* self, void* wid) { + self->Init(wid); +} + +void Scintilla__Internal__Surface_Init2(Scintilla__Internal__Surface* self, void* sid, void* wid) { + self->Init(sid, wid); +} + +void Scintilla__Internal__Surface_SetMode(Scintilla__Internal__Surface* self, Scintilla__Internal__SurfaceMode* mode) { + self->SetMode(*mode); +} + +void Scintilla__Internal__Surface_Release(Scintilla__Internal__Surface* self) { + self->Release(); +} + +int Scintilla__Internal__Surface_SupportsFeature(Scintilla__Internal__Surface* self, int feature) { + return self->SupportsFeature(static_cast(feature)); +} + +bool Scintilla__Internal__Surface_Initialised(Scintilla__Internal__Surface* self) { + return self->Initialised(); +} + +int Scintilla__Internal__Surface_LogPixelsY(Scintilla__Internal__Surface* self) { + return self->LogPixelsY(); +} + +int Scintilla__Internal__Surface_PixelDivisions(Scintilla__Internal__Surface* self) { + return self->PixelDivisions(); +} + +int Scintilla__Internal__Surface_DeviceHeightFont(Scintilla__Internal__Surface* self, int points) { + return self->DeviceHeightFont(static_cast(points)); +} + +void Scintilla__Internal__Surface_LineDraw(Scintilla__Internal__Surface* self, Scintilla__Internal__Point* start, Scintilla__Internal__Point* end, Scintilla__Internal__Stroke* stroke) { + self->LineDraw(*start, *end, *stroke); +} + +void Scintilla__Internal__Surface_PolyLine(Scintilla__Internal__Surface* self, Scintilla__Internal__Point* pts, size_t npts, Scintilla__Internal__Stroke* stroke) { + self->PolyLine(pts, static_cast(npts), *stroke); +} + +void Scintilla__Internal__Surface_Polygon(Scintilla__Internal__Surface* self, Scintilla__Internal__Point* pts, size_t npts, Scintilla__Internal__FillStroke* fillStroke) { + self->Polygon(pts, static_cast(npts), *fillStroke); +} + +void Scintilla__Internal__Surface_RectangleDraw(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__FillStroke* fillStroke) { + self->RectangleDraw(*rc, *fillStroke); +} + +void Scintilla__Internal__Surface_RectangleFrame(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__Stroke* stroke) { + self->RectangleFrame(*rc, *stroke); +} + +void Scintilla__Internal__Surface_FillRectangle(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__Fill* fill) { + self->FillRectangle(*rc, *fill); +} + +void Scintilla__Internal__Surface_FillRectangleAligned(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__Fill* fill) { + self->FillRectangleAligned(*rc, *fill); +} + +void Scintilla__Internal__Surface_FillRectangle2(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__Surface* surfacePattern) { + self->FillRectangle(*rc, *surfacePattern); +} + +void Scintilla__Internal__Surface_RoundedRectangle(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__FillStroke* fillStroke) { + self->RoundedRectangle(*rc, *fillStroke); +} + +void Scintilla__Internal__Surface_AlphaRectangle(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, double cornerSize, Scintilla__Internal__FillStroke* fillStroke) { + self->AlphaRectangle(*rc, static_cast(cornerSize), *fillStroke); +} + +void Scintilla__Internal__Surface_DrawRGBAImage(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, int width, int height, const unsigned char* pixelsImage) { + self->DrawRGBAImage(*rc, static_cast(width), static_cast(height), static_cast(pixelsImage)); +} + +void Scintilla__Internal__Surface_Ellipse(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__FillStroke* fillStroke) { + self->Ellipse(*rc, *fillStroke); +} + +void Scintilla__Internal__Surface_Stadium(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__FillStroke* fillStroke, int ends) { + self->Stadium(*rc, *fillStroke, static_cast(ends)); +} + +void Scintilla__Internal__Surface_Copy(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__Point* from, Scintilla__Internal__Surface* surfaceSource) { + self->Copy(*rc, *from, *surfaceSource); +} + +double Scintilla__Internal__Surface_Ascent(Scintilla__Internal__Surface* self, Scintilla__Internal__Font* font_) { + Scintilla::Internal::XYPOSITION _ret = self->Ascent(font_); + return static_cast(_ret); +} + +double Scintilla__Internal__Surface_Descent(Scintilla__Internal__Surface* self, Scintilla__Internal__Font* font_) { + Scintilla::Internal::XYPOSITION _ret = self->Descent(font_); + return static_cast(_ret); +} + +double Scintilla__Internal__Surface_InternalLeading(Scintilla__Internal__Surface* self, Scintilla__Internal__Font* font_) { + Scintilla::Internal::XYPOSITION _ret = self->InternalLeading(font_); + return static_cast(_ret); +} + +double Scintilla__Internal__Surface_Height(Scintilla__Internal__Surface* self, Scintilla__Internal__Font* font_) { + Scintilla::Internal::XYPOSITION _ret = self->Height(font_); + return static_cast(_ret); +} + +double Scintilla__Internal__Surface_AverageCharWidth(Scintilla__Internal__Surface* self, Scintilla__Internal__Font* font_) { + Scintilla::Internal::XYPOSITION _ret = self->AverageCharWidth(font_); + return static_cast(_ret); +} + +void Scintilla__Internal__Surface_SetClip(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc) { + self->SetClip(*rc); +} + +void Scintilla__Internal__Surface_PopClip(Scintilla__Internal__Surface* self) { + self->PopClip(); +} + +void Scintilla__Internal__Surface_FlushCachedState(Scintilla__Internal__Surface* self) { + self->FlushCachedState(); +} + +void Scintilla__Internal__Surface_FlushDrawing(Scintilla__Internal__Surface* self) { + self->FlushDrawing(); +} + +void Scintilla__Internal__Surface_Delete(Scintilla__Internal__Surface* self) { + delete self; +} + +Scintilla__Internal__Window* Scintilla__Internal__Window_new() { + return new Scintilla::Internal::Window(); +} + +void Scintilla__Internal__Window_OperatorAssign(Scintilla__Internal__Window* self, void* wid_) { + self->operator=(wid_); +} + +void* Scintilla__Internal__Window_GetID(const Scintilla__Internal__Window* self) { + Scintilla::Internal::WindowID _ret = self->GetID(); + return static_cast(_ret); +} + +bool Scintilla__Internal__Window_Created(const Scintilla__Internal__Window* self) { + return self->Created(); +} + +void Scintilla__Internal__Window_Destroy(Scintilla__Internal__Window* self) { + self->Destroy(); +} + +Scintilla__Internal__PRectangle* Scintilla__Internal__Window_GetPosition(const Scintilla__Internal__Window* self) { + return new Scintilla::Internal::PRectangle(self->GetPosition()); +} + +void Scintilla__Internal__Window_SetPosition(Scintilla__Internal__Window* self, Scintilla__Internal__PRectangle* rc) { + self->SetPosition(*rc); +} + +void Scintilla__Internal__Window_SetPositionRelative(Scintilla__Internal__Window* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__Window* relativeTo) { + self->SetPositionRelative(*rc, relativeTo); +} + +Scintilla__Internal__PRectangle* Scintilla__Internal__Window_GetClientPosition(const Scintilla__Internal__Window* self) { + return new Scintilla::Internal::PRectangle(self->GetClientPosition()); +} + +void Scintilla__Internal__Window_Show(Scintilla__Internal__Window* self) { + self->Show(); +} + +void Scintilla__Internal__Window_InvalidateAll(Scintilla__Internal__Window* self) { + self->InvalidateAll(); +} + +void Scintilla__Internal__Window_InvalidateRectangle(Scintilla__Internal__Window* self, Scintilla__Internal__PRectangle* rc) { + self->InvalidateRectangle(*rc); +} + +void Scintilla__Internal__Window_SetCursor(Scintilla__Internal__Window* self, int curs) { + self->SetCursor(static_cast(curs)); +} + +Scintilla__Internal__PRectangle* Scintilla__Internal__Window_GetMonitorRect(Scintilla__Internal__Window* self, Scintilla__Internal__Point* pt) { + return new Scintilla::Internal::PRectangle(self->GetMonitorRect(*pt)); +} + +void Scintilla__Internal__Window_Show1(Scintilla__Internal__Window* self, bool show) { + self->Show(show); +} + +void Scintilla__Internal__Window_Delete(Scintilla__Internal__Window* self) { + delete self; +} + +Scintilla__Internal__ListBoxEvent* Scintilla__Internal__ListBoxEvent_new(int event_) { + return new Scintilla::Internal::ListBoxEvent(static_cast(event_)); +} + +void Scintilla__Internal__ListBoxEvent_Delete(Scintilla__Internal__ListBoxEvent* self) { + delete self; +} + +void Scintilla__Internal__IListBoxDelegate_ListNotify(Scintilla__Internal__IListBoxDelegate* self, Scintilla__Internal__ListBoxEvent* plbe) { + self->ListNotify(plbe); +} + +void Scintilla__Internal__IListBoxDelegate_OperatorAssign(Scintilla__Internal__IListBoxDelegate* self, Scintilla__Internal__IListBoxDelegate* param1) { + self->operator=(*param1); +} + +void Scintilla__Internal__IListBoxDelegate_Delete(Scintilla__Internal__IListBoxDelegate* self) { + delete self; +} + +void Scintilla__Internal__ListOptions_Delete(Scintilla__Internal__ListOptions* self) { + delete self; +} + +void Scintilla__Internal__ListBox_SetFont(Scintilla__Internal__ListBox* self, Scintilla__Internal__Font* font) { + self->SetFont(font); +} + +void Scintilla__Internal__ListBox_Create(Scintilla__Internal__ListBox* self, Scintilla__Internal__Window* parent, int ctrlID, Scintilla__Internal__Point* location, int lineHeight_, bool unicodeMode_, int technology_) { + self->Create(*parent, static_cast(ctrlID), *location, static_cast(lineHeight_), unicodeMode_, static_cast(technology_)); +} + +void Scintilla__Internal__ListBox_SetAverageCharWidth(Scintilla__Internal__ListBox* self, int width) { + self->SetAverageCharWidth(static_cast(width)); +} + +void Scintilla__Internal__ListBox_SetVisibleRows(Scintilla__Internal__ListBox* self, int rows) { + self->SetVisibleRows(static_cast(rows)); +} + +int Scintilla__Internal__ListBox_GetVisibleRows(const Scintilla__Internal__ListBox* self) { + return self->GetVisibleRows(); +} + +Scintilla__Internal__PRectangle* Scintilla__Internal__ListBox_GetDesiredRect(Scintilla__Internal__ListBox* self) { + return new Scintilla::Internal::PRectangle(self->GetDesiredRect()); +} + +int Scintilla__Internal__ListBox_CaretFromEdge(Scintilla__Internal__ListBox* self) { + return self->CaretFromEdge(); +} + +void Scintilla__Internal__ListBox_Clear(Scintilla__Internal__ListBox* self) { + self->Clear(); +} + +void Scintilla__Internal__ListBox_Append(Scintilla__Internal__ListBox* self, char* s) { + self->Append(s); +} + +int Scintilla__Internal__ListBox_Length(Scintilla__Internal__ListBox* self) { + return self->Length(); +} + +void Scintilla__Internal__ListBox_Select(Scintilla__Internal__ListBox* self, int n) { + self->Select(static_cast(n)); +} + +int Scintilla__Internal__ListBox_GetSelection(Scintilla__Internal__ListBox* self) { + return self->GetSelection(); +} + +int Scintilla__Internal__ListBox_Find(Scintilla__Internal__ListBox* self, const char* prefix) { + return self->Find(prefix); +} + +void Scintilla__Internal__ListBox_RegisterImage(Scintilla__Internal__ListBox* self, int typeVal, const char* xpm_data) { + self->RegisterImage(static_cast(typeVal), xpm_data); +} + +void Scintilla__Internal__ListBox_RegisterRGBAImage(Scintilla__Internal__ListBox* self, int typeVal, int width, int height, const unsigned char* pixelsImage) { + self->RegisterRGBAImage(static_cast(typeVal), static_cast(width), static_cast(height), static_cast(pixelsImage)); +} + +void Scintilla__Internal__ListBox_ClearRegisteredImages(Scintilla__Internal__ListBox* self) { + self->ClearRegisteredImages(); +} + +void Scintilla__Internal__ListBox_SetDelegate(Scintilla__Internal__ListBox* self, Scintilla__Internal__IListBoxDelegate* lbDelegate) { + self->SetDelegate(lbDelegate); +} + +void Scintilla__Internal__ListBox_SetList(Scintilla__Internal__ListBox* self, const char* list, char separator, char typesep) { + self->SetList(list, static_cast(separator), static_cast(typesep)); +} + +void Scintilla__Internal__ListBox_SetOptions(Scintilla__Internal__ListBox* self, Scintilla__Internal__ListOptions* options_) { + self->SetOptions(*options_); +} + +void Scintilla__Internal__ListBox_Append2(Scintilla__Internal__ListBox* self, char* s, int typeVal) { + self->Append(s, static_cast(typeVal)); +} + +void Scintilla__Internal__ListBox_Delete(Scintilla__Internal__ListBox* self) { + delete self; +} + +Scintilla__Internal__Menu* Scintilla__Internal__Menu_new() { + return new Scintilla::Internal::Menu(); +} + +void* Scintilla__Internal__Menu_GetID(const Scintilla__Internal__Menu* self) { + Scintilla::Internal::MenuID _ret = self->GetID(); + return static_cast(_ret); +} + +void Scintilla__Internal__Menu_CreatePopUp(Scintilla__Internal__Menu* self) { + self->CreatePopUp(); +} + +void Scintilla__Internal__Menu_Destroy(Scintilla__Internal__Menu* self) { + self->Destroy(); +} + +void Scintilla__Internal__Menu_Show(Scintilla__Internal__Menu* self, Scintilla__Internal__Point* pt, Scintilla__Internal__Window* w) { + self->Show(*pt, *w); +} + +void Scintilla__Internal__Menu_Delete(Scintilla__Internal__Menu* self) { + delete self; +} + +void Sci_CharacterRange_Delete(Sci_CharacterRange* self) { + delete self; +} + +void Sci_CharacterRangeFull_Delete(Sci_CharacterRangeFull* self) { + delete self; +} + +void Sci_TextRange_Delete(Sci_TextRange* self) { + delete self; +} + +void Sci_TextRangeFull_Delete(Sci_TextRangeFull* self) { + delete self; +} + +void Sci_TextToFind_Delete(Sci_TextToFind* self) { + delete self; +} + +void Sci_TextToFindFull_Delete(Sci_TextToFindFull* self) { + delete self; +} + +void Sci_Rectangle_Delete(Sci_Rectangle* self) { + delete self; +} + +void Sci_RangeToFormat_Delete(Sci_RangeToFormat* self) { + delete self; +} + +void Sci_RangeToFormatFull_Delete(Sci_RangeToFormatFull* self) { + delete self; +} + +void Sci_NotifyHeader_Delete(Sci_NotifyHeader* self) { + delete self; +} + +void SCNotification_Delete(SCNotification* self) { + delete self; +} + +ScintillaEditBase* ScintillaEditBase_new() { + return new ScintillaEditBase(); +} + +ScintillaEditBase* ScintillaEditBase_new2(QWidget* parent) { + return new ScintillaEditBase(parent); +} + +QMetaObject* ScintillaEditBase_MetaObject(const ScintillaEditBase* self) { + return (QMetaObject*) self->metaObject(); +} + +void* ScintillaEditBase_Metacast(ScintillaEditBase* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string ScintillaEditBase_Tr(const char* s) { + QString _ret = ScintillaEditBase::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 ScintillaEditBase_TrUtf8(const char* s) { + QString _ret = ScintillaEditBase::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; +} + +intptr_t ScintillaEditBase_Send(const ScintillaEditBase* self, unsigned int iMessage) { + sptr_t _ret = self->send(static_cast(iMessage)); + return static_cast(_ret); +} + +intptr_t ScintillaEditBase_Sends(const ScintillaEditBase* self, unsigned int iMessage) { + sptr_t _ret = self->sends(static_cast(iMessage)); + return static_cast(_ret); +} + +void ScintillaEditBase_ScrollHorizontal(ScintillaEditBase* self, int value) { + self->scrollHorizontal(static_cast(value)); +} + +void ScintillaEditBase_ScrollVertical(ScintillaEditBase* self, int value) { + self->scrollVertical(static_cast(value)); +} + +void ScintillaEditBase_NotifyParent(ScintillaEditBase* self, Scintilla__NotificationData* scn) { + self->notifyParent(*scn); +} + +void ScintillaEditBase_EventCommand(ScintillaEditBase* self, uintptr_t wParam, intptr_t lParam) { + self->event_command(static_cast(wParam), static_cast(lParam)); +} + +void ScintillaEditBase_HorizontalScrolled(ScintillaEditBase* self, int value) { + self->horizontalScrolled(static_cast(value)); +} + +void ScintillaEditBase_connect_HorizontalScrolled(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::horizontalScrolled), self, [=](int value) { + int sigval1 = value; + miqt_exec_callback_ScintillaEditBase_HorizontalScrolled(slot, sigval1); + }); +} + +void ScintillaEditBase_VerticalScrolled(ScintillaEditBase* self, int value) { + self->verticalScrolled(static_cast(value)); +} + +void ScintillaEditBase_connect_VerticalScrolled(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::verticalScrolled), self, [=](int value) { + int sigval1 = value; + miqt_exec_callback_ScintillaEditBase_VerticalScrolled(slot, sigval1); + }); +} + +void ScintillaEditBase_HorizontalRangeChanged(ScintillaEditBase* self, int max, int page) { + self->horizontalRangeChanged(static_cast(max), static_cast(page)); +} + +void ScintillaEditBase_connect_HorizontalRangeChanged(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::horizontalRangeChanged), self, [=](int max, int page) { + int sigval1 = max; + int sigval2 = page; + miqt_exec_callback_ScintillaEditBase_HorizontalRangeChanged(slot, sigval1, sigval2); + }); +} + +void ScintillaEditBase_VerticalRangeChanged(ScintillaEditBase* self, int max, int page) { + self->verticalRangeChanged(static_cast(max), static_cast(page)); +} + +void ScintillaEditBase_connect_VerticalRangeChanged(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::verticalRangeChanged), self, [=](int max, int page) { + int sigval1 = max; + int sigval2 = page; + miqt_exec_callback_ScintillaEditBase_VerticalRangeChanged(slot, sigval1, sigval2); + }); +} + +void ScintillaEditBase_NotifyChange(ScintillaEditBase* self) { + self->notifyChange(); +} + +void ScintillaEditBase_connect_NotifyChange(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::notifyChange), self, [=]() { + miqt_exec_callback_ScintillaEditBase_NotifyChange(slot); + }); +} + +void ScintillaEditBase_LinesAdded(ScintillaEditBase* self, intptr_t linesAdded) { + self->linesAdded(static_cast(linesAdded)); +} + +void ScintillaEditBase_connect_LinesAdded(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::linesAdded), self, [=](Scintilla::Position linesAdded) { + Scintilla::Position linesAdded_ret = linesAdded; + intptr_t sigval1 = static_cast(linesAdded_ret); + miqt_exec_callback_ScintillaEditBase_LinesAdded(slot, sigval1); + }); +} + +void ScintillaEditBase_AboutToCopy(ScintillaEditBase* self, QMimeData* data) { + self->aboutToCopy(data); +} + +void ScintillaEditBase_connect_AboutToCopy(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::aboutToCopy), self, [=](QMimeData* data) { + QMimeData* sigval1 = data; + miqt_exec_callback_ScintillaEditBase_AboutToCopy(slot, sigval1); + }); +} + +void ScintillaEditBase_StyleNeeded(ScintillaEditBase* self, intptr_t position) { + self->styleNeeded(static_cast(position)); +} + +void ScintillaEditBase_connect_StyleNeeded(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::styleNeeded), self, [=](Scintilla::Position position) { + Scintilla::Position position_ret = position; + intptr_t sigval1 = static_cast(position_ret); + miqt_exec_callback_ScintillaEditBase_StyleNeeded(slot, sigval1); + }); +} + +void ScintillaEditBase_CharAdded(ScintillaEditBase* self, int ch) { + self->charAdded(static_cast(ch)); +} + +void ScintillaEditBase_connect_CharAdded(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::charAdded), self, [=](int ch) { + int sigval1 = ch; + miqt_exec_callback_ScintillaEditBase_CharAdded(slot, sigval1); + }); +} + +void ScintillaEditBase_SavePointChanged(ScintillaEditBase* self, bool dirty) { + self->savePointChanged(dirty); +} + +void ScintillaEditBase_connect_SavePointChanged(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::savePointChanged), self, [=](bool dirty) { + bool sigval1 = dirty; + miqt_exec_callback_ScintillaEditBase_SavePointChanged(slot, sigval1); + }); +} + +void ScintillaEditBase_ModifyAttemptReadOnly(ScintillaEditBase* self) { + self->modifyAttemptReadOnly(); +} + +void ScintillaEditBase_connect_ModifyAttemptReadOnly(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::modifyAttemptReadOnly), self, [=]() { + miqt_exec_callback_ScintillaEditBase_ModifyAttemptReadOnly(slot); + }); +} + +void ScintillaEditBase_Key(ScintillaEditBase* self, int key) { + self->key(static_cast(key)); +} + +void ScintillaEditBase_connect_Key(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::key), self, [=](int key) { + int sigval1 = key; + miqt_exec_callback_ScintillaEditBase_Key(slot, sigval1); + }); +} + +void ScintillaEditBase_DoubleClick(ScintillaEditBase* self, intptr_t position, intptr_t line) { + self->doubleClick(static_cast(position), static_cast(line)); +} + +void ScintillaEditBase_connect_DoubleClick(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::doubleClick), self, [=](Scintilla::Position position, Scintilla::Position line) { + Scintilla::Position position_ret = position; + intptr_t sigval1 = static_cast(position_ret); + Scintilla::Position line_ret = line; + intptr_t sigval2 = static_cast(line_ret); + miqt_exec_callback_ScintillaEditBase_DoubleClick(slot, sigval1, sigval2); + }); +} + +void ScintillaEditBase_UpdateUi(ScintillaEditBase* self, int updated) { + self->updateUi(static_cast(updated)); +} + +void ScintillaEditBase_connect_UpdateUi(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::updateUi), self, [=](Scintilla::Update updated) { + Scintilla::Update updated_ret = updated; + int sigval1 = static_cast(updated_ret); + miqt_exec_callback_ScintillaEditBase_UpdateUi(slot, sigval1); + }); +} + +void ScintillaEditBase_Modified(ScintillaEditBase* self, int typeVal, intptr_t position, intptr_t length, intptr_t linesAdded, struct miqt_string text, intptr_t line, int foldNow, int foldPrev) { + QByteArray text_QByteArray(text.data, text.len); + self->modified(static_cast(typeVal), static_cast(position), static_cast(length), static_cast(linesAdded), text_QByteArray, static_cast(line), static_cast(foldNow), static_cast(foldPrev)); +} + +void ScintillaEditBase_connect_Modified(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::modified), self, [=](Scintilla::ModificationFlags typeVal, Scintilla::Position position, Scintilla::Position length, Scintilla::Position linesAdded, const QByteArray& text, Scintilla::Position line, Scintilla::FoldLevel foldNow, Scintilla::FoldLevel foldPrev) { + Scintilla::ModificationFlags typeVal_ret = typeVal; + int sigval1 = static_cast(typeVal_ret); + Scintilla::Position position_ret = position; + intptr_t sigval2 = static_cast(position_ret); + Scintilla::Position length_ret = length; + intptr_t sigval3 = static_cast(length_ret); + Scintilla::Position linesAdded_ret = linesAdded; + intptr_t sigval4 = static_cast(linesAdded_ret); + const QByteArray text_qb = text; + struct miqt_string text_ms; + text_ms.len = text_qb.length(); + text_ms.data = static_cast(malloc(text_ms.len)); + memcpy(text_ms.data, text_qb.data(), text_ms.len); + struct miqt_string sigval5 = text_ms; + Scintilla::Position line_ret = line; + intptr_t sigval6 = static_cast(line_ret); + Scintilla::FoldLevel foldNow_ret = foldNow; + int sigval7 = static_cast(foldNow_ret); + Scintilla::FoldLevel foldPrev_ret = foldPrev; + int sigval8 = static_cast(foldPrev_ret); + miqt_exec_callback_ScintillaEditBase_Modified(slot, sigval1, sigval2, sigval3, sigval4, sigval5, sigval6, sigval7, sigval8); + }); +} + +void ScintillaEditBase_MacroRecord(ScintillaEditBase* self, int message, uintptr_t wParam, intptr_t lParam) { + self->macroRecord(static_cast(message), static_cast(wParam), static_cast(lParam)); +} + +void ScintillaEditBase_connect_MacroRecord(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::macroRecord), self, [=](Scintilla::Message message, Scintilla::uptr_t wParam, Scintilla::sptr_t lParam) { + Scintilla::Message message_ret = message; + int sigval1 = static_cast(message_ret); + Scintilla::uptr_t wParam_ret = wParam; + uintptr_t sigval2 = static_cast(wParam_ret); + Scintilla::sptr_t lParam_ret = lParam; + intptr_t sigval3 = static_cast(lParam_ret); + miqt_exec_callback_ScintillaEditBase_MacroRecord(slot, sigval1, sigval2, sigval3); + }); +} + +void ScintillaEditBase_MarginClicked(ScintillaEditBase* self, intptr_t position, int modifiers, int margin) { + self->marginClicked(static_cast(position), static_cast(modifiers), static_cast(margin)); +} + +void ScintillaEditBase_connect_MarginClicked(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::marginClicked), self, [=](Scintilla::Position position, Scintilla::KeyMod modifiers, int margin) { + Scintilla::Position position_ret = position; + intptr_t sigval1 = static_cast(position_ret); + Scintilla::KeyMod modifiers_ret = modifiers; + int sigval2 = static_cast(modifiers_ret); + int sigval3 = margin; + miqt_exec_callback_ScintillaEditBase_MarginClicked(slot, sigval1, sigval2, sigval3); + }); +} + +void ScintillaEditBase_TextAreaClicked(ScintillaEditBase* self, intptr_t line, int modifiers) { + self->textAreaClicked(static_cast(line), static_cast(modifiers)); +} + +void ScintillaEditBase_connect_TextAreaClicked(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::textAreaClicked), self, [=](Scintilla::Position line, int modifiers) { + Scintilla::Position line_ret = line; + intptr_t sigval1 = static_cast(line_ret); + int sigval2 = modifiers; + miqt_exec_callback_ScintillaEditBase_TextAreaClicked(slot, sigval1, sigval2); + }); +} + +void ScintillaEditBase_NeedShown(ScintillaEditBase* self, intptr_t position, intptr_t length) { + self->needShown(static_cast(position), static_cast(length)); +} + +void ScintillaEditBase_connect_NeedShown(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::needShown), self, [=](Scintilla::Position position, Scintilla::Position length) { + Scintilla::Position position_ret = position; + intptr_t sigval1 = static_cast(position_ret); + Scintilla::Position length_ret = length; + intptr_t sigval2 = static_cast(length_ret); + miqt_exec_callback_ScintillaEditBase_NeedShown(slot, sigval1, sigval2); + }); +} + +void ScintillaEditBase_Painted(ScintillaEditBase* self) { + self->painted(); +} + +void ScintillaEditBase_connect_Painted(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::painted), self, [=]() { + miqt_exec_callback_ScintillaEditBase_Painted(slot); + }); +} + +void ScintillaEditBase_UserListSelection(ScintillaEditBase* self) { + self->userListSelection(); +} + +void ScintillaEditBase_connect_UserListSelection(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::userListSelection), self, [=]() { + miqt_exec_callback_ScintillaEditBase_UserListSelection(slot); + }); +} + +void ScintillaEditBase_UriDropped(ScintillaEditBase* self, struct miqt_string uri) { + QString uri_QString = QString::fromUtf8(uri.data, uri.len); + self->uriDropped(uri_QString); +} + +void ScintillaEditBase_connect_UriDropped(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::uriDropped), self, [=](const QString& uri) { + const QString uri_ret = uri; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray uri_b = uri_ret.toUtf8(); + struct miqt_string uri_ms; + uri_ms.len = uri_b.length(); + uri_ms.data = static_cast(malloc(uri_ms.len)); + memcpy(uri_ms.data, uri_b.data(), uri_ms.len); + struct miqt_string sigval1 = uri_ms; + miqt_exec_callback_ScintillaEditBase_UriDropped(slot, sigval1); + }); +} + +void ScintillaEditBase_DwellStart(ScintillaEditBase* self, int x, int y) { + self->dwellStart(static_cast(x), static_cast(y)); +} + +void ScintillaEditBase_connect_DwellStart(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::dwellStart), self, [=](int x, int y) { + int sigval1 = x; + int sigval2 = y; + miqt_exec_callback_ScintillaEditBase_DwellStart(slot, sigval1, sigval2); + }); +} + +void ScintillaEditBase_DwellEnd(ScintillaEditBase* self, int x, int y) { + self->dwellEnd(static_cast(x), static_cast(y)); +} + +void ScintillaEditBase_connect_DwellEnd(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::dwellEnd), self, [=](int x, int y) { + int sigval1 = x; + int sigval2 = y; + miqt_exec_callback_ScintillaEditBase_DwellEnd(slot, sigval1, sigval2); + }); +} + +void ScintillaEditBase_Zoom(ScintillaEditBase* self, int zoom) { + self->zoom(static_cast(zoom)); +} + +void ScintillaEditBase_connect_Zoom(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::zoom), self, [=](int zoom) { + int sigval1 = zoom; + miqt_exec_callback_ScintillaEditBase_Zoom(slot, sigval1); + }); +} + +void ScintillaEditBase_HotSpotClick(ScintillaEditBase* self, intptr_t position, int modifiers) { + self->hotSpotClick(static_cast(position), static_cast(modifiers)); +} + +void ScintillaEditBase_connect_HotSpotClick(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::hotSpotClick), self, [=](Scintilla::Position position, Scintilla::KeyMod modifiers) { + Scintilla::Position position_ret = position; + intptr_t sigval1 = static_cast(position_ret); + Scintilla::KeyMod modifiers_ret = modifiers; + int sigval2 = static_cast(modifiers_ret); + miqt_exec_callback_ScintillaEditBase_HotSpotClick(slot, sigval1, sigval2); + }); +} + +void ScintillaEditBase_HotSpotDoubleClick(ScintillaEditBase* self, intptr_t position, int modifiers) { + self->hotSpotDoubleClick(static_cast(position), static_cast(modifiers)); +} + +void ScintillaEditBase_connect_HotSpotDoubleClick(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::hotSpotDoubleClick), self, [=](Scintilla::Position position, Scintilla::KeyMod modifiers) { + Scintilla::Position position_ret = position; + intptr_t sigval1 = static_cast(position_ret); + Scintilla::KeyMod modifiers_ret = modifiers; + int sigval2 = static_cast(modifiers_ret); + miqt_exec_callback_ScintillaEditBase_HotSpotDoubleClick(slot, sigval1, sigval2); + }); +} + +void ScintillaEditBase_CallTipClick(ScintillaEditBase* self) { + self->callTipClick(); +} + +void ScintillaEditBase_connect_CallTipClick(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::callTipClick), self, [=]() { + miqt_exec_callback_ScintillaEditBase_CallTipClick(slot); + }); +} + +void ScintillaEditBase_AutoCompleteSelection(ScintillaEditBase* self, intptr_t position, struct miqt_string text) { + QString text_QString = QString::fromUtf8(text.data, text.len); + self->autoCompleteSelection(static_cast(position), text_QString); +} + +void ScintillaEditBase_connect_AutoCompleteSelection(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::autoCompleteSelection), self, [=](Scintilla::Position position, const QString& text) { + Scintilla::Position position_ret = position; + intptr_t sigval1 = static_cast(position_ret); + const QString text_ret = text; + // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory + QByteArray text_b = text_ret.toUtf8(); + struct miqt_string text_ms; + text_ms.len = text_b.length(); + text_ms.data = static_cast(malloc(text_ms.len)); + memcpy(text_ms.data, text_b.data(), text_ms.len); + struct miqt_string sigval2 = text_ms; + miqt_exec_callback_ScintillaEditBase_AutoCompleteSelection(slot, sigval1, sigval2); + }); +} + +void ScintillaEditBase_AutoCompleteCancelled(ScintillaEditBase* self) { + self->autoCompleteCancelled(); +} + +void ScintillaEditBase_connect_AutoCompleteCancelled(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::autoCompleteCancelled), self, [=]() { + miqt_exec_callback_ScintillaEditBase_AutoCompleteCancelled(slot); + }); +} + +void ScintillaEditBase_FocusChanged(ScintillaEditBase* self, bool focused) { + self->focusChanged(focused); +} + +void ScintillaEditBase_connect_FocusChanged(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::focusChanged), self, [=](bool focused) { + bool sigval1 = focused; + miqt_exec_callback_ScintillaEditBase_FocusChanged(slot, sigval1); + }); +} + +void ScintillaEditBase_Notify(ScintillaEditBase* self, Scintilla__NotificationData* pscn) { + self->notify(pscn); +} + +void ScintillaEditBase_connect_Notify(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::notify), self, [=](Scintilla::NotificationData* pscn) { + Scintilla__NotificationData* sigval1 = pscn; + miqt_exec_callback_ScintillaEditBase_Notify(slot, sigval1); + }); +} + +void ScintillaEditBase_Command(ScintillaEditBase* self, uintptr_t wParam, intptr_t lParam) { + self->command(static_cast(wParam), static_cast(lParam)); +} + +void ScintillaEditBase_connect_Command(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::command), self, [=](Scintilla::uptr_t wParam, Scintilla::sptr_t lParam) { + Scintilla::uptr_t wParam_ret = wParam; + uintptr_t sigval1 = static_cast(wParam_ret); + Scintilla::sptr_t lParam_ret = lParam; + intptr_t sigval2 = static_cast(lParam_ret); + miqt_exec_callback_ScintillaEditBase_Command(slot, sigval1, sigval2); + }); +} + +void ScintillaEditBase_ButtonPressed(ScintillaEditBase* self, QMouseEvent* event) { + self->buttonPressed(event); +} + +void ScintillaEditBase_connect_ButtonPressed(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::buttonPressed), self, [=](QMouseEvent* event) { + QMouseEvent* sigval1 = event; + miqt_exec_callback_ScintillaEditBase_ButtonPressed(slot, sigval1); + }); +} + +void ScintillaEditBase_ButtonReleased(ScintillaEditBase* self, QMouseEvent* event) { + self->buttonReleased(event); +} + +void ScintillaEditBase_connect_ButtonReleased(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::buttonReleased), self, [=](QMouseEvent* event) { + QMouseEvent* sigval1 = event; + miqt_exec_callback_ScintillaEditBase_ButtonReleased(slot, sigval1); + }); +} + +void ScintillaEditBase_KeyPressed(ScintillaEditBase* self, QKeyEvent* event) { + self->keyPressed(event); +} + +void ScintillaEditBase_connect_KeyPressed(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::keyPressed), self, [=](QKeyEvent* event) { + QKeyEvent* sigval1 = event; + miqt_exec_callback_ScintillaEditBase_KeyPressed(slot, sigval1); + }); +} + +void ScintillaEditBase_Resized(ScintillaEditBase* self) { + self->resized(); +} + +void ScintillaEditBase_connect_Resized(ScintillaEditBase* self, intptr_t slot) { + ScintillaEditBase::connect(self, static_cast(&ScintillaEditBase::resized), self, [=]() { + miqt_exec_callback_ScintillaEditBase_Resized(slot); + }); +} + +struct miqt_string ScintillaEditBase_Tr2(const char* s, const char* c) { + QString _ret = ScintillaEditBase::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 ScintillaEditBase_Tr3(const char* s, const char* c, int n) { + QString _ret = ScintillaEditBase::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 ScintillaEditBase_TrUtf82(const char* s, const char* c) { + QString _ret = ScintillaEditBase::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 ScintillaEditBase_TrUtf83(const char* s, const char* c, int n) { + QString _ret = ScintillaEditBase::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; +} + +intptr_t ScintillaEditBase_Send2(const ScintillaEditBase* self, unsigned int iMessage, uintptr_t wParam) { + sptr_t _ret = self->send(static_cast(iMessage), static_cast(wParam)); + return static_cast(_ret); +} + +intptr_t ScintillaEditBase_Send3(const ScintillaEditBase* self, unsigned int iMessage, uintptr_t wParam, intptr_t lParam) { + sptr_t _ret = self->send(static_cast(iMessage), static_cast(wParam), static_cast(lParam)); + return static_cast(_ret); +} + +intptr_t ScintillaEditBase_Sends2(const ScintillaEditBase* self, unsigned int iMessage, uintptr_t wParam) { + sptr_t _ret = self->sends(static_cast(iMessage), static_cast(wParam)); + return static_cast(_ret); +} + +intptr_t ScintillaEditBase_Sends3(const ScintillaEditBase* self, unsigned int iMessage, uintptr_t wParam, const char* s) { + sptr_t _ret = self->sends(static_cast(iMessage), static_cast(wParam), s); + return static_cast(_ret); +} + +void ScintillaEditBase_Delete(ScintillaEditBase* self) { + delete self; +} + +ScintillaDocument* ScintillaDocument_new() { + return new ScintillaDocument(); +} + +ScintillaDocument* ScintillaDocument_new2(QObject* parent) { + return new ScintillaDocument(parent); +} + +ScintillaDocument* ScintillaDocument_new3(QObject* parent, void* pdoc_) { + return new ScintillaDocument(parent, pdoc_); +} + +QMetaObject* ScintillaDocument_MetaObject(const ScintillaDocument* self) { + return (QMetaObject*) self->metaObject(); +} + +void* ScintillaDocument_Metacast(ScintillaDocument* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string ScintillaDocument_Tr(const char* s) { + QString _ret = ScintillaDocument::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 ScintillaDocument_TrUtf8(const char* s) { + QString _ret = ScintillaDocument::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* ScintillaDocument_Pointer(ScintillaDocument* self) { + return self->pointer(); +} + +int ScintillaDocument_LineFromPosition(ScintillaDocument* self, int pos) { + return self->line_from_position(static_cast(pos)); +} + +bool ScintillaDocument_IsCrLf(ScintillaDocument* self, int pos) { + return self->is_cr_lf(static_cast(pos)); +} + +bool ScintillaDocument_DeleteChars(ScintillaDocument* self, int pos, int lenVal) { + return self->delete_chars(static_cast(pos), static_cast(lenVal)); +} + +int ScintillaDocument_Undo(ScintillaDocument* self) { + return self->undo(); +} + +int ScintillaDocument_Redo(ScintillaDocument* self) { + return self->redo(); +} + +bool ScintillaDocument_CanUndo(ScintillaDocument* self) { + return self->can_undo(); +} + +bool ScintillaDocument_CanRedo(ScintillaDocument* self) { + return self->can_redo(); +} + +void ScintillaDocument_DeleteUndoHistory(ScintillaDocument* self) { + self->delete_undo_history(); +} + +bool ScintillaDocument_SetUndoCollection(ScintillaDocument* self, bool collect_undo) { + return self->set_undo_collection(collect_undo); +} + +bool ScintillaDocument_IsCollectingUndo(ScintillaDocument* self) { + return self->is_collecting_undo(); +} + +void ScintillaDocument_BeginUndoAction(ScintillaDocument* self) { + self->begin_undo_action(); +} + +void ScintillaDocument_EndUndoAction(ScintillaDocument* self) { + self->end_undo_action(); +} + +void ScintillaDocument_SetSavePoint(ScintillaDocument* self) { + self->set_save_point(); +} + +bool ScintillaDocument_IsSavePoint(ScintillaDocument* self) { + return self->is_save_point(); +} + +void ScintillaDocument_SetReadOnly(ScintillaDocument* self, bool read_only) { + self->set_read_only(read_only); +} + +bool ScintillaDocument_IsReadOnly(ScintillaDocument* self) { + return self->is_read_only(); +} + +void ScintillaDocument_InsertString(ScintillaDocument* self, int position, struct miqt_string str) { + QByteArray str_QByteArray(str.data, str.len); + self->insert_string(static_cast(position), str_QByteArray); +} + +struct miqt_string ScintillaDocument_GetCharRange(ScintillaDocument* self, int position, int length) { + QByteArray _qb = self->get_char_range(static_cast(position), static_cast(length)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +char ScintillaDocument_StyleAt(ScintillaDocument* self, int position) { + return self->style_at(static_cast(position)); +} + +int ScintillaDocument_LineStart(ScintillaDocument* self, int lineno) { + return self->line_start(static_cast(lineno)); +} + +int ScintillaDocument_LineEnd(ScintillaDocument* self, int lineno) { + return self->line_end(static_cast(lineno)); +} + +int ScintillaDocument_LineEndPosition(ScintillaDocument* self, int pos) { + return self->line_end_position(static_cast(pos)); +} + +int ScintillaDocument_Length(ScintillaDocument* self) { + return self->length(); +} + +int ScintillaDocument_LinesTotal(ScintillaDocument* self) { + return self->lines_total(); +} + +void ScintillaDocument_StartStyling(ScintillaDocument* self, int position) { + self->start_styling(static_cast(position)); +} + +bool ScintillaDocument_SetStyleFor(ScintillaDocument* self, int length, char style) { + return self->set_style_for(static_cast(length), static_cast(style)); +} + +int ScintillaDocument_GetEndStyled(ScintillaDocument* self) { + return self->get_end_styled(); +} + +void ScintillaDocument_EnsureStyledTo(ScintillaDocument* self, int position) { + self->ensure_styled_to(static_cast(position)); +} + +void ScintillaDocument_SetCurrentIndicator(ScintillaDocument* self, int indic) { + self->set_current_indicator(static_cast(indic)); +} + +void ScintillaDocument_DecorationFillRange(ScintillaDocument* self, int position, int value, int fillLength) { + self->decoration_fill_range(static_cast(position), static_cast(value), static_cast(fillLength)); +} + +int ScintillaDocument_DecorationsValueAt(ScintillaDocument* self, int indic, int position) { + return self->decorations_value_at(static_cast(indic), static_cast(position)); +} + +int ScintillaDocument_DecorationsStart(ScintillaDocument* self, int indic, int position) { + return self->decorations_start(static_cast(indic), static_cast(position)); +} + +int ScintillaDocument_DecorationsEnd(ScintillaDocument* self, int indic, int position) { + return self->decorations_end(static_cast(indic), static_cast(position)); +} + +int ScintillaDocument_GetCodePage(ScintillaDocument* self) { + return self->get_code_page(); +} + +void ScintillaDocument_SetCodePage(ScintillaDocument* self, int code_page) { + self->set_code_page(static_cast(code_page)); +} + +int ScintillaDocument_GetEolMode(ScintillaDocument* self) { + return self->get_eol_mode(); +} + +void ScintillaDocument_SetEolMode(ScintillaDocument* self, int eol_mode) { + self->set_eol_mode(static_cast(eol_mode)); +} + +int ScintillaDocument_MovePositionOutsideChar(ScintillaDocument* self, int pos, int move_dir, bool check_line_end) { + return self->move_position_outside_char(static_cast(pos), static_cast(move_dir), check_line_end); +} + +int ScintillaDocument_GetCharacter(ScintillaDocument* self, int pos) { + return self->get_character(static_cast(pos)); +} + +void ScintillaDocument_ModifyAttempt(ScintillaDocument* self) { + self->modify_attempt(); +} + +void ScintillaDocument_connect_ModifyAttempt(ScintillaDocument* self, intptr_t slot) { + ScintillaDocument::connect(self, static_cast(&ScintillaDocument::modify_attempt), self, [=]() { + miqt_exec_callback_ScintillaDocument_ModifyAttempt(slot); + }); +} + +void ScintillaDocument_SavePoint(ScintillaDocument* self, bool atSavePoint) { + self->save_point(atSavePoint); +} + +void ScintillaDocument_connect_SavePoint(ScintillaDocument* self, intptr_t slot) { + ScintillaDocument::connect(self, static_cast(&ScintillaDocument::save_point), self, [=](bool atSavePoint) { + bool sigval1 = atSavePoint; + miqt_exec_callback_ScintillaDocument_SavePoint(slot, sigval1); + }); +} + +void ScintillaDocument_Modified(ScintillaDocument* self, int position, int modification_type, struct miqt_string text, int length, int linesAdded, int line, int foldLevelNow, int foldLevelPrev) { + QByteArray text_QByteArray(text.data, text.len); + self->modified(static_cast(position), static_cast(modification_type), text_QByteArray, static_cast(length), static_cast(linesAdded), static_cast(line), static_cast(foldLevelNow), static_cast(foldLevelPrev)); +} + +void ScintillaDocument_connect_Modified(ScintillaDocument* self, intptr_t slot) { + ScintillaDocument::connect(self, static_cast(&ScintillaDocument::modified), self, [=](int position, int modification_type, const QByteArray& text, int length, int linesAdded, int line, int foldLevelNow, int foldLevelPrev) { + int sigval1 = position; + int sigval2 = modification_type; + const QByteArray text_qb = text; + struct miqt_string text_ms; + text_ms.len = text_qb.length(); + text_ms.data = static_cast(malloc(text_ms.len)); + memcpy(text_ms.data, text_qb.data(), text_ms.len); + struct miqt_string sigval3 = text_ms; + int sigval4 = length; + int sigval5 = linesAdded; + int sigval6 = line; + int sigval7 = foldLevelNow; + int sigval8 = foldLevelPrev; + miqt_exec_callback_ScintillaDocument_Modified(slot, sigval1, sigval2, sigval3, sigval4, sigval5, sigval6, sigval7, sigval8); + }); +} + +void ScintillaDocument_StyleNeeded(ScintillaDocument* self, int pos) { + self->style_needed(static_cast(pos)); +} + +void ScintillaDocument_connect_StyleNeeded(ScintillaDocument* self, intptr_t slot) { + ScintillaDocument::connect(self, static_cast(&ScintillaDocument::style_needed), self, [=](int pos) { + int sigval1 = pos; + miqt_exec_callback_ScintillaDocument_StyleNeeded(slot, sigval1); + }); +} + +void ScintillaDocument_ErrorOccurred(ScintillaDocument* self, int status) { + self->error_occurred(static_cast(status)); +} + +void ScintillaDocument_connect_ErrorOccurred(ScintillaDocument* self, intptr_t slot) { + ScintillaDocument::connect(self, static_cast(&ScintillaDocument::error_occurred), self, [=](int status) { + int sigval1 = status; + miqt_exec_callback_ScintillaDocument_ErrorOccurred(slot, sigval1); + }); +} + +struct miqt_string ScintillaDocument_Tr2(const char* s, const char* c) { + QString _ret = ScintillaDocument::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 ScintillaDocument_Tr3(const char* s, const char* c, int n) { + QString _ret = ScintillaDocument::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 ScintillaDocument_TrUtf82(const char* s, const char* c) { + QString _ret = ScintillaDocument::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 ScintillaDocument_TrUtf83(const char* s, const char* c, int n) { + QString _ret = ScintillaDocument::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 ScintillaDocument_BeginUndoAction1(ScintillaDocument* self, bool coalesceWithPrior) { + self->begin_undo_action(coalesceWithPrior); +} + +void ScintillaDocument_Delete(ScintillaDocument* self) { + delete self; +} + +ScintillaEdit* ScintillaEdit_new() { + return new ScintillaEdit(); +} + +ScintillaEdit* ScintillaEdit_new2(QWidget* parent) { + return new ScintillaEdit(parent); +} + +QMetaObject* ScintillaEdit_MetaObject(const ScintillaEdit* self) { + return (QMetaObject*) self->metaObject(); +} + +void* ScintillaEdit_Metacast(ScintillaEdit* self, const char* param1) { + return self->qt_metacast(param1); +} + +struct miqt_string ScintillaEdit_Tr(const char* s) { + QString _ret = ScintillaEdit::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 ScintillaEdit_TrUtf8(const char* s) { + QString _ret = ScintillaEdit::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_string ScintillaEdit_TextReturner(const ScintillaEdit* self, int message, uintptr_t wParam) { + QByteArray _qb = self->TextReturner(static_cast(message), static_cast(wParam)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +struct miqt_string ScintillaEdit_GetTextRange(ScintillaEdit* self, int start, int end) { + QByteArray _qb = self->get_text_range(static_cast(start), static_cast(end)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +ScintillaDocument* ScintillaEdit_GetDoc(ScintillaEdit* self) { + return self->get_doc(); +} + +void ScintillaEdit_SetDoc(ScintillaEdit* self, ScintillaDocument* pdoc_) { + self->set_doc(pdoc_); +} + +struct miqt_string ScintillaEdit_TextRange(ScintillaEdit* self, int start, int end) { + QByteArray _qb = self->textRange(static_cast(start), static_cast(end)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +long ScintillaEdit_FormatRange(ScintillaEdit* self, bool draw, QPaintDevice* target, QPaintDevice* measure, QRect* print_rect, QRect* page_rect, long range_start, long range_end) { + return self->format_range(draw, target, measure, *print_rect, *page_rect, static_cast(range_start), static_cast(range_end)); +} + +long ScintillaEdit_FormatRange2(ScintillaEdit* self, bool draw, QPaintDevice* target, QPaintDevice* measure, QRect* print_rect, QRect* page_rect, long range_start, long range_end) { + return self->formatRange(draw, target, measure, *print_rect, *page_rect, static_cast(range_start), static_cast(range_end)); +} + +void ScintillaEdit_AddText(ScintillaEdit* self, intptr_t length, const char* text) { + self->addText(static_cast(length), text); +} + +void ScintillaEdit_AddStyledText(ScintillaEdit* self, intptr_t length, const char* c) { + self->addStyledText(static_cast(length), c); +} + +void ScintillaEdit_InsertText(ScintillaEdit* self, intptr_t pos, const char* text) { + self->insertText(static_cast(pos), text); +} + +void ScintillaEdit_ChangeInsertion(ScintillaEdit* self, intptr_t length, const char* text) { + self->changeInsertion(static_cast(length), text); +} + +void ScintillaEdit_ClearAll(ScintillaEdit* self) { + self->clearAll(); +} + +void ScintillaEdit_DeleteRange(ScintillaEdit* self, intptr_t start, intptr_t lengthDelete) { + self->deleteRange(static_cast(start), static_cast(lengthDelete)); +} + +void ScintillaEdit_ClearDocumentStyle(ScintillaEdit* self) { + self->clearDocumentStyle(); +} + +intptr_t ScintillaEdit_Length(const ScintillaEdit* self) { + sptr_t _ret = self->length(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_CharAt(const ScintillaEdit* self, intptr_t pos) { + sptr_t _ret = self->charAt(static_cast(pos)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_CurrentPos(const ScintillaEdit* self) { + sptr_t _ret = self->currentPos(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_Anchor(const ScintillaEdit* self) { + sptr_t _ret = self->anchor(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_StyleAt(const ScintillaEdit* self, intptr_t pos) { + sptr_t _ret = self->styleAt(static_cast(pos)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_StyleIndexAt(const ScintillaEdit* self, intptr_t pos) { + sptr_t _ret = self->styleIndexAt(static_cast(pos)); + return static_cast(_ret); +} + +void ScintillaEdit_Redo(ScintillaEdit* self) { + self->redo(); +} + +void ScintillaEdit_SetUndoCollection(ScintillaEdit* self, bool collectUndo) { + self->setUndoCollection(collectUndo); +} + +void ScintillaEdit_SelectAll(ScintillaEdit* self) { + self->selectAll(); +} + +void ScintillaEdit_SetSavePoint(ScintillaEdit* self) { + self->setSavePoint(); +} + +bool ScintillaEdit_CanRedo(ScintillaEdit* self) { + return self->canRedo(); +} + +intptr_t ScintillaEdit_MarkerLineFromHandle(ScintillaEdit* self, intptr_t markerHandle) { + sptr_t _ret = self->markerLineFromHandle(static_cast(markerHandle)); + return static_cast(_ret); +} + +void ScintillaEdit_MarkerDeleteHandle(ScintillaEdit* self, intptr_t markerHandle) { + self->markerDeleteHandle(static_cast(markerHandle)); +} + +intptr_t ScintillaEdit_MarkerHandleFromLine(ScintillaEdit* self, intptr_t line, intptr_t which) { + sptr_t _ret = self->markerHandleFromLine(static_cast(line), static_cast(which)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_MarkerNumberFromLine(ScintillaEdit* self, intptr_t line, intptr_t which) { + sptr_t _ret = self->markerNumberFromLine(static_cast(line), static_cast(which)); + return static_cast(_ret); +} + +bool ScintillaEdit_UndoCollection(const ScintillaEdit* self) { + return self->undoCollection(); +} + +intptr_t ScintillaEdit_ViewWS(const ScintillaEdit* self) { + sptr_t _ret = self->viewWS(); + return static_cast(_ret); +} + +void ScintillaEdit_SetViewWS(ScintillaEdit* self, intptr_t viewWS) { + self->setViewWS(static_cast(viewWS)); +} + +intptr_t ScintillaEdit_TabDrawMode(const ScintillaEdit* self) { + sptr_t _ret = self->tabDrawMode(); + return static_cast(_ret); +} + +void ScintillaEdit_SetTabDrawMode(ScintillaEdit* self, intptr_t tabDrawMode) { + self->setTabDrawMode(static_cast(tabDrawMode)); +} + +intptr_t ScintillaEdit_PositionFromPoint(ScintillaEdit* self, intptr_t x, intptr_t y) { + sptr_t _ret = self->positionFromPoint(static_cast(x), static_cast(y)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_PositionFromPointClose(ScintillaEdit* self, intptr_t x, intptr_t y) { + sptr_t _ret = self->positionFromPointClose(static_cast(x), static_cast(y)); + return static_cast(_ret); +} + +void ScintillaEdit_GotoLine(ScintillaEdit* self, intptr_t line) { + self->gotoLine(static_cast(line)); +} + +void ScintillaEdit_GotoPos(ScintillaEdit* self, intptr_t caret) { + self->gotoPos(static_cast(caret)); +} + +void ScintillaEdit_SetAnchor(ScintillaEdit* self, intptr_t anchor) { + self->setAnchor(static_cast(anchor)); +} + +struct miqt_string ScintillaEdit_GetCurLine(ScintillaEdit* self, intptr_t length) { + QByteArray _qb = self->getCurLine(static_cast(length)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +intptr_t ScintillaEdit_EndStyled(const ScintillaEdit* self) { + sptr_t _ret = self->endStyled(); + return static_cast(_ret); +} + +void ScintillaEdit_ConvertEOLs(ScintillaEdit* self, intptr_t eolMode) { + self->convertEOLs(static_cast(eolMode)); +} + +intptr_t ScintillaEdit_EOLMode(const ScintillaEdit* self) { + sptr_t _ret = self->eOLMode(); + return static_cast(_ret); +} + +void ScintillaEdit_SetEOLMode(ScintillaEdit* self, intptr_t eolMode) { + self->setEOLMode(static_cast(eolMode)); +} + +void ScintillaEdit_StartStyling(ScintillaEdit* self, intptr_t start, intptr_t unused) { + self->startStyling(static_cast(start), static_cast(unused)); +} + +void ScintillaEdit_SetStyling(ScintillaEdit* self, intptr_t length, intptr_t style) { + self->setStyling(static_cast(length), static_cast(style)); +} + +bool ScintillaEdit_BufferedDraw(const ScintillaEdit* self) { + return self->bufferedDraw(); +} + +void ScintillaEdit_SetBufferedDraw(ScintillaEdit* self, bool buffered) { + self->setBufferedDraw(buffered); +} + +void ScintillaEdit_SetTabWidth(ScintillaEdit* self, intptr_t tabWidth) { + self->setTabWidth(static_cast(tabWidth)); +} + +intptr_t ScintillaEdit_TabWidth(const ScintillaEdit* self) { + sptr_t _ret = self->tabWidth(); + return static_cast(_ret); +} + +void ScintillaEdit_SetTabMinimumWidth(ScintillaEdit* self, intptr_t pixels) { + self->setTabMinimumWidth(static_cast(pixels)); +} + +intptr_t ScintillaEdit_TabMinimumWidth(const ScintillaEdit* self) { + sptr_t _ret = self->tabMinimumWidth(); + return static_cast(_ret); +} + +void ScintillaEdit_ClearTabStops(ScintillaEdit* self, intptr_t line) { + self->clearTabStops(static_cast(line)); +} + +void ScintillaEdit_AddTabStop(ScintillaEdit* self, intptr_t line, intptr_t x) { + self->addTabStop(static_cast(line), static_cast(x)); +} + +intptr_t ScintillaEdit_GetNextTabStop(ScintillaEdit* self, intptr_t line, intptr_t x) { + sptr_t _ret = self->getNextTabStop(static_cast(line), static_cast(x)); + return static_cast(_ret); +} + +void ScintillaEdit_SetCodePage(ScintillaEdit* self, intptr_t codePage) { + self->setCodePage(static_cast(codePage)); +} + +void ScintillaEdit_SetFontLocale(ScintillaEdit* self, const char* localeName) { + self->setFontLocale(localeName); +} + +struct miqt_string ScintillaEdit_FontLocale(const ScintillaEdit* self) { + QByteArray _qb = self->fontLocale(); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +intptr_t ScintillaEdit_IMEInteraction(const ScintillaEdit* self) { + sptr_t _ret = self->iMEInteraction(); + return static_cast(_ret); +} + +void ScintillaEdit_SetIMEInteraction(ScintillaEdit* self, intptr_t imeInteraction) { + self->setIMEInteraction(static_cast(imeInteraction)); +} + +void ScintillaEdit_MarkerDefine(ScintillaEdit* self, intptr_t markerNumber, intptr_t markerSymbol) { + self->markerDefine(static_cast(markerNumber), static_cast(markerSymbol)); +} + +void ScintillaEdit_MarkerSetFore(ScintillaEdit* self, intptr_t markerNumber, intptr_t fore) { + self->markerSetFore(static_cast(markerNumber), static_cast(fore)); +} + +void ScintillaEdit_MarkerSetBack(ScintillaEdit* self, intptr_t markerNumber, intptr_t back) { + self->markerSetBack(static_cast(markerNumber), static_cast(back)); +} + +void ScintillaEdit_MarkerSetBackSelected(ScintillaEdit* self, intptr_t markerNumber, intptr_t back) { + self->markerSetBackSelected(static_cast(markerNumber), static_cast(back)); +} + +void ScintillaEdit_MarkerSetForeTranslucent(ScintillaEdit* self, intptr_t markerNumber, intptr_t fore) { + self->markerSetForeTranslucent(static_cast(markerNumber), static_cast(fore)); +} + +void ScintillaEdit_MarkerSetBackTranslucent(ScintillaEdit* self, intptr_t markerNumber, intptr_t back) { + self->markerSetBackTranslucent(static_cast(markerNumber), static_cast(back)); +} + +void ScintillaEdit_MarkerSetBackSelectedTranslucent(ScintillaEdit* self, intptr_t markerNumber, intptr_t back) { + self->markerSetBackSelectedTranslucent(static_cast(markerNumber), static_cast(back)); +} + +void ScintillaEdit_MarkerSetStrokeWidth(ScintillaEdit* self, intptr_t markerNumber, intptr_t hundredths) { + self->markerSetStrokeWidth(static_cast(markerNumber), static_cast(hundredths)); +} + +void ScintillaEdit_MarkerEnableHighlight(ScintillaEdit* self, bool enabled) { + self->markerEnableHighlight(enabled); +} + +intptr_t ScintillaEdit_MarkerAdd(ScintillaEdit* self, intptr_t line, intptr_t markerNumber) { + sptr_t _ret = self->markerAdd(static_cast(line), static_cast(markerNumber)); + return static_cast(_ret); +} + +void ScintillaEdit_MarkerDelete(ScintillaEdit* self, intptr_t line, intptr_t markerNumber) { + self->markerDelete(static_cast(line), static_cast(markerNumber)); +} + +void ScintillaEdit_MarkerDeleteAll(ScintillaEdit* self, intptr_t markerNumber) { + self->markerDeleteAll(static_cast(markerNumber)); +} + +intptr_t ScintillaEdit_MarkerGet(ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->markerGet(static_cast(line)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_MarkerNext(ScintillaEdit* self, intptr_t lineStart, intptr_t markerMask) { + sptr_t _ret = self->markerNext(static_cast(lineStart), static_cast(markerMask)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_MarkerPrevious(ScintillaEdit* self, intptr_t lineStart, intptr_t markerMask) { + sptr_t _ret = self->markerPrevious(static_cast(lineStart), static_cast(markerMask)); + return static_cast(_ret); +} + +void ScintillaEdit_MarkerDefinePixmap(ScintillaEdit* self, intptr_t markerNumber, const char* pixmap) { + self->markerDefinePixmap(static_cast(markerNumber), pixmap); +} + +void ScintillaEdit_MarkerAddSet(ScintillaEdit* self, intptr_t line, intptr_t markerSet) { + self->markerAddSet(static_cast(line), static_cast(markerSet)); +} + +void ScintillaEdit_MarkerSetAlpha(ScintillaEdit* self, intptr_t markerNumber, intptr_t alpha) { + self->markerSetAlpha(static_cast(markerNumber), static_cast(alpha)); +} + +intptr_t ScintillaEdit_MarkerLayer(const ScintillaEdit* self, intptr_t markerNumber) { + sptr_t _ret = self->markerLayer(static_cast(markerNumber)); + return static_cast(_ret); +} + +void ScintillaEdit_MarkerSetLayer(ScintillaEdit* self, intptr_t markerNumber, intptr_t layer) { + self->markerSetLayer(static_cast(markerNumber), static_cast(layer)); +} + +void ScintillaEdit_SetMarginTypeN(ScintillaEdit* self, intptr_t margin, intptr_t marginType) { + self->setMarginTypeN(static_cast(margin), static_cast(marginType)); +} + +intptr_t ScintillaEdit_MarginTypeN(const ScintillaEdit* self, intptr_t margin) { + sptr_t _ret = self->marginTypeN(static_cast(margin)); + return static_cast(_ret); +} + +void ScintillaEdit_SetMarginWidthN(ScintillaEdit* self, intptr_t margin, intptr_t pixelWidth) { + self->setMarginWidthN(static_cast(margin), static_cast(pixelWidth)); +} + +intptr_t ScintillaEdit_MarginWidthN(const ScintillaEdit* self, intptr_t margin) { + sptr_t _ret = self->marginWidthN(static_cast(margin)); + return static_cast(_ret); +} + +void ScintillaEdit_SetMarginMaskN(ScintillaEdit* self, intptr_t margin, intptr_t mask) { + self->setMarginMaskN(static_cast(margin), static_cast(mask)); +} + +intptr_t ScintillaEdit_MarginMaskN(const ScintillaEdit* self, intptr_t margin) { + sptr_t _ret = self->marginMaskN(static_cast(margin)); + return static_cast(_ret); +} + +void ScintillaEdit_SetMarginSensitiveN(ScintillaEdit* self, intptr_t margin, bool sensitive) { + self->setMarginSensitiveN(static_cast(margin), sensitive); +} + +bool ScintillaEdit_MarginSensitiveN(const ScintillaEdit* self, intptr_t margin) { + return self->marginSensitiveN(static_cast(margin)); +} + +void ScintillaEdit_SetMarginCursorN(ScintillaEdit* self, intptr_t margin, intptr_t cursor) { + self->setMarginCursorN(static_cast(margin), static_cast(cursor)); +} + +intptr_t ScintillaEdit_MarginCursorN(const ScintillaEdit* self, intptr_t margin) { + sptr_t _ret = self->marginCursorN(static_cast(margin)); + return static_cast(_ret); +} + +void ScintillaEdit_SetMarginBackN(ScintillaEdit* self, intptr_t margin, intptr_t back) { + self->setMarginBackN(static_cast(margin), static_cast(back)); +} + +intptr_t ScintillaEdit_MarginBackN(const ScintillaEdit* self, intptr_t margin) { + sptr_t _ret = self->marginBackN(static_cast(margin)); + return static_cast(_ret); +} + +void ScintillaEdit_SetMargins(ScintillaEdit* self, intptr_t margins) { + self->setMargins(static_cast(margins)); +} + +intptr_t ScintillaEdit_Margins(const ScintillaEdit* self) { + sptr_t _ret = self->margins(); + return static_cast(_ret); +} + +void ScintillaEdit_StyleClearAll(ScintillaEdit* self) { + self->styleClearAll(); +} + +void ScintillaEdit_StyleSetFore(ScintillaEdit* self, intptr_t style, intptr_t fore) { + self->styleSetFore(static_cast(style), static_cast(fore)); +} + +void ScintillaEdit_StyleSetBack(ScintillaEdit* self, intptr_t style, intptr_t back) { + self->styleSetBack(static_cast(style), static_cast(back)); +} + +void ScintillaEdit_StyleSetBold(ScintillaEdit* self, intptr_t style, bool bold) { + self->styleSetBold(static_cast(style), bold); +} + +void ScintillaEdit_StyleSetItalic(ScintillaEdit* self, intptr_t style, bool italic) { + self->styleSetItalic(static_cast(style), italic); +} + +void ScintillaEdit_StyleSetSize(ScintillaEdit* self, intptr_t style, intptr_t sizePoints) { + self->styleSetSize(static_cast(style), static_cast(sizePoints)); +} + +void ScintillaEdit_StyleSetFont(ScintillaEdit* self, intptr_t style, const char* fontName) { + self->styleSetFont(static_cast(style), fontName); +} + +void ScintillaEdit_StyleSetEOLFilled(ScintillaEdit* self, intptr_t style, bool eolFilled) { + self->styleSetEOLFilled(static_cast(style), eolFilled); +} + +void ScintillaEdit_StyleResetDefault(ScintillaEdit* self) { + self->styleResetDefault(); +} + +void ScintillaEdit_StyleSetUnderline(ScintillaEdit* self, intptr_t style, bool underline) { + self->styleSetUnderline(static_cast(style), underline); +} + +intptr_t ScintillaEdit_StyleFore(const ScintillaEdit* self, intptr_t style) { + sptr_t _ret = self->styleFore(static_cast(style)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_StyleBack(const ScintillaEdit* self, intptr_t style) { + sptr_t _ret = self->styleBack(static_cast(style)); + return static_cast(_ret); +} + +bool ScintillaEdit_StyleBold(const ScintillaEdit* self, intptr_t style) { + return self->styleBold(static_cast(style)); +} + +bool ScintillaEdit_StyleItalic(const ScintillaEdit* self, intptr_t style) { + return self->styleItalic(static_cast(style)); +} + +intptr_t ScintillaEdit_StyleSize(const ScintillaEdit* self, intptr_t style) { + sptr_t _ret = self->styleSize(static_cast(style)); + return static_cast(_ret); +} + +struct miqt_string ScintillaEdit_StyleFont(const ScintillaEdit* self, intptr_t style) { + QByteArray _qb = self->styleFont(static_cast(style)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +bool ScintillaEdit_StyleEOLFilled(const ScintillaEdit* self, intptr_t style) { + return self->styleEOLFilled(static_cast(style)); +} + +bool ScintillaEdit_StyleUnderline(const ScintillaEdit* self, intptr_t style) { + return self->styleUnderline(static_cast(style)); +} + +intptr_t ScintillaEdit_StyleCase(const ScintillaEdit* self, intptr_t style) { + sptr_t _ret = self->styleCase(static_cast(style)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_StyleCharacterSet(const ScintillaEdit* self, intptr_t style) { + sptr_t _ret = self->styleCharacterSet(static_cast(style)); + return static_cast(_ret); +} + +bool ScintillaEdit_StyleVisible(const ScintillaEdit* self, intptr_t style) { + return self->styleVisible(static_cast(style)); +} + +bool ScintillaEdit_StyleChangeable(const ScintillaEdit* self, intptr_t style) { + return self->styleChangeable(static_cast(style)); +} + +bool ScintillaEdit_StyleHotSpot(const ScintillaEdit* self, intptr_t style) { + return self->styleHotSpot(static_cast(style)); +} + +void ScintillaEdit_StyleSetCase(ScintillaEdit* self, intptr_t style, intptr_t caseVisible) { + self->styleSetCase(static_cast(style), static_cast(caseVisible)); +} + +void ScintillaEdit_StyleSetSizeFractional(ScintillaEdit* self, intptr_t style, intptr_t sizeHundredthPoints) { + self->styleSetSizeFractional(static_cast(style), static_cast(sizeHundredthPoints)); +} + +intptr_t ScintillaEdit_StyleSizeFractional(const ScintillaEdit* self, intptr_t style) { + sptr_t _ret = self->styleSizeFractional(static_cast(style)); + return static_cast(_ret); +} + +void ScintillaEdit_StyleSetWeight(ScintillaEdit* self, intptr_t style, intptr_t weight) { + self->styleSetWeight(static_cast(style), static_cast(weight)); +} + +intptr_t ScintillaEdit_StyleWeight(const ScintillaEdit* self, intptr_t style) { + sptr_t _ret = self->styleWeight(static_cast(style)); + return static_cast(_ret); +} + +void ScintillaEdit_StyleSetCharacterSet(ScintillaEdit* self, intptr_t style, intptr_t characterSet) { + self->styleSetCharacterSet(static_cast(style), static_cast(characterSet)); +} + +void ScintillaEdit_StyleSetHotSpot(ScintillaEdit* self, intptr_t style, bool hotspot) { + self->styleSetHotSpot(static_cast(style), hotspot); +} + +void ScintillaEdit_StyleSetCheckMonospaced(ScintillaEdit* self, intptr_t style, bool checkMonospaced) { + self->styleSetCheckMonospaced(static_cast(style), checkMonospaced); +} + +bool ScintillaEdit_StyleCheckMonospaced(const ScintillaEdit* self, intptr_t style) { + return self->styleCheckMonospaced(static_cast(style)); +} + +void ScintillaEdit_StyleSetStretch(ScintillaEdit* self, intptr_t style, intptr_t stretch) { + self->styleSetStretch(static_cast(style), static_cast(stretch)); +} + +intptr_t ScintillaEdit_StyleStretch(const ScintillaEdit* self, intptr_t style) { + sptr_t _ret = self->styleStretch(static_cast(style)); + return static_cast(_ret); +} + +void ScintillaEdit_StyleSetInvisibleRepresentation(ScintillaEdit* self, intptr_t style, const char* representation) { + self->styleSetInvisibleRepresentation(static_cast(style), representation); +} + +struct miqt_string ScintillaEdit_StyleInvisibleRepresentation(const ScintillaEdit* self, intptr_t style) { + QByteArray _qb = self->styleInvisibleRepresentation(static_cast(style)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_SetElementColour(ScintillaEdit* self, intptr_t element, intptr_t colourElement) { + self->setElementColour(static_cast(element), static_cast(colourElement)); +} + +intptr_t ScintillaEdit_ElementColour(const ScintillaEdit* self, intptr_t element) { + sptr_t _ret = self->elementColour(static_cast(element)); + return static_cast(_ret); +} + +void ScintillaEdit_ResetElementColour(ScintillaEdit* self, intptr_t element) { + self->resetElementColour(static_cast(element)); +} + +bool ScintillaEdit_ElementIsSet(const ScintillaEdit* self, intptr_t element) { + return self->elementIsSet(static_cast(element)); +} + +bool ScintillaEdit_ElementAllowsTranslucent(const ScintillaEdit* self, intptr_t element) { + return self->elementAllowsTranslucent(static_cast(element)); +} + +intptr_t ScintillaEdit_ElementBaseColour(const ScintillaEdit* self, intptr_t element) { + sptr_t _ret = self->elementBaseColour(static_cast(element)); + return static_cast(_ret); +} + +void ScintillaEdit_SetSelFore(ScintillaEdit* self, bool useSetting, intptr_t fore) { + self->setSelFore(useSetting, static_cast(fore)); +} + +void ScintillaEdit_SetSelBack(ScintillaEdit* self, bool useSetting, intptr_t back) { + self->setSelBack(useSetting, static_cast(back)); +} + +intptr_t ScintillaEdit_SelAlpha(const ScintillaEdit* self) { + sptr_t _ret = self->selAlpha(); + return static_cast(_ret); +} + +void ScintillaEdit_SetSelAlpha(ScintillaEdit* self, intptr_t alpha) { + self->setSelAlpha(static_cast(alpha)); +} + +bool ScintillaEdit_SelEOLFilled(const ScintillaEdit* self) { + return self->selEOLFilled(); +} + +void ScintillaEdit_SetSelEOLFilled(ScintillaEdit* self, bool filled) { + self->setSelEOLFilled(filled); +} + +intptr_t ScintillaEdit_SelectionLayer(const ScintillaEdit* self) { + sptr_t _ret = self->selectionLayer(); + return static_cast(_ret); +} + +void ScintillaEdit_SetSelectionLayer(ScintillaEdit* self, intptr_t layer) { + self->setSelectionLayer(static_cast(layer)); +} + +intptr_t ScintillaEdit_CaretLineLayer(const ScintillaEdit* self) { + sptr_t _ret = self->caretLineLayer(); + return static_cast(_ret); +} + +void ScintillaEdit_SetCaretLineLayer(ScintillaEdit* self, intptr_t layer) { + self->setCaretLineLayer(static_cast(layer)); +} + +bool ScintillaEdit_CaretLineHighlightSubLine(const ScintillaEdit* self) { + return self->caretLineHighlightSubLine(); +} + +void ScintillaEdit_SetCaretLineHighlightSubLine(ScintillaEdit* self, bool subLine) { + self->setCaretLineHighlightSubLine(subLine); +} + +void ScintillaEdit_SetCaretFore(ScintillaEdit* self, intptr_t fore) { + self->setCaretFore(static_cast(fore)); +} + +void ScintillaEdit_AssignCmdKey(ScintillaEdit* self, intptr_t keyDefinition, intptr_t sciCommand) { + self->assignCmdKey(static_cast(keyDefinition), static_cast(sciCommand)); +} + +void ScintillaEdit_ClearCmdKey(ScintillaEdit* self, intptr_t keyDefinition) { + self->clearCmdKey(static_cast(keyDefinition)); +} + +void ScintillaEdit_ClearAllCmdKeys(ScintillaEdit* self) { + self->clearAllCmdKeys(); +} + +void ScintillaEdit_SetStylingEx(ScintillaEdit* self, intptr_t length, const char* styles) { + self->setStylingEx(static_cast(length), styles); +} + +void ScintillaEdit_StyleSetVisible(ScintillaEdit* self, intptr_t style, bool visible) { + self->styleSetVisible(static_cast(style), visible); +} + +intptr_t ScintillaEdit_CaretPeriod(const ScintillaEdit* self) { + sptr_t _ret = self->caretPeriod(); + return static_cast(_ret); +} + +void ScintillaEdit_SetCaretPeriod(ScintillaEdit* self, intptr_t periodMilliseconds) { + self->setCaretPeriod(static_cast(periodMilliseconds)); +} + +void ScintillaEdit_SetWordChars(ScintillaEdit* self, const char* characters) { + self->setWordChars(characters); +} + +struct miqt_string ScintillaEdit_WordChars(const ScintillaEdit* self) { + QByteArray _qb = self->wordChars(); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_SetCharacterCategoryOptimization(ScintillaEdit* self, intptr_t countCharacters) { + self->setCharacterCategoryOptimization(static_cast(countCharacters)); +} + +intptr_t ScintillaEdit_CharacterCategoryOptimization(const ScintillaEdit* self) { + sptr_t _ret = self->characterCategoryOptimization(); + return static_cast(_ret); +} + +void ScintillaEdit_BeginUndoAction(ScintillaEdit* self) { + self->beginUndoAction(); +} + +void ScintillaEdit_EndUndoAction(ScintillaEdit* self) { + self->endUndoAction(); +} + +intptr_t ScintillaEdit_UndoSequence(const ScintillaEdit* self) { + sptr_t _ret = self->undoSequence(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_UndoActions(const ScintillaEdit* self) { + sptr_t _ret = self->undoActions(); + return static_cast(_ret); +} + +void ScintillaEdit_SetUndoSavePoint(ScintillaEdit* self, intptr_t action) { + self->setUndoSavePoint(static_cast(action)); +} + +intptr_t ScintillaEdit_UndoSavePoint(const ScintillaEdit* self) { + sptr_t _ret = self->undoSavePoint(); + return static_cast(_ret); +} + +void ScintillaEdit_SetUndoDetach(ScintillaEdit* self, intptr_t action) { + self->setUndoDetach(static_cast(action)); +} + +intptr_t ScintillaEdit_UndoDetach(const ScintillaEdit* self) { + sptr_t _ret = self->undoDetach(); + return static_cast(_ret); +} + +void ScintillaEdit_SetUndoTentative(ScintillaEdit* self, intptr_t action) { + self->setUndoTentative(static_cast(action)); +} + +intptr_t ScintillaEdit_UndoTentative(const ScintillaEdit* self) { + sptr_t _ret = self->undoTentative(); + return static_cast(_ret); +} + +void ScintillaEdit_SetUndoCurrent(ScintillaEdit* self, intptr_t action) { + self->setUndoCurrent(static_cast(action)); +} + +intptr_t ScintillaEdit_UndoCurrent(const ScintillaEdit* self) { + sptr_t _ret = self->undoCurrent(); + return static_cast(_ret); +} + +void ScintillaEdit_PushUndoActionType(ScintillaEdit* self, intptr_t typeVal, intptr_t pos) { + self->pushUndoActionType(static_cast(typeVal), static_cast(pos)); +} + +void ScintillaEdit_ChangeLastUndoActionText(ScintillaEdit* self, intptr_t length, const char* text) { + self->changeLastUndoActionText(static_cast(length), text); +} + +intptr_t ScintillaEdit_UndoActionType(const ScintillaEdit* self, intptr_t action) { + sptr_t _ret = self->undoActionType(static_cast(action)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_UndoActionPosition(const ScintillaEdit* self, intptr_t action) { + sptr_t _ret = self->undoActionPosition(static_cast(action)); + return static_cast(_ret); +} + +struct miqt_string ScintillaEdit_UndoActionText(const ScintillaEdit* self, intptr_t action) { + QByteArray _qb = self->undoActionText(static_cast(action)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_IndicSetStyle(ScintillaEdit* self, intptr_t indicator, intptr_t indicatorStyle) { + self->indicSetStyle(static_cast(indicator), static_cast(indicatorStyle)); +} + +intptr_t ScintillaEdit_IndicStyle(const ScintillaEdit* self, intptr_t indicator) { + sptr_t _ret = self->indicStyle(static_cast(indicator)); + return static_cast(_ret); +} + +void ScintillaEdit_IndicSetFore(ScintillaEdit* self, intptr_t indicator, intptr_t fore) { + self->indicSetFore(static_cast(indicator), static_cast(fore)); +} + +intptr_t ScintillaEdit_IndicFore(const ScintillaEdit* self, intptr_t indicator) { + sptr_t _ret = self->indicFore(static_cast(indicator)); + return static_cast(_ret); +} + +void ScintillaEdit_IndicSetUnder(ScintillaEdit* self, intptr_t indicator, bool under) { + self->indicSetUnder(static_cast(indicator), under); +} + +bool ScintillaEdit_IndicUnder(const ScintillaEdit* self, intptr_t indicator) { + return self->indicUnder(static_cast(indicator)); +} + +void ScintillaEdit_IndicSetHoverStyle(ScintillaEdit* self, intptr_t indicator, intptr_t indicatorStyle) { + self->indicSetHoverStyle(static_cast(indicator), static_cast(indicatorStyle)); +} + +intptr_t ScintillaEdit_IndicHoverStyle(const ScintillaEdit* self, intptr_t indicator) { + sptr_t _ret = self->indicHoverStyle(static_cast(indicator)); + return static_cast(_ret); +} + +void ScintillaEdit_IndicSetHoverFore(ScintillaEdit* self, intptr_t indicator, intptr_t fore) { + self->indicSetHoverFore(static_cast(indicator), static_cast(fore)); +} + +intptr_t ScintillaEdit_IndicHoverFore(const ScintillaEdit* self, intptr_t indicator) { + sptr_t _ret = self->indicHoverFore(static_cast(indicator)); + return static_cast(_ret); +} + +void ScintillaEdit_IndicSetFlags(ScintillaEdit* self, intptr_t indicator, intptr_t flags) { + self->indicSetFlags(static_cast(indicator), static_cast(flags)); +} + +intptr_t ScintillaEdit_IndicFlags(const ScintillaEdit* self, intptr_t indicator) { + sptr_t _ret = self->indicFlags(static_cast(indicator)); + return static_cast(_ret); +} + +void ScintillaEdit_IndicSetStrokeWidth(ScintillaEdit* self, intptr_t indicator, intptr_t hundredths) { + self->indicSetStrokeWidth(static_cast(indicator), static_cast(hundredths)); +} + +intptr_t ScintillaEdit_IndicStrokeWidth(const ScintillaEdit* self, intptr_t indicator) { + sptr_t _ret = self->indicStrokeWidth(static_cast(indicator)); + return static_cast(_ret); +} + +void ScintillaEdit_SetWhitespaceFore(ScintillaEdit* self, bool useSetting, intptr_t fore) { + self->setWhitespaceFore(useSetting, static_cast(fore)); +} + +void ScintillaEdit_SetWhitespaceBack(ScintillaEdit* self, bool useSetting, intptr_t back) { + self->setWhitespaceBack(useSetting, static_cast(back)); +} + +void ScintillaEdit_SetWhitespaceSize(ScintillaEdit* self, intptr_t size) { + self->setWhitespaceSize(static_cast(size)); +} + +intptr_t ScintillaEdit_WhitespaceSize(const ScintillaEdit* self) { + sptr_t _ret = self->whitespaceSize(); + return static_cast(_ret); +} + +void ScintillaEdit_SetLineState(ScintillaEdit* self, intptr_t line, intptr_t state) { + self->setLineState(static_cast(line), static_cast(state)); +} + +intptr_t ScintillaEdit_LineState(const ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->lineState(static_cast(line)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_MaxLineState(const ScintillaEdit* self) { + sptr_t _ret = self->maxLineState(); + return static_cast(_ret); +} + +bool ScintillaEdit_CaretLineVisible(const ScintillaEdit* self) { + return self->caretLineVisible(); +} + +void ScintillaEdit_SetCaretLineVisible(ScintillaEdit* self, bool show) { + self->setCaretLineVisible(show); +} + +intptr_t ScintillaEdit_CaretLineBack(const ScintillaEdit* self) { + sptr_t _ret = self->caretLineBack(); + return static_cast(_ret); +} + +void ScintillaEdit_SetCaretLineBack(ScintillaEdit* self, intptr_t back) { + self->setCaretLineBack(static_cast(back)); +} + +intptr_t ScintillaEdit_CaretLineFrame(const ScintillaEdit* self) { + sptr_t _ret = self->caretLineFrame(); + return static_cast(_ret); +} + +void ScintillaEdit_SetCaretLineFrame(ScintillaEdit* self, intptr_t width) { + self->setCaretLineFrame(static_cast(width)); +} + +void ScintillaEdit_StyleSetChangeable(ScintillaEdit* self, intptr_t style, bool changeable) { + self->styleSetChangeable(static_cast(style), changeable); +} + +void ScintillaEdit_AutoCShow(ScintillaEdit* self, intptr_t lengthEntered, const char* itemList) { + self->autoCShow(static_cast(lengthEntered), itemList); +} + +void ScintillaEdit_AutoCCancel(ScintillaEdit* self) { + self->autoCCancel(); +} + +bool ScintillaEdit_AutoCActive(ScintillaEdit* self) { + return self->autoCActive(); +} + +intptr_t ScintillaEdit_AutoCPosStart(ScintillaEdit* self) { + sptr_t _ret = self->autoCPosStart(); + return static_cast(_ret); +} + +void ScintillaEdit_AutoCComplete(ScintillaEdit* self) { + self->autoCComplete(); +} + +void ScintillaEdit_AutoCStops(ScintillaEdit* self, const char* characterSet) { + self->autoCStops(characterSet); +} + +void ScintillaEdit_AutoCSetSeparator(ScintillaEdit* self, intptr_t separatorCharacter) { + self->autoCSetSeparator(static_cast(separatorCharacter)); +} + +intptr_t ScintillaEdit_AutoCSeparator(const ScintillaEdit* self) { + sptr_t _ret = self->autoCSeparator(); + return static_cast(_ret); +} + +void ScintillaEdit_AutoCSelect(ScintillaEdit* self, const char* selectVal) { + self->autoCSelect(selectVal); +} + +void ScintillaEdit_AutoCSetCancelAtStart(ScintillaEdit* self, bool cancel) { + self->autoCSetCancelAtStart(cancel); +} + +bool ScintillaEdit_AutoCCancelAtStart(const ScintillaEdit* self) { + return self->autoCCancelAtStart(); +} + +void ScintillaEdit_AutoCSetFillUps(ScintillaEdit* self, const char* characterSet) { + self->autoCSetFillUps(characterSet); +} + +void ScintillaEdit_AutoCSetChooseSingle(ScintillaEdit* self, bool chooseSingle) { + self->autoCSetChooseSingle(chooseSingle); +} + +bool ScintillaEdit_AutoCChooseSingle(const ScintillaEdit* self) { + return self->autoCChooseSingle(); +} + +void ScintillaEdit_AutoCSetIgnoreCase(ScintillaEdit* self, bool ignoreCase) { + self->autoCSetIgnoreCase(ignoreCase); +} + +bool ScintillaEdit_AutoCIgnoreCase(const ScintillaEdit* self) { + return self->autoCIgnoreCase(); +} + +void ScintillaEdit_UserListShow(ScintillaEdit* self, intptr_t listType, const char* itemList) { + self->userListShow(static_cast(listType), itemList); +} + +void ScintillaEdit_AutoCSetAutoHide(ScintillaEdit* self, bool autoHide) { + self->autoCSetAutoHide(autoHide); +} + +bool ScintillaEdit_AutoCAutoHide(const ScintillaEdit* self) { + return self->autoCAutoHide(); +} + +void ScintillaEdit_AutoCSetOptions(ScintillaEdit* self, intptr_t options) { + self->autoCSetOptions(static_cast(options)); +} + +intptr_t ScintillaEdit_AutoCOptions(const ScintillaEdit* self) { + sptr_t _ret = self->autoCOptions(); + return static_cast(_ret); +} + +void ScintillaEdit_AutoCSetDropRestOfWord(ScintillaEdit* self, bool dropRestOfWord) { + self->autoCSetDropRestOfWord(dropRestOfWord); +} + +bool ScintillaEdit_AutoCDropRestOfWord(const ScintillaEdit* self) { + return self->autoCDropRestOfWord(); +} + +void ScintillaEdit_RegisterImage(ScintillaEdit* self, intptr_t typeVal, const char* xpmData) { + self->registerImage(static_cast(typeVal), xpmData); +} + +void ScintillaEdit_ClearRegisteredImages(ScintillaEdit* self) { + self->clearRegisteredImages(); +} + +intptr_t ScintillaEdit_AutoCTypeSeparator(const ScintillaEdit* self) { + sptr_t _ret = self->autoCTypeSeparator(); + return static_cast(_ret); +} + +void ScintillaEdit_AutoCSetTypeSeparator(ScintillaEdit* self, intptr_t separatorCharacter) { + self->autoCSetTypeSeparator(static_cast(separatorCharacter)); +} + +void ScintillaEdit_AutoCSetMaxWidth(ScintillaEdit* self, intptr_t characterCount) { + self->autoCSetMaxWidth(static_cast(characterCount)); +} + +intptr_t ScintillaEdit_AutoCMaxWidth(const ScintillaEdit* self) { + sptr_t _ret = self->autoCMaxWidth(); + return static_cast(_ret); +} + +void ScintillaEdit_AutoCSetMaxHeight(ScintillaEdit* self, intptr_t rowCount) { + self->autoCSetMaxHeight(static_cast(rowCount)); +} + +intptr_t ScintillaEdit_AutoCMaxHeight(const ScintillaEdit* self) { + sptr_t _ret = self->autoCMaxHeight(); + return static_cast(_ret); +} + +void ScintillaEdit_AutoCSetStyle(ScintillaEdit* self, intptr_t style) { + self->autoCSetStyle(static_cast(style)); +} + +intptr_t ScintillaEdit_AutoCStyle(const ScintillaEdit* self) { + sptr_t _ret = self->autoCStyle(); + return static_cast(_ret); +} + +void ScintillaEdit_SetIndent(ScintillaEdit* self, intptr_t indentSize) { + self->setIndent(static_cast(indentSize)); +} + +intptr_t ScintillaEdit_Indent(const ScintillaEdit* self) { + sptr_t _ret = self->indent(); + return static_cast(_ret); +} + +void ScintillaEdit_SetUseTabs(ScintillaEdit* self, bool useTabs) { + self->setUseTabs(useTabs); +} + +bool ScintillaEdit_UseTabs(const ScintillaEdit* self) { + return self->useTabs(); +} + +void ScintillaEdit_SetLineIndentation(ScintillaEdit* self, intptr_t line, intptr_t indentation) { + self->setLineIndentation(static_cast(line), static_cast(indentation)); +} + +intptr_t ScintillaEdit_LineIndentation(const ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->lineIndentation(static_cast(line)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_LineIndentPosition(const ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->lineIndentPosition(static_cast(line)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_Column(const ScintillaEdit* self, intptr_t pos) { + sptr_t _ret = self->column(static_cast(pos)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_CountCharacters(ScintillaEdit* self, intptr_t start, intptr_t end) { + sptr_t _ret = self->countCharacters(static_cast(start), static_cast(end)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_CountCodeUnits(ScintillaEdit* self, intptr_t start, intptr_t end) { + sptr_t _ret = self->countCodeUnits(static_cast(start), static_cast(end)); + return static_cast(_ret); +} + +void ScintillaEdit_SetHScrollBar(ScintillaEdit* self, bool visible) { + self->setHScrollBar(visible); +} + +bool ScintillaEdit_HScrollBar(const ScintillaEdit* self) { + return self->hScrollBar(); +} + +void ScintillaEdit_SetIndentationGuides(ScintillaEdit* self, intptr_t indentView) { + self->setIndentationGuides(static_cast(indentView)); +} + +intptr_t ScintillaEdit_IndentationGuides(const ScintillaEdit* self) { + sptr_t _ret = self->indentationGuides(); + return static_cast(_ret); +} + +void ScintillaEdit_SetHighlightGuide(ScintillaEdit* self, intptr_t column) { + self->setHighlightGuide(static_cast(column)); +} + +intptr_t ScintillaEdit_HighlightGuide(const ScintillaEdit* self) { + sptr_t _ret = self->highlightGuide(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_LineEndPosition(const ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->lineEndPosition(static_cast(line)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_CodePage(const ScintillaEdit* self) { + sptr_t _ret = self->codePage(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_CaretFore(const ScintillaEdit* self) { + sptr_t _ret = self->caretFore(); + return static_cast(_ret); +} + +bool ScintillaEdit_ReadOnly(const ScintillaEdit* self) { + return self->readOnly(); +} + +void ScintillaEdit_SetCurrentPos(ScintillaEdit* self, intptr_t caret) { + self->setCurrentPos(static_cast(caret)); +} + +void ScintillaEdit_SetSelectionStart(ScintillaEdit* self, intptr_t anchor) { + self->setSelectionStart(static_cast(anchor)); +} + +intptr_t ScintillaEdit_SelectionStart(const ScintillaEdit* self) { + sptr_t _ret = self->selectionStart(); + return static_cast(_ret); +} + +void ScintillaEdit_SetSelectionEnd(ScintillaEdit* self, intptr_t caret) { + self->setSelectionEnd(static_cast(caret)); +} + +intptr_t ScintillaEdit_SelectionEnd(const ScintillaEdit* self) { + sptr_t _ret = self->selectionEnd(); + return static_cast(_ret); +} + +void ScintillaEdit_SetEmptySelection(ScintillaEdit* self, intptr_t caret) { + self->setEmptySelection(static_cast(caret)); +} + +void ScintillaEdit_SetPrintMagnification(ScintillaEdit* self, intptr_t magnification) { + self->setPrintMagnification(static_cast(magnification)); +} + +intptr_t ScintillaEdit_PrintMagnification(const ScintillaEdit* self) { + sptr_t _ret = self->printMagnification(); + return static_cast(_ret); +} + +void ScintillaEdit_SetPrintColourMode(ScintillaEdit* self, intptr_t mode) { + self->setPrintColourMode(static_cast(mode)); +} + +intptr_t ScintillaEdit_PrintColourMode(const ScintillaEdit* self) { + sptr_t _ret = self->printColourMode(); + return static_cast(_ret); +} + +void ScintillaEdit_SetChangeHistory(ScintillaEdit* self, intptr_t changeHistory) { + self->setChangeHistory(static_cast(changeHistory)); +} + +intptr_t ScintillaEdit_ChangeHistory(const ScintillaEdit* self) { + sptr_t _ret = self->changeHistory(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_FirstVisibleLine(const ScintillaEdit* self) { + sptr_t _ret = self->firstVisibleLine(); + return static_cast(_ret); +} + +struct miqt_string ScintillaEdit_GetLine(ScintillaEdit* self, intptr_t line) { + QByteArray _qb = self->getLine(static_cast(line)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +intptr_t ScintillaEdit_LineCount(const ScintillaEdit* self) { + sptr_t _ret = self->lineCount(); + return static_cast(_ret); +} + +void ScintillaEdit_AllocateLines(ScintillaEdit* self, intptr_t lines) { + self->allocateLines(static_cast(lines)); +} + +void ScintillaEdit_SetMarginLeft(ScintillaEdit* self, intptr_t pixelWidth) { + self->setMarginLeft(static_cast(pixelWidth)); +} + +intptr_t ScintillaEdit_MarginLeft(const ScintillaEdit* self) { + sptr_t _ret = self->marginLeft(); + return static_cast(_ret); +} + +void ScintillaEdit_SetMarginRight(ScintillaEdit* self, intptr_t pixelWidth) { + self->setMarginRight(static_cast(pixelWidth)); +} + +intptr_t ScintillaEdit_MarginRight(const ScintillaEdit* self) { + sptr_t _ret = self->marginRight(); + return static_cast(_ret); +} + +bool ScintillaEdit_Modify(const ScintillaEdit* self) { + return self->modify(); +} + +void ScintillaEdit_SetSel(ScintillaEdit* self, intptr_t anchor, intptr_t caret) { + self->setSel(static_cast(anchor), static_cast(caret)); +} + +struct miqt_string ScintillaEdit_GetSelText(ScintillaEdit* self) { + QByteArray _qb = self->getSelText(); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_HideSelection(ScintillaEdit* self, bool hide) { + self->hideSelection(hide); +} + +bool ScintillaEdit_SelectionHidden(const ScintillaEdit* self) { + return self->selectionHidden(); +} + +intptr_t ScintillaEdit_PointXFromPosition(ScintillaEdit* self, intptr_t pos) { + sptr_t _ret = self->pointXFromPosition(static_cast(pos)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_PointYFromPosition(ScintillaEdit* self, intptr_t pos) { + sptr_t _ret = self->pointYFromPosition(static_cast(pos)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_LineFromPosition(ScintillaEdit* self, intptr_t pos) { + sptr_t _ret = self->lineFromPosition(static_cast(pos)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_PositionFromLine(ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->positionFromLine(static_cast(line)); + return static_cast(_ret); +} + +void ScintillaEdit_LineScroll(ScintillaEdit* self, intptr_t columns, intptr_t lines) { + self->lineScroll(static_cast(columns), static_cast(lines)); +} + +void ScintillaEdit_ScrollCaret(ScintillaEdit* self) { + self->scrollCaret(); +} + +void ScintillaEdit_ScrollRange(ScintillaEdit* self, intptr_t secondary, intptr_t primary) { + self->scrollRange(static_cast(secondary), static_cast(primary)); +} + +void ScintillaEdit_ReplaceSel(ScintillaEdit* self, const char* text) { + self->replaceSel(text); +} + +void ScintillaEdit_SetReadOnly(ScintillaEdit* self, bool readOnly) { + self->setReadOnly(readOnly); +} + +void ScintillaEdit_Null(ScintillaEdit* self) { + self->null(); +} + +bool ScintillaEdit_CanPaste(ScintillaEdit* self) { + return self->canPaste(); +} + +bool ScintillaEdit_CanUndo(ScintillaEdit* self) { + return self->canUndo(); +} + +void ScintillaEdit_EmptyUndoBuffer(ScintillaEdit* self) { + self->emptyUndoBuffer(); +} + +void ScintillaEdit_Undo(ScintillaEdit* self) { + self->undo(); +} + +void ScintillaEdit_Cut(ScintillaEdit* self) { + self->cut(); +} + +void ScintillaEdit_Copy(ScintillaEdit* self) { + self->copy(); +} + +void ScintillaEdit_Paste(ScintillaEdit* self) { + self->paste(); +} + +void ScintillaEdit_Clear(ScintillaEdit* self) { + self->clear(); +} + +void ScintillaEdit_SetText(ScintillaEdit* self, const char* text) { + self->setText(text); +} + +struct miqt_string ScintillaEdit_GetText(ScintillaEdit* self, intptr_t length) { + QByteArray _qb = self->getText(static_cast(length)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +intptr_t ScintillaEdit_TextLength(const ScintillaEdit* self) { + sptr_t _ret = self->textLength(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_DirectFunction(const ScintillaEdit* self) { + sptr_t _ret = self->directFunction(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_DirectStatusFunction(const ScintillaEdit* self) { + sptr_t _ret = self->directStatusFunction(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_DirectPointer(const ScintillaEdit* self) { + sptr_t _ret = self->directPointer(); + return static_cast(_ret); +} + +void ScintillaEdit_SetOvertype(ScintillaEdit* self, bool overType) { + self->setOvertype(overType); +} + +bool ScintillaEdit_Overtype(const ScintillaEdit* self) { + return self->overtype(); +} + +void ScintillaEdit_SetCaretWidth(ScintillaEdit* self, intptr_t pixelWidth) { + self->setCaretWidth(static_cast(pixelWidth)); +} + +intptr_t ScintillaEdit_CaretWidth(const ScintillaEdit* self) { + sptr_t _ret = self->caretWidth(); + return static_cast(_ret); +} + +void ScintillaEdit_SetTargetStart(ScintillaEdit* self, intptr_t start) { + self->setTargetStart(static_cast(start)); +} + +intptr_t ScintillaEdit_TargetStart(const ScintillaEdit* self) { + sptr_t _ret = self->targetStart(); + return static_cast(_ret); +} + +void ScintillaEdit_SetTargetStartVirtualSpace(ScintillaEdit* self, intptr_t space) { + self->setTargetStartVirtualSpace(static_cast(space)); +} + +intptr_t ScintillaEdit_TargetStartVirtualSpace(const ScintillaEdit* self) { + sptr_t _ret = self->targetStartVirtualSpace(); + return static_cast(_ret); +} + +void ScintillaEdit_SetTargetEnd(ScintillaEdit* self, intptr_t end) { + self->setTargetEnd(static_cast(end)); +} + +intptr_t ScintillaEdit_TargetEnd(const ScintillaEdit* self) { + sptr_t _ret = self->targetEnd(); + return static_cast(_ret); +} + +void ScintillaEdit_SetTargetEndVirtualSpace(ScintillaEdit* self, intptr_t space) { + self->setTargetEndVirtualSpace(static_cast(space)); +} + +intptr_t ScintillaEdit_TargetEndVirtualSpace(const ScintillaEdit* self) { + sptr_t _ret = self->targetEndVirtualSpace(); + return static_cast(_ret); +} + +void ScintillaEdit_SetTargetRange(ScintillaEdit* self, intptr_t start, intptr_t end) { + self->setTargetRange(static_cast(start), static_cast(end)); +} + +struct miqt_string ScintillaEdit_TargetText(const ScintillaEdit* self) { + QByteArray _qb = self->targetText(); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_TargetFromSelection(ScintillaEdit* self) { + self->targetFromSelection(); +} + +void ScintillaEdit_TargetWholeDocument(ScintillaEdit* self) { + self->targetWholeDocument(); +} + +intptr_t ScintillaEdit_ReplaceTarget(ScintillaEdit* self, intptr_t length, const char* text) { + sptr_t _ret = self->replaceTarget(static_cast(length), text); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_ReplaceTargetRE(ScintillaEdit* self, intptr_t length, const char* text) { + sptr_t _ret = self->replaceTargetRE(static_cast(length), text); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_ReplaceTargetMinimal(ScintillaEdit* self, intptr_t length, const char* text) { + sptr_t _ret = self->replaceTargetMinimal(static_cast(length), text); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_SearchInTarget(ScintillaEdit* self, intptr_t length, const char* text) { + sptr_t _ret = self->searchInTarget(static_cast(length), text); + return static_cast(_ret); +} + +void ScintillaEdit_SetSearchFlags(ScintillaEdit* self, intptr_t searchFlags) { + self->setSearchFlags(static_cast(searchFlags)); +} + +intptr_t ScintillaEdit_SearchFlags(const ScintillaEdit* self) { + sptr_t _ret = self->searchFlags(); + return static_cast(_ret); +} + +void ScintillaEdit_CallTipShow(ScintillaEdit* self, intptr_t pos, const char* definition) { + self->callTipShow(static_cast(pos), definition); +} + +void ScintillaEdit_CallTipCancel(ScintillaEdit* self) { + self->callTipCancel(); +} + +bool ScintillaEdit_CallTipActive(ScintillaEdit* self) { + return self->callTipActive(); +} + +intptr_t ScintillaEdit_CallTipPosStart(ScintillaEdit* self) { + sptr_t _ret = self->callTipPosStart(); + return static_cast(_ret); +} + +void ScintillaEdit_CallTipSetPosStart(ScintillaEdit* self, intptr_t posStart) { + self->callTipSetPosStart(static_cast(posStart)); +} + +void ScintillaEdit_CallTipSetHlt(ScintillaEdit* self, intptr_t highlightStart, intptr_t highlightEnd) { + self->callTipSetHlt(static_cast(highlightStart), static_cast(highlightEnd)); +} + +void ScintillaEdit_CallTipSetBack(ScintillaEdit* self, intptr_t back) { + self->callTipSetBack(static_cast(back)); +} + +void ScintillaEdit_CallTipSetFore(ScintillaEdit* self, intptr_t fore) { + self->callTipSetFore(static_cast(fore)); +} + +void ScintillaEdit_CallTipSetForeHlt(ScintillaEdit* self, intptr_t fore) { + self->callTipSetForeHlt(static_cast(fore)); +} + +void ScintillaEdit_CallTipUseStyle(ScintillaEdit* self, intptr_t tabSize) { + self->callTipUseStyle(static_cast(tabSize)); +} + +void ScintillaEdit_CallTipSetPosition(ScintillaEdit* self, bool above) { + self->callTipSetPosition(above); +} + +intptr_t ScintillaEdit_VisibleFromDocLine(ScintillaEdit* self, intptr_t docLine) { + sptr_t _ret = self->visibleFromDocLine(static_cast(docLine)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_DocLineFromVisible(ScintillaEdit* self, intptr_t displayLine) { + sptr_t _ret = self->docLineFromVisible(static_cast(displayLine)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_WrapCount(ScintillaEdit* self, intptr_t docLine) { + sptr_t _ret = self->wrapCount(static_cast(docLine)); + return static_cast(_ret); +} + +void ScintillaEdit_SetFoldLevel(ScintillaEdit* self, intptr_t line, intptr_t level) { + self->setFoldLevel(static_cast(line), static_cast(level)); +} + +intptr_t ScintillaEdit_FoldLevel(const ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->foldLevel(static_cast(line)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_LastChild(const ScintillaEdit* self, intptr_t line, intptr_t level) { + sptr_t _ret = self->lastChild(static_cast(line), static_cast(level)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_FoldParent(const ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->foldParent(static_cast(line)); + return static_cast(_ret); +} + +void ScintillaEdit_ShowLines(ScintillaEdit* self, intptr_t lineStart, intptr_t lineEnd) { + self->showLines(static_cast(lineStart), static_cast(lineEnd)); +} + +void ScintillaEdit_HideLines(ScintillaEdit* self, intptr_t lineStart, intptr_t lineEnd) { + self->hideLines(static_cast(lineStart), static_cast(lineEnd)); +} + +bool ScintillaEdit_LineVisible(const ScintillaEdit* self, intptr_t line) { + return self->lineVisible(static_cast(line)); +} + +bool ScintillaEdit_AllLinesVisible(const ScintillaEdit* self) { + return self->allLinesVisible(); +} + +void ScintillaEdit_SetFoldExpanded(ScintillaEdit* self, intptr_t line, bool expanded) { + self->setFoldExpanded(static_cast(line), expanded); +} + +bool ScintillaEdit_FoldExpanded(const ScintillaEdit* self, intptr_t line) { + return self->foldExpanded(static_cast(line)); +} + +void ScintillaEdit_ToggleFold(ScintillaEdit* self, intptr_t line) { + self->toggleFold(static_cast(line)); +} + +void ScintillaEdit_ToggleFoldShowText(ScintillaEdit* self, intptr_t line, const char* text) { + self->toggleFoldShowText(static_cast(line), text); +} + +void ScintillaEdit_FoldDisplayTextSetStyle(ScintillaEdit* self, intptr_t style) { + self->foldDisplayTextSetStyle(static_cast(style)); +} + +intptr_t ScintillaEdit_FoldDisplayTextStyle(const ScintillaEdit* self) { + sptr_t _ret = self->foldDisplayTextStyle(); + return static_cast(_ret); +} + +void ScintillaEdit_SetDefaultFoldDisplayText(ScintillaEdit* self, const char* text) { + self->setDefaultFoldDisplayText(text); +} + +struct miqt_string ScintillaEdit_GetDefaultFoldDisplayText(ScintillaEdit* self) { + QByteArray _qb = self->getDefaultFoldDisplayText(); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_FoldLine(ScintillaEdit* self, intptr_t line, intptr_t action) { + self->foldLine(static_cast(line), static_cast(action)); +} + +void ScintillaEdit_FoldChildren(ScintillaEdit* self, intptr_t line, intptr_t action) { + self->foldChildren(static_cast(line), static_cast(action)); +} + +void ScintillaEdit_ExpandChildren(ScintillaEdit* self, intptr_t line, intptr_t level) { + self->expandChildren(static_cast(line), static_cast(level)); +} + +void ScintillaEdit_FoldAll(ScintillaEdit* self, intptr_t action) { + self->foldAll(static_cast(action)); +} + +void ScintillaEdit_EnsureVisible(ScintillaEdit* self, intptr_t line) { + self->ensureVisible(static_cast(line)); +} + +void ScintillaEdit_SetAutomaticFold(ScintillaEdit* self, intptr_t automaticFold) { + self->setAutomaticFold(static_cast(automaticFold)); +} + +intptr_t ScintillaEdit_AutomaticFold(const ScintillaEdit* self) { + sptr_t _ret = self->automaticFold(); + return static_cast(_ret); +} + +void ScintillaEdit_SetFoldFlags(ScintillaEdit* self, intptr_t flags) { + self->setFoldFlags(static_cast(flags)); +} + +void ScintillaEdit_EnsureVisibleEnforcePolicy(ScintillaEdit* self, intptr_t line) { + self->ensureVisibleEnforcePolicy(static_cast(line)); +} + +void ScintillaEdit_SetTabIndents(ScintillaEdit* self, bool tabIndents) { + self->setTabIndents(tabIndents); +} + +bool ScintillaEdit_TabIndents(const ScintillaEdit* self) { + return self->tabIndents(); +} + +void ScintillaEdit_SetBackSpaceUnIndents(ScintillaEdit* self, bool bsUnIndents) { + self->setBackSpaceUnIndents(bsUnIndents); +} + +bool ScintillaEdit_BackSpaceUnIndents(const ScintillaEdit* self) { + return self->backSpaceUnIndents(); +} + +void ScintillaEdit_SetMouseDwellTime(ScintillaEdit* self, intptr_t periodMilliseconds) { + self->setMouseDwellTime(static_cast(periodMilliseconds)); +} + +intptr_t ScintillaEdit_MouseDwellTime(const ScintillaEdit* self) { + sptr_t _ret = self->mouseDwellTime(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_WordStartPosition(ScintillaEdit* self, intptr_t pos, bool onlyWordCharacters) { + sptr_t _ret = self->wordStartPosition(static_cast(pos), onlyWordCharacters); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_WordEndPosition(ScintillaEdit* self, intptr_t pos, bool onlyWordCharacters) { + sptr_t _ret = self->wordEndPosition(static_cast(pos), onlyWordCharacters); + return static_cast(_ret); +} + +bool ScintillaEdit_IsRangeWord(ScintillaEdit* self, intptr_t start, intptr_t end) { + return self->isRangeWord(static_cast(start), static_cast(end)); +} + +void ScintillaEdit_SetIdleStyling(ScintillaEdit* self, intptr_t idleStyling) { + self->setIdleStyling(static_cast(idleStyling)); +} + +intptr_t ScintillaEdit_IdleStyling(const ScintillaEdit* self) { + sptr_t _ret = self->idleStyling(); + return static_cast(_ret); +} + +void ScintillaEdit_SetWrapMode(ScintillaEdit* self, intptr_t wrapMode) { + self->setWrapMode(static_cast(wrapMode)); +} + +intptr_t ScintillaEdit_WrapMode(const ScintillaEdit* self) { + sptr_t _ret = self->wrapMode(); + return static_cast(_ret); +} + +void ScintillaEdit_SetWrapVisualFlags(ScintillaEdit* self, intptr_t wrapVisualFlags) { + self->setWrapVisualFlags(static_cast(wrapVisualFlags)); +} + +intptr_t ScintillaEdit_WrapVisualFlags(const ScintillaEdit* self) { + sptr_t _ret = self->wrapVisualFlags(); + return static_cast(_ret); +} + +void ScintillaEdit_SetWrapVisualFlagsLocation(ScintillaEdit* self, intptr_t wrapVisualFlagsLocation) { + self->setWrapVisualFlagsLocation(static_cast(wrapVisualFlagsLocation)); +} + +intptr_t ScintillaEdit_WrapVisualFlagsLocation(const ScintillaEdit* self) { + sptr_t _ret = self->wrapVisualFlagsLocation(); + return static_cast(_ret); +} + +void ScintillaEdit_SetWrapStartIndent(ScintillaEdit* self, intptr_t indent) { + self->setWrapStartIndent(static_cast(indent)); +} + +intptr_t ScintillaEdit_WrapStartIndent(const ScintillaEdit* self) { + sptr_t _ret = self->wrapStartIndent(); + return static_cast(_ret); +} + +void ScintillaEdit_SetWrapIndentMode(ScintillaEdit* self, intptr_t wrapIndentMode) { + self->setWrapIndentMode(static_cast(wrapIndentMode)); +} + +intptr_t ScintillaEdit_WrapIndentMode(const ScintillaEdit* self) { + sptr_t _ret = self->wrapIndentMode(); + return static_cast(_ret); +} + +void ScintillaEdit_SetLayoutCache(ScintillaEdit* self, intptr_t cacheMode) { + self->setLayoutCache(static_cast(cacheMode)); +} + +intptr_t ScintillaEdit_LayoutCache(const ScintillaEdit* self) { + sptr_t _ret = self->layoutCache(); + return static_cast(_ret); +} + +void ScintillaEdit_SetScrollWidth(ScintillaEdit* self, intptr_t pixelWidth) { + self->setScrollWidth(static_cast(pixelWidth)); +} + +intptr_t ScintillaEdit_ScrollWidth(const ScintillaEdit* self) { + sptr_t _ret = self->scrollWidth(); + return static_cast(_ret); +} + +void ScintillaEdit_SetScrollWidthTracking(ScintillaEdit* self, bool tracking) { + self->setScrollWidthTracking(tracking); +} + +bool ScintillaEdit_ScrollWidthTracking(const ScintillaEdit* self) { + return self->scrollWidthTracking(); +} + +intptr_t ScintillaEdit_TextWidth(ScintillaEdit* self, intptr_t style, const char* text) { + sptr_t _ret = self->textWidth(static_cast(style), text); + return static_cast(_ret); +} + +void ScintillaEdit_SetEndAtLastLine(ScintillaEdit* self, bool endAtLastLine) { + self->setEndAtLastLine(endAtLastLine); +} + +bool ScintillaEdit_EndAtLastLine(const ScintillaEdit* self) { + return self->endAtLastLine(); +} + +intptr_t ScintillaEdit_TextHeight(ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->textHeight(static_cast(line)); + return static_cast(_ret); +} + +void ScintillaEdit_SetVScrollBar(ScintillaEdit* self, bool visible) { + self->setVScrollBar(visible); +} + +bool ScintillaEdit_VScrollBar(const ScintillaEdit* self) { + return self->vScrollBar(); +} + +void ScintillaEdit_AppendText(ScintillaEdit* self, intptr_t length, const char* text) { + self->appendText(static_cast(length), text); +} + +intptr_t ScintillaEdit_PhasesDraw(const ScintillaEdit* self) { + sptr_t _ret = self->phasesDraw(); + return static_cast(_ret); +} + +void ScintillaEdit_SetPhasesDraw(ScintillaEdit* self, intptr_t phases) { + self->setPhasesDraw(static_cast(phases)); +} + +void ScintillaEdit_SetFontQuality(ScintillaEdit* self, intptr_t fontQuality) { + self->setFontQuality(static_cast(fontQuality)); +} + +intptr_t ScintillaEdit_FontQuality(const ScintillaEdit* self) { + sptr_t _ret = self->fontQuality(); + return static_cast(_ret); +} + +void ScintillaEdit_SetFirstVisibleLine(ScintillaEdit* self, intptr_t displayLine) { + self->setFirstVisibleLine(static_cast(displayLine)); +} + +void ScintillaEdit_SetMultiPaste(ScintillaEdit* self, intptr_t multiPaste) { + self->setMultiPaste(static_cast(multiPaste)); +} + +intptr_t ScintillaEdit_MultiPaste(const ScintillaEdit* self) { + sptr_t _ret = self->multiPaste(); + return static_cast(_ret); +} + +struct miqt_string ScintillaEdit_Tag(const ScintillaEdit* self, intptr_t tagNumber) { + QByteArray _qb = self->tag(static_cast(tagNumber)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_LinesJoin(ScintillaEdit* self) { + self->linesJoin(); +} + +void ScintillaEdit_LinesSplit(ScintillaEdit* self, intptr_t pixelWidth) { + self->linesSplit(static_cast(pixelWidth)); +} + +void ScintillaEdit_SetFoldMarginColour(ScintillaEdit* self, bool useSetting, intptr_t back) { + self->setFoldMarginColour(useSetting, static_cast(back)); +} + +void ScintillaEdit_SetFoldMarginHiColour(ScintillaEdit* self, bool useSetting, intptr_t fore) { + self->setFoldMarginHiColour(useSetting, static_cast(fore)); +} + +void ScintillaEdit_SetAccessibility(ScintillaEdit* self, intptr_t accessibility) { + self->setAccessibility(static_cast(accessibility)); +} + +intptr_t ScintillaEdit_Accessibility(const ScintillaEdit* self) { + sptr_t _ret = self->accessibility(); + return static_cast(_ret); +} + +void ScintillaEdit_LineDown(ScintillaEdit* self) { + self->lineDown(); +} + +void ScintillaEdit_LineDownExtend(ScintillaEdit* self) { + self->lineDownExtend(); +} + +void ScintillaEdit_LineUp(ScintillaEdit* self) { + self->lineUp(); +} + +void ScintillaEdit_LineUpExtend(ScintillaEdit* self) { + self->lineUpExtend(); +} + +void ScintillaEdit_CharLeft(ScintillaEdit* self) { + self->charLeft(); +} + +void ScintillaEdit_CharLeftExtend(ScintillaEdit* self) { + self->charLeftExtend(); +} + +void ScintillaEdit_CharRight(ScintillaEdit* self) { + self->charRight(); +} + +void ScintillaEdit_CharRightExtend(ScintillaEdit* self) { + self->charRightExtend(); +} + +void ScintillaEdit_WordLeft(ScintillaEdit* self) { + self->wordLeft(); +} + +void ScintillaEdit_WordLeftExtend(ScintillaEdit* self) { + self->wordLeftExtend(); +} + +void ScintillaEdit_WordRight(ScintillaEdit* self) { + self->wordRight(); +} + +void ScintillaEdit_WordRightExtend(ScintillaEdit* self) { + self->wordRightExtend(); +} + +void ScintillaEdit_Home(ScintillaEdit* self) { + self->home(); +} + +void ScintillaEdit_HomeExtend(ScintillaEdit* self) { + self->homeExtend(); +} + +void ScintillaEdit_LineEnd(ScintillaEdit* self) { + self->lineEnd(); +} + +void ScintillaEdit_LineEndExtend(ScintillaEdit* self) { + self->lineEndExtend(); +} + +void ScintillaEdit_DocumentStart(ScintillaEdit* self) { + self->documentStart(); +} + +void ScintillaEdit_DocumentStartExtend(ScintillaEdit* self) { + self->documentStartExtend(); +} + +void ScintillaEdit_DocumentEnd(ScintillaEdit* self) { + self->documentEnd(); +} + +void ScintillaEdit_DocumentEndExtend(ScintillaEdit* self) { + self->documentEndExtend(); +} + +void ScintillaEdit_PageUp(ScintillaEdit* self) { + self->pageUp(); +} + +void ScintillaEdit_PageUpExtend(ScintillaEdit* self) { + self->pageUpExtend(); +} + +void ScintillaEdit_PageDown(ScintillaEdit* self) { + self->pageDown(); +} + +void ScintillaEdit_PageDownExtend(ScintillaEdit* self) { + self->pageDownExtend(); +} + +void ScintillaEdit_EditToggleOvertype(ScintillaEdit* self) { + self->editToggleOvertype(); +} + +void ScintillaEdit_Cancel(ScintillaEdit* self) { + self->cancel(); +} + +void ScintillaEdit_DeleteBack(ScintillaEdit* self) { + self->deleteBack(); +} + +void ScintillaEdit_Tab(ScintillaEdit* self) { + self->tab(); +} + +void ScintillaEdit_LineIndent(ScintillaEdit* self) { + self->lineIndent(); +} + +void ScintillaEdit_BackTab(ScintillaEdit* self) { + self->backTab(); +} + +void ScintillaEdit_LineDedent(ScintillaEdit* self) { + self->lineDedent(); +} + +void ScintillaEdit_NewLine(ScintillaEdit* self) { + self->newLine(); +} + +void ScintillaEdit_FormFeed(ScintillaEdit* self) { + self->formFeed(); +} + +void ScintillaEdit_VCHome(ScintillaEdit* self) { + self->vCHome(); +} + +void ScintillaEdit_VCHomeExtend(ScintillaEdit* self) { + self->vCHomeExtend(); +} + +void ScintillaEdit_ZoomIn(ScintillaEdit* self) { + self->zoomIn(); +} + +void ScintillaEdit_ZoomOut(ScintillaEdit* self) { + self->zoomOut(); +} + +void ScintillaEdit_DelWordLeft(ScintillaEdit* self) { + self->delWordLeft(); +} + +void ScintillaEdit_DelWordRight(ScintillaEdit* self) { + self->delWordRight(); +} + +void ScintillaEdit_DelWordRightEnd(ScintillaEdit* self) { + self->delWordRightEnd(); +} + +void ScintillaEdit_LineCut(ScintillaEdit* self) { + self->lineCut(); +} + +void ScintillaEdit_LineDelete(ScintillaEdit* self) { + self->lineDelete(); +} + +void ScintillaEdit_LineTranspose(ScintillaEdit* self) { + self->lineTranspose(); +} + +void ScintillaEdit_LineReverse(ScintillaEdit* self) { + self->lineReverse(); +} + +void ScintillaEdit_LineDuplicate(ScintillaEdit* self) { + self->lineDuplicate(); +} + +void ScintillaEdit_LowerCase(ScintillaEdit* self) { + self->lowerCase(); +} + +void ScintillaEdit_UpperCase(ScintillaEdit* self) { + self->upperCase(); +} + +void ScintillaEdit_LineScrollDown(ScintillaEdit* self) { + self->lineScrollDown(); +} + +void ScintillaEdit_LineScrollUp(ScintillaEdit* self) { + self->lineScrollUp(); +} + +void ScintillaEdit_DeleteBackNotLine(ScintillaEdit* self) { + self->deleteBackNotLine(); +} + +void ScintillaEdit_HomeDisplay(ScintillaEdit* self) { + self->homeDisplay(); +} + +void ScintillaEdit_HomeDisplayExtend(ScintillaEdit* self) { + self->homeDisplayExtend(); +} + +void ScintillaEdit_LineEndDisplay(ScintillaEdit* self) { + self->lineEndDisplay(); +} + +void ScintillaEdit_LineEndDisplayExtend(ScintillaEdit* self) { + self->lineEndDisplayExtend(); +} + +void ScintillaEdit_HomeWrap(ScintillaEdit* self) { + self->homeWrap(); +} + +void ScintillaEdit_HomeWrapExtend(ScintillaEdit* self) { + self->homeWrapExtend(); +} + +void ScintillaEdit_LineEndWrap(ScintillaEdit* self) { + self->lineEndWrap(); +} + +void ScintillaEdit_LineEndWrapExtend(ScintillaEdit* self) { + self->lineEndWrapExtend(); +} + +void ScintillaEdit_VCHomeWrap(ScintillaEdit* self) { + self->vCHomeWrap(); +} + +void ScintillaEdit_VCHomeWrapExtend(ScintillaEdit* self) { + self->vCHomeWrapExtend(); +} + +void ScintillaEdit_LineCopy(ScintillaEdit* self) { + self->lineCopy(); +} + +void ScintillaEdit_MoveCaretInsideView(ScintillaEdit* self) { + self->moveCaretInsideView(); +} + +intptr_t ScintillaEdit_LineLength(ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->lineLength(static_cast(line)); + return static_cast(_ret); +} + +void ScintillaEdit_BraceHighlight(ScintillaEdit* self, intptr_t posA, intptr_t posB) { + self->braceHighlight(static_cast(posA), static_cast(posB)); +} + +void ScintillaEdit_BraceHighlightIndicator(ScintillaEdit* self, bool useSetting, intptr_t indicator) { + self->braceHighlightIndicator(useSetting, static_cast(indicator)); +} + +void ScintillaEdit_BraceBadLight(ScintillaEdit* self, intptr_t pos) { + self->braceBadLight(static_cast(pos)); +} + +void ScintillaEdit_BraceBadLightIndicator(ScintillaEdit* self, bool useSetting, intptr_t indicator) { + self->braceBadLightIndicator(useSetting, static_cast(indicator)); +} + +intptr_t ScintillaEdit_BraceMatch(ScintillaEdit* self, intptr_t pos, intptr_t maxReStyle) { + sptr_t _ret = self->braceMatch(static_cast(pos), static_cast(maxReStyle)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_BraceMatchNext(ScintillaEdit* self, intptr_t pos, intptr_t startPos) { + sptr_t _ret = self->braceMatchNext(static_cast(pos), static_cast(startPos)); + return static_cast(_ret); +} + +bool ScintillaEdit_ViewEOL(const ScintillaEdit* self) { + return self->viewEOL(); +} + +void ScintillaEdit_SetViewEOL(ScintillaEdit* self, bool visible) { + self->setViewEOL(visible); +} + +intptr_t ScintillaEdit_DocPointer(const ScintillaEdit* self) { + sptr_t _ret = self->docPointer(); + return static_cast(_ret); +} + +void ScintillaEdit_SetDocPointer(ScintillaEdit* self, intptr_t doc) { + self->setDocPointer(static_cast(doc)); +} + +void ScintillaEdit_SetModEventMask(ScintillaEdit* self, intptr_t eventMask) { + self->setModEventMask(static_cast(eventMask)); +} + +intptr_t ScintillaEdit_EdgeColumn(const ScintillaEdit* self) { + sptr_t _ret = self->edgeColumn(); + return static_cast(_ret); +} + +void ScintillaEdit_SetEdgeColumn(ScintillaEdit* self, intptr_t column) { + self->setEdgeColumn(static_cast(column)); +} + +intptr_t ScintillaEdit_EdgeMode(const ScintillaEdit* self) { + sptr_t _ret = self->edgeMode(); + return static_cast(_ret); +} + +void ScintillaEdit_SetEdgeMode(ScintillaEdit* self, intptr_t edgeMode) { + self->setEdgeMode(static_cast(edgeMode)); +} + +intptr_t ScintillaEdit_EdgeColour(const ScintillaEdit* self) { + sptr_t _ret = self->edgeColour(); + return static_cast(_ret); +} + +void ScintillaEdit_SetEdgeColour(ScintillaEdit* self, intptr_t edgeColour) { + self->setEdgeColour(static_cast(edgeColour)); +} + +void ScintillaEdit_MultiEdgeAddLine(ScintillaEdit* self, intptr_t column, intptr_t edgeColour) { + self->multiEdgeAddLine(static_cast(column), static_cast(edgeColour)); +} + +void ScintillaEdit_MultiEdgeClearAll(ScintillaEdit* self) { + self->multiEdgeClearAll(); +} + +intptr_t ScintillaEdit_MultiEdgeColumn(const ScintillaEdit* self, intptr_t which) { + sptr_t _ret = self->multiEdgeColumn(static_cast(which)); + return static_cast(_ret); +} + +void ScintillaEdit_SearchAnchor(ScintillaEdit* self) { + self->searchAnchor(); +} + +intptr_t ScintillaEdit_SearchNext(ScintillaEdit* self, intptr_t searchFlags, const char* text) { + sptr_t _ret = self->searchNext(static_cast(searchFlags), text); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_SearchPrev(ScintillaEdit* self, intptr_t searchFlags, const char* text) { + sptr_t _ret = self->searchPrev(static_cast(searchFlags), text); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_LinesOnScreen(const ScintillaEdit* self) { + sptr_t _ret = self->linesOnScreen(); + return static_cast(_ret); +} + +void ScintillaEdit_UsePopUp(ScintillaEdit* self, intptr_t popUpMode) { + self->usePopUp(static_cast(popUpMode)); +} + +bool ScintillaEdit_SelectionIsRectangle(const ScintillaEdit* self) { + return self->selectionIsRectangle(); +} + +void ScintillaEdit_SetZoom(ScintillaEdit* self, intptr_t zoomInPoints) { + self->setZoom(static_cast(zoomInPoints)); +} + +intptr_t ScintillaEdit_Zoom(const ScintillaEdit* self) { + sptr_t _ret = self->zoom(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_CreateDocument(ScintillaEdit* self, intptr_t bytes, intptr_t documentOptions) { + sptr_t _ret = self->createDocument(static_cast(bytes), static_cast(documentOptions)); + return static_cast(_ret); +} + +void ScintillaEdit_AddRefDocument(ScintillaEdit* self, intptr_t doc) { + self->addRefDocument(static_cast(doc)); +} + +void ScintillaEdit_ReleaseDocument(ScintillaEdit* self, intptr_t doc) { + self->releaseDocument(static_cast(doc)); +} + +intptr_t ScintillaEdit_DocumentOptions(const ScintillaEdit* self) { + sptr_t _ret = self->documentOptions(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_ModEventMask(const ScintillaEdit* self) { + sptr_t _ret = self->modEventMask(); + return static_cast(_ret); +} + +void ScintillaEdit_SetCommandEvents(ScintillaEdit* self, bool commandEvents) { + self->setCommandEvents(commandEvents); +} + +bool ScintillaEdit_CommandEvents(const ScintillaEdit* self) { + return self->commandEvents(); +} + +void ScintillaEdit_SetFocus(ScintillaEdit* self, bool focus) { + self->setFocus(focus); +} + +bool ScintillaEdit_Focus(const ScintillaEdit* self) { + return self->focus(); +} + +void ScintillaEdit_SetStatus(ScintillaEdit* self, intptr_t status) { + self->setStatus(static_cast(status)); +} + +intptr_t ScintillaEdit_Status(const ScintillaEdit* self) { + sptr_t _ret = self->status(); + return static_cast(_ret); +} + +void ScintillaEdit_SetMouseDownCaptures(ScintillaEdit* self, bool captures) { + self->setMouseDownCaptures(captures); +} + +bool ScintillaEdit_MouseDownCaptures(const ScintillaEdit* self) { + return self->mouseDownCaptures(); +} + +void ScintillaEdit_SetMouseWheelCaptures(ScintillaEdit* self, bool captures) { + self->setMouseWheelCaptures(captures); +} + +bool ScintillaEdit_MouseWheelCaptures(const ScintillaEdit* self) { + return self->mouseWheelCaptures(); +} + +void ScintillaEdit_SetCursor(ScintillaEdit* self, intptr_t cursorType) { + self->setCursor(static_cast(cursorType)); +} + +intptr_t ScintillaEdit_Cursor(const ScintillaEdit* self) { + sptr_t _ret = self->cursor(); + return static_cast(_ret); +} + +void ScintillaEdit_SetControlCharSymbol(ScintillaEdit* self, intptr_t symbol) { + self->setControlCharSymbol(static_cast(symbol)); +} + +intptr_t ScintillaEdit_ControlCharSymbol(const ScintillaEdit* self) { + sptr_t _ret = self->controlCharSymbol(); + return static_cast(_ret); +} + +void ScintillaEdit_WordPartLeft(ScintillaEdit* self) { + self->wordPartLeft(); +} + +void ScintillaEdit_WordPartLeftExtend(ScintillaEdit* self) { + self->wordPartLeftExtend(); +} + +void ScintillaEdit_WordPartRight(ScintillaEdit* self) { + self->wordPartRight(); +} + +void ScintillaEdit_WordPartRightExtend(ScintillaEdit* self) { + self->wordPartRightExtend(); +} + +void ScintillaEdit_SetVisiblePolicy(ScintillaEdit* self, intptr_t visiblePolicy, intptr_t visibleSlop) { + self->setVisiblePolicy(static_cast(visiblePolicy), static_cast(visibleSlop)); +} + +void ScintillaEdit_DelLineLeft(ScintillaEdit* self) { + self->delLineLeft(); +} + +void ScintillaEdit_DelLineRight(ScintillaEdit* self) { + self->delLineRight(); +} + +void ScintillaEdit_SetXOffset(ScintillaEdit* self, intptr_t xOffset) { + self->setXOffset(static_cast(xOffset)); +} + +intptr_t ScintillaEdit_XOffset(const ScintillaEdit* self) { + sptr_t _ret = self->xOffset(); + return static_cast(_ret); +} + +void ScintillaEdit_ChooseCaretX(ScintillaEdit* self) { + self->chooseCaretX(); +} + +void ScintillaEdit_GrabFocus(ScintillaEdit* self) { + self->grabFocus(); +} + +void ScintillaEdit_SetXCaretPolicy(ScintillaEdit* self, intptr_t caretPolicy, intptr_t caretSlop) { + self->setXCaretPolicy(static_cast(caretPolicy), static_cast(caretSlop)); +} + +void ScintillaEdit_SetYCaretPolicy(ScintillaEdit* self, intptr_t caretPolicy, intptr_t caretSlop) { + self->setYCaretPolicy(static_cast(caretPolicy), static_cast(caretSlop)); +} + +void ScintillaEdit_SetPrintWrapMode(ScintillaEdit* self, intptr_t wrapMode) { + self->setPrintWrapMode(static_cast(wrapMode)); +} + +intptr_t ScintillaEdit_PrintWrapMode(const ScintillaEdit* self) { + sptr_t _ret = self->printWrapMode(); + return static_cast(_ret); +} + +void ScintillaEdit_SetHotspotActiveFore(ScintillaEdit* self, bool useSetting, intptr_t fore) { + self->setHotspotActiveFore(useSetting, static_cast(fore)); +} + +intptr_t ScintillaEdit_HotspotActiveFore(const ScintillaEdit* self) { + sptr_t _ret = self->hotspotActiveFore(); + return static_cast(_ret); +} + +void ScintillaEdit_SetHotspotActiveBack(ScintillaEdit* self, bool useSetting, intptr_t back) { + self->setHotspotActiveBack(useSetting, static_cast(back)); +} + +intptr_t ScintillaEdit_HotspotActiveBack(const ScintillaEdit* self) { + sptr_t _ret = self->hotspotActiveBack(); + return static_cast(_ret); +} + +void ScintillaEdit_SetHotspotActiveUnderline(ScintillaEdit* self, bool underline) { + self->setHotspotActiveUnderline(underline); +} + +bool ScintillaEdit_HotspotActiveUnderline(const ScintillaEdit* self) { + return self->hotspotActiveUnderline(); +} + +void ScintillaEdit_SetHotspotSingleLine(ScintillaEdit* self, bool singleLine) { + self->setHotspotSingleLine(singleLine); +} + +bool ScintillaEdit_HotspotSingleLine(const ScintillaEdit* self) { + return self->hotspotSingleLine(); +} + +void ScintillaEdit_ParaDown(ScintillaEdit* self) { + self->paraDown(); +} + +void ScintillaEdit_ParaDownExtend(ScintillaEdit* self) { + self->paraDownExtend(); +} + +void ScintillaEdit_ParaUp(ScintillaEdit* self) { + self->paraUp(); +} + +void ScintillaEdit_ParaUpExtend(ScintillaEdit* self) { + self->paraUpExtend(); +} + +intptr_t ScintillaEdit_PositionBefore(ScintillaEdit* self, intptr_t pos) { + sptr_t _ret = self->positionBefore(static_cast(pos)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_PositionAfter(ScintillaEdit* self, intptr_t pos) { + sptr_t _ret = self->positionAfter(static_cast(pos)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_PositionRelative(ScintillaEdit* self, intptr_t pos, intptr_t relative) { + sptr_t _ret = self->positionRelative(static_cast(pos), static_cast(relative)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_PositionRelativeCodeUnits(ScintillaEdit* self, intptr_t pos, intptr_t relative) { + sptr_t _ret = self->positionRelativeCodeUnits(static_cast(pos), static_cast(relative)); + return static_cast(_ret); +} + +void ScintillaEdit_CopyRange(ScintillaEdit* self, intptr_t start, intptr_t end) { + self->copyRange(static_cast(start), static_cast(end)); +} + +void ScintillaEdit_CopyText(ScintillaEdit* self, intptr_t length, const char* text) { + self->copyText(static_cast(length), text); +} + +void ScintillaEdit_SetSelectionMode(ScintillaEdit* self, intptr_t selectionMode) { + self->setSelectionMode(static_cast(selectionMode)); +} + +void ScintillaEdit_ChangeSelectionMode(ScintillaEdit* self, intptr_t selectionMode) { + self->changeSelectionMode(static_cast(selectionMode)); +} + +intptr_t ScintillaEdit_SelectionMode(const ScintillaEdit* self) { + sptr_t _ret = self->selectionMode(); + return static_cast(_ret); +} + +void ScintillaEdit_SetMoveExtendsSelection(ScintillaEdit* self, bool moveExtendsSelection) { + self->setMoveExtendsSelection(moveExtendsSelection); +} + +bool ScintillaEdit_MoveExtendsSelection(const ScintillaEdit* self) { + return self->moveExtendsSelection(); +} + +intptr_t ScintillaEdit_GetLineSelStartPosition(ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->getLineSelStartPosition(static_cast(line)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_GetLineSelEndPosition(ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->getLineSelEndPosition(static_cast(line)); + return static_cast(_ret); +} + +void ScintillaEdit_LineDownRectExtend(ScintillaEdit* self) { + self->lineDownRectExtend(); +} + +void ScintillaEdit_LineUpRectExtend(ScintillaEdit* self) { + self->lineUpRectExtend(); +} + +void ScintillaEdit_CharLeftRectExtend(ScintillaEdit* self) { + self->charLeftRectExtend(); +} + +void ScintillaEdit_CharRightRectExtend(ScintillaEdit* self) { + self->charRightRectExtend(); +} + +void ScintillaEdit_HomeRectExtend(ScintillaEdit* self) { + self->homeRectExtend(); +} + +void ScintillaEdit_VCHomeRectExtend(ScintillaEdit* self) { + self->vCHomeRectExtend(); +} + +void ScintillaEdit_LineEndRectExtend(ScintillaEdit* self) { + self->lineEndRectExtend(); +} + +void ScintillaEdit_PageUpRectExtend(ScintillaEdit* self) { + self->pageUpRectExtend(); +} + +void ScintillaEdit_PageDownRectExtend(ScintillaEdit* self) { + self->pageDownRectExtend(); +} + +void ScintillaEdit_StutteredPageUp(ScintillaEdit* self) { + self->stutteredPageUp(); +} + +void ScintillaEdit_StutteredPageUpExtend(ScintillaEdit* self) { + self->stutteredPageUpExtend(); +} + +void ScintillaEdit_StutteredPageDown(ScintillaEdit* self) { + self->stutteredPageDown(); +} + +void ScintillaEdit_StutteredPageDownExtend(ScintillaEdit* self) { + self->stutteredPageDownExtend(); +} + +void ScintillaEdit_WordLeftEnd(ScintillaEdit* self) { + self->wordLeftEnd(); +} + +void ScintillaEdit_WordLeftEndExtend(ScintillaEdit* self) { + self->wordLeftEndExtend(); +} + +void ScintillaEdit_WordRightEnd(ScintillaEdit* self) { + self->wordRightEnd(); +} + +void ScintillaEdit_WordRightEndExtend(ScintillaEdit* self) { + self->wordRightEndExtend(); +} + +void ScintillaEdit_SetWhitespaceChars(ScintillaEdit* self, const char* characters) { + self->setWhitespaceChars(characters); +} + +struct miqt_string ScintillaEdit_WhitespaceChars(const ScintillaEdit* self) { + QByteArray _qb = self->whitespaceChars(); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_SetPunctuationChars(ScintillaEdit* self, const char* characters) { + self->setPunctuationChars(characters); +} + +struct miqt_string ScintillaEdit_PunctuationChars(const ScintillaEdit* self) { + QByteArray _qb = self->punctuationChars(); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_SetCharsDefault(ScintillaEdit* self) { + self->setCharsDefault(); +} + +intptr_t ScintillaEdit_AutoCCurrent(const ScintillaEdit* self) { + sptr_t _ret = self->autoCCurrent(); + return static_cast(_ret); +} + +struct miqt_string ScintillaEdit_AutoCCurrentText(const ScintillaEdit* self) { + QByteArray _qb = self->autoCCurrentText(); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_AutoCSetCaseInsensitiveBehaviour(ScintillaEdit* self, intptr_t behaviour) { + self->autoCSetCaseInsensitiveBehaviour(static_cast(behaviour)); +} + +intptr_t ScintillaEdit_AutoCCaseInsensitiveBehaviour(const ScintillaEdit* self) { + sptr_t _ret = self->autoCCaseInsensitiveBehaviour(); + return static_cast(_ret); +} + +void ScintillaEdit_AutoCSetMulti(ScintillaEdit* self, intptr_t multi) { + self->autoCSetMulti(static_cast(multi)); +} + +intptr_t ScintillaEdit_AutoCMulti(const ScintillaEdit* self) { + sptr_t _ret = self->autoCMulti(); + return static_cast(_ret); +} + +void ScintillaEdit_AutoCSetOrder(ScintillaEdit* self, intptr_t order) { + self->autoCSetOrder(static_cast(order)); +} + +intptr_t ScintillaEdit_AutoCOrder(const ScintillaEdit* self) { + sptr_t _ret = self->autoCOrder(); + return static_cast(_ret); +} + +void ScintillaEdit_Allocate(ScintillaEdit* self, intptr_t bytes) { + self->allocate(static_cast(bytes)); +} + +struct miqt_string ScintillaEdit_TargetAsUTF8(ScintillaEdit* self) { + QByteArray _qb = self->targetAsUTF8(); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_SetLengthForEncode(ScintillaEdit* self, intptr_t bytes) { + self->setLengthForEncode(static_cast(bytes)); +} + +struct miqt_string ScintillaEdit_EncodedFromUTF8(ScintillaEdit* self, const char* utf8) { + QByteArray _qb = self->encodedFromUTF8(utf8); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +intptr_t ScintillaEdit_FindColumn(ScintillaEdit* self, intptr_t line, intptr_t column) { + sptr_t _ret = self->findColumn(static_cast(line), static_cast(column)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_CaretSticky(const ScintillaEdit* self) { + sptr_t _ret = self->caretSticky(); + return static_cast(_ret); +} + +void ScintillaEdit_SetCaretSticky(ScintillaEdit* self, intptr_t useCaretStickyBehaviour) { + self->setCaretSticky(static_cast(useCaretStickyBehaviour)); +} + +void ScintillaEdit_ToggleCaretSticky(ScintillaEdit* self) { + self->toggleCaretSticky(); +} + +void ScintillaEdit_SetPasteConvertEndings(ScintillaEdit* self, bool convert) { + self->setPasteConvertEndings(convert); +} + +bool ScintillaEdit_PasteConvertEndings(const ScintillaEdit* self) { + return self->pasteConvertEndings(); +} + +void ScintillaEdit_ReplaceRectangular(ScintillaEdit* self, intptr_t length, const char* text) { + self->replaceRectangular(static_cast(length), text); +} + +void ScintillaEdit_SelectionDuplicate(ScintillaEdit* self) { + self->selectionDuplicate(); +} + +void ScintillaEdit_SetCaretLineBackAlpha(ScintillaEdit* self, intptr_t alpha) { + self->setCaretLineBackAlpha(static_cast(alpha)); +} + +intptr_t ScintillaEdit_CaretLineBackAlpha(const ScintillaEdit* self) { + sptr_t _ret = self->caretLineBackAlpha(); + return static_cast(_ret); +} + +void ScintillaEdit_SetCaretStyle(ScintillaEdit* self, intptr_t caretStyle) { + self->setCaretStyle(static_cast(caretStyle)); +} + +intptr_t ScintillaEdit_CaretStyle(const ScintillaEdit* self) { + sptr_t _ret = self->caretStyle(); + return static_cast(_ret); +} + +void ScintillaEdit_SetIndicatorCurrent(ScintillaEdit* self, intptr_t indicator) { + self->setIndicatorCurrent(static_cast(indicator)); +} + +intptr_t ScintillaEdit_IndicatorCurrent(const ScintillaEdit* self) { + sptr_t _ret = self->indicatorCurrent(); + return static_cast(_ret); +} + +void ScintillaEdit_SetIndicatorValue(ScintillaEdit* self, intptr_t value) { + self->setIndicatorValue(static_cast(value)); +} + +intptr_t ScintillaEdit_IndicatorValue(const ScintillaEdit* self) { + sptr_t _ret = self->indicatorValue(); + return static_cast(_ret); +} + +void ScintillaEdit_IndicatorFillRange(ScintillaEdit* self, intptr_t start, intptr_t lengthFill) { + self->indicatorFillRange(static_cast(start), static_cast(lengthFill)); +} + +void ScintillaEdit_IndicatorClearRange(ScintillaEdit* self, intptr_t start, intptr_t lengthClear) { + self->indicatorClearRange(static_cast(start), static_cast(lengthClear)); +} + +intptr_t ScintillaEdit_IndicatorAllOnFor(ScintillaEdit* self, intptr_t pos) { + sptr_t _ret = self->indicatorAllOnFor(static_cast(pos)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_IndicatorValueAt(ScintillaEdit* self, intptr_t indicator, intptr_t pos) { + sptr_t _ret = self->indicatorValueAt(static_cast(indicator), static_cast(pos)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_IndicatorStart(ScintillaEdit* self, intptr_t indicator, intptr_t pos) { + sptr_t _ret = self->indicatorStart(static_cast(indicator), static_cast(pos)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_IndicatorEnd(ScintillaEdit* self, intptr_t indicator, intptr_t pos) { + sptr_t _ret = self->indicatorEnd(static_cast(indicator), static_cast(pos)); + return static_cast(_ret); +} + +void ScintillaEdit_SetPositionCache(ScintillaEdit* self, intptr_t size) { + self->setPositionCache(static_cast(size)); +} + +intptr_t ScintillaEdit_PositionCache(const ScintillaEdit* self) { + sptr_t _ret = self->positionCache(); + return static_cast(_ret); +} + +void ScintillaEdit_SetLayoutThreads(ScintillaEdit* self, intptr_t threads) { + self->setLayoutThreads(static_cast(threads)); +} + +intptr_t ScintillaEdit_LayoutThreads(const ScintillaEdit* self) { + sptr_t _ret = self->layoutThreads(); + return static_cast(_ret); +} + +void ScintillaEdit_CopyAllowLine(ScintillaEdit* self) { + self->copyAllowLine(); +} + +void ScintillaEdit_CutAllowLine(ScintillaEdit* self) { + self->cutAllowLine(); +} + +void ScintillaEdit_SetCopySeparator(ScintillaEdit* self, const char* separator) { + self->setCopySeparator(separator); +} + +struct miqt_string ScintillaEdit_CopySeparator(const ScintillaEdit* self) { + QByteArray _qb = self->copySeparator(); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +intptr_t ScintillaEdit_CharacterPointer(const ScintillaEdit* self) { + sptr_t _ret = self->characterPointer(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_RangePointer(const ScintillaEdit* self, intptr_t start, intptr_t lengthRange) { + sptr_t _ret = self->rangePointer(static_cast(start), static_cast(lengthRange)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_GapPosition(const ScintillaEdit* self) { + sptr_t _ret = self->gapPosition(); + return static_cast(_ret); +} + +void ScintillaEdit_IndicSetAlpha(ScintillaEdit* self, intptr_t indicator, intptr_t alpha) { + self->indicSetAlpha(static_cast(indicator), static_cast(alpha)); +} + +intptr_t ScintillaEdit_IndicAlpha(const ScintillaEdit* self, intptr_t indicator) { + sptr_t _ret = self->indicAlpha(static_cast(indicator)); + return static_cast(_ret); +} + +void ScintillaEdit_IndicSetOutlineAlpha(ScintillaEdit* self, intptr_t indicator, intptr_t alpha) { + self->indicSetOutlineAlpha(static_cast(indicator), static_cast(alpha)); +} + +intptr_t ScintillaEdit_IndicOutlineAlpha(const ScintillaEdit* self, intptr_t indicator) { + sptr_t _ret = self->indicOutlineAlpha(static_cast(indicator)); + return static_cast(_ret); +} + +void ScintillaEdit_SetExtraAscent(ScintillaEdit* self, intptr_t extraAscent) { + self->setExtraAscent(static_cast(extraAscent)); +} + +intptr_t ScintillaEdit_ExtraAscent(const ScintillaEdit* self) { + sptr_t _ret = self->extraAscent(); + return static_cast(_ret); +} + +void ScintillaEdit_SetExtraDescent(ScintillaEdit* self, intptr_t extraDescent) { + self->setExtraDescent(static_cast(extraDescent)); +} + +intptr_t ScintillaEdit_ExtraDescent(const ScintillaEdit* self) { + sptr_t _ret = self->extraDescent(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_MarkerSymbolDefined(ScintillaEdit* self, intptr_t markerNumber) { + sptr_t _ret = self->markerSymbolDefined(static_cast(markerNumber)); + return static_cast(_ret); +} + +void ScintillaEdit_MarginSetText(ScintillaEdit* self, intptr_t line, const char* text) { + self->marginSetText(static_cast(line), text); +} + +struct miqt_string ScintillaEdit_MarginText(const ScintillaEdit* self, intptr_t line) { + QByteArray _qb = self->marginText(static_cast(line)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_MarginSetStyle(ScintillaEdit* self, intptr_t line, intptr_t style) { + self->marginSetStyle(static_cast(line), static_cast(style)); +} + +intptr_t ScintillaEdit_MarginStyle(const ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->marginStyle(static_cast(line)); + return static_cast(_ret); +} + +void ScintillaEdit_MarginSetStyles(ScintillaEdit* self, intptr_t line, const char* styles) { + self->marginSetStyles(static_cast(line), styles); +} + +struct miqt_string ScintillaEdit_MarginStyles(const ScintillaEdit* self, intptr_t line) { + QByteArray _qb = self->marginStyles(static_cast(line)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_MarginTextClearAll(ScintillaEdit* self) { + self->marginTextClearAll(); +} + +void ScintillaEdit_MarginSetStyleOffset(ScintillaEdit* self, intptr_t style) { + self->marginSetStyleOffset(static_cast(style)); +} + +intptr_t ScintillaEdit_MarginStyleOffset(const ScintillaEdit* self) { + sptr_t _ret = self->marginStyleOffset(); + return static_cast(_ret); +} + +void ScintillaEdit_SetMarginOptions(ScintillaEdit* self, intptr_t marginOptions) { + self->setMarginOptions(static_cast(marginOptions)); +} + +intptr_t ScintillaEdit_MarginOptions(const ScintillaEdit* self) { + sptr_t _ret = self->marginOptions(); + return static_cast(_ret); +} + +void ScintillaEdit_AnnotationSetText(ScintillaEdit* self, intptr_t line, const char* text) { + self->annotationSetText(static_cast(line), text); +} + +struct miqt_string ScintillaEdit_AnnotationText(const ScintillaEdit* self, intptr_t line) { + QByteArray _qb = self->annotationText(static_cast(line)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_AnnotationSetStyle(ScintillaEdit* self, intptr_t line, intptr_t style) { + self->annotationSetStyle(static_cast(line), static_cast(style)); +} + +intptr_t ScintillaEdit_AnnotationStyle(const ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->annotationStyle(static_cast(line)); + return static_cast(_ret); +} + +void ScintillaEdit_AnnotationSetStyles(ScintillaEdit* self, intptr_t line, const char* styles) { + self->annotationSetStyles(static_cast(line), styles); +} + +struct miqt_string ScintillaEdit_AnnotationStyles(const ScintillaEdit* self, intptr_t line) { + QByteArray _qb = self->annotationStyles(static_cast(line)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +intptr_t ScintillaEdit_AnnotationLines(const ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->annotationLines(static_cast(line)); + return static_cast(_ret); +} + +void ScintillaEdit_AnnotationClearAll(ScintillaEdit* self) { + self->annotationClearAll(); +} + +void ScintillaEdit_AnnotationSetVisible(ScintillaEdit* self, intptr_t visible) { + self->annotationSetVisible(static_cast(visible)); +} + +intptr_t ScintillaEdit_AnnotationVisible(const ScintillaEdit* self) { + sptr_t _ret = self->annotationVisible(); + return static_cast(_ret); +} + +void ScintillaEdit_AnnotationSetStyleOffset(ScintillaEdit* self, intptr_t style) { + self->annotationSetStyleOffset(static_cast(style)); +} + +intptr_t ScintillaEdit_AnnotationStyleOffset(const ScintillaEdit* self) { + sptr_t _ret = self->annotationStyleOffset(); + return static_cast(_ret); +} + +void ScintillaEdit_ReleaseAllExtendedStyles(ScintillaEdit* self) { + self->releaseAllExtendedStyles(); +} + +intptr_t ScintillaEdit_AllocateExtendedStyles(ScintillaEdit* self, intptr_t numberStyles) { + sptr_t _ret = self->allocateExtendedStyles(static_cast(numberStyles)); + return static_cast(_ret); +} + +void ScintillaEdit_AddUndoAction(ScintillaEdit* self, intptr_t token, intptr_t flags) { + self->addUndoAction(static_cast(token), static_cast(flags)); +} + +intptr_t ScintillaEdit_CharPositionFromPoint(ScintillaEdit* self, intptr_t x, intptr_t y) { + sptr_t _ret = self->charPositionFromPoint(static_cast(x), static_cast(y)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_CharPositionFromPointClose(ScintillaEdit* self, intptr_t x, intptr_t y) { + sptr_t _ret = self->charPositionFromPointClose(static_cast(x), static_cast(y)); + return static_cast(_ret); +} + +void ScintillaEdit_SetMouseSelectionRectangularSwitch(ScintillaEdit* self, bool mouseSelectionRectangularSwitch) { + self->setMouseSelectionRectangularSwitch(mouseSelectionRectangularSwitch); +} + +bool ScintillaEdit_MouseSelectionRectangularSwitch(const ScintillaEdit* self) { + return self->mouseSelectionRectangularSwitch(); +} + +void ScintillaEdit_SetMultipleSelection(ScintillaEdit* self, bool multipleSelection) { + self->setMultipleSelection(multipleSelection); +} + +bool ScintillaEdit_MultipleSelection(const ScintillaEdit* self) { + return self->multipleSelection(); +} + +void ScintillaEdit_SetAdditionalSelectionTyping(ScintillaEdit* self, bool additionalSelectionTyping) { + self->setAdditionalSelectionTyping(additionalSelectionTyping); +} + +bool ScintillaEdit_AdditionalSelectionTyping(const ScintillaEdit* self) { + return self->additionalSelectionTyping(); +} + +void ScintillaEdit_SetAdditionalCaretsBlink(ScintillaEdit* self, bool additionalCaretsBlink) { + self->setAdditionalCaretsBlink(additionalCaretsBlink); +} + +bool ScintillaEdit_AdditionalCaretsBlink(const ScintillaEdit* self) { + return self->additionalCaretsBlink(); +} + +void ScintillaEdit_SetAdditionalCaretsVisible(ScintillaEdit* self, bool additionalCaretsVisible) { + self->setAdditionalCaretsVisible(additionalCaretsVisible); +} + +bool ScintillaEdit_AdditionalCaretsVisible(const ScintillaEdit* self) { + return self->additionalCaretsVisible(); +} + +intptr_t ScintillaEdit_Selections(const ScintillaEdit* self) { + sptr_t _ret = self->selections(); + return static_cast(_ret); +} + +bool ScintillaEdit_SelectionEmpty(const ScintillaEdit* self) { + return self->selectionEmpty(); +} + +void ScintillaEdit_ClearSelections(ScintillaEdit* self) { + self->clearSelections(); +} + +void ScintillaEdit_SetSelection(ScintillaEdit* self, intptr_t caret, intptr_t anchor) { + self->setSelection(static_cast(caret), static_cast(anchor)); +} + +void ScintillaEdit_AddSelection(ScintillaEdit* self, intptr_t caret, intptr_t anchor) { + self->addSelection(static_cast(caret), static_cast(anchor)); +} + +intptr_t ScintillaEdit_SelectionFromPoint(ScintillaEdit* self, intptr_t x, intptr_t y) { + sptr_t _ret = self->selectionFromPoint(static_cast(x), static_cast(y)); + return static_cast(_ret); +} + +void ScintillaEdit_DropSelectionN(ScintillaEdit* self, intptr_t selection) { + self->dropSelectionN(static_cast(selection)); +} + +void ScintillaEdit_SetMainSelection(ScintillaEdit* self, intptr_t selection) { + self->setMainSelection(static_cast(selection)); +} + +intptr_t ScintillaEdit_MainSelection(const ScintillaEdit* self) { + sptr_t _ret = self->mainSelection(); + return static_cast(_ret); +} + +void ScintillaEdit_SetSelectionNCaret(ScintillaEdit* self, intptr_t selection, intptr_t caret) { + self->setSelectionNCaret(static_cast(selection), static_cast(caret)); +} + +intptr_t ScintillaEdit_SelectionNCaret(const ScintillaEdit* self, intptr_t selection) { + sptr_t _ret = self->selectionNCaret(static_cast(selection)); + return static_cast(_ret); +} + +void ScintillaEdit_SetSelectionNAnchor(ScintillaEdit* self, intptr_t selection, intptr_t anchor) { + self->setSelectionNAnchor(static_cast(selection), static_cast(anchor)); +} + +intptr_t ScintillaEdit_SelectionNAnchor(const ScintillaEdit* self, intptr_t selection) { + sptr_t _ret = self->selectionNAnchor(static_cast(selection)); + return static_cast(_ret); +} + +void ScintillaEdit_SetSelectionNCaretVirtualSpace(ScintillaEdit* self, intptr_t selection, intptr_t space) { + self->setSelectionNCaretVirtualSpace(static_cast(selection), static_cast(space)); +} + +intptr_t ScintillaEdit_SelectionNCaretVirtualSpace(const ScintillaEdit* self, intptr_t selection) { + sptr_t _ret = self->selectionNCaretVirtualSpace(static_cast(selection)); + return static_cast(_ret); +} + +void ScintillaEdit_SetSelectionNAnchorVirtualSpace(ScintillaEdit* self, intptr_t selection, intptr_t space) { + self->setSelectionNAnchorVirtualSpace(static_cast(selection), static_cast(space)); +} + +intptr_t ScintillaEdit_SelectionNAnchorVirtualSpace(const ScintillaEdit* self, intptr_t selection) { + sptr_t _ret = self->selectionNAnchorVirtualSpace(static_cast(selection)); + return static_cast(_ret); +} + +void ScintillaEdit_SetSelectionNStart(ScintillaEdit* self, intptr_t selection, intptr_t anchor) { + self->setSelectionNStart(static_cast(selection), static_cast(anchor)); +} + +intptr_t ScintillaEdit_SelectionNStart(const ScintillaEdit* self, intptr_t selection) { + sptr_t _ret = self->selectionNStart(static_cast(selection)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_SelectionNStartVirtualSpace(const ScintillaEdit* self, intptr_t selection) { + sptr_t _ret = self->selectionNStartVirtualSpace(static_cast(selection)); + return static_cast(_ret); +} + +void ScintillaEdit_SetSelectionNEnd(ScintillaEdit* self, intptr_t selection, intptr_t caret) { + self->setSelectionNEnd(static_cast(selection), static_cast(caret)); +} + +intptr_t ScintillaEdit_SelectionNEndVirtualSpace(const ScintillaEdit* self, intptr_t selection) { + sptr_t _ret = self->selectionNEndVirtualSpace(static_cast(selection)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_SelectionNEnd(const ScintillaEdit* self, intptr_t selection) { + sptr_t _ret = self->selectionNEnd(static_cast(selection)); + return static_cast(_ret); +} + +void ScintillaEdit_SetRectangularSelectionCaret(ScintillaEdit* self, intptr_t caret) { + self->setRectangularSelectionCaret(static_cast(caret)); +} + +intptr_t ScintillaEdit_RectangularSelectionCaret(const ScintillaEdit* self) { + sptr_t _ret = self->rectangularSelectionCaret(); + return static_cast(_ret); +} + +void ScintillaEdit_SetRectangularSelectionAnchor(ScintillaEdit* self, intptr_t anchor) { + self->setRectangularSelectionAnchor(static_cast(anchor)); +} + +intptr_t ScintillaEdit_RectangularSelectionAnchor(const ScintillaEdit* self) { + sptr_t _ret = self->rectangularSelectionAnchor(); + return static_cast(_ret); +} + +void ScintillaEdit_SetRectangularSelectionCaretVirtualSpace(ScintillaEdit* self, intptr_t space) { + self->setRectangularSelectionCaretVirtualSpace(static_cast(space)); +} + +intptr_t ScintillaEdit_RectangularSelectionCaretVirtualSpace(const ScintillaEdit* self) { + sptr_t _ret = self->rectangularSelectionCaretVirtualSpace(); + return static_cast(_ret); +} + +void ScintillaEdit_SetRectangularSelectionAnchorVirtualSpace(ScintillaEdit* self, intptr_t space) { + self->setRectangularSelectionAnchorVirtualSpace(static_cast(space)); +} + +intptr_t ScintillaEdit_RectangularSelectionAnchorVirtualSpace(const ScintillaEdit* self) { + sptr_t _ret = self->rectangularSelectionAnchorVirtualSpace(); + return static_cast(_ret); +} + +void ScintillaEdit_SetVirtualSpaceOptions(ScintillaEdit* self, intptr_t virtualSpaceOptions) { + self->setVirtualSpaceOptions(static_cast(virtualSpaceOptions)); +} + +intptr_t ScintillaEdit_VirtualSpaceOptions(const ScintillaEdit* self) { + sptr_t _ret = self->virtualSpaceOptions(); + return static_cast(_ret); +} + +void ScintillaEdit_SetRectangularSelectionModifier(ScintillaEdit* self, intptr_t modifier) { + self->setRectangularSelectionModifier(static_cast(modifier)); +} + +intptr_t ScintillaEdit_RectangularSelectionModifier(const ScintillaEdit* self) { + sptr_t _ret = self->rectangularSelectionModifier(); + return static_cast(_ret); +} + +void ScintillaEdit_SetAdditionalSelFore(ScintillaEdit* self, intptr_t fore) { + self->setAdditionalSelFore(static_cast(fore)); +} + +void ScintillaEdit_SetAdditionalSelBack(ScintillaEdit* self, intptr_t back) { + self->setAdditionalSelBack(static_cast(back)); +} + +void ScintillaEdit_SetAdditionalSelAlpha(ScintillaEdit* self, intptr_t alpha) { + self->setAdditionalSelAlpha(static_cast(alpha)); +} + +intptr_t ScintillaEdit_AdditionalSelAlpha(const ScintillaEdit* self) { + sptr_t _ret = self->additionalSelAlpha(); + return static_cast(_ret); +} + +void ScintillaEdit_SetAdditionalCaretFore(ScintillaEdit* self, intptr_t fore) { + self->setAdditionalCaretFore(static_cast(fore)); +} + +intptr_t ScintillaEdit_AdditionalCaretFore(const ScintillaEdit* self) { + sptr_t _ret = self->additionalCaretFore(); + return static_cast(_ret); +} + +void ScintillaEdit_RotateSelection(ScintillaEdit* self) { + self->rotateSelection(); +} + +void ScintillaEdit_SwapMainAnchorCaret(ScintillaEdit* self) { + self->swapMainAnchorCaret(); +} + +void ScintillaEdit_MultipleSelectAddNext(ScintillaEdit* self) { + self->multipleSelectAddNext(); +} + +void ScintillaEdit_MultipleSelectAddEach(ScintillaEdit* self) { + self->multipleSelectAddEach(); +} + +intptr_t ScintillaEdit_ChangeLexerState(ScintillaEdit* self, intptr_t start, intptr_t end) { + sptr_t _ret = self->changeLexerState(static_cast(start), static_cast(end)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_ContractedFoldNext(ScintillaEdit* self, intptr_t lineStart) { + sptr_t _ret = self->contractedFoldNext(static_cast(lineStart)); + return static_cast(_ret); +} + +void ScintillaEdit_VerticalCentreCaret(ScintillaEdit* self) { + self->verticalCentreCaret(); +} + +void ScintillaEdit_MoveSelectedLinesUp(ScintillaEdit* self) { + self->moveSelectedLinesUp(); +} + +void ScintillaEdit_MoveSelectedLinesDown(ScintillaEdit* self) { + self->moveSelectedLinesDown(); +} + +void ScintillaEdit_SetIdentifier(ScintillaEdit* self, intptr_t identifier) { + self->setIdentifier(static_cast(identifier)); +} + +intptr_t ScintillaEdit_Identifier(const ScintillaEdit* self) { + sptr_t _ret = self->identifier(); + return static_cast(_ret); +} + +void ScintillaEdit_RGBAImageSetWidth(ScintillaEdit* self, intptr_t width) { + self->rGBAImageSetWidth(static_cast(width)); +} + +void ScintillaEdit_RGBAImageSetHeight(ScintillaEdit* self, intptr_t height) { + self->rGBAImageSetHeight(static_cast(height)); +} + +void ScintillaEdit_RGBAImageSetScale(ScintillaEdit* self, intptr_t scalePercent) { + self->rGBAImageSetScale(static_cast(scalePercent)); +} + +void ScintillaEdit_MarkerDefineRGBAImage(ScintillaEdit* self, intptr_t markerNumber, const char* pixels) { + self->markerDefineRGBAImage(static_cast(markerNumber), pixels); +} + +void ScintillaEdit_RegisterRGBAImage(ScintillaEdit* self, intptr_t typeVal, const char* pixels) { + self->registerRGBAImage(static_cast(typeVal), pixels); +} + +void ScintillaEdit_ScrollToStart(ScintillaEdit* self) { + self->scrollToStart(); +} + +void ScintillaEdit_ScrollToEnd(ScintillaEdit* self) { + self->scrollToEnd(); +} + +void ScintillaEdit_SetTechnology(ScintillaEdit* self, intptr_t technology) { + self->setTechnology(static_cast(technology)); +} + +intptr_t ScintillaEdit_Technology(const ScintillaEdit* self) { + sptr_t _ret = self->technology(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_CreateLoader(ScintillaEdit* self, intptr_t bytes, intptr_t documentOptions) { + sptr_t _ret = self->createLoader(static_cast(bytes), static_cast(documentOptions)); + return static_cast(_ret); +} + +void ScintillaEdit_FindIndicatorShow(ScintillaEdit* self, intptr_t start, intptr_t end) { + self->findIndicatorShow(static_cast(start), static_cast(end)); +} + +void ScintillaEdit_FindIndicatorFlash(ScintillaEdit* self, intptr_t start, intptr_t end) { + self->findIndicatorFlash(static_cast(start), static_cast(end)); +} + +void ScintillaEdit_FindIndicatorHide(ScintillaEdit* self) { + self->findIndicatorHide(); +} + +void ScintillaEdit_VCHomeDisplay(ScintillaEdit* self) { + self->vCHomeDisplay(); +} + +void ScintillaEdit_VCHomeDisplayExtend(ScintillaEdit* self) { + self->vCHomeDisplayExtend(); +} + +bool ScintillaEdit_CaretLineVisibleAlways(const ScintillaEdit* self) { + return self->caretLineVisibleAlways(); +} + +void ScintillaEdit_SetCaretLineVisibleAlways(ScintillaEdit* self, bool alwaysVisible) { + self->setCaretLineVisibleAlways(alwaysVisible); +} + +void ScintillaEdit_SetLineEndTypesAllowed(ScintillaEdit* self, intptr_t lineEndBitSet) { + self->setLineEndTypesAllowed(static_cast(lineEndBitSet)); +} + +intptr_t ScintillaEdit_LineEndTypesAllowed(const ScintillaEdit* self) { + sptr_t _ret = self->lineEndTypesAllowed(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_LineEndTypesActive(const ScintillaEdit* self) { + sptr_t _ret = self->lineEndTypesActive(); + return static_cast(_ret); +} + +void ScintillaEdit_SetRepresentation(ScintillaEdit* self, const char* encodedCharacter, const char* representation) { + self->setRepresentation(encodedCharacter, representation); +} + +struct miqt_string ScintillaEdit_Representation(const ScintillaEdit* self, const char* encodedCharacter) { + QByteArray _qb = self->representation(encodedCharacter); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_ClearRepresentation(ScintillaEdit* self, const char* encodedCharacter) { + self->clearRepresentation(encodedCharacter); +} + +void ScintillaEdit_ClearAllRepresentations(ScintillaEdit* self) { + self->clearAllRepresentations(); +} + +void ScintillaEdit_SetRepresentationAppearance(ScintillaEdit* self, const char* encodedCharacter, intptr_t appearance) { + self->setRepresentationAppearance(encodedCharacter, static_cast(appearance)); +} + +intptr_t ScintillaEdit_RepresentationAppearance(const ScintillaEdit* self, const char* encodedCharacter) { + sptr_t _ret = self->representationAppearance(encodedCharacter); + return static_cast(_ret); +} + +void ScintillaEdit_SetRepresentationColour(ScintillaEdit* self, const char* encodedCharacter, intptr_t colour) { + self->setRepresentationColour(encodedCharacter, static_cast(colour)); +} + +intptr_t ScintillaEdit_RepresentationColour(const ScintillaEdit* self, const char* encodedCharacter) { + sptr_t _ret = self->representationColour(encodedCharacter); + return static_cast(_ret); +} + +void ScintillaEdit_EOLAnnotationSetText(ScintillaEdit* self, intptr_t line, const char* text) { + self->eOLAnnotationSetText(static_cast(line), text); +} + +struct miqt_string ScintillaEdit_EOLAnnotationText(const ScintillaEdit* self, intptr_t line) { + QByteArray _qb = self->eOLAnnotationText(static_cast(line)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_EOLAnnotationSetStyle(ScintillaEdit* self, intptr_t line, intptr_t style) { + self->eOLAnnotationSetStyle(static_cast(line), static_cast(style)); +} + +intptr_t ScintillaEdit_EOLAnnotationStyle(const ScintillaEdit* self, intptr_t line) { + sptr_t _ret = self->eOLAnnotationStyle(static_cast(line)); + return static_cast(_ret); +} + +void ScintillaEdit_EOLAnnotationClearAll(ScintillaEdit* self) { + self->eOLAnnotationClearAll(); +} + +void ScintillaEdit_EOLAnnotationSetVisible(ScintillaEdit* self, intptr_t visible) { + self->eOLAnnotationSetVisible(static_cast(visible)); +} + +intptr_t ScintillaEdit_EOLAnnotationVisible(const ScintillaEdit* self) { + sptr_t _ret = self->eOLAnnotationVisible(); + return static_cast(_ret); +} + +void ScintillaEdit_EOLAnnotationSetStyleOffset(ScintillaEdit* self, intptr_t style) { + self->eOLAnnotationSetStyleOffset(static_cast(style)); +} + +intptr_t ScintillaEdit_EOLAnnotationStyleOffset(const ScintillaEdit* self) { + sptr_t _ret = self->eOLAnnotationStyleOffset(); + return static_cast(_ret); +} + +bool ScintillaEdit_SupportsFeature(const ScintillaEdit* self, intptr_t feature) { + return self->supportsFeature(static_cast(feature)); +} + +intptr_t ScintillaEdit_LineCharacterIndex(const ScintillaEdit* self) { + sptr_t _ret = self->lineCharacterIndex(); + return static_cast(_ret); +} + +void ScintillaEdit_AllocateLineCharacterIndex(ScintillaEdit* self, intptr_t lineCharacterIndex) { + self->allocateLineCharacterIndex(static_cast(lineCharacterIndex)); +} + +void ScintillaEdit_ReleaseLineCharacterIndex(ScintillaEdit* self, intptr_t lineCharacterIndex) { + self->releaseLineCharacterIndex(static_cast(lineCharacterIndex)); +} + +intptr_t ScintillaEdit_LineFromIndexPosition(ScintillaEdit* self, intptr_t pos, intptr_t lineCharacterIndex) { + sptr_t _ret = self->lineFromIndexPosition(static_cast(pos), static_cast(lineCharacterIndex)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_IndexPositionFromLine(ScintillaEdit* self, intptr_t line, intptr_t lineCharacterIndex) { + sptr_t _ret = self->indexPositionFromLine(static_cast(line), static_cast(lineCharacterIndex)); + return static_cast(_ret); +} + +void ScintillaEdit_StartRecord(ScintillaEdit* self) { + self->startRecord(); +} + +void ScintillaEdit_StopRecord(ScintillaEdit* self) { + self->stopRecord(); +} + +intptr_t ScintillaEdit_Lexer(const ScintillaEdit* self) { + sptr_t _ret = self->lexer(); + return static_cast(_ret); +} + +void ScintillaEdit_Colourise(ScintillaEdit* self, intptr_t start, intptr_t end) { + self->colourise(static_cast(start), static_cast(end)); +} + +void ScintillaEdit_SetProperty(ScintillaEdit* self, const char* key, const char* value) { + self->setProperty(key, value); +} + +void ScintillaEdit_SetKeyWords(ScintillaEdit* self, intptr_t keyWordSet, const char* keyWords) { + self->setKeyWords(static_cast(keyWordSet), keyWords); +} + +struct miqt_string ScintillaEdit_Property(const ScintillaEdit* self, const char* key) { + QByteArray _qb = self->property(key); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +struct miqt_string ScintillaEdit_PropertyExpanded(const ScintillaEdit* self, const char* key) { + QByteArray _qb = self->propertyExpanded(key); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +intptr_t ScintillaEdit_PropertyInt(const ScintillaEdit* self, const char* key, intptr_t defaultValue) { + sptr_t _ret = self->propertyInt(key, static_cast(defaultValue)); + return static_cast(_ret); +} + +struct miqt_string ScintillaEdit_LexerLanguage(const ScintillaEdit* self) { + QByteArray _qb = self->lexerLanguage(); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +intptr_t ScintillaEdit_PrivateLexerCall(ScintillaEdit* self, intptr_t operation, intptr_t pointer) { + sptr_t _ret = self->privateLexerCall(static_cast(operation), static_cast(pointer)); + return static_cast(_ret); +} + +struct miqt_string ScintillaEdit_PropertyNames(ScintillaEdit* self) { + QByteArray _qb = self->propertyNames(); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +intptr_t ScintillaEdit_PropertyType(ScintillaEdit* self, const char* name) { + sptr_t _ret = self->propertyType(name); + return static_cast(_ret); +} + +struct miqt_string ScintillaEdit_DescribeProperty(ScintillaEdit* self, const char* name) { + QByteArray _qb = self->describeProperty(name); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +struct miqt_string ScintillaEdit_DescribeKeyWordSets(ScintillaEdit* self) { + QByteArray _qb = self->describeKeyWordSets(); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +intptr_t ScintillaEdit_LineEndTypesSupported(const ScintillaEdit* self) { + sptr_t _ret = self->lineEndTypesSupported(); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_AllocateSubStyles(ScintillaEdit* self, intptr_t styleBase, intptr_t numberStyles) { + sptr_t _ret = self->allocateSubStyles(static_cast(styleBase), static_cast(numberStyles)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_SubStylesStart(const ScintillaEdit* self, intptr_t styleBase) { + sptr_t _ret = self->subStylesStart(static_cast(styleBase)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_SubStylesLength(const ScintillaEdit* self, intptr_t styleBase) { + sptr_t _ret = self->subStylesLength(static_cast(styleBase)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_StyleFromSubStyle(const ScintillaEdit* self, intptr_t subStyle) { + sptr_t _ret = self->styleFromSubStyle(static_cast(subStyle)); + return static_cast(_ret); +} + +intptr_t ScintillaEdit_PrimaryStyleFromStyle(const ScintillaEdit* self, intptr_t style) { + sptr_t _ret = self->primaryStyleFromStyle(static_cast(style)); + return static_cast(_ret); +} + +void ScintillaEdit_FreeSubStyles(ScintillaEdit* self) { + self->freeSubStyles(); +} + +void ScintillaEdit_SetIdentifiers(ScintillaEdit* self, intptr_t style, const char* identifiers) { + self->setIdentifiers(static_cast(style), identifiers); +} + +intptr_t ScintillaEdit_DistanceToSecondaryStyles(const ScintillaEdit* self) { + sptr_t _ret = self->distanceToSecondaryStyles(); + return static_cast(_ret); +} + +struct miqt_string ScintillaEdit_SubStyleBases(const ScintillaEdit* self) { + QByteArray _qb = self->subStyleBases(); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +intptr_t ScintillaEdit_NamedStyles(const ScintillaEdit* self) { + sptr_t _ret = self->namedStyles(); + return static_cast(_ret); +} + +struct miqt_string ScintillaEdit_NameOfStyle(ScintillaEdit* self, intptr_t style) { + QByteArray _qb = self->nameOfStyle(static_cast(style)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +struct miqt_string ScintillaEdit_TagsOfStyle(ScintillaEdit* self, intptr_t style) { + QByteArray _qb = self->tagsOfStyle(static_cast(style)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +struct miqt_string ScintillaEdit_DescriptionOfStyle(ScintillaEdit* self, intptr_t style) { + QByteArray _qb = self->descriptionOfStyle(static_cast(style)); + struct miqt_string _ms; + _ms.len = _qb.length(); + _ms.data = static_cast(malloc(_ms.len)); + memcpy(_ms.data, _qb.data(), _ms.len); + return _ms; +} + +void ScintillaEdit_SetILexer(ScintillaEdit* self, intptr_t ilexer) { + self->setILexer(static_cast(ilexer)); +} + +intptr_t ScintillaEdit_Bidirectional(const ScintillaEdit* self) { + sptr_t _ret = self->bidirectional(); + return static_cast(_ret); +} + +void ScintillaEdit_SetBidirectional(ScintillaEdit* self, intptr_t bidirectional) { + self->setBidirectional(static_cast(bidirectional)); +} + +struct miqt_string ScintillaEdit_Tr2(const char* s, const char* c) { + QString _ret = ScintillaEdit::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 ScintillaEdit_Tr3(const char* s, const char* c, int n) { + QString _ret = ScintillaEdit::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 ScintillaEdit_TrUtf82(const char* s, const char* c) { + QString _ret = ScintillaEdit::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 ScintillaEdit_TrUtf83(const char* s, const char* c, int n) { + QString _ret = ScintillaEdit::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 ScintillaEdit_Delete(ScintillaEdit* self) { + delete self; +} + diff --git a/qt-extras/scintillaedit/gen_ScintillaEdit.go b/qt-extras/scintillaedit/gen_ScintillaEdit.go new file mode 100644 index 00000000..4a08b89d --- /dev/null +++ b/qt-extras/scintillaedit/gen_ScintillaEdit.go @@ -0,0 +1,9336 @@ +package scintillaedit + +/* + +#include "gen_ScintillaEdit.h" +#include + +*/ +import "C" + +import ( + "github.com/mappu/miqt/qt" + "runtime" + "runtime/cgo" + "unsafe" +) + +type std__pointer_safety int + +const ( + Std__relaxed std__pointer_safety = 0 + Std__preferred std__pointer_safety = 1 + Std__strict std__pointer_safety = 2 +) + +type Scintilla__Internal__Edge int + +const ( + Scintilla__Internal__left Scintilla__Internal__Edge = 0 + Scintilla__Internal__top Scintilla__Internal__Edge = 1 + Scintilla__Internal__bottom Scintilla__Internal__Edge = 2 + Scintilla__Internal__right Scintilla__Internal__Edge = 3 +) + +type Scintilla__WhiteSpace int + +const ( + Scintilla__WhiteSpace__Invisible Scintilla__WhiteSpace = 0 + Scintilla__WhiteSpace__VisibleAlways Scintilla__WhiteSpace = 1 + Scintilla__WhiteSpace__VisibleAfterIndent Scintilla__WhiteSpace = 2 + Scintilla__WhiteSpace__VisibleOnlyInIndent Scintilla__WhiteSpace = 3 +) + +type Scintilla__TabDrawMode int + +const ( + Scintilla__LongArrow Scintilla__TabDrawMode = 0 + Scintilla__StrikeOut Scintilla__TabDrawMode = 1 +) + +type Scintilla__EndOfLine int + +const ( + Scintilla__CrLf Scintilla__EndOfLine = 0 + Scintilla__Cr Scintilla__EndOfLine = 1 + Scintilla__Lf Scintilla__EndOfLine = 2 +) + +type Scintilla__IMEInteraction int + +const ( + Scintilla__Windowed Scintilla__IMEInteraction = 0 + Scintilla__Inline Scintilla__IMEInteraction = 1 +) + +type Scintilla__Alpha int + +const ( + Scintilla__Transparent Scintilla__Alpha = 0 + Scintilla__Opaque Scintilla__Alpha = 255 + Scintilla__NoAlpha Scintilla__Alpha = 256 +) + +type Scintilla__CursorShape int + +const ( + Scintilla__CursorShape__Normal Scintilla__CursorShape = -1 + Scintilla__CursorShape__Arrow Scintilla__CursorShape = 2 + Scintilla__CursorShape__Wait Scintilla__CursorShape = 4 + Scintilla__CursorShape__ReverseArrow Scintilla__CursorShape = 7 +) + +type Scintilla__MarkerSymbol int + +const ( + Scintilla__MarkerSymbol__Circle Scintilla__MarkerSymbol = 0 + Scintilla__MarkerSymbol__RoundRect Scintilla__MarkerSymbol = 1 + Scintilla__MarkerSymbol__Arrow Scintilla__MarkerSymbol = 2 + Scintilla__MarkerSymbol__SmallRect Scintilla__MarkerSymbol = 3 + Scintilla__MarkerSymbol__ShortArrow Scintilla__MarkerSymbol = 4 + Scintilla__MarkerSymbol__Empty Scintilla__MarkerSymbol = 5 + Scintilla__MarkerSymbol__ArrowDown Scintilla__MarkerSymbol = 6 + Scintilla__MarkerSymbol__Minus Scintilla__MarkerSymbol = 7 + Scintilla__MarkerSymbol__Plus Scintilla__MarkerSymbol = 8 + Scintilla__MarkerSymbol__VLine Scintilla__MarkerSymbol = 9 + Scintilla__MarkerSymbol__LCorner Scintilla__MarkerSymbol = 10 + Scintilla__MarkerSymbol__TCorner Scintilla__MarkerSymbol = 11 + Scintilla__MarkerSymbol__BoxPlus Scintilla__MarkerSymbol = 12 + Scintilla__MarkerSymbol__BoxPlusConnected Scintilla__MarkerSymbol = 13 + Scintilla__MarkerSymbol__BoxMinus Scintilla__MarkerSymbol = 14 + Scintilla__MarkerSymbol__BoxMinusConnected Scintilla__MarkerSymbol = 15 + Scintilla__MarkerSymbol__LCornerCurve Scintilla__MarkerSymbol = 16 + Scintilla__MarkerSymbol__TCornerCurve Scintilla__MarkerSymbol = 17 + Scintilla__MarkerSymbol__CirclePlus Scintilla__MarkerSymbol = 18 + Scintilla__MarkerSymbol__CirclePlusConnected Scintilla__MarkerSymbol = 19 + Scintilla__MarkerSymbol__CircleMinus Scintilla__MarkerSymbol = 20 + Scintilla__MarkerSymbol__CircleMinusConnected Scintilla__MarkerSymbol = 21 + Scintilla__MarkerSymbol__Background Scintilla__MarkerSymbol = 22 + Scintilla__MarkerSymbol__DotDotDot Scintilla__MarkerSymbol = 23 + Scintilla__MarkerSymbol__Arrows Scintilla__MarkerSymbol = 24 + Scintilla__MarkerSymbol__Pixmap Scintilla__MarkerSymbol = 25 + Scintilla__MarkerSymbol__FullRect Scintilla__MarkerSymbol = 26 + Scintilla__MarkerSymbol__LeftRect Scintilla__MarkerSymbol = 27 + Scintilla__MarkerSymbol__Available Scintilla__MarkerSymbol = 28 + Scintilla__MarkerSymbol__Underline Scintilla__MarkerSymbol = 29 + Scintilla__MarkerSymbol__RgbaImage Scintilla__MarkerSymbol = 30 + Scintilla__MarkerSymbol__Bookmark Scintilla__MarkerSymbol = 31 + Scintilla__MarkerSymbol__VerticalBookmark Scintilla__MarkerSymbol = 32 + Scintilla__MarkerSymbol__Bar Scintilla__MarkerSymbol = 33 + Scintilla__MarkerSymbol__Character Scintilla__MarkerSymbol = 10000 +) + +type Scintilla__MarkerOutline int + +const ( + Scintilla__HistoryRevertedToOrigin Scintilla__MarkerOutline = 21 + Scintilla__HistorySaved Scintilla__MarkerOutline = 22 + Scintilla__HistoryModified Scintilla__MarkerOutline = 23 + Scintilla__HistoryRevertedToModified Scintilla__MarkerOutline = 24 + Scintilla__FolderEnd Scintilla__MarkerOutline = 25 + Scintilla__FolderOpenMid Scintilla__MarkerOutline = 26 + Scintilla__FolderMidTail Scintilla__MarkerOutline = 27 + Scintilla__FolderTail Scintilla__MarkerOutline = 28 + Scintilla__FolderSub Scintilla__MarkerOutline = 29 + Scintilla__Folder Scintilla__MarkerOutline = 30 + Scintilla__FolderOpen Scintilla__MarkerOutline = 31 +) + +type Scintilla__MarginType int + +const ( + Scintilla__MarginType__Symbol Scintilla__MarginType = 0 + Scintilla__MarginType__Number Scintilla__MarginType = 1 + Scintilla__MarginType__Back Scintilla__MarginType = 2 + Scintilla__MarginType__Fore Scintilla__MarginType = 3 + Scintilla__MarginType__Text Scintilla__MarginType = 4 + Scintilla__MarginType__RText Scintilla__MarginType = 5 + Scintilla__MarginType__Colour Scintilla__MarginType = 6 +) + +type Scintilla__StylesCommon int + +const ( + Scintilla__StylesCommon__Default Scintilla__StylesCommon = 32 + Scintilla__StylesCommon__LineNumber Scintilla__StylesCommon = 33 + Scintilla__StylesCommon__BraceLight Scintilla__StylesCommon = 34 + Scintilla__StylesCommon__BraceBad Scintilla__StylesCommon = 35 + Scintilla__StylesCommon__ControlChar Scintilla__StylesCommon = 36 + Scintilla__StylesCommon__IndentGuide Scintilla__StylesCommon = 37 + Scintilla__StylesCommon__CallTip Scintilla__StylesCommon = 38 + Scintilla__StylesCommon__FoldDisplayText Scintilla__StylesCommon = 39 + Scintilla__StylesCommon__LastPredefined Scintilla__StylesCommon = 39 + Scintilla__StylesCommon__Max Scintilla__StylesCommon = 255 +) + +type Scintilla__CharacterSet int + +const ( + Scintilla__CharacterSet__Ansi Scintilla__CharacterSet = 0 + Scintilla__CharacterSet__Default Scintilla__CharacterSet = 1 + Scintilla__CharacterSet__Baltic Scintilla__CharacterSet = 186 + Scintilla__CharacterSet__ChineseBig5 Scintilla__CharacterSet = 136 + Scintilla__CharacterSet__EastEurope Scintilla__CharacterSet = 238 + Scintilla__CharacterSet__GB2312 Scintilla__CharacterSet = 134 + Scintilla__CharacterSet__Greek Scintilla__CharacterSet = 161 + Scintilla__CharacterSet__Hangul Scintilla__CharacterSet = 129 + Scintilla__CharacterSet__Mac Scintilla__CharacterSet = 77 + Scintilla__CharacterSet__Oem Scintilla__CharacterSet = 255 + Scintilla__CharacterSet__Russian Scintilla__CharacterSet = 204 + Scintilla__CharacterSet__Oem866 Scintilla__CharacterSet = 866 + Scintilla__CharacterSet__Cyrillic Scintilla__CharacterSet = 1251 + Scintilla__CharacterSet__ShiftJis Scintilla__CharacterSet = 128 + Scintilla__CharacterSet__Symbol Scintilla__CharacterSet = 2 + Scintilla__CharacterSet__Turkish Scintilla__CharacterSet = 162 + Scintilla__CharacterSet__Johab Scintilla__CharacterSet = 130 + Scintilla__CharacterSet__Hebrew Scintilla__CharacterSet = 177 + Scintilla__CharacterSet__Arabic Scintilla__CharacterSet = 178 + Scintilla__CharacterSet__Vietnamese Scintilla__CharacterSet = 163 + Scintilla__CharacterSet__Thai Scintilla__CharacterSet = 222 + Scintilla__CharacterSet__Iso8859_15 Scintilla__CharacterSet = 1000 +) + +type Scintilla__CaseVisible int + +const ( + Scintilla__Mixed Scintilla__CaseVisible = 0 + Scintilla__Upper Scintilla__CaseVisible = 1 + Scintilla__Lower Scintilla__CaseVisible = 2 + Scintilla__Camel Scintilla__CaseVisible = 3 +) + +type Scintilla__FontWeight int + +const ( + Scintilla__FontWeight__Normal Scintilla__FontWeight = 400 + Scintilla__FontWeight__SemiBold Scintilla__FontWeight = 600 + Scintilla__FontWeight__Bold Scintilla__FontWeight = 700 +) + +type Scintilla__FontStretch int + +const ( + Scintilla__FontStretch__UltraCondensed Scintilla__FontStretch = 1 + Scintilla__FontStretch__ExtraCondensed Scintilla__FontStretch = 2 + Scintilla__FontStretch__Condensed Scintilla__FontStretch = 3 + Scintilla__FontStretch__SemiCondensed Scintilla__FontStretch = 4 + Scintilla__FontStretch__Normal Scintilla__FontStretch = 5 + Scintilla__FontStretch__SemiExpanded Scintilla__FontStretch = 6 + Scintilla__FontStretch__Expanded Scintilla__FontStretch = 7 + Scintilla__FontStretch__ExtraExpanded Scintilla__FontStretch = 8 + Scintilla__FontStretch__UltraExpanded Scintilla__FontStretch = 9 +) + +type Scintilla__Element int + +const ( + Scintilla__Element__List Scintilla__Element = 0 + Scintilla__Element__ListBack Scintilla__Element = 1 + Scintilla__Element__ListSelected Scintilla__Element = 2 + Scintilla__Element__ListSelectedBack Scintilla__Element = 3 + Scintilla__Element__SelectionText Scintilla__Element = 10 + Scintilla__Element__SelectionBack Scintilla__Element = 11 + Scintilla__Element__SelectionAdditionalText Scintilla__Element = 12 + Scintilla__Element__SelectionAdditionalBack Scintilla__Element = 13 + Scintilla__Element__SelectionSecondaryText Scintilla__Element = 14 + Scintilla__Element__SelectionSecondaryBack Scintilla__Element = 15 + Scintilla__Element__SelectionInactiveText Scintilla__Element = 16 + Scintilla__Element__SelectionInactiveBack Scintilla__Element = 17 + Scintilla__Element__SelectionInactiveAdditionalText Scintilla__Element = 18 + Scintilla__Element__SelectionInactiveAdditionalBack Scintilla__Element = 19 + Scintilla__Element__Caret Scintilla__Element = 40 + Scintilla__Element__CaretAdditional Scintilla__Element = 41 + Scintilla__Element__CaretLineBack Scintilla__Element = 50 + Scintilla__Element__WhiteSpace Scintilla__Element = 60 + Scintilla__Element__WhiteSpaceBack Scintilla__Element = 61 + Scintilla__Element__HotSpotActive Scintilla__Element = 70 + Scintilla__Element__HotSpotActiveBack Scintilla__Element = 71 + Scintilla__Element__FoldLine Scintilla__Element = 80 + Scintilla__Element__HiddenLine Scintilla__Element = 81 +) + +type Scintilla__Layer int + +const ( + Scintilla__Base Scintilla__Layer = 0 + Scintilla__UnderText Scintilla__Layer = 1 + Scintilla__OverText Scintilla__Layer = 2 +) + +type Scintilla__IndicatorStyle int + +const ( + Scintilla__IndicatorStyle__Plain Scintilla__IndicatorStyle = 0 + Scintilla__IndicatorStyle__Squiggle Scintilla__IndicatorStyle = 1 + Scintilla__IndicatorStyle__TT Scintilla__IndicatorStyle = 2 + Scintilla__IndicatorStyle__Diagonal Scintilla__IndicatorStyle = 3 + Scintilla__IndicatorStyle__Strike Scintilla__IndicatorStyle = 4 + Scintilla__IndicatorStyle__Hidden Scintilla__IndicatorStyle = 5 + Scintilla__IndicatorStyle__Box Scintilla__IndicatorStyle = 6 + Scintilla__IndicatorStyle__RoundBox Scintilla__IndicatorStyle = 7 + Scintilla__IndicatorStyle__StraightBox Scintilla__IndicatorStyle = 8 + Scintilla__IndicatorStyle__Dash Scintilla__IndicatorStyle = 9 + Scintilla__IndicatorStyle__Dots Scintilla__IndicatorStyle = 10 + Scintilla__IndicatorStyle__SquiggleLow Scintilla__IndicatorStyle = 11 + Scintilla__IndicatorStyle__DotBox Scintilla__IndicatorStyle = 12 + Scintilla__IndicatorStyle__SquigglePixmap Scintilla__IndicatorStyle = 13 + Scintilla__IndicatorStyle__CompositionThick Scintilla__IndicatorStyle = 14 + Scintilla__IndicatorStyle__CompositionThin Scintilla__IndicatorStyle = 15 + Scintilla__IndicatorStyle__FullBox Scintilla__IndicatorStyle = 16 + Scintilla__IndicatorStyle__TextFore Scintilla__IndicatorStyle = 17 + Scintilla__IndicatorStyle__Point Scintilla__IndicatorStyle = 18 + Scintilla__IndicatorStyle__PointCharacter Scintilla__IndicatorStyle = 19 + Scintilla__IndicatorStyle__Gradient Scintilla__IndicatorStyle = 20 + Scintilla__IndicatorStyle__GradientCentre Scintilla__IndicatorStyle = 21 + Scintilla__IndicatorStyle__PointTop Scintilla__IndicatorStyle = 22 +) + +type Scintilla__IndicatorNumbers int + +const ( + Scintilla__IndicatorNumbers__Container Scintilla__IndicatorNumbers = 8 + Scintilla__IndicatorNumbers__Ime Scintilla__IndicatorNumbers = 32 + Scintilla__IndicatorNumbers__ImeMax Scintilla__IndicatorNumbers = 35 + Scintilla__IndicatorNumbers__HistoryRevertedToOriginInsertion Scintilla__IndicatorNumbers = 36 + Scintilla__IndicatorNumbers__HistoryRevertedToOriginDeletion Scintilla__IndicatorNumbers = 37 + Scintilla__IndicatorNumbers__HistorySavedInsertion Scintilla__IndicatorNumbers = 38 + Scintilla__IndicatorNumbers__HistorySavedDeletion Scintilla__IndicatorNumbers = 39 + Scintilla__IndicatorNumbers__HistoryModifiedInsertion Scintilla__IndicatorNumbers = 40 + Scintilla__IndicatorNumbers__HistoryModifiedDeletion Scintilla__IndicatorNumbers = 41 + Scintilla__IndicatorNumbers__HistoryRevertedToModifiedInsertion Scintilla__IndicatorNumbers = 42 + Scintilla__IndicatorNumbers__HistoryRevertedToModifiedDeletion Scintilla__IndicatorNumbers = 43 + Scintilla__IndicatorNumbers__Max Scintilla__IndicatorNumbers = 43 +) + +type Scintilla__IndicValue int + +const ( + Scintilla__Bit Scintilla__IndicValue = 16777216 + Scintilla__Mask Scintilla__IndicValue = 16777215 +) + +type Scintilla__IndicFlag int + +const ( + Scintilla__IndicFlag__None Scintilla__IndicFlag = 0 + Scintilla__IndicFlag__ValueFore Scintilla__IndicFlag = 1 +) + +type Scintilla__AutoCompleteOption int + +const ( + Scintilla__AutoCompleteOption__Normal Scintilla__AutoCompleteOption = 0 + Scintilla__AutoCompleteOption__FixedSize Scintilla__AutoCompleteOption = 1 + Scintilla__AutoCompleteOption__SelectFirstItem Scintilla__AutoCompleteOption = 2 +) + +type Scintilla__IndentView int + +const ( + Scintilla__IndentView__None Scintilla__IndentView = 0 + Scintilla__IndentView__Real Scintilla__IndentView = 1 + Scintilla__IndentView__LookForward Scintilla__IndentView = 2 + Scintilla__IndentView__LookBoth Scintilla__IndentView = 3 +) + +type Scintilla__PrintOption int + +const ( + Scintilla__PrintOption__Normal Scintilla__PrintOption = 0 + Scintilla__PrintOption__InvertLight Scintilla__PrintOption = 1 + Scintilla__PrintOption__BlackOnWhite Scintilla__PrintOption = 2 + Scintilla__PrintOption__ColourOnWhite Scintilla__PrintOption = 3 + Scintilla__PrintOption__ColourOnWhiteDefaultBG Scintilla__PrintOption = 4 + Scintilla__PrintOption__ScreenColours Scintilla__PrintOption = 5 +) + +type Scintilla__FindOption int + +const ( + Scintilla__FindOption__None Scintilla__FindOption = 0 + Scintilla__FindOption__WholeWord Scintilla__FindOption = 2 + Scintilla__FindOption__MatchCase Scintilla__FindOption = 4 + Scintilla__FindOption__WordStart Scintilla__FindOption = 1048576 + Scintilla__FindOption__RegExp Scintilla__FindOption = 2097152 + Scintilla__FindOption__Posix Scintilla__FindOption = 4194304 + Scintilla__FindOption__Cxx11RegEx Scintilla__FindOption = 8388608 +) + +type Scintilla__ChangeHistoryOption int + +const ( + Scintilla__ChangeHistoryOption__Disabled Scintilla__ChangeHistoryOption = 0 + Scintilla__ChangeHistoryOption__Enabled Scintilla__ChangeHistoryOption = 1 + Scintilla__ChangeHistoryOption__Markers Scintilla__ChangeHistoryOption = 2 + Scintilla__ChangeHistoryOption__Indicators Scintilla__ChangeHistoryOption = 4 +) + +type Scintilla__FoldLevel int + +const ( + Scintilla__FoldLevel__None Scintilla__FoldLevel = 0 + Scintilla__FoldLevel__Base Scintilla__FoldLevel = 1024 + Scintilla__FoldLevel__WhiteFlag Scintilla__FoldLevel = 4096 + Scintilla__FoldLevel__HeaderFlag Scintilla__FoldLevel = 8192 + Scintilla__FoldLevel__NumberMask Scintilla__FoldLevel = 4095 +) + +type Scintilla__FoldDisplayTextStyle int + +const ( + Scintilla__FoldDisplayTextStyle__Hidden Scintilla__FoldDisplayTextStyle = 0 + Scintilla__FoldDisplayTextStyle__Standard Scintilla__FoldDisplayTextStyle = 1 + Scintilla__FoldDisplayTextStyle__Boxed Scintilla__FoldDisplayTextStyle = 2 +) + +type Scintilla__FoldAction int + +const ( + Scintilla__Contract Scintilla__FoldAction = 0 + Scintilla__Expand Scintilla__FoldAction = 1 + Scintilla__Toggle Scintilla__FoldAction = 2 + Scintilla__ContractEveryLevel Scintilla__FoldAction = 4 +) + +type Scintilla__AutomaticFold int + +const ( + Scintilla__AutomaticFold__None Scintilla__AutomaticFold = 0 + Scintilla__AutomaticFold__Show Scintilla__AutomaticFold = 1 + Scintilla__AutomaticFold__Click Scintilla__AutomaticFold = 2 + Scintilla__AutomaticFold__Change Scintilla__AutomaticFold = 4 +) + +type Scintilla__FoldFlag int + +const ( + Scintilla__FoldFlag__None Scintilla__FoldFlag = 0 + Scintilla__FoldFlag__LineBeforeExpanded Scintilla__FoldFlag = 2 + Scintilla__FoldFlag__LineBeforeContracted Scintilla__FoldFlag = 4 + Scintilla__FoldFlag__LineAfterExpanded Scintilla__FoldFlag = 8 + Scintilla__FoldFlag__LineAfterContracted Scintilla__FoldFlag = 16 + Scintilla__FoldFlag__LevelNumbers Scintilla__FoldFlag = 64 + Scintilla__FoldFlag__LineState Scintilla__FoldFlag = 128 +) + +type Scintilla__IdleStyling int + +const ( + Scintilla__IdleStyling__None Scintilla__IdleStyling = 0 + Scintilla__IdleStyling__ToVisible Scintilla__IdleStyling = 1 + Scintilla__IdleStyling__AfterVisible Scintilla__IdleStyling = 2 + Scintilla__IdleStyling__All Scintilla__IdleStyling = 3 +) + +type Scintilla__Wrap int + +const ( + Scintilla__Wrap__None Scintilla__Wrap = 0 + Scintilla__Wrap__Word Scintilla__Wrap = 1 + Scintilla__Wrap__Char Scintilla__Wrap = 2 + Scintilla__Wrap__WhiteSpace Scintilla__Wrap = 3 +) + +type Scintilla__WrapVisualFlag int + +const ( + Scintilla__WrapVisualFlag__None Scintilla__WrapVisualFlag = 0 + Scintilla__WrapVisualFlag__End Scintilla__WrapVisualFlag = 1 + Scintilla__WrapVisualFlag__Start Scintilla__WrapVisualFlag = 2 + Scintilla__WrapVisualFlag__Margin Scintilla__WrapVisualFlag = 4 +) + +type Scintilla__WrapVisualLocation int + +const ( + Scintilla__WrapVisualLocation__Default Scintilla__WrapVisualLocation = 0 + Scintilla__WrapVisualLocation__EndByText Scintilla__WrapVisualLocation = 1 + Scintilla__WrapVisualLocation__StartByText Scintilla__WrapVisualLocation = 2 +) + +type Scintilla__WrapIndentMode int + +const ( + Scintilla__Fixed Scintilla__WrapIndentMode = 0 + Scintilla__Same Scintilla__WrapIndentMode = 1 + Scintilla__Indent Scintilla__WrapIndentMode = 2 + Scintilla__DeepIndent Scintilla__WrapIndentMode = 3 +) + +type Scintilla__LineCache int + +const ( + Scintilla__LineCache__None Scintilla__LineCache = 0 + Scintilla__LineCache__Caret Scintilla__LineCache = 1 + Scintilla__LineCache__Page Scintilla__LineCache = 2 + Scintilla__LineCache__Document Scintilla__LineCache = 3 +) + +type Scintilla__PhasesDraw int + +const ( + Scintilla__One Scintilla__PhasesDraw = 0 + Scintilla__Two Scintilla__PhasesDraw = 1 + Scintilla__Multiple Scintilla__PhasesDraw = 2 +) + +type Scintilla__FontQuality int + +const ( + Scintilla__QualityMask Scintilla__FontQuality = 15 + Scintilla__QualityDefault Scintilla__FontQuality = 0 + Scintilla__QualityNonAntialiased Scintilla__FontQuality = 1 + Scintilla__QualityAntialiased Scintilla__FontQuality = 2 + Scintilla__QualityLcdOptimized Scintilla__FontQuality = 3 +) + +type Scintilla__MultiPaste int + +const ( + Scintilla__MultiPaste__Once Scintilla__MultiPaste = 0 + Scintilla__MultiPaste__Each Scintilla__MultiPaste = 1 +) + +type Scintilla__Accessibility int + +const ( + Scintilla__Accessibility__Disabled Scintilla__Accessibility = 0 + Scintilla__Accessibility__Enabled Scintilla__Accessibility = 1 +) + +type Scintilla__EdgeVisualStyle int + +const ( + Scintilla__EdgeVisualStyle__None Scintilla__EdgeVisualStyle = 0 + Scintilla__EdgeVisualStyle__Line Scintilla__EdgeVisualStyle = 1 + Scintilla__EdgeVisualStyle__Background Scintilla__EdgeVisualStyle = 2 + Scintilla__EdgeVisualStyle__MultiLine Scintilla__EdgeVisualStyle = 3 +) + +type Scintilla__PopUp int + +const ( + Scintilla__PopUp__Never Scintilla__PopUp = 0 + Scintilla__PopUp__All Scintilla__PopUp = 1 + Scintilla__PopUp__Text Scintilla__PopUp = 2 +) + +type Scintilla__DocumentOption int + +const ( + Scintilla__DocumentOption__Default Scintilla__DocumentOption = 0 + Scintilla__DocumentOption__StylesNone Scintilla__DocumentOption = 1 + Scintilla__DocumentOption__TextLarge Scintilla__DocumentOption = 256 +) + +type Scintilla__Status int + +const ( + Scintilla__Ok Scintilla__Status = 0 + Scintilla__Failure Scintilla__Status = 1 + Scintilla__BadAlloc Scintilla__Status = 2 + Scintilla__WarnStart Scintilla__Status = 1000 + Scintilla__RegEx Scintilla__Status = 1001 +) + +type Scintilla__VisiblePolicy int + +const ( + Scintilla__VisiblePolicy__Slop Scintilla__VisiblePolicy = 1 + Scintilla__VisiblePolicy__Strict Scintilla__VisiblePolicy = 4 +) + +type Scintilla__CaretPolicy int + +const ( + Scintilla__CaretPolicy__Slop Scintilla__CaretPolicy = 1 + Scintilla__CaretPolicy__Strict Scintilla__CaretPolicy = 4 + Scintilla__CaretPolicy__Jumps Scintilla__CaretPolicy = 16 + Scintilla__CaretPolicy__Even Scintilla__CaretPolicy = 8 +) + +type Scintilla__SelectionMode int + +const ( + Scintilla__SelectionMode__Stream Scintilla__SelectionMode = 0 + Scintilla__SelectionMode__Rectangle Scintilla__SelectionMode = 1 + Scintilla__SelectionMode__Lines Scintilla__SelectionMode = 2 + Scintilla__SelectionMode__Thin Scintilla__SelectionMode = 3 +) + +type Scintilla__CaseInsensitiveBehaviour int + +const ( + Scintilla__RespectCase Scintilla__CaseInsensitiveBehaviour = 0 + Scintilla__IgnoreCase Scintilla__CaseInsensitiveBehaviour = 1 +) + +type Scintilla__MultiAutoComplete int + +const ( + Scintilla__MultiAutoComplete__Once Scintilla__MultiAutoComplete = 0 + Scintilla__MultiAutoComplete__Each Scintilla__MultiAutoComplete = 1 +) + +type Scintilla__Ordering int + +const ( + Scintilla__PreSorted Scintilla__Ordering = 0 + Scintilla__PerformSort Scintilla__Ordering = 1 + Scintilla__Custom Scintilla__Ordering = 2 +) + +type Scintilla__CaretSticky int + +const ( + Scintilla__CaretSticky__Off Scintilla__CaretSticky = 0 + Scintilla__CaretSticky__On Scintilla__CaretSticky = 1 + Scintilla__CaretSticky__WhiteSpace Scintilla__CaretSticky = 2 +) + +type Scintilla__CaretStyle int + +const ( + Scintilla__CaretStyle__Invisible Scintilla__CaretStyle = 0 + Scintilla__CaretStyle__Line Scintilla__CaretStyle = 1 + Scintilla__CaretStyle__Block Scintilla__CaretStyle = 2 + Scintilla__CaretStyle__OverstrikeBar Scintilla__CaretStyle = 0 + Scintilla__CaretStyle__OverstrikeBlock Scintilla__CaretStyle = 16 + Scintilla__CaretStyle__Curses Scintilla__CaretStyle = 32 + Scintilla__CaretStyle__InsMask Scintilla__CaretStyle = 15 + Scintilla__CaretStyle__BlockAfter Scintilla__CaretStyle = 256 +) + +type Scintilla__MarginOption int + +const ( + Scintilla__MarginOption__None Scintilla__MarginOption = 0 + Scintilla__MarginOption__SubLineSelect Scintilla__MarginOption = 1 +) + +type Scintilla__AnnotationVisible int + +const ( + Scintilla__AnnotationVisible__Hidden Scintilla__AnnotationVisible = 0 + Scintilla__AnnotationVisible__Standard Scintilla__AnnotationVisible = 1 + Scintilla__AnnotationVisible__Boxed Scintilla__AnnotationVisible = 2 + Scintilla__AnnotationVisible__Indented Scintilla__AnnotationVisible = 3 +) + +type Scintilla__UndoFlags int + +const ( + Scintilla__UndoFlags__None Scintilla__UndoFlags = 0 + Scintilla__UndoFlags__MayCoalesce Scintilla__UndoFlags = 1 +) + +type Scintilla__VirtualSpace int + +const ( + Scintilla__VirtualSpace__None Scintilla__VirtualSpace = 0 + Scintilla__VirtualSpace__RectangularSelection Scintilla__VirtualSpace = 1 + Scintilla__VirtualSpace__UserAccessible Scintilla__VirtualSpace = 2 + Scintilla__VirtualSpace__NoWrapLineStart Scintilla__VirtualSpace = 4 +) + +type Scintilla__Technology int + +const ( + Scintilla__Technology__Default Scintilla__Technology = 0 + Scintilla__Technology__DirectWrite Scintilla__Technology = 1 + Scintilla__Technology__DirectWriteRetain Scintilla__Technology = 2 + Scintilla__Technology__DirectWriteDC Scintilla__Technology = 3 +) + +type Scintilla__LineEndType int + +const ( + Scintilla__LineEndType__Default Scintilla__LineEndType = 0 + Scintilla__LineEndType__Unicode Scintilla__LineEndType = 1 +) + +type Scintilla__RepresentationAppearance int + +const ( + Scintilla__RepresentationAppearance__Plain Scintilla__RepresentationAppearance = 0 + Scintilla__RepresentationAppearance__Blob Scintilla__RepresentationAppearance = 1 + Scintilla__RepresentationAppearance__Colour Scintilla__RepresentationAppearance = 16 +) + +type Scintilla__EOLAnnotationVisible int + +const ( + Scintilla__EOLAnnotationVisible__Hidden Scintilla__EOLAnnotationVisible = 0 + Scintilla__EOLAnnotationVisible__Standard Scintilla__EOLAnnotationVisible = 1 + Scintilla__EOLAnnotationVisible__Boxed Scintilla__EOLAnnotationVisible = 2 + Scintilla__EOLAnnotationVisible__Stadium Scintilla__EOLAnnotationVisible = 256 + Scintilla__EOLAnnotationVisible__FlatCircle Scintilla__EOLAnnotationVisible = 257 + Scintilla__EOLAnnotationVisible__AngleCircle Scintilla__EOLAnnotationVisible = 258 + Scintilla__EOLAnnotationVisible__CircleFlat Scintilla__EOLAnnotationVisible = 272 + Scintilla__EOLAnnotationVisible__Flats Scintilla__EOLAnnotationVisible = 273 + Scintilla__EOLAnnotationVisible__AngleFlat Scintilla__EOLAnnotationVisible = 274 + Scintilla__EOLAnnotationVisible__CircleAngle Scintilla__EOLAnnotationVisible = 288 + Scintilla__EOLAnnotationVisible__FlatAngle Scintilla__EOLAnnotationVisible = 289 + Scintilla__EOLAnnotationVisible__Angles Scintilla__EOLAnnotationVisible = 290 +) + +type Scintilla__Supports int + +const ( + Scintilla__LineDrawsFinal Scintilla__Supports = 0 + Scintilla__PixelDivisions Scintilla__Supports = 1 + Scintilla__FractionalStrokeWidth Scintilla__Supports = 2 + Scintilla__TranslucentStroke Scintilla__Supports = 3 + Scintilla__PixelModification Scintilla__Supports = 4 + Scintilla__ThreadSafeMeasureWidths Scintilla__Supports = 5 +) + +type Scintilla__LineCharacterIndexType int + +const ( + Scintilla__LineCharacterIndexType__None Scintilla__LineCharacterIndexType = 0 + Scintilla__LineCharacterIndexType__Utf32 Scintilla__LineCharacterIndexType = 1 + Scintilla__LineCharacterIndexType__Utf16 Scintilla__LineCharacterIndexType = 2 +) + +type Scintilla__TypeProperty int + +const ( + Scintilla__Boolean Scintilla__TypeProperty = 0 + Scintilla__Integer Scintilla__TypeProperty = 1 + Scintilla__String Scintilla__TypeProperty = 2 +) + +type Scintilla__ModificationFlags int + +const ( + Scintilla__ModificationFlags__None Scintilla__ModificationFlags = 0 + Scintilla__ModificationFlags__InsertText Scintilla__ModificationFlags = 1 + Scintilla__ModificationFlags__DeleteText Scintilla__ModificationFlags = 2 + Scintilla__ModificationFlags__ChangeStyle Scintilla__ModificationFlags = 4 + Scintilla__ModificationFlags__ChangeFold Scintilla__ModificationFlags = 8 + Scintilla__ModificationFlags__User Scintilla__ModificationFlags = 16 + Scintilla__ModificationFlags__Undo Scintilla__ModificationFlags = 32 + Scintilla__ModificationFlags__Redo Scintilla__ModificationFlags = 64 + Scintilla__ModificationFlags__MultiStepUndoRedo Scintilla__ModificationFlags = 128 + Scintilla__ModificationFlags__LastStepInUndoRedo Scintilla__ModificationFlags = 256 + Scintilla__ModificationFlags__ChangeMarker Scintilla__ModificationFlags = 512 + Scintilla__ModificationFlags__BeforeInsert Scintilla__ModificationFlags = 1024 + Scintilla__ModificationFlags__BeforeDelete Scintilla__ModificationFlags = 2048 + Scintilla__ModificationFlags__MultilineUndoRedo Scintilla__ModificationFlags = 4096 + Scintilla__ModificationFlags__StartAction Scintilla__ModificationFlags = 8192 + Scintilla__ModificationFlags__ChangeIndicator Scintilla__ModificationFlags = 16384 + Scintilla__ModificationFlags__ChangeLineState Scintilla__ModificationFlags = 32768 + Scintilla__ModificationFlags__ChangeMargin Scintilla__ModificationFlags = 65536 + Scintilla__ModificationFlags__ChangeAnnotation Scintilla__ModificationFlags = 131072 + Scintilla__ModificationFlags__Container Scintilla__ModificationFlags = 262144 + Scintilla__ModificationFlags__LexerState Scintilla__ModificationFlags = 524288 + Scintilla__ModificationFlags__InsertCheck Scintilla__ModificationFlags = 1048576 + Scintilla__ModificationFlags__ChangeTabStops Scintilla__ModificationFlags = 2097152 + Scintilla__ModificationFlags__ChangeEOLAnnotation Scintilla__ModificationFlags = 4194304 + Scintilla__ModificationFlags__EventMaskAll Scintilla__ModificationFlags = 8388607 +) + +type Scintilla__Update int + +const ( + Scintilla__Update__None Scintilla__Update = 0 + Scintilla__Update__Content Scintilla__Update = 1 + Scintilla__Update__Selection Scintilla__Update = 2 + Scintilla__Update__VScroll Scintilla__Update = 4 + Scintilla__Update__HScroll Scintilla__Update = 8 +) + +type Scintilla__FocusChange int + +const ( + Scintilla__Change Scintilla__FocusChange = 768 + Scintilla__Setfocus Scintilla__FocusChange = 512 + Scintilla__Killfocus Scintilla__FocusChange = 256 +) + +type Scintilla__Keys int + +const ( + Scintilla__Keys__Down Scintilla__Keys = 300 + Scintilla__Keys__Up Scintilla__Keys = 301 + Scintilla__Keys__Left Scintilla__Keys = 302 + Scintilla__Keys__Right Scintilla__Keys = 303 + Scintilla__Keys__Home Scintilla__Keys = 304 + Scintilla__Keys__End Scintilla__Keys = 305 + Scintilla__Keys__Prior Scintilla__Keys = 306 + Scintilla__Keys__Next Scintilla__Keys = 307 + Scintilla__Keys__Delete Scintilla__Keys = 308 + Scintilla__Keys__Insert Scintilla__Keys = 309 + Scintilla__Keys__Escape Scintilla__Keys = 7 + Scintilla__Keys__Back Scintilla__Keys = 8 + Scintilla__Keys__Tab Scintilla__Keys = 9 + Scintilla__Keys__Return Scintilla__Keys = 13 + Scintilla__Keys__Add Scintilla__Keys = 310 + Scintilla__Keys__Subtract Scintilla__Keys = 311 + Scintilla__Keys__Divide Scintilla__Keys = 312 + Scintilla__Keys__Win Scintilla__Keys = 313 + Scintilla__Keys__RWin Scintilla__Keys = 314 + Scintilla__Keys__Menu Scintilla__Keys = 315 +) + +type Scintilla__KeyMod int + +const ( + Scintilla__Norm Scintilla__KeyMod = 0 + Scintilla__Shift Scintilla__KeyMod = 1 + Scintilla__Ctrl Scintilla__KeyMod = 2 + Scintilla__Alt Scintilla__KeyMod = 4 + Scintilla__Super Scintilla__KeyMod = 8 + Scintilla__Meta Scintilla__KeyMod = 16 +) + +type Scintilla__CompletionMethods int + +const ( + Scintilla__CompletionMethods__FillUp Scintilla__CompletionMethods = 1 + Scintilla__CompletionMethods__DoubleClick Scintilla__CompletionMethods = 2 + Scintilla__CompletionMethods__Tab Scintilla__CompletionMethods = 3 + Scintilla__CompletionMethods__Newline Scintilla__CompletionMethods = 4 + Scintilla__CompletionMethods__Command Scintilla__CompletionMethods = 5 + Scintilla__CompletionMethods__SingleChoice Scintilla__CompletionMethods = 6 +) + +type Scintilla__CharacterSource int + +const ( + Scintilla__DirectInput Scintilla__CharacterSource = 0 + Scintilla__TentativeInput Scintilla__CharacterSource = 1 + Scintilla__ImeResult Scintilla__CharacterSource = 2 +) + +type Scintilla__Bidirectional int + +const ( + Scintilla__Bidirectional__Disabled Scintilla__Bidirectional = 0 + Scintilla__Bidirectional__L2R Scintilla__Bidirectional = 1 + Scintilla__Bidirectional__R2L Scintilla__Bidirectional = 2 +) + +type Scintilla__Notification int + +const ( + Scintilla__Notification__StyleNeeded Scintilla__Notification = 2000 + Scintilla__Notification__CharAdded Scintilla__Notification = 2001 + Scintilla__Notification__SavePointReached Scintilla__Notification = 2002 + Scintilla__Notification__SavePointLeft Scintilla__Notification = 2003 + Scintilla__Notification__ModifyAttemptRO Scintilla__Notification = 2004 + Scintilla__Notification__Key Scintilla__Notification = 2005 + Scintilla__Notification__DoubleClick Scintilla__Notification = 2006 + Scintilla__Notification__UpdateUI Scintilla__Notification = 2007 + Scintilla__Notification__Modified Scintilla__Notification = 2008 + Scintilla__Notification__MacroRecord Scintilla__Notification = 2009 + Scintilla__Notification__MarginClick Scintilla__Notification = 2010 + Scintilla__Notification__NeedShown Scintilla__Notification = 2011 + Scintilla__Notification__Painted Scintilla__Notification = 2013 + Scintilla__Notification__UserListSelection Scintilla__Notification = 2014 + Scintilla__Notification__URIDropped Scintilla__Notification = 2015 + Scintilla__Notification__DwellStart Scintilla__Notification = 2016 + Scintilla__Notification__DwellEnd Scintilla__Notification = 2017 + Scintilla__Notification__Zoom Scintilla__Notification = 2018 + Scintilla__Notification__HotSpotClick Scintilla__Notification = 2019 + Scintilla__Notification__HotSpotDoubleClick Scintilla__Notification = 2020 + Scintilla__Notification__CallTipClick Scintilla__Notification = 2021 + Scintilla__Notification__AutoCSelection Scintilla__Notification = 2022 + Scintilla__Notification__IndicatorClick Scintilla__Notification = 2023 + Scintilla__Notification__IndicatorRelease Scintilla__Notification = 2024 + Scintilla__Notification__AutoCCancelled Scintilla__Notification = 2025 + Scintilla__Notification__AutoCCharDeleted Scintilla__Notification = 2026 + Scintilla__Notification__HotSpotReleaseClick Scintilla__Notification = 2027 + Scintilla__Notification__FocusIn Scintilla__Notification = 2028 + Scintilla__Notification__FocusOut Scintilla__Notification = 2029 + Scintilla__Notification__AutoCCompleted Scintilla__Notification = 2030 + Scintilla__Notification__MarginRightClick Scintilla__Notification = 2031 + Scintilla__Notification__AutoCSelectionChange Scintilla__Notification = 2032 +) + +type Scintilla__Message int + +const ( + Scintilla__Message__AddText Scintilla__Message = 2001 + Scintilla__Message__AddStyledText Scintilla__Message = 2002 + Scintilla__Message__InsertText Scintilla__Message = 2003 + Scintilla__Message__ChangeInsertion Scintilla__Message = 2672 + Scintilla__Message__ClearAll Scintilla__Message = 2004 + Scintilla__Message__DeleteRange Scintilla__Message = 2645 + Scintilla__Message__ClearDocumentStyle Scintilla__Message = 2005 + Scintilla__Message__GetLength Scintilla__Message = 2006 + Scintilla__Message__GetCharAt Scintilla__Message = 2007 + Scintilla__Message__GetCurrentPos Scintilla__Message = 2008 + Scintilla__Message__GetAnchor Scintilla__Message = 2009 + Scintilla__Message__GetStyleAt Scintilla__Message = 2010 + Scintilla__Message__GetStyleIndexAt Scintilla__Message = 2038 + Scintilla__Message__Redo Scintilla__Message = 2011 + Scintilla__Message__SetUndoCollection Scintilla__Message = 2012 + Scintilla__Message__SelectAll Scintilla__Message = 2013 + Scintilla__Message__SetSavePoint Scintilla__Message = 2014 + Scintilla__Message__GetStyledText Scintilla__Message = 2015 + Scintilla__Message__GetStyledTextFull Scintilla__Message = 2778 + Scintilla__Message__CanRedo Scintilla__Message = 2016 + Scintilla__Message__MarkerLineFromHandle Scintilla__Message = 2017 + Scintilla__Message__MarkerDeleteHandle Scintilla__Message = 2018 + Scintilla__Message__MarkerHandleFromLine Scintilla__Message = 2732 + Scintilla__Message__MarkerNumberFromLine Scintilla__Message = 2733 + Scintilla__Message__GetUndoCollection Scintilla__Message = 2019 + Scintilla__Message__GetViewWS Scintilla__Message = 2020 + Scintilla__Message__SetViewWS Scintilla__Message = 2021 + Scintilla__Message__GetTabDrawMode Scintilla__Message = 2698 + Scintilla__Message__SetTabDrawMode Scintilla__Message = 2699 + Scintilla__Message__PositionFromPoint Scintilla__Message = 2022 + Scintilla__Message__PositionFromPointClose Scintilla__Message = 2023 + Scintilla__Message__GotoLine Scintilla__Message = 2024 + Scintilla__Message__GotoPos Scintilla__Message = 2025 + Scintilla__Message__SetAnchor Scintilla__Message = 2026 + Scintilla__Message__GetCurLine Scintilla__Message = 2027 + Scintilla__Message__GetEndStyled Scintilla__Message = 2028 + Scintilla__Message__ConvertEOLs Scintilla__Message = 2029 + Scintilla__Message__GetEOLMode Scintilla__Message = 2030 + Scintilla__Message__SetEOLMode Scintilla__Message = 2031 + Scintilla__Message__StartStyling Scintilla__Message = 2032 + Scintilla__Message__SetStyling Scintilla__Message = 2033 + Scintilla__Message__GetBufferedDraw Scintilla__Message = 2034 + Scintilla__Message__SetBufferedDraw Scintilla__Message = 2035 + Scintilla__Message__SetTabWidth Scintilla__Message = 2036 + Scintilla__Message__GetTabWidth Scintilla__Message = 2121 + Scintilla__Message__SetTabMinimumWidth Scintilla__Message = 2724 + Scintilla__Message__GetTabMinimumWidth Scintilla__Message = 2725 + Scintilla__Message__ClearTabStops Scintilla__Message = 2675 + Scintilla__Message__AddTabStop Scintilla__Message = 2676 + Scintilla__Message__GetNextTabStop Scintilla__Message = 2677 + Scintilla__Message__SetCodePage Scintilla__Message = 2037 + Scintilla__Message__SetFontLocale Scintilla__Message = 2760 + Scintilla__Message__GetFontLocale Scintilla__Message = 2761 + Scintilla__Message__GetIMEInteraction Scintilla__Message = 2678 + Scintilla__Message__SetIMEInteraction Scintilla__Message = 2679 + Scintilla__Message__MarkerDefine Scintilla__Message = 2040 + Scintilla__Message__MarkerSetFore Scintilla__Message = 2041 + Scintilla__Message__MarkerSetBack Scintilla__Message = 2042 + Scintilla__Message__MarkerSetBackSelected Scintilla__Message = 2292 + Scintilla__Message__MarkerSetForeTranslucent Scintilla__Message = 2294 + Scintilla__Message__MarkerSetBackTranslucent Scintilla__Message = 2295 + Scintilla__Message__MarkerSetBackSelectedTranslucent Scintilla__Message = 2296 + Scintilla__Message__MarkerSetStrokeWidth Scintilla__Message = 2297 + Scintilla__Message__MarkerEnableHighlight Scintilla__Message = 2293 + Scintilla__Message__MarkerAdd Scintilla__Message = 2043 + Scintilla__Message__MarkerDelete Scintilla__Message = 2044 + Scintilla__Message__MarkerDeleteAll Scintilla__Message = 2045 + Scintilla__Message__MarkerGet Scintilla__Message = 2046 + Scintilla__Message__MarkerNext Scintilla__Message = 2047 + Scintilla__Message__MarkerPrevious Scintilla__Message = 2048 + Scintilla__Message__MarkerDefinePixmap Scintilla__Message = 2049 + Scintilla__Message__MarkerAddSet Scintilla__Message = 2466 + Scintilla__Message__MarkerSetAlpha Scintilla__Message = 2476 + Scintilla__Message__MarkerGetLayer Scintilla__Message = 2734 + Scintilla__Message__MarkerSetLayer Scintilla__Message = 2735 + Scintilla__Message__SetMarginTypeN Scintilla__Message = 2240 + Scintilla__Message__GetMarginTypeN Scintilla__Message = 2241 + Scintilla__Message__SetMarginWidthN Scintilla__Message = 2242 + Scintilla__Message__GetMarginWidthN Scintilla__Message = 2243 + Scintilla__Message__SetMarginMaskN Scintilla__Message = 2244 + Scintilla__Message__GetMarginMaskN Scintilla__Message = 2245 + Scintilla__Message__SetMarginSensitiveN Scintilla__Message = 2246 + Scintilla__Message__GetMarginSensitiveN Scintilla__Message = 2247 + Scintilla__Message__SetMarginCursorN Scintilla__Message = 2248 + Scintilla__Message__GetMarginCursorN Scintilla__Message = 2249 + Scintilla__Message__SetMarginBackN Scintilla__Message = 2250 + Scintilla__Message__GetMarginBackN Scintilla__Message = 2251 + Scintilla__Message__SetMargins Scintilla__Message = 2252 + Scintilla__Message__GetMargins Scintilla__Message = 2253 + Scintilla__Message__StyleClearAll Scintilla__Message = 2050 + Scintilla__Message__StyleSetFore Scintilla__Message = 2051 + Scintilla__Message__StyleSetBack Scintilla__Message = 2052 + Scintilla__Message__StyleSetBold Scintilla__Message = 2053 + Scintilla__Message__StyleSetItalic Scintilla__Message = 2054 + Scintilla__Message__StyleSetSize Scintilla__Message = 2055 + Scintilla__Message__StyleSetFont Scintilla__Message = 2056 + Scintilla__Message__StyleSetEOLFilled Scintilla__Message = 2057 + Scintilla__Message__StyleResetDefault Scintilla__Message = 2058 + Scintilla__Message__StyleSetUnderline Scintilla__Message = 2059 + Scintilla__Message__StyleGetFore Scintilla__Message = 2481 + Scintilla__Message__StyleGetBack Scintilla__Message = 2482 + Scintilla__Message__StyleGetBold Scintilla__Message = 2483 + Scintilla__Message__StyleGetItalic Scintilla__Message = 2484 + Scintilla__Message__StyleGetSize Scintilla__Message = 2485 + Scintilla__Message__StyleGetFont Scintilla__Message = 2486 + Scintilla__Message__StyleGetEOLFilled Scintilla__Message = 2487 + Scintilla__Message__StyleGetUnderline Scintilla__Message = 2488 + Scintilla__Message__StyleGetCase Scintilla__Message = 2489 + Scintilla__Message__StyleGetCharacterSet Scintilla__Message = 2490 + Scintilla__Message__StyleGetVisible Scintilla__Message = 2491 + Scintilla__Message__StyleGetChangeable Scintilla__Message = 2492 + Scintilla__Message__StyleGetHotSpot Scintilla__Message = 2493 + Scintilla__Message__StyleSetCase Scintilla__Message = 2060 + Scintilla__Message__StyleSetSizeFractional Scintilla__Message = 2061 + Scintilla__Message__StyleGetSizeFractional Scintilla__Message = 2062 + Scintilla__Message__StyleSetWeight Scintilla__Message = 2063 + Scintilla__Message__StyleGetWeight Scintilla__Message = 2064 + Scintilla__Message__StyleSetCharacterSet Scintilla__Message = 2066 + Scintilla__Message__StyleSetHotSpot Scintilla__Message = 2409 + Scintilla__Message__StyleSetCheckMonospaced Scintilla__Message = 2254 + Scintilla__Message__StyleGetCheckMonospaced Scintilla__Message = 2255 + Scintilla__Message__StyleSetStretch Scintilla__Message = 2258 + Scintilla__Message__StyleGetStretch Scintilla__Message = 2259 + Scintilla__Message__StyleSetInvisibleRepresentation Scintilla__Message = 2256 + Scintilla__Message__StyleGetInvisibleRepresentation Scintilla__Message = 2257 + Scintilla__Message__SetElementColour Scintilla__Message = 2753 + Scintilla__Message__GetElementColour Scintilla__Message = 2754 + Scintilla__Message__ResetElementColour Scintilla__Message = 2755 + Scintilla__Message__GetElementIsSet Scintilla__Message = 2756 + Scintilla__Message__GetElementAllowsTranslucent Scintilla__Message = 2757 + Scintilla__Message__GetElementBaseColour Scintilla__Message = 2758 + Scintilla__Message__SetSelFore Scintilla__Message = 2067 + Scintilla__Message__SetSelBack Scintilla__Message = 2068 + Scintilla__Message__GetSelAlpha Scintilla__Message = 2477 + Scintilla__Message__SetSelAlpha Scintilla__Message = 2478 + Scintilla__Message__GetSelEOLFilled Scintilla__Message = 2479 + Scintilla__Message__SetSelEOLFilled Scintilla__Message = 2480 + Scintilla__Message__GetSelectionLayer Scintilla__Message = 2762 + Scintilla__Message__SetSelectionLayer Scintilla__Message = 2763 + Scintilla__Message__GetCaretLineLayer Scintilla__Message = 2764 + Scintilla__Message__SetCaretLineLayer Scintilla__Message = 2765 + Scintilla__Message__GetCaretLineHighlightSubLine Scintilla__Message = 2773 + Scintilla__Message__SetCaretLineHighlightSubLine Scintilla__Message = 2774 + Scintilla__Message__SetCaretFore Scintilla__Message = 2069 + Scintilla__Message__AssignCmdKey Scintilla__Message = 2070 + Scintilla__Message__ClearCmdKey Scintilla__Message = 2071 + Scintilla__Message__ClearAllCmdKeys Scintilla__Message = 2072 + Scintilla__Message__SetStylingEx Scintilla__Message = 2073 + Scintilla__Message__StyleSetVisible Scintilla__Message = 2074 + Scintilla__Message__GetCaretPeriod Scintilla__Message = 2075 + Scintilla__Message__SetCaretPeriod Scintilla__Message = 2076 + Scintilla__Message__SetWordChars Scintilla__Message = 2077 + Scintilla__Message__GetWordChars Scintilla__Message = 2646 + Scintilla__Message__SetCharacterCategoryOptimization Scintilla__Message = 2720 + Scintilla__Message__GetCharacterCategoryOptimization Scintilla__Message = 2721 + Scintilla__Message__BeginUndoAction Scintilla__Message = 2078 + Scintilla__Message__EndUndoAction Scintilla__Message = 2079 + Scintilla__Message__GetUndoSequence Scintilla__Message = 2799 + Scintilla__Message__GetUndoActions Scintilla__Message = 2790 + Scintilla__Message__SetUndoSavePoint Scintilla__Message = 2791 + Scintilla__Message__GetUndoSavePoint Scintilla__Message = 2792 + Scintilla__Message__SetUndoDetach Scintilla__Message = 2793 + Scintilla__Message__GetUndoDetach Scintilla__Message = 2794 + Scintilla__Message__SetUndoTentative Scintilla__Message = 2795 + Scintilla__Message__GetUndoTentative Scintilla__Message = 2796 + Scintilla__Message__SetUndoCurrent Scintilla__Message = 2797 + Scintilla__Message__GetUndoCurrent Scintilla__Message = 2798 + Scintilla__Message__PushUndoActionType Scintilla__Message = 2800 + Scintilla__Message__ChangeLastUndoActionText Scintilla__Message = 2801 + Scintilla__Message__GetUndoActionType Scintilla__Message = 2802 + Scintilla__Message__GetUndoActionPosition Scintilla__Message = 2803 + Scintilla__Message__GetUndoActionText Scintilla__Message = 2804 + Scintilla__Message__IndicSetStyle Scintilla__Message = 2080 + Scintilla__Message__IndicGetStyle Scintilla__Message = 2081 + Scintilla__Message__IndicSetFore Scintilla__Message = 2082 + Scintilla__Message__IndicGetFore Scintilla__Message = 2083 + Scintilla__Message__IndicSetUnder Scintilla__Message = 2510 + Scintilla__Message__IndicGetUnder Scintilla__Message = 2511 + Scintilla__Message__IndicSetHoverStyle Scintilla__Message = 2680 + Scintilla__Message__IndicGetHoverStyle Scintilla__Message = 2681 + Scintilla__Message__IndicSetHoverFore Scintilla__Message = 2682 + Scintilla__Message__IndicGetHoverFore Scintilla__Message = 2683 + Scintilla__Message__IndicSetFlags Scintilla__Message = 2684 + Scintilla__Message__IndicGetFlags Scintilla__Message = 2685 + Scintilla__Message__IndicSetStrokeWidth Scintilla__Message = 2751 + Scintilla__Message__IndicGetStrokeWidth Scintilla__Message = 2752 + Scintilla__Message__SetWhitespaceFore Scintilla__Message = 2084 + Scintilla__Message__SetWhitespaceBack Scintilla__Message = 2085 + Scintilla__Message__SetWhitespaceSize Scintilla__Message = 2086 + Scintilla__Message__GetWhitespaceSize Scintilla__Message = 2087 + Scintilla__Message__SetLineState Scintilla__Message = 2092 + Scintilla__Message__GetLineState Scintilla__Message = 2093 + Scintilla__Message__GetMaxLineState Scintilla__Message = 2094 + Scintilla__Message__GetCaretLineVisible Scintilla__Message = 2095 + Scintilla__Message__SetCaretLineVisible Scintilla__Message = 2096 + Scintilla__Message__GetCaretLineBack Scintilla__Message = 2097 + Scintilla__Message__SetCaretLineBack Scintilla__Message = 2098 + Scintilla__Message__GetCaretLineFrame Scintilla__Message = 2704 + Scintilla__Message__SetCaretLineFrame Scintilla__Message = 2705 + Scintilla__Message__StyleSetChangeable Scintilla__Message = 2099 + Scintilla__Message__AutoCShow Scintilla__Message = 2100 + Scintilla__Message__AutoCCancel Scintilla__Message = 2101 + Scintilla__Message__AutoCActive Scintilla__Message = 2102 + Scintilla__Message__AutoCPosStart Scintilla__Message = 2103 + Scintilla__Message__AutoCComplete Scintilla__Message = 2104 + Scintilla__Message__AutoCStops Scintilla__Message = 2105 + Scintilla__Message__AutoCSetSeparator Scintilla__Message = 2106 + Scintilla__Message__AutoCGetSeparator Scintilla__Message = 2107 + Scintilla__Message__AutoCSelect Scintilla__Message = 2108 + Scintilla__Message__AutoCSetCancelAtStart Scintilla__Message = 2110 + Scintilla__Message__AutoCGetCancelAtStart Scintilla__Message = 2111 + Scintilla__Message__AutoCSetFillUps Scintilla__Message = 2112 + Scintilla__Message__AutoCSetChooseSingle Scintilla__Message = 2113 + Scintilla__Message__AutoCGetChooseSingle Scintilla__Message = 2114 + Scintilla__Message__AutoCSetIgnoreCase Scintilla__Message = 2115 + Scintilla__Message__AutoCGetIgnoreCase Scintilla__Message = 2116 + Scintilla__Message__UserListShow Scintilla__Message = 2117 + Scintilla__Message__AutoCSetAutoHide Scintilla__Message = 2118 + Scintilla__Message__AutoCGetAutoHide Scintilla__Message = 2119 + Scintilla__Message__AutoCSetOptions Scintilla__Message = 2638 + Scintilla__Message__AutoCGetOptions Scintilla__Message = 2639 + Scintilla__Message__AutoCSetDropRestOfWord Scintilla__Message = 2270 + Scintilla__Message__AutoCGetDropRestOfWord Scintilla__Message = 2271 + Scintilla__Message__RegisterImage Scintilla__Message = 2405 + Scintilla__Message__ClearRegisteredImages Scintilla__Message = 2408 + Scintilla__Message__AutoCGetTypeSeparator Scintilla__Message = 2285 + Scintilla__Message__AutoCSetTypeSeparator Scintilla__Message = 2286 + Scintilla__Message__AutoCSetMaxWidth Scintilla__Message = 2208 + Scintilla__Message__AutoCGetMaxWidth Scintilla__Message = 2209 + Scintilla__Message__AutoCSetMaxHeight Scintilla__Message = 2210 + Scintilla__Message__AutoCGetMaxHeight Scintilla__Message = 2211 + Scintilla__Message__AutoCSetStyle Scintilla__Message = 2109 + Scintilla__Message__AutoCGetStyle Scintilla__Message = 2120 + Scintilla__Message__SetIndent Scintilla__Message = 2122 + Scintilla__Message__GetIndent Scintilla__Message = 2123 + Scintilla__Message__SetUseTabs Scintilla__Message = 2124 + Scintilla__Message__GetUseTabs Scintilla__Message = 2125 + Scintilla__Message__SetLineIndentation Scintilla__Message = 2126 + Scintilla__Message__GetLineIndentation Scintilla__Message = 2127 + Scintilla__Message__GetLineIndentPosition Scintilla__Message = 2128 + Scintilla__Message__GetColumn Scintilla__Message = 2129 + Scintilla__Message__CountCharacters Scintilla__Message = 2633 + Scintilla__Message__CountCodeUnits Scintilla__Message = 2715 + Scintilla__Message__SetHScrollBar Scintilla__Message = 2130 + Scintilla__Message__GetHScrollBar Scintilla__Message = 2131 + Scintilla__Message__SetIndentationGuides Scintilla__Message = 2132 + Scintilla__Message__GetIndentationGuides Scintilla__Message = 2133 + Scintilla__Message__SetHighlightGuide Scintilla__Message = 2134 + Scintilla__Message__GetHighlightGuide Scintilla__Message = 2135 + Scintilla__Message__GetLineEndPosition Scintilla__Message = 2136 + Scintilla__Message__GetCodePage Scintilla__Message = 2137 + Scintilla__Message__GetCaretFore Scintilla__Message = 2138 + Scintilla__Message__GetReadOnly Scintilla__Message = 2140 + Scintilla__Message__SetCurrentPos Scintilla__Message = 2141 + Scintilla__Message__SetSelectionStart Scintilla__Message = 2142 + Scintilla__Message__GetSelectionStart Scintilla__Message = 2143 + Scintilla__Message__SetSelectionEnd Scintilla__Message = 2144 + Scintilla__Message__GetSelectionEnd Scintilla__Message = 2145 + Scintilla__Message__SetEmptySelection Scintilla__Message = 2556 + Scintilla__Message__SetPrintMagnification Scintilla__Message = 2146 + Scintilla__Message__GetPrintMagnification Scintilla__Message = 2147 + Scintilla__Message__SetPrintColourMode Scintilla__Message = 2148 + Scintilla__Message__GetPrintColourMode Scintilla__Message = 2149 + Scintilla__Message__FindText Scintilla__Message = 2150 + Scintilla__Message__FindTextFull Scintilla__Message = 2196 + Scintilla__Message__FormatRange Scintilla__Message = 2151 + Scintilla__Message__FormatRangeFull Scintilla__Message = 2777 + Scintilla__Message__SetChangeHistory Scintilla__Message = 2780 + Scintilla__Message__GetChangeHistory Scintilla__Message = 2781 + Scintilla__Message__GetFirstVisibleLine Scintilla__Message = 2152 + Scintilla__Message__GetLine Scintilla__Message = 2153 + Scintilla__Message__GetLineCount Scintilla__Message = 2154 + Scintilla__Message__AllocateLines Scintilla__Message = 2089 + Scintilla__Message__SetMarginLeft Scintilla__Message = 2155 + Scintilla__Message__GetMarginLeft Scintilla__Message = 2156 + Scintilla__Message__SetMarginRight Scintilla__Message = 2157 + Scintilla__Message__GetMarginRight Scintilla__Message = 2158 + Scintilla__Message__GetModify Scintilla__Message = 2159 + Scintilla__Message__SetSel Scintilla__Message = 2160 + Scintilla__Message__GetSelText Scintilla__Message = 2161 + Scintilla__Message__GetTextRange Scintilla__Message = 2162 + Scintilla__Message__GetTextRangeFull Scintilla__Message = 2039 + Scintilla__Message__HideSelection Scintilla__Message = 2163 + Scintilla__Message__GetSelectionHidden Scintilla__Message = 2088 + Scintilla__Message__PointXFromPosition Scintilla__Message = 2164 + Scintilla__Message__PointYFromPosition Scintilla__Message = 2165 + Scintilla__Message__LineFromPosition Scintilla__Message = 2166 + Scintilla__Message__PositionFromLine Scintilla__Message = 2167 + Scintilla__Message__LineScroll Scintilla__Message = 2168 + Scintilla__Message__ScrollCaret Scintilla__Message = 2169 + Scintilla__Message__ScrollRange Scintilla__Message = 2569 + Scintilla__Message__ReplaceSel Scintilla__Message = 2170 + Scintilla__Message__SetReadOnly Scintilla__Message = 2171 + Scintilla__Message__Null Scintilla__Message = 2172 + Scintilla__Message__CanPaste Scintilla__Message = 2173 + Scintilla__Message__CanUndo Scintilla__Message = 2174 + Scintilla__Message__EmptyUndoBuffer Scintilla__Message = 2175 + Scintilla__Message__Undo Scintilla__Message = 2176 + Scintilla__Message__Cut Scintilla__Message = 2177 + Scintilla__Message__Copy Scintilla__Message = 2178 + Scintilla__Message__Paste Scintilla__Message = 2179 + Scintilla__Message__Clear Scintilla__Message = 2180 + Scintilla__Message__SetText Scintilla__Message = 2181 + Scintilla__Message__GetText Scintilla__Message = 2182 + Scintilla__Message__GetTextLength Scintilla__Message = 2183 + Scintilla__Message__GetDirectFunction Scintilla__Message = 2184 + Scintilla__Message__GetDirectStatusFunction Scintilla__Message = 2772 + Scintilla__Message__GetDirectPointer Scintilla__Message = 2185 + Scintilla__Message__SetOvertype Scintilla__Message = 2186 + Scintilla__Message__GetOvertype Scintilla__Message = 2187 + Scintilla__Message__SetCaretWidth Scintilla__Message = 2188 + Scintilla__Message__GetCaretWidth Scintilla__Message = 2189 + Scintilla__Message__SetTargetStart Scintilla__Message = 2190 + Scintilla__Message__GetTargetStart Scintilla__Message = 2191 + Scintilla__Message__SetTargetStartVirtualSpace Scintilla__Message = 2728 + Scintilla__Message__GetTargetStartVirtualSpace Scintilla__Message = 2729 + Scintilla__Message__SetTargetEnd Scintilla__Message = 2192 + Scintilla__Message__GetTargetEnd Scintilla__Message = 2193 + Scintilla__Message__SetTargetEndVirtualSpace Scintilla__Message = 2730 + Scintilla__Message__GetTargetEndVirtualSpace Scintilla__Message = 2731 + Scintilla__Message__SetTargetRange Scintilla__Message = 2686 + Scintilla__Message__GetTargetText Scintilla__Message = 2687 + Scintilla__Message__TargetFromSelection Scintilla__Message = 2287 + Scintilla__Message__TargetWholeDocument Scintilla__Message = 2690 + Scintilla__Message__ReplaceTarget Scintilla__Message = 2194 + Scintilla__Message__ReplaceTargetRE Scintilla__Message = 2195 + Scintilla__Message__ReplaceTargetMinimal Scintilla__Message = 2779 + Scintilla__Message__SearchInTarget Scintilla__Message = 2197 + Scintilla__Message__SetSearchFlags Scintilla__Message = 2198 + Scintilla__Message__GetSearchFlags Scintilla__Message = 2199 + Scintilla__Message__CallTipShow Scintilla__Message = 2200 + Scintilla__Message__CallTipCancel Scintilla__Message = 2201 + Scintilla__Message__CallTipActive Scintilla__Message = 2202 + Scintilla__Message__CallTipPosStart Scintilla__Message = 2203 + Scintilla__Message__CallTipSetPosStart Scintilla__Message = 2214 + Scintilla__Message__CallTipSetHlt Scintilla__Message = 2204 + Scintilla__Message__CallTipSetBack Scintilla__Message = 2205 + Scintilla__Message__CallTipSetFore Scintilla__Message = 2206 + Scintilla__Message__CallTipSetForeHlt Scintilla__Message = 2207 + Scintilla__Message__CallTipUseStyle Scintilla__Message = 2212 + Scintilla__Message__CallTipSetPosition Scintilla__Message = 2213 + Scintilla__Message__VisibleFromDocLine Scintilla__Message = 2220 + Scintilla__Message__DocLineFromVisible Scintilla__Message = 2221 + Scintilla__Message__WrapCount Scintilla__Message = 2235 + Scintilla__Message__SetFoldLevel Scintilla__Message = 2222 + Scintilla__Message__GetFoldLevel Scintilla__Message = 2223 + Scintilla__Message__GetLastChild Scintilla__Message = 2224 + Scintilla__Message__GetFoldParent Scintilla__Message = 2225 + Scintilla__Message__ShowLines Scintilla__Message = 2226 + Scintilla__Message__HideLines Scintilla__Message = 2227 + Scintilla__Message__GetLineVisible Scintilla__Message = 2228 + Scintilla__Message__GetAllLinesVisible Scintilla__Message = 2236 + Scintilla__Message__SetFoldExpanded Scintilla__Message = 2229 + Scintilla__Message__GetFoldExpanded Scintilla__Message = 2230 + Scintilla__Message__ToggleFold Scintilla__Message = 2231 + Scintilla__Message__ToggleFoldShowText Scintilla__Message = 2700 + Scintilla__Message__FoldDisplayTextSetStyle Scintilla__Message = 2701 + Scintilla__Message__FoldDisplayTextGetStyle Scintilla__Message = 2707 + Scintilla__Message__SetDefaultFoldDisplayText Scintilla__Message = 2722 + Scintilla__Message__GetDefaultFoldDisplayText Scintilla__Message = 2723 + Scintilla__Message__FoldLine Scintilla__Message = 2237 + Scintilla__Message__FoldChildren Scintilla__Message = 2238 + Scintilla__Message__ExpandChildren Scintilla__Message = 2239 + Scintilla__Message__FoldAll Scintilla__Message = 2662 + Scintilla__Message__EnsureVisible Scintilla__Message = 2232 + Scintilla__Message__SetAutomaticFold Scintilla__Message = 2663 + Scintilla__Message__GetAutomaticFold Scintilla__Message = 2664 + Scintilla__Message__SetFoldFlags Scintilla__Message = 2233 + Scintilla__Message__EnsureVisibleEnforcePolicy Scintilla__Message = 2234 + Scintilla__Message__SetTabIndents Scintilla__Message = 2260 + Scintilla__Message__GetTabIndents Scintilla__Message = 2261 + Scintilla__Message__SetBackSpaceUnIndents Scintilla__Message = 2262 + Scintilla__Message__GetBackSpaceUnIndents Scintilla__Message = 2263 + Scintilla__Message__SetMouseDwellTime Scintilla__Message = 2264 + Scintilla__Message__GetMouseDwellTime Scintilla__Message = 2265 + Scintilla__Message__WordStartPosition Scintilla__Message = 2266 + Scintilla__Message__WordEndPosition Scintilla__Message = 2267 + Scintilla__Message__IsRangeWord Scintilla__Message = 2691 + Scintilla__Message__SetIdleStyling Scintilla__Message = 2692 + Scintilla__Message__GetIdleStyling Scintilla__Message = 2693 + Scintilla__Message__SetWrapMode Scintilla__Message = 2268 + Scintilla__Message__GetWrapMode Scintilla__Message = 2269 + Scintilla__Message__SetWrapVisualFlags Scintilla__Message = 2460 + Scintilla__Message__GetWrapVisualFlags Scintilla__Message = 2461 + Scintilla__Message__SetWrapVisualFlagsLocation Scintilla__Message = 2462 + Scintilla__Message__GetWrapVisualFlagsLocation Scintilla__Message = 2463 + Scintilla__Message__SetWrapStartIndent Scintilla__Message = 2464 + Scintilla__Message__GetWrapStartIndent Scintilla__Message = 2465 + Scintilla__Message__SetWrapIndentMode Scintilla__Message = 2472 + Scintilla__Message__GetWrapIndentMode Scintilla__Message = 2473 + Scintilla__Message__SetLayoutCache Scintilla__Message = 2272 + Scintilla__Message__GetLayoutCache Scintilla__Message = 2273 + Scintilla__Message__SetScrollWidth Scintilla__Message = 2274 + Scintilla__Message__GetScrollWidth Scintilla__Message = 2275 + Scintilla__Message__SetScrollWidthTracking Scintilla__Message = 2516 + Scintilla__Message__GetScrollWidthTracking Scintilla__Message = 2517 + Scintilla__Message__TextWidth Scintilla__Message = 2276 + Scintilla__Message__SetEndAtLastLine Scintilla__Message = 2277 + Scintilla__Message__GetEndAtLastLine Scintilla__Message = 2278 + Scintilla__Message__TextHeight Scintilla__Message = 2279 + Scintilla__Message__SetVScrollBar Scintilla__Message = 2280 + Scintilla__Message__GetVScrollBar Scintilla__Message = 2281 + Scintilla__Message__AppendText Scintilla__Message = 2282 + Scintilla__Message__GetPhasesDraw Scintilla__Message = 2673 + Scintilla__Message__SetPhasesDraw Scintilla__Message = 2674 + Scintilla__Message__SetFontQuality Scintilla__Message = 2611 + Scintilla__Message__GetFontQuality Scintilla__Message = 2612 + Scintilla__Message__SetFirstVisibleLine Scintilla__Message = 2613 + Scintilla__Message__SetMultiPaste Scintilla__Message = 2614 + Scintilla__Message__GetMultiPaste Scintilla__Message = 2615 + Scintilla__Message__GetTag Scintilla__Message = 2616 + Scintilla__Message__LinesJoin Scintilla__Message = 2288 + Scintilla__Message__LinesSplit Scintilla__Message = 2289 + Scintilla__Message__SetFoldMarginColour Scintilla__Message = 2290 + Scintilla__Message__SetFoldMarginHiColour Scintilla__Message = 2291 + Scintilla__Message__SetAccessibility Scintilla__Message = 2702 + Scintilla__Message__GetAccessibility Scintilla__Message = 2703 + Scintilla__Message__LineDown Scintilla__Message = 2300 + Scintilla__Message__LineDownExtend Scintilla__Message = 2301 + Scintilla__Message__LineUp Scintilla__Message = 2302 + Scintilla__Message__LineUpExtend Scintilla__Message = 2303 + Scintilla__Message__CharLeft Scintilla__Message = 2304 + Scintilla__Message__CharLeftExtend Scintilla__Message = 2305 + Scintilla__Message__CharRight Scintilla__Message = 2306 + Scintilla__Message__CharRightExtend Scintilla__Message = 2307 + Scintilla__Message__WordLeft Scintilla__Message = 2308 + Scintilla__Message__WordLeftExtend Scintilla__Message = 2309 + Scintilla__Message__WordRight Scintilla__Message = 2310 + Scintilla__Message__WordRightExtend Scintilla__Message = 2311 + Scintilla__Message__Home Scintilla__Message = 2312 + Scintilla__Message__HomeExtend Scintilla__Message = 2313 + Scintilla__Message__LineEnd Scintilla__Message = 2314 + Scintilla__Message__LineEndExtend Scintilla__Message = 2315 + Scintilla__Message__DocumentStart Scintilla__Message = 2316 + Scintilla__Message__DocumentStartExtend Scintilla__Message = 2317 + Scintilla__Message__DocumentEnd Scintilla__Message = 2318 + Scintilla__Message__DocumentEndExtend Scintilla__Message = 2319 + Scintilla__Message__PageUp Scintilla__Message = 2320 + Scintilla__Message__PageUpExtend Scintilla__Message = 2321 + Scintilla__Message__PageDown Scintilla__Message = 2322 + Scintilla__Message__PageDownExtend Scintilla__Message = 2323 + Scintilla__Message__EditToggleOvertype Scintilla__Message = 2324 + Scintilla__Message__Cancel Scintilla__Message = 2325 + Scintilla__Message__DeleteBack Scintilla__Message = 2326 + Scintilla__Message__Tab Scintilla__Message = 2327 + Scintilla__Message__LineIndent Scintilla__Message = 2813 + Scintilla__Message__BackTab Scintilla__Message = 2328 + Scintilla__Message__LineDedent Scintilla__Message = 2814 + Scintilla__Message__NewLine Scintilla__Message = 2329 + Scintilla__Message__FormFeed Scintilla__Message = 2330 + Scintilla__Message__VCHome Scintilla__Message = 2331 + Scintilla__Message__VCHomeExtend Scintilla__Message = 2332 + Scintilla__Message__ZoomIn Scintilla__Message = 2333 + Scintilla__Message__ZoomOut Scintilla__Message = 2334 + Scintilla__Message__DelWordLeft Scintilla__Message = 2335 + Scintilla__Message__DelWordRight Scintilla__Message = 2336 + Scintilla__Message__DelWordRightEnd Scintilla__Message = 2518 + Scintilla__Message__LineCut Scintilla__Message = 2337 + Scintilla__Message__LineDelete Scintilla__Message = 2338 + Scintilla__Message__LineTranspose Scintilla__Message = 2339 + Scintilla__Message__LineReverse Scintilla__Message = 2354 + Scintilla__Message__LineDuplicate Scintilla__Message = 2404 + Scintilla__Message__LowerCase Scintilla__Message = 2340 + Scintilla__Message__UpperCase Scintilla__Message = 2341 + Scintilla__Message__LineScrollDown Scintilla__Message = 2342 + Scintilla__Message__LineScrollUp Scintilla__Message = 2343 + Scintilla__Message__DeleteBackNotLine Scintilla__Message = 2344 + Scintilla__Message__HomeDisplay Scintilla__Message = 2345 + Scintilla__Message__HomeDisplayExtend Scintilla__Message = 2346 + Scintilla__Message__LineEndDisplay Scintilla__Message = 2347 + Scintilla__Message__LineEndDisplayExtend Scintilla__Message = 2348 + Scintilla__Message__HomeWrap Scintilla__Message = 2349 + Scintilla__Message__HomeWrapExtend Scintilla__Message = 2450 + Scintilla__Message__LineEndWrap Scintilla__Message = 2451 + Scintilla__Message__LineEndWrapExtend Scintilla__Message = 2452 + Scintilla__Message__VCHomeWrap Scintilla__Message = 2453 + Scintilla__Message__VCHomeWrapExtend Scintilla__Message = 2454 + Scintilla__Message__LineCopy Scintilla__Message = 2455 + Scintilla__Message__MoveCaretInsideView Scintilla__Message = 2401 + Scintilla__Message__LineLength Scintilla__Message = 2350 + Scintilla__Message__BraceHighlight Scintilla__Message = 2351 + Scintilla__Message__BraceHighlightIndicator Scintilla__Message = 2498 + Scintilla__Message__BraceBadLight Scintilla__Message = 2352 + Scintilla__Message__BraceBadLightIndicator Scintilla__Message = 2499 + Scintilla__Message__BraceMatch Scintilla__Message = 2353 + Scintilla__Message__BraceMatchNext Scintilla__Message = 2369 + Scintilla__Message__GetViewEOL Scintilla__Message = 2355 + Scintilla__Message__SetViewEOL Scintilla__Message = 2356 + Scintilla__Message__GetDocPointer Scintilla__Message = 2357 + Scintilla__Message__SetDocPointer Scintilla__Message = 2358 + Scintilla__Message__SetModEventMask Scintilla__Message = 2359 + Scintilla__Message__GetEdgeColumn Scintilla__Message = 2360 + Scintilla__Message__SetEdgeColumn Scintilla__Message = 2361 + Scintilla__Message__GetEdgeMode Scintilla__Message = 2362 + Scintilla__Message__SetEdgeMode Scintilla__Message = 2363 + Scintilla__Message__GetEdgeColour Scintilla__Message = 2364 + Scintilla__Message__SetEdgeColour Scintilla__Message = 2365 + Scintilla__Message__MultiEdgeAddLine Scintilla__Message = 2694 + Scintilla__Message__MultiEdgeClearAll Scintilla__Message = 2695 + Scintilla__Message__GetMultiEdgeColumn Scintilla__Message = 2749 + Scintilla__Message__SearchAnchor Scintilla__Message = 2366 + Scintilla__Message__SearchNext Scintilla__Message = 2367 + Scintilla__Message__SearchPrev Scintilla__Message = 2368 + Scintilla__Message__LinesOnScreen Scintilla__Message = 2370 + Scintilla__Message__UsePopUp Scintilla__Message = 2371 + Scintilla__Message__SelectionIsRectangle Scintilla__Message = 2372 + Scintilla__Message__SetZoom Scintilla__Message = 2373 + Scintilla__Message__GetZoom Scintilla__Message = 2374 + Scintilla__Message__CreateDocument Scintilla__Message = 2375 + Scintilla__Message__AddRefDocument Scintilla__Message = 2376 + Scintilla__Message__ReleaseDocument Scintilla__Message = 2377 + Scintilla__Message__GetDocumentOptions Scintilla__Message = 2379 + Scintilla__Message__GetModEventMask Scintilla__Message = 2378 + Scintilla__Message__SetCommandEvents Scintilla__Message = 2717 + Scintilla__Message__GetCommandEvents Scintilla__Message = 2718 + Scintilla__Message__SetFocus Scintilla__Message = 2380 + Scintilla__Message__GetFocus Scintilla__Message = 2381 + Scintilla__Message__SetStatus Scintilla__Message = 2382 + Scintilla__Message__GetStatus Scintilla__Message = 2383 + Scintilla__Message__SetMouseDownCaptures Scintilla__Message = 2384 + Scintilla__Message__GetMouseDownCaptures Scintilla__Message = 2385 + Scintilla__Message__SetMouseWheelCaptures Scintilla__Message = 2696 + Scintilla__Message__GetMouseWheelCaptures Scintilla__Message = 2697 + Scintilla__Message__SetCursor Scintilla__Message = 2386 + Scintilla__Message__GetCursor Scintilla__Message = 2387 + Scintilla__Message__SetControlCharSymbol Scintilla__Message = 2388 + Scintilla__Message__GetControlCharSymbol Scintilla__Message = 2389 + Scintilla__Message__WordPartLeft Scintilla__Message = 2390 + Scintilla__Message__WordPartLeftExtend Scintilla__Message = 2391 + Scintilla__Message__WordPartRight Scintilla__Message = 2392 + Scintilla__Message__WordPartRightExtend Scintilla__Message = 2393 + Scintilla__Message__SetVisiblePolicy Scintilla__Message = 2394 + Scintilla__Message__DelLineLeft Scintilla__Message = 2395 + Scintilla__Message__DelLineRight Scintilla__Message = 2396 + Scintilla__Message__SetXOffset Scintilla__Message = 2397 + Scintilla__Message__GetXOffset Scintilla__Message = 2398 + Scintilla__Message__ChooseCaretX Scintilla__Message = 2399 + Scintilla__Message__GrabFocus Scintilla__Message = 2400 + Scintilla__Message__SetXCaretPolicy Scintilla__Message = 2402 + Scintilla__Message__SetYCaretPolicy Scintilla__Message = 2403 + Scintilla__Message__SetPrintWrapMode Scintilla__Message = 2406 + Scintilla__Message__GetPrintWrapMode Scintilla__Message = 2407 + Scintilla__Message__SetHotspotActiveFore Scintilla__Message = 2410 + Scintilla__Message__GetHotspotActiveFore Scintilla__Message = 2494 + Scintilla__Message__SetHotspotActiveBack Scintilla__Message = 2411 + Scintilla__Message__GetHotspotActiveBack Scintilla__Message = 2495 + Scintilla__Message__SetHotspotActiveUnderline Scintilla__Message = 2412 + Scintilla__Message__GetHotspotActiveUnderline Scintilla__Message = 2496 + Scintilla__Message__SetHotspotSingleLine Scintilla__Message = 2421 + Scintilla__Message__GetHotspotSingleLine Scintilla__Message = 2497 + Scintilla__Message__ParaDown Scintilla__Message = 2413 + Scintilla__Message__ParaDownExtend Scintilla__Message = 2414 + Scintilla__Message__ParaUp Scintilla__Message = 2415 + Scintilla__Message__ParaUpExtend Scintilla__Message = 2416 + Scintilla__Message__PositionBefore Scintilla__Message = 2417 + Scintilla__Message__PositionAfter Scintilla__Message = 2418 + Scintilla__Message__PositionRelative Scintilla__Message = 2670 + Scintilla__Message__PositionRelativeCodeUnits Scintilla__Message = 2716 + Scintilla__Message__CopyRange Scintilla__Message = 2419 + Scintilla__Message__CopyText Scintilla__Message = 2420 + Scintilla__Message__SetSelectionMode Scintilla__Message = 2422 + Scintilla__Message__ChangeSelectionMode Scintilla__Message = 2659 + Scintilla__Message__GetSelectionMode Scintilla__Message = 2423 + Scintilla__Message__SetMoveExtendsSelection Scintilla__Message = 2719 + Scintilla__Message__GetMoveExtendsSelection Scintilla__Message = 2706 + Scintilla__Message__GetLineSelStartPosition Scintilla__Message = 2424 + Scintilla__Message__GetLineSelEndPosition Scintilla__Message = 2425 + Scintilla__Message__LineDownRectExtend Scintilla__Message = 2426 + Scintilla__Message__LineUpRectExtend Scintilla__Message = 2427 + Scintilla__Message__CharLeftRectExtend Scintilla__Message = 2428 + Scintilla__Message__CharRightRectExtend Scintilla__Message = 2429 + Scintilla__Message__HomeRectExtend Scintilla__Message = 2430 + Scintilla__Message__VCHomeRectExtend Scintilla__Message = 2431 + Scintilla__Message__LineEndRectExtend Scintilla__Message = 2432 + Scintilla__Message__PageUpRectExtend Scintilla__Message = 2433 + Scintilla__Message__PageDownRectExtend Scintilla__Message = 2434 + Scintilla__Message__StutteredPageUp Scintilla__Message = 2435 + Scintilla__Message__StutteredPageUpExtend Scintilla__Message = 2436 + Scintilla__Message__StutteredPageDown Scintilla__Message = 2437 + Scintilla__Message__StutteredPageDownExtend Scintilla__Message = 2438 + Scintilla__Message__WordLeftEnd Scintilla__Message = 2439 + Scintilla__Message__WordLeftEndExtend Scintilla__Message = 2440 + Scintilla__Message__WordRightEnd Scintilla__Message = 2441 + Scintilla__Message__WordRightEndExtend Scintilla__Message = 2442 + Scintilla__Message__SetWhitespaceChars Scintilla__Message = 2443 + Scintilla__Message__GetWhitespaceChars Scintilla__Message = 2647 + Scintilla__Message__SetPunctuationChars Scintilla__Message = 2648 + Scintilla__Message__GetPunctuationChars Scintilla__Message = 2649 + Scintilla__Message__SetCharsDefault Scintilla__Message = 2444 + Scintilla__Message__AutoCGetCurrent Scintilla__Message = 2445 + Scintilla__Message__AutoCGetCurrentText Scintilla__Message = 2610 + Scintilla__Message__AutoCSetCaseInsensitiveBehaviour Scintilla__Message = 2634 + Scintilla__Message__AutoCGetCaseInsensitiveBehaviour Scintilla__Message = 2635 + Scintilla__Message__AutoCSetMulti Scintilla__Message = 2636 + Scintilla__Message__AutoCGetMulti Scintilla__Message = 2637 + Scintilla__Message__AutoCSetOrder Scintilla__Message = 2660 + Scintilla__Message__AutoCGetOrder Scintilla__Message = 2661 + Scintilla__Message__Allocate Scintilla__Message = 2446 + Scintilla__Message__TargetAsUTF8 Scintilla__Message = 2447 + Scintilla__Message__SetLengthForEncode Scintilla__Message = 2448 + Scintilla__Message__EncodedFromUTF8 Scintilla__Message = 2449 + Scintilla__Message__FindColumn Scintilla__Message = 2456 + Scintilla__Message__GetCaretSticky Scintilla__Message = 2457 + Scintilla__Message__SetCaretSticky Scintilla__Message = 2458 + Scintilla__Message__ToggleCaretSticky Scintilla__Message = 2459 + Scintilla__Message__SetPasteConvertEndings Scintilla__Message = 2467 + Scintilla__Message__GetPasteConvertEndings Scintilla__Message = 2468 + Scintilla__Message__ReplaceRectangular Scintilla__Message = 2771 + Scintilla__Message__SelectionDuplicate Scintilla__Message = 2469 + Scintilla__Message__SetCaretLineBackAlpha Scintilla__Message = 2470 + Scintilla__Message__GetCaretLineBackAlpha Scintilla__Message = 2471 + Scintilla__Message__SetCaretStyle Scintilla__Message = 2512 + Scintilla__Message__GetCaretStyle Scintilla__Message = 2513 + Scintilla__Message__SetIndicatorCurrent Scintilla__Message = 2500 + Scintilla__Message__GetIndicatorCurrent Scintilla__Message = 2501 + Scintilla__Message__SetIndicatorValue Scintilla__Message = 2502 + Scintilla__Message__GetIndicatorValue Scintilla__Message = 2503 + Scintilla__Message__IndicatorFillRange Scintilla__Message = 2504 + Scintilla__Message__IndicatorClearRange Scintilla__Message = 2505 + Scintilla__Message__IndicatorAllOnFor Scintilla__Message = 2506 + Scintilla__Message__IndicatorValueAt Scintilla__Message = 2507 + Scintilla__Message__IndicatorStart Scintilla__Message = 2508 + Scintilla__Message__IndicatorEnd Scintilla__Message = 2509 + Scintilla__Message__SetPositionCache Scintilla__Message = 2514 + Scintilla__Message__GetPositionCache Scintilla__Message = 2515 + Scintilla__Message__SetLayoutThreads Scintilla__Message = 2775 + Scintilla__Message__GetLayoutThreads Scintilla__Message = 2776 + Scintilla__Message__CopyAllowLine Scintilla__Message = 2519 + Scintilla__Message__CutAllowLine Scintilla__Message = 2810 + Scintilla__Message__SetCopySeparator Scintilla__Message = 2811 + Scintilla__Message__GetCopySeparator Scintilla__Message = 2812 + Scintilla__Message__GetCharacterPointer Scintilla__Message = 2520 + Scintilla__Message__GetRangePointer Scintilla__Message = 2643 + Scintilla__Message__GetGapPosition Scintilla__Message = 2644 + Scintilla__Message__IndicSetAlpha Scintilla__Message = 2523 + Scintilla__Message__IndicGetAlpha Scintilla__Message = 2524 + Scintilla__Message__IndicSetOutlineAlpha Scintilla__Message = 2558 + Scintilla__Message__IndicGetOutlineAlpha Scintilla__Message = 2559 + Scintilla__Message__SetExtraAscent Scintilla__Message = 2525 + Scintilla__Message__GetExtraAscent Scintilla__Message = 2526 + Scintilla__Message__SetExtraDescent Scintilla__Message = 2527 + Scintilla__Message__GetExtraDescent Scintilla__Message = 2528 + Scintilla__Message__MarkerSymbolDefined Scintilla__Message = 2529 + Scintilla__Message__MarginSetText Scintilla__Message = 2530 + Scintilla__Message__MarginGetText Scintilla__Message = 2531 + Scintilla__Message__MarginSetStyle Scintilla__Message = 2532 + Scintilla__Message__MarginGetStyle Scintilla__Message = 2533 + Scintilla__Message__MarginSetStyles Scintilla__Message = 2534 + Scintilla__Message__MarginGetStyles Scintilla__Message = 2535 + Scintilla__Message__MarginTextClearAll Scintilla__Message = 2536 + Scintilla__Message__MarginSetStyleOffset Scintilla__Message = 2537 + Scintilla__Message__MarginGetStyleOffset Scintilla__Message = 2538 + Scintilla__Message__SetMarginOptions Scintilla__Message = 2539 + Scintilla__Message__GetMarginOptions Scintilla__Message = 2557 + Scintilla__Message__AnnotationSetText Scintilla__Message = 2540 + Scintilla__Message__AnnotationGetText Scintilla__Message = 2541 + Scintilla__Message__AnnotationSetStyle Scintilla__Message = 2542 + Scintilla__Message__AnnotationGetStyle Scintilla__Message = 2543 + Scintilla__Message__AnnotationSetStyles Scintilla__Message = 2544 + Scintilla__Message__AnnotationGetStyles Scintilla__Message = 2545 + Scintilla__Message__AnnotationGetLines Scintilla__Message = 2546 + Scintilla__Message__AnnotationClearAll Scintilla__Message = 2547 + Scintilla__Message__AnnotationSetVisible Scintilla__Message = 2548 + Scintilla__Message__AnnotationGetVisible Scintilla__Message = 2549 + Scintilla__Message__AnnotationSetStyleOffset Scintilla__Message = 2550 + Scintilla__Message__AnnotationGetStyleOffset Scintilla__Message = 2551 + Scintilla__Message__ReleaseAllExtendedStyles Scintilla__Message = 2552 + Scintilla__Message__AllocateExtendedStyles Scintilla__Message = 2553 + Scintilla__Message__AddUndoAction Scintilla__Message = 2560 + Scintilla__Message__CharPositionFromPoint Scintilla__Message = 2561 + Scintilla__Message__CharPositionFromPointClose Scintilla__Message = 2562 + Scintilla__Message__SetMouseSelectionRectangularSwitch Scintilla__Message = 2668 + Scintilla__Message__GetMouseSelectionRectangularSwitch Scintilla__Message = 2669 + Scintilla__Message__SetMultipleSelection Scintilla__Message = 2563 + Scintilla__Message__GetMultipleSelection Scintilla__Message = 2564 + Scintilla__Message__SetAdditionalSelectionTyping Scintilla__Message = 2565 + Scintilla__Message__GetAdditionalSelectionTyping Scintilla__Message = 2566 + Scintilla__Message__SetAdditionalCaretsBlink Scintilla__Message = 2567 + Scintilla__Message__GetAdditionalCaretsBlink Scintilla__Message = 2568 + Scintilla__Message__SetAdditionalCaretsVisible Scintilla__Message = 2608 + Scintilla__Message__GetAdditionalCaretsVisible Scintilla__Message = 2609 + Scintilla__Message__GetSelections Scintilla__Message = 2570 + Scintilla__Message__GetSelectionEmpty Scintilla__Message = 2650 + Scintilla__Message__ClearSelections Scintilla__Message = 2571 + Scintilla__Message__SetSelection Scintilla__Message = 2572 + Scintilla__Message__AddSelection Scintilla__Message = 2573 + Scintilla__Message__SelectionFromPoint Scintilla__Message = 2474 + Scintilla__Message__DropSelectionN Scintilla__Message = 2671 + Scintilla__Message__SetMainSelection Scintilla__Message = 2574 + Scintilla__Message__GetMainSelection Scintilla__Message = 2575 + Scintilla__Message__SetSelectionNCaret Scintilla__Message = 2576 + Scintilla__Message__GetSelectionNCaret Scintilla__Message = 2577 + Scintilla__Message__SetSelectionNAnchor Scintilla__Message = 2578 + Scintilla__Message__GetSelectionNAnchor Scintilla__Message = 2579 + Scintilla__Message__SetSelectionNCaretVirtualSpace Scintilla__Message = 2580 + Scintilla__Message__GetSelectionNCaretVirtualSpace Scintilla__Message = 2581 + Scintilla__Message__SetSelectionNAnchorVirtualSpace Scintilla__Message = 2582 + Scintilla__Message__GetSelectionNAnchorVirtualSpace Scintilla__Message = 2583 + Scintilla__Message__SetSelectionNStart Scintilla__Message = 2584 + Scintilla__Message__GetSelectionNStart Scintilla__Message = 2585 + Scintilla__Message__GetSelectionNStartVirtualSpace Scintilla__Message = 2726 + Scintilla__Message__SetSelectionNEnd Scintilla__Message = 2586 + Scintilla__Message__GetSelectionNEndVirtualSpace Scintilla__Message = 2727 + Scintilla__Message__GetSelectionNEnd Scintilla__Message = 2587 + Scintilla__Message__SetRectangularSelectionCaret Scintilla__Message = 2588 + Scintilla__Message__GetRectangularSelectionCaret Scintilla__Message = 2589 + Scintilla__Message__SetRectangularSelectionAnchor Scintilla__Message = 2590 + Scintilla__Message__GetRectangularSelectionAnchor Scintilla__Message = 2591 + Scintilla__Message__SetRectangularSelectionCaretVirtualSpace Scintilla__Message = 2592 + Scintilla__Message__GetRectangularSelectionCaretVirtualSpace Scintilla__Message = 2593 + Scintilla__Message__SetRectangularSelectionAnchorVirtualSpace Scintilla__Message = 2594 + Scintilla__Message__GetRectangularSelectionAnchorVirtualSpace Scintilla__Message = 2595 + Scintilla__Message__SetVirtualSpaceOptions Scintilla__Message = 2596 + Scintilla__Message__GetVirtualSpaceOptions Scintilla__Message = 2597 + Scintilla__Message__SetRectangularSelectionModifier Scintilla__Message = 2598 + Scintilla__Message__GetRectangularSelectionModifier Scintilla__Message = 2599 + Scintilla__Message__SetAdditionalSelFore Scintilla__Message = 2600 + Scintilla__Message__SetAdditionalSelBack Scintilla__Message = 2601 + Scintilla__Message__SetAdditionalSelAlpha Scintilla__Message = 2602 + Scintilla__Message__GetAdditionalSelAlpha Scintilla__Message = 2603 + Scintilla__Message__SetAdditionalCaretFore Scintilla__Message = 2604 + Scintilla__Message__GetAdditionalCaretFore Scintilla__Message = 2605 + Scintilla__Message__RotateSelection Scintilla__Message = 2606 + Scintilla__Message__SwapMainAnchorCaret Scintilla__Message = 2607 + Scintilla__Message__MultipleSelectAddNext Scintilla__Message = 2688 + Scintilla__Message__MultipleSelectAddEach Scintilla__Message = 2689 + Scintilla__Message__ChangeLexerState Scintilla__Message = 2617 + Scintilla__Message__ContractedFoldNext Scintilla__Message = 2618 + Scintilla__Message__VerticalCentreCaret Scintilla__Message = 2619 + Scintilla__Message__MoveSelectedLinesUp Scintilla__Message = 2620 + Scintilla__Message__MoveSelectedLinesDown Scintilla__Message = 2621 + Scintilla__Message__SetIdentifier Scintilla__Message = 2622 + Scintilla__Message__GetIdentifier Scintilla__Message = 2623 + Scintilla__Message__RGBAImageSetWidth Scintilla__Message = 2624 + Scintilla__Message__RGBAImageSetHeight Scintilla__Message = 2625 + Scintilla__Message__RGBAImageSetScale Scintilla__Message = 2651 + Scintilla__Message__MarkerDefineRGBAImage Scintilla__Message = 2626 + Scintilla__Message__RegisterRGBAImage Scintilla__Message = 2627 + Scintilla__Message__ScrollToStart Scintilla__Message = 2628 + Scintilla__Message__ScrollToEnd Scintilla__Message = 2629 + Scintilla__Message__SetTechnology Scintilla__Message = 2630 + Scintilla__Message__GetTechnology Scintilla__Message = 2631 + Scintilla__Message__CreateLoader Scintilla__Message = 2632 + Scintilla__Message__FindIndicatorShow Scintilla__Message = 2640 + Scintilla__Message__FindIndicatorFlash Scintilla__Message = 2641 + Scintilla__Message__FindIndicatorHide Scintilla__Message = 2642 + Scintilla__Message__VCHomeDisplay Scintilla__Message = 2652 + Scintilla__Message__VCHomeDisplayExtend Scintilla__Message = 2653 + Scintilla__Message__GetCaretLineVisibleAlways Scintilla__Message = 2654 + Scintilla__Message__SetCaretLineVisibleAlways Scintilla__Message = 2655 + Scintilla__Message__SetLineEndTypesAllowed Scintilla__Message = 2656 + Scintilla__Message__GetLineEndTypesAllowed Scintilla__Message = 2657 + Scintilla__Message__GetLineEndTypesActive Scintilla__Message = 2658 + Scintilla__Message__SetRepresentation Scintilla__Message = 2665 + Scintilla__Message__GetRepresentation Scintilla__Message = 2666 + Scintilla__Message__ClearRepresentation Scintilla__Message = 2667 + Scintilla__Message__ClearAllRepresentations Scintilla__Message = 2770 + Scintilla__Message__SetRepresentationAppearance Scintilla__Message = 2766 + Scintilla__Message__GetRepresentationAppearance Scintilla__Message = 2767 + Scintilla__Message__SetRepresentationColour Scintilla__Message = 2768 + Scintilla__Message__GetRepresentationColour Scintilla__Message = 2769 + Scintilla__Message__EOLAnnotationSetText Scintilla__Message = 2740 + Scintilla__Message__EOLAnnotationGetText Scintilla__Message = 2741 + Scintilla__Message__EOLAnnotationSetStyle Scintilla__Message = 2742 + Scintilla__Message__EOLAnnotationGetStyle Scintilla__Message = 2743 + Scintilla__Message__EOLAnnotationClearAll Scintilla__Message = 2744 + Scintilla__Message__EOLAnnotationSetVisible Scintilla__Message = 2745 + Scintilla__Message__EOLAnnotationGetVisible Scintilla__Message = 2746 + Scintilla__Message__EOLAnnotationSetStyleOffset Scintilla__Message = 2747 + Scintilla__Message__EOLAnnotationGetStyleOffset Scintilla__Message = 2748 + Scintilla__Message__SupportsFeature Scintilla__Message = 2750 + Scintilla__Message__GetLineCharacterIndex Scintilla__Message = 2710 + Scintilla__Message__AllocateLineCharacterIndex Scintilla__Message = 2711 + Scintilla__Message__ReleaseLineCharacterIndex Scintilla__Message = 2712 + Scintilla__Message__LineFromIndexPosition Scintilla__Message = 2713 + Scintilla__Message__IndexPositionFromLine Scintilla__Message = 2714 + Scintilla__Message__StartRecord Scintilla__Message = 3001 + Scintilla__Message__StopRecord Scintilla__Message = 3002 + Scintilla__Message__GetLexer Scintilla__Message = 4002 + Scintilla__Message__Colourise Scintilla__Message = 4003 + Scintilla__Message__SetProperty Scintilla__Message = 4004 + Scintilla__Message__SetKeyWords Scintilla__Message = 4005 + Scintilla__Message__GetProperty Scintilla__Message = 4008 + Scintilla__Message__GetPropertyExpanded Scintilla__Message = 4009 + Scintilla__Message__GetPropertyInt Scintilla__Message = 4010 + Scintilla__Message__GetLexerLanguage Scintilla__Message = 4012 + Scintilla__Message__PrivateLexerCall Scintilla__Message = 4013 + Scintilla__Message__PropertyNames Scintilla__Message = 4014 + Scintilla__Message__PropertyType Scintilla__Message = 4015 + Scintilla__Message__DescribeProperty Scintilla__Message = 4016 + Scintilla__Message__DescribeKeyWordSets Scintilla__Message = 4017 + Scintilla__Message__GetLineEndTypesSupported Scintilla__Message = 4018 + Scintilla__Message__AllocateSubStyles Scintilla__Message = 4020 + Scintilla__Message__GetSubStylesStart Scintilla__Message = 4021 + Scintilla__Message__GetSubStylesLength Scintilla__Message = 4022 + Scintilla__Message__GetStyleFromSubStyle Scintilla__Message = 4027 + Scintilla__Message__GetPrimaryStyleFromStyle Scintilla__Message = 4028 + Scintilla__Message__FreeSubStyles Scintilla__Message = 4023 + Scintilla__Message__SetIdentifiers Scintilla__Message = 4024 + Scintilla__Message__DistanceToSecondaryStyles Scintilla__Message = 4025 + Scintilla__Message__GetSubStyleBases Scintilla__Message = 4026 + Scintilla__Message__GetNamedStyles Scintilla__Message = 4029 + Scintilla__Message__NameOfStyle Scintilla__Message = 4030 + Scintilla__Message__TagsOfStyle Scintilla__Message = 4031 + Scintilla__Message__DescriptionOfStyle Scintilla__Message = 4032 + Scintilla__Message__SetILexer Scintilla__Message = 4033 + Scintilla__Message__GetBidirectional Scintilla__Message = 2708 + Scintilla__Message__SetBidirectional Scintilla__Message = 2709 +) + +type Scintilla__Internal__Surface__Ends int + +const ( + Scintilla__Internal__Surface__semiCircles Scintilla__Internal__Surface__Ends = 0 + Scintilla__Internal__Surface__leftFlat Scintilla__Internal__Surface__Ends = 1 + Scintilla__Internal__Surface__leftAngle Scintilla__Internal__Surface__Ends = 2 + Scintilla__Internal__Surface__rightFlat Scintilla__Internal__Surface__Ends = 16 + Scintilla__Internal__Surface__rightAngle Scintilla__Internal__Surface__Ends = 32 +) + +type Scintilla__Internal__Surface__GradientOptions int + +const ( + Scintilla__Internal__Surface__leftToRight Scintilla__Internal__Surface__GradientOptions = 0 + Scintilla__Internal__Surface__topToBottom Scintilla__Internal__Surface__GradientOptions = 1 +) + +type Scintilla__Internal__Window__Cursor int + +const ( + Scintilla__Internal__Window__invalid Scintilla__Internal__Window__Cursor = 0 + Scintilla__Internal__Window__text Scintilla__Internal__Window__Cursor = 1 + Scintilla__Internal__Window__arrow Scintilla__Internal__Window__Cursor = 2 + Scintilla__Internal__Window__up Scintilla__Internal__Window__Cursor = 3 + Scintilla__Internal__Window__wait Scintilla__Internal__Window__Cursor = 4 + Scintilla__Internal__Window__horizontal Scintilla__Internal__Window__Cursor = 5 + Scintilla__Internal__Window__vertical Scintilla__Internal__Window__Cursor = 6 + Scintilla__Internal__Window__reverseArrow Scintilla__Internal__Window__Cursor = 7 + Scintilla__Internal__Window__hand Scintilla__Internal__Window__Cursor = 8 +) + +type Scintilla__Internal__ListBoxEvent__EventType int + +const ( + Scintilla__Internal__ListBoxEvent__selectionChange Scintilla__Internal__ListBoxEvent__EventType = 0 + Scintilla__Internal__ListBoxEvent__doubleClick Scintilla__Internal__ListBoxEvent__EventType = 1 +) + +type Scintilla__Internal__Point struct { + h *C.Scintilla__Internal__Point +} + +func (this *Scintilla__Internal__Point) cPointer() *C.Scintilla__Internal__Point { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__Point) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__Point(h *C.Scintilla__Internal__Point) *Scintilla__Internal__Point { + if h == nil { + return nil + } + return &Scintilla__Internal__Point{h: h} +} + +func UnsafeNewScintilla__Internal__Point(h unsafe.Pointer) *Scintilla__Internal__Point { + return newScintilla__Internal__Point((*C.Scintilla__Internal__Point)(h)) +} + +// NewScintilla__Internal__Point constructs a new Scintilla::Internal::Point object. +func NewScintilla__Internal__Point() *Scintilla__Internal__Point { + ret := C.Scintilla__Internal__Point_new() + return newScintilla__Internal__Point(ret) +} + +// NewScintilla__Internal__Point2 constructs a new Scintilla::Internal::Point object. +func NewScintilla__Internal__Point2(param1 *Scintilla__Internal__Point) *Scintilla__Internal__Point { + ret := C.Scintilla__Internal__Point_new2(param1.cPointer()) + return newScintilla__Internal__Point(ret) +} + +// NewScintilla__Internal__Point3 constructs a new Scintilla::Internal::Point object. +func NewScintilla__Internal__Point3(x_ float64) *Scintilla__Internal__Point { + ret := C.Scintilla__Internal__Point_new3((C.double)(x_)) + return newScintilla__Internal__Point(ret) +} + +// NewScintilla__Internal__Point4 constructs a new Scintilla::Internal::Point object. +func NewScintilla__Internal__Point4(x_ float64, y_ float64) *Scintilla__Internal__Point { + ret := C.Scintilla__Internal__Point_new4((C.double)(x_), (C.double)(y_)) + return newScintilla__Internal__Point(ret) +} + +func Scintilla__Internal__Point_FromInts(x_ int, y_ int) *Scintilla__Internal__Point { + _ret := C.Scintilla__Internal__Point_FromInts((C.int)(x_), (C.int)(y_)) + _goptr := newScintilla__Internal__Point(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__Point) OperatorEqual(other Scintilla__Internal__Point) bool { + return (bool)(C.Scintilla__Internal__Point_OperatorEqual(this.h, other.cPointer())) +} + +func (this *Scintilla__Internal__Point) OperatorNotEqual(other Scintilla__Internal__Point) bool { + return (bool)(C.Scintilla__Internal__Point_OperatorNotEqual(this.h, other.cPointer())) +} + +func (this *Scintilla__Internal__Point) OperatorPlus(other Scintilla__Internal__Point) *Scintilla__Internal__Point { + _ret := C.Scintilla__Internal__Point_OperatorPlus(this.h, other.cPointer()) + _goptr := newScintilla__Internal__Point(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__Point) OperatorMinus(other Scintilla__Internal__Point) *Scintilla__Internal__Point { + _ret := C.Scintilla__Internal__Point_OperatorMinus(this.h, other.cPointer()) + _goptr := newScintilla__Internal__Point(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__Point) Delete() { + C.Scintilla__Internal__Point_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 *Scintilla__Internal__Point) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__Point) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__Interval struct { + h *C.Scintilla__Internal__Interval +} + +func (this *Scintilla__Internal__Interval) cPointer() *C.Scintilla__Internal__Interval { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__Interval) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__Interval(h *C.Scintilla__Internal__Interval) *Scintilla__Internal__Interval { + if h == nil { + return nil + } + return &Scintilla__Internal__Interval{h: h} +} + +func UnsafeNewScintilla__Internal__Interval(h unsafe.Pointer) *Scintilla__Internal__Interval { + return newScintilla__Internal__Interval((*C.Scintilla__Internal__Interval)(h)) +} + +func (this *Scintilla__Internal__Interval) OperatorEqual(other *Scintilla__Internal__Interval) bool { + return (bool)(C.Scintilla__Internal__Interval_OperatorEqual(this.h, other.cPointer())) +} + +func (this *Scintilla__Internal__Interval) Width() float64 { + return (float64)(C.Scintilla__Internal__Interval_Width(this.h)) +} + +func (this *Scintilla__Internal__Interval) Empty() bool { + return (bool)(C.Scintilla__Internal__Interval_Empty(this.h)) +} + +func (this *Scintilla__Internal__Interval) Intersects(other Scintilla__Internal__Interval) bool { + return (bool)(C.Scintilla__Internal__Interval_Intersects(this.h, other.cPointer())) +} + +func (this *Scintilla__Internal__Interval) Offset(offset float64) *Scintilla__Internal__Interval { + _ret := C.Scintilla__Internal__Interval_Offset(this.h, (C.double)(offset)) + _goptr := newScintilla__Internal__Interval(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__Interval) Delete() { + C.Scintilla__Internal__Interval_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 *Scintilla__Internal__Interval) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__Interval) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__PRectangle struct { + h *C.Scintilla__Internal__PRectangle +} + +func (this *Scintilla__Internal__PRectangle) cPointer() *C.Scintilla__Internal__PRectangle { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__PRectangle) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__PRectangle(h *C.Scintilla__Internal__PRectangle) *Scintilla__Internal__PRectangle { + if h == nil { + return nil + } + return &Scintilla__Internal__PRectangle{h: h} +} + +func UnsafeNewScintilla__Internal__PRectangle(h unsafe.Pointer) *Scintilla__Internal__PRectangle { + return newScintilla__Internal__PRectangle((*C.Scintilla__Internal__PRectangle)(h)) +} + +// NewScintilla__Internal__PRectangle constructs a new Scintilla::Internal::PRectangle object. +func NewScintilla__Internal__PRectangle() *Scintilla__Internal__PRectangle { + ret := C.Scintilla__Internal__PRectangle_new() + return newScintilla__Internal__PRectangle(ret) +} + +// NewScintilla__Internal__PRectangle2 constructs a new Scintilla::Internal::PRectangle object. +func NewScintilla__Internal__PRectangle2(param1 *Scintilla__Internal__PRectangle) *Scintilla__Internal__PRectangle { + ret := C.Scintilla__Internal__PRectangle_new2(param1.cPointer()) + return newScintilla__Internal__PRectangle(ret) +} + +// NewScintilla__Internal__PRectangle3 constructs a new Scintilla::Internal::PRectangle object. +func NewScintilla__Internal__PRectangle3(left_ float64) *Scintilla__Internal__PRectangle { + ret := C.Scintilla__Internal__PRectangle_new3((C.double)(left_)) + return newScintilla__Internal__PRectangle(ret) +} + +// NewScintilla__Internal__PRectangle4 constructs a new Scintilla::Internal::PRectangle object. +func NewScintilla__Internal__PRectangle4(left_ float64, top_ float64) *Scintilla__Internal__PRectangle { + ret := C.Scintilla__Internal__PRectangle_new4((C.double)(left_), (C.double)(top_)) + return newScintilla__Internal__PRectangle(ret) +} + +// NewScintilla__Internal__PRectangle5 constructs a new Scintilla::Internal::PRectangle object. +func NewScintilla__Internal__PRectangle5(left_ float64, top_ float64, right_ float64) *Scintilla__Internal__PRectangle { + ret := C.Scintilla__Internal__PRectangle_new5((C.double)(left_), (C.double)(top_), (C.double)(right_)) + return newScintilla__Internal__PRectangle(ret) +} + +// NewScintilla__Internal__PRectangle6 constructs a new Scintilla::Internal::PRectangle object. +func NewScintilla__Internal__PRectangle6(left_ float64, top_ float64, right_ float64, bottom_ float64) *Scintilla__Internal__PRectangle { + ret := C.Scintilla__Internal__PRectangle_new6((C.double)(left_), (C.double)(top_), (C.double)(right_), (C.double)(bottom_)) + return newScintilla__Internal__PRectangle(ret) +} + +func Scintilla__Internal__PRectangle_FromInts(left_ int, top_ int, right_ int, bottom_ int) *Scintilla__Internal__PRectangle { + _ret := C.Scintilla__Internal__PRectangle_FromInts((C.int)(left_), (C.int)(top_), (C.int)(right_), (C.int)(bottom_)) + _goptr := newScintilla__Internal__PRectangle(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__PRectangle) OperatorEqual(rc *Scintilla__Internal__PRectangle) bool { + return (bool)(C.Scintilla__Internal__PRectangle_OperatorEqual(this.h, rc.cPointer())) +} + +func (this *Scintilla__Internal__PRectangle) Contains(pt Scintilla__Internal__Point) bool { + return (bool)(C.Scintilla__Internal__PRectangle_Contains(this.h, pt.cPointer())) +} + +func (this *Scintilla__Internal__PRectangle) ContainsWholePixel(pt Scintilla__Internal__Point) bool { + return (bool)(C.Scintilla__Internal__PRectangle_ContainsWholePixel(this.h, pt.cPointer())) +} + +func (this *Scintilla__Internal__PRectangle) ContainsWithRc(rc Scintilla__Internal__PRectangle) bool { + return (bool)(C.Scintilla__Internal__PRectangle_ContainsWithRc(this.h, rc.cPointer())) +} + +func (this *Scintilla__Internal__PRectangle) Intersects(other Scintilla__Internal__PRectangle) bool { + return (bool)(C.Scintilla__Internal__PRectangle_Intersects(this.h, other.cPointer())) +} + +func (this *Scintilla__Internal__PRectangle) IntersectsWithHorizontalBounds(horizontalBounds Scintilla__Internal__Interval) bool { + return (bool)(C.Scintilla__Internal__PRectangle_IntersectsWithHorizontalBounds(this.h, horizontalBounds.cPointer())) +} + +func (this *Scintilla__Internal__PRectangle) Move(xDelta float64, yDelta float64) { + C.Scintilla__Internal__PRectangle_Move(this.h, (C.double)(xDelta), (C.double)(yDelta)) +} + +func (this *Scintilla__Internal__PRectangle) WithHorizontalBounds(horizontal Scintilla__Internal__Interval) *Scintilla__Internal__PRectangle { + _ret := C.Scintilla__Internal__PRectangle_WithHorizontalBounds(this.h, horizontal.cPointer()) + _goptr := newScintilla__Internal__PRectangle(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__PRectangle) Inset(delta float64) *Scintilla__Internal__PRectangle { + _ret := C.Scintilla__Internal__PRectangle_Inset(this.h, (C.double)(delta)) + _goptr := newScintilla__Internal__PRectangle(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__PRectangle) InsetWithDelta(delta Scintilla__Internal__Point) *Scintilla__Internal__PRectangle { + _ret := C.Scintilla__Internal__PRectangle_InsetWithDelta(this.h, delta.cPointer()) + _goptr := newScintilla__Internal__PRectangle(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__PRectangle) Centre() *Scintilla__Internal__Point { + _ret := C.Scintilla__Internal__PRectangle_Centre(this.h) + _goptr := newScintilla__Internal__Point(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__PRectangle) Width() float64 { + return (float64)(C.Scintilla__Internal__PRectangle_Width(this.h)) +} + +func (this *Scintilla__Internal__PRectangle) Height() float64 { + return (float64)(C.Scintilla__Internal__PRectangle_Height(this.h)) +} + +func (this *Scintilla__Internal__PRectangle) Empty() bool { + return (bool)(C.Scintilla__Internal__PRectangle_Empty(this.h)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__PRectangle) Delete() { + C.Scintilla__Internal__PRectangle_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 *Scintilla__Internal__PRectangle) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__PRectangle) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__ColourRGBA struct { + h *C.Scintilla__Internal__ColourRGBA +} + +func (this *Scintilla__Internal__ColourRGBA) cPointer() *C.Scintilla__Internal__ColourRGBA { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__ColourRGBA) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__ColourRGBA(h *C.Scintilla__Internal__ColourRGBA) *Scintilla__Internal__ColourRGBA { + if h == nil { + return nil + } + return &Scintilla__Internal__ColourRGBA{h: h} +} + +func UnsafeNewScintilla__Internal__ColourRGBA(h unsafe.Pointer) *Scintilla__Internal__ColourRGBA { + return newScintilla__Internal__ColourRGBA((*C.Scintilla__Internal__ColourRGBA)(h)) +} + +// NewScintilla__Internal__ColourRGBA constructs a new Scintilla::Internal::ColourRGBA object. +func NewScintilla__Internal__ColourRGBA() *Scintilla__Internal__ColourRGBA { + ret := C.Scintilla__Internal__ColourRGBA_new() + return newScintilla__Internal__ColourRGBA(ret) +} + +// NewScintilla__Internal__ColourRGBA2 constructs a new Scintilla::Internal::ColourRGBA object. +func NewScintilla__Internal__ColourRGBA2(red uint, green uint, blue uint) *Scintilla__Internal__ColourRGBA { + ret := C.Scintilla__Internal__ColourRGBA_new2((C.uint)(red), (C.uint)(green), (C.uint)(blue)) + return newScintilla__Internal__ColourRGBA(ret) +} + +// NewScintilla__Internal__ColourRGBA3 constructs a new Scintilla::Internal::ColourRGBA object. +func NewScintilla__Internal__ColourRGBA3(cd Scintilla__Internal__ColourRGBA, alpha uint) *Scintilla__Internal__ColourRGBA { + ret := C.Scintilla__Internal__ColourRGBA_new3(cd.cPointer(), (C.uint)(alpha)) + return newScintilla__Internal__ColourRGBA(ret) +} + +// NewScintilla__Internal__ColourRGBA4 constructs a new Scintilla::Internal::ColourRGBA object. +func NewScintilla__Internal__ColourRGBA4(param1 *Scintilla__Internal__ColourRGBA) *Scintilla__Internal__ColourRGBA { + ret := C.Scintilla__Internal__ColourRGBA_new4(param1.cPointer()) + return newScintilla__Internal__ColourRGBA(ret) +} + +// NewScintilla__Internal__ColourRGBA5 constructs a new Scintilla::Internal::ColourRGBA object. +func NewScintilla__Internal__ColourRGBA5(co_ int) *Scintilla__Internal__ColourRGBA { + ret := C.Scintilla__Internal__ColourRGBA_new5((C.int)(co_)) + return newScintilla__Internal__ColourRGBA(ret) +} + +// NewScintilla__Internal__ColourRGBA6 constructs a new Scintilla::Internal::ColourRGBA object. +func NewScintilla__Internal__ColourRGBA6(red uint, green uint, blue uint, alpha uint) *Scintilla__Internal__ColourRGBA { + ret := C.Scintilla__Internal__ColourRGBA_new6((C.uint)(red), (C.uint)(green), (C.uint)(blue), (C.uint)(alpha)) + return newScintilla__Internal__ColourRGBA(ret) +} + +func Scintilla__Internal__ColourRGBA_FromRGB(co_ int) *Scintilla__Internal__ColourRGBA { + _ret := C.Scintilla__Internal__ColourRGBA_FromRGB((C.int)(co_)) + _goptr := newScintilla__Internal__ColourRGBA(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func Scintilla__Internal__ColourRGBA_Grey(grey uint) *Scintilla__Internal__ColourRGBA { + _ret := C.Scintilla__Internal__ColourRGBA_Grey((C.uint)(grey)) + _goptr := newScintilla__Internal__ColourRGBA(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func Scintilla__Internal__ColourRGBA_FromIpRGB(co_ uintptr) *Scintilla__Internal__ColourRGBA { + _ret := C.Scintilla__Internal__ColourRGBA_FromIpRGB((C.intptr_t)(co_)) + _goptr := newScintilla__Internal__ColourRGBA(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__ColourRGBA) WithoutAlpha() *Scintilla__Internal__ColourRGBA { + _ret := C.Scintilla__Internal__ColourRGBA_WithoutAlpha(this.h) + _goptr := newScintilla__Internal__ColourRGBA(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__ColourRGBA) Opaque() *Scintilla__Internal__ColourRGBA { + _ret := C.Scintilla__Internal__ColourRGBA_Opaque(this.h) + _goptr := newScintilla__Internal__ColourRGBA(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__ColourRGBA) AsInteger() int { + return (int)(C.Scintilla__Internal__ColourRGBA_AsInteger(this.h)) +} + +func (this *Scintilla__Internal__ColourRGBA) OpaqueRGB() int { + return (int)(C.Scintilla__Internal__ColourRGBA_OpaqueRGB(this.h)) +} + +func (this *Scintilla__Internal__ColourRGBA) GetRed() byte { + return (byte)(C.Scintilla__Internal__ColourRGBA_GetRed(this.h)) +} + +func (this *Scintilla__Internal__ColourRGBA) GetGreen() byte { + return (byte)(C.Scintilla__Internal__ColourRGBA_GetGreen(this.h)) +} + +func (this *Scintilla__Internal__ColourRGBA) GetBlue() byte { + return (byte)(C.Scintilla__Internal__ColourRGBA_GetBlue(this.h)) +} + +func (this *Scintilla__Internal__ColourRGBA) GetAlpha() byte { + return (byte)(C.Scintilla__Internal__ColourRGBA_GetAlpha(this.h)) +} + +func (this *Scintilla__Internal__ColourRGBA) GetRedComponent() float32 { + return (float32)(C.Scintilla__Internal__ColourRGBA_GetRedComponent(this.h)) +} + +func (this *Scintilla__Internal__ColourRGBA) GetGreenComponent() float32 { + return (float32)(C.Scintilla__Internal__ColourRGBA_GetGreenComponent(this.h)) +} + +func (this *Scintilla__Internal__ColourRGBA) GetBlueComponent() float32 { + return (float32)(C.Scintilla__Internal__ColourRGBA_GetBlueComponent(this.h)) +} + +func (this *Scintilla__Internal__ColourRGBA) GetAlphaComponent() float32 { + return (float32)(C.Scintilla__Internal__ColourRGBA_GetAlphaComponent(this.h)) +} + +func (this *Scintilla__Internal__ColourRGBA) OperatorEqual(other *Scintilla__Internal__ColourRGBA) bool { + return (bool)(C.Scintilla__Internal__ColourRGBA_OperatorEqual(this.h, other.cPointer())) +} + +func (this *Scintilla__Internal__ColourRGBA) IsOpaque() bool { + return (bool)(C.Scintilla__Internal__ColourRGBA_IsOpaque(this.h)) +} + +func (this *Scintilla__Internal__ColourRGBA) MixedWith(other Scintilla__Internal__ColourRGBA) *Scintilla__Internal__ColourRGBA { + _ret := C.Scintilla__Internal__ColourRGBA_MixedWith(this.h, other.cPointer()) + _goptr := newScintilla__Internal__ColourRGBA(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__ColourRGBA) MixedWith2(other Scintilla__Internal__ColourRGBA, proportion float64) *Scintilla__Internal__ColourRGBA { + _ret := C.Scintilla__Internal__ColourRGBA_MixedWith2(this.h, other.cPointer(), (C.double)(proportion)) + _goptr := newScintilla__Internal__ColourRGBA(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__ColourRGBA) OperatorAssign(param1 *Scintilla__Internal__ColourRGBA) { + C.Scintilla__Internal__ColourRGBA_OperatorAssign(this.h, param1.cPointer()) +} + +func Scintilla__Internal__ColourRGBA_Grey2(grey uint, alpha uint) *Scintilla__Internal__ColourRGBA { + _ret := C.Scintilla__Internal__ColourRGBA_Grey2((C.uint)(grey), (C.uint)(alpha)) + _goptr := newScintilla__Internal__ColourRGBA(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__ColourRGBA) Delete() { + C.Scintilla__Internal__ColourRGBA_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 *Scintilla__Internal__ColourRGBA) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__ColourRGBA) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__Stroke struct { + h *C.Scintilla__Internal__Stroke +} + +func (this *Scintilla__Internal__Stroke) cPointer() *C.Scintilla__Internal__Stroke { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__Stroke) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__Stroke(h *C.Scintilla__Internal__Stroke) *Scintilla__Internal__Stroke { + if h == nil { + return nil + } + return &Scintilla__Internal__Stroke{h: h} +} + +func UnsafeNewScintilla__Internal__Stroke(h unsafe.Pointer) *Scintilla__Internal__Stroke { + return newScintilla__Internal__Stroke((*C.Scintilla__Internal__Stroke)(h)) +} + +// NewScintilla__Internal__Stroke constructs a new Scintilla::Internal::Stroke object. +func NewScintilla__Internal__Stroke(colour_ Scintilla__Internal__ColourRGBA) *Scintilla__Internal__Stroke { + ret := C.Scintilla__Internal__Stroke_new(colour_.cPointer()) + return newScintilla__Internal__Stroke(ret) +} + +// NewScintilla__Internal__Stroke2 constructs a new Scintilla::Internal::Stroke object. +func NewScintilla__Internal__Stroke2(param1 *Scintilla__Internal__Stroke) *Scintilla__Internal__Stroke { + ret := C.Scintilla__Internal__Stroke_new2(param1.cPointer()) + return newScintilla__Internal__Stroke(ret) +} + +// NewScintilla__Internal__Stroke3 constructs a new Scintilla::Internal::Stroke object. +func NewScintilla__Internal__Stroke3(colour_ Scintilla__Internal__ColourRGBA, width_ float64) *Scintilla__Internal__Stroke { + ret := C.Scintilla__Internal__Stroke_new3(colour_.cPointer(), (C.double)(width_)) + return newScintilla__Internal__Stroke(ret) +} + +func (this *Scintilla__Internal__Stroke) WidthF() float32 { + return (float32)(C.Scintilla__Internal__Stroke_WidthF(this.h)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__Stroke) Delete() { + C.Scintilla__Internal__Stroke_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 *Scintilla__Internal__Stroke) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__Stroke) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__Fill struct { + h *C.Scintilla__Internal__Fill +} + +func (this *Scintilla__Internal__Fill) cPointer() *C.Scintilla__Internal__Fill { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__Fill) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__Fill(h *C.Scintilla__Internal__Fill) *Scintilla__Internal__Fill { + if h == nil { + return nil + } + return &Scintilla__Internal__Fill{h: h} +} + +func UnsafeNewScintilla__Internal__Fill(h unsafe.Pointer) *Scintilla__Internal__Fill { + return newScintilla__Internal__Fill((*C.Scintilla__Internal__Fill)(h)) +} + +// NewScintilla__Internal__Fill constructs a new Scintilla::Internal::Fill object. +func NewScintilla__Internal__Fill(colour_ Scintilla__Internal__ColourRGBA) *Scintilla__Internal__Fill { + ret := C.Scintilla__Internal__Fill_new(colour_.cPointer()) + return newScintilla__Internal__Fill(ret) +} + +// NewScintilla__Internal__Fill2 constructs a new Scintilla::Internal::Fill object. +func NewScintilla__Internal__Fill2(param1 *Scintilla__Internal__Fill) *Scintilla__Internal__Fill { + ret := C.Scintilla__Internal__Fill_new2(param1.cPointer()) + return newScintilla__Internal__Fill(ret) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__Fill) Delete() { + C.Scintilla__Internal__Fill_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 *Scintilla__Internal__Fill) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__Fill) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__FillStroke struct { + h *C.Scintilla__Internal__FillStroke +} + +func (this *Scintilla__Internal__FillStroke) cPointer() *C.Scintilla__Internal__FillStroke { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__FillStroke) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__FillStroke(h *C.Scintilla__Internal__FillStroke) *Scintilla__Internal__FillStroke { + if h == nil { + return nil + } + return &Scintilla__Internal__FillStroke{h: h} +} + +func UnsafeNewScintilla__Internal__FillStroke(h unsafe.Pointer) *Scintilla__Internal__FillStroke { + return newScintilla__Internal__FillStroke((*C.Scintilla__Internal__FillStroke)(h)) +} + +// NewScintilla__Internal__FillStroke constructs a new Scintilla::Internal::FillStroke object. +func NewScintilla__Internal__FillStroke(colourFill_ Scintilla__Internal__ColourRGBA, colourStroke_ Scintilla__Internal__ColourRGBA) *Scintilla__Internal__FillStroke { + ret := C.Scintilla__Internal__FillStroke_new(colourFill_.cPointer(), colourStroke_.cPointer()) + return newScintilla__Internal__FillStroke(ret) +} + +// NewScintilla__Internal__FillStroke2 constructs a new Scintilla::Internal::FillStroke object. +func NewScintilla__Internal__FillStroke2(colourBoth Scintilla__Internal__ColourRGBA) *Scintilla__Internal__FillStroke { + ret := C.Scintilla__Internal__FillStroke_new2(colourBoth.cPointer()) + return newScintilla__Internal__FillStroke(ret) +} + +// NewScintilla__Internal__FillStroke3 constructs a new Scintilla::Internal::FillStroke object. +func NewScintilla__Internal__FillStroke3(colourFill_ Scintilla__Internal__ColourRGBA, colourStroke_ Scintilla__Internal__ColourRGBA, widthStroke_ float64) *Scintilla__Internal__FillStroke { + ret := C.Scintilla__Internal__FillStroke_new3(colourFill_.cPointer(), colourStroke_.cPointer(), (C.double)(widthStroke_)) + return newScintilla__Internal__FillStroke(ret) +} + +// NewScintilla__Internal__FillStroke4 constructs a new Scintilla::Internal::FillStroke object. +func NewScintilla__Internal__FillStroke4(colourBoth Scintilla__Internal__ColourRGBA, widthStroke_ float64) *Scintilla__Internal__FillStroke { + ret := C.Scintilla__Internal__FillStroke_new4(colourBoth.cPointer(), (C.double)(widthStroke_)) + return newScintilla__Internal__FillStroke(ret) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__FillStroke) Delete() { + C.Scintilla__Internal__FillStroke_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 *Scintilla__Internal__FillStroke) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__FillStroke) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__ColourStop struct { + h *C.Scintilla__Internal__ColourStop +} + +func (this *Scintilla__Internal__ColourStop) cPointer() *C.Scintilla__Internal__ColourStop { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__ColourStop) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__ColourStop(h *C.Scintilla__Internal__ColourStop) *Scintilla__Internal__ColourStop { + if h == nil { + return nil + } + return &Scintilla__Internal__ColourStop{h: h} +} + +func UnsafeNewScintilla__Internal__ColourStop(h unsafe.Pointer) *Scintilla__Internal__ColourStop { + return newScintilla__Internal__ColourStop((*C.Scintilla__Internal__ColourStop)(h)) +} + +// NewScintilla__Internal__ColourStop constructs a new Scintilla::Internal::ColourStop object. +func NewScintilla__Internal__ColourStop(position_ float64, colour_ Scintilla__Internal__ColourRGBA) *Scintilla__Internal__ColourStop { + ret := C.Scintilla__Internal__ColourStop_new((C.double)(position_), colour_.cPointer()) + return newScintilla__Internal__ColourStop(ret) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__ColourStop) Delete() { + C.Scintilla__Internal__ColourStop_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 *Scintilla__Internal__ColourStop) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__ColourStop) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__CharacterRange struct { + h *C.Scintilla__CharacterRange +} + +func (this *Scintilla__CharacterRange) cPointer() *C.Scintilla__CharacterRange { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__CharacterRange) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__CharacterRange(h *C.Scintilla__CharacterRange) *Scintilla__CharacterRange { + if h == nil { + return nil + } + return &Scintilla__CharacterRange{h: h} +} + +func UnsafeNewScintilla__CharacterRange(h unsafe.Pointer) *Scintilla__CharacterRange { + return newScintilla__CharacterRange((*C.Scintilla__CharacterRange)(h)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__CharacterRange) Delete() { + C.Scintilla__CharacterRange_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 *Scintilla__CharacterRange) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__CharacterRange) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__CharacterRangeFull struct { + h *C.Scintilla__CharacterRangeFull +} + +func (this *Scintilla__CharacterRangeFull) cPointer() *C.Scintilla__CharacterRangeFull { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__CharacterRangeFull) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__CharacterRangeFull(h *C.Scintilla__CharacterRangeFull) *Scintilla__CharacterRangeFull { + if h == nil { + return nil + } + return &Scintilla__CharacterRangeFull{h: h} +} + +func UnsafeNewScintilla__CharacterRangeFull(h unsafe.Pointer) *Scintilla__CharacterRangeFull { + return newScintilla__CharacterRangeFull((*C.Scintilla__CharacterRangeFull)(h)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__CharacterRangeFull) Delete() { + C.Scintilla__CharacterRangeFull_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 *Scintilla__CharacterRangeFull) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__CharacterRangeFull) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__TextRange struct { + h *C.Scintilla__TextRange +} + +func (this *Scintilla__TextRange) cPointer() *C.Scintilla__TextRange { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__TextRange) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__TextRange(h *C.Scintilla__TextRange) *Scintilla__TextRange { + if h == nil { + return nil + } + return &Scintilla__TextRange{h: h} +} + +func UnsafeNewScintilla__TextRange(h unsafe.Pointer) *Scintilla__TextRange { + return newScintilla__TextRange((*C.Scintilla__TextRange)(h)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__TextRange) Delete() { + C.Scintilla__TextRange_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 *Scintilla__TextRange) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__TextRange) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__TextRangeFull struct { + h *C.Scintilla__TextRangeFull +} + +func (this *Scintilla__TextRangeFull) cPointer() *C.Scintilla__TextRangeFull { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__TextRangeFull) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__TextRangeFull(h *C.Scintilla__TextRangeFull) *Scintilla__TextRangeFull { + if h == nil { + return nil + } + return &Scintilla__TextRangeFull{h: h} +} + +func UnsafeNewScintilla__TextRangeFull(h unsafe.Pointer) *Scintilla__TextRangeFull { + return newScintilla__TextRangeFull((*C.Scintilla__TextRangeFull)(h)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__TextRangeFull) Delete() { + C.Scintilla__TextRangeFull_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 *Scintilla__TextRangeFull) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__TextRangeFull) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__TextToFind struct { + h *C.Scintilla__TextToFind +} + +func (this *Scintilla__TextToFind) cPointer() *C.Scintilla__TextToFind { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__TextToFind) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__TextToFind(h *C.Scintilla__TextToFind) *Scintilla__TextToFind { + if h == nil { + return nil + } + return &Scintilla__TextToFind{h: h} +} + +func UnsafeNewScintilla__TextToFind(h unsafe.Pointer) *Scintilla__TextToFind { + return newScintilla__TextToFind((*C.Scintilla__TextToFind)(h)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__TextToFind) Delete() { + C.Scintilla__TextToFind_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 *Scintilla__TextToFind) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__TextToFind) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__TextToFindFull struct { + h *C.Scintilla__TextToFindFull +} + +func (this *Scintilla__TextToFindFull) cPointer() *C.Scintilla__TextToFindFull { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__TextToFindFull) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__TextToFindFull(h *C.Scintilla__TextToFindFull) *Scintilla__TextToFindFull { + if h == nil { + return nil + } + return &Scintilla__TextToFindFull{h: h} +} + +func UnsafeNewScintilla__TextToFindFull(h unsafe.Pointer) *Scintilla__TextToFindFull { + return newScintilla__TextToFindFull((*C.Scintilla__TextToFindFull)(h)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__TextToFindFull) Delete() { + C.Scintilla__TextToFindFull_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 *Scintilla__TextToFindFull) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__TextToFindFull) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Rectangle struct { + h *C.Scintilla__Rectangle +} + +func (this *Scintilla__Rectangle) cPointer() *C.Scintilla__Rectangle { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Rectangle) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Rectangle(h *C.Scintilla__Rectangle) *Scintilla__Rectangle { + if h == nil { + return nil + } + return &Scintilla__Rectangle{h: h} +} + +func UnsafeNewScintilla__Rectangle(h unsafe.Pointer) *Scintilla__Rectangle { + return newScintilla__Rectangle((*C.Scintilla__Rectangle)(h)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Rectangle) Delete() { + C.Scintilla__Rectangle_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 *Scintilla__Rectangle) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Rectangle) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__RangeToFormat struct { + h *C.Scintilla__RangeToFormat +} + +func (this *Scintilla__RangeToFormat) cPointer() *C.Scintilla__RangeToFormat { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__RangeToFormat) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__RangeToFormat(h *C.Scintilla__RangeToFormat) *Scintilla__RangeToFormat { + if h == nil { + return nil + } + return &Scintilla__RangeToFormat{h: h} +} + +func UnsafeNewScintilla__RangeToFormat(h unsafe.Pointer) *Scintilla__RangeToFormat { + return newScintilla__RangeToFormat((*C.Scintilla__RangeToFormat)(h)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__RangeToFormat) Delete() { + C.Scintilla__RangeToFormat_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 *Scintilla__RangeToFormat) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__RangeToFormat) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__RangeToFormatFull struct { + h *C.Scintilla__RangeToFormatFull +} + +func (this *Scintilla__RangeToFormatFull) cPointer() *C.Scintilla__RangeToFormatFull { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__RangeToFormatFull) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__RangeToFormatFull(h *C.Scintilla__RangeToFormatFull) *Scintilla__RangeToFormatFull { + if h == nil { + return nil + } + return &Scintilla__RangeToFormatFull{h: h} +} + +func UnsafeNewScintilla__RangeToFormatFull(h unsafe.Pointer) *Scintilla__RangeToFormatFull { + return newScintilla__RangeToFormatFull((*C.Scintilla__RangeToFormatFull)(h)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__RangeToFormatFull) Delete() { + C.Scintilla__RangeToFormatFull_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 *Scintilla__RangeToFormatFull) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__RangeToFormatFull) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__NotifyHeader struct { + h *C.Scintilla__NotifyHeader +} + +func (this *Scintilla__NotifyHeader) cPointer() *C.Scintilla__NotifyHeader { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__NotifyHeader) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__NotifyHeader(h *C.Scintilla__NotifyHeader) *Scintilla__NotifyHeader { + if h == nil { + return nil + } + return &Scintilla__NotifyHeader{h: h} +} + +func UnsafeNewScintilla__NotifyHeader(h unsafe.Pointer) *Scintilla__NotifyHeader { + return newScintilla__NotifyHeader((*C.Scintilla__NotifyHeader)(h)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__NotifyHeader) Delete() { + C.Scintilla__NotifyHeader_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 *Scintilla__NotifyHeader) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__NotifyHeader) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__NotificationData struct { + h *C.Scintilla__NotificationData +} + +func (this *Scintilla__NotificationData) cPointer() *C.Scintilla__NotificationData { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__NotificationData) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__NotificationData(h *C.Scintilla__NotificationData) *Scintilla__NotificationData { + if h == nil { + return nil + } + return &Scintilla__NotificationData{h: h} +} + +func UnsafeNewScintilla__NotificationData(h unsafe.Pointer) *Scintilla__NotificationData { + return newScintilla__NotificationData((*C.Scintilla__NotificationData)(h)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__NotificationData) Delete() { + C.Scintilla__NotificationData_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 *Scintilla__NotificationData) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__NotificationData) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__FontParameters struct { + h *C.Scintilla__Internal__FontParameters +} + +func (this *Scintilla__Internal__FontParameters) cPointer() *C.Scintilla__Internal__FontParameters { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__FontParameters) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__FontParameters(h *C.Scintilla__Internal__FontParameters) *Scintilla__Internal__FontParameters { + if h == nil { + return nil + } + return &Scintilla__Internal__FontParameters{h: h} +} + +func UnsafeNewScintilla__Internal__FontParameters(h unsafe.Pointer) *Scintilla__Internal__FontParameters { + return newScintilla__Internal__FontParameters((*C.Scintilla__Internal__FontParameters)(h)) +} + +// NewScintilla__Internal__FontParameters constructs a new Scintilla::Internal::FontParameters object. +func NewScintilla__Internal__FontParameters(faceName_ string) *Scintilla__Internal__FontParameters { + faceName__Cstring := C.CString(faceName_) + defer C.free(unsafe.Pointer(faceName__Cstring)) + ret := C.Scintilla__Internal__FontParameters_new(faceName__Cstring) + return newScintilla__Internal__FontParameters(ret) +} + +// NewScintilla__Internal__FontParameters2 constructs a new Scintilla::Internal::FontParameters object. +func NewScintilla__Internal__FontParameters2(faceName_ string, size_ float64) *Scintilla__Internal__FontParameters { + faceName__Cstring := C.CString(faceName_) + defer C.free(unsafe.Pointer(faceName__Cstring)) + ret := C.Scintilla__Internal__FontParameters_new2(faceName__Cstring, (C.double)(size_)) + return newScintilla__Internal__FontParameters(ret) +} + +// NewScintilla__Internal__FontParameters3 constructs a new Scintilla::Internal::FontParameters object. +func NewScintilla__Internal__FontParameters3(faceName_ string, size_ float64, weight_ Scintilla__FontWeight) *Scintilla__Internal__FontParameters { + faceName__Cstring := C.CString(faceName_) + defer C.free(unsafe.Pointer(faceName__Cstring)) + ret := C.Scintilla__Internal__FontParameters_new3(faceName__Cstring, (C.double)(size_), (C.int)(weight_)) + return newScintilla__Internal__FontParameters(ret) +} + +// NewScintilla__Internal__FontParameters4 constructs a new Scintilla::Internal::FontParameters object. +func NewScintilla__Internal__FontParameters4(faceName_ string, size_ float64, weight_ Scintilla__FontWeight, italic_ bool) *Scintilla__Internal__FontParameters { + faceName__Cstring := C.CString(faceName_) + defer C.free(unsafe.Pointer(faceName__Cstring)) + ret := C.Scintilla__Internal__FontParameters_new4(faceName__Cstring, (C.double)(size_), (C.int)(weight_), (C.bool)(italic_)) + return newScintilla__Internal__FontParameters(ret) +} + +// NewScintilla__Internal__FontParameters5 constructs a new Scintilla::Internal::FontParameters object. +func NewScintilla__Internal__FontParameters5(faceName_ string, size_ float64, weight_ Scintilla__FontWeight, italic_ bool, extraFontFlag_ Scintilla__FontQuality) *Scintilla__Internal__FontParameters { + faceName__Cstring := C.CString(faceName_) + defer C.free(unsafe.Pointer(faceName__Cstring)) + ret := C.Scintilla__Internal__FontParameters_new5(faceName__Cstring, (C.double)(size_), (C.int)(weight_), (C.bool)(italic_), (C.int)(extraFontFlag_)) + return newScintilla__Internal__FontParameters(ret) +} + +// NewScintilla__Internal__FontParameters6 constructs a new Scintilla::Internal::FontParameters object. +func NewScintilla__Internal__FontParameters6(faceName_ string, size_ float64, weight_ Scintilla__FontWeight, italic_ bool, extraFontFlag_ Scintilla__FontQuality, technology_ Scintilla__Technology) *Scintilla__Internal__FontParameters { + faceName__Cstring := C.CString(faceName_) + defer C.free(unsafe.Pointer(faceName__Cstring)) + ret := C.Scintilla__Internal__FontParameters_new6(faceName__Cstring, (C.double)(size_), (C.int)(weight_), (C.bool)(italic_), (C.int)(extraFontFlag_), (C.int)(technology_)) + return newScintilla__Internal__FontParameters(ret) +} + +// NewScintilla__Internal__FontParameters7 constructs a new Scintilla::Internal::FontParameters object. +func NewScintilla__Internal__FontParameters7(faceName_ string, size_ float64, weight_ Scintilla__FontWeight, italic_ bool, extraFontFlag_ Scintilla__FontQuality, technology_ Scintilla__Technology, characterSet_ Scintilla__CharacterSet) *Scintilla__Internal__FontParameters { + faceName__Cstring := C.CString(faceName_) + defer C.free(unsafe.Pointer(faceName__Cstring)) + ret := C.Scintilla__Internal__FontParameters_new7(faceName__Cstring, (C.double)(size_), (C.int)(weight_), (C.bool)(italic_), (C.int)(extraFontFlag_), (C.int)(technology_), (C.int)(characterSet_)) + return newScintilla__Internal__FontParameters(ret) +} + +// NewScintilla__Internal__FontParameters8 constructs a new Scintilla::Internal::FontParameters object. +func NewScintilla__Internal__FontParameters8(faceName_ string, size_ float64, weight_ Scintilla__FontWeight, italic_ bool, extraFontFlag_ Scintilla__FontQuality, technology_ Scintilla__Technology, characterSet_ Scintilla__CharacterSet, localeName_ string) *Scintilla__Internal__FontParameters { + faceName__Cstring := C.CString(faceName_) + defer C.free(unsafe.Pointer(faceName__Cstring)) + localeName__Cstring := C.CString(localeName_) + defer C.free(unsafe.Pointer(localeName__Cstring)) + ret := C.Scintilla__Internal__FontParameters_new8(faceName__Cstring, (C.double)(size_), (C.int)(weight_), (C.bool)(italic_), (C.int)(extraFontFlag_), (C.int)(technology_), (C.int)(characterSet_), localeName__Cstring) + return newScintilla__Internal__FontParameters(ret) +} + +// NewScintilla__Internal__FontParameters9 constructs a new Scintilla::Internal::FontParameters object. +func NewScintilla__Internal__FontParameters9(faceName_ string, size_ float64, weight_ Scintilla__FontWeight, italic_ bool, extraFontFlag_ Scintilla__FontQuality, technology_ Scintilla__Technology, characterSet_ Scintilla__CharacterSet, localeName_ string, stretch_ Scintilla__FontStretch) *Scintilla__Internal__FontParameters { + faceName__Cstring := C.CString(faceName_) + defer C.free(unsafe.Pointer(faceName__Cstring)) + localeName__Cstring := C.CString(localeName_) + defer C.free(unsafe.Pointer(localeName__Cstring)) + ret := C.Scintilla__Internal__FontParameters_new9(faceName__Cstring, (C.double)(size_), (C.int)(weight_), (C.bool)(italic_), (C.int)(extraFontFlag_), (C.int)(technology_), (C.int)(characterSet_), localeName__Cstring, (C.int)(stretch_)) + return newScintilla__Internal__FontParameters(ret) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__FontParameters) Delete() { + C.Scintilla__Internal__FontParameters_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 *Scintilla__Internal__FontParameters) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__FontParameters) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__Font struct { + h *C.Scintilla__Internal__Font +} + +func (this *Scintilla__Internal__Font) cPointer() *C.Scintilla__Internal__Font { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__Font) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__Font(h *C.Scintilla__Internal__Font) *Scintilla__Internal__Font { + if h == nil { + return nil + } + return &Scintilla__Internal__Font{h: h} +} + +func UnsafeNewScintilla__Internal__Font(h unsafe.Pointer) *Scintilla__Internal__Font { + return newScintilla__Internal__Font((*C.Scintilla__Internal__Font)(h)) +} + +// NewScintilla__Internal__Font constructs a new Scintilla::Internal::Font object. +func NewScintilla__Internal__Font() *Scintilla__Internal__Font { + ret := C.Scintilla__Internal__Font_new() + return newScintilla__Internal__Font(ret) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__Font) Delete() { + C.Scintilla__Internal__Font_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 *Scintilla__Internal__Font) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__Font) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__IScreenLine struct { + h *C.Scintilla__Internal__IScreenLine +} + +func (this *Scintilla__Internal__IScreenLine) cPointer() *C.Scintilla__Internal__IScreenLine { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__IScreenLine) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__IScreenLine(h *C.Scintilla__Internal__IScreenLine) *Scintilla__Internal__IScreenLine { + if h == nil { + return nil + } + return &Scintilla__Internal__IScreenLine{h: h} +} + +func UnsafeNewScintilla__Internal__IScreenLine(h unsafe.Pointer) *Scintilla__Internal__IScreenLine { + return newScintilla__Internal__IScreenLine((*C.Scintilla__Internal__IScreenLine)(h)) +} + +func (this *Scintilla__Internal__IScreenLine) Length() uint64 { + return (uint64)(C.Scintilla__Internal__IScreenLine_Length(this.h)) +} + +func (this *Scintilla__Internal__IScreenLine) RepresentationCount() uint64 { + return (uint64)(C.Scintilla__Internal__IScreenLine_RepresentationCount(this.h)) +} + +func (this *Scintilla__Internal__IScreenLine) Width() float64 { + return (float64)(C.Scintilla__Internal__IScreenLine_Width(this.h)) +} + +func (this *Scintilla__Internal__IScreenLine) Height() float64 { + return (float64)(C.Scintilla__Internal__IScreenLine_Height(this.h)) +} + +func (this *Scintilla__Internal__IScreenLine) TabWidth() float64 { + return (float64)(C.Scintilla__Internal__IScreenLine_TabWidth(this.h)) +} + +func (this *Scintilla__Internal__IScreenLine) TabWidthMinimumPixels() float64 { + return (float64)(C.Scintilla__Internal__IScreenLine_TabWidthMinimumPixels(this.h)) +} + +func (this *Scintilla__Internal__IScreenLine) FontOfPosition(position uint64) *Scintilla__Internal__Font { + return UnsafeNewScintilla__Internal__Font(unsafe.Pointer(C.Scintilla__Internal__IScreenLine_FontOfPosition(this.h, (C.size_t)(position)))) +} + +func (this *Scintilla__Internal__IScreenLine) RepresentationWidth(position uint64) float64 { + return (float64)(C.Scintilla__Internal__IScreenLine_RepresentationWidth(this.h, (C.size_t)(position))) +} + +func (this *Scintilla__Internal__IScreenLine) TabPositionAfter(xPosition float64) float64 { + return (float64)(C.Scintilla__Internal__IScreenLine_TabPositionAfter(this.h, (C.double)(xPosition))) +} + +func (this *Scintilla__Internal__IScreenLine) OperatorAssign(param1 *Scintilla__Internal__IScreenLine) { + C.Scintilla__Internal__IScreenLine_OperatorAssign(this.h, param1.cPointer()) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__IScreenLine) Delete() { + C.Scintilla__Internal__IScreenLine_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 *Scintilla__Internal__IScreenLine) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__IScreenLine) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__IScreenLineLayout struct { + h *C.Scintilla__Internal__IScreenLineLayout +} + +func (this *Scintilla__Internal__IScreenLineLayout) cPointer() *C.Scintilla__Internal__IScreenLineLayout { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__IScreenLineLayout) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__IScreenLineLayout(h *C.Scintilla__Internal__IScreenLineLayout) *Scintilla__Internal__IScreenLineLayout { + if h == nil { + return nil + } + return &Scintilla__Internal__IScreenLineLayout{h: h} +} + +func UnsafeNewScintilla__Internal__IScreenLineLayout(h unsafe.Pointer) *Scintilla__Internal__IScreenLineLayout { + return newScintilla__Internal__IScreenLineLayout((*C.Scintilla__Internal__IScreenLineLayout)(h)) +} + +func (this *Scintilla__Internal__IScreenLineLayout) PositionFromX(xDistance float64, charPosition bool) uint64 { + return (uint64)(C.Scintilla__Internal__IScreenLineLayout_PositionFromX(this.h, (C.double)(xDistance), (C.bool)(charPosition))) +} + +func (this *Scintilla__Internal__IScreenLineLayout) XFromPosition(caretPosition uint64) float64 { + return (float64)(C.Scintilla__Internal__IScreenLineLayout_XFromPosition(this.h, (C.size_t)(caretPosition))) +} + +func (this *Scintilla__Internal__IScreenLineLayout) OperatorAssign(param1 *Scintilla__Internal__IScreenLineLayout) { + C.Scintilla__Internal__IScreenLineLayout_OperatorAssign(this.h, param1.cPointer()) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__IScreenLineLayout) Delete() { + C.Scintilla__Internal__IScreenLineLayout_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 *Scintilla__Internal__IScreenLineLayout) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__IScreenLineLayout) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__SurfaceMode struct { + h *C.Scintilla__Internal__SurfaceMode +} + +func (this *Scintilla__Internal__SurfaceMode) cPointer() *C.Scintilla__Internal__SurfaceMode { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__SurfaceMode) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__SurfaceMode(h *C.Scintilla__Internal__SurfaceMode) *Scintilla__Internal__SurfaceMode { + if h == nil { + return nil + } + return &Scintilla__Internal__SurfaceMode{h: h} +} + +func UnsafeNewScintilla__Internal__SurfaceMode(h unsafe.Pointer) *Scintilla__Internal__SurfaceMode { + return newScintilla__Internal__SurfaceMode((*C.Scintilla__Internal__SurfaceMode)(h)) +} + +// NewScintilla__Internal__SurfaceMode constructs a new Scintilla::Internal::SurfaceMode object. +func NewScintilla__Internal__SurfaceMode() *Scintilla__Internal__SurfaceMode { + ret := C.Scintilla__Internal__SurfaceMode_new() + return newScintilla__Internal__SurfaceMode(ret) +} + +// NewScintilla__Internal__SurfaceMode2 constructs a new Scintilla::Internal::SurfaceMode object. +func NewScintilla__Internal__SurfaceMode2(codePage_ int, bidiR2L_ bool) *Scintilla__Internal__SurfaceMode { + ret := C.Scintilla__Internal__SurfaceMode_new2((C.int)(codePage_), (C.bool)(bidiR2L_)) + return newScintilla__Internal__SurfaceMode(ret) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__SurfaceMode) Delete() { + C.Scintilla__Internal__SurfaceMode_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 *Scintilla__Internal__SurfaceMode) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__SurfaceMode) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__Surface struct { + h *C.Scintilla__Internal__Surface +} + +func (this *Scintilla__Internal__Surface) cPointer() *C.Scintilla__Internal__Surface { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__Surface) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__Surface(h *C.Scintilla__Internal__Surface) *Scintilla__Internal__Surface { + if h == nil { + return nil + } + return &Scintilla__Internal__Surface{h: h} +} + +func UnsafeNewScintilla__Internal__Surface(h unsafe.Pointer) *Scintilla__Internal__Surface { + return newScintilla__Internal__Surface((*C.Scintilla__Internal__Surface)(h)) +} + +func (this *Scintilla__Internal__Surface) Init(wid unsafe.Pointer) { + C.Scintilla__Internal__Surface_Init(this.h, wid) +} + +func (this *Scintilla__Internal__Surface) Init2(sid unsafe.Pointer, wid unsafe.Pointer) { + C.Scintilla__Internal__Surface_Init2(this.h, sid, wid) +} + +func (this *Scintilla__Internal__Surface) SetMode(mode Scintilla__Internal__SurfaceMode) { + C.Scintilla__Internal__Surface_SetMode(this.h, mode.cPointer()) +} + +func (this *Scintilla__Internal__Surface) Release() { + C.Scintilla__Internal__Surface_Release(this.h) +} + +func (this *Scintilla__Internal__Surface) SupportsFeature(feature Scintilla__Supports) int { + return (int)(C.Scintilla__Internal__Surface_SupportsFeature(this.h, (C.int)(feature))) +} + +func (this *Scintilla__Internal__Surface) Initialised() bool { + return (bool)(C.Scintilla__Internal__Surface_Initialised(this.h)) +} + +func (this *Scintilla__Internal__Surface) LogPixelsY() int { + return (int)(C.Scintilla__Internal__Surface_LogPixelsY(this.h)) +} + +func (this *Scintilla__Internal__Surface) PixelDivisions() int { + return (int)(C.Scintilla__Internal__Surface_PixelDivisions(this.h)) +} + +func (this *Scintilla__Internal__Surface) DeviceHeightFont(points int) int { + return (int)(C.Scintilla__Internal__Surface_DeviceHeightFont(this.h, (C.int)(points))) +} + +func (this *Scintilla__Internal__Surface) LineDraw(start Scintilla__Internal__Point, end Scintilla__Internal__Point, stroke Scintilla__Internal__Stroke) { + C.Scintilla__Internal__Surface_LineDraw(this.h, start.cPointer(), end.cPointer(), stroke.cPointer()) +} + +func (this *Scintilla__Internal__Surface) PolyLine(pts *Scintilla__Internal__Point, npts uint64, stroke Scintilla__Internal__Stroke) { + C.Scintilla__Internal__Surface_PolyLine(this.h, pts.cPointer(), (C.size_t)(npts), stroke.cPointer()) +} + +func (this *Scintilla__Internal__Surface) Polygon(pts *Scintilla__Internal__Point, npts uint64, fillStroke Scintilla__Internal__FillStroke) { + C.Scintilla__Internal__Surface_Polygon(this.h, pts.cPointer(), (C.size_t)(npts), fillStroke.cPointer()) +} + +func (this *Scintilla__Internal__Surface) RectangleDraw(rc Scintilla__Internal__PRectangle, fillStroke Scintilla__Internal__FillStroke) { + C.Scintilla__Internal__Surface_RectangleDraw(this.h, rc.cPointer(), fillStroke.cPointer()) +} + +func (this *Scintilla__Internal__Surface) RectangleFrame(rc Scintilla__Internal__PRectangle, stroke Scintilla__Internal__Stroke) { + C.Scintilla__Internal__Surface_RectangleFrame(this.h, rc.cPointer(), stroke.cPointer()) +} + +func (this *Scintilla__Internal__Surface) FillRectangle(rc Scintilla__Internal__PRectangle, fill Scintilla__Internal__Fill) { + C.Scintilla__Internal__Surface_FillRectangle(this.h, rc.cPointer(), fill.cPointer()) +} + +func (this *Scintilla__Internal__Surface) FillRectangleAligned(rc Scintilla__Internal__PRectangle, fill Scintilla__Internal__Fill) { + C.Scintilla__Internal__Surface_FillRectangleAligned(this.h, rc.cPointer(), fill.cPointer()) +} + +func (this *Scintilla__Internal__Surface) FillRectangle2(rc Scintilla__Internal__PRectangle, surfacePattern *Scintilla__Internal__Surface) { + C.Scintilla__Internal__Surface_FillRectangle2(this.h, rc.cPointer(), surfacePattern.cPointer()) +} + +func (this *Scintilla__Internal__Surface) RoundedRectangle(rc Scintilla__Internal__PRectangle, fillStroke Scintilla__Internal__FillStroke) { + C.Scintilla__Internal__Surface_RoundedRectangle(this.h, rc.cPointer(), fillStroke.cPointer()) +} + +func (this *Scintilla__Internal__Surface) AlphaRectangle(rc Scintilla__Internal__PRectangle, cornerSize float64, fillStroke Scintilla__Internal__FillStroke) { + C.Scintilla__Internal__Surface_AlphaRectangle(this.h, rc.cPointer(), (C.double)(cornerSize), fillStroke.cPointer()) +} + +func (this *Scintilla__Internal__Surface) DrawRGBAImage(rc Scintilla__Internal__PRectangle, width int, height int, pixelsImage *byte) { + C.Scintilla__Internal__Surface_DrawRGBAImage(this.h, rc.cPointer(), (C.int)(width), (C.int)(height), (*C.uchar)(unsafe.Pointer(pixelsImage))) +} + +func (this *Scintilla__Internal__Surface) Ellipse(rc Scintilla__Internal__PRectangle, fillStroke Scintilla__Internal__FillStroke) { + C.Scintilla__Internal__Surface_Ellipse(this.h, rc.cPointer(), fillStroke.cPointer()) +} + +func (this *Scintilla__Internal__Surface) Stadium(rc Scintilla__Internal__PRectangle, fillStroke Scintilla__Internal__FillStroke, ends Scintilla__Internal__Surface__Ends) { + C.Scintilla__Internal__Surface_Stadium(this.h, rc.cPointer(), fillStroke.cPointer(), (C.int)(ends)) +} + +func (this *Scintilla__Internal__Surface) Copy(rc Scintilla__Internal__PRectangle, from Scintilla__Internal__Point, surfaceSource *Scintilla__Internal__Surface) { + C.Scintilla__Internal__Surface_Copy(this.h, rc.cPointer(), from.cPointer(), surfaceSource.cPointer()) +} + +func (this *Scintilla__Internal__Surface) Ascent(font_ *Scintilla__Internal__Font) float64 { + return (float64)(C.Scintilla__Internal__Surface_Ascent(this.h, font_.cPointer())) +} + +func (this *Scintilla__Internal__Surface) Descent(font_ *Scintilla__Internal__Font) float64 { + return (float64)(C.Scintilla__Internal__Surface_Descent(this.h, font_.cPointer())) +} + +func (this *Scintilla__Internal__Surface) InternalLeading(font_ *Scintilla__Internal__Font) float64 { + return (float64)(C.Scintilla__Internal__Surface_InternalLeading(this.h, font_.cPointer())) +} + +func (this *Scintilla__Internal__Surface) Height(font_ *Scintilla__Internal__Font) float64 { + return (float64)(C.Scintilla__Internal__Surface_Height(this.h, font_.cPointer())) +} + +func (this *Scintilla__Internal__Surface) AverageCharWidth(font_ *Scintilla__Internal__Font) float64 { + return (float64)(C.Scintilla__Internal__Surface_AverageCharWidth(this.h, font_.cPointer())) +} + +func (this *Scintilla__Internal__Surface) SetClip(rc Scintilla__Internal__PRectangle) { + C.Scintilla__Internal__Surface_SetClip(this.h, rc.cPointer()) +} + +func (this *Scintilla__Internal__Surface) PopClip() { + C.Scintilla__Internal__Surface_PopClip(this.h) +} + +func (this *Scintilla__Internal__Surface) FlushCachedState() { + C.Scintilla__Internal__Surface_FlushCachedState(this.h) +} + +func (this *Scintilla__Internal__Surface) FlushDrawing() { + C.Scintilla__Internal__Surface_FlushDrawing(this.h) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__Surface) Delete() { + C.Scintilla__Internal__Surface_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 *Scintilla__Internal__Surface) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__Surface) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__Window struct { + h *C.Scintilla__Internal__Window +} + +func (this *Scintilla__Internal__Window) cPointer() *C.Scintilla__Internal__Window { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__Window) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__Window(h *C.Scintilla__Internal__Window) *Scintilla__Internal__Window { + if h == nil { + return nil + } + return &Scintilla__Internal__Window{h: h} +} + +func UnsafeNewScintilla__Internal__Window(h unsafe.Pointer) *Scintilla__Internal__Window { + return newScintilla__Internal__Window((*C.Scintilla__Internal__Window)(h)) +} + +// NewScintilla__Internal__Window constructs a new Scintilla::Internal::Window object. +func NewScintilla__Internal__Window() *Scintilla__Internal__Window { + ret := C.Scintilla__Internal__Window_new() + return newScintilla__Internal__Window(ret) +} + +func (this *Scintilla__Internal__Window) OperatorAssign(wid_ unsafe.Pointer) { + C.Scintilla__Internal__Window_OperatorAssign(this.h, wid_) +} + +func (this *Scintilla__Internal__Window) GetID() unsafe.Pointer { + return (unsafe.Pointer)(C.Scintilla__Internal__Window_GetID(this.h)) +} + +func (this *Scintilla__Internal__Window) Created() bool { + return (bool)(C.Scintilla__Internal__Window_Created(this.h)) +} + +func (this *Scintilla__Internal__Window) Destroy() { + C.Scintilla__Internal__Window_Destroy(this.h) +} + +func (this *Scintilla__Internal__Window) GetPosition() *Scintilla__Internal__PRectangle { + _ret := C.Scintilla__Internal__Window_GetPosition(this.h) + _goptr := newScintilla__Internal__PRectangle(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__Window) SetPosition(rc Scintilla__Internal__PRectangle) { + C.Scintilla__Internal__Window_SetPosition(this.h, rc.cPointer()) +} + +func (this *Scintilla__Internal__Window) SetPositionRelative(rc Scintilla__Internal__PRectangle, relativeTo *Scintilla__Internal__Window) { + C.Scintilla__Internal__Window_SetPositionRelative(this.h, rc.cPointer(), relativeTo.cPointer()) +} + +func (this *Scintilla__Internal__Window) GetClientPosition() *Scintilla__Internal__PRectangle { + _ret := C.Scintilla__Internal__Window_GetClientPosition(this.h) + _goptr := newScintilla__Internal__PRectangle(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__Window) Show() { + C.Scintilla__Internal__Window_Show(this.h) +} + +func (this *Scintilla__Internal__Window) InvalidateAll() { + C.Scintilla__Internal__Window_InvalidateAll(this.h) +} + +func (this *Scintilla__Internal__Window) InvalidateRectangle(rc Scintilla__Internal__PRectangle) { + C.Scintilla__Internal__Window_InvalidateRectangle(this.h, rc.cPointer()) +} + +func (this *Scintilla__Internal__Window) SetCursor(curs Scintilla__Internal__Window__Cursor) { + C.Scintilla__Internal__Window_SetCursor(this.h, (C.int)(curs)) +} + +func (this *Scintilla__Internal__Window) GetMonitorRect(pt Scintilla__Internal__Point) *Scintilla__Internal__PRectangle { + _ret := C.Scintilla__Internal__Window_GetMonitorRect(this.h, pt.cPointer()) + _goptr := newScintilla__Internal__PRectangle(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__Window) Show1(show bool) { + C.Scintilla__Internal__Window_Show1(this.h, (C.bool)(show)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__Window) Delete() { + C.Scintilla__Internal__Window_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 *Scintilla__Internal__Window) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__Window) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__ListBoxEvent struct { + h *C.Scintilla__Internal__ListBoxEvent +} + +func (this *Scintilla__Internal__ListBoxEvent) cPointer() *C.Scintilla__Internal__ListBoxEvent { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__ListBoxEvent) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__ListBoxEvent(h *C.Scintilla__Internal__ListBoxEvent) *Scintilla__Internal__ListBoxEvent { + if h == nil { + return nil + } + return &Scintilla__Internal__ListBoxEvent{h: h} +} + +func UnsafeNewScintilla__Internal__ListBoxEvent(h unsafe.Pointer) *Scintilla__Internal__ListBoxEvent { + return newScintilla__Internal__ListBoxEvent((*C.Scintilla__Internal__ListBoxEvent)(h)) +} + +// NewScintilla__Internal__ListBoxEvent constructs a new Scintilla::Internal::ListBoxEvent object. +func NewScintilla__Internal__ListBoxEvent(event_ Scintilla__Internal__ListBoxEvent__EventType) *Scintilla__Internal__ListBoxEvent { + ret := C.Scintilla__Internal__ListBoxEvent_new((C.int)(event_)) + return newScintilla__Internal__ListBoxEvent(ret) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__ListBoxEvent) Delete() { + C.Scintilla__Internal__ListBoxEvent_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 *Scintilla__Internal__ListBoxEvent) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__ListBoxEvent) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__IListBoxDelegate struct { + h *C.Scintilla__Internal__IListBoxDelegate +} + +func (this *Scintilla__Internal__IListBoxDelegate) cPointer() *C.Scintilla__Internal__IListBoxDelegate { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__IListBoxDelegate) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__IListBoxDelegate(h *C.Scintilla__Internal__IListBoxDelegate) *Scintilla__Internal__IListBoxDelegate { + if h == nil { + return nil + } + return &Scintilla__Internal__IListBoxDelegate{h: h} +} + +func UnsafeNewScintilla__Internal__IListBoxDelegate(h unsafe.Pointer) *Scintilla__Internal__IListBoxDelegate { + return newScintilla__Internal__IListBoxDelegate((*C.Scintilla__Internal__IListBoxDelegate)(h)) +} + +func (this *Scintilla__Internal__IListBoxDelegate) ListNotify(plbe *Scintilla__Internal__ListBoxEvent) { + C.Scintilla__Internal__IListBoxDelegate_ListNotify(this.h, plbe.cPointer()) +} + +func (this *Scintilla__Internal__IListBoxDelegate) OperatorAssign(param1 *Scintilla__Internal__IListBoxDelegate) { + C.Scintilla__Internal__IListBoxDelegate_OperatorAssign(this.h, param1.cPointer()) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__IListBoxDelegate) Delete() { + C.Scintilla__Internal__IListBoxDelegate_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 *Scintilla__Internal__IListBoxDelegate) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__IListBoxDelegate) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__ListOptions struct { + h *C.Scintilla__Internal__ListOptions +} + +func (this *Scintilla__Internal__ListOptions) cPointer() *C.Scintilla__Internal__ListOptions { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__ListOptions) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__ListOptions(h *C.Scintilla__Internal__ListOptions) *Scintilla__Internal__ListOptions { + if h == nil { + return nil + } + return &Scintilla__Internal__ListOptions{h: h} +} + +func UnsafeNewScintilla__Internal__ListOptions(h unsafe.Pointer) *Scintilla__Internal__ListOptions { + return newScintilla__Internal__ListOptions((*C.Scintilla__Internal__ListOptions)(h)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__ListOptions) Delete() { + C.Scintilla__Internal__ListOptions_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 *Scintilla__Internal__ListOptions) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__ListOptions) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__ListBox struct { + h *C.Scintilla__Internal__ListBox + *Scintilla__Internal__Window +} + +func (this *Scintilla__Internal__ListBox) cPointer() *C.Scintilla__Internal__ListBox { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__ListBox) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__ListBox(h *C.Scintilla__Internal__ListBox) *Scintilla__Internal__ListBox { + if h == nil { + return nil + } + return &Scintilla__Internal__ListBox{h: h, Scintilla__Internal__Window: UnsafeNewScintilla__Internal__Window(unsafe.Pointer(h))} +} + +func UnsafeNewScintilla__Internal__ListBox(h unsafe.Pointer) *Scintilla__Internal__ListBox { + return newScintilla__Internal__ListBox((*C.Scintilla__Internal__ListBox)(h)) +} + +func (this *Scintilla__Internal__ListBox) SetFont(font *Scintilla__Internal__Font) { + C.Scintilla__Internal__ListBox_SetFont(this.h, font.cPointer()) +} + +func (this *Scintilla__Internal__ListBox) Create(parent *Scintilla__Internal__Window, ctrlID int, location Scintilla__Internal__Point, lineHeight_ int, unicodeMode_ bool, technology_ Scintilla__Technology) { + C.Scintilla__Internal__ListBox_Create(this.h, parent.cPointer(), (C.int)(ctrlID), location.cPointer(), (C.int)(lineHeight_), (C.bool)(unicodeMode_), (C.int)(technology_)) +} + +func (this *Scintilla__Internal__ListBox) SetAverageCharWidth(width int) { + C.Scintilla__Internal__ListBox_SetAverageCharWidth(this.h, (C.int)(width)) +} + +func (this *Scintilla__Internal__ListBox) SetVisibleRows(rows int) { + C.Scintilla__Internal__ListBox_SetVisibleRows(this.h, (C.int)(rows)) +} + +func (this *Scintilla__Internal__ListBox) GetVisibleRows() int { + return (int)(C.Scintilla__Internal__ListBox_GetVisibleRows(this.h)) +} + +func (this *Scintilla__Internal__ListBox) GetDesiredRect() *Scintilla__Internal__PRectangle { + _ret := C.Scintilla__Internal__ListBox_GetDesiredRect(this.h) + _goptr := newScintilla__Internal__PRectangle(_ret) + _goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer + return _goptr +} + +func (this *Scintilla__Internal__ListBox) CaretFromEdge() int { + return (int)(C.Scintilla__Internal__ListBox_CaretFromEdge(this.h)) +} + +func (this *Scintilla__Internal__ListBox) Clear() { + C.Scintilla__Internal__ListBox_Clear(this.h) +} + +func (this *Scintilla__Internal__ListBox) Append(s string) { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + C.Scintilla__Internal__ListBox_Append(this.h, s_Cstring) +} + +func (this *Scintilla__Internal__ListBox) Length() int { + return (int)(C.Scintilla__Internal__ListBox_Length(this.h)) +} + +func (this *Scintilla__Internal__ListBox) Select(n int) { + C.Scintilla__Internal__ListBox_Select(this.h, (C.int)(n)) +} + +func (this *Scintilla__Internal__ListBox) GetSelection() int { + return (int)(C.Scintilla__Internal__ListBox_GetSelection(this.h)) +} + +func (this *Scintilla__Internal__ListBox) Find(prefix string) int { + prefix_Cstring := C.CString(prefix) + defer C.free(unsafe.Pointer(prefix_Cstring)) + return (int)(C.Scintilla__Internal__ListBox_Find(this.h, prefix_Cstring)) +} + +func (this *Scintilla__Internal__ListBox) RegisterImage(typeVal int, xpm_data string) { + xpm_data_Cstring := C.CString(xpm_data) + defer C.free(unsafe.Pointer(xpm_data_Cstring)) + C.Scintilla__Internal__ListBox_RegisterImage(this.h, (C.int)(typeVal), xpm_data_Cstring) +} + +func (this *Scintilla__Internal__ListBox) RegisterRGBAImage(typeVal int, width int, height int, pixelsImage *byte) { + C.Scintilla__Internal__ListBox_RegisterRGBAImage(this.h, (C.int)(typeVal), (C.int)(width), (C.int)(height), (*C.uchar)(unsafe.Pointer(pixelsImage))) +} + +func (this *Scintilla__Internal__ListBox) ClearRegisteredImages() { + C.Scintilla__Internal__ListBox_ClearRegisteredImages(this.h) +} + +func (this *Scintilla__Internal__ListBox) SetDelegate(lbDelegate *Scintilla__Internal__IListBoxDelegate) { + C.Scintilla__Internal__ListBox_SetDelegate(this.h, lbDelegate.cPointer()) +} + +func (this *Scintilla__Internal__ListBox) SetList(list string, separator int8, typesep int8) { + list_Cstring := C.CString(list) + defer C.free(unsafe.Pointer(list_Cstring)) + C.Scintilla__Internal__ListBox_SetList(this.h, list_Cstring, (C.char)(separator), (C.char)(typesep)) +} + +func (this *Scintilla__Internal__ListBox) SetOptions(options_ Scintilla__Internal__ListOptions) { + C.Scintilla__Internal__ListBox_SetOptions(this.h, options_.cPointer()) +} + +func (this *Scintilla__Internal__ListBox) Append2(s string, typeVal int) { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + C.Scintilla__Internal__ListBox_Append2(this.h, s_Cstring, (C.int)(typeVal)) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__ListBox) Delete() { + C.Scintilla__Internal__ListBox_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 *Scintilla__Internal__ListBox) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__ListBox) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Scintilla__Internal__Menu struct { + h *C.Scintilla__Internal__Menu +} + +func (this *Scintilla__Internal__Menu) cPointer() *C.Scintilla__Internal__Menu { + if this == nil { + return nil + } + return this.h +} + +func (this *Scintilla__Internal__Menu) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintilla__Internal__Menu(h *C.Scintilla__Internal__Menu) *Scintilla__Internal__Menu { + if h == nil { + return nil + } + return &Scintilla__Internal__Menu{h: h} +} + +func UnsafeNewScintilla__Internal__Menu(h unsafe.Pointer) *Scintilla__Internal__Menu { + return newScintilla__Internal__Menu((*C.Scintilla__Internal__Menu)(h)) +} + +// NewScintilla__Internal__Menu constructs a new Scintilla::Internal::Menu object. +func NewScintilla__Internal__Menu() *Scintilla__Internal__Menu { + ret := C.Scintilla__Internal__Menu_new() + return newScintilla__Internal__Menu(ret) +} + +func (this *Scintilla__Internal__Menu) GetID() unsafe.Pointer { + return (unsafe.Pointer)(C.Scintilla__Internal__Menu_GetID(this.h)) +} + +func (this *Scintilla__Internal__Menu) CreatePopUp() { + C.Scintilla__Internal__Menu_CreatePopUp(this.h) +} + +func (this *Scintilla__Internal__Menu) Destroy() { + C.Scintilla__Internal__Menu_Destroy(this.h) +} + +func (this *Scintilla__Internal__Menu) Show(pt Scintilla__Internal__Point, w *Scintilla__Internal__Window) { + C.Scintilla__Internal__Menu_Show(this.h, pt.cPointer(), w.cPointer()) +} + +// Delete this object from C++ memory. +func (this *Scintilla__Internal__Menu) Delete() { + C.Scintilla__Internal__Menu_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 *Scintilla__Internal__Menu) GoGC() { + runtime.SetFinalizer(this, func(this *Scintilla__Internal__Menu) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Sci_CharacterRange struct { + h *C.Sci_CharacterRange +} + +func (this *Sci_CharacterRange) cPointer() *C.Sci_CharacterRange { + if this == nil { + return nil + } + return this.h +} + +func (this *Sci_CharacterRange) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newSci_CharacterRange(h *C.Sci_CharacterRange) *Sci_CharacterRange { + if h == nil { + return nil + } + return &Sci_CharacterRange{h: h} +} + +func UnsafeNewSci_CharacterRange(h unsafe.Pointer) *Sci_CharacterRange { + return newSci_CharacterRange((*C.Sci_CharacterRange)(h)) +} + +// Delete this object from C++ memory. +func (this *Sci_CharacterRange) Delete() { + C.Sci_CharacterRange_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 *Sci_CharacterRange) GoGC() { + runtime.SetFinalizer(this, func(this *Sci_CharacterRange) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Sci_CharacterRangeFull struct { + h *C.Sci_CharacterRangeFull +} + +func (this *Sci_CharacterRangeFull) cPointer() *C.Sci_CharacterRangeFull { + if this == nil { + return nil + } + return this.h +} + +func (this *Sci_CharacterRangeFull) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newSci_CharacterRangeFull(h *C.Sci_CharacterRangeFull) *Sci_CharacterRangeFull { + if h == nil { + return nil + } + return &Sci_CharacterRangeFull{h: h} +} + +func UnsafeNewSci_CharacterRangeFull(h unsafe.Pointer) *Sci_CharacterRangeFull { + return newSci_CharacterRangeFull((*C.Sci_CharacterRangeFull)(h)) +} + +// Delete this object from C++ memory. +func (this *Sci_CharacterRangeFull) Delete() { + C.Sci_CharacterRangeFull_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 *Sci_CharacterRangeFull) GoGC() { + runtime.SetFinalizer(this, func(this *Sci_CharacterRangeFull) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Sci_TextRange struct { + h *C.Sci_TextRange +} + +func (this *Sci_TextRange) cPointer() *C.Sci_TextRange { + if this == nil { + return nil + } + return this.h +} + +func (this *Sci_TextRange) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newSci_TextRange(h *C.Sci_TextRange) *Sci_TextRange { + if h == nil { + return nil + } + return &Sci_TextRange{h: h} +} + +func UnsafeNewSci_TextRange(h unsafe.Pointer) *Sci_TextRange { + return newSci_TextRange((*C.Sci_TextRange)(h)) +} + +// Delete this object from C++ memory. +func (this *Sci_TextRange) Delete() { + C.Sci_TextRange_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 *Sci_TextRange) GoGC() { + runtime.SetFinalizer(this, func(this *Sci_TextRange) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Sci_TextRangeFull struct { + h *C.Sci_TextRangeFull +} + +func (this *Sci_TextRangeFull) cPointer() *C.Sci_TextRangeFull { + if this == nil { + return nil + } + return this.h +} + +func (this *Sci_TextRangeFull) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newSci_TextRangeFull(h *C.Sci_TextRangeFull) *Sci_TextRangeFull { + if h == nil { + return nil + } + return &Sci_TextRangeFull{h: h} +} + +func UnsafeNewSci_TextRangeFull(h unsafe.Pointer) *Sci_TextRangeFull { + return newSci_TextRangeFull((*C.Sci_TextRangeFull)(h)) +} + +// Delete this object from C++ memory. +func (this *Sci_TextRangeFull) Delete() { + C.Sci_TextRangeFull_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 *Sci_TextRangeFull) GoGC() { + runtime.SetFinalizer(this, func(this *Sci_TextRangeFull) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Sci_TextToFind struct { + h *C.Sci_TextToFind +} + +func (this *Sci_TextToFind) cPointer() *C.Sci_TextToFind { + if this == nil { + return nil + } + return this.h +} + +func (this *Sci_TextToFind) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newSci_TextToFind(h *C.Sci_TextToFind) *Sci_TextToFind { + if h == nil { + return nil + } + return &Sci_TextToFind{h: h} +} + +func UnsafeNewSci_TextToFind(h unsafe.Pointer) *Sci_TextToFind { + return newSci_TextToFind((*C.Sci_TextToFind)(h)) +} + +// Delete this object from C++ memory. +func (this *Sci_TextToFind) Delete() { + C.Sci_TextToFind_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 *Sci_TextToFind) GoGC() { + runtime.SetFinalizer(this, func(this *Sci_TextToFind) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Sci_TextToFindFull struct { + h *C.Sci_TextToFindFull +} + +func (this *Sci_TextToFindFull) cPointer() *C.Sci_TextToFindFull { + if this == nil { + return nil + } + return this.h +} + +func (this *Sci_TextToFindFull) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newSci_TextToFindFull(h *C.Sci_TextToFindFull) *Sci_TextToFindFull { + if h == nil { + return nil + } + return &Sci_TextToFindFull{h: h} +} + +func UnsafeNewSci_TextToFindFull(h unsafe.Pointer) *Sci_TextToFindFull { + return newSci_TextToFindFull((*C.Sci_TextToFindFull)(h)) +} + +// Delete this object from C++ memory. +func (this *Sci_TextToFindFull) Delete() { + C.Sci_TextToFindFull_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 *Sci_TextToFindFull) GoGC() { + runtime.SetFinalizer(this, func(this *Sci_TextToFindFull) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Sci_Rectangle struct { + h *C.Sci_Rectangle +} + +func (this *Sci_Rectangle) cPointer() *C.Sci_Rectangle { + if this == nil { + return nil + } + return this.h +} + +func (this *Sci_Rectangle) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newSci_Rectangle(h *C.Sci_Rectangle) *Sci_Rectangle { + if h == nil { + return nil + } + return &Sci_Rectangle{h: h} +} + +func UnsafeNewSci_Rectangle(h unsafe.Pointer) *Sci_Rectangle { + return newSci_Rectangle((*C.Sci_Rectangle)(h)) +} + +// Delete this object from C++ memory. +func (this *Sci_Rectangle) Delete() { + C.Sci_Rectangle_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 *Sci_Rectangle) GoGC() { + runtime.SetFinalizer(this, func(this *Sci_Rectangle) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Sci_RangeToFormat struct { + h *C.Sci_RangeToFormat +} + +func (this *Sci_RangeToFormat) cPointer() *C.Sci_RangeToFormat { + if this == nil { + return nil + } + return this.h +} + +func (this *Sci_RangeToFormat) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newSci_RangeToFormat(h *C.Sci_RangeToFormat) *Sci_RangeToFormat { + if h == nil { + return nil + } + return &Sci_RangeToFormat{h: h} +} + +func UnsafeNewSci_RangeToFormat(h unsafe.Pointer) *Sci_RangeToFormat { + return newSci_RangeToFormat((*C.Sci_RangeToFormat)(h)) +} + +// Delete this object from C++ memory. +func (this *Sci_RangeToFormat) Delete() { + C.Sci_RangeToFormat_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 *Sci_RangeToFormat) GoGC() { + runtime.SetFinalizer(this, func(this *Sci_RangeToFormat) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Sci_RangeToFormatFull struct { + h *C.Sci_RangeToFormatFull +} + +func (this *Sci_RangeToFormatFull) cPointer() *C.Sci_RangeToFormatFull { + if this == nil { + return nil + } + return this.h +} + +func (this *Sci_RangeToFormatFull) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newSci_RangeToFormatFull(h *C.Sci_RangeToFormatFull) *Sci_RangeToFormatFull { + if h == nil { + return nil + } + return &Sci_RangeToFormatFull{h: h} +} + +func UnsafeNewSci_RangeToFormatFull(h unsafe.Pointer) *Sci_RangeToFormatFull { + return newSci_RangeToFormatFull((*C.Sci_RangeToFormatFull)(h)) +} + +// Delete this object from C++ memory. +func (this *Sci_RangeToFormatFull) Delete() { + C.Sci_RangeToFormatFull_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 *Sci_RangeToFormatFull) GoGC() { + runtime.SetFinalizer(this, func(this *Sci_RangeToFormatFull) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type Sci_NotifyHeader struct { + h *C.Sci_NotifyHeader +} + +func (this *Sci_NotifyHeader) cPointer() *C.Sci_NotifyHeader { + if this == nil { + return nil + } + return this.h +} + +func (this *Sci_NotifyHeader) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newSci_NotifyHeader(h *C.Sci_NotifyHeader) *Sci_NotifyHeader { + if h == nil { + return nil + } + return &Sci_NotifyHeader{h: h} +} + +func UnsafeNewSci_NotifyHeader(h unsafe.Pointer) *Sci_NotifyHeader { + return newSci_NotifyHeader((*C.Sci_NotifyHeader)(h)) +} + +// Delete this object from C++ memory. +func (this *Sci_NotifyHeader) Delete() { + C.Sci_NotifyHeader_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 *Sci_NotifyHeader) GoGC() { + runtime.SetFinalizer(this, func(this *Sci_NotifyHeader) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type SCNotification struct { + h *C.SCNotification +} + +func (this *SCNotification) cPointer() *C.SCNotification { + if this == nil { + return nil + } + return this.h +} + +func (this *SCNotification) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newSCNotification(h *C.SCNotification) *SCNotification { + if h == nil { + return nil + } + return &SCNotification{h: h} +} + +func UnsafeNewSCNotification(h unsafe.Pointer) *SCNotification { + return newSCNotification((*C.SCNotification)(h)) +} + +// Delete this object from C++ memory. +func (this *SCNotification) Delete() { + C.SCNotification_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 *SCNotification) GoGC() { + runtime.SetFinalizer(this, func(this *SCNotification) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type ScintillaEditBase struct { + h *C.ScintillaEditBase + *qt.QAbstractScrollArea +} + +func (this *ScintillaEditBase) cPointer() *C.ScintillaEditBase { + if this == nil { + return nil + } + return this.h +} + +func (this *ScintillaEditBase) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintillaEditBase(h *C.ScintillaEditBase) *ScintillaEditBase { + if h == nil { + return nil + } + return &ScintillaEditBase{h: h, QAbstractScrollArea: qt.UnsafeNewQAbstractScrollArea(unsafe.Pointer(h))} +} + +func UnsafeNewScintillaEditBase(h unsafe.Pointer) *ScintillaEditBase { + return newScintillaEditBase((*C.ScintillaEditBase)(h)) +} + +// NewScintillaEditBase constructs a new ScintillaEditBase object. +func NewScintillaEditBase() *ScintillaEditBase { + ret := C.ScintillaEditBase_new() + return newScintillaEditBase(ret) +} + +// NewScintillaEditBase2 constructs a new ScintillaEditBase object. +func NewScintillaEditBase2(parent *qt.QWidget) *ScintillaEditBase { + ret := C.ScintillaEditBase_new2((*C.QWidget)(parent.UnsafePointer())) + return newScintillaEditBase(ret) +} + +func (this *ScintillaEditBase) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.ScintillaEditBase_MetaObject(this.h))) +} + +func (this *ScintillaEditBase) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.ScintillaEditBase_Metacast(this.h, param1_Cstring)) +} + +func ScintillaEditBase_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.ScintillaEditBase_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func ScintillaEditBase_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.ScintillaEditBase_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *ScintillaEditBase) Send(iMessage uint) uintptr { + return (uintptr)(C.ScintillaEditBase_Send(this.h, (C.uint)(iMessage))) +} + +func (this *ScintillaEditBase) Sends(iMessage uint) uintptr { + return (uintptr)(C.ScintillaEditBase_Sends(this.h, (C.uint)(iMessage))) +} + +func (this *ScintillaEditBase) ScrollHorizontal(value int) { + C.ScintillaEditBase_ScrollHorizontal(this.h, (C.int)(value)) +} + +func (this *ScintillaEditBase) ScrollVertical(value int) { + C.ScintillaEditBase_ScrollVertical(this.h, (C.int)(value)) +} + +func (this *ScintillaEditBase) NotifyParent(scn Scintilla__NotificationData) { + C.ScintillaEditBase_NotifyParent(this.h, scn.cPointer()) +} + +func (this *ScintillaEditBase) EventCommand(wParam uintptr, lParam uintptr) { + C.ScintillaEditBase_EventCommand(this.h, (C.uintptr_t)(wParam), (C.intptr_t)(lParam)) +} + +func (this *ScintillaEditBase) HorizontalScrolled(value int) { + C.ScintillaEditBase_HorizontalScrolled(this.h, (C.int)(value)) +} +func (this *ScintillaEditBase) OnHorizontalScrolled(slot func(value int)) { + C.ScintillaEditBase_connect_HorizontalScrolled(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_HorizontalScrolled +func miqt_exec_callback_ScintillaEditBase_HorizontalScrolled(cb C.intptr_t, value C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(value int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(value) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) VerticalScrolled(value int) { + C.ScintillaEditBase_VerticalScrolled(this.h, (C.int)(value)) +} +func (this *ScintillaEditBase) OnVerticalScrolled(slot func(value int)) { + C.ScintillaEditBase_connect_VerticalScrolled(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_VerticalScrolled +func miqt_exec_callback_ScintillaEditBase_VerticalScrolled(cb C.intptr_t, value C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(value int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(value) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) HorizontalRangeChanged(max int, page int) { + C.ScintillaEditBase_HorizontalRangeChanged(this.h, (C.int)(max), (C.int)(page)) +} +func (this *ScintillaEditBase) OnHorizontalRangeChanged(slot func(max int, page int)) { + C.ScintillaEditBase_connect_HorizontalRangeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_HorizontalRangeChanged +func miqt_exec_callback_ScintillaEditBase_HorizontalRangeChanged(cb C.intptr_t, max C.int, page C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(max int, page int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(max) + + slotval2 := (int)(page) + + gofunc(slotval1, slotval2) +} + +func (this *ScintillaEditBase) VerticalRangeChanged(max int, page int) { + C.ScintillaEditBase_VerticalRangeChanged(this.h, (C.int)(max), (C.int)(page)) +} +func (this *ScintillaEditBase) OnVerticalRangeChanged(slot func(max int, page int)) { + C.ScintillaEditBase_connect_VerticalRangeChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_VerticalRangeChanged +func miqt_exec_callback_ScintillaEditBase_VerticalRangeChanged(cb C.intptr_t, max C.int, page C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(max int, page int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(max) + + slotval2 := (int)(page) + + gofunc(slotval1, slotval2) +} + +func (this *ScintillaEditBase) NotifyChange() { + C.ScintillaEditBase_NotifyChange(this.h) +} +func (this *ScintillaEditBase) OnNotifyChange(slot func()) { + C.ScintillaEditBase_connect_NotifyChange(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_NotifyChange +func miqt_exec_callback_ScintillaEditBase_NotifyChange(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 *ScintillaEditBase) LinesAdded(linesAdded uintptr) { + C.ScintillaEditBase_LinesAdded(this.h, (C.intptr_t)(linesAdded)) +} +func (this *ScintillaEditBase) OnLinesAdded(slot func(linesAdded uintptr)) { + C.ScintillaEditBase_connect_LinesAdded(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_LinesAdded +func miqt_exec_callback_ScintillaEditBase_LinesAdded(cb C.intptr_t, linesAdded C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func(linesAdded uintptr)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (uintptr)(linesAdded) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) AboutToCopy(data *qt.QMimeData) { + C.ScintillaEditBase_AboutToCopy(this.h, (*C.QMimeData)(data.UnsafePointer())) +} +func (this *ScintillaEditBase) OnAboutToCopy(slot func(data *qt.QMimeData)) { + C.ScintillaEditBase_connect_AboutToCopy(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_AboutToCopy +func miqt_exec_callback_ScintillaEditBase_AboutToCopy(cb C.intptr_t, data *C.QMimeData) { + gofunc, ok := cgo.Handle(cb).Value().(func(data *qt.QMimeData)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := qt.UnsafeNewQMimeData(unsafe.Pointer(data)) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) StyleNeeded(position uintptr) { + C.ScintillaEditBase_StyleNeeded(this.h, (C.intptr_t)(position)) +} +func (this *ScintillaEditBase) OnStyleNeeded(slot func(position uintptr)) { + C.ScintillaEditBase_connect_StyleNeeded(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_StyleNeeded +func miqt_exec_callback_ScintillaEditBase_StyleNeeded(cb C.intptr_t, position C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func(position uintptr)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (uintptr)(position) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) CharAdded(ch int) { + C.ScintillaEditBase_CharAdded(this.h, (C.int)(ch)) +} +func (this *ScintillaEditBase) OnCharAdded(slot func(ch int)) { + C.ScintillaEditBase_connect_CharAdded(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_CharAdded +func miqt_exec_callback_ScintillaEditBase_CharAdded(cb C.intptr_t, ch C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(ch int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(ch) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) SavePointChanged(dirty bool) { + C.ScintillaEditBase_SavePointChanged(this.h, (C.bool)(dirty)) +} +func (this *ScintillaEditBase) OnSavePointChanged(slot func(dirty bool)) { + C.ScintillaEditBase_connect_SavePointChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_SavePointChanged +func miqt_exec_callback_ScintillaEditBase_SavePointChanged(cb C.intptr_t, dirty C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(dirty bool)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (bool)(dirty) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) ModifyAttemptReadOnly() { + C.ScintillaEditBase_ModifyAttemptReadOnly(this.h) +} +func (this *ScintillaEditBase) OnModifyAttemptReadOnly(slot func()) { + C.ScintillaEditBase_connect_ModifyAttemptReadOnly(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_ModifyAttemptReadOnly +func miqt_exec_callback_ScintillaEditBase_ModifyAttemptReadOnly(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 *ScintillaEditBase) Key(key int) { + C.ScintillaEditBase_Key(this.h, (C.int)(key)) +} +func (this *ScintillaEditBase) OnKey(slot func(key int)) { + C.ScintillaEditBase_connect_Key(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_Key +func miqt_exec_callback_ScintillaEditBase_Key(cb C.intptr_t, key C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(key int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(key) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) DoubleClick(position uintptr, line uintptr) { + C.ScintillaEditBase_DoubleClick(this.h, (C.intptr_t)(position), (C.intptr_t)(line)) +} +func (this *ScintillaEditBase) OnDoubleClick(slot func(position uintptr, line uintptr)) { + C.ScintillaEditBase_connect_DoubleClick(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_DoubleClick +func miqt_exec_callback_ScintillaEditBase_DoubleClick(cb C.intptr_t, position C.intptr_t, line C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func(position uintptr, line uintptr)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (uintptr)(position) + + slotval2 := (uintptr)(line) + + gofunc(slotval1, slotval2) +} + +func (this *ScintillaEditBase) UpdateUi(updated Scintilla__Update) { + C.ScintillaEditBase_UpdateUi(this.h, (C.int)(updated)) +} +func (this *ScintillaEditBase) OnUpdateUi(slot func(updated Scintilla__Update)) { + C.ScintillaEditBase_connect_UpdateUi(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_UpdateUi +func miqt_exec_callback_ScintillaEditBase_UpdateUi(cb C.intptr_t, updated C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(updated Scintilla__Update)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (Scintilla__Update)(updated) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) Modified(typeVal Scintilla__ModificationFlags, position uintptr, length uintptr, linesAdded uintptr, text []byte, line uintptr, foldNow Scintilla__FoldLevel, foldPrev Scintilla__FoldLevel) { + text_alias := C.struct_miqt_string{} + text_alias.data = (*C.char)(unsafe.Pointer(&text[0])) + text_alias.len = C.size_t(len(text)) + C.ScintillaEditBase_Modified(this.h, (C.int)(typeVal), (C.intptr_t)(position), (C.intptr_t)(length), (C.intptr_t)(linesAdded), text_alias, (C.intptr_t)(line), (C.int)(foldNow), (C.int)(foldPrev)) +} +func (this *ScintillaEditBase) OnModified(slot func(typeVal Scintilla__ModificationFlags, position uintptr, length uintptr, linesAdded uintptr, text []byte, line uintptr, foldNow Scintilla__FoldLevel, foldPrev Scintilla__FoldLevel)) { + C.ScintillaEditBase_connect_Modified(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_Modified +func miqt_exec_callback_ScintillaEditBase_Modified(cb C.intptr_t, typeVal C.int, position C.intptr_t, length C.intptr_t, linesAdded C.intptr_t, text C.struct_miqt_string, line C.intptr_t, foldNow C.int, foldPrev C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(typeVal Scintilla__ModificationFlags, position uintptr, length uintptr, linesAdded uintptr, text []byte, line uintptr, foldNow Scintilla__FoldLevel, foldPrev Scintilla__FoldLevel)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (Scintilla__ModificationFlags)(typeVal) + + slotval2 := (uintptr)(position) + + slotval3 := (uintptr)(length) + + slotval4 := (uintptr)(linesAdded) + + var text_bytearray C.struct_miqt_string = text + text_ret := C.GoBytes(unsafe.Pointer(text_bytearray.data), C.int(int64(text_bytearray.len))) + C.free(unsafe.Pointer(text_bytearray.data)) + slotval5 := text_ret + slotval6 := (uintptr)(line) + + slotval7 := (Scintilla__FoldLevel)(foldNow) + + slotval8 := (Scintilla__FoldLevel)(foldPrev) + + gofunc(slotval1, slotval2, slotval3, slotval4, slotval5, slotval6, slotval7, slotval8) +} + +func (this *ScintillaEditBase) MacroRecord(message Scintilla__Message, wParam uintptr, lParam uintptr) { + C.ScintillaEditBase_MacroRecord(this.h, (C.int)(message), (C.uintptr_t)(wParam), (C.intptr_t)(lParam)) +} +func (this *ScintillaEditBase) OnMacroRecord(slot func(message Scintilla__Message, wParam uintptr, lParam uintptr)) { + C.ScintillaEditBase_connect_MacroRecord(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_MacroRecord +func miqt_exec_callback_ScintillaEditBase_MacroRecord(cb C.intptr_t, message C.int, wParam C.uintptr_t, lParam C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func(message Scintilla__Message, wParam uintptr, lParam uintptr)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (Scintilla__Message)(message) + + slotval2 := (uintptr)(wParam) + + slotval3 := (uintptr)(lParam) + + gofunc(slotval1, slotval2, slotval3) +} + +func (this *ScintillaEditBase) MarginClicked(position uintptr, modifiers Scintilla__KeyMod, margin int) { + C.ScintillaEditBase_MarginClicked(this.h, (C.intptr_t)(position), (C.int)(modifiers), (C.int)(margin)) +} +func (this *ScintillaEditBase) OnMarginClicked(slot func(position uintptr, modifiers Scintilla__KeyMod, margin int)) { + C.ScintillaEditBase_connect_MarginClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_MarginClicked +func miqt_exec_callback_ScintillaEditBase_MarginClicked(cb C.intptr_t, position C.intptr_t, modifiers C.int, margin C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position uintptr, modifiers Scintilla__KeyMod, margin int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (uintptr)(position) + + slotval2 := (Scintilla__KeyMod)(modifiers) + + slotval3 := (int)(margin) + + gofunc(slotval1, slotval2, slotval3) +} + +func (this *ScintillaEditBase) TextAreaClicked(line uintptr, modifiers int) { + C.ScintillaEditBase_TextAreaClicked(this.h, (C.intptr_t)(line), (C.int)(modifiers)) +} +func (this *ScintillaEditBase) OnTextAreaClicked(slot func(line uintptr, modifiers int)) { + C.ScintillaEditBase_connect_TextAreaClicked(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_TextAreaClicked +func miqt_exec_callback_ScintillaEditBase_TextAreaClicked(cb C.intptr_t, line C.intptr_t, modifiers C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(line uintptr, modifiers int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (uintptr)(line) + + slotval2 := (int)(modifiers) + + gofunc(slotval1, slotval2) +} + +func (this *ScintillaEditBase) NeedShown(position uintptr, length uintptr) { + C.ScintillaEditBase_NeedShown(this.h, (C.intptr_t)(position), (C.intptr_t)(length)) +} +func (this *ScintillaEditBase) OnNeedShown(slot func(position uintptr, length uintptr)) { + C.ScintillaEditBase_connect_NeedShown(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_NeedShown +func miqt_exec_callback_ScintillaEditBase_NeedShown(cb C.intptr_t, position C.intptr_t, length C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func(position uintptr, length uintptr)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (uintptr)(position) + + slotval2 := (uintptr)(length) + + gofunc(slotval1, slotval2) +} + +func (this *ScintillaEditBase) Painted() { + C.ScintillaEditBase_Painted(this.h) +} +func (this *ScintillaEditBase) OnPainted(slot func()) { + C.ScintillaEditBase_connect_Painted(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_Painted +func miqt_exec_callback_ScintillaEditBase_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 *ScintillaEditBase) UserListSelection() { + C.ScintillaEditBase_UserListSelection(this.h) +} +func (this *ScintillaEditBase) OnUserListSelection(slot func()) { + C.ScintillaEditBase_connect_UserListSelection(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_UserListSelection +func miqt_exec_callback_ScintillaEditBase_UserListSelection(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 *ScintillaEditBase) UriDropped(uri string) { + uri_ms := C.struct_miqt_string{} + uri_ms.data = C.CString(uri) + uri_ms.len = C.size_t(len(uri)) + defer C.free(unsafe.Pointer(uri_ms.data)) + C.ScintillaEditBase_UriDropped(this.h, uri_ms) +} +func (this *ScintillaEditBase) OnUriDropped(slot func(uri string)) { + C.ScintillaEditBase_connect_UriDropped(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_UriDropped +func miqt_exec_callback_ScintillaEditBase_UriDropped(cb C.intptr_t, uri C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(uri string)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + var uri_ms C.struct_miqt_string = uri + uri_ret := C.GoStringN(uri_ms.data, C.int(int64(uri_ms.len))) + C.free(unsafe.Pointer(uri_ms.data)) + slotval1 := uri_ret + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) DwellStart(x int, y int) { + C.ScintillaEditBase_DwellStart(this.h, (C.int)(x), (C.int)(y)) +} +func (this *ScintillaEditBase) OnDwellStart(slot func(x int, y int)) { + C.ScintillaEditBase_connect_DwellStart(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_DwellStart +func miqt_exec_callback_ScintillaEditBase_DwellStart(cb C.intptr_t, x C.int, y C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(x int, y int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(x) + + slotval2 := (int)(y) + + gofunc(slotval1, slotval2) +} + +func (this *ScintillaEditBase) DwellEnd(x int, y int) { + C.ScintillaEditBase_DwellEnd(this.h, (C.int)(x), (C.int)(y)) +} +func (this *ScintillaEditBase) OnDwellEnd(slot func(x int, y int)) { + C.ScintillaEditBase_connect_DwellEnd(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_DwellEnd +func miqt_exec_callback_ScintillaEditBase_DwellEnd(cb C.intptr_t, x C.int, y C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(x int, y int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(x) + + slotval2 := (int)(y) + + gofunc(slotval1, slotval2) +} + +func (this *ScintillaEditBase) Zoom(zoom int) { + C.ScintillaEditBase_Zoom(this.h, (C.int)(zoom)) +} +func (this *ScintillaEditBase) OnZoom(slot func(zoom int)) { + C.ScintillaEditBase_connect_Zoom(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_Zoom +func miqt_exec_callback_ScintillaEditBase_Zoom(cb C.intptr_t, zoom C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(zoom int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(zoom) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) HotSpotClick(position uintptr, modifiers Scintilla__KeyMod) { + C.ScintillaEditBase_HotSpotClick(this.h, (C.intptr_t)(position), (C.int)(modifiers)) +} +func (this *ScintillaEditBase) OnHotSpotClick(slot func(position uintptr, modifiers Scintilla__KeyMod)) { + C.ScintillaEditBase_connect_HotSpotClick(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_HotSpotClick +func miqt_exec_callback_ScintillaEditBase_HotSpotClick(cb C.intptr_t, position C.intptr_t, modifiers C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position uintptr, modifiers Scintilla__KeyMod)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (uintptr)(position) + + slotval2 := (Scintilla__KeyMod)(modifiers) + + gofunc(slotval1, slotval2) +} + +func (this *ScintillaEditBase) HotSpotDoubleClick(position uintptr, modifiers Scintilla__KeyMod) { + C.ScintillaEditBase_HotSpotDoubleClick(this.h, (C.intptr_t)(position), (C.int)(modifiers)) +} +func (this *ScintillaEditBase) OnHotSpotDoubleClick(slot func(position uintptr, modifiers Scintilla__KeyMod)) { + C.ScintillaEditBase_connect_HotSpotDoubleClick(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_HotSpotDoubleClick +func miqt_exec_callback_ScintillaEditBase_HotSpotDoubleClick(cb C.intptr_t, position C.intptr_t, modifiers C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position uintptr, modifiers Scintilla__KeyMod)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (uintptr)(position) + + slotval2 := (Scintilla__KeyMod)(modifiers) + + gofunc(slotval1, slotval2) +} + +func (this *ScintillaEditBase) CallTipClick() { + C.ScintillaEditBase_CallTipClick(this.h) +} +func (this *ScintillaEditBase) OnCallTipClick(slot func()) { + C.ScintillaEditBase_connect_CallTipClick(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_CallTipClick +func miqt_exec_callback_ScintillaEditBase_CallTipClick(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 *ScintillaEditBase) AutoCompleteSelection(position uintptr, 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.ScintillaEditBase_AutoCompleteSelection(this.h, (C.intptr_t)(position), text_ms) +} +func (this *ScintillaEditBase) OnAutoCompleteSelection(slot func(position uintptr, text string)) { + C.ScintillaEditBase_connect_AutoCompleteSelection(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_AutoCompleteSelection +func miqt_exec_callback_ScintillaEditBase_AutoCompleteSelection(cb C.intptr_t, position C.intptr_t, text C.struct_miqt_string) { + gofunc, ok := cgo.Handle(cb).Value().(func(position uintptr, text string)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (uintptr)(position) + + var text_ms C.struct_miqt_string = text + text_ret := C.GoStringN(text_ms.data, C.int(int64(text_ms.len))) + C.free(unsafe.Pointer(text_ms.data)) + slotval2 := text_ret + + gofunc(slotval1, slotval2) +} + +func (this *ScintillaEditBase) AutoCompleteCancelled() { + C.ScintillaEditBase_AutoCompleteCancelled(this.h) +} +func (this *ScintillaEditBase) OnAutoCompleteCancelled(slot func()) { + C.ScintillaEditBase_connect_AutoCompleteCancelled(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_AutoCompleteCancelled +func miqt_exec_callback_ScintillaEditBase_AutoCompleteCancelled(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 *ScintillaEditBase) FocusChanged(focused bool) { + C.ScintillaEditBase_FocusChanged(this.h, (C.bool)(focused)) +} +func (this *ScintillaEditBase) OnFocusChanged(slot func(focused bool)) { + C.ScintillaEditBase_connect_FocusChanged(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_FocusChanged +func miqt_exec_callback_ScintillaEditBase_FocusChanged(cb C.intptr_t, focused C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(focused bool)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (bool)(focused) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) Notify(pscn *Scintilla__NotificationData) { + C.ScintillaEditBase_Notify(this.h, pscn.cPointer()) +} +func (this *ScintillaEditBase) OnNotify(slot func(pscn *Scintilla__NotificationData)) { + C.ScintillaEditBase_connect_Notify(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_Notify +func miqt_exec_callback_ScintillaEditBase_Notify(cb C.intptr_t, pscn *C.Scintilla__NotificationData) { + gofunc, ok := cgo.Handle(cb).Value().(func(pscn *Scintilla__NotificationData)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := UnsafeNewScintilla__NotificationData(unsafe.Pointer(pscn)) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) Command(wParam uintptr, lParam uintptr) { + C.ScintillaEditBase_Command(this.h, (C.uintptr_t)(wParam), (C.intptr_t)(lParam)) +} +func (this *ScintillaEditBase) OnCommand(slot func(wParam uintptr, lParam uintptr)) { + C.ScintillaEditBase_connect_Command(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_Command +func miqt_exec_callback_ScintillaEditBase_Command(cb C.intptr_t, wParam C.uintptr_t, lParam C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func(wParam uintptr, lParam uintptr)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (uintptr)(wParam) + + slotval2 := (uintptr)(lParam) + + gofunc(slotval1, slotval2) +} + +func (this *ScintillaEditBase) ButtonPressed(event *qt.QMouseEvent) { + C.ScintillaEditBase_ButtonPressed(this.h, (*C.QMouseEvent)(event.UnsafePointer())) +} +func (this *ScintillaEditBase) OnButtonPressed(slot func(event *qt.QMouseEvent)) { + C.ScintillaEditBase_connect_ButtonPressed(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_ButtonPressed +func miqt_exec_callback_ScintillaEditBase_ButtonPressed(cb C.intptr_t, event *C.QMouseEvent) { + gofunc, ok := cgo.Handle(cb).Value().(func(event *qt.QMouseEvent)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := qt.UnsafeNewQMouseEvent(unsafe.Pointer(event)) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) ButtonReleased(event *qt.QMouseEvent) { + C.ScintillaEditBase_ButtonReleased(this.h, (*C.QMouseEvent)(event.UnsafePointer())) +} +func (this *ScintillaEditBase) OnButtonReleased(slot func(event *qt.QMouseEvent)) { + C.ScintillaEditBase_connect_ButtonReleased(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_ButtonReleased +func miqt_exec_callback_ScintillaEditBase_ButtonReleased(cb C.intptr_t, event *C.QMouseEvent) { + gofunc, ok := cgo.Handle(cb).Value().(func(event *qt.QMouseEvent)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := qt.UnsafeNewQMouseEvent(unsafe.Pointer(event)) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) KeyPressed(event *qt.QKeyEvent) { + C.ScintillaEditBase_KeyPressed(this.h, (*C.QKeyEvent)(event.UnsafePointer())) +} +func (this *ScintillaEditBase) OnKeyPressed(slot func(event *qt.QKeyEvent)) { + C.ScintillaEditBase_connect_KeyPressed(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_KeyPressed +func miqt_exec_callback_ScintillaEditBase_KeyPressed(cb C.intptr_t, event *C.QKeyEvent) { + gofunc, ok := cgo.Handle(cb).Value().(func(event *qt.QKeyEvent)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := qt.UnsafeNewQKeyEvent(unsafe.Pointer(event)) + + gofunc(slotval1) +} + +func (this *ScintillaEditBase) Resized() { + C.ScintillaEditBase_Resized(this.h) +} +func (this *ScintillaEditBase) OnResized(slot func()) { + C.ScintillaEditBase_connect_Resized(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaEditBase_Resized +func miqt_exec_callback_ScintillaEditBase_Resized(cb C.intptr_t) { + gofunc, ok := cgo.Handle(cb).Value().(func()) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + gofunc() +} + +func ScintillaEditBase_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.ScintillaEditBase_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func ScintillaEditBase_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.ScintillaEditBase_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 ScintillaEditBase_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.ScintillaEditBase_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func ScintillaEditBase_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.ScintillaEditBase_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 *ScintillaEditBase) Send2(iMessage uint, wParam uintptr) uintptr { + return (uintptr)(C.ScintillaEditBase_Send2(this.h, (C.uint)(iMessage), (C.uintptr_t)(wParam))) +} + +func (this *ScintillaEditBase) Send3(iMessage uint, wParam uintptr, lParam uintptr) uintptr { + return (uintptr)(C.ScintillaEditBase_Send3(this.h, (C.uint)(iMessage), (C.uintptr_t)(wParam), (C.intptr_t)(lParam))) +} + +func (this *ScintillaEditBase) Sends2(iMessage uint, wParam uintptr) uintptr { + return (uintptr)(C.ScintillaEditBase_Sends2(this.h, (C.uint)(iMessage), (C.uintptr_t)(wParam))) +} + +func (this *ScintillaEditBase) Sends3(iMessage uint, wParam uintptr, s string) uintptr { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + return (uintptr)(C.ScintillaEditBase_Sends3(this.h, (C.uint)(iMessage), (C.uintptr_t)(wParam), s_Cstring)) +} + +// Delete this object from C++ memory. +func (this *ScintillaEditBase) Delete() { + C.ScintillaEditBase_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 *ScintillaEditBase) GoGC() { + runtime.SetFinalizer(this, func(this *ScintillaEditBase) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type ScintillaDocument struct { + h *C.ScintillaDocument + *qt.QObject +} + +func (this *ScintillaDocument) cPointer() *C.ScintillaDocument { + if this == nil { + return nil + } + return this.h +} + +func (this *ScintillaDocument) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintillaDocument(h *C.ScintillaDocument) *ScintillaDocument { + if h == nil { + return nil + } + return &ScintillaDocument{h: h, QObject: qt.UnsafeNewQObject(unsafe.Pointer(h))} +} + +func UnsafeNewScintillaDocument(h unsafe.Pointer) *ScintillaDocument { + return newScintillaDocument((*C.ScintillaDocument)(h)) +} + +// NewScintillaDocument constructs a new ScintillaDocument object. +func NewScintillaDocument() *ScintillaDocument { + ret := C.ScintillaDocument_new() + return newScintillaDocument(ret) +} + +// NewScintillaDocument2 constructs a new ScintillaDocument object. +func NewScintillaDocument2(parent *qt.QObject) *ScintillaDocument { + ret := C.ScintillaDocument_new2((*C.QObject)(parent.UnsafePointer())) + return newScintillaDocument(ret) +} + +// NewScintillaDocument3 constructs a new ScintillaDocument object. +func NewScintillaDocument3(parent *qt.QObject, pdoc_ unsafe.Pointer) *ScintillaDocument { + ret := C.ScintillaDocument_new3((*C.QObject)(parent.UnsafePointer()), pdoc_) + return newScintillaDocument(ret) +} + +func (this *ScintillaDocument) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.ScintillaDocument_MetaObject(this.h))) +} + +func (this *ScintillaDocument) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.ScintillaDocument_Metacast(this.h, param1_Cstring)) +} + +func ScintillaDocument_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.ScintillaDocument_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func ScintillaDocument_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.ScintillaDocument_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *ScintillaDocument) Pointer() unsafe.Pointer { + return (unsafe.Pointer)(C.ScintillaDocument_Pointer(this.h)) +} + +func (this *ScintillaDocument) LineFromPosition(pos int) int { + return (int)(C.ScintillaDocument_LineFromPosition(this.h, (C.int)(pos))) +} + +func (this *ScintillaDocument) IsCrLf(pos int) bool { + return (bool)(C.ScintillaDocument_IsCrLf(this.h, (C.int)(pos))) +} + +func (this *ScintillaDocument) DeleteChars(pos int, lenVal int) bool { + return (bool)(C.ScintillaDocument_DeleteChars(this.h, (C.int)(pos), (C.int)(lenVal))) +} + +func (this *ScintillaDocument) Undo() int { + return (int)(C.ScintillaDocument_Undo(this.h)) +} + +func (this *ScintillaDocument) Redo() int { + return (int)(C.ScintillaDocument_Redo(this.h)) +} + +func (this *ScintillaDocument) CanUndo() bool { + return (bool)(C.ScintillaDocument_CanUndo(this.h)) +} + +func (this *ScintillaDocument) CanRedo() bool { + return (bool)(C.ScintillaDocument_CanRedo(this.h)) +} + +func (this *ScintillaDocument) DeleteUndoHistory() { + C.ScintillaDocument_DeleteUndoHistory(this.h) +} + +func (this *ScintillaDocument) SetUndoCollection(collect_undo bool) bool { + return (bool)(C.ScintillaDocument_SetUndoCollection(this.h, (C.bool)(collect_undo))) +} + +func (this *ScintillaDocument) IsCollectingUndo() bool { + return (bool)(C.ScintillaDocument_IsCollectingUndo(this.h)) +} + +func (this *ScintillaDocument) BeginUndoAction() { + C.ScintillaDocument_BeginUndoAction(this.h) +} + +func (this *ScintillaDocument) EndUndoAction() { + C.ScintillaDocument_EndUndoAction(this.h) +} + +func (this *ScintillaDocument) SetSavePoint() { + C.ScintillaDocument_SetSavePoint(this.h) +} + +func (this *ScintillaDocument) IsSavePoint() bool { + return (bool)(C.ScintillaDocument_IsSavePoint(this.h)) +} + +func (this *ScintillaDocument) SetReadOnly(read_only bool) { + C.ScintillaDocument_SetReadOnly(this.h, (C.bool)(read_only)) +} + +func (this *ScintillaDocument) IsReadOnly() bool { + return (bool)(C.ScintillaDocument_IsReadOnly(this.h)) +} + +func (this *ScintillaDocument) InsertString(position int, str []byte) { + str_alias := C.struct_miqt_string{} + str_alias.data = (*C.char)(unsafe.Pointer(&str[0])) + str_alias.len = C.size_t(len(str)) + C.ScintillaDocument_InsertString(this.h, (C.int)(position), str_alias) +} + +func (this *ScintillaDocument) GetCharRange(position int, length int) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaDocument_GetCharRange(this.h, (C.int)(position), (C.int)(length)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaDocument) StyleAt(position int) int8 { + return (int8)(C.ScintillaDocument_StyleAt(this.h, (C.int)(position))) +} + +func (this *ScintillaDocument) LineStart(lineno int) int { + return (int)(C.ScintillaDocument_LineStart(this.h, (C.int)(lineno))) +} + +func (this *ScintillaDocument) LineEnd(lineno int) int { + return (int)(C.ScintillaDocument_LineEnd(this.h, (C.int)(lineno))) +} + +func (this *ScintillaDocument) LineEndPosition(pos int) int { + return (int)(C.ScintillaDocument_LineEndPosition(this.h, (C.int)(pos))) +} + +func (this *ScintillaDocument) Length() int { + return (int)(C.ScintillaDocument_Length(this.h)) +} + +func (this *ScintillaDocument) LinesTotal() int { + return (int)(C.ScintillaDocument_LinesTotal(this.h)) +} + +func (this *ScintillaDocument) StartStyling(position int) { + C.ScintillaDocument_StartStyling(this.h, (C.int)(position)) +} + +func (this *ScintillaDocument) SetStyleFor(length int, style int8) bool { + return (bool)(C.ScintillaDocument_SetStyleFor(this.h, (C.int)(length), (C.char)(style))) +} + +func (this *ScintillaDocument) GetEndStyled() int { + return (int)(C.ScintillaDocument_GetEndStyled(this.h)) +} + +func (this *ScintillaDocument) EnsureStyledTo(position int) { + C.ScintillaDocument_EnsureStyledTo(this.h, (C.int)(position)) +} + +func (this *ScintillaDocument) SetCurrentIndicator(indic int) { + C.ScintillaDocument_SetCurrentIndicator(this.h, (C.int)(indic)) +} + +func (this *ScintillaDocument) DecorationFillRange(position int, value int, fillLength int) { + C.ScintillaDocument_DecorationFillRange(this.h, (C.int)(position), (C.int)(value), (C.int)(fillLength)) +} + +func (this *ScintillaDocument) DecorationsValueAt(indic int, position int) int { + return (int)(C.ScintillaDocument_DecorationsValueAt(this.h, (C.int)(indic), (C.int)(position))) +} + +func (this *ScintillaDocument) DecorationsStart(indic int, position int) int { + return (int)(C.ScintillaDocument_DecorationsStart(this.h, (C.int)(indic), (C.int)(position))) +} + +func (this *ScintillaDocument) DecorationsEnd(indic int, position int) int { + return (int)(C.ScintillaDocument_DecorationsEnd(this.h, (C.int)(indic), (C.int)(position))) +} + +func (this *ScintillaDocument) GetCodePage() int { + return (int)(C.ScintillaDocument_GetCodePage(this.h)) +} + +func (this *ScintillaDocument) SetCodePage(code_page int) { + C.ScintillaDocument_SetCodePage(this.h, (C.int)(code_page)) +} + +func (this *ScintillaDocument) GetEolMode() int { + return (int)(C.ScintillaDocument_GetEolMode(this.h)) +} + +func (this *ScintillaDocument) SetEolMode(eol_mode int) { + C.ScintillaDocument_SetEolMode(this.h, (C.int)(eol_mode)) +} + +func (this *ScintillaDocument) MovePositionOutsideChar(pos int, move_dir int, check_line_end bool) int { + return (int)(C.ScintillaDocument_MovePositionOutsideChar(this.h, (C.int)(pos), (C.int)(move_dir), (C.bool)(check_line_end))) +} + +func (this *ScintillaDocument) GetCharacter(pos int) int { + return (int)(C.ScintillaDocument_GetCharacter(this.h, (C.int)(pos))) +} + +func (this *ScintillaDocument) ModifyAttempt() { + C.ScintillaDocument_ModifyAttempt(this.h) +} +func (this *ScintillaDocument) OnModifyAttempt(slot func()) { + C.ScintillaDocument_connect_ModifyAttempt(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaDocument_ModifyAttempt +func miqt_exec_callback_ScintillaDocument_ModifyAttempt(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 *ScintillaDocument) SavePoint(atSavePoint bool) { + C.ScintillaDocument_SavePoint(this.h, (C.bool)(atSavePoint)) +} +func (this *ScintillaDocument) OnSavePoint(slot func(atSavePoint bool)) { + C.ScintillaDocument_connect_SavePoint(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaDocument_SavePoint +func miqt_exec_callback_ScintillaDocument_SavePoint(cb C.intptr_t, atSavePoint C.bool) { + gofunc, ok := cgo.Handle(cb).Value().(func(atSavePoint bool)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (bool)(atSavePoint) + + gofunc(slotval1) +} + +func (this *ScintillaDocument) Modified(position int, modification_type int, text []byte, length int, linesAdded int, line int, foldLevelNow int, foldLevelPrev int) { + text_alias := C.struct_miqt_string{} + text_alias.data = (*C.char)(unsafe.Pointer(&text[0])) + text_alias.len = C.size_t(len(text)) + C.ScintillaDocument_Modified(this.h, (C.int)(position), (C.int)(modification_type), text_alias, (C.int)(length), (C.int)(linesAdded), (C.int)(line), (C.int)(foldLevelNow), (C.int)(foldLevelPrev)) +} +func (this *ScintillaDocument) OnModified(slot func(position int, modification_type int, text []byte, length int, linesAdded int, line int, foldLevelNow int, foldLevelPrev int)) { + C.ScintillaDocument_connect_Modified(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaDocument_Modified +func miqt_exec_callback_ScintillaDocument_Modified(cb C.intptr_t, position C.int, modification_type C.int, text C.struct_miqt_string, length C.int, linesAdded C.int, line C.int, foldLevelNow C.int, foldLevelPrev C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(position int, modification_type int, text []byte, length int, linesAdded int, line int, foldLevelNow int, foldLevelPrev int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(position) + + slotval2 := (int)(modification_type) + + var text_bytearray C.struct_miqt_string = text + text_ret := C.GoBytes(unsafe.Pointer(text_bytearray.data), C.int(int64(text_bytearray.len))) + C.free(unsafe.Pointer(text_bytearray.data)) + slotval3 := text_ret + slotval4 := (int)(length) + + slotval5 := (int)(linesAdded) + + slotval6 := (int)(line) + + slotval7 := (int)(foldLevelNow) + + slotval8 := (int)(foldLevelPrev) + + gofunc(slotval1, slotval2, slotval3, slotval4, slotval5, slotval6, slotval7, slotval8) +} + +func (this *ScintillaDocument) StyleNeeded(pos int) { + C.ScintillaDocument_StyleNeeded(this.h, (C.int)(pos)) +} +func (this *ScintillaDocument) OnStyleNeeded(slot func(pos int)) { + C.ScintillaDocument_connect_StyleNeeded(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaDocument_StyleNeeded +func miqt_exec_callback_ScintillaDocument_StyleNeeded(cb C.intptr_t, pos C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(pos int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(pos) + + gofunc(slotval1) +} + +func (this *ScintillaDocument) ErrorOccurred(status int) { + C.ScintillaDocument_ErrorOccurred(this.h, (C.int)(status)) +} +func (this *ScintillaDocument) OnErrorOccurred(slot func(status int)) { + C.ScintillaDocument_connect_ErrorOccurred(this.h, C.intptr_t(cgo.NewHandle(slot))) +} + +//export miqt_exec_callback_ScintillaDocument_ErrorOccurred +func miqt_exec_callback_ScintillaDocument_ErrorOccurred(cb C.intptr_t, status C.int) { + gofunc, ok := cgo.Handle(cb).Value().(func(status int)) + if !ok { + panic("miqt: callback of non-callback type (heap corruption?)") + } + + // Convert all CABI parameters to Go parameters + slotval1 := (int)(status) + + gofunc(slotval1) +} + +func ScintillaDocument_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.ScintillaDocument_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func ScintillaDocument_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.ScintillaDocument_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 ScintillaDocument_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.ScintillaDocument_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func ScintillaDocument_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.ScintillaDocument_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 *ScintillaDocument) BeginUndoAction1(coalesceWithPrior bool) { + C.ScintillaDocument_BeginUndoAction1(this.h, (C.bool)(coalesceWithPrior)) +} + +// Delete this object from C++ memory. +func (this *ScintillaDocument) Delete() { + C.ScintillaDocument_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 *ScintillaDocument) GoGC() { + runtime.SetFinalizer(this, func(this *ScintillaDocument) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} + +type ScintillaEdit struct { + h *C.ScintillaEdit + *ScintillaEditBase +} + +func (this *ScintillaEdit) cPointer() *C.ScintillaEdit { + if this == nil { + return nil + } + return this.h +} + +func (this *ScintillaEdit) UnsafePointer() unsafe.Pointer { + if this == nil { + return nil + } + return unsafe.Pointer(this.h) +} + +func newScintillaEdit(h *C.ScintillaEdit) *ScintillaEdit { + if h == nil { + return nil + } + return &ScintillaEdit{h: h, ScintillaEditBase: UnsafeNewScintillaEditBase(unsafe.Pointer(h))} +} + +func UnsafeNewScintillaEdit(h unsafe.Pointer) *ScintillaEdit { + return newScintillaEdit((*C.ScintillaEdit)(h)) +} + +// NewScintillaEdit constructs a new ScintillaEdit object. +func NewScintillaEdit() *ScintillaEdit { + ret := C.ScintillaEdit_new() + return newScintillaEdit(ret) +} + +// NewScintillaEdit2 constructs a new ScintillaEdit object. +func NewScintillaEdit2(parent *qt.QWidget) *ScintillaEdit { + ret := C.ScintillaEdit_new2((*C.QWidget)(parent.UnsafePointer())) + return newScintillaEdit(ret) +} + +func (this *ScintillaEdit) MetaObject() *qt.QMetaObject { + return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.ScintillaEdit_MetaObject(this.h))) +} + +func (this *ScintillaEdit) Metacast(param1 string) unsafe.Pointer { + param1_Cstring := C.CString(param1) + defer C.free(unsafe.Pointer(param1_Cstring)) + return (unsafe.Pointer)(C.ScintillaEdit_Metacast(this.h, param1_Cstring)) +} + +func ScintillaEdit_Tr(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.ScintillaEdit_Tr(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func ScintillaEdit_TrUtf8(s string) string { + s_Cstring := C.CString(s) + defer C.free(unsafe.Pointer(s_Cstring)) + var _ms C.struct_miqt_string = C.ScintillaEdit_TrUtf8(s_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func (this *ScintillaEdit) TextReturner(message int, wParam uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_TextReturner(this.h, (C.int)(message), (C.uintptr_t)(wParam)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) GetTextRange(start int, end int) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_GetTextRange(this.h, (C.int)(start), (C.int)(end)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) GetDoc() *ScintillaDocument { + return UnsafeNewScintillaDocument(unsafe.Pointer(C.ScintillaEdit_GetDoc(this.h))) +} + +func (this *ScintillaEdit) SetDoc(pdoc_ *ScintillaDocument) { + C.ScintillaEdit_SetDoc(this.h, pdoc_.cPointer()) +} + +func (this *ScintillaEdit) TextRange(start int, end int) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_TextRange(this.h, (C.int)(start), (C.int)(end)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) FormatRange(draw bool, target *qt.QPaintDevice, measure *qt.QPaintDevice, print_rect *qt.QRect, page_rect *qt.QRect, range_start int64, range_end int64) int64 { + return (int64)(C.ScintillaEdit_FormatRange(this.h, (C.bool)(draw), (*C.QPaintDevice)(target.UnsafePointer()), (*C.QPaintDevice)(measure.UnsafePointer()), (*C.QRect)(print_rect.UnsafePointer()), (*C.QRect)(page_rect.UnsafePointer()), (C.long)(range_start), (C.long)(range_end))) +} + +func (this *ScintillaEdit) FormatRange2(draw bool, target *qt.QPaintDevice, measure *qt.QPaintDevice, print_rect *qt.QRect, page_rect *qt.QRect, range_start int64, range_end int64) int64 { + return (int64)(C.ScintillaEdit_FormatRange2(this.h, (C.bool)(draw), (*C.QPaintDevice)(target.UnsafePointer()), (*C.QPaintDevice)(measure.UnsafePointer()), (*C.QRect)(print_rect.UnsafePointer()), (*C.QRect)(page_rect.UnsafePointer()), (C.long)(range_start), (C.long)(range_end))) +} + +func (this *ScintillaEdit) AddText(length uintptr, text string) { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + C.ScintillaEdit_AddText(this.h, (C.intptr_t)(length), text_Cstring) +} + +func (this *ScintillaEdit) AddStyledText(length uintptr, c string) { + c_Cstring := C.CString(c) + defer C.free(unsafe.Pointer(c_Cstring)) + C.ScintillaEdit_AddStyledText(this.h, (C.intptr_t)(length), c_Cstring) +} + +func (this *ScintillaEdit) InsertText(pos uintptr, text string) { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + C.ScintillaEdit_InsertText(this.h, (C.intptr_t)(pos), text_Cstring) +} + +func (this *ScintillaEdit) ChangeInsertion(length uintptr, text string) { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + C.ScintillaEdit_ChangeInsertion(this.h, (C.intptr_t)(length), text_Cstring) +} + +func (this *ScintillaEdit) ClearAll() { + C.ScintillaEdit_ClearAll(this.h) +} + +func (this *ScintillaEdit) DeleteRange(start uintptr, lengthDelete uintptr) { + C.ScintillaEdit_DeleteRange(this.h, (C.intptr_t)(start), (C.intptr_t)(lengthDelete)) +} + +func (this *ScintillaEdit) ClearDocumentStyle() { + C.ScintillaEdit_ClearDocumentStyle(this.h) +} + +func (this *ScintillaEdit) Length() uintptr { + return (uintptr)(C.ScintillaEdit_Length(this.h)) +} + +func (this *ScintillaEdit) CharAt(pos uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_CharAt(this.h, (C.intptr_t)(pos))) +} + +func (this *ScintillaEdit) CurrentPos() uintptr { + return (uintptr)(C.ScintillaEdit_CurrentPos(this.h)) +} + +func (this *ScintillaEdit) Anchor() uintptr { + return (uintptr)(C.ScintillaEdit_Anchor(this.h)) +} + +func (this *ScintillaEdit) StyleAt(pos uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_StyleAt(this.h, (C.intptr_t)(pos))) +} + +func (this *ScintillaEdit) StyleIndexAt(pos uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_StyleIndexAt(this.h, (C.intptr_t)(pos))) +} + +func (this *ScintillaEdit) Redo() { + C.ScintillaEdit_Redo(this.h) +} + +func (this *ScintillaEdit) SetUndoCollection(collectUndo bool) { + C.ScintillaEdit_SetUndoCollection(this.h, (C.bool)(collectUndo)) +} + +func (this *ScintillaEdit) SelectAll() { + C.ScintillaEdit_SelectAll(this.h) +} + +func (this *ScintillaEdit) SetSavePoint() { + C.ScintillaEdit_SetSavePoint(this.h) +} + +func (this *ScintillaEdit) CanRedo() bool { + return (bool)(C.ScintillaEdit_CanRedo(this.h)) +} + +func (this *ScintillaEdit) MarkerLineFromHandle(markerHandle uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarkerLineFromHandle(this.h, (C.intptr_t)(markerHandle))) +} + +func (this *ScintillaEdit) MarkerDeleteHandle(markerHandle uintptr) { + C.ScintillaEdit_MarkerDeleteHandle(this.h, (C.intptr_t)(markerHandle)) +} + +func (this *ScintillaEdit) MarkerHandleFromLine(line uintptr, which uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarkerHandleFromLine(this.h, (C.intptr_t)(line), (C.intptr_t)(which))) +} + +func (this *ScintillaEdit) MarkerNumberFromLine(line uintptr, which uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarkerNumberFromLine(this.h, (C.intptr_t)(line), (C.intptr_t)(which))) +} + +func (this *ScintillaEdit) UndoCollection() bool { + return (bool)(C.ScintillaEdit_UndoCollection(this.h)) +} + +func (this *ScintillaEdit) ViewWS() uintptr { + return (uintptr)(C.ScintillaEdit_ViewWS(this.h)) +} + +func (this *ScintillaEdit) SetViewWS(viewWS uintptr) { + C.ScintillaEdit_SetViewWS(this.h, (C.intptr_t)(viewWS)) +} + +func (this *ScintillaEdit) TabDrawMode() uintptr { + return (uintptr)(C.ScintillaEdit_TabDrawMode(this.h)) +} + +func (this *ScintillaEdit) SetTabDrawMode(tabDrawMode uintptr) { + C.ScintillaEdit_SetTabDrawMode(this.h, (C.intptr_t)(tabDrawMode)) +} + +func (this *ScintillaEdit) PositionFromPoint(x uintptr, y uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_PositionFromPoint(this.h, (C.intptr_t)(x), (C.intptr_t)(y))) +} + +func (this *ScintillaEdit) PositionFromPointClose(x uintptr, y uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_PositionFromPointClose(this.h, (C.intptr_t)(x), (C.intptr_t)(y))) +} + +func (this *ScintillaEdit) GotoLine(line uintptr) { + C.ScintillaEdit_GotoLine(this.h, (C.intptr_t)(line)) +} + +func (this *ScintillaEdit) GotoPos(caret uintptr) { + C.ScintillaEdit_GotoPos(this.h, (C.intptr_t)(caret)) +} + +func (this *ScintillaEdit) SetAnchor(anchor uintptr) { + C.ScintillaEdit_SetAnchor(this.h, (C.intptr_t)(anchor)) +} + +func (this *ScintillaEdit) GetCurLine(length uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_GetCurLine(this.h, (C.intptr_t)(length)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) EndStyled() uintptr { + return (uintptr)(C.ScintillaEdit_EndStyled(this.h)) +} + +func (this *ScintillaEdit) ConvertEOLs(eolMode uintptr) { + C.ScintillaEdit_ConvertEOLs(this.h, (C.intptr_t)(eolMode)) +} + +func (this *ScintillaEdit) EOLMode() uintptr { + return (uintptr)(C.ScintillaEdit_EOLMode(this.h)) +} + +func (this *ScintillaEdit) SetEOLMode(eolMode uintptr) { + C.ScintillaEdit_SetEOLMode(this.h, (C.intptr_t)(eolMode)) +} + +func (this *ScintillaEdit) StartStyling(start uintptr, unused uintptr) { + C.ScintillaEdit_StartStyling(this.h, (C.intptr_t)(start), (C.intptr_t)(unused)) +} + +func (this *ScintillaEdit) SetStyling(length uintptr, style uintptr) { + C.ScintillaEdit_SetStyling(this.h, (C.intptr_t)(length), (C.intptr_t)(style)) +} + +func (this *ScintillaEdit) BufferedDraw() bool { + return (bool)(C.ScintillaEdit_BufferedDraw(this.h)) +} + +func (this *ScintillaEdit) SetBufferedDraw(buffered bool) { + C.ScintillaEdit_SetBufferedDraw(this.h, (C.bool)(buffered)) +} + +func (this *ScintillaEdit) SetTabWidth(tabWidth uintptr) { + C.ScintillaEdit_SetTabWidth(this.h, (C.intptr_t)(tabWidth)) +} + +func (this *ScintillaEdit) TabWidth() uintptr { + return (uintptr)(C.ScintillaEdit_TabWidth(this.h)) +} + +func (this *ScintillaEdit) SetTabMinimumWidth(pixels uintptr) { + C.ScintillaEdit_SetTabMinimumWidth(this.h, (C.intptr_t)(pixels)) +} + +func (this *ScintillaEdit) TabMinimumWidth() uintptr { + return (uintptr)(C.ScintillaEdit_TabMinimumWidth(this.h)) +} + +func (this *ScintillaEdit) ClearTabStops(line uintptr) { + C.ScintillaEdit_ClearTabStops(this.h, (C.intptr_t)(line)) +} + +func (this *ScintillaEdit) AddTabStop(line uintptr, x uintptr) { + C.ScintillaEdit_AddTabStop(this.h, (C.intptr_t)(line), (C.intptr_t)(x)) +} + +func (this *ScintillaEdit) GetNextTabStop(line uintptr, x uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_GetNextTabStop(this.h, (C.intptr_t)(line), (C.intptr_t)(x))) +} + +func (this *ScintillaEdit) SetCodePage(codePage uintptr) { + C.ScintillaEdit_SetCodePage(this.h, (C.intptr_t)(codePage)) +} + +func (this *ScintillaEdit) SetFontLocale(localeName string) { + localeName_Cstring := C.CString(localeName) + defer C.free(unsafe.Pointer(localeName_Cstring)) + C.ScintillaEdit_SetFontLocale(this.h, localeName_Cstring) +} + +func (this *ScintillaEdit) FontLocale() []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_FontLocale(this.h) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) IMEInteraction() uintptr { + return (uintptr)(C.ScintillaEdit_IMEInteraction(this.h)) +} + +func (this *ScintillaEdit) SetIMEInteraction(imeInteraction uintptr) { + C.ScintillaEdit_SetIMEInteraction(this.h, (C.intptr_t)(imeInteraction)) +} + +func (this *ScintillaEdit) MarkerDefine(markerNumber uintptr, markerSymbol uintptr) { + C.ScintillaEdit_MarkerDefine(this.h, (C.intptr_t)(markerNumber), (C.intptr_t)(markerSymbol)) +} + +func (this *ScintillaEdit) MarkerSetFore(markerNumber uintptr, fore uintptr) { + C.ScintillaEdit_MarkerSetFore(this.h, (C.intptr_t)(markerNumber), (C.intptr_t)(fore)) +} + +func (this *ScintillaEdit) MarkerSetBack(markerNumber uintptr, back uintptr) { + C.ScintillaEdit_MarkerSetBack(this.h, (C.intptr_t)(markerNumber), (C.intptr_t)(back)) +} + +func (this *ScintillaEdit) MarkerSetBackSelected(markerNumber uintptr, back uintptr) { + C.ScintillaEdit_MarkerSetBackSelected(this.h, (C.intptr_t)(markerNumber), (C.intptr_t)(back)) +} + +func (this *ScintillaEdit) MarkerSetForeTranslucent(markerNumber uintptr, fore uintptr) { + C.ScintillaEdit_MarkerSetForeTranslucent(this.h, (C.intptr_t)(markerNumber), (C.intptr_t)(fore)) +} + +func (this *ScintillaEdit) MarkerSetBackTranslucent(markerNumber uintptr, back uintptr) { + C.ScintillaEdit_MarkerSetBackTranslucent(this.h, (C.intptr_t)(markerNumber), (C.intptr_t)(back)) +} + +func (this *ScintillaEdit) MarkerSetBackSelectedTranslucent(markerNumber uintptr, back uintptr) { + C.ScintillaEdit_MarkerSetBackSelectedTranslucent(this.h, (C.intptr_t)(markerNumber), (C.intptr_t)(back)) +} + +func (this *ScintillaEdit) MarkerSetStrokeWidth(markerNumber uintptr, hundredths uintptr) { + C.ScintillaEdit_MarkerSetStrokeWidth(this.h, (C.intptr_t)(markerNumber), (C.intptr_t)(hundredths)) +} + +func (this *ScintillaEdit) MarkerEnableHighlight(enabled bool) { + C.ScintillaEdit_MarkerEnableHighlight(this.h, (C.bool)(enabled)) +} + +func (this *ScintillaEdit) MarkerAdd(line uintptr, markerNumber uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarkerAdd(this.h, (C.intptr_t)(line), (C.intptr_t)(markerNumber))) +} + +func (this *ScintillaEdit) MarkerDelete(line uintptr, markerNumber uintptr) { + C.ScintillaEdit_MarkerDelete(this.h, (C.intptr_t)(line), (C.intptr_t)(markerNumber)) +} + +func (this *ScintillaEdit) MarkerDeleteAll(markerNumber uintptr) { + C.ScintillaEdit_MarkerDeleteAll(this.h, (C.intptr_t)(markerNumber)) +} + +func (this *ScintillaEdit) MarkerGet(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarkerGet(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) MarkerNext(lineStart uintptr, markerMask uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarkerNext(this.h, (C.intptr_t)(lineStart), (C.intptr_t)(markerMask))) +} + +func (this *ScintillaEdit) MarkerPrevious(lineStart uintptr, markerMask uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarkerPrevious(this.h, (C.intptr_t)(lineStart), (C.intptr_t)(markerMask))) +} + +func (this *ScintillaEdit) MarkerDefinePixmap(markerNumber uintptr, pixmap string) { + pixmap_Cstring := C.CString(pixmap) + defer C.free(unsafe.Pointer(pixmap_Cstring)) + C.ScintillaEdit_MarkerDefinePixmap(this.h, (C.intptr_t)(markerNumber), pixmap_Cstring) +} + +func (this *ScintillaEdit) MarkerAddSet(line uintptr, markerSet uintptr) { + C.ScintillaEdit_MarkerAddSet(this.h, (C.intptr_t)(line), (C.intptr_t)(markerSet)) +} + +func (this *ScintillaEdit) MarkerSetAlpha(markerNumber uintptr, alpha uintptr) { + C.ScintillaEdit_MarkerSetAlpha(this.h, (C.intptr_t)(markerNumber), (C.intptr_t)(alpha)) +} + +func (this *ScintillaEdit) MarkerLayer(markerNumber uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarkerLayer(this.h, (C.intptr_t)(markerNumber))) +} + +func (this *ScintillaEdit) MarkerSetLayer(markerNumber uintptr, layer uintptr) { + C.ScintillaEdit_MarkerSetLayer(this.h, (C.intptr_t)(markerNumber), (C.intptr_t)(layer)) +} + +func (this *ScintillaEdit) SetMarginTypeN(margin uintptr, marginType uintptr) { + C.ScintillaEdit_SetMarginTypeN(this.h, (C.intptr_t)(margin), (C.intptr_t)(marginType)) +} + +func (this *ScintillaEdit) MarginTypeN(margin uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarginTypeN(this.h, (C.intptr_t)(margin))) +} + +func (this *ScintillaEdit) SetMarginWidthN(margin uintptr, pixelWidth uintptr) { + C.ScintillaEdit_SetMarginWidthN(this.h, (C.intptr_t)(margin), (C.intptr_t)(pixelWidth)) +} + +func (this *ScintillaEdit) MarginWidthN(margin uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarginWidthN(this.h, (C.intptr_t)(margin))) +} + +func (this *ScintillaEdit) SetMarginMaskN(margin uintptr, mask uintptr) { + C.ScintillaEdit_SetMarginMaskN(this.h, (C.intptr_t)(margin), (C.intptr_t)(mask)) +} + +func (this *ScintillaEdit) MarginMaskN(margin uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarginMaskN(this.h, (C.intptr_t)(margin))) +} + +func (this *ScintillaEdit) SetMarginSensitiveN(margin uintptr, sensitive bool) { + C.ScintillaEdit_SetMarginSensitiveN(this.h, (C.intptr_t)(margin), (C.bool)(sensitive)) +} + +func (this *ScintillaEdit) MarginSensitiveN(margin uintptr) bool { + return (bool)(C.ScintillaEdit_MarginSensitiveN(this.h, (C.intptr_t)(margin))) +} + +func (this *ScintillaEdit) SetMarginCursorN(margin uintptr, cursor uintptr) { + C.ScintillaEdit_SetMarginCursorN(this.h, (C.intptr_t)(margin), (C.intptr_t)(cursor)) +} + +func (this *ScintillaEdit) MarginCursorN(margin uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarginCursorN(this.h, (C.intptr_t)(margin))) +} + +func (this *ScintillaEdit) SetMarginBackN(margin uintptr, back uintptr) { + C.ScintillaEdit_SetMarginBackN(this.h, (C.intptr_t)(margin), (C.intptr_t)(back)) +} + +func (this *ScintillaEdit) MarginBackN(margin uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarginBackN(this.h, (C.intptr_t)(margin))) +} + +func (this *ScintillaEdit) SetMargins(margins uintptr) { + C.ScintillaEdit_SetMargins(this.h, (C.intptr_t)(margins)) +} + +func (this *ScintillaEdit) Margins() uintptr { + return (uintptr)(C.ScintillaEdit_Margins(this.h)) +} + +func (this *ScintillaEdit) StyleClearAll() { + C.ScintillaEdit_StyleClearAll(this.h) +} + +func (this *ScintillaEdit) StyleSetFore(style uintptr, fore uintptr) { + C.ScintillaEdit_StyleSetFore(this.h, (C.intptr_t)(style), (C.intptr_t)(fore)) +} + +func (this *ScintillaEdit) StyleSetBack(style uintptr, back uintptr) { + C.ScintillaEdit_StyleSetBack(this.h, (C.intptr_t)(style), (C.intptr_t)(back)) +} + +func (this *ScintillaEdit) StyleSetBold(style uintptr, bold bool) { + C.ScintillaEdit_StyleSetBold(this.h, (C.intptr_t)(style), (C.bool)(bold)) +} + +func (this *ScintillaEdit) StyleSetItalic(style uintptr, italic bool) { + C.ScintillaEdit_StyleSetItalic(this.h, (C.intptr_t)(style), (C.bool)(italic)) +} + +func (this *ScintillaEdit) StyleSetSize(style uintptr, sizePoints uintptr) { + C.ScintillaEdit_StyleSetSize(this.h, (C.intptr_t)(style), (C.intptr_t)(sizePoints)) +} + +func (this *ScintillaEdit) StyleSetFont(style uintptr, fontName string) { + fontName_Cstring := C.CString(fontName) + defer C.free(unsafe.Pointer(fontName_Cstring)) + C.ScintillaEdit_StyleSetFont(this.h, (C.intptr_t)(style), fontName_Cstring) +} + +func (this *ScintillaEdit) StyleSetEOLFilled(style uintptr, eolFilled bool) { + C.ScintillaEdit_StyleSetEOLFilled(this.h, (C.intptr_t)(style), (C.bool)(eolFilled)) +} + +func (this *ScintillaEdit) StyleResetDefault() { + C.ScintillaEdit_StyleResetDefault(this.h) +} + +func (this *ScintillaEdit) StyleSetUnderline(style uintptr, underline bool) { + C.ScintillaEdit_StyleSetUnderline(this.h, (C.intptr_t)(style), (C.bool)(underline)) +} + +func (this *ScintillaEdit) StyleFore(style uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_StyleFore(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleBack(style uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_StyleBack(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleBold(style uintptr) bool { + return (bool)(C.ScintillaEdit_StyleBold(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleItalic(style uintptr) bool { + return (bool)(C.ScintillaEdit_StyleItalic(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleSize(style uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_StyleSize(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleFont(style uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_StyleFont(this.h, (C.intptr_t)(style)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) StyleEOLFilled(style uintptr) bool { + return (bool)(C.ScintillaEdit_StyleEOLFilled(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleUnderline(style uintptr) bool { + return (bool)(C.ScintillaEdit_StyleUnderline(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleCase(style uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_StyleCase(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleCharacterSet(style uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_StyleCharacterSet(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleVisible(style uintptr) bool { + return (bool)(C.ScintillaEdit_StyleVisible(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleChangeable(style uintptr) bool { + return (bool)(C.ScintillaEdit_StyleChangeable(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleHotSpot(style uintptr) bool { + return (bool)(C.ScintillaEdit_StyleHotSpot(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleSetCase(style uintptr, caseVisible uintptr) { + C.ScintillaEdit_StyleSetCase(this.h, (C.intptr_t)(style), (C.intptr_t)(caseVisible)) +} + +func (this *ScintillaEdit) StyleSetSizeFractional(style uintptr, sizeHundredthPoints uintptr) { + C.ScintillaEdit_StyleSetSizeFractional(this.h, (C.intptr_t)(style), (C.intptr_t)(sizeHundredthPoints)) +} + +func (this *ScintillaEdit) StyleSizeFractional(style uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_StyleSizeFractional(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleSetWeight(style uintptr, weight uintptr) { + C.ScintillaEdit_StyleSetWeight(this.h, (C.intptr_t)(style), (C.intptr_t)(weight)) +} + +func (this *ScintillaEdit) StyleWeight(style uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_StyleWeight(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleSetCharacterSet(style uintptr, characterSet uintptr) { + C.ScintillaEdit_StyleSetCharacterSet(this.h, (C.intptr_t)(style), (C.intptr_t)(characterSet)) +} + +func (this *ScintillaEdit) StyleSetHotSpot(style uintptr, hotspot bool) { + C.ScintillaEdit_StyleSetHotSpot(this.h, (C.intptr_t)(style), (C.bool)(hotspot)) +} + +func (this *ScintillaEdit) StyleSetCheckMonospaced(style uintptr, checkMonospaced bool) { + C.ScintillaEdit_StyleSetCheckMonospaced(this.h, (C.intptr_t)(style), (C.bool)(checkMonospaced)) +} + +func (this *ScintillaEdit) StyleCheckMonospaced(style uintptr) bool { + return (bool)(C.ScintillaEdit_StyleCheckMonospaced(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleSetStretch(style uintptr, stretch uintptr) { + C.ScintillaEdit_StyleSetStretch(this.h, (C.intptr_t)(style), (C.intptr_t)(stretch)) +} + +func (this *ScintillaEdit) StyleStretch(style uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_StyleStretch(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) StyleSetInvisibleRepresentation(style uintptr, representation string) { + representation_Cstring := C.CString(representation) + defer C.free(unsafe.Pointer(representation_Cstring)) + C.ScintillaEdit_StyleSetInvisibleRepresentation(this.h, (C.intptr_t)(style), representation_Cstring) +} + +func (this *ScintillaEdit) StyleInvisibleRepresentation(style uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_StyleInvisibleRepresentation(this.h, (C.intptr_t)(style)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) SetElementColour(element uintptr, colourElement uintptr) { + C.ScintillaEdit_SetElementColour(this.h, (C.intptr_t)(element), (C.intptr_t)(colourElement)) +} + +func (this *ScintillaEdit) ElementColour(element uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_ElementColour(this.h, (C.intptr_t)(element))) +} + +func (this *ScintillaEdit) ResetElementColour(element uintptr) { + C.ScintillaEdit_ResetElementColour(this.h, (C.intptr_t)(element)) +} + +func (this *ScintillaEdit) ElementIsSet(element uintptr) bool { + return (bool)(C.ScintillaEdit_ElementIsSet(this.h, (C.intptr_t)(element))) +} + +func (this *ScintillaEdit) ElementAllowsTranslucent(element uintptr) bool { + return (bool)(C.ScintillaEdit_ElementAllowsTranslucent(this.h, (C.intptr_t)(element))) +} + +func (this *ScintillaEdit) ElementBaseColour(element uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_ElementBaseColour(this.h, (C.intptr_t)(element))) +} + +func (this *ScintillaEdit) SetSelFore(useSetting bool, fore uintptr) { + C.ScintillaEdit_SetSelFore(this.h, (C.bool)(useSetting), (C.intptr_t)(fore)) +} + +func (this *ScintillaEdit) SetSelBack(useSetting bool, back uintptr) { + C.ScintillaEdit_SetSelBack(this.h, (C.bool)(useSetting), (C.intptr_t)(back)) +} + +func (this *ScintillaEdit) SelAlpha() uintptr { + return (uintptr)(C.ScintillaEdit_SelAlpha(this.h)) +} + +func (this *ScintillaEdit) SetSelAlpha(alpha uintptr) { + C.ScintillaEdit_SetSelAlpha(this.h, (C.intptr_t)(alpha)) +} + +func (this *ScintillaEdit) SelEOLFilled() bool { + return (bool)(C.ScintillaEdit_SelEOLFilled(this.h)) +} + +func (this *ScintillaEdit) SetSelEOLFilled(filled bool) { + C.ScintillaEdit_SetSelEOLFilled(this.h, (C.bool)(filled)) +} + +func (this *ScintillaEdit) SelectionLayer() uintptr { + return (uintptr)(C.ScintillaEdit_SelectionLayer(this.h)) +} + +func (this *ScintillaEdit) SetSelectionLayer(layer uintptr) { + C.ScintillaEdit_SetSelectionLayer(this.h, (C.intptr_t)(layer)) +} + +func (this *ScintillaEdit) CaretLineLayer() uintptr { + return (uintptr)(C.ScintillaEdit_CaretLineLayer(this.h)) +} + +func (this *ScintillaEdit) SetCaretLineLayer(layer uintptr) { + C.ScintillaEdit_SetCaretLineLayer(this.h, (C.intptr_t)(layer)) +} + +func (this *ScintillaEdit) CaretLineHighlightSubLine() bool { + return (bool)(C.ScintillaEdit_CaretLineHighlightSubLine(this.h)) +} + +func (this *ScintillaEdit) SetCaretLineHighlightSubLine(subLine bool) { + C.ScintillaEdit_SetCaretLineHighlightSubLine(this.h, (C.bool)(subLine)) +} + +func (this *ScintillaEdit) SetCaretFore(fore uintptr) { + C.ScintillaEdit_SetCaretFore(this.h, (C.intptr_t)(fore)) +} + +func (this *ScintillaEdit) AssignCmdKey(keyDefinition uintptr, sciCommand uintptr) { + C.ScintillaEdit_AssignCmdKey(this.h, (C.intptr_t)(keyDefinition), (C.intptr_t)(sciCommand)) +} + +func (this *ScintillaEdit) ClearCmdKey(keyDefinition uintptr) { + C.ScintillaEdit_ClearCmdKey(this.h, (C.intptr_t)(keyDefinition)) +} + +func (this *ScintillaEdit) ClearAllCmdKeys() { + C.ScintillaEdit_ClearAllCmdKeys(this.h) +} + +func (this *ScintillaEdit) SetStylingEx(length uintptr, styles string) { + styles_Cstring := C.CString(styles) + defer C.free(unsafe.Pointer(styles_Cstring)) + C.ScintillaEdit_SetStylingEx(this.h, (C.intptr_t)(length), styles_Cstring) +} + +func (this *ScintillaEdit) StyleSetVisible(style uintptr, visible bool) { + C.ScintillaEdit_StyleSetVisible(this.h, (C.intptr_t)(style), (C.bool)(visible)) +} + +func (this *ScintillaEdit) CaretPeriod() uintptr { + return (uintptr)(C.ScintillaEdit_CaretPeriod(this.h)) +} + +func (this *ScintillaEdit) SetCaretPeriod(periodMilliseconds uintptr) { + C.ScintillaEdit_SetCaretPeriod(this.h, (C.intptr_t)(periodMilliseconds)) +} + +func (this *ScintillaEdit) SetWordChars(characters string) { + characters_Cstring := C.CString(characters) + defer C.free(unsafe.Pointer(characters_Cstring)) + C.ScintillaEdit_SetWordChars(this.h, characters_Cstring) +} + +func (this *ScintillaEdit) WordChars() []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_WordChars(this.h) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) SetCharacterCategoryOptimization(countCharacters uintptr) { + C.ScintillaEdit_SetCharacterCategoryOptimization(this.h, (C.intptr_t)(countCharacters)) +} + +func (this *ScintillaEdit) CharacterCategoryOptimization() uintptr { + return (uintptr)(C.ScintillaEdit_CharacterCategoryOptimization(this.h)) +} + +func (this *ScintillaEdit) BeginUndoAction() { + C.ScintillaEdit_BeginUndoAction(this.h) +} + +func (this *ScintillaEdit) EndUndoAction() { + C.ScintillaEdit_EndUndoAction(this.h) +} + +func (this *ScintillaEdit) UndoSequence() uintptr { + return (uintptr)(C.ScintillaEdit_UndoSequence(this.h)) +} + +func (this *ScintillaEdit) UndoActions() uintptr { + return (uintptr)(C.ScintillaEdit_UndoActions(this.h)) +} + +func (this *ScintillaEdit) SetUndoSavePoint(action uintptr) { + C.ScintillaEdit_SetUndoSavePoint(this.h, (C.intptr_t)(action)) +} + +func (this *ScintillaEdit) UndoSavePoint() uintptr { + return (uintptr)(C.ScintillaEdit_UndoSavePoint(this.h)) +} + +func (this *ScintillaEdit) SetUndoDetach(action uintptr) { + C.ScintillaEdit_SetUndoDetach(this.h, (C.intptr_t)(action)) +} + +func (this *ScintillaEdit) UndoDetach() uintptr { + return (uintptr)(C.ScintillaEdit_UndoDetach(this.h)) +} + +func (this *ScintillaEdit) SetUndoTentative(action uintptr) { + C.ScintillaEdit_SetUndoTentative(this.h, (C.intptr_t)(action)) +} + +func (this *ScintillaEdit) UndoTentative() uintptr { + return (uintptr)(C.ScintillaEdit_UndoTentative(this.h)) +} + +func (this *ScintillaEdit) SetUndoCurrent(action uintptr) { + C.ScintillaEdit_SetUndoCurrent(this.h, (C.intptr_t)(action)) +} + +func (this *ScintillaEdit) UndoCurrent() uintptr { + return (uintptr)(C.ScintillaEdit_UndoCurrent(this.h)) +} + +func (this *ScintillaEdit) PushUndoActionType(typeVal uintptr, pos uintptr) { + C.ScintillaEdit_PushUndoActionType(this.h, (C.intptr_t)(typeVal), (C.intptr_t)(pos)) +} + +func (this *ScintillaEdit) ChangeLastUndoActionText(length uintptr, text string) { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + C.ScintillaEdit_ChangeLastUndoActionText(this.h, (C.intptr_t)(length), text_Cstring) +} + +func (this *ScintillaEdit) UndoActionType(action uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_UndoActionType(this.h, (C.intptr_t)(action))) +} + +func (this *ScintillaEdit) UndoActionPosition(action uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_UndoActionPosition(this.h, (C.intptr_t)(action))) +} + +func (this *ScintillaEdit) UndoActionText(action uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_UndoActionText(this.h, (C.intptr_t)(action)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) IndicSetStyle(indicator uintptr, indicatorStyle uintptr) { + C.ScintillaEdit_IndicSetStyle(this.h, (C.intptr_t)(indicator), (C.intptr_t)(indicatorStyle)) +} + +func (this *ScintillaEdit) IndicStyle(indicator uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_IndicStyle(this.h, (C.intptr_t)(indicator))) +} + +func (this *ScintillaEdit) IndicSetFore(indicator uintptr, fore uintptr) { + C.ScintillaEdit_IndicSetFore(this.h, (C.intptr_t)(indicator), (C.intptr_t)(fore)) +} + +func (this *ScintillaEdit) IndicFore(indicator uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_IndicFore(this.h, (C.intptr_t)(indicator))) +} + +func (this *ScintillaEdit) IndicSetUnder(indicator uintptr, under bool) { + C.ScintillaEdit_IndicSetUnder(this.h, (C.intptr_t)(indicator), (C.bool)(under)) +} + +func (this *ScintillaEdit) IndicUnder(indicator uintptr) bool { + return (bool)(C.ScintillaEdit_IndicUnder(this.h, (C.intptr_t)(indicator))) +} + +func (this *ScintillaEdit) IndicSetHoverStyle(indicator uintptr, indicatorStyle uintptr) { + C.ScintillaEdit_IndicSetHoverStyle(this.h, (C.intptr_t)(indicator), (C.intptr_t)(indicatorStyle)) +} + +func (this *ScintillaEdit) IndicHoverStyle(indicator uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_IndicHoverStyle(this.h, (C.intptr_t)(indicator))) +} + +func (this *ScintillaEdit) IndicSetHoverFore(indicator uintptr, fore uintptr) { + C.ScintillaEdit_IndicSetHoverFore(this.h, (C.intptr_t)(indicator), (C.intptr_t)(fore)) +} + +func (this *ScintillaEdit) IndicHoverFore(indicator uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_IndicHoverFore(this.h, (C.intptr_t)(indicator))) +} + +func (this *ScintillaEdit) IndicSetFlags(indicator uintptr, flags uintptr) { + C.ScintillaEdit_IndicSetFlags(this.h, (C.intptr_t)(indicator), (C.intptr_t)(flags)) +} + +func (this *ScintillaEdit) IndicFlags(indicator uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_IndicFlags(this.h, (C.intptr_t)(indicator))) +} + +func (this *ScintillaEdit) IndicSetStrokeWidth(indicator uintptr, hundredths uintptr) { + C.ScintillaEdit_IndicSetStrokeWidth(this.h, (C.intptr_t)(indicator), (C.intptr_t)(hundredths)) +} + +func (this *ScintillaEdit) IndicStrokeWidth(indicator uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_IndicStrokeWidth(this.h, (C.intptr_t)(indicator))) +} + +func (this *ScintillaEdit) SetWhitespaceFore(useSetting bool, fore uintptr) { + C.ScintillaEdit_SetWhitespaceFore(this.h, (C.bool)(useSetting), (C.intptr_t)(fore)) +} + +func (this *ScintillaEdit) SetWhitespaceBack(useSetting bool, back uintptr) { + C.ScintillaEdit_SetWhitespaceBack(this.h, (C.bool)(useSetting), (C.intptr_t)(back)) +} + +func (this *ScintillaEdit) SetWhitespaceSize(size uintptr) { + C.ScintillaEdit_SetWhitespaceSize(this.h, (C.intptr_t)(size)) +} + +func (this *ScintillaEdit) WhitespaceSize() uintptr { + return (uintptr)(C.ScintillaEdit_WhitespaceSize(this.h)) +} + +func (this *ScintillaEdit) SetLineState(line uintptr, state uintptr) { + C.ScintillaEdit_SetLineState(this.h, (C.intptr_t)(line), (C.intptr_t)(state)) +} + +func (this *ScintillaEdit) LineState(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_LineState(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) MaxLineState() uintptr { + return (uintptr)(C.ScintillaEdit_MaxLineState(this.h)) +} + +func (this *ScintillaEdit) CaretLineVisible() bool { + return (bool)(C.ScintillaEdit_CaretLineVisible(this.h)) +} + +func (this *ScintillaEdit) SetCaretLineVisible(show bool) { + C.ScintillaEdit_SetCaretLineVisible(this.h, (C.bool)(show)) +} + +func (this *ScintillaEdit) CaretLineBack() uintptr { + return (uintptr)(C.ScintillaEdit_CaretLineBack(this.h)) +} + +func (this *ScintillaEdit) SetCaretLineBack(back uintptr) { + C.ScintillaEdit_SetCaretLineBack(this.h, (C.intptr_t)(back)) +} + +func (this *ScintillaEdit) CaretLineFrame() uintptr { + return (uintptr)(C.ScintillaEdit_CaretLineFrame(this.h)) +} + +func (this *ScintillaEdit) SetCaretLineFrame(width uintptr) { + C.ScintillaEdit_SetCaretLineFrame(this.h, (C.intptr_t)(width)) +} + +func (this *ScintillaEdit) StyleSetChangeable(style uintptr, changeable bool) { + C.ScintillaEdit_StyleSetChangeable(this.h, (C.intptr_t)(style), (C.bool)(changeable)) +} + +func (this *ScintillaEdit) AutoCShow(lengthEntered uintptr, itemList string) { + itemList_Cstring := C.CString(itemList) + defer C.free(unsafe.Pointer(itemList_Cstring)) + C.ScintillaEdit_AutoCShow(this.h, (C.intptr_t)(lengthEntered), itemList_Cstring) +} + +func (this *ScintillaEdit) AutoCCancel() { + C.ScintillaEdit_AutoCCancel(this.h) +} + +func (this *ScintillaEdit) AutoCActive() bool { + return (bool)(C.ScintillaEdit_AutoCActive(this.h)) +} + +func (this *ScintillaEdit) AutoCPosStart() uintptr { + return (uintptr)(C.ScintillaEdit_AutoCPosStart(this.h)) +} + +func (this *ScintillaEdit) AutoCComplete() { + C.ScintillaEdit_AutoCComplete(this.h) +} + +func (this *ScintillaEdit) AutoCStops(characterSet string) { + characterSet_Cstring := C.CString(characterSet) + defer C.free(unsafe.Pointer(characterSet_Cstring)) + C.ScintillaEdit_AutoCStops(this.h, characterSet_Cstring) +} + +func (this *ScintillaEdit) AutoCSetSeparator(separatorCharacter uintptr) { + C.ScintillaEdit_AutoCSetSeparator(this.h, (C.intptr_t)(separatorCharacter)) +} + +func (this *ScintillaEdit) AutoCSeparator() uintptr { + return (uintptr)(C.ScintillaEdit_AutoCSeparator(this.h)) +} + +func (this *ScintillaEdit) AutoCSelect(selectVal string) { + selectVal_Cstring := C.CString(selectVal) + defer C.free(unsafe.Pointer(selectVal_Cstring)) + C.ScintillaEdit_AutoCSelect(this.h, selectVal_Cstring) +} + +func (this *ScintillaEdit) AutoCSetCancelAtStart(cancel bool) { + C.ScintillaEdit_AutoCSetCancelAtStart(this.h, (C.bool)(cancel)) +} + +func (this *ScintillaEdit) AutoCCancelAtStart() bool { + return (bool)(C.ScintillaEdit_AutoCCancelAtStart(this.h)) +} + +func (this *ScintillaEdit) AutoCSetFillUps(characterSet string) { + characterSet_Cstring := C.CString(characterSet) + defer C.free(unsafe.Pointer(characterSet_Cstring)) + C.ScintillaEdit_AutoCSetFillUps(this.h, characterSet_Cstring) +} + +func (this *ScintillaEdit) AutoCSetChooseSingle(chooseSingle bool) { + C.ScintillaEdit_AutoCSetChooseSingle(this.h, (C.bool)(chooseSingle)) +} + +func (this *ScintillaEdit) AutoCChooseSingle() bool { + return (bool)(C.ScintillaEdit_AutoCChooseSingle(this.h)) +} + +func (this *ScintillaEdit) AutoCSetIgnoreCase(ignoreCase bool) { + C.ScintillaEdit_AutoCSetIgnoreCase(this.h, (C.bool)(ignoreCase)) +} + +func (this *ScintillaEdit) AutoCIgnoreCase() bool { + return (bool)(C.ScintillaEdit_AutoCIgnoreCase(this.h)) +} + +func (this *ScintillaEdit) UserListShow(listType uintptr, itemList string) { + itemList_Cstring := C.CString(itemList) + defer C.free(unsafe.Pointer(itemList_Cstring)) + C.ScintillaEdit_UserListShow(this.h, (C.intptr_t)(listType), itemList_Cstring) +} + +func (this *ScintillaEdit) AutoCSetAutoHide(autoHide bool) { + C.ScintillaEdit_AutoCSetAutoHide(this.h, (C.bool)(autoHide)) +} + +func (this *ScintillaEdit) AutoCAutoHide() bool { + return (bool)(C.ScintillaEdit_AutoCAutoHide(this.h)) +} + +func (this *ScintillaEdit) AutoCSetOptions(options uintptr) { + C.ScintillaEdit_AutoCSetOptions(this.h, (C.intptr_t)(options)) +} + +func (this *ScintillaEdit) AutoCOptions() uintptr { + return (uintptr)(C.ScintillaEdit_AutoCOptions(this.h)) +} + +func (this *ScintillaEdit) AutoCSetDropRestOfWord(dropRestOfWord bool) { + C.ScintillaEdit_AutoCSetDropRestOfWord(this.h, (C.bool)(dropRestOfWord)) +} + +func (this *ScintillaEdit) AutoCDropRestOfWord() bool { + return (bool)(C.ScintillaEdit_AutoCDropRestOfWord(this.h)) +} + +func (this *ScintillaEdit) RegisterImage(typeVal uintptr, xpmData string) { + xpmData_Cstring := C.CString(xpmData) + defer C.free(unsafe.Pointer(xpmData_Cstring)) + C.ScintillaEdit_RegisterImage(this.h, (C.intptr_t)(typeVal), xpmData_Cstring) +} + +func (this *ScintillaEdit) ClearRegisteredImages() { + C.ScintillaEdit_ClearRegisteredImages(this.h) +} + +func (this *ScintillaEdit) AutoCTypeSeparator() uintptr { + return (uintptr)(C.ScintillaEdit_AutoCTypeSeparator(this.h)) +} + +func (this *ScintillaEdit) AutoCSetTypeSeparator(separatorCharacter uintptr) { + C.ScintillaEdit_AutoCSetTypeSeparator(this.h, (C.intptr_t)(separatorCharacter)) +} + +func (this *ScintillaEdit) AutoCSetMaxWidth(characterCount uintptr) { + C.ScintillaEdit_AutoCSetMaxWidth(this.h, (C.intptr_t)(characterCount)) +} + +func (this *ScintillaEdit) AutoCMaxWidth() uintptr { + return (uintptr)(C.ScintillaEdit_AutoCMaxWidth(this.h)) +} + +func (this *ScintillaEdit) AutoCSetMaxHeight(rowCount uintptr) { + C.ScintillaEdit_AutoCSetMaxHeight(this.h, (C.intptr_t)(rowCount)) +} + +func (this *ScintillaEdit) AutoCMaxHeight() uintptr { + return (uintptr)(C.ScintillaEdit_AutoCMaxHeight(this.h)) +} + +func (this *ScintillaEdit) AutoCSetStyle(style uintptr) { + C.ScintillaEdit_AutoCSetStyle(this.h, (C.intptr_t)(style)) +} + +func (this *ScintillaEdit) AutoCStyle() uintptr { + return (uintptr)(C.ScintillaEdit_AutoCStyle(this.h)) +} + +func (this *ScintillaEdit) SetIndent(indentSize uintptr) { + C.ScintillaEdit_SetIndent(this.h, (C.intptr_t)(indentSize)) +} + +func (this *ScintillaEdit) Indent() uintptr { + return (uintptr)(C.ScintillaEdit_Indent(this.h)) +} + +func (this *ScintillaEdit) SetUseTabs(useTabs bool) { + C.ScintillaEdit_SetUseTabs(this.h, (C.bool)(useTabs)) +} + +func (this *ScintillaEdit) UseTabs() bool { + return (bool)(C.ScintillaEdit_UseTabs(this.h)) +} + +func (this *ScintillaEdit) SetLineIndentation(line uintptr, indentation uintptr) { + C.ScintillaEdit_SetLineIndentation(this.h, (C.intptr_t)(line), (C.intptr_t)(indentation)) +} + +func (this *ScintillaEdit) LineIndentation(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_LineIndentation(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) LineIndentPosition(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_LineIndentPosition(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) Column(pos uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_Column(this.h, (C.intptr_t)(pos))) +} + +func (this *ScintillaEdit) CountCharacters(start uintptr, end uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_CountCharacters(this.h, (C.intptr_t)(start), (C.intptr_t)(end))) +} + +func (this *ScintillaEdit) CountCodeUnits(start uintptr, end uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_CountCodeUnits(this.h, (C.intptr_t)(start), (C.intptr_t)(end))) +} + +func (this *ScintillaEdit) SetHScrollBar(visible bool) { + C.ScintillaEdit_SetHScrollBar(this.h, (C.bool)(visible)) +} + +func (this *ScintillaEdit) HScrollBar() bool { + return (bool)(C.ScintillaEdit_HScrollBar(this.h)) +} + +func (this *ScintillaEdit) SetIndentationGuides(indentView uintptr) { + C.ScintillaEdit_SetIndentationGuides(this.h, (C.intptr_t)(indentView)) +} + +func (this *ScintillaEdit) IndentationGuides() uintptr { + return (uintptr)(C.ScintillaEdit_IndentationGuides(this.h)) +} + +func (this *ScintillaEdit) SetHighlightGuide(column uintptr) { + C.ScintillaEdit_SetHighlightGuide(this.h, (C.intptr_t)(column)) +} + +func (this *ScintillaEdit) HighlightGuide() uintptr { + return (uintptr)(C.ScintillaEdit_HighlightGuide(this.h)) +} + +func (this *ScintillaEdit) LineEndPosition(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_LineEndPosition(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) CodePage() uintptr { + return (uintptr)(C.ScintillaEdit_CodePage(this.h)) +} + +func (this *ScintillaEdit) CaretFore() uintptr { + return (uintptr)(C.ScintillaEdit_CaretFore(this.h)) +} + +func (this *ScintillaEdit) ReadOnly() bool { + return (bool)(C.ScintillaEdit_ReadOnly(this.h)) +} + +func (this *ScintillaEdit) SetCurrentPos(caret uintptr) { + C.ScintillaEdit_SetCurrentPos(this.h, (C.intptr_t)(caret)) +} + +func (this *ScintillaEdit) SetSelectionStart(anchor uintptr) { + C.ScintillaEdit_SetSelectionStart(this.h, (C.intptr_t)(anchor)) +} + +func (this *ScintillaEdit) SelectionStart() uintptr { + return (uintptr)(C.ScintillaEdit_SelectionStart(this.h)) +} + +func (this *ScintillaEdit) SetSelectionEnd(caret uintptr) { + C.ScintillaEdit_SetSelectionEnd(this.h, (C.intptr_t)(caret)) +} + +func (this *ScintillaEdit) SelectionEnd() uintptr { + return (uintptr)(C.ScintillaEdit_SelectionEnd(this.h)) +} + +func (this *ScintillaEdit) SetEmptySelection(caret uintptr) { + C.ScintillaEdit_SetEmptySelection(this.h, (C.intptr_t)(caret)) +} + +func (this *ScintillaEdit) SetPrintMagnification(magnification uintptr) { + C.ScintillaEdit_SetPrintMagnification(this.h, (C.intptr_t)(magnification)) +} + +func (this *ScintillaEdit) PrintMagnification() uintptr { + return (uintptr)(C.ScintillaEdit_PrintMagnification(this.h)) +} + +func (this *ScintillaEdit) SetPrintColourMode(mode uintptr) { + C.ScintillaEdit_SetPrintColourMode(this.h, (C.intptr_t)(mode)) +} + +func (this *ScintillaEdit) PrintColourMode() uintptr { + return (uintptr)(C.ScintillaEdit_PrintColourMode(this.h)) +} + +func (this *ScintillaEdit) SetChangeHistory(changeHistory uintptr) { + C.ScintillaEdit_SetChangeHistory(this.h, (C.intptr_t)(changeHistory)) +} + +func (this *ScintillaEdit) ChangeHistory() uintptr { + return (uintptr)(C.ScintillaEdit_ChangeHistory(this.h)) +} + +func (this *ScintillaEdit) FirstVisibleLine() uintptr { + return (uintptr)(C.ScintillaEdit_FirstVisibleLine(this.h)) +} + +func (this *ScintillaEdit) GetLine(line uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_GetLine(this.h, (C.intptr_t)(line)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) LineCount() uintptr { + return (uintptr)(C.ScintillaEdit_LineCount(this.h)) +} + +func (this *ScintillaEdit) AllocateLines(lines uintptr) { + C.ScintillaEdit_AllocateLines(this.h, (C.intptr_t)(lines)) +} + +func (this *ScintillaEdit) SetMarginLeft(pixelWidth uintptr) { + C.ScintillaEdit_SetMarginLeft(this.h, (C.intptr_t)(pixelWidth)) +} + +func (this *ScintillaEdit) MarginLeft() uintptr { + return (uintptr)(C.ScintillaEdit_MarginLeft(this.h)) +} + +func (this *ScintillaEdit) SetMarginRight(pixelWidth uintptr) { + C.ScintillaEdit_SetMarginRight(this.h, (C.intptr_t)(pixelWidth)) +} + +func (this *ScintillaEdit) MarginRight() uintptr { + return (uintptr)(C.ScintillaEdit_MarginRight(this.h)) +} + +func (this *ScintillaEdit) Modify() bool { + return (bool)(C.ScintillaEdit_Modify(this.h)) +} + +func (this *ScintillaEdit) SetSel(anchor uintptr, caret uintptr) { + C.ScintillaEdit_SetSel(this.h, (C.intptr_t)(anchor), (C.intptr_t)(caret)) +} + +func (this *ScintillaEdit) GetSelText() []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_GetSelText(this.h) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) HideSelection(hide bool) { + C.ScintillaEdit_HideSelection(this.h, (C.bool)(hide)) +} + +func (this *ScintillaEdit) SelectionHidden() bool { + return (bool)(C.ScintillaEdit_SelectionHidden(this.h)) +} + +func (this *ScintillaEdit) PointXFromPosition(pos uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_PointXFromPosition(this.h, (C.intptr_t)(pos))) +} + +func (this *ScintillaEdit) PointYFromPosition(pos uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_PointYFromPosition(this.h, (C.intptr_t)(pos))) +} + +func (this *ScintillaEdit) LineFromPosition(pos uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_LineFromPosition(this.h, (C.intptr_t)(pos))) +} + +func (this *ScintillaEdit) PositionFromLine(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_PositionFromLine(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) LineScroll(columns uintptr, lines uintptr) { + C.ScintillaEdit_LineScroll(this.h, (C.intptr_t)(columns), (C.intptr_t)(lines)) +} + +func (this *ScintillaEdit) ScrollCaret() { + C.ScintillaEdit_ScrollCaret(this.h) +} + +func (this *ScintillaEdit) ScrollRange(secondary uintptr, primary uintptr) { + C.ScintillaEdit_ScrollRange(this.h, (C.intptr_t)(secondary), (C.intptr_t)(primary)) +} + +func (this *ScintillaEdit) ReplaceSel(text string) { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + C.ScintillaEdit_ReplaceSel(this.h, text_Cstring) +} + +func (this *ScintillaEdit) SetReadOnly(readOnly bool) { + C.ScintillaEdit_SetReadOnly(this.h, (C.bool)(readOnly)) +} + +func (this *ScintillaEdit) Null() { + C.ScintillaEdit_Null(this.h) +} + +func (this *ScintillaEdit) CanPaste() bool { + return (bool)(C.ScintillaEdit_CanPaste(this.h)) +} + +func (this *ScintillaEdit) CanUndo() bool { + return (bool)(C.ScintillaEdit_CanUndo(this.h)) +} + +func (this *ScintillaEdit) EmptyUndoBuffer() { + C.ScintillaEdit_EmptyUndoBuffer(this.h) +} + +func (this *ScintillaEdit) Undo() { + C.ScintillaEdit_Undo(this.h) +} + +func (this *ScintillaEdit) Cut() { + C.ScintillaEdit_Cut(this.h) +} + +func (this *ScintillaEdit) Copy() { + C.ScintillaEdit_Copy(this.h) +} + +func (this *ScintillaEdit) Paste() { + C.ScintillaEdit_Paste(this.h) +} + +func (this *ScintillaEdit) Clear() { + C.ScintillaEdit_Clear(this.h) +} + +func (this *ScintillaEdit) SetText(text string) { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + C.ScintillaEdit_SetText(this.h, text_Cstring) +} + +func (this *ScintillaEdit) GetText(length uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_GetText(this.h, (C.intptr_t)(length)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) TextLength() uintptr { + return (uintptr)(C.ScintillaEdit_TextLength(this.h)) +} + +func (this *ScintillaEdit) DirectFunction() uintptr { + return (uintptr)(C.ScintillaEdit_DirectFunction(this.h)) +} + +func (this *ScintillaEdit) DirectStatusFunction() uintptr { + return (uintptr)(C.ScintillaEdit_DirectStatusFunction(this.h)) +} + +func (this *ScintillaEdit) DirectPointer() uintptr { + return (uintptr)(C.ScintillaEdit_DirectPointer(this.h)) +} + +func (this *ScintillaEdit) SetOvertype(overType bool) { + C.ScintillaEdit_SetOvertype(this.h, (C.bool)(overType)) +} + +func (this *ScintillaEdit) Overtype() bool { + return (bool)(C.ScintillaEdit_Overtype(this.h)) +} + +func (this *ScintillaEdit) SetCaretWidth(pixelWidth uintptr) { + C.ScintillaEdit_SetCaretWidth(this.h, (C.intptr_t)(pixelWidth)) +} + +func (this *ScintillaEdit) CaretWidth() uintptr { + return (uintptr)(C.ScintillaEdit_CaretWidth(this.h)) +} + +func (this *ScintillaEdit) SetTargetStart(start uintptr) { + C.ScintillaEdit_SetTargetStart(this.h, (C.intptr_t)(start)) +} + +func (this *ScintillaEdit) TargetStart() uintptr { + return (uintptr)(C.ScintillaEdit_TargetStart(this.h)) +} + +func (this *ScintillaEdit) SetTargetStartVirtualSpace(space uintptr) { + C.ScintillaEdit_SetTargetStartVirtualSpace(this.h, (C.intptr_t)(space)) +} + +func (this *ScintillaEdit) TargetStartVirtualSpace() uintptr { + return (uintptr)(C.ScintillaEdit_TargetStartVirtualSpace(this.h)) +} + +func (this *ScintillaEdit) SetTargetEnd(end uintptr) { + C.ScintillaEdit_SetTargetEnd(this.h, (C.intptr_t)(end)) +} + +func (this *ScintillaEdit) TargetEnd() uintptr { + return (uintptr)(C.ScintillaEdit_TargetEnd(this.h)) +} + +func (this *ScintillaEdit) SetTargetEndVirtualSpace(space uintptr) { + C.ScintillaEdit_SetTargetEndVirtualSpace(this.h, (C.intptr_t)(space)) +} + +func (this *ScintillaEdit) TargetEndVirtualSpace() uintptr { + return (uintptr)(C.ScintillaEdit_TargetEndVirtualSpace(this.h)) +} + +func (this *ScintillaEdit) SetTargetRange(start uintptr, end uintptr) { + C.ScintillaEdit_SetTargetRange(this.h, (C.intptr_t)(start), (C.intptr_t)(end)) +} + +func (this *ScintillaEdit) TargetText() []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_TargetText(this.h) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) TargetFromSelection() { + C.ScintillaEdit_TargetFromSelection(this.h) +} + +func (this *ScintillaEdit) TargetWholeDocument() { + C.ScintillaEdit_TargetWholeDocument(this.h) +} + +func (this *ScintillaEdit) ReplaceTarget(length uintptr, text string) uintptr { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + return (uintptr)(C.ScintillaEdit_ReplaceTarget(this.h, (C.intptr_t)(length), text_Cstring)) +} + +func (this *ScintillaEdit) ReplaceTargetRE(length uintptr, text string) uintptr { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + return (uintptr)(C.ScintillaEdit_ReplaceTargetRE(this.h, (C.intptr_t)(length), text_Cstring)) +} + +func (this *ScintillaEdit) ReplaceTargetMinimal(length uintptr, text string) uintptr { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + return (uintptr)(C.ScintillaEdit_ReplaceTargetMinimal(this.h, (C.intptr_t)(length), text_Cstring)) +} + +func (this *ScintillaEdit) SearchInTarget(length uintptr, text string) uintptr { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + return (uintptr)(C.ScintillaEdit_SearchInTarget(this.h, (C.intptr_t)(length), text_Cstring)) +} + +func (this *ScintillaEdit) SetSearchFlags(searchFlags uintptr) { + C.ScintillaEdit_SetSearchFlags(this.h, (C.intptr_t)(searchFlags)) +} + +func (this *ScintillaEdit) SearchFlags() uintptr { + return (uintptr)(C.ScintillaEdit_SearchFlags(this.h)) +} + +func (this *ScintillaEdit) CallTipShow(pos uintptr, definition string) { + definition_Cstring := C.CString(definition) + defer C.free(unsafe.Pointer(definition_Cstring)) + C.ScintillaEdit_CallTipShow(this.h, (C.intptr_t)(pos), definition_Cstring) +} + +func (this *ScintillaEdit) CallTipCancel() { + C.ScintillaEdit_CallTipCancel(this.h) +} + +func (this *ScintillaEdit) CallTipActive() bool { + return (bool)(C.ScintillaEdit_CallTipActive(this.h)) +} + +func (this *ScintillaEdit) CallTipPosStart() uintptr { + return (uintptr)(C.ScintillaEdit_CallTipPosStart(this.h)) +} + +func (this *ScintillaEdit) CallTipSetPosStart(posStart uintptr) { + C.ScintillaEdit_CallTipSetPosStart(this.h, (C.intptr_t)(posStart)) +} + +func (this *ScintillaEdit) CallTipSetHlt(highlightStart uintptr, highlightEnd uintptr) { + C.ScintillaEdit_CallTipSetHlt(this.h, (C.intptr_t)(highlightStart), (C.intptr_t)(highlightEnd)) +} + +func (this *ScintillaEdit) CallTipSetBack(back uintptr) { + C.ScintillaEdit_CallTipSetBack(this.h, (C.intptr_t)(back)) +} + +func (this *ScintillaEdit) CallTipSetFore(fore uintptr) { + C.ScintillaEdit_CallTipSetFore(this.h, (C.intptr_t)(fore)) +} + +func (this *ScintillaEdit) CallTipSetForeHlt(fore uintptr) { + C.ScintillaEdit_CallTipSetForeHlt(this.h, (C.intptr_t)(fore)) +} + +func (this *ScintillaEdit) CallTipUseStyle(tabSize uintptr) { + C.ScintillaEdit_CallTipUseStyle(this.h, (C.intptr_t)(tabSize)) +} + +func (this *ScintillaEdit) CallTipSetPosition(above bool) { + C.ScintillaEdit_CallTipSetPosition(this.h, (C.bool)(above)) +} + +func (this *ScintillaEdit) VisibleFromDocLine(docLine uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_VisibleFromDocLine(this.h, (C.intptr_t)(docLine))) +} + +func (this *ScintillaEdit) DocLineFromVisible(displayLine uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_DocLineFromVisible(this.h, (C.intptr_t)(displayLine))) +} + +func (this *ScintillaEdit) WrapCount(docLine uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_WrapCount(this.h, (C.intptr_t)(docLine))) +} + +func (this *ScintillaEdit) SetFoldLevel(line uintptr, level uintptr) { + C.ScintillaEdit_SetFoldLevel(this.h, (C.intptr_t)(line), (C.intptr_t)(level)) +} + +func (this *ScintillaEdit) FoldLevel(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_FoldLevel(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) LastChild(line uintptr, level uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_LastChild(this.h, (C.intptr_t)(line), (C.intptr_t)(level))) +} + +func (this *ScintillaEdit) FoldParent(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_FoldParent(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) ShowLines(lineStart uintptr, lineEnd uintptr) { + C.ScintillaEdit_ShowLines(this.h, (C.intptr_t)(lineStart), (C.intptr_t)(lineEnd)) +} + +func (this *ScintillaEdit) HideLines(lineStart uintptr, lineEnd uintptr) { + C.ScintillaEdit_HideLines(this.h, (C.intptr_t)(lineStart), (C.intptr_t)(lineEnd)) +} + +func (this *ScintillaEdit) LineVisible(line uintptr) bool { + return (bool)(C.ScintillaEdit_LineVisible(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) AllLinesVisible() bool { + return (bool)(C.ScintillaEdit_AllLinesVisible(this.h)) +} + +func (this *ScintillaEdit) SetFoldExpanded(line uintptr, expanded bool) { + C.ScintillaEdit_SetFoldExpanded(this.h, (C.intptr_t)(line), (C.bool)(expanded)) +} + +func (this *ScintillaEdit) FoldExpanded(line uintptr) bool { + return (bool)(C.ScintillaEdit_FoldExpanded(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) ToggleFold(line uintptr) { + C.ScintillaEdit_ToggleFold(this.h, (C.intptr_t)(line)) +} + +func (this *ScintillaEdit) ToggleFoldShowText(line uintptr, text string) { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + C.ScintillaEdit_ToggleFoldShowText(this.h, (C.intptr_t)(line), text_Cstring) +} + +func (this *ScintillaEdit) FoldDisplayTextSetStyle(style uintptr) { + C.ScintillaEdit_FoldDisplayTextSetStyle(this.h, (C.intptr_t)(style)) +} + +func (this *ScintillaEdit) FoldDisplayTextStyle() uintptr { + return (uintptr)(C.ScintillaEdit_FoldDisplayTextStyle(this.h)) +} + +func (this *ScintillaEdit) SetDefaultFoldDisplayText(text string) { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + C.ScintillaEdit_SetDefaultFoldDisplayText(this.h, text_Cstring) +} + +func (this *ScintillaEdit) GetDefaultFoldDisplayText() []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_GetDefaultFoldDisplayText(this.h) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) FoldLine(line uintptr, action uintptr) { + C.ScintillaEdit_FoldLine(this.h, (C.intptr_t)(line), (C.intptr_t)(action)) +} + +func (this *ScintillaEdit) FoldChildren(line uintptr, action uintptr) { + C.ScintillaEdit_FoldChildren(this.h, (C.intptr_t)(line), (C.intptr_t)(action)) +} + +func (this *ScintillaEdit) ExpandChildren(line uintptr, level uintptr) { + C.ScintillaEdit_ExpandChildren(this.h, (C.intptr_t)(line), (C.intptr_t)(level)) +} + +func (this *ScintillaEdit) FoldAll(action uintptr) { + C.ScintillaEdit_FoldAll(this.h, (C.intptr_t)(action)) +} + +func (this *ScintillaEdit) EnsureVisible(line uintptr) { + C.ScintillaEdit_EnsureVisible(this.h, (C.intptr_t)(line)) +} + +func (this *ScintillaEdit) SetAutomaticFold(automaticFold uintptr) { + C.ScintillaEdit_SetAutomaticFold(this.h, (C.intptr_t)(automaticFold)) +} + +func (this *ScintillaEdit) AutomaticFold() uintptr { + return (uintptr)(C.ScintillaEdit_AutomaticFold(this.h)) +} + +func (this *ScintillaEdit) SetFoldFlags(flags uintptr) { + C.ScintillaEdit_SetFoldFlags(this.h, (C.intptr_t)(flags)) +} + +func (this *ScintillaEdit) EnsureVisibleEnforcePolicy(line uintptr) { + C.ScintillaEdit_EnsureVisibleEnforcePolicy(this.h, (C.intptr_t)(line)) +} + +func (this *ScintillaEdit) SetTabIndents(tabIndents bool) { + C.ScintillaEdit_SetTabIndents(this.h, (C.bool)(tabIndents)) +} + +func (this *ScintillaEdit) TabIndents() bool { + return (bool)(C.ScintillaEdit_TabIndents(this.h)) +} + +func (this *ScintillaEdit) SetBackSpaceUnIndents(bsUnIndents bool) { + C.ScintillaEdit_SetBackSpaceUnIndents(this.h, (C.bool)(bsUnIndents)) +} + +func (this *ScintillaEdit) BackSpaceUnIndents() bool { + return (bool)(C.ScintillaEdit_BackSpaceUnIndents(this.h)) +} + +func (this *ScintillaEdit) SetMouseDwellTime(periodMilliseconds uintptr) { + C.ScintillaEdit_SetMouseDwellTime(this.h, (C.intptr_t)(periodMilliseconds)) +} + +func (this *ScintillaEdit) MouseDwellTime() uintptr { + return (uintptr)(C.ScintillaEdit_MouseDwellTime(this.h)) +} + +func (this *ScintillaEdit) WordStartPosition(pos uintptr, onlyWordCharacters bool) uintptr { + return (uintptr)(C.ScintillaEdit_WordStartPosition(this.h, (C.intptr_t)(pos), (C.bool)(onlyWordCharacters))) +} + +func (this *ScintillaEdit) WordEndPosition(pos uintptr, onlyWordCharacters bool) uintptr { + return (uintptr)(C.ScintillaEdit_WordEndPosition(this.h, (C.intptr_t)(pos), (C.bool)(onlyWordCharacters))) +} + +func (this *ScintillaEdit) IsRangeWord(start uintptr, end uintptr) bool { + return (bool)(C.ScintillaEdit_IsRangeWord(this.h, (C.intptr_t)(start), (C.intptr_t)(end))) +} + +func (this *ScintillaEdit) SetIdleStyling(idleStyling uintptr) { + C.ScintillaEdit_SetIdleStyling(this.h, (C.intptr_t)(idleStyling)) +} + +func (this *ScintillaEdit) IdleStyling() uintptr { + return (uintptr)(C.ScintillaEdit_IdleStyling(this.h)) +} + +func (this *ScintillaEdit) SetWrapMode(wrapMode uintptr) { + C.ScintillaEdit_SetWrapMode(this.h, (C.intptr_t)(wrapMode)) +} + +func (this *ScintillaEdit) WrapMode() uintptr { + return (uintptr)(C.ScintillaEdit_WrapMode(this.h)) +} + +func (this *ScintillaEdit) SetWrapVisualFlags(wrapVisualFlags uintptr) { + C.ScintillaEdit_SetWrapVisualFlags(this.h, (C.intptr_t)(wrapVisualFlags)) +} + +func (this *ScintillaEdit) WrapVisualFlags() uintptr { + return (uintptr)(C.ScintillaEdit_WrapVisualFlags(this.h)) +} + +func (this *ScintillaEdit) SetWrapVisualFlagsLocation(wrapVisualFlagsLocation uintptr) { + C.ScintillaEdit_SetWrapVisualFlagsLocation(this.h, (C.intptr_t)(wrapVisualFlagsLocation)) +} + +func (this *ScintillaEdit) WrapVisualFlagsLocation() uintptr { + return (uintptr)(C.ScintillaEdit_WrapVisualFlagsLocation(this.h)) +} + +func (this *ScintillaEdit) SetWrapStartIndent(indent uintptr) { + C.ScintillaEdit_SetWrapStartIndent(this.h, (C.intptr_t)(indent)) +} + +func (this *ScintillaEdit) WrapStartIndent() uintptr { + return (uintptr)(C.ScintillaEdit_WrapStartIndent(this.h)) +} + +func (this *ScintillaEdit) SetWrapIndentMode(wrapIndentMode uintptr) { + C.ScintillaEdit_SetWrapIndentMode(this.h, (C.intptr_t)(wrapIndentMode)) +} + +func (this *ScintillaEdit) WrapIndentMode() uintptr { + return (uintptr)(C.ScintillaEdit_WrapIndentMode(this.h)) +} + +func (this *ScintillaEdit) SetLayoutCache(cacheMode uintptr) { + C.ScintillaEdit_SetLayoutCache(this.h, (C.intptr_t)(cacheMode)) +} + +func (this *ScintillaEdit) LayoutCache() uintptr { + return (uintptr)(C.ScintillaEdit_LayoutCache(this.h)) +} + +func (this *ScintillaEdit) SetScrollWidth(pixelWidth uintptr) { + C.ScintillaEdit_SetScrollWidth(this.h, (C.intptr_t)(pixelWidth)) +} + +func (this *ScintillaEdit) ScrollWidth() uintptr { + return (uintptr)(C.ScintillaEdit_ScrollWidth(this.h)) +} + +func (this *ScintillaEdit) SetScrollWidthTracking(tracking bool) { + C.ScintillaEdit_SetScrollWidthTracking(this.h, (C.bool)(tracking)) +} + +func (this *ScintillaEdit) ScrollWidthTracking() bool { + return (bool)(C.ScintillaEdit_ScrollWidthTracking(this.h)) +} + +func (this *ScintillaEdit) TextWidth(style uintptr, text string) uintptr { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + return (uintptr)(C.ScintillaEdit_TextWidth(this.h, (C.intptr_t)(style), text_Cstring)) +} + +func (this *ScintillaEdit) SetEndAtLastLine(endAtLastLine bool) { + C.ScintillaEdit_SetEndAtLastLine(this.h, (C.bool)(endAtLastLine)) +} + +func (this *ScintillaEdit) EndAtLastLine() bool { + return (bool)(C.ScintillaEdit_EndAtLastLine(this.h)) +} + +func (this *ScintillaEdit) TextHeight(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_TextHeight(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) SetVScrollBar(visible bool) { + C.ScintillaEdit_SetVScrollBar(this.h, (C.bool)(visible)) +} + +func (this *ScintillaEdit) VScrollBar() bool { + return (bool)(C.ScintillaEdit_VScrollBar(this.h)) +} + +func (this *ScintillaEdit) AppendText(length uintptr, text string) { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + C.ScintillaEdit_AppendText(this.h, (C.intptr_t)(length), text_Cstring) +} + +func (this *ScintillaEdit) PhasesDraw() uintptr { + return (uintptr)(C.ScintillaEdit_PhasesDraw(this.h)) +} + +func (this *ScintillaEdit) SetPhasesDraw(phases uintptr) { + C.ScintillaEdit_SetPhasesDraw(this.h, (C.intptr_t)(phases)) +} + +func (this *ScintillaEdit) SetFontQuality(fontQuality uintptr) { + C.ScintillaEdit_SetFontQuality(this.h, (C.intptr_t)(fontQuality)) +} + +func (this *ScintillaEdit) FontQuality() uintptr { + return (uintptr)(C.ScintillaEdit_FontQuality(this.h)) +} + +func (this *ScintillaEdit) SetFirstVisibleLine(displayLine uintptr) { + C.ScintillaEdit_SetFirstVisibleLine(this.h, (C.intptr_t)(displayLine)) +} + +func (this *ScintillaEdit) SetMultiPaste(multiPaste uintptr) { + C.ScintillaEdit_SetMultiPaste(this.h, (C.intptr_t)(multiPaste)) +} + +func (this *ScintillaEdit) MultiPaste() uintptr { + return (uintptr)(C.ScintillaEdit_MultiPaste(this.h)) +} + +func (this *ScintillaEdit) Tag(tagNumber uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_Tag(this.h, (C.intptr_t)(tagNumber)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) LinesJoin() { + C.ScintillaEdit_LinesJoin(this.h) +} + +func (this *ScintillaEdit) LinesSplit(pixelWidth uintptr) { + C.ScintillaEdit_LinesSplit(this.h, (C.intptr_t)(pixelWidth)) +} + +func (this *ScintillaEdit) SetFoldMarginColour(useSetting bool, back uintptr) { + C.ScintillaEdit_SetFoldMarginColour(this.h, (C.bool)(useSetting), (C.intptr_t)(back)) +} + +func (this *ScintillaEdit) SetFoldMarginHiColour(useSetting bool, fore uintptr) { + C.ScintillaEdit_SetFoldMarginHiColour(this.h, (C.bool)(useSetting), (C.intptr_t)(fore)) +} + +func (this *ScintillaEdit) SetAccessibility(accessibility uintptr) { + C.ScintillaEdit_SetAccessibility(this.h, (C.intptr_t)(accessibility)) +} + +func (this *ScintillaEdit) Accessibility() uintptr { + return (uintptr)(C.ScintillaEdit_Accessibility(this.h)) +} + +func (this *ScintillaEdit) LineDown() { + C.ScintillaEdit_LineDown(this.h) +} + +func (this *ScintillaEdit) LineDownExtend() { + C.ScintillaEdit_LineDownExtend(this.h) +} + +func (this *ScintillaEdit) LineUp() { + C.ScintillaEdit_LineUp(this.h) +} + +func (this *ScintillaEdit) LineUpExtend() { + C.ScintillaEdit_LineUpExtend(this.h) +} + +func (this *ScintillaEdit) CharLeft() { + C.ScintillaEdit_CharLeft(this.h) +} + +func (this *ScintillaEdit) CharLeftExtend() { + C.ScintillaEdit_CharLeftExtend(this.h) +} + +func (this *ScintillaEdit) CharRight() { + C.ScintillaEdit_CharRight(this.h) +} + +func (this *ScintillaEdit) CharRightExtend() { + C.ScintillaEdit_CharRightExtend(this.h) +} + +func (this *ScintillaEdit) WordLeft() { + C.ScintillaEdit_WordLeft(this.h) +} + +func (this *ScintillaEdit) WordLeftExtend() { + C.ScintillaEdit_WordLeftExtend(this.h) +} + +func (this *ScintillaEdit) WordRight() { + C.ScintillaEdit_WordRight(this.h) +} + +func (this *ScintillaEdit) WordRightExtend() { + C.ScintillaEdit_WordRightExtend(this.h) +} + +func (this *ScintillaEdit) Home() { + C.ScintillaEdit_Home(this.h) +} + +func (this *ScintillaEdit) HomeExtend() { + C.ScintillaEdit_HomeExtend(this.h) +} + +func (this *ScintillaEdit) LineEnd() { + C.ScintillaEdit_LineEnd(this.h) +} + +func (this *ScintillaEdit) LineEndExtend() { + C.ScintillaEdit_LineEndExtend(this.h) +} + +func (this *ScintillaEdit) DocumentStart() { + C.ScintillaEdit_DocumentStart(this.h) +} + +func (this *ScintillaEdit) DocumentStartExtend() { + C.ScintillaEdit_DocumentStartExtend(this.h) +} + +func (this *ScintillaEdit) DocumentEnd() { + C.ScintillaEdit_DocumentEnd(this.h) +} + +func (this *ScintillaEdit) DocumentEndExtend() { + C.ScintillaEdit_DocumentEndExtend(this.h) +} + +func (this *ScintillaEdit) PageUp() { + C.ScintillaEdit_PageUp(this.h) +} + +func (this *ScintillaEdit) PageUpExtend() { + C.ScintillaEdit_PageUpExtend(this.h) +} + +func (this *ScintillaEdit) PageDown() { + C.ScintillaEdit_PageDown(this.h) +} + +func (this *ScintillaEdit) PageDownExtend() { + C.ScintillaEdit_PageDownExtend(this.h) +} + +func (this *ScintillaEdit) EditToggleOvertype() { + C.ScintillaEdit_EditToggleOvertype(this.h) +} + +func (this *ScintillaEdit) Cancel() { + C.ScintillaEdit_Cancel(this.h) +} + +func (this *ScintillaEdit) DeleteBack() { + C.ScintillaEdit_DeleteBack(this.h) +} + +func (this *ScintillaEdit) Tab() { + C.ScintillaEdit_Tab(this.h) +} + +func (this *ScintillaEdit) LineIndent() { + C.ScintillaEdit_LineIndent(this.h) +} + +func (this *ScintillaEdit) BackTab() { + C.ScintillaEdit_BackTab(this.h) +} + +func (this *ScintillaEdit) LineDedent() { + C.ScintillaEdit_LineDedent(this.h) +} + +func (this *ScintillaEdit) NewLine() { + C.ScintillaEdit_NewLine(this.h) +} + +func (this *ScintillaEdit) FormFeed() { + C.ScintillaEdit_FormFeed(this.h) +} + +func (this *ScintillaEdit) VCHome() { + C.ScintillaEdit_VCHome(this.h) +} + +func (this *ScintillaEdit) VCHomeExtend() { + C.ScintillaEdit_VCHomeExtend(this.h) +} + +func (this *ScintillaEdit) ZoomIn() { + C.ScintillaEdit_ZoomIn(this.h) +} + +func (this *ScintillaEdit) ZoomOut() { + C.ScintillaEdit_ZoomOut(this.h) +} + +func (this *ScintillaEdit) DelWordLeft() { + C.ScintillaEdit_DelWordLeft(this.h) +} + +func (this *ScintillaEdit) DelWordRight() { + C.ScintillaEdit_DelWordRight(this.h) +} + +func (this *ScintillaEdit) DelWordRightEnd() { + C.ScintillaEdit_DelWordRightEnd(this.h) +} + +func (this *ScintillaEdit) LineCut() { + C.ScintillaEdit_LineCut(this.h) +} + +func (this *ScintillaEdit) LineDelete() { + C.ScintillaEdit_LineDelete(this.h) +} + +func (this *ScintillaEdit) LineTranspose() { + C.ScintillaEdit_LineTranspose(this.h) +} + +func (this *ScintillaEdit) LineReverse() { + C.ScintillaEdit_LineReverse(this.h) +} + +func (this *ScintillaEdit) LineDuplicate() { + C.ScintillaEdit_LineDuplicate(this.h) +} + +func (this *ScintillaEdit) LowerCase() { + C.ScintillaEdit_LowerCase(this.h) +} + +func (this *ScintillaEdit) UpperCase() { + C.ScintillaEdit_UpperCase(this.h) +} + +func (this *ScintillaEdit) LineScrollDown() { + C.ScintillaEdit_LineScrollDown(this.h) +} + +func (this *ScintillaEdit) LineScrollUp() { + C.ScintillaEdit_LineScrollUp(this.h) +} + +func (this *ScintillaEdit) DeleteBackNotLine() { + C.ScintillaEdit_DeleteBackNotLine(this.h) +} + +func (this *ScintillaEdit) HomeDisplay() { + C.ScintillaEdit_HomeDisplay(this.h) +} + +func (this *ScintillaEdit) HomeDisplayExtend() { + C.ScintillaEdit_HomeDisplayExtend(this.h) +} + +func (this *ScintillaEdit) LineEndDisplay() { + C.ScintillaEdit_LineEndDisplay(this.h) +} + +func (this *ScintillaEdit) LineEndDisplayExtend() { + C.ScintillaEdit_LineEndDisplayExtend(this.h) +} + +func (this *ScintillaEdit) HomeWrap() { + C.ScintillaEdit_HomeWrap(this.h) +} + +func (this *ScintillaEdit) HomeWrapExtend() { + C.ScintillaEdit_HomeWrapExtend(this.h) +} + +func (this *ScintillaEdit) LineEndWrap() { + C.ScintillaEdit_LineEndWrap(this.h) +} + +func (this *ScintillaEdit) LineEndWrapExtend() { + C.ScintillaEdit_LineEndWrapExtend(this.h) +} + +func (this *ScintillaEdit) VCHomeWrap() { + C.ScintillaEdit_VCHomeWrap(this.h) +} + +func (this *ScintillaEdit) VCHomeWrapExtend() { + C.ScintillaEdit_VCHomeWrapExtend(this.h) +} + +func (this *ScintillaEdit) LineCopy() { + C.ScintillaEdit_LineCopy(this.h) +} + +func (this *ScintillaEdit) MoveCaretInsideView() { + C.ScintillaEdit_MoveCaretInsideView(this.h) +} + +func (this *ScintillaEdit) LineLength(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_LineLength(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) BraceHighlight(posA uintptr, posB uintptr) { + C.ScintillaEdit_BraceHighlight(this.h, (C.intptr_t)(posA), (C.intptr_t)(posB)) +} + +func (this *ScintillaEdit) BraceHighlightIndicator(useSetting bool, indicator uintptr) { + C.ScintillaEdit_BraceHighlightIndicator(this.h, (C.bool)(useSetting), (C.intptr_t)(indicator)) +} + +func (this *ScintillaEdit) BraceBadLight(pos uintptr) { + C.ScintillaEdit_BraceBadLight(this.h, (C.intptr_t)(pos)) +} + +func (this *ScintillaEdit) BraceBadLightIndicator(useSetting bool, indicator uintptr) { + C.ScintillaEdit_BraceBadLightIndicator(this.h, (C.bool)(useSetting), (C.intptr_t)(indicator)) +} + +func (this *ScintillaEdit) BraceMatch(pos uintptr, maxReStyle uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_BraceMatch(this.h, (C.intptr_t)(pos), (C.intptr_t)(maxReStyle))) +} + +func (this *ScintillaEdit) BraceMatchNext(pos uintptr, startPos uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_BraceMatchNext(this.h, (C.intptr_t)(pos), (C.intptr_t)(startPos))) +} + +func (this *ScintillaEdit) ViewEOL() bool { + return (bool)(C.ScintillaEdit_ViewEOL(this.h)) +} + +func (this *ScintillaEdit) SetViewEOL(visible bool) { + C.ScintillaEdit_SetViewEOL(this.h, (C.bool)(visible)) +} + +func (this *ScintillaEdit) DocPointer() uintptr { + return (uintptr)(C.ScintillaEdit_DocPointer(this.h)) +} + +func (this *ScintillaEdit) SetDocPointer(doc uintptr) { + C.ScintillaEdit_SetDocPointer(this.h, (C.intptr_t)(doc)) +} + +func (this *ScintillaEdit) SetModEventMask(eventMask uintptr) { + C.ScintillaEdit_SetModEventMask(this.h, (C.intptr_t)(eventMask)) +} + +func (this *ScintillaEdit) EdgeColumn() uintptr { + return (uintptr)(C.ScintillaEdit_EdgeColumn(this.h)) +} + +func (this *ScintillaEdit) SetEdgeColumn(column uintptr) { + C.ScintillaEdit_SetEdgeColumn(this.h, (C.intptr_t)(column)) +} + +func (this *ScintillaEdit) EdgeMode() uintptr { + return (uintptr)(C.ScintillaEdit_EdgeMode(this.h)) +} + +func (this *ScintillaEdit) SetEdgeMode(edgeMode uintptr) { + C.ScintillaEdit_SetEdgeMode(this.h, (C.intptr_t)(edgeMode)) +} + +func (this *ScintillaEdit) EdgeColour() uintptr { + return (uintptr)(C.ScintillaEdit_EdgeColour(this.h)) +} + +func (this *ScintillaEdit) SetEdgeColour(edgeColour uintptr) { + C.ScintillaEdit_SetEdgeColour(this.h, (C.intptr_t)(edgeColour)) +} + +func (this *ScintillaEdit) MultiEdgeAddLine(column uintptr, edgeColour uintptr) { + C.ScintillaEdit_MultiEdgeAddLine(this.h, (C.intptr_t)(column), (C.intptr_t)(edgeColour)) +} + +func (this *ScintillaEdit) MultiEdgeClearAll() { + C.ScintillaEdit_MultiEdgeClearAll(this.h) +} + +func (this *ScintillaEdit) MultiEdgeColumn(which uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MultiEdgeColumn(this.h, (C.intptr_t)(which))) +} + +func (this *ScintillaEdit) SearchAnchor() { + C.ScintillaEdit_SearchAnchor(this.h) +} + +func (this *ScintillaEdit) SearchNext(searchFlags uintptr, text string) uintptr { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + return (uintptr)(C.ScintillaEdit_SearchNext(this.h, (C.intptr_t)(searchFlags), text_Cstring)) +} + +func (this *ScintillaEdit) SearchPrev(searchFlags uintptr, text string) uintptr { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + return (uintptr)(C.ScintillaEdit_SearchPrev(this.h, (C.intptr_t)(searchFlags), text_Cstring)) +} + +func (this *ScintillaEdit) LinesOnScreen() uintptr { + return (uintptr)(C.ScintillaEdit_LinesOnScreen(this.h)) +} + +func (this *ScintillaEdit) UsePopUp(popUpMode uintptr) { + C.ScintillaEdit_UsePopUp(this.h, (C.intptr_t)(popUpMode)) +} + +func (this *ScintillaEdit) SelectionIsRectangle() bool { + return (bool)(C.ScintillaEdit_SelectionIsRectangle(this.h)) +} + +func (this *ScintillaEdit) SetZoom(zoomInPoints uintptr) { + C.ScintillaEdit_SetZoom(this.h, (C.intptr_t)(zoomInPoints)) +} + +func (this *ScintillaEdit) Zoom() uintptr { + return (uintptr)(C.ScintillaEdit_Zoom(this.h)) +} + +func (this *ScintillaEdit) CreateDocument(bytes uintptr, documentOptions uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_CreateDocument(this.h, (C.intptr_t)(bytes), (C.intptr_t)(documentOptions))) +} + +func (this *ScintillaEdit) AddRefDocument(doc uintptr) { + C.ScintillaEdit_AddRefDocument(this.h, (C.intptr_t)(doc)) +} + +func (this *ScintillaEdit) ReleaseDocument(doc uintptr) { + C.ScintillaEdit_ReleaseDocument(this.h, (C.intptr_t)(doc)) +} + +func (this *ScintillaEdit) DocumentOptions() uintptr { + return (uintptr)(C.ScintillaEdit_DocumentOptions(this.h)) +} + +func (this *ScintillaEdit) ModEventMask() uintptr { + return (uintptr)(C.ScintillaEdit_ModEventMask(this.h)) +} + +func (this *ScintillaEdit) SetCommandEvents(commandEvents bool) { + C.ScintillaEdit_SetCommandEvents(this.h, (C.bool)(commandEvents)) +} + +func (this *ScintillaEdit) CommandEvents() bool { + return (bool)(C.ScintillaEdit_CommandEvents(this.h)) +} + +func (this *ScintillaEdit) SetFocus(focus bool) { + C.ScintillaEdit_SetFocus(this.h, (C.bool)(focus)) +} + +func (this *ScintillaEdit) Focus() bool { + return (bool)(C.ScintillaEdit_Focus(this.h)) +} + +func (this *ScintillaEdit) SetStatus(status uintptr) { + C.ScintillaEdit_SetStatus(this.h, (C.intptr_t)(status)) +} + +func (this *ScintillaEdit) Status() uintptr { + return (uintptr)(C.ScintillaEdit_Status(this.h)) +} + +func (this *ScintillaEdit) SetMouseDownCaptures(captures bool) { + C.ScintillaEdit_SetMouseDownCaptures(this.h, (C.bool)(captures)) +} + +func (this *ScintillaEdit) MouseDownCaptures() bool { + return (bool)(C.ScintillaEdit_MouseDownCaptures(this.h)) +} + +func (this *ScintillaEdit) SetMouseWheelCaptures(captures bool) { + C.ScintillaEdit_SetMouseWheelCaptures(this.h, (C.bool)(captures)) +} + +func (this *ScintillaEdit) MouseWheelCaptures() bool { + return (bool)(C.ScintillaEdit_MouseWheelCaptures(this.h)) +} + +func (this *ScintillaEdit) SetCursor(cursorType uintptr) { + C.ScintillaEdit_SetCursor(this.h, (C.intptr_t)(cursorType)) +} + +func (this *ScintillaEdit) Cursor() uintptr { + return (uintptr)(C.ScintillaEdit_Cursor(this.h)) +} + +func (this *ScintillaEdit) SetControlCharSymbol(symbol uintptr) { + C.ScintillaEdit_SetControlCharSymbol(this.h, (C.intptr_t)(symbol)) +} + +func (this *ScintillaEdit) ControlCharSymbol() uintptr { + return (uintptr)(C.ScintillaEdit_ControlCharSymbol(this.h)) +} + +func (this *ScintillaEdit) WordPartLeft() { + C.ScintillaEdit_WordPartLeft(this.h) +} + +func (this *ScintillaEdit) WordPartLeftExtend() { + C.ScintillaEdit_WordPartLeftExtend(this.h) +} + +func (this *ScintillaEdit) WordPartRight() { + C.ScintillaEdit_WordPartRight(this.h) +} + +func (this *ScintillaEdit) WordPartRightExtend() { + C.ScintillaEdit_WordPartRightExtend(this.h) +} + +func (this *ScintillaEdit) SetVisiblePolicy(visiblePolicy uintptr, visibleSlop uintptr) { + C.ScintillaEdit_SetVisiblePolicy(this.h, (C.intptr_t)(visiblePolicy), (C.intptr_t)(visibleSlop)) +} + +func (this *ScintillaEdit) DelLineLeft() { + C.ScintillaEdit_DelLineLeft(this.h) +} + +func (this *ScintillaEdit) DelLineRight() { + C.ScintillaEdit_DelLineRight(this.h) +} + +func (this *ScintillaEdit) SetXOffset(xOffset uintptr) { + C.ScintillaEdit_SetXOffset(this.h, (C.intptr_t)(xOffset)) +} + +func (this *ScintillaEdit) XOffset() uintptr { + return (uintptr)(C.ScintillaEdit_XOffset(this.h)) +} + +func (this *ScintillaEdit) ChooseCaretX() { + C.ScintillaEdit_ChooseCaretX(this.h) +} + +func (this *ScintillaEdit) GrabFocus() { + C.ScintillaEdit_GrabFocus(this.h) +} + +func (this *ScintillaEdit) SetXCaretPolicy(caretPolicy uintptr, caretSlop uintptr) { + C.ScintillaEdit_SetXCaretPolicy(this.h, (C.intptr_t)(caretPolicy), (C.intptr_t)(caretSlop)) +} + +func (this *ScintillaEdit) SetYCaretPolicy(caretPolicy uintptr, caretSlop uintptr) { + C.ScintillaEdit_SetYCaretPolicy(this.h, (C.intptr_t)(caretPolicy), (C.intptr_t)(caretSlop)) +} + +func (this *ScintillaEdit) SetPrintWrapMode(wrapMode uintptr) { + C.ScintillaEdit_SetPrintWrapMode(this.h, (C.intptr_t)(wrapMode)) +} + +func (this *ScintillaEdit) PrintWrapMode() uintptr { + return (uintptr)(C.ScintillaEdit_PrintWrapMode(this.h)) +} + +func (this *ScintillaEdit) SetHotspotActiveFore(useSetting bool, fore uintptr) { + C.ScintillaEdit_SetHotspotActiveFore(this.h, (C.bool)(useSetting), (C.intptr_t)(fore)) +} + +func (this *ScintillaEdit) HotspotActiveFore() uintptr { + return (uintptr)(C.ScintillaEdit_HotspotActiveFore(this.h)) +} + +func (this *ScintillaEdit) SetHotspotActiveBack(useSetting bool, back uintptr) { + C.ScintillaEdit_SetHotspotActiveBack(this.h, (C.bool)(useSetting), (C.intptr_t)(back)) +} + +func (this *ScintillaEdit) HotspotActiveBack() uintptr { + return (uintptr)(C.ScintillaEdit_HotspotActiveBack(this.h)) +} + +func (this *ScintillaEdit) SetHotspotActiveUnderline(underline bool) { + C.ScintillaEdit_SetHotspotActiveUnderline(this.h, (C.bool)(underline)) +} + +func (this *ScintillaEdit) HotspotActiveUnderline() bool { + return (bool)(C.ScintillaEdit_HotspotActiveUnderline(this.h)) +} + +func (this *ScintillaEdit) SetHotspotSingleLine(singleLine bool) { + C.ScintillaEdit_SetHotspotSingleLine(this.h, (C.bool)(singleLine)) +} + +func (this *ScintillaEdit) HotspotSingleLine() bool { + return (bool)(C.ScintillaEdit_HotspotSingleLine(this.h)) +} + +func (this *ScintillaEdit) ParaDown() { + C.ScintillaEdit_ParaDown(this.h) +} + +func (this *ScintillaEdit) ParaDownExtend() { + C.ScintillaEdit_ParaDownExtend(this.h) +} + +func (this *ScintillaEdit) ParaUp() { + C.ScintillaEdit_ParaUp(this.h) +} + +func (this *ScintillaEdit) ParaUpExtend() { + C.ScintillaEdit_ParaUpExtend(this.h) +} + +func (this *ScintillaEdit) PositionBefore(pos uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_PositionBefore(this.h, (C.intptr_t)(pos))) +} + +func (this *ScintillaEdit) PositionAfter(pos uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_PositionAfter(this.h, (C.intptr_t)(pos))) +} + +func (this *ScintillaEdit) PositionRelative(pos uintptr, relative uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_PositionRelative(this.h, (C.intptr_t)(pos), (C.intptr_t)(relative))) +} + +func (this *ScintillaEdit) PositionRelativeCodeUnits(pos uintptr, relative uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_PositionRelativeCodeUnits(this.h, (C.intptr_t)(pos), (C.intptr_t)(relative))) +} + +func (this *ScintillaEdit) CopyRange(start uintptr, end uintptr) { + C.ScintillaEdit_CopyRange(this.h, (C.intptr_t)(start), (C.intptr_t)(end)) +} + +func (this *ScintillaEdit) CopyText(length uintptr, text string) { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + C.ScintillaEdit_CopyText(this.h, (C.intptr_t)(length), text_Cstring) +} + +func (this *ScintillaEdit) SetSelectionMode(selectionMode uintptr) { + C.ScintillaEdit_SetSelectionMode(this.h, (C.intptr_t)(selectionMode)) +} + +func (this *ScintillaEdit) ChangeSelectionMode(selectionMode uintptr) { + C.ScintillaEdit_ChangeSelectionMode(this.h, (C.intptr_t)(selectionMode)) +} + +func (this *ScintillaEdit) SelectionMode() uintptr { + return (uintptr)(C.ScintillaEdit_SelectionMode(this.h)) +} + +func (this *ScintillaEdit) SetMoveExtendsSelection(moveExtendsSelection bool) { + C.ScintillaEdit_SetMoveExtendsSelection(this.h, (C.bool)(moveExtendsSelection)) +} + +func (this *ScintillaEdit) MoveExtendsSelection() bool { + return (bool)(C.ScintillaEdit_MoveExtendsSelection(this.h)) +} + +func (this *ScintillaEdit) GetLineSelStartPosition(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_GetLineSelStartPosition(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) GetLineSelEndPosition(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_GetLineSelEndPosition(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) LineDownRectExtend() { + C.ScintillaEdit_LineDownRectExtend(this.h) +} + +func (this *ScintillaEdit) LineUpRectExtend() { + C.ScintillaEdit_LineUpRectExtend(this.h) +} + +func (this *ScintillaEdit) CharLeftRectExtend() { + C.ScintillaEdit_CharLeftRectExtend(this.h) +} + +func (this *ScintillaEdit) CharRightRectExtend() { + C.ScintillaEdit_CharRightRectExtend(this.h) +} + +func (this *ScintillaEdit) HomeRectExtend() { + C.ScintillaEdit_HomeRectExtend(this.h) +} + +func (this *ScintillaEdit) VCHomeRectExtend() { + C.ScintillaEdit_VCHomeRectExtend(this.h) +} + +func (this *ScintillaEdit) LineEndRectExtend() { + C.ScintillaEdit_LineEndRectExtend(this.h) +} + +func (this *ScintillaEdit) PageUpRectExtend() { + C.ScintillaEdit_PageUpRectExtend(this.h) +} + +func (this *ScintillaEdit) PageDownRectExtend() { + C.ScintillaEdit_PageDownRectExtend(this.h) +} + +func (this *ScintillaEdit) StutteredPageUp() { + C.ScintillaEdit_StutteredPageUp(this.h) +} + +func (this *ScintillaEdit) StutteredPageUpExtend() { + C.ScintillaEdit_StutteredPageUpExtend(this.h) +} + +func (this *ScintillaEdit) StutteredPageDown() { + C.ScintillaEdit_StutteredPageDown(this.h) +} + +func (this *ScintillaEdit) StutteredPageDownExtend() { + C.ScintillaEdit_StutteredPageDownExtend(this.h) +} + +func (this *ScintillaEdit) WordLeftEnd() { + C.ScintillaEdit_WordLeftEnd(this.h) +} + +func (this *ScintillaEdit) WordLeftEndExtend() { + C.ScintillaEdit_WordLeftEndExtend(this.h) +} + +func (this *ScintillaEdit) WordRightEnd() { + C.ScintillaEdit_WordRightEnd(this.h) +} + +func (this *ScintillaEdit) WordRightEndExtend() { + C.ScintillaEdit_WordRightEndExtend(this.h) +} + +func (this *ScintillaEdit) SetWhitespaceChars(characters string) { + characters_Cstring := C.CString(characters) + defer C.free(unsafe.Pointer(characters_Cstring)) + C.ScintillaEdit_SetWhitespaceChars(this.h, characters_Cstring) +} + +func (this *ScintillaEdit) WhitespaceChars() []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_WhitespaceChars(this.h) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) SetPunctuationChars(characters string) { + characters_Cstring := C.CString(characters) + defer C.free(unsafe.Pointer(characters_Cstring)) + C.ScintillaEdit_SetPunctuationChars(this.h, characters_Cstring) +} + +func (this *ScintillaEdit) PunctuationChars() []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_PunctuationChars(this.h) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) SetCharsDefault() { + C.ScintillaEdit_SetCharsDefault(this.h) +} + +func (this *ScintillaEdit) AutoCCurrent() uintptr { + return (uintptr)(C.ScintillaEdit_AutoCCurrent(this.h)) +} + +func (this *ScintillaEdit) AutoCCurrentText() []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_AutoCCurrentText(this.h) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) AutoCSetCaseInsensitiveBehaviour(behaviour uintptr) { + C.ScintillaEdit_AutoCSetCaseInsensitiveBehaviour(this.h, (C.intptr_t)(behaviour)) +} + +func (this *ScintillaEdit) AutoCCaseInsensitiveBehaviour() uintptr { + return (uintptr)(C.ScintillaEdit_AutoCCaseInsensitiveBehaviour(this.h)) +} + +func (this *ScintillaEdit) AutoCSetMulti(multi uintptr) { + C.ScintillaEdit_AutoCSetMulti(this.h, (C.intptr_t)(multi)) +} + +func (this *ScintillaEdit) AutoCMulti() uintptr { + return (uintptr)(C.ScintillaEdit_AutoCMulti(this.h)) +} + +func (this *ScintillaEdit) AutoCSetOrder(order uintptr) { + C.ScintillaEdit_AutoCSetOrder(this.h, (C.intptr_t)(order)) +} + +func (this *ScintillaEdit) AutoCOrder() uintptr { + return (uintptr)(C.ScintillaEdit_AutoCOrder(this.h)) +} + +func (this *ScintillaEdit) Allocate(bytes uintptr) { + C.ScintillaEdit_Allocate(this.h, (C.intptr_t)(bytes)) +} + +func (this *ScintillaEdit) TargetAsUTF8() []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_TargetAsUTF8(this.h) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) SetLengthForEncode(bytes uintptr) { + C.ScintillaEdit_SetLengthForEncode(this.h, (C.intptr_t)(bytes)) +} + +func (this *ScintillaEdit) EncodedFromUTF8(utf8 string) []byte { + utf8_Cstring := C.CString(utf8) + defer C.free(unsafe.Pointer(utf8_Cstring)) + var _bytearray C.struct_miqt_string = C.ScintillaEdit_EncodedFromUTF8(this.h, utf8_Cstring) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) FindColumn(line uintptr, column uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_FindColumn(this.h, (C.intptr_t)(line), (C.intptr_t)(column))) +} + +func (this *ScintillaEdit) CaretSticky() uintptr { + return (uintptr)(C.ScintillaEdit_CaretSticky(this.h)) +} + +func (this *ScintillaEdit) SetCaretSticky(useCaretStickyBehaviour uintptr) { + C.ScintillaEdit_SetCaretSticky(this.h, (C.intptr_t)(useCaretStickyBehaviour)) +} + +func (this *ScintillaEdit) ToggleCaretSticky() { + C.ScintillaEdit_ToggleCaretSticky(this.h) +} + +func (this *ScintillaEdit) SetPasteConvertEndings(convert bool) { + C.ScintillaEdit_SetPasteConvertEndings(this.h, (C.bool)(convert)) +} + +func (this *ScintillaEdit) PasteConvertEndings() bool { + return (bool)(C.ScintillaEdit_PasteConvertEndings(this.h)) +} + +func (this *ScintillaEdit) ReplaceRectangular(length uintptr, text string) { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + C.ScintillaEdit_ReplaceRectangular(this.h, (C.intptr_t)(length), text_Cstring) +} + +func (this *ScintillaEdit) SelectionDuplicate() { + C.ScintillaEdit_SelectionDuplicate(this.h) +} + +func (this *ScintillaEdit) SetCaretLineBackAlpha(alpha uintptr) { + C.ScintillaEdit_SetCaretLineBackAlpha(this.h, (C.intptr_t)(alpha)) +} + +func (this *ScintillaEdit) CaretLineBackAlpha() uintptr { + return (uintptr)(C.ScintillaEdit_CaretLineBackAlpha(this.h)) +} + +func (this *ScintillaEdit) SetCaretStyle(caretStyle uintptr) { + C.ScintillaEdit_SetCaretStyle(this.h, (C.intptr_t)(caretStyle)) +} + +func (this *ScintillaEdit) CaretStyle() uintptr { + return (uintptr)(C.ScintillaEdit_CaretStyle(this.h)) +} + +func (this *ScintillaEdit) SetIndicatorCurrent(indicator uintptr) { + C.ScintillaEdit_SetIndicatorCurrent(this.h, (C.intptr_t)(indicator)) +} + +func (this *ScintillaEdit) IndicatorCurrent() uintptr { + return (uintptr)(C.ScintillaEdit_IndicatorCurrent(this.h)) +} + +func (this *ScintillaEdit) SetIndicatorValue(value uintptr) { + C.ScintillaEdit_SetIndicatorValue(this.h, (C.intptr_t)(value)) +} + +func (this *ScintillaEdit) IndicatorValue() uintptr { + return (uintptr)(C.ScintillaEdit_IndicatorValue(this.h)) +} + +func (this *ScintillaEdit) IndicatorFillRange(start uintptr, lengthFill uintptr) { + C.ScintillaEdit_IndicatorFillRange(this.h, (C.intptr_t)(start), (C.intptr_t)(lengthFill)) +} + +func (this *ScintillaEdit) IndicatorClearRange(start uintptr, lengthClear uintptr) { + C.ScintillaEdit_IndicatorClearRange(this.h, (C.intptr_t)(start), (C.intptr_t)(lengthClear)) +} + +func (this *ScintillaEdit) IndicatorAllOnFor(pos uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_IndicatorAllOnFor(this.h, (C.intptr_t)(pos))) +} + +func (this *ScintillaEdit) IndicatorValueAt(indicator uintptr, pos uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_IndicatorValueAt(this.h, (C.intptr_t)(indicator), (C.intptr_t)(pos))) +} + +func (this *ScintillaEdit) IndicatorStart(indicator uintptr, pos uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_IndicatorStart(this.h, (C.intptr_t)(indicator), (C.intptr_t)(pos))) +} + +func (this *ScintillaEdit) IndicatorEnd(indicator uintptr, pos uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_IndicatorEnd(this.h, (C.intptr_t)(indicator), (C.intptr_t)(pos))) +} + +func (this *ScintillaEdit) SetPositionCache(size uintptr) { + C.ScintillaEdit_SetPositionCache(this.h, (C.intptr_t)(size)) +} + +func (this *ScintillaEdit) PositionCache() uintptr { + return (uintptr)(C.ScintillaEdit_PositionCache(this.h)) +} + +func (this *ScintillaEdit) SetLayoutThreads(threads uintptr) { + C.ScintillaEdit_SetLayoutThreads(this.h, (C.intptr_t)(threads)) +} + +func (this *ScintillaEdit) LayoutThreads() uintptr { + return (uintptr)(C.ScintillaEdit_LayoutThreads(this.h)) +} + +func (this *ScintillaEdit) CopyAllowLine() { + C.ScintillaEdit_CopyAllowLine(this.h) +} + +func (this *ScintillaEdit) CutAllowLine() { + C.ScintillaEdit_CutAllowLine(this.h) +} + +func (this *ScintillaEdit) SetCopySeparator(separator string) { + separator_Cstring := C.CString(separator) + defer C.free(unsafe.Pointer(separator_Cstring)) + C.ScintillaEdit_SetCopySeparator(this.h, separator_Cstring) +} + +func (this *ScintillaEdit) CopySeparator() []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_CopySeparator(this.h) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) CharacterPointer() uintptr { + return (uintptr)(C.ScintillaEdit_CharacterPointer(this.h)) +} + +func (this *ScintillaEdit) RangePointer(start uintptr, lengthRange uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_RangePointer(this.h, (C.intptr_t)(start), (C.intptr_t)(lengthRange))) +} + +func (this *ScintillaEdit) GapPosition() uintptr { + return (uintptr)(C.ScintillaEdit_GapPosition(this.h)) +} + +func (this *ScintillaEdit) IndicSetAlpha(indicator uintptr, alpha uintptr) { + C.ScintillaEdit_IndicSetAlpha(this.h, (C.intptr_t)(indicator), (C.intptr_t)(alpha)) +} + +func (this *ScintillaEdit) IndicAlpha(indicator uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_IndicAlpha(this.h, (C.intptr_t)(indicator))) +} + +func (this *ScintillaEdit) IndicSetOutlineAlpha(indicator uintptr, alpha uintptr) { + C.ScintillaEdit_IndicSetOutlineAlpha(this.h, (C.intptr_t)(indicator), (C.intptr_t)(alpha)) +} + +func (this *ScintillaEdit) IndicOutlineAlpha(indicator uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_IndicOutlineAlpha(this.h, (C.intptr_t)(indicator))) +} + +func (this *ScintillaEdit) SetExtraAscent(extraAscent uintptr) { + C.ScintillaEdit_SetExtraAscent(this.h, (C.intptr_t)(extraAscent)) +} + +func (this *ScintillaEdit) ExtraAscent() uintptr { + return (uintptr)(C.ScintillaEdit_ExtraAscent(this.h)) +} + +func (this *ScintillaEdit) SetExtraDescent(extraDescent uintptr) { + C.ScintillaEdit_SetExtraDescent(this.h, (C.intptr_t)(extraDescent)) +} + +func (this *ScintillaEdit) ExtraDescent() uintptr { + return (uintptr)(C.ScintillaEdit_ExtraDescent(this.h)) +} + +func (this *ScintillaEdit) MarkerSymbolDefined(markerNumber uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarkerSymbolDefined(this.h, (C.intptr_t)(markerNumber))) +} + +func (this *ScintillaEdit) MarginSetText(line uintptr, text string) { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + C.ScintillaEdit_MarginSetText(this.h, (C.intptr_t)(line), text_Cstring) +} + +func (this *ScintillaEdit) MarginText(line uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_MarginText(this.h, (C.intptr_t)(line)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) MarginSetStyle(line uintptr, style uintptr) { + C.ScintillaEdit_MarginSetStyle(this.h, (C.intptr_t)(line), (C.intptr_t)(style)) +} + +func (this *ScintillaEdit) MarginStyle(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_MarginStyle(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) MarginSetStyles(line uintptr, styles string) { + styles_Cstring := C.CString(styles) + defer C.free(unsafe.Pointer(styles_Cstring)) + C.ScintillaEdit_MarginSetStyles(this.h, (C.intptr_t)(line), styles_Cstring) +} + +func (this *ScintillaEdit) MarginStyles(line uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_MarginStyles(this.h, (C.intptr_t)(line)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) MarginTextClearAll() { + C.ScintillaEdit_MarginTextClearAll(this.h) +} + +func (this *ScintillaEdit) MarginSetStyleOffset(style uintptr) { + C.ScintillaEdit_MarginSetStyleOffset(this.h, (C.intptr_t)(style)) +} + +func (this *ScintillaEdit) MarginStyleOffset() uintptr { + return (uintptr)(C.ScintillaEdit_MarginStyleOffset(this.h)) +} + +func (this *ScintillaEdit) SetMarginOptions(marginOptions uintptr) { + C.ScintillaEdit_SetMarginOptions(this.h, (C.intptr_t)(marginOptions)) +} + +func (this *ScintillaEdit) MarginOptions() uintptr { + return (uintptr)(C.ScintillaEdit_MarginOptions(this.h)) +} + +func (this *ScintillaEdit) AnnotationSetText(line uintptr, text string) { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + C.ScintillaEdit_AnnotationSetText(this.h, (C.intptr_t)(line), text_Cstring) +} + +func (this *ScintillaEdit) AnnotationText(line uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_AnnotationText(this.h, (C.intptr_t)(line)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) AnnotationSetStyle(line uintptr, style uintptr) { + C.ScintillaEdit_AnnotationSetStyle(this.h, (C.intptr_t)(line), (C.intptr_t)(style)) +} + +func (this *ScintillaEdit) AnnotationStyle(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_AnnotationStyle(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) AnnotationSetStyles(line uintptr, styles string) { + styles_Cstring := C.CString(styles) + defer C.free(unsafe.Pointer(styles_Cstring)) + C.ScintillaEdit_AnnotationSetStyles(this.h, (C.intptr_t)(line), styles_Cstring) +} + +func (this *ScintillaEdit) AnnotationStyles(line uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_AnnotationStyles(this.h, (C.intptr_t)(line)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) AnnotationLines(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_AnnotationLines(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) AnnotationClearAll() { + C.ScintillaEdit_AnnotationClearAll(this.h) +} + +func (this *ScintillaEdit) AnnotationSetVisible(visible uintptr) { + C.ScintillaEdit_AnnotationSetVisible(this.h, (C.intptr_t)(visible)) +} + +func (this *ScintillaEdit) AnnotationVisible() uintptr { + return (uintptr)(C.ScintillaEdit_AnnotationVisible(this.h)) +} + +func (this *ScintillaEdit) AnnotationSetStyleOffset(style uintptr) { + C.ScintillaEdit_AnnotationSetStyleOffset(this.h, (C.intptr_t)(style)) +} + +func (this *ScintillaEdit) AnnotationStyleOffset() uintptr { + return (uintptr)(C.ScintillaEdit_AnnotationStyleOffset(this.h)) +} + +func (this *ScintillaEdit) ReleaseAllExtendedStyles() { + C.ScintillaEdit_ReleaseAllExtendedStyles(this.h) +} + +func (this *ScintillaEdit) AllocateExtendedStyles(numberStyles uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_AllocateExtendedStyles(this.h, (C.intptr_t)(numberStyles))) +} + +func (this *ScintillaEdit) AddUndoAction(token uintptr, flags uintptr) { + C.ScintillaEdit_AddUndoAction(this.h, (C.intptr_t)(token), (C.intptr_t)(flags)) +} + +func (this *ScintillaEdit) CharPositionFromPoint(x uintptr, y uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_CharPositionFromPoint(this.h, (C.intptr_t)(x), (C.intptr_t)(y))) +} + +func (this *ScintillaEdit) CharPositionFromPointClose(x uintptr, y uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_CharPositionFromPointClose(this.h, (C.intptr_t)(x), (C.intptr_t)(y))) +} + +func (this *ScintillaEdit) SetMouseSelectionRectangularSwitch(mouseSelectionRectangularSwitch bool) { + C.ScintillaEdit_SetMouseSelectionRectangularSwitch(this.h, (C.bool)(mouseSelectionRectangularSwitch)) +} + +func (this *ScintillaEdit) MouseSelectionRectangularSwitch() bool { + return (bool)(C.ScintillaEdit_MouseSelectionRectangularSwitch(this.h)) +} + +func (this *ScintillaEdit) SetMultipleSelection(multipleSelection bool) { + C.ScintillaEdit_SetMultipleSelection(this.h, (C.bool)(multipleSelection)) +} + +func (this *ScintillaEdit) MultipleSelection() bool { + return (bool)(C.ScintillaEdit_MultipleSelection(this.h)) +} + +func (this *ScintillaEdit) SetAdditionalSelectionTyping(additionalSelectionTyping bool) { + C.ScintillaEdit_SetAdditionalSelectionTyping(this.h, (C.bool)(additionalSelectionTyping)) +} + +func (this *ScintillaEdit) AdditionalSelectionTyping() bool { + return (bool)(C.ScintillaEdit_AdditionalSelectionTyping(this.h)) +} + +func (this *ScintillaEdit) SetAdditionalCaretsBlink(additionalCaretsBlink bool) { + C.ScintillaEdit_SetAdditionalCaretsBlink(this.h, (C.bool)(additionalCaretsBlink)) +} + +func (this *ScintillaEdit) AdditionalCaretsBlink() bool { + return (bool)(C.ScintillaEdit_AdditionalCaretsBlink(this.h)) +} + +func (this *ScintillaEdit) SetAdditionalCaretsVisible(additionalCaretsVisible bool) { + C.ScintillaEdit_SetAdditionalCaretsVisible(this.h, (C.bool)(additionalCaretsVisible)) +} + +func (this *ScintillaEdit) AdditionalCaretsVisible() bool { + return (bool)(C.ScintillaEdit_AdditionalCaretsVisible(this.h)) +} + +func (this *ScintillaEdit) Selections() uintptr { + return (uintptr)(C.ScintillaEdit_Selections(this.h)) +} + +func (this *ScintillaEdit) SelectionEmpty() bool { + return (bool)(C.ScintillaEdit_SelectionEmpty(this.h)) +} + +func (this *ScintillaEdit) ClearSelections() { + C.ScintillaEdit_ClearSelections(this.h) +} + +func (this *ScintillaEdit) SetSelection(caret uintptr, anchor uintptr) { + C.ScintillaEdit_SetSelection(this.h, (C.intptr_t)(caret), (C.intptr_t)(anchor)) +} + +func (this *ScintillaEdit) AddSelection(caret uintptr, anchor uintptr) { + C.ScintillaEdit_AddSelection(this.h, (C.intptr_t)(caret), (C.intptr_t)(anchor)) +} + +func (this *ScintillaEdit) SelectionFromPoint(x uintptr, y uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_SelectionFromPoint(this.h, (C.intptr_t)(x), (C.intptr_t)(y))) +} + +func (this *ScintillaEdit) DropSelectionN(selection uintptr) { + C.ScintillaEdit_DropSelectionN(this.h, (C.intptr_t)(selection)) +} + +func (this *ScintillaEdit) SetMainSelection(selection uintptr) { + C.ScintillaEdit_SetMainSelection(this.h, (C.intptr_t)(selection)) +} + +func (this *ScintillaEdit) MainSelection() uintptr { + return (uintptr)(C.ScintillaEdit_MainSelection(this.h)) +} + +func (this *ScintillaEdit) SetSelectionNCaret(selection uintptr, caret uintptr) { + C.ScintillaEdit_SetSelectionNCaret(this.h, (C.intptr_t)(selection), (C.intptr_t)(caret)) +} + +func (this *ScintillaEdit) SelectionNCaret(selection uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_SelectionNCaret(this.h, (C.intptr_t)(selection))) +} + +func (this *ScintillaEdit) SetSelectionNAnchor(selection uintptr, anchor uintptr) { + C.ScintillaEdit_SetSelectionNAnchor(this.h, (C.intptr_t)(selection), (C.intptr_t)(anchor)) +} + +func (this *ScintillaEdit) SelectionNAnchor(selection uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_SelectionNAnchor(this.h, (C.intptr_t)(selection))) +} + +func (this *ScintillaEdit) SetSelectionNCaretVirtualSpace(selection uintptr, space uintptr) { + C.ScintillaEdit_SetSelectionNCaretVirtualSpace(this.h, (C.intptr_t)(selection), (C.intptr_t)(space)) +} + +func (this *ScintillaEdit) SelectionNCaretVirtualSpace(selection uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_SelectionNCaretVirtualSpace(this.h, (C.intptr_t)(selection))) +} + +func (this *ScintillaEdit) SetSelectionNAnchorVirtualSpace(selection uintptr, space uintptr) { + C.ScintillaEdit_SetSelectionNAnchorVirtualSpace(this.h, (C.intptr_t)(selection), (C.intptr_t)(space)) +} + +func (this *ScintillaEdit) SelectionNAnchorVirtualSpace(selection uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_SelectionNAnchorVirtualSpace(this.h, (C.intptr_t)(selection))) +} + +func (this *ScintillaEdit) SetSelectionNStart(selection uintptr, anchor uintptr) { + C.ScintillaEdit_SetSelectionNStart(this.h, (C.intptr_t)(selection), (C.intptr_t)(anchor)) +} + +func (this *ScintillaEdit) SelectionNStart(selection uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_SelectionNStart(this.h, (C.intptr_t)(selection))) +} + +func (this *ScintillaEdit) SelectionNStartVirtualSpace(selection uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_SelectionNStartVirtualSpace(this.h, (C.intptr_t)(selection))) +} + +func (this *ScintillaEdit) SetSelectionNEnd(selection uintptr, caret uintptr) { + C.ScintillaEdit_SetSelectionNEnd(this.h, (C.intptr_t)(selection), (C.intptr_t)(caret)) +} + +func (this *ScintillaEdit) SelectionNEndVirtualSpace(selection uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_SelectionNEndVirtualSpace(this.h, (C.intptr_t)(selection))) +} + +func (this *ScintillaEdit) SelectionNEnd(selection uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_SelectionNEnd(this.h, (C.intptr_t)(selection))) +} + +func (this *ScintillaEdit) SetRectangularSelectionCaret(caret uintptr) { + C.ScintillaEdit_SetRectangularSelectionCaret(this.h, (C.intptr_t)(caret)) +} + +func (this *ScintillaEdit) RectangularSelectionCaret() uintptr { + return (uintptr)(C.ScintillaEdit_RectangularSelectionCaret(this.h)) +} + +func (this *ScintillaEdit) SetRectangularSelectionAnchor(anchor uintptr) { + C.ScintillaEdit_SetRectangularSelectionAnchor(this.h, (C.intptr_t)(anchor)) +} + +func (this *ScintillaEdit) RectangularSelectionAnchor() uintptr { + return (uintptr)(C.ScintillaEdit_RectangularSelectionAnchor(this.h)) +} + +func (this *ScintillaEdit) SetRectangularSelectionCaretVirtualSpace(space uintptr) { + C.ScintillaEdit_SetRectangularSelectionCaretVirtualSpace(this.h, (C.intptr_t)(space)) +} + +func (this *ScintillaEdit) RectangularSelectionCaretVirtualSpace() uintptr { + return (uintptr)(C.ScintillaEdit_RectangularSelectionCaretVirtualSpace(this.h)) +} + +func (this *ScintillaEdit) SetRectangularSelectionAnchorVirtualSpace(space uintptr) { + C.ScintillaEdit_SetRectangularSelectionAnchorVirtualSpace(this.h, (C.intptr_t)(space)) +} + +func (this *ScintillaEdit) RectangularSelectionAnchorVirtualSpace() uintptr { + return (uintptr)(C.ScintillaEdit_RectangularSelectionAnchorVirtualSpace(this.h)) +} + +func (this *ScintillaEdit) SetVirtualSpaceOptions(virtualSpaceOptions uintptr) { + C.ScintillaEdit_SetVirtualSpaceOptions(this.h, (C.intptr_t)(virtualSpaceOptions)) +} + +func (this *ScintillaEdit) VirtualSpaceOptions() uintptr { + return (uintptr)(C.ScintillaEdit_VirtualSpaceOptions(this.h)) +} + +func (this *ScintillaEdit) SetRectangularSelectionModifier(modifier uintptr) { + C.ScintillaEdit_SetRectangularSelectionModifier(this.h, (C.intptr_t)(modifier)) +} + +func (this *ScintillaEdit) RectangularSelectionModifier() uintptr { + return (uintptr)(C.ScintillaEdit_RectangularSelectionModifier(this.h)) +} + +func (this *ScintillaEdit) SetAdditionalSelFore(fore uintptr) { + C.ScintillaEdit_SetAdditionalSelFore(this.h, (C.intptr_t)(fore)) +} + +func (this *ScintillaEdit) SetAdditionalSelBack(back uintptr) { + C.ScintillaEdit_SetAdditionalSelBack(this.h, (C.intptr_t)(back)) +} + +func (this *ScintillaEdit) SetAdditionalSelAlpha(alpha uintptr) { + C.ScintillaEdit_SetAdditionalSelAlpha(this.h, (C.intptr_t)(alpha)) +} + +func (this *ScintillaEdit) AdditionalSelAlpha() uintptr { + return (uintptr)(C.ScintillaEdit_AdditionalSelAlpha(this.h)) +} + +func (this *ScintillaEdit) SetAdditionalCaretFore(fore uintptr) { + C.ScintillaEdit_SetAdditionalCaretFore(this.h, (C.intptr_t)(fore)) +} + +func (this *ScintillaEdit) AdditionalCaretFore() uintptr { + return (uintptr)(C.ScintillaEdit_AdditionalCaretFore(this.h)) +} + +func (this *ScintillaEdit) RotateSelection() { + C.ScintillaEdit_RotateSelection(this.h) +} + +func (this *ScintillaEdit) SwapMainAnchorCaret() { + C.ScintillaEdit_SwapMainAnchorCaret(this.h) +} + +func (this *ScintillaEdit) MultipleSelectAddNext() { + C.ScintillaEdit_MultipleSelectAddNext(this.h) +} + +func (this *ScintillaEdit) MultipleSelectAddEach() { + C.ScintillaEdit_MultipleSelectAddEach(this.h) +} + +func (this *ScintillaEdit) ChangeLexerState(start uintptr, end uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_ChangeLexerState(this.h, (C.intptr_t)(start), (C.intptr_t)(end))) +} + +func (this *ScintillaEdit) ContractedFoldNext(lineStart uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_ContractedFoldNext(this.h, (C.intptr_t)(lineStart))) +} + +func (this *ScintillaEdit) VerticalCentreCaret() { + C.ScintillaEdit_VerticalCentreCaret(this.h) +} + +func (this *ScintillaEdit) MoveSelectedLinesUp() { + C.ScintillaEdit_MoveSelectedLinesUp(this.h) +} + +func (this *ScintillaEdit) MoveSelectedLinesDown() { + C.ScintillaEdit_MoveSelectedLinesDown(this.h) +} + +func (this *ScintillaEdit) SetIdentifier(identifier uintptr) { + C.ScintillaEdit_SetIdentifier(this.h, (C.intptr_t)(identifier)) +} + +func (this *ScintillaEdit) Identifier() uintptr { + return (uintptr)(C.ScintillaEdit_Identifier(this.h)) +} + +func (this *ScintillaEdit) RGBAImageSetWidth(width uintptr) { + C.ScintillaEdit_RGBAImageSetWidth(this.h, (C.intptr_t)(width)) +} + +func (this *ScintillaEdit) RGBAImageSetHeight(height uintptr) { + C.ScintillaEdit_RGBAImageSetHeight(this.h, (C.intptr_t)(height)) +} + +func (this *ScintillaEdit) RGBAImageSetScale(scalePercent uintptr) { + C.ScintillaEdit_RGBAImageSetScale(this.h, (C.intptr_t)(scalePercent)) +} + +func (this *ScintillaEdit) MarkerDefineRGBAImage(markerNumber uintptr, pixels string) { + pixels_Cstring := C.CString(pixels) + defer C.free(unsafe.Pointer(pixels_Cstring)) + C.ScintillaEdit_MarkerDefineRGBAImage(this.h, (C.intptr_t)(markerNumber), pixels_Cstring) +} + +func (this *ScintillaEdit) RegisterRGBAImage(typeVal uintptr, pixels string) { + pixels_Cstring := C.CString(pixels) + defer C.free(unsafe.Pointer(pixels_Cstring)) + C.ScintillaEdit_RegisterRGBAImage(this.h, (C.intptr_t)(typeVal), pixels_Cstring) +} + +func (this *ScintillaEdit) ScrollToStart() { + C.ScintillaEdit_ScrollToStart(this.h) +} + +func (this *ScintillaEdit) ScrollToEnd() { + C.ScintillaEdit_ScrollToEnd(this.h) +} + +func (this *ScintillaEdit) SetTechnology(technology uintptr) { + C.ScintillaEdit_SetTechnology(this.h, (C.intptr_t)(technology)) +} + +func (this *ScintillaEdit) Technology() uintptr { + return (uintptr)(C.ScintillaEdit_Technology(this.h)) +} + +func (this *ScintillaEdit) CreateLoader(bytes uintptr, documentOptions uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_CreateLoader(this.h, (C.intptr_t)(bytes), (C.intptr_t)(documentOptions))) +} + +func (this *ScintillaEdit) FindIndicatorShow(start uintptr, end uintptr) { + C.ScintillaEdit_FindIndicatorShow(this.h, (C.intptr_t)(start), (C.intptr_t)(end)) +} + +func (this *ScintillaEdit) FindIndicatorFlash(start uintptr, end uintptr) { + C.ScintillaEdit_FindIndicatorFlash(this.h, (C.intptr_t)(start), (C.intptr_t)(end)) +} + +func (this *ScintillaEdit) FindIndicatorHide() { + C.ScintillaEdit_FindIndicatorHide(this.h) +} + +func (this *ScintillaEdit) VCHomeDisplay() { + C.ScintillaEdit_VCHomeDisplay(this.h) +} + +func (this *ScintillaEdit) VCHomeDisplayExtend() { + C.ScintillaEdit_VCHomeDisplayExtend(this.h) +} + +func (this *ScintillaEdit) CaretLineVisibleAlways() bool { + return (bool)(C.ScintillaEdit_CaretLineVisibleAlways(this.h)) +} + +func (this *ScintillaEdit) SetCaretLineVisibleAlways(alwaysVisible bool) { + C.ScintillaEdit_SetCaretLineVisibleAlways(this.h, (C.bool)(alwaysVisible)) +} + +func (this *ScintillaEdit) SetLineEndTypesAllowed(lineEndBitSet uintptr) { + C.ScintillaEdit_SetLineEndTypesAllowed(this.h, (C.intptr_t)(lineEndBitSet)) +} + +func (this *ScintillaEdit) LineEndTypesAllowed() uintptr { + return (uintptr)(C.ScintillaEdit_LineEndTypesAllowed(this.h)) +} + +func (this *ScintillaEdit) LineEndTypesActive() uintptr { + return (uintptr)(C.ScintillaEdit_LineEndTypesActive(this.h)) +} + +func (this *ScintillaEdit) SetRepresentation(encodedCharacter string, representation string) { + encodedCharacter_Cstring := C.CString(encodedCharacter) + defer C.free(unsafe.Pointer(encodedCharacter_Cstring)) + representation_Cstring := C.CString(representation) + defer C.free(unsafe.Pointer(representation_Cstring)) + C.ScintillaEdit_SetRepresentation(this.h, encodedCharacter_Cstring, representation_Cstring) +} + +func (this *ScintillaEdit) Representation(encodedCharacter string) []byte { + encodedCharacter_Cstring := C.CString(encodedCharacter) + defer C.free(unsafe.Pointer(encodedCharacter_Cstring)) + var _bytearray C.struct_miqt_string = C.ScintillaEdit_Representation(this.h, encodedCharacter_Cstring) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) ClearRepresentation(encodedCharacter string) { + encodedCharacter_Cstring := C.CString(encodedCharacter) + defer C.free(unsafe.Pointer(encodedCharacter_Cstring)) + C.ScintillaEdit_ClearRepresentation(this.h, encodedCharacter_Cstring) +} + +func (this *ScintillaEdit) ClearAllRepresentations() { + C.ScintillaEdit_ClearAllRepresentations(this.h) +} + +func (this *ScintillaEdit) SetRepresentationAppearance(encodedCharacter string, appearance uintptr) { + encodedCharacter_Cstring := C.CString(encodedCharacter) + defer C.free(unsafe.Pointer(encodedCharacter_Cstring)) + C.ScintillaEdit_SetRepresentationAppearance(this.h, encodedCharacter_Cstring, (C.intptr_t)(appearance)) +} + +func (this *ScintillaEdit) RepresentationAppearance(encodedCharacter string) uintptr { + encodedCharacter_Cstring := C.CString(encodedCharacter) + defer C.free(unsafe.Pointer(encodedCharacter_Cstring)) + return (uintptr)(C.ScintillaEdit_RepresentationAppearance(this.h, encodedCharacter_Cstring)) +} + +func (this *ScintillaEdit) SetRepresentationColour(encodedCharacter string, colour uintptr) { + encodedCharacter_Cstring := C.CString(encodedCharacter) + defer C.free(unsafe.Pointer(encodedCharacter_Cstring)) + C.ScintillaEdit_SetRepresentationColour(this.h, encodedCharacter_Cstring, (C.intptr_t)(colour)) +} + +func (this *ScintillaEdit) RepresentationColour(encodedCharacter string) uintptr { + encodedCharacter_Cstring := C.CString(encodedCharacter) + defer C.free(unsafe.Pointer(encodedCharacter_Cstring)) + return (uintptr)(C.ScintillaEdit_RepresentationColour(this.h, encodedCharacter_Cstring)) +} + +func (this *ScintillaEdit) EOLAnnotationSetText(line uintptr, text string) { + text_Cstring := C.CString(text) + defer C.free(unsafe.Pointer(text_Cstring)) + C.ScintillaEdit_EOLAnnotationSetText(this.h, (C.intptr_t)(line), text_Cstring) +} + +func (this *ScintillaEdit) EOLAnnotationText(line uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_EOLAnnotationText(this.h, (C.intptr_t)(line)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) EOLAnnotationSetStyle(line uintptr, style uintptr) { + C.ScintillaEdit_EOLAnnotationSetStyle(this.h, (C.intptr_t)(line), (C.intptr_t)(style)) +} + +func (this *ScintillaEdit) EOLAnnotationStyle(line uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_EOLAnnotationStyle(this.h, (C.intptr_t)(line))) +} + +func (this *ScintillaEdit) EOLAnnotationClearAll() { + C.ScintillaEdit_EOLAnnotationClearAll(this.h) +} + +func (this *ScintillaEdit) EOLAnnotationSetVisible(visible uintptr) { + C.ScintillaEdit_EOLAnnotationSetVisible(this.h, (C.intptr_t)(visible)) +} + +func (this *ScintillaEdit) EOLAnnotationVisible() uintptr { + return (uintptr)(C.ScintillaEdit_EOLAnnotationVisible(this.h)) +} + +func (this *ScintillaEdit) EOLAnnotationSetStyleOffset(style uintptr) { + C.ScintillaEdit_EOLAnnotationSetStyleOffset(this.h, (C.intptr_t)(style)) +} + +func (this *ScintillaEdit) EOLAnnotationStyleOffset() uintptr { + return (uintptr)(C.ScintillaEdit_EOLAnnotationStyleOffset(this.h)) +} + +func (this *ScintillaEdit) SupportsFeature(feature uintptr) bool { + return (bool)(C.ScintillaEdit_SupportsFeature(this.h, (C.intptr_t)(feature))) +} + +func (this *ScintillaEdit) LineCharacterIndex() uintptr { + return (uintptr)(C.ScintillaEdit_LineCharacterIndex(this.h)) +} + +func (this *ScintillaEdit) AllocateLineCharacterIndex(lineCharacterIndex uintptr) { + C.ScintillaEdit_AllocateLineCharacterIndex(this.h, (C.intptr_t)(lineCharacterIndex)) +} + +func (this *ScintillaEdit) ReleaseLineCharacterIndex(lineCharacterIndex uintptr) { + C.ScintillaEdit_ReleaseLineCharacterIndex(this.h, (C.intptr_t)(lineCharacterIndex)) +} + +func (this *ScintillaEdit) LineFromIndexPosition(pos uintptr, lineCharacterIndex uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_LineFromIndexPosition(this.h, (C.intptr_t)(pos), (C.intptr_t)(lineCharacterIndex))) +} + +func (this *ScintillaEdit) IndexPositionFromLine(line uintptr, lineCharacterIndex uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_IndexPositionFromLine(this.h, (C.intptr_t)(line), (C.intptr_t)(lineCharacterIndex))) +} + +func (this *ScintillaEdit) StartRecord() { + C.ScintillaEdit_StartRecord(this.h) +} + +func (this *ScintillaEdit) StopRecord() { + C.ScintillaEdit_StopRecord(this.h) +} + +func (this *ScintillaEdit) Lexer() uintptr { + return (uintptr)(C.ScintillaEdit_Lexer(this.h)) +} + +func (this *ScintillaEdit) Colourise(start uintptr, end uintptr) { + C.ScintillaEdit_Colourise(this.h, (C.intptr_t)(start), (C.intptr_t)(end)) +} + +func (this *ScintillaEdit) SetProperty(key string, value string) { + key_Cstring := C.CString(key) + defer C.free(unsafe.Pointer(key_Cstring)) + value_Cstring := C.CString(value) + defer C.free(unsafe.Pointer(value_Cstring)) + C.ScintillaEdit_SetProperty(this.h, key_Cstring, value_Cstring) +} + +func (this *ScintillaEdit) SetKeyWords(keyWordSet uintptr, keyWords string) { + keyWords_Cstring := C.CString(keyWords) + defer C.free(unsafe.Pointer(keyWords_Cstring)) + C.ScintillaEdit_SetKeyWords(this.h, (C.intptr_t)(keyWordSet), keyWords_Cstring) +} + +func (this *ScintillaEdit) Property(key string) []byte { + key_Cstring := C.CString(key) + defer C.free(unsafe.Pointer(key_Cstring)) + var _bytearray C.struct_miqt_string = C.ScintillaEdit_Property(this.h, key_Cstring) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) PropertyExpanded(key string) []byte { + key_Cstring := C.CString(key) + defer C.free(unsafe.Pointer(key_Cstring)) + var _bytearray C.struct_miqt_string = C.ScintillaEdit_PropertyExpanded(this.h, key_Cstring) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) PropertyInt(key string, defaultValue uintptr) uintptr { + key_Cstring := C.CString(key) + defer C.free(unsafe.Pointer(key_Cstring)) + return (uintptr)(C.ScintillaEdit_PropertyInt(this.h, key_Cstring, (C.intptr_t)(defaultValue))) +} + +func (this *ScintillaEdit) LexerLanguage() []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_LexerLanguage(this.h) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) PrivateLexerCall(operation uintptr, pointer uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_PrivateLexerCall(this.h, (C.intptr_t)(operation), (C.intptr_t)(pointer))) +} + +func (this *ScintillaEdit) PropertyNames() []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_PropertyNames(this.h) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) PropertyType(name string) uintptr { + name_Cstring := C.CString(name) + defer C.free(unsafe.Pointer(name_Cstring)) + return (uintptr)(C.ScintillaEdit_PropertyType(this.h, name_Cstring)) +} + +func (this *ScintillaEdit) DescribeProperty(name string) []byte { + name_Cstring := C.CString(name) + defer C.free(unsafe.Pointer(name_Cstring)) + var _bytearray C.struct_miqt_string = C.ScintillaEdit_DescribeProperty(this.h, name_Cstring) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) DescribeKeyWordSets() []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_DescribeKeyWordSets(this.h) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) LineEndTypesSupported() uintptr { + return (uintptr)(C.ScintillaEdit_LineEndTypesSupported(this.h)) +} + +func (this *ScintillaEdit) AllocateSubStyles(styleBase uintptr, numberStyles uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_AllocateSubStyles(this.h, (C.intptr_t)(styleBase), (C.intptr_t)(numberStyles))) +} + +func (this *ScintillaEdit) SubStylesStart(styleBase uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_SubStylesStart(this.h, (C.intptr_t)(styleBase))) +} + +func (this *ScintillaEdit) SubStylesLength(styleBase uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_SubStylesLength(this.h, (C.intptr_t)(styleBase))) +} + +func (this *ScintillaEdit) StyleFromSubStyle(subStyle uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_StyleFromSubStyle(this.h, (C.intptr_t)(subStyle))) +} + +func (this *ScintillaEdit) PrimaryStyleFromStyle(style uintptr) uintptr { + return (uintptr)(C.ScintillaEdit_PrimaryStyleFromStyle(this.h, (C.intptr_t)(style))) +} + +func (this *ScintillaEdit) FreeSubStyles() { + C.ScintillaEdit_FreeSubStyles(this.h) +} + +func (this *ScintillaEdit) SetIdentifiers(style uintptr, identifiers string) { + identifiers_Cstring := C.CString(identifiers) + defer C.free(unsafe.Pointer(identifiers_Cstring)) + C.ScintillaEdit_SetIdentifiers(this.h, (C.intptr_t)(style), identifiers_Cstring) +} + +func (this *ScintillaEdit) DistanceToSecondaryStyles() uintptr { + return (uintptr)(C.ScintillaEdit_DistanceToSecondaryStyles(this.h)) +} + +func (this *ScintillaEdit) SubStyleBases() []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_SubStyleBases(this.h) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) NamedStyles() uintptr { + return (uintptr)(C.ScintillaEdit_NamedStyles(this.h)) +} + +func (this *ScintillaEdit) NameOfStyle(style uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_NameOfStyle(this.h, (C.intptr_t)(style)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) TagsOfStyle(style uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_TagsOfStyle(this.h, (C.intptr_t)(style)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) DescriptionOfStyle(style uintptr) []byte { + var _bytearray C.struct_miqt_string = C.ScintillaEdit_DescriptionOfStyle(this.h, (C.intptr_t)(style)) + _ret := C.GoBytes(unsafe.Pointer(_bytearray.data), C.int(int64(_bytearray.len))) + C.free(unsafe.Pointer(_bytearray.data)) + return _ret +} + +func (this *ScintillaEdit) SetILexer(ilexer uintptr) { + C.ScintillaEdit_SetILexer(this.h, (C.intptr_t)(ilexer)) +} + +func (this *ScintillaEdit) Bidirectional() uintptr { + return (uintptr)(C.ScintillaEdit_Bidirectional(this.h)) +} + +func (this *ScintillaEdit) SetBidirectional(bidirectional uintptr) { + C.ScintillaEdit_SetBidirectional(this.h, (C.intptr_t)(bidirectional)) +} + +func ScintillaEdit_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.ScintillaEdit_Tr2(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func ScintillaEdit_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.ScintillaEdit_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 ScintillaEdit_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.ScintillaEdit_TrUtf82(s_Cstring, c_Cstring) + _ret := C.GoStringN(_ms.data, C.int(int64(_ms.len))) + C.free(unsafe.Pointer(_ms.data)) + return _ret +} + +func ScintillaEdit_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.ScintillaEdit_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 *ScintillaEdit) Delete() { + C.ScintillaEdit_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 *ScintillaEdit) GoGC() { + runtime.SetFinalizer(this, func(this *ScintillaEdit) { + this.Delete() + runtime.KeepAlive(this.h) + }) +} diff --git a/qt-extras/scintillaedit/gen_ScintillaEdit.h b/qt-extras/scintillaedit/gen_ScintillaEdit.h new file mode 100644 index 00000000..8ffbfc68 --- /dev/null +++ b/qt-extras/scintillaedit/gen_ScintillaEdit.h @@ -0,0 +1,1492 @@ +#ifndef GEN_SCINTILLAEDIT_H +#define GEN_SCINTILLAEDIT_H + +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#include "../../libmiqt/libmiqt.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class QByteArray; +class QKeyEvent; +class QMetaObject; +class QMimeData; +class QMouseEvent; +class QObject; +class QPaintDevice; +class QRect; +class QWidget; +class SCNotification; +class Sci_CharacterRange; +class Sci_CharacterRangeFull; +class Sci_NotifyHeader; +class Sci_RangeToFormat; +class Sci_RangeToFormatFull; +class Sci_Rectangle; +class Sci_TextRange; +class Sci_TextRangeFull; +class Sci_TextToFind; +class Sci_TextToFindFull; +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__CharacterRange) +typedef Scintilla::CharacterRange Scintilla__CharacterRange; +#else +class Scintilla__CharacterRange; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__CharacterRangeFull) +typedef Scintilla::CharacterRangeFull Scintilla__CharacterRangeFull; +#else +class Scintilla__CharacterRangeFull; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__ColourRGBA) +typedef Scintilla::Internal::ColourRGBA Scintilla__Internal__ColourRGBA; +#else +class Scintilla__Internal__ColourRGBA; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__ColourStop) +typedef Scintilla::Internal::ColourStop Scintilla__Internal__ColourStop; +#else +class Scintilla__Internal__ColourStop; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Fill) +typedef Scintilla::Internal::Fill Scintilla__Internal__Fill; +#else +class Scintilla__Internal__Fill; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__FillStroke) +typedef Scintilla::Internal::FillStroke Scintilla__Internal__FillStroke; +#else +class Scintilla__Internal__FillStroke; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Font) +typedef Scintilla::Internal::Font Scintilla__Internal__Font; +#else +class Scintilla__Internal__Font; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__FontParameters) +typedef Scintilla::Internal::FontParameters Scintilla__Internal__FontParameters; +#else +class Scintilla__Internal__FontParameters; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__IListBoxDelegate) +typedef Scintilla::Internal::IListBoxDelegate Scintilla__Internal__IListBoxDelegate; +#else +class Scintilla__Internal__IListBoxDelegate; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__IScreenLine) +typedef Scintilla::Internal::IScreenLine Scintilla__Internal__IScreenLine; +#else +class Scintilla__Internal__IScreenLine; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__IScreenLineLayout) +typedef Scintilla::Internal::IScreenLineLayout Scintilla__Internal__IScreenLineLayout; +#else +class Scintilla__Internal__IScreenLineLayout; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Interval) +typedef Scintilla::Internal::Interval Scintilla__Internal__Interval; +#else +class Scintilla__Internal__Interval; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__ListBox) +typedef Scintilla::Internal::ListBox Scintilla__Internal__ListBox; +#else +class Scintilla__Internal__ListBox; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__ListBoxEvent) +typedef Scintilla::Internal::ListBoxEvent Scintilla__Internal__ListBoxEvent; +#else +class Scintilla__Internal__ListBoxEvent; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__ListOptions) +typedef Scintilla::Internal::ListOptions Scintilla__Internal__ListOptions; +#else +class Scintilla__Internal__ListOptions; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Menu) +typedef Scintilla::Internal::Menu Scintilla__Internal__Menu; +#else +class Scintilla__Internal__Menu; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__PRectangle) +typedef Scintilla::Internal::PRectangle Scintilla__Internal__PRectangle; +#else +class Scintilla__Internal__PRectangle; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Point) +typedef Scintilla::Internal::Point Scintilla__Internal__Point; +#else +class Scintilla__Internal__Point; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Stroke) +typedef Scintilla::Internal::Stroke Scintilla__Internal__Stroke; +#else +class Scintilla__Internal__Stroke; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Surface) +typedef Scintilla::Internal::Surface Scintilla__Internal__Surface; +#else +class Scintilla__Internal__Surface; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__SurfaceMode) +typedef Scintilla::Internal::SurfaceMode Scintilla__Internal__SurfaceMode; +#else +class Scintilla__Internal__SurfaceMode; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Internal__Window) +typedef Scintilla::Internal::Window Scintilla__Internal__Window; +#else +class Scintilla__Internal__Window; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__NotificationData) +typedef Scintilla::NotificationData Scintilla__NotificationData; +#else +class Scintilla__NotificationData; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__NotifyHeader) +typedef Scintilla::NotifyHeader Scintilla__NotifyHeader; +#else +class Scintilla__NotifyHeader; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__RangeToFormat) +typedef Scintilla::RangeToFormat Scintilla__RangeToFormat; +#else +class Scintilla__RangeToFormat; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__RangeToFormatFull) +typedef Scintilla::RangeToFormatFull Scintilla__RangeToFormatFull; +#else +class Scintilla__RangeToFormatFull; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__Rectangle) +typedef Scintilla::Rectangle Scintilla__Rectangle; +#else +class Scintilla__Rectangle; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__TextRange) +typedef Scintilla::TextRange Scintilla__TextRange; +#else +class Scintilla__TextRange; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__TextRangeFull) +typedef Scintilla::TextRangeFull Scintilla__TextRangeFull; +#else +class Scintilla__TextRangeFull; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__TextToFind) +typedef Scintilla::TextToFind Scintilla__TextToFind; +#else +class Scintilla__TextToFind; +#endif +#if defined(WORKAROUND_INNER_CLASS_DEFINITION_Scintilla__TextToFindFull) +typedef Scintilla::TextToFindFull Scintilla__TextToFindFull; +#else +class Scintilla__TextToFindFull; +#endif +class ScintillaDocument; +class ScintillaEdit; +class ScintillaEditBase; +#else +typedef struct QByteArray QByteArray; +typedef struct QKeyEvent QKeyEvent; +typedef struct QMetaObject QMetaObject; +typedef struct QMimeData QMimeData; +typedef struct QMouseEvent QMouseEvent; +typedef struct QObject QObject; +typedef struct QPaintDevice QPaintDevice; +typedef struct QRect QRect; +typedef struct QWidget QWidget; +typedef struct SCNotification SCNotification; +typedef struct Sci_CharacterRange Sci_CharacterRange; +typedef struct Sci_CharacterRangeFull Sci_CharacterRangeFull; +typedef struct Sci_NotifyHeader Sci_NotifyHeader; +typedef struct Sci_RangeToFormat Sci_RangeToFormat; +typedef struct Sci_RangeToFormatFull Sci_RangeToFormatFull; +typedef struct Sci_Rectangle Sci_Rectangle; +typedef struct Sci_TextRange Sci_TextRange; +typedef struct Sci_TextRangeFull Sci_TextRangeFull; +typedef struct Sci_TextToFind Sci_TextToFind; +typedef struct Sci_TextToFindFull Sci_TextToFindFull; +typedef struct Scintilla__CharacterRange Scintilla__CharacterRange; +typedef struct Scintilla__CharacterRangeFull Scintilla__CharacterRangeFull; +typedef struct Scintilla__Internal__ColourRGBA Scintilla__Internal__ColourRGBA; +typedef struct Scintilla__Internal__ColourStop Scintilla__Internal__ColourStop; +typedef struct Scintilla__Internal__Fill Scintilla__Internal__Fill; +typedef struct Scintilla__Internal__FillStroke Scintilla__Internal__FillStroke; +typedef struct Scintilla__Internal__Font Scintilla__Internal__Font; +typedef struct Scintilla__Internal__FontParameters Scintilla__Internal__FontParameters; +typedef struct Scintilla__Internal__IListBoxDelegate Scintilla__Internal__IListBoxDelegate; +typedef struct Scintilla__Internal__IScreenLine Scintilla__Internal__IScreenLine; +typedef struct Scintilla__Internal__IScreenLineLayout Scintilla__Internal__IScreenLineLayout; +typedef struct Scintilla__Internal__Interval Scintilla__Internal__Interval; +typedef struct Scintilla__Internal__ListBox Scintilla__Internal__ListBox; +typedef struct Scintilla__Internal__ListBoxEvent Scintilla__Internal__ListBoxEvent; +typedef struct Scintilla__Internal__ListOptions Scintilla__Internal__ListOptions; +typedef struct Scintilla__Internal__Menu Scintilla__Internal__Menu; +typedef struct Scintilla__Internal__PRectangle Scintilla__Internal__PRectangle; +typedef struct Scintilla__Internal__Point Scintilla__Internal__Point; +typedef struct Scintilla__Internal__Stroke Scintilla__Internal__Stroke; +typedef struct Scintilla__Internal__Surface Scintilla__Internal__Surface; +typedef struct Scintilla__Internal__SurfaceMode Scintilla__Internal__SurfaceMode; +typedef struct Scintilla__Internal__Window Scintilla__Internal__Window; +typedef struct Scintilla__NotificationData Scintilla__NotificationData; +typedef struct Scintilla__NotifyHeader Scintilla__NotifyHeader; +typedef struct Scintilla__RangeToFormat Scintilla__RangeToFormat; +typedef struct Scintilla__RangeToFormatFull Scintilla__RangeToFormatFull; +typedef struct Scintilla__Rectangle Scintilla__Rectangle; +typedef struct Scintilla__TextRange Scintilla__TextRange; +typedef struct Scintilla__TextRangeFull Scintilla__TextRangeFull; +typedef struct Scintilla__TextToFind Scintilla__TextToFind; +typedef struct Scintilla__TextToFindFull Scintilla__TextToFindFull; +typedef struct ScintillaDocument ScintillaDocument; +typedef struct ScintillaEdit ScintillaEdit; +typedef struct ScintillaEditBase ScintillaEditBase; +#endif + +Scintilla__Internal__Point* Scintilla__Internal__Point_new(); +Scintilla__Internal__Point* Scintilla__Internal__Point_new2(Scintilla__Internal__Point* param1); +Scintilla__Internal__Point* Scintilla__Internal__Point_new3(double x_); +Scintilla__Internal__Point* Scintilla__Internal__Point_new4(double x_, double y_); +Scintilla__Internal__Point* Scintilla__Internal__Point_FromInts(int x_, int y_); +bool Scintilla__Internal__Point_OperatorEqual(const Scintilla__Internal__Point* self, Scintilla__Internal__Point* other); +bool Scintilla__Internal__Point_OperatorNotEqual(const Scintilla__Internal__Point* self, Scintilla__Internal__Point* other); +Scintilla__Internal__Point* Scintilla__Internal__Point_OperatorPlus(const Scintilla__Internal__Point* self, Scintilla__Internal__Point* other); +Scintilla__Internal__Point* Scintilla__Internal__Point_OperatorMinus(const Scintilla__Internal__Point* self, Scintilla__Internal__Point* other); +void Scintilla__Internal__Point_Delete(Scintilla__Internal__Point* self); + +bool Scintilla__Internal__Interval_OperatorEqual(const Scintilla__Internal__Interval* self, Scintilla__Internal__Interval* other); +double Scintilla__Internal__Interval_Width(const Scintilla__Internal__Interval* self); +bool Scintilla__Internal__Interval_Empty(const Scintilla__Internal__Interval* self); +bool Scintilla__Internal__Interval_Intersects(const Scintilla__Internal__Interval* self, Scintilla__Internal__Interval* other); +Scintilla__Internal__Interval* Scintilla__Internal__Interval_Offset(const Scintilla__Internal__Interval* self, double offset); +void Scintilla__Internal__Interval_Delete(Scintilla__Internal__Interval* self); + +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new(); +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new2(Scintilla__Internal__PRectangle* param1); +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new3(double left_); +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new4(double left_, double top_); +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new5(double left_, double top_, double right_); +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new6(double left_, double top_, double right_, double bottom_); +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_FromInts(int left_, int top_, int right_, int bottom_); +bool Scintilla__Internal__PRectangle_OperatorEqual(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__PRectangle* rc); +bool Scintilla__Internal__PRectangle_Contains(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__Point* pt); +bool Scintilla__Internal__PRectangle_ContainsWholePixel(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__Point* pt); +bool Scintilla__Internal__PRectangle_ContainsWithRc(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__PRectangle* rc); +bool Scintilla__Internal__PRectangle_Intersects(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__PRectangle* other); +bool Scintilla__Internal__PRectangle_IntersectsWithHorizontalBounds(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__Interval* horizontalBounds); +void Scintilla__Internal__PRectangle_Move(Scintilla__Internal__PRectangle* self, double xDelta, double yDelta); +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_WithHorizontalBounds(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__Interval* horizontal); +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_Inset(const Scintilla__Internal__PRectangle* self, double delta); +Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_InsetWithDelta(const Scintilla__Internal__PRectangle* self, Scintilla__Internal__Point* delta); +Scintilla__Internal__Point* Scintilla__Internal__PRectangle_Centre(const Scintilla__Internal__PRectangle* self); +double Scintilla__Internal__PRectangle_Width(const Scintilla__Internal__PRectangle* self); +double Scintilla__Internal__PRectangle_Height(const Scintilla__Internal__PRectangle* self); +bool Scintilla__Internal__PRectangle_Empty(const Scintilla__Internal__PRectangle* self); +void Scintilla__Internal__PRectangle_Delete(Scintilla__Internal__PRectangle* self); + +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new(); +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new2(unsigned int red, unsigned int green, unsigned int blue); +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new3(Scintilla__Internal__ColourRGBA* cd, unsigned int alpha); +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new4(Scintilla__Internal__ColourRGBA* param1); +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new5(int co_); +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new6(unsigned int red, unsigned int green, unsigned int blue, unsigned int alpha); +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_FromRGB(int co_); +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_Grey(unsigned int grey); +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_FromIpRGB(intptr_t co_); +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_WithoutAlpha(const Scintilla__Internal__ColourRGBA* self); +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_Opaque(const Scintilla__Internal__ColourRGBA* self); +int Scintilla__Internal__ColourRGBA_AsInteger(const Scintilla__Internal__ColourRGBA* self); +int Scintilla__Internal__ColourRGBA_OpaqueRGB(const Scintilla__Internal__ColourRGBA* self); +unsigned char Scintilla__Internal__ColourRGBA_GetRed(const Scintilla__Internal__ColourRGBA* self); +unsigned char Scintilla__Internal__ColourRGBA_GetGreen(const Scintilla__Internal__ColourRGBA* self); +unsigned char Scintilla__Internal__ColourRGBA_GetBlue(const Scintilla__Internal__ColourRGBA* self); +unsigned char Scintilla__Internal__ColourRGBA_GetAlpha(const Scintilla__Internal__ColourRGBA* self); +float Scintilla__Internal__ColourRGBA_GetRedComponent(const Scintilla__Internal__ColourRGBA* self); +float Scintilla__Internal__ColourRGBA_GetGreenComponent(const Scintilla__Internal__ColourRGBA* self); +float Scintilla__Internal__ColourRGBA_GetBlueComponent(const Scintilla__Internal__ColourRGBA* self); +float Scintilla__Internal__ColourRGBA_GetAlphaComponent(const Scintilla__Internal__ColourRGBA* self); +bool Scintilla__Internal__ColourRGBA_OperatorEqual(const Scintilla__Internal__ColourRGBA* self, Scintilla__Internal__ColourRGBA* other); +bool Scintilla__Internal__ColourRGBA_IsOpaque(const Scintilla__Internal__ColourRGBA* self); +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_MixedWith(const Scintilla__Internal__ColourRGBA* self, Scintilla__Internal__ColourRGBA* other); +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_MixedWith2(const Scintilla__Internal__ColourRGBA* self, Scintilla__Internal__ColourRGBA* other, double proportion); +void Scintilla__Internal__ColourRGBA_OperatorAssign(Scintilla__Internal__ColourRGBA* self, Scintilla__Internal__ColourRGBA* param1); +Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_Grey2(unsigned int grey, unsigned int alpha); +void Scintilla__Internal__ColourRGBA_Delete(Scintilla__Internal__ColourRGBA* self); + +Scintilla__Internal__Stroke* Scintilla__Internal__Stroke_new(Scintilla__Internal__ColourRGBA* colour_); +Scintilla__Internal__Stroke* Scintilla__Internal__Stroke_new2(Scintilla__Internal__Stroke* param1); +Scintilla__Internal__Stroke* Scintilla__Internal__Stroke_new3(Scintilla__Internal__ColourRGBA* colour_, double width_); +float Scintilla__Internal__Stroke_WidthF(const Scintilla__Internal__Stroke* self); +void Scintilla__Internal__Stroke_Delete(Scintilla__Internal__Stroke* self); + +Scintilla__Internal__Fill* Scintilla__Internal__Fill_new(Scintilla__Internal__ColourRGBA* colour_); +Scintilla__Internal__Fill* Scintilla__Internal__Fill_new2(Scintilla__Internal__Fill* param1); +void Scintilla__Internal__Fill_Delete(Scintilla__Internal__Fill* self); + +Scintilla__Internal__FillStroke* Scintilla__Internal__FillStroke_new(Scintilla__Internal__ColourRGBA* colourFill_, Scintilla__Internal__ColourRGBA* colourStroke_); +Scintilla__Internal__FillStroke* Scintilla__Internal__FillStroke_new2(Scintilla__Internal__ColourRGBA* colourBoth); +Scintilla__Internal__FillStroke* Scintilla__Internal__FillStroke_new3(Scintilla__Internal__ColourRGBA* colourFill_, Scintilla__Internal__ColourRGBA* colourStroke_, double widthStroke_); +Scintilla__Internal__FillStroke* Scintilla__Internal__FillStroke_new4(Scintilla__Internal__ColourRGBA* colourBoth, double widthStroke_); +void Scintilla__Internal__FillStroke_Delete(Scintilla__Internal__FillStroke* self); + +Scintilla__Internal__ColourStop* Scintilla__Internal__ColourStop_new(double position_, Scintilla__Internal__ColourRGBA* colour_); +void Scintilla__Internal__ColourStop_Delete(Scintilla__Internal__ColourStop* self); + +void Scintilla__CharacterRange_Delete(Scintilla__CharacterRange* self); + +void Scintilla__CharacterRangeFull_Delete(Scintilla__CharacterRangeFull* self); + +void Scintilla__TextRange_Delete(Scintilla__TextRange* self); + +void Scintilla__TextRangeFull_Delete(Scintilla__TextRangeFull* self); + +void Scintilla__TextToFind_Delete(Scintilla__TextToFind* self); + +void Scintilla__TextToFindFull_Delete(Scintilla__TextToFindFull* self); + +void Scintilla__Rectangle_Delete(Scintilla__Rectangle* self); + +void Scintilla__RangeToFormat_Delete(Scintilla__RangeToFormat* self); + +void Scintilla__RangeToFormatFull_Delete(Scintilla__RangeToFormatFull* self); + +void Scintilla__NotifyHeader_Delete(Scintilla__NotifyHeader* self); + +void Scintilla__NotificationData_Delete(Scintilla__NotificationData* self); + +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new(const char* faceName_); +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new2(const char* faceName_, double size_); +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new3(const char* faceName_, double size_, int weight_); +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new4(const char* faceName_, double size_, int weight_, bool italic_); +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new5(const char* faceName_, double size_, int weight_, bool italic_, int extraFontFlag_); +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new6(const char* faceName_, double size_, int weight_, bool italic_, int extraFontFlag_, int technology_); +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new7(const char* faceName_, double size_, int weight_, bool italic_, int extraFontFlag_, int technology_, int characterSet_); +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new8(const char* faceName_, double size_, int weight_, bool italic_, int extraFontFlag_, int technology_, int characterSet_, const char* localeName_); +Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new9(const char* faceName_, double size_, int weight_, bool italic_, int extraFontFlag_, int technology_, int characterSet_, const char* localeName_, int stretch_); +void Scintilla__Internal__FontParameters_Delete(Scintilla__Internal__FontParameters* self); + +Scintilla__Internal__Font* Scintilla__Internal__Font_new(); +void Scintilla__Internal__Font_Delete(Scintilla__Internal__Font* self); + +size_t Scintilla__Internal__IScreenLine_Length(const Scintilla__Internal__IScreenLine* self); +size_t Scintilla__Internal__IScreenLine_RepresentationCount(const Scintilla__Internal__IScreenLine* self); +double Scintilla__Internal__IScreenLine_Width(const Scintilla__Internal__IScreenLine* self); +double Scintilla__Internal__IScreenLine_Height(const Scintilla__Internal__IScreenLine* self); +double Scintilla__Internal__IScreenLine_TabWidth(const Scintilla__Internal__IScreenLine* self); +double Scintilla__Internal__IScreenLine_TabWidthMinimumPixels(const Scintilla__Internal__IScreenLine* self); +Scintilla__Internal__Font* Scintilla__Internal__IScreenLine_FontOfPosition(const Scintilla__Internal__IScreenLine* self, size_t position); +double Scintilla__Internal__IScreenLine_RepresentationWidth(const Scintilla__Internal__IScreenLine* self, size_t position); +double Scintilla__Internal__IScreenLine_TabPositionAfter(const Scintilla__Internal__IScreenLine* self, double xPosition); +void Scintilla__Internal__IScreenLine_OperatorAssign(Scintilla__Internal__IScreenLine* self, Scintilla__Internal__IScreenLine* param1); +void Scintilla__Internal__IScreenLine_Delete(Scintilla__Internal__IScreenLine* self); + +size_t Scintilla__Internal__IScreenLineLayout_PositionFromX(Scintilla__Internal__IScreenLineLayout* self, double xDistance, bool charPosition); +double Scintilla__Internal__IScreenLineLayout_XFromPosition(Scintilla__Internal__IScreenLineLayout* self, size_t caretPosition); +void Scintilla__Internal__IScreenLineLayout_OperatorAssign(Scintilla__Internal__IScreenLineLayout* self, Scintilla__Internal__IScreenLineLayout* param1); +void Scintilla__Internal__IScreenLineLayout_Delete(Scintilla__Internal__IScreenLineLayout* self); + +Scintilla__Internal__SurfaceMode* Scintilla__Internal__SurfaceMode_new(); +Scintilla__Internal__SurfaceMode* Scintilla__Internal__SurfaceMode_new2(int codePage_, bool bidiR2L_); +void Scintilla__Internal__SurfaceMode_Delete(Scintilla__Internal__SurfaceMode* self); + +void Scintilla__Internal__Surface_Init(Scintilla__Internal__Surface* self, void* wid); +void Scintilla__Internal__Surface_Init2(Scintilla__Internal__Surface* self, void* sid, void* wid); +void Scintilla__Internal__Surface_SetMode(Scintilla__Internal__Surface* self, Scintilla__Internal__SurfaceMode* mode); +void Scintilla__Internal__Surface_Release(Scintilla__Internal__Surface* self); +int Scintilla__Internal__Surface_SupportsFeature(Scintilla__Internal__Surface* self, int feature); +bool Scintilla__Internal__Surface_Initialised(Scintilla__Internal__Surface* self); +int Scintilla__Internal__Surface_LogPixelsY(Scintilla__Internal__Surface* self); +int Scintilla__Internal__Surface_PixelDivisions(Scintilla__Internal__Surface* self); +int Scintilla__Internal__Surface_DeviceHeightFont(Scintilla__Internal__Surface* self, int points); +void Scintilla__Internal__Surface_LineDraw(Scintilla__Internal__Surface* self, Scintilla__Internal__Point* start, Scintilla__Internal__Point* end, Scintilla__Internal__Stroke* stroke); +void Scintilla__Internal__Surface_PolyLine(Scintilla__Internal__Surface* self, Scintilla__Internal__Point* pts, size_t npts, Scintilla__Internal__Stroke* stroke); +void Scintilla__Internal__Surface_Polygon(Scintilla__Internal__Surface* self, Scintilla__Internal__Point* pts, size_t npts, Scintilla__Internal__FillStroke* fillStroke); +void Scintilla__Internal__Surface_RectangleDraw(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__FillStroke* fillStroke); +void Scintilla__Internal__Surface_RectangleFrame(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__Stroke* stroke); +void Scintilla__Internal__Surface_FillRectangle(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__Fill* fill); +void Scintilla__Internal__Surface_FillRectangleAligned(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__Fill* fill); +void Scintilla__Internal__Surface_FillRectangle2(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__Surface* surfacePattern); +void Scintilla__Internal__Surface_RoundedRectangle(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__FillStroke* fillStroke); +void Scintilla__Internal__Surface_AlphaRectangle(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, double cornerSize, Scintilla__Internal__FillStroke* fillStroke); +void Scintilla__Internal__Surface_DrawRGBAImage(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, int width, int height, const unsigned char* pixelsImage); +void Scintilla__Internal__Surface_Ellipse(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__FillStroke* fillStroke); +void Scintilla__Internal__Surface_Stadium(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__FillStroke* fillStroke, int ends); +void Scintilla__Internal__Surface_Copy(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__Point* from, Scintilla__Internal__Surface* surfaceSource); +double Scintilla__Internal__Surface_Ascent(Scintilla__Internal__Surface* self, Scintilla__Internal__Font* font_); +double Scintilla__Internal__Surface_Descent(Scintilla__Internal__Surface* self, Scintilla__Internal__Font* font_); +double Scintilla__Internal__Surface_InternalLeading(Scintilla__Internal__Surface* self, Scintilla__Internal__Font* font_); +double Scintilla__Internal__Surface_Height(Scintilla__Internal__Surface* self, Scintilla__Internal__Font* font_); +double Scintilla__Internal__Surface_AverageCharWidth(Scintilla__Internal__Surface* self, Scintilla__Internal__Font* font_); +void Scintilla__Internal__Surface_SetClip(Scintilla__Internal__Surface* self, Scintilla__Internal__PRectangle* rc); +void Scintilla__Internal__Surface_PopClip(Scintilla__Internal__Surface* self); +void Scintilla__Internal__Surface_FlushCachedState(Scintilla__Internal__Surface* self); +void Scintilla__Internal__Surface_FlushDrawing(Scintilla__Internal__Surface* self); +void Scintilla__Internal__Surface_Delete(Scintilla__Internal__Surface* self); + +Scintilla__Internal__Window* Scintilla__Internal__Window_new(); +void Scintilla__Internal__Window_OperatorAssign(Scintilla__Internal__Window* self, void* wid_); +void* Scintilla__Internal__Window_GetID(const Scintilla__Internal__Window* self); +bool Scintilla__Internal__Window_Created(const Scintilla__Internal__Window* self); +void Scintilla__Internal__Window_Destroy(Scintilla__Internal__Window* self); +Scintilla__Internal__PRectangle* Scintilla__Internal__Window_GetPosition(const Scintilla__Internal__Window* self); +void Scintilla__Internal__Window_SetPosition(Scintilla__Internal__Window* self, Scintilla__Internal__PRectangle* rc); +void Scintilla__Internal__Window_SetPositionRelative(Scintilla__Internal__Window* self, Scintilla__Internal__PRectangle* rc, Scintilla__Internal__Window* relativeTo); +Scintilla__Internal__PRectangle* Scintilla__Internal__Window_GetClientPosition(const Scintilla__Internal__Window* self); +void Scintilla__Internal__Window_Show(Scintilla__Internal__Window* self); +void Scintilla__Internal__Window_InvalidateAll(Scintilla__Internal__Window* self); +void Scintilla__Internal__Window_InvalidateRectangle(Scintilla__Internal__Window* self, Scintilla__Internal__PRectangle* rc); +void Scintilla__Internal__Window_SetCursor(Scintilla__Internal__Window* self, int curs); +Scintilla__Internal__PRectangle* Scintilla__Internal__Window_GetMonitorRect(Scintilla__Internal__Window* self, Scintilla__Internal__Point* pt); +void Scintilla__Internal__Window_Show1(Scintilla__Internal__Window* self, bool show); +void Scintilla__Internal__Window_Delete(Scintilla__Internal__Window* self); + +Scintilla__Internal__ListBoxEvent* Scintilla__Internal__ListBoxEvent_new(int event_); +void Scintilla__Internal__ListBoxEvent_Delete(Scintilla__Internal__ListBoxEvent* self); + +void Scintilla__Internal__IListBoxDelegate_ListNotify(Scintilla__Internal__IListBoxDelegate* self, Scintilla__Internal__ListBoxEvent* plbe); +void Scintilla__Internal__IListBoxDelegate_OperatorAssign(Scintilla__Internal__IListBoxDelegate* self, Scintilla__Internal__IListBoxDelegate* param1); +void Scintilla__Internal__IListBoxDelegate_Delete(Scintilla__Internal__IListBoxDelegate* self); + +void Scintilla__Internal__ListOptions_Delete(Scintilla__Internal__ListOptions* self); + +void Scintilla__Internal__ListBox_SetFont(Scintilla__Internal__ListBox* self, Scintilla__Internal__Font* font); +void Scintilla__Internal__ListBox_Create(Scintilla__Internal__ListBox* self, Scintilla__Internal__Window* parent, int ctrlID, Scintilla__Internal__Point* location, int lineHeight_, bool unicodeMode_, int technology_); +void Scintilla__Internal__ListBox_SetAverageCharWidth(Scintilla__Internal__ListBox* self, int width); +void Scintilla__Internal__ListBox_SetVisibleRows(Scintilla__Internal__ListBox* self, int rows); +int Scintilla__Internal__ListBox_GetVisibleRows(const Scintilla__Internal__ListBox* self); +Scintilla__Internal__PRectangle* Scintilla__Internal__ListBox_GetDesiredRect(Scintilla__Internal__ListBox* self); +int Scintilla__Internal__ListBox_CaretFromEdge(Scintilla__Internal__ListBox* self); +void Scintilla__Internal__ListBox_Clear(Scintilla__Internal__ListBox* self); +void Scintilla__Internal__ListBox_Append(Scintilla__Internal__ListBox* self, char* s); +int Scintilla__Internal__ListBox_Length(Scintilla__Internal__ListBox* self); +void Scintilla__Internal__ListBox_Select(Scintilla__Internal__ListBox* self, int n); +int Scintilla__Internal__ListBox_GetSelection(Scintilla__Internal__ListBox* self); +int Scintilla__Internal__ListBox_Find(Scintilla__Internal__ListBox* self, const char* prefix); +void Scintilla__Internal__ListBox_RegisterImage(Scintilla__Internal__ListBox* self, int typeVal, const char* xpm_data); +void Scintilla__Internal__ListBox_RegisterRGBAImage(Scintilla__Internal__ListBox* self, int typeVal, int width, int height, const unsigned char* pixelsImage); +void Scintilla__Internal__ListBox_ClearRegisteredImages(Scintilla__Internal__ListBox* self); +void Scintilla__Internal__ListBox_SetDelegate(Scintilla__Internal__ListBox* self, Scintilla__Internal__IListBoxDelegate* lbDelegate); +void Scintilla__Internal__ListBox_SetList(Scintilla__Internal__ListBox* self, const char* list, char separator, char typesep); +void Scintilla__Internal__ListBox_SetOptions(Scintilla__Internal__ListBox* self, Scintilla__Internal__ListOptions* options_); +void Scintilla__Internal__ListBox_Append2(Scintilla__Internal__ListBox* self, char* s, int typeVal); +void Scintilla__Internal__ListBox_Delete(Scintilla__Internal__ListBox* self); + +Scintilla__Internal__Menu* Scintilla__Internal__Menu_new(); +void* Scintilla__Internal__Menu_GetID(const Scintilla__Internal__Menu* self); +void Scintilla__Internal__Menu_CreatePopUp(Scintilla__Internal__Menu* self); +void Scintilla__Internal__Menu_Destroy(Scintilla__Internal__Menu* self); +void Scintilla__Internal__Menu_Show(Scintilla__Internal__Menu* self, Scintilla__Internal__Point* pt, Scintilla__Internal__Window* w); +void Scintilla__Internal__Menu_Delete(Scintilla__Internal__Menu* self); + +void Sci_CharacterRange_Delete(Sci_CharacterRange* self); + +void Sci_CharacterRangeFull_Delete(Sci_CharacterRangeFull* self); + +void Sci_TextRange_Delete(Sci_TextRange* self); + +void Sci_TextRangeFull_Delete(Sci_TextRangeFull* self); + +void Sci_TextToFind_Delete(Sci_TextToFind* self); + +void Sci_TextToFindFull_Delete(Sci_TextToFindFull* self); + +void Sci_Rectangle_Delete(Sci_Rectangle* self); + +void Sci_RangeToFormat_Delete(Sci_RangeToFormat* self); + +void Sci_RangeToFormatFull_Delete(Sci_RangeToFormatFull* self); + +void Sci_NotifyHeader_Delete(Sci_NotifyHeader* self); + +void SCNotification_Delete(SCNotification* self); + +ScintillaEditBase* ScintillaEditBase_new(); +ScintillaEditBase* ScintillaEditBase_new2(QWidget* parent); +QMetaObject* ScintillaEditBase_MetaObject(const ScintillaEditBase* self); +void* ScintillaEditBase_Metacast(ScintillaEditBase* self, const char* param1); +struct miqt_string ScintillaEditBase_Tr(const char* s); +struct miqt_string ScintillaEditBase_TrUtf8(const char* s); +intptr_t ScintillaEditBase_Send(const ScintillaEditBase* self, unsigned int iMessage); +intptr_t ScintillaEditBase_Sends(const ScintillaEditBase* self, unsigned int iMessage); +void ScintillaEditBase_ScrollHorizontal(ScintillaEditBase* self, int value); +void ScintillaEditBase_ScrollVertical(ScintillaEditBase* self, int value); +void ScintillaEditBase_NotifyParent(ScintillaEditBase* self, Scintilla__NotificationData* scn); +void ScintillaEditBase_EventCommand(ScintillaEditBase* self, uintptr_t wParam, intptr_t lParam); +void ScintillaEditBase_HorizontalScrolled(ScintillaEditBase* self, int value); +void ScintillaEditBase_connect_HorizontalScrolled(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_VerticalScrolled(ScintillaEditBase* self, int value); +void ScintillaEditBase_connect_VerticalScrolled(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_HorizontalRangeChanged(ScintillaEditBase* self, int max, int page); +void ScintillaEditBase_connect_HorizontalRangeChanged(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_VerticalRangeChanged(ScintillaEditBase* self, int max, int page); +void ScintillaEditBase_connect_VerticalRangeChanged(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_NotifyChange(ScintillaEditBase* self); +void ScintillaEditBase_connect_NotifyChange(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_LinesAdded(ScintillaEditBase* self, intptr_t linesAdded); +void ScintillaEditBase_connect_LinesAdded(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_AboutToCopy(ScintillaEditBase* self, QMimeData* data); +void ScintillaEditBase_connect_AboutToCopy(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_StyleNeeded(ScintillaEditBase* self, intptr_t position); +void ScintillaEditBase_connect_StyleNeeded(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_CharAdded(ScintillaEditBase* self, int ch); +void ScintillaEditBase_connect_CharAdded(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_SavePointChanged(ScintillaEditBase* self, bool dirty); +void ScintillaEditBase_connect_SavePointChanged(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_ModifyAttemptReadOnly(ScintillaEditBase* self); +void ScintillaEditBase_connect_ModifyAttemptReadOnly(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_Key(ScintillaEditBase* self, int key); +void ScintillaEditBase_connect_Key(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_DoubleClick(ScintillaEditBase* self, intptr_t position, intptr_t line); +void ScintillaEditBase_connect_DoubleClick(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_UpdateUi(ScintillaEditBase* self, int updated); +void ScintillaEditBase_connect_UpdateUi(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_Modified(ScintillaEditBase* self, int typeVal, intptr_t position, intptr_t length, intptr_t linesAdded, struct miqt_string text, intptr_t line, int foldNow, int foldPrev); +void ScintillaEditBase_connect_Modified(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_MacroRecord(ScintillaEditBase* self, int message, uintptr_t wParam, intptr_t lParam); +void ScintillaEditBase_connect_MacroRecord(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_MarginClicked(ScintillaEditBase* self, intptr_t position, int modifiers, int margin); +void ScintillaEditBase_connect_MarginClicked(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_TextAreaClicked(ScintillaEditBase* self, intptr_t line, int modifiers); +void ScintillaEditBase_connect_TextAreaClicked(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_NeedShown(ScintillaEditBase* self, intptr_t position, intptr_t length); +void ScintillaEditBase_connect_NeedShown(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_Painted(ScintillaEditBase* self); +void ScintillaEditBase_connect_Painted(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_UserListSelection(ScintillaEditBase* self); +void ScintillaEditBase_connect_UserListSelection(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_UriDropped(ScintillaEditBase* self, struct miqt_string uri); +void ScintillaEditBase_connect_UriDropped(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_DwellStart(ScintillaEditBase* self, int x, int y); +void ScintillaEditBase_connect_DwellStart(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_DwellEnd(ScintillaEditBase* self, int x, int y); +void ScintillaEditBase_connect_DwellEnd(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_Zoom(ScintillaEditBase* self, int zoom); +void ScintillaEditBase_connect_Zoom(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_HotSpotClick(ScintillaEditBase* self, intptr_t position, int modifiers); +void ScintillaEditBase_connect_HotSpotClick(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_HotSpotDoubleClick(ScintillaEditBase* self, intptr_t position, int modifiers); +void ScintillaEditBase_connect_HotSpotDoubleClick(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_CallTipClick(ScintillaEditBase* self); +void ScintillaEditBase_connect_CallTipClick(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_AutoCompleteSelection(ScintillaEditBase* self, intptr_t position, struct miqt_string text); +void ScintillaEditBase_connect_AutoCompleteSelection(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_AutoCompleteCancelled(ScintillaEditBase* self); +void ScintillaEditBase_connect_AutoCompleteCancelled(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_FocusChanged(ScintillaEditBase* self, bool focused); +void ScintillaEditBase_connect_FocusChanged(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_Notify(ScintillaEditBase* self, Scintilla__NotificationData* pscn); +void ScintillaEditBase_connect_Notify(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_Command(ScintillaEditBase* self, uintptr_t wParam, intptr_t lParam); +void ScintillaEditBase_connect_Command(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_ButtonPressed(ScintillaEditBase* self, QMouseEvent* event); +void ScintillaEditBase_connect_ButtonPressed(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_ButtonReleased(ScintillaEditBase* self, QMouseEvent* event); +void ScintillaEditBase_connect_ButtonReleased(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_KeyPressed(ScintillaEditBase* self, QKeyEvent* event); +void ScintillaEditBase_connect_KeyPressed(ScintillaEditBase* self, intptr_t slot); +void ScintillaEditBase_Resized(ScintillaEditBase* self); +void ScintillaEditBase_connect_Resized(ScintillaEditBase* self, intptr_t slot); +struct miqt_string ScintillaEditBase_Tr2(const char* s, const char* c); +struct miqt_string ScintillaEditBase_Tr3(const char* s, const char* c, int n); +struct miqt_string ScintillaEditBase_TrUtf82(const char* s, const char* c); +struct miqt_string ScintillaEditBase_TrUtf83(const char* s, const char* c, int n); +intptr_t ScintillaEditBase_Send2(const ScintillaEditBase* self, unsigned int iMessage, uintptr_t wParam); +intptr_t ScintillaEditBase_Send3(const ScintillaEditBase* self, unsigned int iMessage, uintptr_t wParam, intptr_t lParam); +intptr_t ScintillaEditBase_Sends2(const ScintillaEditBase* self, unsigned int iMessage, uintptr_t wParam); +intptr_t ScintillaEditBase_Sends3(const ScintillaEditBase* self, unsigned int iMessage, uintptr_t wParam, const char* s); +void ScintillaEditBase_Delete(ScintillaEditBase* self); + +ScintillaDocument* ScintillaDocument_new(); +ScintillaDocument* ScintillaDocument_new2(QObject* parent); +ScintillaDocument* ScintillaDocument_new3(QObject* parent, void* pdoc_); +QMetaObject* ScintillaDocument_MetaObject(const ScintillaDocument* self); +void* ScintillaDocument_Metacast(ScintillaDocument* self, const char* param1); +struct miqt_string ScintillaDocument_Tr(const char* s); +struct miqt_string ScintillaDocument_TrUtf8(const char* s); +void* ScintillaDocument_Pointer(ScintillaDocument* self); +int ScintillaDocument_LineFromPosition(ScintillaDocument* self, int pos); +bool ScintillaDocument_IsCrLf(ScintillaDocument* self, int pos); +bool ScintillaDocument_DeleteChars(ScintillaDocument* self, int pos, int lenVal); +int ScintillaDocument_Undo(ScintillaDocument* self); +int ScintillaDocument_Redo(ScintillaDocument* self); +bool ScintillaDocument_CanUndo(ScintillaDocument* self); +bool ScintillaDocument_CanRedo(ScintillaDocument* self); +void ScintillaDocument_DeleteUndoHistory(ScintillaDocument* self); +bool ScintillaDocument_SetUndoCollection(ScintillaDocument* self, bool collect_undo); +bool ScintillaDocument_IsCollectingUndo(ScintillaDocument* self); +void ScintillaDocument_BeginUndoAction(ScintillaDocument* self); +void ScintillaDocument_EndUndoAction(ScintillaDocument* self); +void ScintillaDocument_SetSavePoint(ScintillaDocument* self); +bool ScintillaDocument_IsSavePoint(ScintillaDocument* self); +void ScintillaDocument_SetReadOnly(ScintillaDocument* self, bool read_only); +bool ScintillaDocument_IsReadOnly(ScintillaDocument* self); +void ScintillaDocument_InsertString(ScintillaDocument* self, int position, struct miqt_string str); +struct miqt_string ScintillaDocument_GetCharRange(ScintillaDocument* self, int position, int length); +char ScintillaDocument_StyleAt(ScintillaDocument* self, int position); +int ScintillaDocument_LineStart(ScintillaDocument* self, int lineno); +int ScintillaDocument_LineEnd(ScintillaDocument* self, int lineno); +int ScintillaDocument_LineEndPosition(ScintillaDocument* self, int pos); +int ScintillaDocument_Length(ScintillaDocument* self); +int ScintillaDocument_LinesTotal(ScintillaDocument* self); +void ScintillaDocument_StartStyling(ScintillaDocument* self, int position); +bool ScintillaDocument_SetStyleFor(ScintillaDocument* self, int length, char style); +int ScintillaDocument_GetEndStyled(ScintillaDocument* self); +void ScintillaDocument_EnsureStyledTo(ScintillaDocument* self, int position); +void ScintillaDocument_SetCurrentIndicator(ScintillaDocument* self, int indic); +void ScintillaDocument_DecorationFillRange(ScintillaDocument* self, int position, int value, int fillLength); +int ScintillaDocument_DecorationsValueAt(ScintillaDocument* self, int indic, int position); +int ScintillaDocument_DecorationsStart(ScintillaDocument* self, int indic, int position); +int ScintillaDocument_DecorationsEnd(ScintillaDocument* self, int indic, int position); +int ScintillaDocument_GetCodePage(ScintillaDocument* self); +void ScintillaDocument_SetCodePage(ScintillaDocument* self, int code_page); +int ScintillaDocument_GetEolMode(ScintillaDocument* self); +void ScintillaDocument_SetEolMode(ScintillaDocument* self, int eol_mode); +int ScintillaDocument_MovePositionOutsideChar(ScintillaDocument* self, int pos, int move_dir, bool check_line_end); +int ScintillaDocument_GetCharacter(ScintillaDocument* self, int pos); +void ScintillaDocument_ModifyAttempt(ScintillaDocument* self); +void ScintillaDocument_connect_ModifyAttempt(ScintillaDocument* self, intptr_t slot); +void ScintillaDocument_SavePoint(ScintillaDocument* self, bool atSavePoint); +void ScintillaDocument_connect_SavePoint(ScintillaDocument* self, intptr_t slot); +void ScintillaDocument_Modified(ScintillaDocument* self, int position, int modification_type, struct miqt_string text, int length, int linesAdded, int line, int foldLevelNow, int foldLevelPrev); +void ScintillaDocument_connect_Modified(ScintillaDocument* self, intptr_t slot); +void ScintillaDocument_StyleNeeded(ScintillaDocument* self, int pos); +void ScintillaDocument_connect_StyleNeeded(ScintillaDocument* self, intptr_t slot); +void ScintillaDocument_ErrorOccurred(ScintillaDocument* self, int status); +void ScintillaDocument_connect_ErrorOccurred(ScintillaDocument* self, intptr_t slot); +struct miqt_string ScintillaDocument_Tr2(const char* s, const char* c); +struct miqt_string ScintillaDocument_Tr3(const char* s, const char* c, int n); +struct miqt_string ScintillaDocument_TrUtf82(const char* s, const char* c); +struct miqt_string ScintillaDocument_TrUtf83(const char* s, const char* c, int n); +void ScintillaDocument_BeginUndoAction1(ScintillaDocument* self, bool coalesceWithPrior); +void ScintillaDocument_Delete(ScintillaDocument* self); + +ScintillaEdit* ScintillaEdit_new(); +ScintillaEdit* ScintillaEdit_new2(QWidget* parent); +QMetaObject* ScintillaEdit_MetaObject(const ScintillaEdit* self); +void* ScintillaEdit_Metacast(ScintillaEdit* self, const char* param1); +struct miqt_string ScintillaEdit_Tr(const char* s); +struct miqt_string ScintillaEdit_TrUtf8(const char* s); +struct miqt_string ScintillaEdit_TextReturner(const ScintillaEdit* self, int message, uintptr_t wParam); +struct miqt_string ScintillaEdit_GetTextRange(ScintillaEdit* self, int start, int end); +ScintillaDocument* ScintillaEdit_GetDoc(ScintillaEdit* self); +void ScintillaEdit_SetDoc(ScintillaEdit* self, ScintillaDocument* pdoc_); +struct miqt_string ScintillaEdit_TextRange(ScintillaEdit* self, int start, int end); +long ScintillaEdit_FormatRange(ScintillaEdit* self, bool draw, QPaintDevice* target, QPaintDevice* measure, QRect* print_rect, QRect* page_rect, long range_start, long range_end); +long ScintillaEdit_FormatRange2(ScintillaEdit* self, bool draw, QPaintDevice* target, QPaintDevice* measure, QRect* print_rect, QRect* page_rect, long range_start, long range_end); +void ScintillaEdit_AddText(ScintillaEdit* self, intptr_t length, const char* text); +void ScintillaEdit_AddStyledText(ScintillaEdit* self, intptr_t length, const char* c); +void ScintillaEdit_InsertText(ScintillaEdit* self, intptr_t pos, const char* text); +void ScintillaEdit_ChangeInsertion(ScintillaEdit* self, intptr_t length, const char* text); +void ScintillaEdit_ClearAll(ScintillaEdit* self); +void ScintillaEdit_DeleteRange(ScintillaEdit* self, intptr_t start, intptr_t lengthDelete); +void ScintillaEdit_ClearDocumentStyle(ScintillaEdit* self); +intptr_t ScintillaEdit_Length(const ScintillaEdit* self); +intptr_t ScintillaEdit_CharAt(const ScintillaEdit* self, intptr_t pos); +intptr_t ScintillaEdit_CurrentPos(const ScintillaEdit* self); +intptr_t ScintillaEdit_Anchor(const ScintillaEdit* self); +intptr_t ScintillaEdit_StyleAt(const ScintillaEdit* self, intptr_t pos); +intptr_t ScintillaEdit_StyleIndexAt(const ScintillaEdit* self, intptr_t pos); +void ScintillaEdit_Redo(ScintillaEdit* self); +void ScintillaEdit_SetUndoCollection(ScintillaEdit* self, bool collectUndo); +void ScintillaEdit_SelectAll(ScintillaEdit* self); +void ScintillaEdit_SetSavePoint(ScintillaEdit* self); +bool ScintillaEdit_CanRedo(ScintillaEdit* self); +intptr_t ScintillaEdit_MarkerLineFromHandle(ScintillaEdit* self, intptr_t markerHandle); +void ScintillaEdit_MarkerDeleteHandle(ScintillaEdit* self, intptr_t markerHandle); +intptr_t ScintillaEdit_MarkerHandleFromLine(ScintillaEdit* self, intptr_t line, intptr_t which); +intptr_t ScintillaEdit_MarkerNumberFromLine(ScintillaEdit* self, intptr_t line, intptr_t which); +bool ScintillaEdit_UndoCollection(const ScintillaEdit* self); +intptr_t ScintillaEdit_ViewWS(const ScintillaEdit* self); +void ScintillaEdit_SetViewWS(ScintillaEdit* self, intptr_t viewWS); +intptr_t ScintillaEdit_TabDrawMode(const ScintillaEdit* self); +void ScintillaEdit_SetTabDrawMode(ScintillaEdit* self, intptr_t tabDrawMode); +intptr_t ScintillaEdit_PositionFromPoint(ScintillaEdit* self, intptr_t x, intptr_t y); +intptr_t ScintillaEdit_PositionFromPointClose(ScintillaEdit* self, intptr_t x, intptr_t y); +void ScintillaEdit_GotoLine(ScintillaEdit* self, intptr_t line); +void ScintillaEdit_GotoPos(ScintillaEdit* self, intptr_t caret); +void ScintillaEdit_SetAnchor(ScintillaEdit* self, intptr_t anchor); +struct miqt_string ScintillaEdit_GetCurLine(ScintillaEdit* self, intptr_t length); +intptr_t ScintillaEdit_EndStyled(const ScintillaEdit* self); +void ScintillaEdit_ConvertEOLs(ScintillaEdit* self, intptr_t eolMode); +intptr_t ScintillaEdit_EOLMode(const ScintillaEdit* self); +void ScintillaEdit_SetEOLMode(ScintillaEdit* self, intptr_t eolMode); +void ScintillaEdit_StartStyling(ScintillaEdit* self, intptr_t start, intptr_t unused); +void ScintillaEdit_SetStyling(ScintillaEdit* self, intptr_t length, intptr_t style); +bool ScintillaEdit_BufferedDraw(const ScintillaEdit* self); +void ScintillaEdit_SetBufferedDraw(ScintillaEdit* self, bool buffered); +void ScintillaEdit_SetTabWidth(ScintillaEdit* self, intptr_t tabWidth); +intptr_t ScintillaEdit_TabWidth(const ScintillaEdit* self); +void ScintillaEdit_SetTabMinimumWidth(ScintillaEdit* self, intptr_t pixels); +intptr_t ScintillaEdit_TabMinimumWidth(const ScintillaEdit* self); +void ScintillaEdit_ClearTabStops(ScintillaEdit* self, intptr_t line); +void ScintillaEdit_AddTabStop(ScintillaEdit* self, intptr_t line, intptr_t x); +intptr_t ScintillaEdit_GetNextTabStop(ScintillaEdit* self, intptr_t line, intptr_t x); +void ScintillaEdit_SetCodePage(ScintillaEdit* self, intptr_t codePage); +void ScintillaEdit_SetFontLocale(ScintillaEdit* self, const char* localeName); +struct miqt_string ScintillaEdit_FontLocale(const ScintillaEdit* self); +intptr_t ScintillaEdit_IMEInteraction(const ScintillaEdit* self); +void ScintillaEdit_SetIMEInteraction(ScintillaEdit* self, intptr_t imeInteraction); +void ScintillaEdit_MarkerDefine(ScintillaEdit* self, intptr_t markerNumber, intptr_t markerSymbol); +void ScintillaEdit_MarkerSetFore(ScintillaEdit* self, intptr_t markerNumber, intptr_t fore); +void ScintillaEdit_MarkerSetBack(ScintillaEdit* self, intptr_t markerNumber, intptr_t back); +void ScintillaEdit_MarkerSetBackSelected(ScintillaEdit* self, intptr_t markerNumber, intptr_t back); +void ScintillaEdit_MarkerSetForeTranslucent(ScintillaEdit* self, intptr_t markerNumber, intptr_t fore); +void ScintillaEdit_MarkerSetBackTranslucent(ScintillaEdit* self, intptr_t markerNumber, intptr_t back); +void ScintillaEdit_MarkerSetBackSelectedTranslucent(ScintillaEdit* self, intptr_t markerNumber, intptr_t back); +void ScintillaEdit_MarkerSetStrokeWidth(ScintillaEdit* self, intptr_t markerNumber, intptr_t hundredths); +void ScintillaEdit_MarkerEnableHighlight(ScintillaEdit* self, bool enabled); +intptr_t ScintillaEdit_MarkerAdd(ScintillaEdit* self, intptr_t line, intptr_t markerNumber); +void ScintillaEdit_MarkerDelete(ScintillaEdit* self, intptr_t line, intptr_t markerNumber); +void ScintillaEdit_MarkerDeleteAll(ScintillaEdit* self, intptr_t markerNumber); +intptr_t ScintillaEdit_MarkerGet(ScintillaEdit* self, intptr_t line); +intptr_t ScintillaEdit_MarkerNext(ScintillaEdit* self, intptr_t lineStart, intptr_t markerMask); +intptr_t ScintillaEdit_MarkerPrevious(ScintillaEdit* self, intptr_t lineStart, intptr_t markerMask); +void ScintillaEdit_MarkerDefinePixmap(ScintillaEdit* self, intptr_t markerNumber, const char* pixmap); +void ScintillaEdit_MarkerAddSet(ScintillaEdit* self, intptr_t line, intptr_t markerSet); +void ScintillaEdit_MarkerSetAlpha(ScintillaEdit* self, intptr_t markerNumber, intptr_t alpha); +intptr_t ScintillaEdit_MarkerLayer(const ScintillaEdit* self, intptr_t markerNumber); +void ScintillaEdit_MarkerSetLayer(ScintillaEdit* self, intptr_t markerNumber, intptr_t layer); +void ScintillaEdit_SetMarginTypeN(ScintillaEdit* self, intptr_t margin, intptr_t marginType); +intptr_t ScintillaEdit_MarginTypeN(const ScintillaEdit* self, intptr_t margin); +void ScintillaEdit_SetMarginWidthN(ScintillaEdit* self, intptr_t margin, intptr_t pixelWidth); +intptr_t ScintillaEdit_MarginWidthN(const ScintillaEdit* self, intptr_t margin); +void ScintillaEdit_SetMarginMaskN(ScintillaEdit* self, intptr_t margin, intptr_t mask); +intptr_t ScintillaEdit_MarginMaskN(const ScintillaEdit* self, intptr_t margin); +void ScintillaEdit_SetMarginSensitiveN(ScintillaEdit* self, intptr_t margin, bool sensitive); +bool ScintillaEdit_MarginSensitiveN(const ScintillaEdit* self, intptr_t margin); +void ScintillaEdit_SetMarginCursorN(ScintillaEdit* self, intptr_t margin, intptr_t cursor); +intptr_t ScintillaEdit_MarginCursorN(const ScintillaEdit* self, intptr_t margin); +void ScintillaEdit_SetMarginBackN(ScintillaEdit* self, intptr_t margin, intptr_t back); +intptr_t ScintillaEdit_MarginBackN(const ScintillaEdit* self, intptr_t margin); +void ScintillaEdit_SetMargins(ScintillaEdit* self, intptr_t margins); +intptr_t ScintillaEdit_Margins(const ScintillaEdit* self); +void ScintillaEdit_StyleClearAll(ScintillaEdit* self); +void ScintillaEdit_StyleSetFore(ScintillaEdit* self, intptr_t style, intptr_t fore); +void ScintillaEdit_StyleSetBack(ScintillaEdit* self, intptr_t style, intptr_t back); +void ScintillaEdit_StyleSetBold(ScintillaEdit* self, intptr_t style, bool bold); +void ScintillaEdit_StyleSetItalic(ScintillaEdit* self, intptr_t style, bool italic); +void ScintillaEdit_StyleSetSize(ScintillaEdit* self, intptr_t style, intptr_t sizePoints); +void ScintillaEdit_StyleSetFont(ScintillaEdit* self, intptr_t style, const char* fontName); +void ScintillaEdit_StyleSetEOLFilled(ScintillaEdit* self, intptr_t style, bool eolFilled); +void ScintillaEdit_StyleResetDefault(ScintillaEdit* self); +void ScintillaEdit_StyleSetUnderline(ScintillaEdit* self, intptr_t style, bool underline); +intptr_t ScintillaEdit_StyleFore(const ScintillaEdit* self, intptr_t style); +intptr_t ScintillaEdit_StyleBack(const ScintillaEdit* self, intptr_t style); +bool ScintillaEdit_StyleBold(const ScintillaEdit* self, intptr_t style); +bool ScintillaEdit_StyleItalic(const ScintillaEdit* self, intptr_t style); +intptr_t ScintillaEdit_StyleSize(const ScintillaEdit* self, intptr_t style); +struct miqt_string ScintillaEdit_StyleFont(const ScintillaEdit* self, intptr_t style); +bool ScintillaEdit_StyleEOLFilled(const ScintillaEdit* self, intptr_t style); +bool ScintillaEdit_StyleUnderline(const ScintillaEdit* self, intptr_t style); +intptr_t ScintillaEdit_StyleCase(const ScintillaEdit* self, intptr_t style); +intptr_t ScintillaEdit_StyleCharacterSet(const ScintillaEdit* self, intptr_t style); +bool ScintillaEdit_StyleVisible(const ScintillaEdit* self, intptr_t style); +bool ScintillaEdit_StyleChangeable(const ScintillaEdit* self, intptr_t style); +bool ScintillaEdit_StyleHotSpot(const ScintillaEdit* self, intptr_t style); +void ScintillaEdit_StyleSetCase(ScintillaEdit* self, intptr_t style, intptr_t caseVisible); +void ScintillaEdit_StyleSetSizeFractional(ScintillaEdit* self, intptr_t style, intptr_t sizeHundredthPoints); +intptr_t ScintillaEdit_StyleSizeFractional(const ScintillaEdit* self, intptr_t style); +void ScintillaEdit_StyleSetWeight(ScintillaEdit* self, intptr_t style, intptr_t weight); +intptr_t ScintillaEdit_StyleWeight(const ScintillaEdit* self, intptr_t style); +void ScintillaEdit_StyleSetCharacterSet(ScintillaEdit* self, intptr_t style, intptr_t characterSet); +void ScintillaEdit_StyleSetHotSpot(ScintillaEdit* self, intptr_t style, bool hotspot); +void ScintillaEdit_StyleSetCheckMonospaced(ScintillaEdit* self, intptr_t style, bool checkMonospaced); +bool ScintillaEdit_StyleCheckMonospaced(const ScintillaEdit* self, intptr_t style); +void ScintillaEdit_StyleSetStretch(ScintillaEdit* self, intptr_t style, intptr_t stretch); +intptr_t ScintillaEdit_StyleStretch(const ScintillaEdit* self, intptr_t style); +void ScintillaEdit_StyleSetInvisibleRepresentation(ScintillaEdit* self, intptr_t style, const char* representation); +struct miqt_string ScintillaEdit_StyleInvisibleRepresentation(const ScintillaEdit* self, intptr_t style); +void ScintillaEdit_SetElementColour(ScintillaEdit* self, intptr_t element, intptr_t colourElement); +intptr_t ScintillaEdit_ElementColour(const ScintillaEdit* self, intptr_t element); +void ScintillaEdit_ResetElementColour(ScintillaEdit* self, intptr_t element); +bool ScintillaEdit_ElementIsSet(const ScintillaEdit* self, intptr_t element); +bool ScintillaEdit_ElementAllowsTranslucent(const ScintillaEdit* self, intptr_t element); +intptr_t ScintillaEdit_ElementBaseColour(const ScintillaEdit* self, intptr_t element); +void ScintillaEdit_SetSelFore(ScintillaEdit* self, bool useSetting, intptr_t fore); +void ScintillaEdit_SetSelBack(ScintillaEdit* self, bool useSetting, intptr_t back); +intptr_t ScintillaEdit_SelAlpha(const ScintillaEdit* self); +void ScintillaEdit_SetSelAlpha(ScintillaEdit* self, intptr_t alpha); +bool ScintillaEdit_SelEOLFilled(const ScintillaEdit* self); +void ScintillaEdit_SetSelEOLFilled(ScintillaEdit* self, bool filled); +intptr_t ScintillaEdit_SelectionLayer(const ScintillaEdit* self); +void ScintillaEdit_SetSelectionLayer(ScintillaEdit* self, intptr_t layer); +intptr_t ScintillaEdit_CaretLineLayer(const ScintillaEdit* self); +void ScintillaEdit_SetCaretLineLayer(ScintillaEdit* self, intptr_t layer); +bool ScintillaEdit_CaretLineHighlightSubLine(const ScintillaEdit* self); +void ScintillaEdit_SetCaretLineHighlightSubLine(ScintillaEdit* self, bool subLine); +void ScintillaEdit_SetCaretFore(ScintillaEdit* self, intptr_t fore); +void ScintillaEdit_AssignCmdKey(ScintillaEdit* self, intptr_t keyDefinition, intptr_t sciCommand); +void ScintillaEdit_ClearCmdKey(ScintillaEdit* self, intptr_t keyDefinition); +void ScintillaEdit_ClearAllCmdKeys(ScintillaEdit* self); +void ScintillaEdit_SetStylingEx(ScintillaEdit* self, intptr_t length, const char* styles); +void ScintillaEdit_StyleSetVisible(ScintillaEdit* self, intptr_t style, bool visible); +intptr_t ScintillaEdit_CaretPeriod(const ScintillaEdit* self); +void ScintillaEdit_SetCaretPeriod(ScintillaEdit* self, intptr_t periodMilliseconds); +void ScintillaEdit_SetWordChars(ScintillaEdit* self, const char* characters); +struct miqt_string ScintillaEdit_WordChars(const ScintillaEdit* self); +void ScintillaEdit_SetCharacterCategoryOptimization(ScintillaEdit* self, intptr_t countCharacters); +intptr_t ScintillaEdit_CharacterCategoryOptimization(const ScintillaEdit* self); +void ScintillaEdit_BeginUndoAction(ScintillaEdit* self); +void ScintillaEdit_EndUndoAction(ScintillaEdit* self); +intptr_t ScintillaEdit_UndoSequence(const ScintillaEdit* self); +intptr_t ScintillaEdit_UndoActions(const ScintillaEdit* self); +void ScintillaEdit_SetUndoSavePoint(ScintillaEdit* self, intptr_t action); +intptr_t ScintillaEdit_UndoSavePoint(const ScintillaEdit* self); +void ScintillaEdit_SetUndoDetach(ScintillaEdit* self, intptr_t action); +intptr_t ScintillaEdit_UndoDetach(const ScintillaEdit* self); +void ScintillaEdit_SetUndoTentative(ScintillaEdit* self, intptr_t action); +intptr_t ScintillaEdit_UndoTentative(const ScintillaEdit* self); +void ScintillaEdit_SetUndoCurrent(ScintillaEdit* self, intptr_t action); +intptr_t ScintillaEdit_UndoCurrent(const ScintillaEdit* self); +void ScintillaEdit_PushUndoActionType(ScintillaEdit* self, intptr_t typeVal, intptr_t pos); +void ScintillaEdit_ChangeLastUndoActionText(ScintillaEdit* self, intptr_t length, const char* text); +intptr_t ScintillaEdit_UndoActionType(const ScintillaEdit* self, intptr_t action); +intptr_t ScintillaEdit_UndoActionPosition(const ScintillaEdit* self, intptr_t action); +struct miqt_string ScintillaEdit_UndoActionText(const ScintillaEdit* self, intptr_t action); +void ScintillaEdit_IndicSetStyle(ScintillaEdit* self, intptr_t indicator, intptr_t indicatorStyle); +intptr_t ScintillaEdit_IndicStyle(const ScintillaEdit* self, intptr_t indicator); +void ScintillaEdit_IndicSetFore(ScintillaEdit* self, intptr_t indicator, intptr_t fore); +intptr_t ScintillaEdit_IndicFore(const ScintillaEdit* self, intptr_t indicator); +void ScintillaEdit_IndicSetUnder(ScintillaEdit* self, intptr_t indicator, bool under); +bool ScintillaEdit_IndicUnder(const ScintillaEdit* self, intptr_t indicator); +void ScintillaEdit_IndicSetHoverStyle(ScintillaEdit* self, intptr_t indicator, intptr_t indicatorStyle); +intptr_t ScintillaEdit_IndicHoverStyle(const ScintillaEdit* self, intptr_t indicator); +void ScintillaEdit_IndicSetHoverFore(ScintillaEdit* self, intptr_t indicator, intptr_t fore); +intptr_t ScintillaEdit_IndicHoverFore(const ScintillaEdit* self, intptr_t indicator); +void ScintillaEdit_IndicSetFlags(ScintillaEdit* self, intptr_t indicator, intptr_t flags); +intptr_t ScintillaEdit_IndicFlags(const ScintillaEdit* self, intptr_t indicator); +void ScintillaEdit_IndicSetStrokeWidth(ScintillaEdit* self, intptr_t indicator, intptr_t hundredths); +intptr_t ScintillaEdit_IndicStrokeWidth(const ScintillaEdit* self, intptr_t indicator); +void ScintillaEdit_SetWhitespaceFore(ScintillaEdit* self, bool useSetting, intptr_t fore); +void ScintillaEdit_SetWhitespaceBack(ScintillaEdit* self, bool useSetting, intptr_t back); +void ScintillaEdit_SetWhitespaceSize(ScintillaEdit* self, intptr_t size); +intptr_t ScintillaEdit_WhitespaceSize(const ScintillaEdit* self); +void ScintillaEdit_SetLineState(ScintillaEdit* self, intptr_t line, intptr_t state); +intptr_t ScintillaEdit_LineState(const ScintillaEdit* self, intptr_t line); +intptr_t ScintillaEdit_MaxLineState(const ScintillaEdit* self); +bool ScintillaEdit_CaretLineVisible(const ScintillaEdit* self); +void ScintillaEdit_SetCaretLineVisible(ScintillaEdit* self, bool show); +intptr_t ScintillaEdit_CaretLineBack(const ScintillaEdit* self); +void ScintillaEdit_SetCaretLineBack(ScintillaEdit* self, intptr_t back); +intptr_t ScintillaEdit_CaretLineFrame(const ScintillaEdit* self); +void ScintillaEdit_SetCaretLineFrame(ScintillaEdit* self, intptr_t width); +void ScintillaEdit_StyleSetChangeable(ScintillaEdit* self, intptr_t style, bool changeable); +void ScintillaEdit_AutoCShow(ScintillaEdit* self, intptr_t lengthEntered, const char* itemList); +void ScintillaEdit_AutoCCancel(ScintillaEdit* self); +bool ScintillaEdit_AutoCActive(ScintillaEdit* self); +intptr_t ScintillaEdit_AutoCPosStart(ScintillaEdit* self); +void ScintillaEdit_AutoCComplete(ScintillaEdit* self); +void ScintillaEdit_AutoCStops(ScintillaEdit* self, const char* characterSet); +void ScintillaEdit_AutoCSetSeparator(ScintillaEdit* self, intptr_t separatorCharacter); +intptr_t ScintillaEdit_AutoCSeparator(const ScintillaEdit* self); +void ScintillaEdit_AutoCSelect(ScintillaEdit* self, const char* selectVal); +void ScintillaEdit_AutoCSetCancelAtStart(ScintillaEdit* self, bool cancel); +bool ScintillaEdit_AutoCCancelAtStart(const ScintillaEdit* self); +void ScintillaEdit_AutoCSetFillUps(ScintillaEdit* self, const char* characterSet); +void ScintillaEdit_AutoCSetChooseSingle(ScintillaEdit* self, bool chooseSingle); +bool ScintillaEdit_AutoCChooseSingle(const ScintillaEdit* self); +void ScintillaEdit_AutoCSetIgnoreCase(ScintillaEdit* self, bool ignoreCase); +bool ScintillaEdit_AutoCIgnoreCase(const ScintillaEdit* self); +void ScintillaEdit_UserListShow(ScintillaEdit* self, intptr_t listType, const char* itemList); +void ScintillaEdit_AutoCSetAutoHide(ScintillaEdit* self, bool autoHide); +bool ScintillaEdit_AutoCAutoHide(const ScintillaEdit* self); +void ScintillaEdit_AutoCSetOptions(ScintillaEdit* self, intptr_t options); +intptr_t ScintillaEdit_AutoCOptions(const ScintillaEdit* self); +void ScintillaEdit_AutoCSetDropRestOfWord(ScintillaEdit* self, bool dropRestOfWord); +bool ScintillaEdit_AutoCDropRestOfWord(const ScintillaEdit* self); +void ScintillaEdit_RegisterImage(ScintillaEdit* self, intptr_t typeVal, const char* xpmData); +void ScintillaEdit_ClearRegisteredImages(ScintillaEdit* self); +intptr_t ScintillaEdit_AutoCTypeSeparator(const ScintillaEdit* self); +void ScintillaEdit_AutoCSetTypeSeparator(ScintillaEdit* self, intptr_t separatorCharacter); +void ScintillaEdit_AutoCSetMaxWidth(ScintillaEdit* self, intptr_t characterCount); +intptr_t ScintillaEdit_AutoCMaxWidth(const ScintillaEdit* self); +void ScintillaEdit_AutoCSetMaxHeight(ScintillaEdit* self, intptr_t rowCount); +intptr_t ScintillaEdit_AutoCMaxHeight(const ScintillaEdit* self); +void ScintillaEdit_AutoCSetStyle(ScintillaEdit* self, intptr_t style); +intptr_t ScintillaEdit_AutoCStyle(const ScintillaEdit* self); +void ScintillaEdit_SetIndent(ScintillaEdit* self, intptr_t indentSize); +intptr_t ScintillaEdit_Indent(const ScintillaEdit* self); +void ScintillaEdit_SetUseTabs(ScintillaEdit* self, bool useTabs); +bool ScintillaEdit_UseTabs(const ScintillaEdit* self); +void ScintillaEdit_SetLineIndentation(ScintillaEdit* self, intptr_t line, intptr_t indentation); +intptr_t ScintillaEdit_LineIndentation(const ScintillaEdit* self, intptr_t line); +intptr_t ScintillaEdit_LineIndentPosition(const ScintillaEdit* self, intptr_t line); +intptr_t ScintillaEdit_Column(const ScintillaEdit* self, intptr_t pos); +intptr_t ScintillaEdit_CountCharacters(ScintillaEdit* self, intptr_t start, intptr_t end); +intptr_t ScintillaEdit_CountCodeUnits(ScintillaEdit* self, intptr_t start, intptr_t end); +void ScintillaEdit_SetHScrollBar(ScintillaEdit* self, bool visible); +bool ScintillaEdit_HScrollBar(const ScintillaEdit* self); +void ScintillaEdit_SetIndentationGuides(ScintillaEdit* self, intptr_t indentView); +intptr_t ScintillaEdit_IndentationGuides(const ScintillaEdit* self); +void ScintillaEdit_SetHighlightGuide(ScintillaEdit* self, intptr_t column); +intptr_t ScintillaEdit_HighlightGuide(const ScintillaEdit* self); +intptr_t ScintillaEdit_LineEndPosition(const ScintillaEdit* self, intptr_t line); +intptr_t ScintillaEdit_CodePage(const ScintillaEdit* self); +intptr_t ScintillaEdit_CaretFore(const ScintillaEdit* self); +bool ScintillaEdit_ReadOnly(const ScintillaEdit* self); +void ScintillaEdit_SetCurrentPos(ScintillaEdit* self, intptr_t caret); +void ScintillaEdit_SetSelectionStart(ScintillaEdit* self, intptr_t anchor); +intptr_t ScintillaEdit_SelectionStart(const ScintillaEdit* self); +void ScintillaEdit_SetSelectionEnd(ScintillaEdit* self, intptr_t caret); +intptr_t ScintillaEdit_SelectionEnd(const ScintillaEdit* self); +void ScintillaEdit_SetEmptySelection(ScintillaEdit* self, intptr_t caret); +void ScintillaEdit_SetPrintMagnification(ScintillaEdit* self, intptr_t magnification); +intptr_t ScintillaEdit_PrintMagnification(const ScintillaEdit* self); +void ScintillaEdit_SetPrintColourMode(ScintillaEdit* self, intptr_t mode); +intptr_t ScintillaEdit_PrintColourMode(const ScintillaEdit* self); +void ScintillaEdit_SetChangeHistory(ScintillaEdit* self, intptr_t changeHistory); +intptr_t ScintillaEdit_ChangeHistory(const ScintillaEdit* self); +intptr_t ScintillaEdit_FirstVisibleLine(const ScintillaEdit* self); +struct miqt_string ScintillaEdit_GetLine(ScintillaEdit* self, intptr_t line); +intptr_t ScintillaEdit_LineCount(const ScintillaEdit* self); +void ScintillaEdit_AllocateLines(ScintillaEdit* self, intptr_t lines); +void ScintillaEdit_SetMarginLeft(ScintillaEdit* self, intptr_t pixelWidth); +intptr_t ScintillaEdit_MarginLeft(const ScintillaEdit* self); +void ScintillaEdit_SetMarginRight(ScintillaEdit* self, intptr_t pixelWidth); +intptr_t ScintillaEdit_MarginRight(const ScintillaEdit* self); +bool ScintillaEdit_Modify(const ScintillaEdit* self); +void ScintillaEdit_SetSel(ScintillaEdit* self, intptr_t anchor, intptr_t caret); +struct miqt_string ScintillaEdit_GetSelText(ScintillaEdit* self); +void ScintillaEdit_HideSelection(ScintillaEdit* self, bool hide); +bool ScintillaEdit_SelectionHidden(const ScintillaEdit* self); +intptr_t ScintillaEdit_PointXFromPosition(ScintillaEdit* self, intptr_t pos); +intptr_t ScintillaEdit_PointYFromPosition(ScintillaEdit* self, intptr_t pos); +intptr_t ScintillaEdit_LineFromPosition(ScintillaEdit* self, intptr_t pos); +intptr_t ScintillaEdit_PositionFromLine(ScintillaEdit* self, intptr_t line); +void ScintillaEdit_LineScroll(ScintillaEdit* self, intptr_t columns, intptr_t lines); +void ScintillaEdit_ScrollCaret(ScintillaEdit* self); +void ScintillaEdit_ScrollRange(ScintillaEdit* self, intptr_t secondary, intptr_t primary); +void ScintillaEdit_ReplaceSel(ScintillaEdit* self, const char* text); +void ScintillaEdit_SetReadOnly(ScintillaEdit* self, bool readOnly); +void ScintillaEdit_Null(ScintillaEdit* self); +bool ScintillaEdit_CanPaste(ScintillaEdit* self); +bool ScintillaEdit_CanUndo(ScintillaEdit* self); +void ScintillaEdit_EmptyUndoBuffer(ScintillaEdit* self); +void ScintillaEdit_Undo(ScintillaEdit* self); +void ScintillaEdit_Cut(ScintillaEdit* self); +void ScintillaEdit_Copy(ScintillaEdit* self); +void ScintillaEdit_Paste(ScintillaEdit* self); +void ScintillaEdit_Clear(ScintillaEdit* self); +void ScintillaEdit_SetText(ScintillaEdit* self, const char* text); +struct miqt_string ScintillaEdit_GetText(ScintillaEdit* self, intptr_t length); +intptr_t ScintillaEdit_TextLength(const ScintillaEdit* self); +intptr_t ScintillaEdit_DirectFunction(const ScintillaEdit* self); +intptr_t ScintillaEdit_DirectStatusFunction(const ScintillaEdit* self); +intptr_t ScintillaEdit_DirectPointer(const ScintillaEdit* self); +void ScintillaEdit_SetOvertype(ScintillaEdit* self, bool overType); +bool ScintillaEdit_Overtype(const ScintillaEdit* self); +void ScintillaEdit_SetCaretWidth(ScintillaEdit* self, intptr_t pixelWidth); +intptr_t ScintillaEdit_CaretWidth(const ScintillaEdit* self); +void ScintillaEdit_SetTargetStart(ScintillaEdit* self, intptr_t start); +intptr_t ScintillaEdit_TargetStart(const ScintillaEdit* self); +void ScintillaEdit_SetTargetStartVirtualSpace(ScintillaEdit* self, intptr_t space); +intptr_t ScintillaEdit_TargetStartVirtualSpace(const ScintillaEdit* self); +void ScintillaEdit_SetTargetEnd(ScintillaEdit* self, intptr_t end); +intptr_t ScintillaEdit_TargetEnd(const ScintillaEdit* self); +void ScintillaEdit_SetTargetEndVirtualSpace(ScintillaEdit* self, intptr_t space); +intptr_t ScintillaEdit_TargetEndVirtualSpace(const ScintillaEdit* self); +void ScintillaEdit_SetTargetRange(ScintillaEdit* self, intptr_t start, intptr_t end); +struct miqt_string ScintillaEdit_TargetText(const ScintillaEdit* self); +void ScintillaEdit_TargetFromSelection(ScintillaEdit* self); +void ScintillaEdit_TargetWholeDocument(ScintillaEdit* self); +intptr_t ScintillaEdit_ReplaceTarget(ScintillaEdit* self, intptr_t length, const char* text); +intptr_t ScintillaEdit_ReplaceTargetRE(ScintillaEdit* self, intptr_t length, const char* text); +intptr_t ScintillaEdit_ReplaceTargetMinimal(ScintillaEdit* self, intptr_t length, const char* text); +intptr_t ScintillaEdit_SearchInTarget(ScintillaEdit* self, intptr_t length, const char* text); +void ScintillaEdit_SetSearchFlags(ScintillaEdit* self, intptr_t searchFlags); +intptr_t ScintillaEdit_SearchFlags(const ScintillaEdit* self); +void ScintillaEdit_CallTipShow(ScintillaEdit* self, intptr_t pos, const char* definition); +void ScintillaEdit_CallTipCancel(ScintillaEdit* self); +bool ScintillaEdit_CallTipActive(ScintillaEdit* self); +intptr_t ScintillaEdit_CallTipPosStart(ScintillaEdit* self); +void ScintillaEdit_CallTipSetPosStart(ScintillaEdit* self, intptr_t posStart); +void ScintillaEdit_CallTipSetHlt(ScintillaEdit* self, intptr_t highlightStart, intptr_t highlightEnd); +void ScintillaEdit_CallTipSetBack(ScintillaEdit* self, intptr_t back); +void ScintillaEdit_CallTipSetFore(ScintillaEdit* self, intptr_t fore); +void ScintillaEdit_CallTipSetForeHlt(ScintillaEdit* self, intptr_t fore); +void ScintillaEdit_CallTipUseStyle(ScintillaEdit* self, intptr_t tabSize); +void ScintillaEdit_CallTipSetPosition(ScintillaEdit* self, bool above); +intptr_t ScintillaEdit_VisibleFromDocLine(ScintillaEdit* self, intptr_t docLine); +intptr_t ScintillaEdit_DocLineFromVisible(ScintillaEdit* self, intptr_t displayLine); +intptr_t ScintillaEdit_WrapCount(ScintillaEdit* self, intptr_t docLine); +void ScintillaEdit_SetFoldLevel(ScintillaEdit* self, intptr_t line, intptr_t level); +intptr_t ScintillaEdit_FoldLevel(const ScintillaEdit* self, intptr_t line); +intptr_t ScintillaEdit_LastChild(const ScintillaEdit* self, intptr_t line, intptr_t level); +intptr_t ScintillaEdit_FoldParent(const ScintillaEdit* self, intptr_t line); +void ScintillaEdit_ShowLines(ScintillaEdit* self, intptr_t lineStart, intptr_t lineEnd); +void ScintillaEdit_HideLines(ScintillaEdit* self, intptr_t lineStart, intptr_t lineEnd); +bool ScintillaEdit_LineVisible(const ScintillaEdit* self, intptr_t line); +bool ScintillaEdit_AllLinesVisible(const ScintillaEdit* self); +void ScintillaEdit_SetFoldExpanded(ScintillaEdit* self, intptr_t line, bool expanded); +bool ScintillaEdit_FoldExpanded(const ScintillaEdit* self, intptr_t line); +void ScintillaEdit_ToggleFold(ScintillaEdit* self, intptr_t line); +void ScintillaEdit_ToggleFoldShowText(ScintillaEdit* self, intptr_t line, const char* text); +void ScintillaEdit_FoldDisplayTextSetStyle(ScintillaEdit* self, intptr_t style); +intptr_t ScintillaEdit_FoldDisplayTextStyle(const ScintillaEdit* self); +void ScintillaEdit_SetDefaultFoldDisplayText(ScintillaEdit* self, const char* text); +struct miqt_string ScintillaEdit_GetDefaultFoldDisplayText(ScintillaEdit* self); +void ScintillaEdit_FoldLine(ScintillaEdit* self, intptr_t line, intptr_t action); +void ScintillaEdit_FoldChildren(ScintillaEdit* self, intptr_t line, intptr_t action); +void ScintillaEdit_ExpandChildren(ScintillaEdit* self, intptr_t line, intptr_t level); +void ScintillaEdit_FoldAll(ScintillaEdit* self, intptr_t action); +void ScintillaEdit_EnsureVisible(ScintillaEdit* self, intptr_t line); +void ScintillaEdit_SetAutomaticFold(ScintillaEdit* self, intptr_t automaticFold); +intptr_t ScintillaEdit_AutomaticFold(const ScintillaEdit* self); +void ScintillaEdit_SetFoldFlags(ScintillaEdit* self, intptr_t flags); +void ScintillaEdit_EnsureVisibleEnforcePolicy(ScintillaEdit* self, intptr_t line); +void ScintillaEdit_SetTabIndents(ScintillaEdit* self, bool tabIndents); +bool ScintillaEdit_TabIndents(const ScintillaEdit* self); +void ScintillaEdit_SetBackSpaceUnIndents(ScintillaEdit* self, bool bsUnIndents); +bool ScintillaEdit_BackSpaceUnIndents(const ScintillaEdit* self); +void ScintillaEdit_SetMouseDwellTime(ScintillaEdit* self, intptr_t periodMilliseconds); +intptr_t ScintillaEdit_MouseDwellTime(const ScintillaEdit* self); +intptr_t ScintillaEdit_WordStartPosition(ScintillaEdit* self, intptr_t pos, bool onlyWordCharacters); +intptr_t ScintillaEdit_WordEndPosition(ScintillaEdit* self, intptr_t pos, bool onlyWordCharacters); +bool ScintillaEdit_IsRangeWord(ScintillaEdit* self, intptr_t start, intptr_t end); +void ScintillaEdit_SetIdleStyling(ScintillaEdit* self, intptr_t idleStyling); +intptr_t ScintillaEdit_IdleStyling(const ScintillaEdit* self); +void ScintillaEdit_SetWrapMode(ScintillaEdit* self, intptr_t wrapMode); +intptr_t ScintillaEdit_WrapMode(const ScintillaEdit* self); +void ScintillaEdit_SetWrapVisualFlags(ScintillaEdit* self, intptr_t wrapVisualFlags); +intptr_t ScintillaEdit_WrapVisualFlags(const ScintillaEdit* self); +void ScintillaEdit_SetWrapVisualFlagsLocation(ScintillaEdit* self, intptr_t wrapVisualFlagsLocation); +intptr_t ScintillaEdit_WrapVisualFlagsLocation(const ScintillaEdit* self); +void ScintillaEdit_SetWrapStartIndent(ScintillaEdit* self, intptr_t indent); +intptr_t ScintillaEdit_WrapStartIndent(const ScintillaEdit* self); +void ScintillaEdit_SetWrapIndentMode(ScintillaEdit* self, intptr_t wrapIndentMode); +intptr_t ScintillaEdit_WrapIndentMode(const ScintillaEdit* self); +void ScintillaEdit_SetLayoutCache(ScintillaEdit* self, intptr_t cacheMode); +intptr_t ScintillaEdit_LayoutCache(const ScintillaEdit* self); +void ScintillaEdit_SetScrollWidth(ScintillaEdit* self, intptr_t pixelWidth); +intptr_t ScintillaEdit_ScrollWidth(const ScintillaEdit* self); +void ScintillaEdit_SetScrollWidthTracking(ScintillaEdit* self, bool tracking); +bool ScintillaEdit_ScrollWidthTracking(const ScintillaEdit* self); +intptr_t ScintillaEdit_TextWidth(ScintillaEdit* self, intptr_t style, const char* text); +void ScintillaEdit_SetEndAtLastLine(ScintillaEdit* self, bool endAtLastLine); +bool ScintillaEdit_EndAtLastLine(const ScintillaEdit* self); +intptr_t ScintillaEdit_TextHeight(ScintillaEdit* self, intptr_t line); +void ScintillaEdit_SetVScrollBar(ScintillaEdit* self, bool visible); +bool ScintillaEdit_VScrollBar(const ScintillaEdit* self); +void ScintillaEdit_AppendText(ScintillaEdit* self, intptr_t length, const char* text); +intptr_t ScintillaEdit_PhasesDraw(const ScintillaEdit* self); +void ScintillaEdit_SetPhasesDraw(ScintillaEdit* self, intptr_t phases); +void ScintillaEdit_SetFontQuality(ScintillaEdit* self, intptr_t fontQuality); +intptr_t ScintillaEdit_FontQuality(const ScintillaEdit* self); +void ScintillaEdit_SetFirstVisibleLine(ScintillaEdit* self, intptr_t displayLine); +void ScintillaEdit_SetMultiPaste(ScintillaEdit* self, intptr_t multiPaste); +intptr_t ScintillaEdit_MultiPaste(const ScintillaEdit* self); +struct miqt_string ScintillaEdit_Tag(const ScintillaEdit* self, intptr_t tagNumber); +void ScintillaEdit_LinesJoin(ScintillaEdit* self); +void ScintillaEdit_LinesSplit(ScintillaEdit* self, intptr_t pixelWidth); +void ScintillaEdit_SetFoldMarginColour(ScintillaEdit* self, bool useSetting, intptr_t back); +void ScintillaEdit_SetFoldMarginHiColour(ScintillaEdit* self, bool useSetting, intptr_t fore); +void ScintillaEdit_SetAccessibility(ScintillaEdit* self, intptr_t accessibility); +intptr_t ScintillaEdit_Accessibility(const ScintillaEdit* self); +void ScintillaEdit_LineDown(ScintillaEdit* self); +void ScintillaEdit_LineDownExtend(ScintillaEdit* self); +void ScintillaEdit_LineUp(ScintillaEdit* self); +void ScintillaEdit_LineUpExtend(ScintillaEdit* self); +void ScintillaEdit_CharLeft(ScintillaEdit* self); +void ScintillaEdit_CharLeftExtend(ScintillaEdit* self); +void ScintillaEdit_CharRight(ScintillaEdit* self); +void ScintillaEdit_CharRightExtend(ScintillaEdit* self); +void ScintillaEdit_WordLeft(ScintillaEdit* self); +void ScintillaEdit_WordLeftExtend(ScintillaEdit* self); +void ScintillaEdit_WordRight(ScintillaEdit* self); +void ScintillaEdit_WordRightExtend(ScintillaEdit* self); +void ScintillaEdit_Home(ScintillaEdit* self); +void ScintillaEdit_HomeExtend(ScintillaEdit* self); +void ScintillaEdit_LineEnd(ScintillaEdit* self); +void ScintillaEdit_LineEndExtend(ScintillaEdit* self); +void ScintillaEdit_DocumentStart(ScintillaEdit* self); +void ScintillaEdit_DocumentStartExtend(ScintillaEdit* self); +void ScintillaEdit_DocumentEnd(ScintillaEdit* self); +void ScintillaEdit_DocumentEndExtend(ScintillaEdit* self); +void ScintillaEdit_PageUp(ScintillaEdit* self); +void ScintillaEdit_PageUpExtend(ScintillaEdit* self); +void ScintillaEdit_PageDown(ScintillaEdit* self); +void ScintillaEdit_PageDownExtend(ScintillaEdit* self); +void ScintillaEdit_EditToggleOvertype(ScintillaEdit* self); +void ScintillaEdit_Cancel(ScintillaEdit* self); +void ScintillaEdit_DeleteBack(ScintillaEdit* self); +void ScintillaEdit_Tab(ScintillaEdit* self); +void ScintillaEdit_LineIndent(ScintillaEdit* self); +void ScintillaEdit_BackTab(ScintillaEdit* self); +void ScintillaEdit_LineDedent(ScintillaEdit* self); +void ScintillaEdit_NewLine(ScintillaEdit* self); +void ScintillaEdit_FormFeed(ScintillaEdit* self); +void ScintillaEdit_VCHome(ScintillaEdit* self); +void ScintillaEdit_VCHomeExtend(ScintillaEdit* self); +void ScintillaEdit_ZoomIn(ScintillaEdit* self); +void ScintillaEdit_ZoomOut(ScintillaEdit* self); +void ScintillaEdit_DelWordLeft(ScintillaEdit* self); +void ScintillaEdit_DelWordRight(ScintillaEdit* self); +void ScintillaEdit_DelWordRightEnd(ScintillaEdit* self); +void ScintillaEdit_LineCut(ScintillaEdit* self); +void ScintillaEdit_LineDelete(ScintillaEdit* self); +void ScintillaEdit_LineTranspose(ScintillaEdit* self); +void ScintillaEdit_LineReverse(ScintillaEdit* self); +void ScintillaEdit_LineDuplicate(ScintillaEdit* self); +void ScintillaEdit_LowerCase(ScintillaEdit* self); +void ScintillaEdit_UpperCase(ScintillaEdit* self); +void ScintillaEdit_LineScrollDown(ScintillaEdit* self); +void ScintillaEdit_LineScrollUp(ScintillaEdit* self); +void ScintillaEdit_DeleteBackNotLine(ScintillaEdit* self); +void ScintillaEdit_HomeDisplay(ScintillaEdit* self); +void ScintillaEdit_HomeDisplayExtend(ScintillaEdit* self); +void ScintillaEdit_LineEndDisplay(ScintillaEdit* self); +void ScintillaEdit_LineEndDisplayExtend(ScintillaEdit* self); +void ScintillaEdit_HomeWrap(ScintillaEdit* self); +void ScintillaEdit_HomeWrapExtend(ScintillaEdit* self); +void ScintillaEdit_LineEndWrap(ScintillaEdit* self); +void ScintillaEdit_LineEndWrapExtend(ScintillaEdit* self); +void ScintillaEdit_VCHomeWrap(ScintillaEdit* self); +void ScintillaEdit_VCHomeWrapExtend(ScintillaEdit* self); +void ScintillaEdit_LineCopy(ScintillaEdit* self); +void ScintillaEdit_MoveCaretInsideView(ScintillaEdit* self); +intptr_t ScintillaEdit_LineLength(ScintillaEdit* self, intptr_t line); +void ScintillaEdit_BraceHighlight(ScintillaEdit* self, intptr_t posA, intptr_t posB); +void ScintillaEdit_BraceHighlightIndicator(ScintillaEdit* self, bool useSetting, intptr_t indicator); +void ScintillaEdit_BraceBadLight(ScintillaEdit* self, intptr_t pos); +void ScintillaEdit_BraceBadLightIndicator(ScintillaEdit* self, bool useSetting, intptr_t indicator); +intptr_t ScintillaEdit_BraceMatch(ScintillaEdit* self, intptr_t pos, intptr_t maxReStyle); +intptr_t ScintillaEdit_BraceMatchNext(ScintillaEdit* self, intptr_t pos, intptr_t startPos); +bool ScintillaEdit_ViewEOL(const ScintillaEdit* self); +void ScintillaEdit_SetViewEOL(ScintillaEdit* self, bool visible); +intptr_t ScintillaEdit_DocPointer(const ScintillaEdit* self); +void ScintillaEdit_SetDocPointer(ScintillaEdit* self, intptr_t doc); +void ScintillaEdit_SetModEventMask(ScintillaEdit* self, intptr_t eventMask); +intptr_t ScintillaEdit_EdgeColumn(const ScintillaEdit* self); +void ScintillaEdit_SetEdgeColumn(ScintillaEdit* self, intptr_t column); +intptr_t ScintillaEdit_EdgeMode(const ScintillaEdit* self); +void ScintillaEdit_SetEdgeMode(ScintillaEdit* self, intptr_t edgeMode); +intptr_t ScintillaEdit_EdgeColour(const ScintillaEdit* self); +void ScintillaEdit_SetEdgeColour(ScintillaEdit* self, intptr_t edgeColour); +void ScintillaEdit_MultiEdgeAddLine(ScintillaEdit* self, intptr_t column, intptr_t edgeColour); +void ScintillaEdit_MultiEdgeClearAll(ScintillaEdit* self); +intptr_t ScintillaEdit_MultiEdgeColumn(const ScintillaEdit* self, intptr_t which); +void ScintillaEdit_SearchAnchor(ScintillaEdit* self); +intptr_t ScintillaEdit_SearchNext(ScintillaEdit* self, intptr_t searchFlags, const char* text); +intptr_t ScintillaEdit_SearchPrev(ScintillaEdit* self, intptr_t searchFlags, const char* text); +intptr_t ScintillaEdit_LinesOnScreen(const ScintillaEdit* self); +void ScintillaEdit_UsePopUp(ScintillaEdit* self, intptr_t popUpMode); +bool ScintillaEdit_SelectionIsRectangle(const ScintillaEdit* self); +void ScintillaEdit_SetZoom(ScintillaEdit* self, intptr_t zoomInPoints); +intptr_t ScintillaEdit_Zoom(const ScintillaEdit* self); +intptr_t ScintillaEdit_CreateDocument(ScintillaEdit* self, intptr_t bytes, intptr_t documentOptions); +void ScintillaEdit_AddRefDocument(ScintillaEdit* self, intptr_t doc); +void ScintillaEdit_ReleaseDocument(ScintillaEdit* self, intptr_t doc); +intptr_t ScintillaEdit_DocumentOptions(const ScintillaEdit* self); +intptr_t ScintillaEdit_ModEventMask(const ScintillaEdit* self); +void ScintillaEdit_SetCommandEvents(ScintillaEdit* self, bool commandEvents); +bool ScintillaEdit_CommandEvents(const ScintillaEdit* self); +void ScintillaEdit_SetFocus(ScintillaEdit* self, bool focus); +bool ScintillaEdit_Focus(const ScintillaEdit* self); +void ScintillaEdit_SetStatus(ScintillaEdit* self, intptr_t status); +intptr_t ScintillaEdit_Status(const ScintillaEdit* self); +void ScintillaEdit_SetMouseDownCaptures(ScintillaEdit* self, bool captures); +bool ScintillaEdit_MouseDownCaptures(const ScintillaEdit* self); +void ScintillaEdit_SetMouseWheelCaptures(ScintillaEdit* self, bool captures); +bool ScintillaEdit_MouseWheelCaptures(const ScintillaEdit* self); +void ScintillaEdit_SetCursor(ScintillaEdit* self, intptr_t cursorType); +intptr_t ScintillaEdit_Cursor(const ScintillaEdit* self); +void ScintillaEdit_SetControlCharSymbol(ScintillaEdit* self, intptr_t symbol); +intptr_t ScintillaEdit_ControlCharSymbol(const ScintillaEdit* self); +void ScintillaEdit_WordPartLeft(ScintillaEdit* self); +void ScintillaEdit_WordPartLeftExtend(ScintillaEdit* self); +void ScintillaEdit_WordPartRight(ScintillaEdit* self); +void ScintillaEdit_WordPartRightExtend(ScintillaEdit* self); +void ScintillaEdit_SetVisiblePolicy(ScintillaEdit* self, intptr_t visiblePolicy, intptr_t visibleSlop); +void ScintillaEdit_DelLineLeft(ScintillaEdit* self); +void ScintillaEdit_DelLineRight(ScintillaEdit* self); +void ScintillaEdit_SetXOffset(ScintillaEdit* self, intptr_t xOffset); +intptr_t ScintillaEdit_XOffset(const ScintillaEdit* self); +void ScintillaEdit_ChooseCaretX(ScintillaEdit* self); +void ScintillaEdit_GrabFocus(ScintillaEdit* self); +void ScintillaEdit_SetXCaretPolicy(ScintillaEdit* self, intptr_t caretPolicy, intptr_t caretSlop); +void ScintillaEdit_SetYCaretPolicy(ScintillaEdit* self, intptr_t caretPolicy, intptr_t caretSlop); +void ScintillaEdit_SetPrintWrapMode(ScintillaEdit* self, intptr_t wrapMode); +intptr_t ScintillaEdit_PrintWrapMode(const ScintillaEdit* self); +void ScintillaEdit_SetHotspotActiveFore(ScintillaEdit* self, bool useSetting, intptr_t fore); +intptr_t ScintillaEdit_HotspotActiveFore(const ScintillaEdit* self); +void ScintillaEdit_SetHotspotActiveBack(ScintillaEdit* self, bool useSetting, intptr_t back); +intptr_t ScintillaEdit_HotspotActiveBack(const ScintillaEdit* self); +void ScintillaEdit_SetHotspotActiveUnderline(ScintillaEdit* self, bool underline); +bool ScintillaEdit_HotspotActiveUnderline(const ScintillaEdit* self); +void ScintillaEdit_SetHotspotSingleLine(ScintillaEdit* self, bool singleLine); +bool ScintillaEdit_HotspotSingleLine(const ScintillaEdit* self); +void ScintillaEdit_ParaDown(ScintillaEdit* self); +void ScintillaEdit_ParaDownExtend(ScintillaEdit* self); +void ScintillaEdit_ParaUp(ScintillaEdit* self); +void ScintillaEdit_ParaUpExtend(ScintillaEdit* self); +intptr_t ScintillaEdit_PositionBefore(ScintillaEdit* self, intptr_t pos); +intptr_t ScintillaEdit_PositionAfter(ScintillaEdit* self, intptr_t pos); +intptr_t ScintillaEdit_PositionRelative(ScintillaEdit* self, intptr_t pos, intptr_t relative); +intptr_t ScintillaEdit_PositionRelativeCodeUnits(ScintillaEdit* self, intptr_t pos, intptr_t relative); +void ScintillaEdit_CopyRange(ScintillaEdit* self, intptr_t start, intptr_t end); +void ScintillaEdit_CopyText(ScintillaEdit* self, intptr_t length, const char* text); +void ScintillaEdit_SetSelectionMode(ScintillaEdit* self, intptr_t selectionMode); +void ScintillaEdit_ChangeSelectionMode(ScintillaEdit* self, intptr_t selectionMode); +intptr_t ScintillaEdit_SelectionMode(const ScintillaEdit* self); +void ScintillaEdit_SetMoveExtendsSelection(ScintillaEdit* self, bool moveExtendsSelection); +bool ScintillaEdit_MoveExtendsSelection(const ScintillaEdit* self); +intptr_t ScintillaEdit_GetLineSelStartPosition(ScintillaEdit* self, intptr_t line); +intptr_t ScintillaEdit_GetLineSelEndPosition(ScintillaEdit* self, intptr_t line); +void ScintillaEdit_LineDownRectExtend(ScintillaEdit* self); +void ScintillaEdit_LineUpRectExtend(ScintillaEdit* self); +void ScintillaEdit_CharLeftRectExtend(ScintillaEdit* self); +void ScintillaEdit_CharRightRectExtend(ScintillaEdit* self); +void ScintillaEdit_HomeRectExtend(ScintillaEdit* self); +void ScintillaEdit_VCHomeRectExtend(ScintillaEdit* self); +void ScintillaEdit_LineEndRectExtend(ScintillaEdit* self); +void ScintillaEdit_PageUpRectExtend(ScintillaEdit* self); +void ScintillaEdit_PageDownRectExtend(ScintillaEdit* self); +void ScintillaEdit_StutteredPageUp(ScintillaEdit* self); +void ScintillaEdit_StutteredPageUpExtend(ScintillaEdit* self); +void ScintillaEdit_StutteredPageDown(ScintillaEdit* self); +void ScintillaEdit_StutteredPageDownExtend(ScintillaEdit* self); +void ScintillaEdit_WordLeftEnd(ScintillaEdit* self); +void ScintillaEdit_WordLeftEndExtend(ScintillaEdit* self); +void ScintillaEdit_WordRightEnd(ScintillaEdit* self); +void ScintillaEdit_WordRightEndExtend(ScintillaEdit* self); +void ScintillaEdit_SetWhitespaceChars(ScintillaEdit* self, const char* characters); +struct miqt_string ScintillaEdit_WhitespaceChars(const ScintillaEdit* self); +void ScintillaEdit_SetPunctuationChars(ScintillaEdit* self, const char* characters); +struct miqt_string ScintillaEdit_PunctuationChars(const ScintillaEdit* self); +void ScintillaEdit_SetCharsDefault(ScintillaEdit* self); +intptr_t ScintillaEdit_AutoCCurrent(const ScintillaEdit* self); +struct miqt_string ScintillaEdit_AutoCCurrentText(const ScintillaEdit* self); +void ScintillaEdit_AutoCSetCaseInsensitiveBehaviour(ScintillaEdit* self, intptr_t behaviour); +intptr_t ScintillaEdit_AutoCCaseInsensitiveBehaviour(const ScintillaEdit* self); +void ScintillaEdit_AutoCSetMulti(ScintillaEdit* self, intptr_t multi); +intptr_t ScintillaEdit_AutoCMulti(const ScintillaEdit* self); +void ScintillaEdit_AutoCSetOrder(ScintillaEdit* self, intptr_t order); +intptr_t ScintillaEdit_AutoCOrder(const ScintillaEdit* self); +void ScintillaEdit_Allocate(ScintillaEdit* self, intptr_t bytes); +struct miqt_string ScintillaEdit_TargetAsUTF8(ScintillaEdit* self); +void ScintillaEdit_SetLengthForEncode(ScintillaEdit* self, intptr_t bytes); +struct miqt_string ScintillaEdit_EncodedFromUTF8(ScintillaEdit* self, const char* utf8); +intptr_t ScintillaEdit_FindColumn(ScintillaEdit* self, intptr_t line, intptr_t column); +intptr_t ScintillaEdit_CaretSticky(const ScintillaEdit* self); +void ScintillaEdit_SetCaretSticky(ScintillaEdit* self, intptr_t useCaretStickyBehaviour); +void ScintillaEdit_ToggleCaretSticky(ScintillaEdit* self); +void ScintillaEdit_SetPasteConvertEndings(ScintillaEdit* self, bool convert); +bool ScintillaEdit_PasteConvertEndings(const ScintillaEdit* self); +void ScintillaEdit_ReplaceRectangular(ScintillaEdit* self, intptr_t length, const char* text); +void ScintillaEdit_SelectionDuplicate(ScintillaEdit* self); +void ScintillaEdit_SetCaretLineBackAlpha(ScintillaEdit* self, intptr_t alpha); +intptr_t ScintillaEdit_CaretLineBackAlpha(const ScintillaEdit* self); +void ScintillaEdit_SetCaretStyle(ScintillaEdit* self, intptr_t caretStyle); +intptr_t ScintillaEdit_CaretStyle(const ScintillaEdit* self); +void ScintillaEdit_SetIndicatorCurrent(ScintillaEdit* self, intptr_t indicator); +intptr_t ScintillaEdit_IndicatorCurrent(const ScintillaEdit* self); +void ScintillaEdit_SetIndicatorValue(ScintillaEdit* self, intptr_t value); +intptr_t ScintillaEdit_IndicatorValue(const ScintillaEdit* self); +void ScintillaEdit_IndicatorFillRange(ScintillaEdit* self, intptr_t start, intptr_t lengthFill); +void ScintillaEdit_IndicatorClearRange(ScintillaEdit* self, intptr_t start, intptr_t lengthClear); +intptr_t ScintillaEdit_IndicatorAllOnFor(ScintillaEdit* self, intptr_t pos); +intptr_t ScintillaEdit_IndicatorValueAt(ScintillaEdit* self, intptr_t indicator, intptr_t pos); +intptr_t ScintillaEdit_IndicatorStart(ScintillaEdit* self, intptr_t indicator, intptr_t pos); +intptr_t ScintillaEdit_IndicatorEnd(ScintillaEdit* self, intptr_t indicator, intptr_t pos); +void ScintillaEdit_SetPositionCache(ScintillaEdit* self, intptr_t size); +intptr_t ScintillaEdit_PositionCache(const ScintillaEdit* self); +void ScintillaEdit_SetLayoutThreads(ScintillaEdit* self, intptr_t threads); +intptr_t ScintillaEdit_LayoutThreads(const ScintillaEdit* self); +void ScintillaEdit_CopyAllowLine(ScintillaEdit* self); +void ScintillaEdit_CutAllowLine(ScintillaEdit* self); +void ScintillaEdit_SetCopySeparator(ScintillaEdit* self, const char* separator); +struct miqt_string ScintillaEdit_CopySeparator(const ScintillaEdit* self); +intptr_t ScintillaEdit_CharacterPointer(const ScintillaEdit* self); +intptr_t ScintillaEdit_RangePointer(const ScintillaEdit* self, intptr_t start, intptr_t lengthRange); +intptr_t ScintillaEdit_GapPosition(const ScintillaEdit* self); +void ScintillaEdit_IndicSetAlpha(ScintillaEdit* self, intptr_t indicator, intptr_t alpha); +intptr_t ScintillaEdit_IndicAlpha(const ScintillaEdit* self, intptr_t indicator); +void ScintillaEdit_IndicSetOutlineAlpha(ScintillaEdit* self, intptr_t indicator, intptr_t alpha); +intptr_t ScintillaEdit_IndicOutlineAlpha(const ScintillaEdit* self, intptr_t indicator); +void ScintillaEdit_SetExtraAscent(ScintillaEdit* self, intptr_t extraAscent); +intptr_t ScintillaEdit_ExtraAscent(const ScintillaEdit* self); +void ScintillaEdit_SetExtraDescent(ScintillaEdit* self, intptr_t extraDescent); +intptr_t ScintillaEdit_ExtraDescent(const ScintillaEdit* self); +intptr_t ScintillaEdit_MarkerSymbolDefined(ScintillaEdit* self, intptr_t markerNumber); +void ScintillaEdit_MarginSetText(ScintillaEdit* self, intptr_t line, const char* text); +struct miqt_string ScintillaEdit_MarginText(const ScintillaEdit* self, intptr_t line); +void ScintillaEdit_MarginSetStyle(ScintillaEdit* self, intptr_t line, intptr_t style); +intptr_t ScintillaEdit_MarginStyle(const ScintillaEdit* self, intptr_t line); +void ScintillaEdit_MarginSetStyles(ScintillaEdit* self, intptr_t line, const char* styles); +struct miqt_string ScintillaEdit_MarginStyles(const ScintillaEdit* self, intptr_t line); +void ScintillaEdit_MarginTextClearAll(ScintillaEdit* self); +void ScintillaEdit_MarginSetStyleOffset(ScintillaEdit* self, intptr_t style); +intptr_t ScintillaEdit_MarginStyleOffset(const ScintillaEdit* self); +void ScintillaEdit_SetMarginOptions(ScintillaEdit* self, intptr_t marginOptions); +intptr_t ScintillaEdit_MarginOptions(const ScintillaEdit* self); +void ScintillaEdit_AnnotationSetText(ScintillaEdit* self, intptr_t line, const char* text); +struct miqt_string ScintillaEdit_AnnotationText(const ScintillaEdit* self, intptr_t line); +void ScintillaEdit_AnnotationSetStyle(ScintillaEdit* self, intptr_t line, intptr_t style); +intptr_t ScintillaEdit_AnnotationStyle(const ScintillaEdit* self, intptr_t line); +void ScintillaEdit_AnnotationSetStyles(ScintillaEdit* self, intptr_t line, const char* styles); +struct miqt_string ScintillaEdit_AnnotationStyles(const ScintillaEdit* self, intptr_t line); +intptr_t ScintillaEdit_AnnotationLines(const ScintillaEdit* self, intptr_t line); +void ScintillaEdit_AnnotationClearAll(ScintillaEdit* self); +void ScintillaEdit_AnnotationSetVisible(ScintillaEdit* self, intptr_t visible); +intptr_t ScintillaEdit_AnnotationVisible(const ScintillaEdit* self); +void ScintillaEdit_AnnotationSetStyleOffset(ScintillaEdit* self, intptr_t style); +intptr_t ScintillaEdit_AnnotationStyleOffset(const ScintillaEdit* self); +void ScintillaEdit_ReleaseAllExtendedStyles(ScintillaEdit* self); +intptr_t ScintillaEdit_AllocateExtendedStyles(ScintillaEdit* self, intptr_t numberStyles); +void ScintillaEdit_AddUndoAction(ScintillaEdit* self, intptr_t token, intptr_t flags); +intptr_t ScintillaEdit_CharPositionFromPoint(ScintillaEdit* self, intptr_t x, intptr_t y); +intptr_t ScintillaEdit_CharPositionFromPointClose(ScintillaEdit* self, intptr_t x, intptr_t y); +void ScintillaEdit_SetMouseSelectionRectangularSwitch(ScintillaEdit* self, bool mouseSelectionRectangularSwitch); +bool ScintillaEdit_MouseSelectionRectangularSwitch(const ScintillaEdit* self); +void ScintillaEdit_SetMultipleSelection(ScintillaEdit* self, bool multipleSelection); +bool ScintillaEdit_MultipleSelection(const ScintillaEdit* self); +void ScintillaEdit_SetAdditionalSelectionTyping(ScintillaEdit* self, bool additionalSelectionTyping); +bool ScintillaEdit_AdditionalSelectionTyping(const ScintillaEdit* self); +void ScintillaEdit_SetAdditionalCaretsBlink(ScintillaEdit* self, bool additionalCaretsBlink); +bool ScintillaEdit_AdditionalCaretsBlink(const ScintillaEdit* self); +void ScintillaEdit_SetAdditionalCaretsVisible(ScintillaEdit* self, bool additionalCaretsVisible); +bool ScintillaEdit_AdditionalCaretsVisible(const ScintillaEdit* self); +intptr_t ScintillaEdit_Selections(const ScintillaEdit* self); +bool ScintillaEdit_SelectionEmpty(const ScintillaEdit* self); +void ScintillaEdit_ClearSelections(ScintillaEdit* self); +void ScintillaEdit_SetSelection(ScintillaEdit* self, intptr_t caret, intptr_t anchor); +void ScintillaEdit_AddSelection(ScintillaEdit* self, intptr_t caret, intptr_t anchor); +intptr_t ScintillaEdit_SelectionFromPoint(ScintillaEdit* self, intptr_t x, intptr_t y); +void ScintillaEdit_DropSelectionN(ScintillaEdit* self, intptr_t selection); +void ScintillaEdit_SetMainSelection(ScintillaEdit* self, intptr_t selection); +intptr_t ScintillaEdit_MainSelection(const ScintillaEdit* self); +void ScintillaEdit_SetSelectionNCaret(ScintillaEdit* self, intptr_t selection, intptr_t caret); +intptr_t ScintillaEdit_SelectionNCaret(const ScintillaEdit* self, intptr_t selection); +void ScintillaEdit_SetSelectionNAnchor(ScintillaEdit* self, intptr_t selection, intptr_t anchor); +intptr_t ScintillaEdit_SelectionNAnchor(const ScintillaEdit* self, intptr_t selection); +void ScintillaEdit_SetSelectionNCaretVirtualSpace(ScintillaEdit* self, intptr_t selection, intptr_t space); +intptr_t ScintillaEdit_SelectionNCaretVirtualSpace(const ScintillaEdit* self, intptr_t selection); +void ScintillaEdit_SetSelectionNAnchorVirtualSpace(ScintillaEdit* self, intptr_t selection, intptr_t space); +intptr_t ScintillaEdit_SelectionNAnchorVirtualSpace(const ScintillaEdit* self, intptr_t selection); +void ScintillaEdit_SetSelectionNStart(ScintillaEdit* self, intptr_t selection, intptr_t anchor); +intptr_t ScintillaEdit_SelectionNStart(const ScintillaEdit* self, intptr_t selection); +intptr_t ScintillaEdit_SelectionNStartVirtualSpace(const ScintillaEdit* self, intptr_t selection); +void ScintillaEdit_SetSelectionNEnd(ScintillaEdit* self, intptr_t selection, intptr_t caret); +intptr_t ScintillaEdit_SelectionNEndVirtualSpace(const ScintillaEdit* self, intptr_t selection); +intptr_t ScintillaEdit_SelectionNEnd(const ScintillaEdit* self, intptr_t selection); +void ScintillaEdit_SetRectangularSelectionCaret(ScintillaEdit* self, intptr_t caret); +intptr_t ScintillaEdit_RectangularSelectionCaret(const ScintillaEdit* self); +void ScintillaEdit_SetRectangularSelectionAnchor(ScintillaEdit* self, intptr_t anchor); +intptr_t ScintillaEdit_RectangularSelectionAnchor(const ScintillaEdit* self); +void ScintillaEdit_SetRectangularSelectionCaretVirtualSpace(ScintillaEdit* self, intptr_t space); +intptr_t ScintillaEdit_RectangularSelectionCaretVirtualSpace(const ScintillaEdit* self); +void ScintillaEdit_SetRectangularSelectionAnchorVirtualSpace(ScintillaEdit* self, intptr_t space); +intptr_t ScintillaEdit_RectangularSelectionAnchorVirtualSpace(const ScintillaEdit* self); +void ScintillaEdit_SetVirtualSpaceOptions(ScintillaEdit* self, intptr_t virtualSpaceOptions); +intptr_t ScintillaEdit_VirtualSpaceOptions(const ScintillaEdit* self); +void ScintillaEdit_SetRectangularSelectionModifier(ScintillaEdit* self, intptr_t modifier); +intptr_t ScintillaEdit_RectangularSelectionModifier(const ScintillaEdit* self); +void ScintillaEdit_SetAdditionalSelFore(ScintillaEdit* self, intptr_t fore); +void ScintillaEdit_SetAdditionalSelBack(ScintillaEdit* self, intptr_t back); +void ScintillaEdit_SetAdditionalSelAlpha(ScintillaEdit* self, intptr_t alpha); +intptr_t ScintillaEdit_AdditionalSelAlpha(const ScintillaEdit* self); +void ScintillaEdit_SetAdditionalCaretFore(ScintillaEdit* self, intptr_t fore); +intptr_t ScintillaEdit_AdditionalCaretFore(const ScintillaEdit* self); +void ScintillaEdit_RotateSelection(ScintillaEdit* self); +void ScintillaEdit_SwapMainAnchorCaret(ScintillaEdit* self); +void ScintillaEdit_MultipleSelectAddNext(ScintillaEdit* self); +void ScintillaEdit_MultipleSelectAddEach(ScintillaEdit* self); +intptr_t ScintillaEdit_ChangeLexerState(ScintillaEdit* self, intptr_t start, intptr_t end); +intptr_t ScintillaEdit_ContractedFoldNext(ScintillaEdit* self, intptr_t lineStart); +void ScintillaEdit_VerticalCentreCaret(ScintillaEdit* self); +void ScintillaEdit_MoveSelectedLinesUp(ScintillaEdit* self); +void ScintillaEdit_MoveSelectedLinesDown(ScintillaEdit* self); +void ScintillaEdit_SetIdentifier(ScintillaEdit* self, intptr_t identifier); +intptr_t ScintillaEdit_Identifier(const ScintillaEdit* self); +void ScintillaEdit_RGBAImageSetWidth(ScintillaEdit* self, intptr_t width); +void ScintillaEdit_RGBAImageSetHeight(ScintillaEdit* self, intptr_t height); +void ScintillaEdit_RGBAImageSetScale(ScintillaEdit* self, intptr_t scalePercent); +void ScintillaEdit_MarkerDefineRGBAImage(ScintillaEdit* self, intptr_t markerNumber, const char* pixels); +void ScintillaEdit_RegisterRGBAImage(ScintillaEdit* self, intptr_t typeVal, const char* pixels); +void ScintillaEdit_ScrollToStart(ScintillaEdit* self); +void ScintillaEdit_ScrollToEnd(ScintillaEdit* self); +void ScintillaEdit_SetTechnology(ScintillaEdit* self, intptr_t technology); +intptr_t ScintillaEdit_Technology(const ScintillaEdit* self); +intptr_t ScintillaEdit_CreateLoader(ScintillaEdit* self, intptr_t bytes, intptr_t documentOptions); +void ScintillaEdit_FindIndicatorShow(ScintillaEdit* self, intptr_t start, intptr_t end); +void ScintillaEdit_FindIndicatorFlash(ScintillaEdit* self, intptr_t start, intptr_t end); +void ScintillaEdit_FindIndicatorHide(ScintillaEdit* self); +void ScintillaEdit_VCHomeDisplay(ScintillaEdit* self); +void ScintillaEdit_VCHomeDisplayExtend(ScintillaEdit* self); +bool ScintillaEdit_CaretLineVisibleAlways(const ScintillaEdit* self); +void ScintillaEdit_SetCaretLineVisibleAlways(ScintillaEdit* self, bool alwaysVisible); +void ScintillaEdit_SetLineEndTypesAllowed(ScintillaEdit* self, intptr_t lineEndBitSet); +intptr_t ScintillaEdit_LineEndTypesAllowed(const ScintillaEdit* self); +intptr_t ScintillaEdit_LineEndTypesActive(const ScintillaEdit* self); +void ScintillaEdit_SetRepresentation(ScintillaEdit* self, const char* encodedCharacter, const char* representation); +struct miqt_string ScintillaEdit_Representation(const ScintillaEdit* self, const char* encodedCharacter); +void ScintillaEdit_ClearRepresentation(ScintillaEdit* self, const char* encodedCharacter); +void ScintillaEdit_ClearAllRepresentations(ScintillaEdit* self); +void ScintillaEdit_SetRepresentationAppearance(ScintillaEdit* self, const char* encodedCharacter, intptr_t appearance); +intptr_t ScintillaEdit_RepresentationAppearance(const ScintillaEdit* self, const char* encodedCharacter); +void ScintillaEdit_SetRepresentationColour(ScintillaEdit* self, const char* encodedCharacter, intptr_t colour); +intptr_t ScintillaEdit_RepresentationColour(const ScintillaEdit* self, const char* encodedCharacter); +void ScintillaEdit_EOLAnnotationSetText(ScintillaEdit* self, intptr_t line, const char* text); +struct miqt_string ScintillaEdit_EOLAnnotationText(const ScintillaEdit* self, intptr_t line); +void ScintillaEdit_EOLAnnotationSetStyle(ScintillaEdit* self, intptr_t line, intptr_t style); +intptr_t ScintillaEdit_EOLAnnotationStyle(const ScintillaEdit* self, intptr_t line); +void ScintillaEdit_EOLAnnotationClearAll(ScintillaEdit* self); +void ScintillaEdit_EOLAnnotationSetVisible(ScintillaEdit* self, intptr_t visible); +intptr_t ScintillaEdit_EOLAnnotationVisible(const ScintillaEdit* self); +void ScintillaEdit_EOLAnnotationSetStyleOffset(ScintillaEdit* self, intptr_t style); +intptr_t ScintillaEdit_EOLAnnotationStyleOffset(const ScintillaEdit* self); +bool ScintillaEdit_SupportsFeature(const ScintillaEdit* self, intptr_t feature); +intptr_t ScintillaEdit_LineCharacterIndex(const ScintillaEdit* self); +void ScintillaEdit_AllocateLineCharacterIndex(ScintillaEdit* self, intptr_t lineCharacterIndex); +void ScintillaEdit_ReleaseLineCharacterIndex(ScintillaEdit* self, intptr_t lineCharacterIndex); +intptr_t ScintillaEdit_LineFromIndexPosition(ScintillaEdit* self, intptr_t pos, intptr_t lineCharacterIndex); +intptr_t ScintillaEdit_IndexPositionFromLine(ScintillaEdit* self, intptr_t line, intptr_t lineCharacterIndex); +void ScintillaEdit_StartRecord(ScintillaEdit* self); +void ScintillaEdit_StopRecord(ScintillaEdit* self); +intptr_t ScintillaEdit_Lexer(const ScintillaEdit* self); +void ScintillaEdit_Colourise(ScintillaEdit* self, intptr_t start, intptr_t end); +void ScintillaEdit_SetProperty(ScintillaEdit* self, const char* key, const char* value); +void ScintillaEdit_SetKeyWords(ScintillaEdit* self, intptr_t keyWordSet, const char* keyWords); +struct miqt_string ScintillaEdit_Property(const ScintillaEdit* self, const char* key); +struct miqt_string ScintillaEdit_PropertyExpanded(const ScintillaEdit* self, const char* key); +intptr_t ScintillaEdit_PropertyInt(const ScintillaEdit* self, const char* key, intptr_t defaultValue); +struct miqt_string ScintillaEdit_LexerLanguage(const ScintillaEdit* self); +intptr_t ScintillaEdit_PrivateLexerCall(ScintillaEdit* self, intptr_t operation, intptr_t pointer); +struct miqt_string ScintillaEdit_PropertyNames(ScintillaEdit* self); +intptr_t ScintillaEdit_PropertyType(ScintillaEdit* self, const char* name); +struct miqt_string ScintillaEdit_DescribeProperty(ScintillaEdit* self, const char* name); +struct miqt_string ScintillaEdit_DescribeKeyWordSets(ScintillaEdit* self); +intptr_t ScintillaEdit_LineEndTypesSupported(const ScintillaEdit* self); +intptr_t ScintillaEdit_AllocateSubStyles(ScintillaEdit* self, intptr_t styleBase, intptr_t numberStyles); +intptr_t ScintillaEdit_SubStylesStart(const ScintillaEdit* self, intptr_t styleBase); +intptr_t ScintillaEdit_SubStylesLength(const ScintillaEdit* self, intptr_t styleBase); +intptr_t ScintillaEdit_StyleFromSubStyle(const ScintillaEdit* self, intptr_t subStyle); +intptr_t ScintillaEdit_PrimaryStyleFromStyle(const ScintillaEdit* self, intptr_t style); +void ScintillaEdit_FreeSubStyles(ScintillaEdit* self); +void ScintillaEdit_SetIdentifiers(ScintillaEdit* self, intptr_t style, const char* identifiers); +intptr_t ScintillaEdit_DistanceToSecondaryStyles(const ScintillaEdit* self); +struct miqt_string ScintillaEdit_SubStyleBases(const ScintillaEdit* self); +intptr_t ScintillaEdit_NamedStyles(const ScintillaEdit* self); +struct miqt_string ScintillaEdit_NameOfStyle(ScintillaEdit* self, intptr_t style); +struct miqt_string ScintillaEdit_TagsOfStyle(ScintillaEdit* self, intptr_t style); +struct miqt_string ScintillaEdit_DescriptionOfStyle(ScintillaEdit* self, intptr_t style); +void ScintillaEdit_SetILexer(ScintillaEdit* self, intptr_t ilexer); +intptr_t ScintillaEdit_Bidirectional(const ScintillaEdit* self); +void ScintillaEdit_SetBidirectional(ScintillaEdit* self, intptr_t bidirectional); +struct miqt_string ScintillaEdit_Tr2(const char* s, const char* c); +struct miqt_string ScintillaEdit_Tr3(const char* s, const char* c, int n); +struct miqt_string ScintillaEdit_TrUtf82(const char* s, const char* c); +struct miqt_string ScintillaEdit_TrUtf83(const char* s, const char* c, int n); +void ScintillaEdit_Delete(ScintillaEdit* self); + +#ifdef __cplusplus +} /* extern C */ +#endif + +#endif From 095972c0572bd54db3e37b687d3239db1f301c4f Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 20 Oct 2024 18:02:27 +1300 Subject: [PATCH 11/12] scintillaedit: add example --- .gitignore | 1 + .../libraries/extras-scintillaedit/main.go | 21 ++++++++++++++++++ .../extras-scintillaedit/scintillaedit.png | Bin 0 -> 8405 bytes 3 files changed, 22 insertions(+) create mode 100644 examples/libraries/extras-scintillaedit/main.go create mode 100644 examples/libraries/extras-scintillaedit/scintillaedit.png diff --git a/.gitignore b/.gitignore index 0202edfa..d6254204 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,7 @@ examples/uidesigner/uidesigner examples/uidesigner/uidesigner.exe examples/libraries/qt-qprintsupport/qt-qprintsupport examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla +examples/libraries/extras-scintillaedit/extras-scintillaedit # android temporary build files android-build diff --git a/examples/libraries/extras-scintillaedit/main.go b/examples/libraries/extras-scintillaedit/main.go new file mode 100644 index 00000000..f99fffdb --- /dev/null +++ b/examples/libraries/extras-scintillaedit/main.go @@ -0,0 +1,21 @@ +package main + +import ( + "os" + + "github.com/mappu/miqt/qt" + "github.com/mappu/miqt/qt-extras/scintillaedit" +) + +// n.b. May need LD_LIBRARY_PATH= env var set to find the necessary .so file + +func main() { + + qt.NewQApplication(os.Args) + + area := scintillaedit.NewScintillaEdit() + area.SetFixedSize2(640, 480) + area.Show() + + qt.QApplication_Exec() +} diff --git a/examples/libraries/extras-scintillaedit/scintillaedit.png b/examples/libraries/extras-scintillaedit/scintillaedit.png new file mode 100644 index 0000000000000000000000000000000000000000..c91ce3ec27caf7cb9079a677d1cc6bd6de2d7ed3 GIT binary patch literal 8405 zcmeHNd011|wg*K~yntu{1p!-IsUU+g$`q|KC?F0cgaiy~H9){LWhRgySOpQVRiTVg z5m1sqkWr?95@-#C0w%~9Bn@*20YXTC*5_EC#TXP`^rBs zRMD1`+k5NeiDO?!_H&1#?q3LtZ9@kT3K#~S2f%~<50Ae6^z-&_(%V1(eDjVcp3t({ z#4ope<+=C!9cqb>D?jN{GV=cm=JjVc?7!Lf4c^TKvTy6#e#yHdm0XbT>1sHRMQiBM ze`N+ce9!J)R0CbK2SNMo^sZJbE8&Yy@Uf8G-1R&~kC33;bKrd8 z>h1T>Hful6{}hUe4>LU$J&0~=U;=vEwQvbr`<+yovEpRL)HWRuc6IuaXicWpQpro; z({PuxleA*~TPCC5g{$+_3_)LIK(Nxr^#)=v&>)UvL++wi%=XxV*?t6T?%F0x3yU@A zL0o%j@4(_@4;&?Hi^0YUpo|c~SC(32rCukS9;g)rr9Zn#uTbdJDtgG&?!VJfK^<$US?h5P}`RmZhhsvxwEJNLJ8Cs>>$o{2L6e z=F8`A%HOK}&JBr2fZ0dcO$5^vlgOzz&rnI6>IMsDe}65G_~M1AS`3p|DE)Auv# zp)o-W^bA?_Rj=;CUfJ0A>EkeuyZ{o$D$e@hJoKiuV?BINWQ>|;=vW3TozldjbJmvV zbo$1HY2L2({{H^q0GTEGD9uaW6+Y&^6~5*d)azuLW~~zahY)GG-bSjXfh%##UyUZe zmadene&1kAS!USXd?7hJ*|E*B$8o@s?Ktf? zm#+T>3!E1_g!0G<(0P-|m@i#nyG_-7=EhELH_^*sVO_8*%c-fUujXmD+U8eMe@59J zP6sVLgDyiB;m5ycrI1Pd!$UFxf(;d!5|TPzaHl8ZZKXwdW`&h??qURPynk-RKfTSe^D zWR1Zj0N?6d@05+JEk$&f3||}u%4#?gjF~K&EWk^0Wu|ed$zw1UBiA@5^uFE=1>7r&b{a@A;R>tgQ zo-tA01tl|E0|jnieg%y0wi%u9c0Lb=ro0ihQmfEw@iaME@V72;LLh&Xc8Cv;lxKF~$q+Y6$HE4~c}{rn>~Jr%woaLjhs z8(rI_EgUgGAx*;`n)ppuWpsyt`qHao69>SnP?mx$MwRu5J&%=XPB9)nUuk);ZG!tN ztUQ~c81JKcUA4$&EsFPQA?N&e)MIzjFlZ`QdGl?C#SpA}DkVE2kdJhf4Yl{>(s~Y~ z#lOW~gDAL$Q1?*UF8pnZH^M$RNpB6TT;9{DCi6!tLgvld&~V`P-ZB+9xiz2i8ey5J zuk=$Nj(m-`wNp_SmNgbTowb;Pf@f<;BF{n@f;WWGP>y(Z@fD2cl8lG=?j#P};;7Eg z8;+?jxL*P6x12#h5GtWXaTisY%ir)%Vp!e9<>d=aV`F1zv?<@*_xM((zE#jE+_z%q zo*&xWTzDYS{ZQ7cWVkw!MVWLCpbwUEx0kzCbp>91^@6fYkLdY6#CYf# zd}Y$C^HlX97QvsdCr}$mENhCa` z{Y*k-j8gBbeD(a@1V5dZxf`7JL)eqGo3)8$FwNn6r*qKfY{WH5liSAgGMM(?BKs?T z%X?EfUlz)Htk{!bl66nlr#=XhP-zKvB=k+N+(D~nkLz?6Gp4&Qrwx16LEIvaE7s4n@8a3;PW;;+z4a0kkVDB+F7x7Pq9Gzd~Yo$fR=^n z&MGO%RbnzzpHcNHAQs3~qZ&@tD620&&E6pwJvQDQ(ur~>^p==l{TyBd2J;W8+AX@M zJ_^Z6+EhicsP>*|J+-6NMkN`NF71u;iuFlRN-FJ)S2mFz4U+W%4KX{z8!5+GXm% zXe_8!RApWe5^b|Mm*0Ko-qiwp5GLSOP0ZXo=j1f$YsZk=tbJIz@5&HQlV=N(4q{l3 zZWSfD8&UbFSTu%TX4L^V^&>9{1a=F9+o*Wh9)v3f(aG6VW*veNJA-~mwXrmQm6bc@ z6YcFm2IHmtE3}@i_XfHzI_vuG>8U43+l2+*8}Vy{jPi$Tj?*PAfd{Kci8r?}r@Tw% zRc|8}pve2F)cyMD>n>Qoj@XjOSdGHhd=p5H{bzEMyCFQ%MV>f2{#<69IQ=Uks zdh>uSgw5ee87Xvfmc?6fa+|L*O*~}&XncHtj?EjqRsP!2&H#$m$8!TaH%~8kG6}AM#*PvCy(AWRdaKM9|!E729*fEQ`5D zeg{hP2WSJfGghdHFiD;^fQtk8dX;LA`AtuzE>CSjuGZ-u>+R)*Ob*g|zR2*sP#-fk zPCwwl>KFLNVppH5duSknam)FzXgU%6gBPY=ATa>NTVN-89j=67+LG+M>dKp;yy-s4 zJge{(5FDh)?>swKPOpvVEygr%;XEKP7wdT*#<_;T?2W2Wi6AobCX)S!2=Nwq`z%%V zs~D(UGi?^Xe1IsxEzi|dTxRurOl57WHECzA=7odwH+eCyc?I_n_^kaF)rGE-&};lgP3&`{Six<=Z5EGMPC1h! zxv%u@C)%r+=z?wPIUD0ol*LW!vfyV`J^n zM~?0Z5sYgl*O6QLdTS~^8}{^Ox!E36(-UNlD(QW%&=@C(f@v2yYNl;aulsYUL9&)0Doyb)c8XE7m4f;wtqH z36nfx3-y_wEfxEbQu?i7(ajkqT656n*2%lmW++qBEH``ys1yKd>L9woFJ=1bEiIW( ze8gc%Vt!Apvi7ttrryMO)6)x-nR&yh&C>#0>^(mV z%cIv_)dCpsI-v@)=32-s$7?AjW<1F(I^KewbInkiC4C*`)vG)f`D?FOd5B8$2#zYW z4%wZt{h)W%<7L&6#J4qH`}NH~prTd3fUvdtwQ;7D<*>451tbpcQE&2@4ZW%r@4PCa z_Aw$^`kmJ0%X`p7{y5`DTq|=Mv*xN*>Y0K`j>In|EcjGJ z3^%@FkyyA`UfSU{fU*PGNA%(g5W4lB+RryE^l&vJo`^yU3$iIYd&|QGKDws&{YbOh zN3sWkLT8q2d8f`7bsjWUPNYmp7AQ3(iFJ`Tuq~Hj+y;&I8f!kKf9^!o30d7rO?VDW zW=h&%5^sdv-Zq{Fhx2B>IT5^iFo_lN9n86QtbaPZ#_dz%or#Lk z)bX???Nj7d-_4`bcUU-@S*NN2WMw6K^g2Xsi0?U$mC5uW0we%dNZRJ zg4&8PCaO>n;d>7}BuxkvFuV%V@ch2jLx>{hbka=JeB8U}!1W`hc4o@F-w<W{<_32Q1a z-%cV7?nVQbdeC}`$0!9E z*>AQv+^nT)5V<76KbbZ15C*Z&!@B!R+yjPMXDb>p=h580)((J>j1@&J*FaYLr@ESD zoOVCtmi-@2$?*&s1yxu-nQR3nzO32r&yf2zPp^uqXS%;~NL7$)n%E1Gm)iw!5s!wg zU^%%ZKl1GM(s*?_IpE|iFQ-88+a%`~q<{=2Dgjcb!w^L^5+IE`yN4*+*$5_YkTcC` z&SF)eW;=Qvk+L>RK-_s~;J*e$WJ0q|ta!0^8}N8t(^23U4`{Zz4>ZxGoIHQNC%fo$ zZuC)yxCog*yp8GK>fh$?(ySyG=cf*&D*o~bk;~0QF~R0E6*%kEGp6k9G!&d(1F ze+oz@Od$EY^L6q+{jid+6PP$Zom1pgJ&+_!R*&$Mk)e{!Nb>?2Rhv;jx&aUXq)aP# zcZ#>5Q1+0g#2oIDS-R_)pUz(J2W{(UGz|ksGX-FoO4&|~-SJn}^7oih+#yXONGj@- z6=Z_`68uJ{hrZ6}eji~OtBPoDn*_lj1Ud&}yJglQqs?(`5v=Mk#V2_J`vwD6vg`4GUD9yH}~yS?%)W za4*!dBcCTPH$!UH(mzDAyhC$R)e38l{$&bxD#A`58Z=|vC}p!Y0)e{^;I@00(pdH7 z(>iH4pu$3y?9A73b|=?<-qb2?ocs~sxYIvxLIR|= zl+(+)TMZwEEy(YAJ2<#U5gm!aV9uv9@7BgqvJ;bgXb@q@2{n%ja5r=n; zJw+b4SaqVvDhA`~O5-_^$8zuHhZX9p$jR**Xx4JyrEiw6_C76}au1K*5t_CMIlKZ4 zoXipbm(P_W;AC*drmvgV6XEW;HUc9Oi9{J|-G0-ggcJIHYRyX9Z*fZ9_2( z=ALCfnd0v54irytFa%<}Zb7R1qt&N+?Oy{SY+99Ik!9LXCXu+m8bD-04`h-@zKio! zWk!a2trotxullnI#gI1=bF}TZwCvCRo=Gas=lu+GtgzEb}jz4UvQG;9jBS;0B-_K{^oZFnjQi;pt- zN9eazcvFWB^NO$32Q*(ls!nV$+4i&IQlqtCMO03?YYAE-;{4Wi2X)0E#x?Hjzhk+l zog-Jbqu4el0LcFKmlFlE8gqOPtbt>NlW*IBi_$sS>1;_tlY6}O7%12&*4iG`>n)ju zlEGcjl@Y?QM^FFsNrnCQJs4Ux3)4NLSRX!7k^i-?h<%llffc;+klN%g*MrCJ6> zMOLf1=$jwzVeTDVM-lJ5QHK*AbF9=c_F_8TxIbmj+j(k=)l!!89HU)#45;8CO&K?XTQe3WZj{ z7-*4iM_2e2HkC_AO;e}K^pL9_NtJ9f|P{+l$_XWy*%HJ%+bXR#ZTCIr{axBND6nX{3g^5p=}s4Kow2piHtfEB|EEmWQ?&BsN44%rhF zH9)AoU!Wrl8UkrprKM0c5i-Z}5nbPM;37&T)Er&`H}`{=+2p7`*Ge}dF=C;YJ?ojq zd6RoJ;5qAcvOLFEjBsD|XN*{|q8g#joq~X}XXQO>(j(Lor(vu!v4>)VyPupynajr5 zo^rjGG*wqDlm(6UyY{Jv0NNYNioZ>v7HlY6{wnbJdPUo*w>Xa=E}3fZr}#HHS(n>P z)G4+!w;uE2L$%2=3oUEC1ilPR7nX5vgZb-BhJ0rQ_#Kpr3~tJj71ky$Fd{s8o@>1> zfWvk@Q0g7iL_m?RDuvOw>+Aj4 zFuhpZR0LV8>sy_mpJmFuFQXpPF&$q%Pg{5YmlPYxBiYqf&)-uNp5%2KF367gWLJsm a@tl??;!X8ifd47Topd~XqU0;T_ Date: Sun, 20 Oct 2024 18:02:43 +1300 Subject: [PATCH 12/12] doc: add top-level README files for the extra packages --- qt-extras/README.md | 7 +++++++ qt-restricted-extras/README.md | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 qt-extras/README.md create mode 100644 qt-restricted-extras/README.md diff --git a/qt-extras/README.md b/qt-extras/README.md new file mode 100644 index 00000000..8a10213a --- /dev/null +++ b/qt-extras/README.md @@ -0,0 +1,7 @@ +# MIQT Extras + +This directory contains bindings to third-party Qt libraries. + +|Library|License +|---|--- +|[ScintillaEdit](https://www.scintilla.org/)|MIT diff --git a/qt-restricted-extras/README.md b/qt-restricted-extras/README.md new file mode 100644 index 00000000..507cd104 --- /dev/null +++ b/qt-restricted-extras/README.md @@ -0,0 +1,7 @@ +# MIQT Restricted Extras + +This directory contains bindings to Qt libraries that use more restrictive licenses than permissive or LGPL. Care should be taken when evaluating these libraries. + +|Library|License +|---|--- +|[QScintilla](https://riverbankcomputing.com/software/qscintilla)|GPL/Commercial