You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/qtjava/javalib/qtjava/TQSyntaxHighlighter.cpp

60 lines
2.4 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqsyntaxhighlighter.h>
#include <tqstring.h>
#include <tqfont.h>
#include <tqcolor.h>
#include <qtjava/QtSupport.h>
#include <qtjava/TQSyntaxHighlighter.h>
JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSyntaxHighlighter_currentParagraph(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TQSyntaxHighlighter*) QtSupport::getQt(env, obj))->currentParagraph();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSyntaxHighlighter_highlightParagraph(JNIEnv* env, jobject obj, jstring text, jint endStateOfLastPara)
{
static TQString* _qstring_text = 0;
jint xret = (jint) ((TQSyntaxHighlighter*) QtSupport::getQt(env, obj))->highlightParagraph((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (int) endStateOfLastPara);
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSyntaxHighlighter_rehighlight(JNIEnv* env, jobject obj)
{
((TQSyntaxHighlighter*) QtSupport::getQt(env, obj))->rehighlight();
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSyntaxHighlighter_setFormat__IILorg_trinitydesktop_qt_QColor_2(JNIEnv* env, jobject obj, jint start, jint count, jobject color)
{
((TQSyntaxHighlighter*) QtSupport::getQt(env, obj))->setFormat((int) start, (int) count, (const TQColor&)*(const TQColor*) QtSupport::getQt(env, color));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSyntaxHighlighter_setFormat__IILorg_trinitydesktop_qt_QFont_2(JNIEnv* env, jobject obj, jint start, jint count, jobject font)
{
((TQSyntaxHighlighter*) QtSupport::getQt(env, obj))->setFormat((int) start, (int) count, (const TQFont&)*(const TQFont*) QtSupport::getQt(env, font));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSyntaxHighlighter_setFormat__IILorg_trinitydesktop_qt_QFont_2Lorg_trinitydesktop_qt_QColor_2(JNIEnv* env, jobject obj, jint start, jint count, jobject font, jobject color)
{
((TQSyntaxHighlighter*) QtSupport::getQt(env, obj))->setFormat((int) start, (int) count, (const TQFont&)*(const TQFont*) QtSupport::getQt(env, font), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, color));
return;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSyntaxHighlighter_textEdit(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSyntaxHighlighter*) QtSupport::getQt(env, obj))->textEdit(), "org.trinitydesktop.qt.TQTextEdit");
return xret;
}