io.qt.widgets.QPlainTextDocumentLayout Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Implements a plain text layout for QTextDocument
* Java wrapper for Qt class QPlainTextDocumentLayout
*/
public class QPlainTextDocumentLayout extends io.qt.gui.QAbstractTextDocumentLayout
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QPlainTextDocumentLayout.class);
/**
* See QPlainTextDocumentLayout:: QPlainTextDocumentLayout(QTextDocument*)
*/
public QPlainTextDocumentLayout(io.qt.gui.@Nullable QTextDocument document){
super((QPrivateConstructor)null);
initialize_native(this, document);
}
private native static void initialize_native(QPlainTextDocumentLayout instance, io.qt.gui.QTextDocument document);
/**
* See QPlainTextDocumentLayout:: cursorWidth()const
*/
@QtPropertyReader(name="cursorWidth")
@QtUninvokable
public final int cursorWidth(){
return cursorWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int cursorWidth_native_constfct(long __this__nativeId);
/**
* See QPlainTextDocumentLayout:: ensureBlockLayout(QTextBlock)const
*/
@QtUninvokable
public final void ensureBlockLayout(io.qt.gui.@NonNull QTextBlock block){
ensureBlockLayout_native_cref_QTextBlock_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(block));
}
@QtUninvokable
private native void ensureBlockLayout_native_cref_QTextBlock_constfct(long __this__nativeId, long block);
/**
* See QPlainTextDocumentLayout:: requestUpdate()
*/
@QtUninvokable
public final void requestUpdate(){
requestUpdate_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void requestUpdate_native(long __this__nativeId);
/**
* See QPlainTextDocumentLayout:: setCursorWidth(int)
*/
@QtPropertyWriter(name="cursorWidth")
@QtUninvokable
public final void setCursorWidth(int width){
setCursorWidth_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), width);
}
@QtUninvokable
private native void setCursorWidth_native_int(long __this__nativeId, int width);
/**
* See QAbstractTextDocumentLayout:: blockBoundingRect(QTextBlock)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QRectF blockBoundingRect(io.qt.gui.@NonNull QTextBlock block){
return blockBoundingRect_native_cref_QTextBlock_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(block));
}
@QtUninvokable
private native io.qt.core.QRectF blockBoundingRect_native_cref_QTextBlock_constfct(long __this__nativeId, long block);
/**
* See QAbstractTextDocumentLayout:: documentChanged(int, int, int)
*/
@QtUninvokable
@Override
protected void documentChanged(int from, int arg__2, int charsAdded){
documentChanged_native_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), from, arg__2, charsAdded);
}
@QtUninvokable
private native void documentChanged_native_int_int_int(long __this__nativeId, int from, int arg__2, int charsAdded);
/**
* See QAbstractTextDocumentLayout:: documentSize()const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QSizeF documentSize(){
return documentSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSizeF documentSize_native_constfct(long __this__nativeId);
/**
* See QAbstractTextDocumentLayout:: draw(QPainter*, QAbstractTextDocumentLayout::PaintContext)
*/
@QtUninvokable
@Override
public void draw(io.qt.gui.@Nullable QPainter arg__1, io.qt.gui.QAbstractTextDocumentLayout.@NonNull PaintContext arg__2){
draw_native_QPainter_ptr_cref_QAbstractTextDocumentLayout_PaintContext(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__2));
}
@QtUninvokable
private native void draw_native_QPainter_ptr_cref_QAbstractTextDocumentLayout_PaintContext(long __this__nativeId, long arg__1, long arg__2);
/**
* See QAbstractTextDocumentLayout:: frameBoundingRect(QTextFrame*)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QRectF frameBoundingRect(io.qt.gui.@Nullable QTextFrame arg__1){
return frameBoundingRect_native_QTextFrame_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native io.qt.core.QRectF frameBoundingRect_native_QTextFrame_ptr_constfct(long __this__nativeId, long arg__1);
/**
* See QAbstractTextDocumentLayout:: hitTest(QPointF, Qt::HitTestAccuracy)const
*/
@QtUninvokable
@Override
public int hitTest(io.qt.core.@NonNull QPointF arg__1, io.qt.core.Qt.@NonNull HitTestAccuracy arg__2){
return hitTest_native_cref_QPointF_Qt_HitTestAccuracy_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1), arg__2.value());
}
@QtUninvokable
private native int hitTest_native_cref_QPointF_Qt_HitTestAccuracy_constfct(long __this__nativeId, long arg__1, int arg__2);
/**
* See QAbstractTextDocumentLayout:: pageCount()const
*/
@QtUninvokable
@Override
public int pageCount(){
return pageCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int pageCount_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QPlainTextDocumentLayout(QPrivateConstructor p) { super(p); }
/**
* @hidden
* Kotlin property getter. In Java use {@link #cursorWidth()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getCursorWidth() {
return cursorWidth();
}
}