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

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

There is a newer version: 6.8.0
Show newest version
package io.qt.gui;

import io.qt.*;


/**
 * 

Allows drawing of custom text objects in QTextDocuments

*

Java wrapper for Qt class QTextObjectInterface

*/ public interface QTextObjectInterface extends QtObjectInterface { /** * @hidden *

Implementor class for interface {@link io.qt.gui.QTextObjectInterface}

*/ public static abstract class Impl extends QtObject implements io.qt.gui.QTextObjectInterface { static { QtJambi_LibraryUtilities.initialize(); } @NativeAccess private static final class ConcreteWrapper extends QTextObjectInterface.Impl { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @QtUninvokable public void drawObject(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRectF rect, io.qt.gui.@Nullable QTextDocument doc, int posInDocument, io.qt.gui.@NonNull QTextFormat format){ drawObject_native_QPainter_ptr_cref_QRectF_QTextDocument_ptr_int_cref_QTextFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), QtJambi_LibraryUtilities.internal.checkedNativeId(doc), posInDocument, QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } private native static void drawObject_native_QPainter_ptr_cref_QRectF_QTextDocument_ptr_int_cref_QTextFormat(long __this__nativeId, long painter, long rect, long doc, int posInDocument, long format); @Override @QtUninvokable public io.qt.core.@NonNull QSizeF intrinsicSize(io.qt.gui.@Nullable QTextDocument doc, int posInDocument, io.qt.gui.@NonNull QTextFormat format){ return intrinsicSize_native_QTextDocument_ptr_int_cref_QTextFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(doc), posInDocument, QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } private native static io.qt.core.QSizeF intrinsicSize_native_QTextDocument_ptr_int_cref_QTextFormat(long __this__nativeId, long doc, int posInDocument, long format); } /** *

See QTextObjectInterface::QTextObjectInterface()

*/ public Impl(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QTextObjectInterface instance); /** *

See QTextObjectInterface::drawObject(QPainter*,QRectF,QTextDocument*,int,QTextFormat)

*/ @QtUninvokable public abstract void drawObject(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRectF rect, io.qt.gui.@Nullable QTextDocument doc, int posInDocument, io.qt.gui.@NonNull QTextFormat format); private native static void drawObject_native_QPainter_ptr_cref_QRectF_QTextDocument_ptr_int_cref_QTextFormat(long __this__nativeId, long painter, long rect, long doc, int posInDocument, long format); /** *

See QTextObjectInterface::intrinsicSize(QTextDocument*,int,QTextFormat)

*/ @QtUninvokable public abstract io.qt.core.@NonNull QSizeF intrinsicSize(io.qt.gui.@Nullable QTextDocument doc, int posInDocument, io.qt.gui.@NonNull QTextFormat format); private native static io.qt.core.QSizeF intrinsicSize_native_QTextDocument_ptr_int_cref_QTextFormat(long __this__nativeId, long doc, int posInDocument, long format); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected Impl(QPrivateConstructor p) { super(p); } /** *

Overloaded function for {@link #drawObject(io.qt.gui.QPainter, io.qt.core.QRectF, io.qt.gui.QTextDocument, int, io.qt.gui.QTextFormat)}.

*/ @QtUninvokable public final void drawObject(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRect rect, io.qt.gui.@Nullable QTextDocument doc, int posInDocument, io.qt.gui.@NonNull QTextFormat format) { drawObject(painter, new io.qt.core.QRectF(rect), doc, posInDocument, format); } } /** *

See QTextObjectInterface::drawObject(QPainter*,QRectF,QTextDocument*,int,QTextFormat)

*/ @QtUninvokable public void drawObject(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRectF rect, io.qt.gui.@Nullable QTextDocument doc, int posInDocument, io.qt.gui.@NonNull QTextFormat format); /** *

See QTextObjectInterface::intrinsicSize(QTextDocument*,int,QTextFormat)

*/ @QtUninvokable public io.qt.core.@NonNull QSizeF intrinsicSize(io.qt.gui.@Nullable QTextDocument doc, int posInDocument, io.qt.gui.@NonNull QTextFormat format); /** *

Overloaded function for {@link #drawObject(io.qt.gui.QPainter, io.qt.core.QRectF, io.qt.gui.QTextDocument, int, io.qt.gui.QTextFormat)}.

*/ @QtUninvokable public default void drawObject(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRect rect, io.qt.gui.@Nullable QTextDocument doc, int posInDocument, io.qt.gui.@NonNull QTextFormat format) { drawObject(painter, new io.qt.core.QRectF(rect), doc, posInDocument, format); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy