All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QSyntaxHighlighter Maven / Gradle / Ivy

The newest version!
package io.qt.gui;


/**
 * 

Allows you to define syntax highlighting rules, and in addition you can use the class to query a document's current formatting or user data

*

Java wrapper for Qt class QSyntaxHighlighter

*/ public abstract class QSyntaxHighlighter extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } @io.qt.QtPropertyMember(enabled=false) private Object __rcDocument = null; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSyntaxHighlighter.class); @io.qt.NativeAccess private static final class ConcreteWrapper extends QSyntaxHighlighter { @io.qt.NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable protected void highlightBlock(java.lang.String text){ highlightBlock_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text); } @io.qt.QtUninvokable private native void highlightBlock_native_cref_QString(long __this__nativeId, java.lang.String text); } /** *

See QSyntaxHighlighter::QSyntaxHighlighter(QObject*)

*/ public QSyntaxHighlighter(io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QSyntaxHighlighter instance, io.qt.core.QObject parent); /** *

See QSyntaxHighlighter::QSyntaxHighlighter(QTextDocument*)

*/ public QSyntaxHighlighter(io.qt.gui.QTextDocument parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QSyntaxHighlighter instance, io.qt.gui.QTextDocument parent); /** *

See QSyntaxHighlighter::currentBlock()const

*/ @io.qt.QtUninvokable protected final io.qt.gui.QTextBlock currentBlock(){ return currentBlock_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QTextBlock currentBlock_native_constfct(long __this__nativeId); /** *

See QSyntaxHighlighter::currentBlockState()const

*/ @io.qt.QtUninvokable protected final int currentBlockState(){ return currentBlockState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int currentBlockState_native_constfct(long __this__nativeId); /** *

See QSyntaxHighlighter::currentBlockUserData()const

*/ @io.qt.QtUninvokable protected final io.qt.gui.QTextBlockUserData currentBlockUserData(){ return currentBlockUserData_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QTextBlockUserData currentBlockUserData_native_constfct(long __this__nativeId); /** *

See QSyntaxHighlighter::document()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QTextDocument document(){ return document_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QTextDocument document_native_constfct(long __this__nativeId); /** *

See QSyntaxHighlighter::format(int)const

*/ @io.qt.QtUninvokable protected final io.qt.gui.QTextCharFormat format(int pos){ return format_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), pos); } @io.qt.QtUninvokable private native io.qt.gui.QTextCharFormat format_native_int_constfct(long __this__nativeId, int pos); /** *

See QSyntaxHighlighter::previousBlockState()const

*/ @io.qt.QtUninvokable protected final int previousBlockState(){ return previousBlockState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int previousBlockState_native_constfct(long __this__nativeId); /** *

See QSyntaxHighlighter::rehighlight()

*/ public final void rehighlight(){ rehighlight_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void rehighlight_native(long __this__nativeId); /** *

See QSyntaxHighlighter::rehighlightBlock(QTextBlock)

*/ public final void rehighlightBlock(io.qt.gui.QTextBlock block){ rehighlightBlock_native_cref_QTextBlock(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(block)); } private native void rehighlightBlock_native_cref_QTextBlock(long __this__nativeId, long block); /** *

See QSyntaxHighlighter::setCurrentBlockState(int)

*/ @io.qt.QtUninvokable protected final void setCurrentBlockState(int newState){ setCurrentBlockState_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), newState); } @io.qt.QtUninvokable private native void setCurrentBlockState_native_int(long __this__nativeId, int newState); /** *

See QSyntaxHighlighter::setCurrentBlockUserData(QTextBlockUserData*)

*/ @io.qt.QtUninvokable protected final void setCurrentBlockUserData(io.qt.gui.QTextBlockUserData data){ setCurrentBlockUserData_native_QTextBlockUserData_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data)); QtJambi_LibraryUtilities.internal.setCppOwnership(data); } @io.qt.QtUninvokable private native void setCurrentBlockUserData_native_QTextBlockUserData_ptr(long __this__nativeId, long data); /** *

See QSyntaxHighlighter::setDocument(QTextDocument*)

*/ @io.qt.QtUninvokable public final void setDocument(io.qt.gui.QTextDocument doc){ setDocument_native_QTextDocument_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(doc)); __rcDocument = doc; } @io.qt.QtUninvokable private native void setDocument_native_QTextDocument_ptr(long __this__nativeId, long doc); /** *

See QSyntaxHighlighter::setFormat(int,int,QColor)

*/ @io.qt.QtUninvokable protected final void setFormat(int start, int count, io.qt.gui.QColor color){ setFormat_native_int_int_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), start, count, QtJambi_LibraryUtilities.internal.checkedNativeId(color)); } @io.qt.QtUninvokable private native void setFormat_native_int_int_cref_QColor(long __this__nativeId, int start, int count, long color); /** *

See QSyntaxHighlighter::setFormat(int,int,QFont)

*/ @io.qt.QtUninvokable protected final void setFormat(int start, int count, io.qt.gui.QFont font){ setFormat_native_int_int_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), start, count, QtJambi_LibraryUtilities.internal.checkedNativeId(font)); } @io.qt.QtUninvokable private native void setFormat_native_int_int_cref_QFont(long __this__nativeId, int start, int count, long font); /** *

See QSyntaxHighlighter::setFormat(int,int,QTextCharFormat)

*/ @io.qt.QtUninvokable protected final void setFormat(int start, int count, io.qt.gui.QTextCharFormat format){ setFormat_native_int_int_cref_QTextCharFormat(QtJambi_LibraryUtilities.internal.nativeId(this), start, count, QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } @io.qt.QtUninvokable private native void setFormat_native_int_int_cref_QTextCharFormat(long __this__nativeId, int start, int count, long format); /** *

See QSyntaxHighlighter::highlightBlock(QString)

*/ @io.qt.QtUninvokable protected abstract void highlightBlock(java.lang.String text); @io.qt.QtUninvokable private native void highlightBlock_native_cref_QString(long __this__nativeId, java.lang.String text); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QSyntaxHighlighter(QPrivateConstructor p) { super(p); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy