io.qt.widgets.QPlainTextDocumentLayout Maven / Gradle / Ivy
package io.qt.widgets;
/**
* 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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QPlainTextDocumentLayout.class);
/**
* See QPlainTextDocumentLayout::QPlainTextDocumentLayout(QTextDocument*)
*/
public QPlainTextDocumentLayout(io.qt.gui.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
*/
@io.qt.QtPropertyReader(name="cursorWidth")
@io.qt.QtUninvokable
public final int cursorWidth(){
return cursorWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int cursorWidth_native_constfct(long __this__nativeId);
/**
* See QPlainTextDocumentLayout::ensureBlockLayout(QTextBlock)const
*/
@io.qt.QtUninvokable
public final void ensureBlockLayout(io.qt.gui.QTextBlock block){
ensureBlockLayout_native_cref_QTextBlock_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(block));
}
@io.qt.QtUninvokable
private native void ensureBlockLayout_native_cref_QTextBlock_constfct(long __this__nativeId, long block);
/**
* See QPlainTextDocumentLayout::requestUpdate()
*/
@io.qt.QtUninvokable
public final void requestUpdate(){
requestUpdate_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void requestUpdate_native(long __this__nativeId);
/**
* See QPlainTextDocumentLayout::setCursorWidth(int)
*/
@io.qt.QtPropertyWriter(name="cursorWidth")
@io.qt.QtUninvokable
public final void setCursorWidth(int width){
setCursorWidth_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), width);
}
@io.qt.QtUninvokable
private native void setCursorWidth_native_int(long __this__nativeId, int width);
/**
* See QAbstractTextDocumentLayout::blockBoundingRect(QTextBlock)const
*/
@io.qt.QtUninvokable
public io.qt.core.QRectF blockBoundingRect(io.qt.gui.QTextBlock block){
return blockBoundingRect_native_cref_QTextBlock_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(block));
}
@io.qt.QtUninvokable
private native io.qt.core.QRectF blockBoundingRect_native_cref_QTextBlock_constfct(long __this__nativeId, long block);
/**
* See QAbstractTextDocumentLayout::documentChanged(int,int,int)
*/
@io.qt.QtUninvokable
protected void documentChanged(int from, int arg__2, int charsAdded){
documentChanged_native_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), from, arg__2, charsAdded);
}
@io.qt.QtUninvokable
private native void documentChanged_native_int_int_int(long __this__nativeId, int from, int arg__2, int charsAdded);
/**
* See QAbstractTextDocumentLayout::documentSize()const
*/
@io.qt.QtUninvokable
public io.qt.core.QSizeF documentSize(){
return documentSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSizeF documentSize_native_constfct(long __this__nativeId);
/**
* See QAbstractTextDocumentLayout::draw(QPainter*,QAbstractTextDocumentLayout::PaintContext)
*/
@io.qt.QtUninvokable
public void draw(io.qt.gui.QPainter arg__1, io.qt.gui.QAbstractTextDocumentLayout.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));
}
@io.qt.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
*/
@io.qt.QtUninvokable
public io.qt.core.QRectF frameBoundingRect(io.qt.gui.QTextFrame arg__1){
return frameBoundingRect_native_QTextFrame_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.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
*/
@io.qt.QtUninvokable
public int hitTest(io.qt.core.QPointF arg__1, io.qt.core.Qt.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());
}
@io.qt.QtUninvokable
private native int hitTest_native_cref_QPointF_Qt_HitTestAccuracy_constfct(long __this__nativeId, long arg__1, int arg__2);
/**
* See QAbstractTextDocumentLayout::pageCount()const
*/
@io.qt.QtUninvokable
public int pageCount(){
return pageCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int pageCount_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QPlainTextDocumentLayout(QPrivateConstructor p) { super(p); }
}