io.qt.gui.QAbstractTextDocumentLayout Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Abstract base class used to implement custom layouts for QTextDocuments
* Java wrapper for Qt class QAbstractTextDocumentLayout
*/
public abstract class QAbstractTextDocumentLayout extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
@QtPropertyMember(enabled=false)
private Object __rcPaintDevice = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAbstractTextDocumentLayout.class);
@NativeAccess
private static final class ConcreteWrapper extends QAbstractTextDocumentLayout {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@QtUninvokable
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);
@Override
@QtUninvokable
protected void documentChanged(int from, int charsRemoved, int charsAdded){
documentChanged_native_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), from, charsRemoved, charsAdded);
}
@QtUninvokable
private native void documentChanged_native_int_int_int(long __this__nativeId, int from, int charsRemoved, int charsAdded);
@Override
@QtUninvokable
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);
@Override
@QtUninvokable
public void draw(io.qt.gui.@Nullable QPainter painter, io.qt.gui.QAbstractTextDocumentLayout.@NonNull PaintContext context){
draw_native_QPainter_ptr_cref_QAbstractTextDocumentLayout_PaintContext(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(context));
}
@QtUninvokable
private native void draw_native_QPainter_ptr_cref_QAbstractTextDocumentLayout_PaintContext(long __this__nativeId, long painter, long context);
@Override
@QtUninvokable
public io.qt.core.@NonNull QRectF frameBoundingRect(io.qt.gui.@Nullable QTextFrame frame){
return frameBoundingRect_native_QTextFrame_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(frame));
}
@QtUninvokable
private native io.qt.core.QRectF frameBoundingRect_native_QTextFrame_ptr_constfct(long __this__nativeId, long frame);
@Override
@QtUninvokable
public int hitTest(io.qt.core.@NonNull QPointF point, io.qt.core.Qt.@NonNull HitTestAccuracy accuracy){
return hitTest_native_cref_QPointF_Qt_HitTestAccuracy_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point), accuracy.value());
}
@QtUninvokable
private native int hitTest_native_cref_QPointF_Qt_HitTestAccuracy_constfct(long __this__nativeId, long point, int accuracy);
@Override
@QtUninvokable
public int pageCount(){
return pageCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int pageCount_native_constfct(long __this__nativeId);
}
/**
* QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection
* Java wrapper for Qt class QAbstractTextDocumentLayout::Selection
*/
public static class Selection extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QAbstractTextDocumentLayout::Selection:: Selection()
*/
public Selection(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(Selection instance);
/**
* See QAbstractTextDocumentLayout::Selection:: Selection(QAbstractTextDocumentLayout::Selection)
*/
public Selection(io.qt.gui.QAbstractTextDocumentLayout.@NonNull Selection other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(Selection instance, io.qt.gui.QAbstractTextDocumentLayout.Selection other);
/**
* See QAbstractTextDocumentLayout::Selection:: Selection{QTextCursor, QTextCharFormat}
*/
public Selection(io.qt.gui.@NonNull QTextCursor cursor, io.qt.gui.@NonNull QTextCharFormat format){
super((QPrivateConstructor)null);
initialize_native(this, cursor, format);
}
private native static void initialize_native(Selection instance, io.qt.gui.QTextCursor cursor, io.qt.gui.QTextCharFormat format);
/**
* See operator==(QAbstractTextDocumentLayout::Selection, QAbstractTextDocumentLayout::Selection)
*/
@QtUninvokable
public final boolean equals(io.qt.gui.QAbstractTextDocumentLayout.@NonNull Selection v2){
return equals_native_cref_QAbstractTextDocumentLayout_Selection(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(v2));
}
@QtUninvokable
private native boolean equals_native_cref_QAbstractTextDocumentLayout_Selection(long __this__nativeId, long v2);
/**
* The selection's cursor
* See QAbstractTextDocumentLayout::Selection:: cursor
*/
@QtUninvokable
public final void setCursor(io.qt.gui.@NonNull QTextCursor cursor){
setCursor_native_cref_QTextCursor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(cursor));
}
@QtUninvokable
private native void setCursor_native_cref_QTextCursor(long __this__nativeId, long cursor);
/**
* The selection's cursor
* See QAbstractTextDocumentLayout::Selection:: cursor
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextCursor cursor(){
return cursor_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextCursor cursor_native(long __this__nativeId);
/**
* The format of the selection
* See QAbstractTextDocumentLayout::Selection:: format
*/
@QtUninvokable
public final void setFormat(io.qt.gui.@NonNull QTextCharFormat format){
setFormat_native_cref_QTextCharFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format));
}
@QtUninvokable
private native void setFormat_native_cref_QTextCharFormat(long __this__nativeId, long format);
/**
* The format of the selection
* See QAbstractTextDocumentLayout::Selection:: format
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextCharFormat format(){
return format_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTextCharFormat format_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected Selection(QPrivateConstructor p) { super(p); }
/**
* See operator==(QAbstractTextDocumentLayout::Selection, QAbstractTextDocumentLayout::Selection)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.QAbstractTextDocumentLayout.Selection) {
return equals((io.qt.gui.QAbstractTextDocumentLayout.Selection) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QAbstractTextDocumentLayout::Selection)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QAbstractTextDocumentLayout::Selection:: Selection(QAbstractTextDocumentLayout::Selection)
*/
@QtUninvokable
@Override
public Selection clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native Selection clone_native(long __this_nativeId);
/**
* @hidden
* Kotlin property getter. In Java use {@link #cursor()} instead.
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextCursor getCursor() {
return cursor();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #format()} instead.
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextCharFormat getFormat() {
return format();
}
}
/**
* QAbstractTextDocumentLayout::PaintContext class is a convenience class defining the parameters used when painting a document's layout
* Java wrapper for Qt class QAbstractTextDocumentLayout::PaintContext
*/
public static class PaintContext extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QAbstractTextDocumentLayout::PaintContext:: PaintContext()
*/
public PaintContext(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(PaintContext instance);
/**
* See QAbstractTextDocumentLayout::PaintContext:: PaintContext(QAbstractTextDocumentLayout::PaintContext)
*/
public PaintContext(io.qt.gui.QAbstractTextDocumentLayout.@NonNull PaintContext other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(PaintContext instance, io.qt.gui.QAbstractTextDocumentLayout.PaintContext other);
/**
* See operator==(QAbstractTextDocumentLayout::PaintContext, QAbstractTextDocumentLayout::PaintContext)
*/
@QtUninvokable
public final boolean equals(io.qt.gui.QAbstractTextDocumentLayout.@NonNull PaintContext v2){
return equals_native_cref_QAbstractTextDocumentLayout_PaintContext(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(v2));
}
@QtUninvokable
private native boolean equals_native_cref_QAbstractTextDocumentLayout_PaintContext(long __this__nativeId, long v2);
/**
* Hint to the layout specifying the area around paragraphs, frames or text require painting
* See QAbstractTextDocumentLayout::PaintContext:: clip
*/
@QtUninvokable
public final void setClip(io.qt.core.@NonNull QRectF clip){
setClip_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(clip));
}
@QtUninvokable
private native void setClip_native_cref_QRectF(long __this__nativeId, long clip);
/**
* Hint to the layout specifying the area around paragraphs, frames or text require painting
* See QAbstractTextDocumentLayout::PaintContext:: clip
*/
@QtUninvokable
public final io.qt.core.@NonNull QRectF clip(){
return clip_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QRectF clip_native(long __this__nativeId);
/**
* The position within the document, where the cursor line should be drawn
* See QAbstractTextDocumentLayout::PaintContext:: cursorPosition
*/
@QtUninvokable
public final void setCursorPosition(int cursorPosition){
setCursorPosition_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), cursorPosition);
}
@QtUninvokable
private native void setCursorPosition_native_int(long __this__nativeId, int cursorPosition);
/**
* The position within the document, where the cursor line should be drawn
* See QAbstractTextDocumentLayout::PaintContext:: cursorPosition
*/
@QtUninvokable
public final int cursorPosition(){
return cursorPosition_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int cursorPosition_native(long __this__nativeId);
/**
* The default color that is used for the text, when no color is specified
* See QAbstractTextDocumentLayout::PaintContext:: palette
*/
@QtUninvokable
public final void setPalette(io.qt.gui.@NonNull QPalette palette){
setPalette_native_cref_QPalette(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(palette));
}
@QtUninvokable
private native void setPalette_native_cref_QPalette(long __this__nativeId, long palette);
/**
* The default color that is used for the text, when no color is specified
* See QAbstractTextDocumentLayout::PaintContext:: palette
*/
@QtUninvokable
public final io.qt.gui.@NonNull QPalette palette(){
return palette_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QPalette palette_native(long __this__nativeId);
/**
* The collection of selections that will be rendered when passing this paint context to QAbstractTextDocumentLayout's draw() function
* See QAbstractTextDocumentLayout::PaintContext:: selections
*/
@QtUninvokable
public final void setSelections(java.util.@NonNull Collection extends io.qt.gui.QAbstractTextDocumentLayout.@NonNull Selection> selections){
setSelections_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), selections);
}
@QtUninvokable
private native void setSelections_native_cref_QList(long __this__nativeId, java.util.Collection extends io.qt.gui.QAbstractTextDocumentLayout.Selection> selections);
/**
* The collection of selections that will be rendered when passing this paint context to QAbstractTextDocumentLayout's draw() function
* See QAbstractTextDocumentLayout::PaintContext:: selections
*/
@QtUninvokable
public final io.qt.core.@NonNull QList selections(){
return selections_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList selections_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected PaintContext(QPrivateConstructor p) { super(p); }
/**
* See operator==(QAbstractTextDocumentLayout::PaintContext, QAbstractTextDocumentLayout::PaintContext)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.QAbstractTextDocumentLayout.PaintContext) {
return equals((io.qt.gui.QAbstractTextDocumentLayout.PaintContext) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QAbstractTextDocumentLayout::PaintContext)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QAbstractTextDocumentLayout::PaintContext:: PaintContext(QAbstractTextDocumentLayout::PaintContext)
*/
@QtUninvokable
@Override
public PaintContext clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native PaintContext clone_native(long __this_nativeId);
/**
* Overloaded function for {@link #setClip(io.qt.core.QRectF)}.
*/
@QtUninvokable
public final void setClip(io.qt.core.@NonNull QRect clip) {
setClip(new io.qt.core.QRectF(clip));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #clip()} instead.
*/
@QtUninvokable
public final io.qt.core.@NonNull QRectF getClip() {
return clip();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #cursorPosition()} instead.
*/
@QtUninvokable
public final int getCursorPosition() {
return cursorPosition();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #palette()} instead.
*/
@QtUninvokable
public final io.qt.gui.@NonNull QPalette getPalette() {
return palette();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #selections()} instead.
*/
@QtUninvokable
public final io.qt.core.@NonNull QList getSelections() {
return selections();
}
}
/**
* See QAbstractTextDocumentLayout:: documentSizeChanged(QSizeF)
*/
public final @NonNull Signal1 documentSizeChanged = new Signal1<>();
/**
* See QAbstractTextDocumentLayout:: pageCountChanged(int)
*/
public final @NonNull Signal1 pageCountChanged = new Signal1<>();
/**
* See QAbstractTextDocumentLayout:: update(QRectF)
*/
public final @NonNull Signal1Default1 update = new Signal1Default1<>(()->new io.qt.core.QRectF(0., 0., 1000000000., 1000000000.));
/**
* See QAbstractTextDocumentLayout:: updateBlock(QTextBlock)
*/
public final @NonNull Signal1 updateBlock = new Signal1<>();
/**
* See QAbstractTextDocumentLayout:: QAbstractTextDocumentLayout(QTextDocument*)
*/
public QAbstractTextDocumentLayout(io.qt.gui.@Nullable QTextDocument doc){
super((QPrivateConstructor)null);
initialize_native(this, doc);
}
private native static void initialize_native(QAbstractTextDocumentLayout instance, io.qt.gui.QTextDocument doc);
/**
* See QAbstractTextDocumentLayout:: anchorAt(QPointF)const
*/
@QtUninvokable
public final java.lang.@NonNull String anchorAt(io.qt.core.@NonNull QPointF pos){
return anchorAt_native_cref_QPointF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native java.lang.String anchorAt_native_cref_QPointF_constfct(long __this__nativeId, long pos);
/**
* See QAbstractTextDocumentLayout:: blockWithMarkerAt(QPointF)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextBlock blockWithMarkerAt(io.qt.core.@NonNull QPointF pos){
return blockWithMarkerAt_native_cref_QPointF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native io.qt.gui.QTextBlock blockWithMarkerAt_native_cref_QPointF_constfct(long __this__nativeId, long pos);
/**
* See QAbstractTextDocumentLayout:: 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 QAbstractTextDocumentLayout:: format(int)
*/
@QtUninvokable
protected final io.qt.gui.@NonNull QTextCharFormat format(int pos){
return format_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), pos);
}
@QtUninvokable
private native io.qt.gui.QTextCharFormat format_native_int(long __this__nativeId, int pos);
/**
* See QAbstractTextDocumentLayout:: formatAt(QPointF)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextFormat formatAt(io.qt.core.@NonNull QPointF pos){
return formatAt_native_cref_QPointF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native io.qt.gui.QTextFormat formatAt_native_cref_QPointF_constfct(long __this__nativeId, long pos);
/**
* See QAbstractTextDocumentLayout:: formatIndex(int)
*/
@QtUninvokable
protected final int formatIndex(int pos){
return formatIndex_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), pos);
}
@QtUninvokable
private native int formatIndex_native_int(long __this__nativeId, int pos);
/**
* See QAbstractTextDocumentLayout:: handlerForObject(int)const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QTextObjectInterface handlerForObject(int objectType){
return handlerForObject_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), objectType);
}
@QtUninvokable
private native io.qt.gui.QTextObjectInterface handlerForObject_native_int_constfct(long __this__nativeId, int objectType);
/**
* See QAbstractTextDocumentLayout:: imageAt(QPointF)const
*/
@QtUninvokable
public final java.lang.@NonNull String imageAt(io.qt.core.@NonNull QPointF pos){
return imageAt_native_cref_QPointF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native java.lang.String imageAt_native_cref_QPointF_constfct(long __this__nativeId, long pos);
/**
* See QAbstractTextDocumentLayout:: paintDevice()const
*/
@QtUninvokable
public final io.qt.gui.@Nullable QPaintDevice paintDevice(){
return paintDevice_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QPaintDevice paintDevice_native_constfct(long __this__nativeId);
/**
* See QAbstractTextDocumentLayout:: registerHandler(int, QObject*)
*/
@QtUninvokable
private final void _registerHandler(int objectType, io.qt.core.@Nullable QObject component){
_registerHandler_native_int_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), objectType, QtJambi_LibraryUtilities.internal.checkedNativeId(component));
}
@QtUninvokable
private native void _registerHandler_native_int_QObject_ptr(long __this__nativeId, int objectType, long component);
/**
* See QAbstractTextDocumentLayout:: setPaintDevice(QPaintDevice*)
*/
@QtUninvokable
public final void setPaintDevice(io.qt.gui.@Nullable QPaintDevice device){
setPaintDevice_native_QPaintDevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(device));
__rcPaintDevice = device;
}
@QtUninvokable
private native void setPaintDevice_native_QPaintDevice_ptr(long __this__nativeId, long device);
/**
* See QAbstractTextDocumentLayout:: unregisterHandler(int, QObject*)
*/
@QtUninvokable
private final void _unregisterHandler(int objectType, io.qt.core.@Nullable QObject component){
_unregisterHandler_native_int_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), objectType, QtJambi_LibraryUtilities.internal.checkedNativeId(component));
}
@QtUninvokable
private native void _unregisterHandler_native_int_QObject_ptr(long __this__nativeId, int objectType, long component);
/**
* See QAbstractTextDocumentLayout:: blockBoundingRect(QTextBlock)const
*/
@QtUninvokable
public abstract io.qt.core.@NonNull QRectF blockBoundingRect(io.qt.gui.@NonNull QTextBlock 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
protected abstract void documentChanged(int from, int charsRemoved, int charsAdded);
@QtUninvokable
private native void documentChanged_native_int_int_int(long __this__nativeId, int from, int charsRemoved, int charsAdded);
/**
* See QAbstractTextDocumentLayout:: documentSize()const
*/
@QtUninvokable
public abstract io.qt.core.@NonNull QSizeF documentSize();
@QtUninvokable
private native io.qt.core.QSizeF documentSize_native_constfct(long __this__nativeId);
/**
* See QAbstractTextDocumentLayout:: draw(QPainter*, QAbstractTextDocumentLayout::PaintContext)
*/
@QtUninvokable
public abstract void draw(io.qt.gui.@Nullable QPainter painter, io.qt.gui.QAbstractTextDocumentLayout.@NonNull PaintContext context);
@QtUninvokable
private native void draw_native_QPainter_ptr_cref_QAbstractTextDocumentLayout_PaintContext(long __this__nativeId, long painter, long context);
/**
* See QAbstractTextDocumentLayout:: drawInlineObject(QPainter*, QRectF, QTextInlineObject, int, QTextFormat)
*/
@QtUninvokable
protected void drawInlineObject(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRectF rect, io.qt.gui.@NonNull QTextInlineObject object, int posInDocument, io.qt.gui.@NonNull QTextFormat format){
drawInlineObject_native_QPainter_ptr_cref_QRectF_QTextInlineObject_int_cref_QTextFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), QtJambi_LibraryUtilities.internal.checkedNativeId(object), posInDocument, QtJambi_LibraryUtilities.internal.checkedNativeId(format));
}
@QtUninvokable
private native void drawInlineObject_native_QPainter_ptr_cref_QRectF_QTextInlineObject_int_cref_QTextFormat(long __this__nativeId, long painter, long rect, long object, int posInDocument, long format);
/**
* See QAbstractTextDocumentLayout:: frameBoundingRect(QTextFrame*)const
*/
@QtUninvokable
public abstract io.qt.core.@NonNull QRectF frameBoundingRect(io.qt.gui.@Nullable QTextFrame frame);
@QtUninvokable
private native io.qt.core.QRectF frameBoundingRect_native_QTextFrame_ptr_constfct(long __this__nativeId, long frame);
/**
* See QAbstractTextDocumentLayout:: hitTest(QPointF, Qt::HitTestAccuracy)const
*/
@QtUninvokable
public abstract int hitTest(io.qt.core.@NonNull QPointF point, io.qt.core.Qt.@NonNull HitTestAccuracy accuracy);
@QtUninvokable
private native int hitTest_native_cref_QPointF_Qt_HitTestAccuracy_constfct(long __this__nativeId, long point, int accuracy);
/**
* See QAbstractTextDocumentLayout:: pageCount()const
*/
@QtUninvokable
public abstract int pageCount();
@QtUninvokable
private native int pageCount_native_constfct(long __this__nativeId);
/**
* See QAbstractTextDocumentLayout:: positionInlineObject(QTextInlineObject, int, QTextFormat)
*/
@QtUninvokable
protected void positionInlineObject(io.qt.gui.@NonNull QTextInlineObject item, int posInDocument, io.qt.gui.@NonNull QTextFormat format){
positionInlineObject_native_QTextInlineObject_int_cref_QTextFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), posInDocument, QtJambi_LibraryUtilities.internal.checkedNativeId(format));
}
@QtUninvokable
private native void positionInlineObject_native_QTextInlineObject_int_cref_QTextFormat(long __this__nativeId, long item, int posInDocument, long format);
/**
* See QAbstractTextDocumentLayout:: resizeInlineObject(QTextInlineObject, int, QTextFormat)
*/
@QtUninvokable
protected void resizeInlineObject(io.qt.gui.@NonNull QTextInlineObject item, int posInDocument, io.qt.gui.@NonNull QTextFormat format){
resizeInlineObject_native_QTextInlineObject_int_cref_QTextFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), posInDocument, QtJambi_LibraryUtilities.internal.checkedNativeId(format));
}
@QtUninvokable
private native void resizeInlineObject_native_QTextInlineObject_int_cref_QTextFormat(long __this__nativeId, long item, int posInDocument, long format);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QAbstractTextDocumentLayout(QPrivateConstructor p) { super(p); }
/**
* Registers the given component as a handler for items of the given objectType.
* Note: registerHandler() has to be called once for each object type. This means that there is only one handler for multiple replacement characters of the same object type.
*
* @param objectType The type for which to register a handler.
* @param component The handler for the given type.
**/
public final void registerHandler(int objectType, Handler component) {
_registerHandler(objectType, component);
}
public final void unregisterHandler(int objectType, Handler component) {
_unregisterHandler(objectType, component);
}
/**
* Overloaded function for {@link #anchorAt(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final java.lang.@NonNull String anchorAt(io.qt.core.@NonNull QPoint pos) {
return anchorAt(new io.qt.core.QPointF(pos));
}
/**
* Overloaded function for {@link #blockWithMarkerAt(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextBlock blockWithMarkerAt(io.qt.core.@NonNull QPoint pos) {
return blockWithMarkerAt(new io.qt.core.QPointF(pos));
}
/**
* Overloaded function for {@link #formatAt(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTextFormat formatAt(io.qt.core.@NonNull QPoint pos) {
return formatAt(new io.qt.core.QPointF(pos));
}
/**
* Overloaded function for {@link #imageAt(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final java.lang.@NonNull String imageAt(io.qt.core.@NonNull QPoint pos) {
return imageAt(new io.qt.core.QPointF(pos));
}
/**
* Overloaded function for {@link #_unregisterHandler(int, io.qt.core.QObject)}
* with component = null
.
*/
@QtUninvokable
private final void _unregisterHandler(int objectType) {
_unregisterHandler(objectType, (io.qt.core.QObject)null);
}
/**
* Overloaded function for {@link #drawInlineObject(io.qt.gui.QPainter, io.qt.core.QRectF, io.qt.gui.QTextInlineObject, int, io.qt.gui.QTextFormat)}.
*/
@QtUninvokable
protected final void drawInlineObject(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRect rect, io.qt.gui.@NonNull QTextInlineObject object, int posInDocument, io.qt.gui.@NonNull QTextFormat format) {
drawInlineObject(painter, new io.qt.core.QRectF(rect), object, posInDocument, format);
}
/**
* Overloaded function for {@link #hitTest(io.qt.core.QPointF, io.qt.core.Qt.HitTestAccuracy)}.
*/
@QtUninvokable
public final int hitTest(io.qt.core.@NonNull QPoint point, io.qt.core.Qt.@NonNull HitTestAccuracy accuracy) {
return hitTest(new io.qt.core.QPointF(point), accuracy);
}
}