#include #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; } 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; } void QsciLexerCustom_StartStyling2(QsciLexerCustom* self, int pos, int styleBits) { self->startStyling(static_cast(pos), static_cast(styleBits)); } void QsciLexerCustom_Delete(QsciLexerCustom* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }