miqt/qt-restricted-extras/qscintilla/gen_qscilexerhtml.cpp
2024-10-20 18:07:38 +13:00

205 lines
6.0 KiB
C++

#include <QColor>
#include <QFont>
#include <QMetaObject>
#include <QObject>
#include <QString>
#include <QByteArray>
#include <cstring>
#include <qscilexerhtml.h>
#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<char*>(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<char*>(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<int>(style)));
}
bool QsciLexerHTML_DefaultEolFill(const QsciLexerHTML* self, int style) {
return self->defaultEolFill(static_cast<int>(style));
}
QFont* QsciLexerHTML_DefaultFont(const QsciLexerHTML* self, int style) {
return new QFont(self->defaultFont(static_cast<int>(style)));
}
QColor* QsciLexerHTML_DefaultPaper(const QsciLexerHTML* self, int style) {
return new QColor(self->defaultPaper(static_cast<int>(style)));
}
const char* QsciLexerHTML_Keywords(const QsciLexerHTML* self, int set) {
return (const char*) self->keywords(static_cast<int>(set));
}
struct miqt_string QsciLexerHTML_Description(const QsciLexerHTML* self, int style) {
QString _ret = self->description(static_cast<int>(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<char*>(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<char*>(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<int>(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<char*>(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<char*>(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<int>(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<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
void QsciLexerHTML_Delete(QsciLexerHTML* self) {
delete self;
}