io.qt.gui.QSyntaxHighlighter Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* 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();
}
@QtPropertyMember(enabled=false)
private Object __rcDocument = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSyntaxHighlighter.class);
@NativeAccess
private static final class ConcreteWrapper extends QSyntaxHighlighter {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@QtUninvokable
protected void highlightBlock(java.lang.@NonNull String text){
highlightBlock_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@QtUninvokable
private native void highlightBlock_native_cref_QString(long __this__nativeId, java.lang.String text);
}
/**
* See QSyntaxHighlighter:: QSyntaxHighlighter(QObject*)
*/
public QSyntaxHighlighter(io.qt.core.@Nullable 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.@Nullable 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
*/
@QtUninvokable
protected final io.qt.gui.@NonNull QTextBlock currentBlock(){
return currentBlock_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextBlock currentBlock_native_constfct(long __this__nativeId);
/**
* See QSyntaxHighlighter:: currentBlockState()const
*/
@QtUninvokable
protected final int currentBlockState(){
return currentBlockState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int currentBlockState_native_constfct(long __this__nativeId);
/**
* See QSyntaxHighlighter:: currentBlockUserData()const
*/
@QtUninvokable
protected final io.qt.gui.@Nullable QTextBlockUserData currentBlockUserData(){
return currentBlockUserData_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextBlockUserData currentBlockUserData_native_constfct(long __this__nativeId);
/**
* See QSyntaxHighlighter:: document()const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QTextDocument document(){
return document_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextDocument document_native_constfct(long __this__nativeId);
/**
* See QSyntaxHighlighter:: format(int)const
*/
@QtUninvokable
protected final io.qt.gui.@NonNull QTextCharFormat format(int pos){
return format_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), pos);
}
@QtUninvokable
private native io.qt.gui.QTextCharFormat format_native_int_constfct(long __this__nativeId, int pos);
/**
* See QSyntaxHighlighter:: previousBlockState()const
*/
@QtUninvokable
protected final int previousBlockState(){
return previousBlockState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@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.@NonNull 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)
*/
@QtUninvokable
protected final void setCurrentBlockState(int newState){
setCurrentBlockState_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), newState);
}
@QtUninvokable
private native void setCurrentBlockState_native_int(long __this__nativeId, int newState);
/**
* See QSyntaxHighlighter:: setCurrentBlockUserData(QTextBlockUserData*)
*/
@QtUninvokable
protected final void setCurrentBlockUserData(io.qt.gui.@Nullable QTextBlockUserData data){
setCurrentBlockUserData_native_QTextBlockUserData_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data));
QtJambi_LibraryUtilities.internal.setCppOwnership(data);
}
@QtUninvokable
private native void setCurrentBlockUserData_native_QTextBlockUserData_ptr(long __this__nativeId, long data);
/**
* See QSyntaxHighlighter:: setDocument(QTextDocument*)
*/
@QtUninvokable
public final void setDocument(io.qt.gui.@Nullable QTextDocument doc){
setDocument_native_QTextDocument_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(doc));
__rcDocument = doc;
}
@QtUninvokable
private native void setDocument_native_QTextDocument_ptr(long __this__nativeId, long doc);
/**
* See QSyntaxHighlighter:: setFormat(int, int, QColor)
*/
@QtUninvokable
protected final void setFormat(int start, int count, io.qt.gui.@NonNull QColor color){
setFormat_native_int_int_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), start, count, QtJambi_LibraryUtilities.internal.checkedNativeId(color));
}
@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)
*/
@QtUninvokable
protected final void setFormat(int start, int count, io.qt.gui.@NonNull QFont font){
setFormat_native_int_int_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), start, count, QtJambi_LibraryUtilities.internal.checkedNativeId(font));
}
@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)
*/
@QtUninvokable
protected final void setFormat(int start, int count, io.qt.gui.@NonNull QTextCharFormat format){
setFormat_native_int_int_cref_QTextCharFormat(QtJambi_LibraryUtilities.internal.nativeId(this), start, count, QtJambi_LibraryUtilities.internal.checkedNativeId(format));
}
@QtUninvokable
private native void setFormat_native_int_int_cref_QTextCharFormat(long __this__nativeId, int start, int count, long format);
/**
* See QSyntaxHighlighter:: highlightBlock(QString)
*/
@QtUninvokable
protected abstract void highlightBlock(java.lang.@NonNull String text);
@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
.
* @hidden
*/
@NativeAccess
protected QSyntaxHighlighter(QPrivateConstructor p) { super(p); }
}