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

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

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

import io.qt.*;


/**
 * 

Holds formatted text

*

Java wrapper for Qt class QTextDocument

*/ public class QTextDocument extends io.qt.core.QObject { 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(QTextDocument.class); /** *

Java wrapper for Qt enum QTextDocument::FindFlag

* * @see FindFlags */ public enum FindFlag implements QtFlagEnumerator { /** *

Representing QTextDocument::FindBackward

*/ FindBackward(1), /** *

Representing QTextDocument::FindCaseSensitively

*/ FindCaseSensitively(2), /** *

Representing QTextDocument::FindWholeWords

*/ FindWholeWords(4); static { QtJambi_LibraryUtilities.initialize(); } private FindFlag(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public @NonNull FindFlags asFlags() { return new FindFlags(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull FindFlags combined(@NonNull FindFlag e) { return asFlags().setFlag(e, true); } /** * Excludes other enum entry from a flag of this entry. * @param e enum entry * @return new flag */ public @NonNull FindFlags cleared(@NonNull FindFlag e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link FindFlags} from the entries. * @param values entries * @return new flag */ public static @NonNull FindFlags flags(@Nullable FindFlag @NonNull... values) { return new FindFlags(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull FindFlag resolve(int value) { switch (value) { case 1: return FindBackward; case 2: return FindCaseSensitively; case 4: return FindWholeWords; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** * {@link QFlags} type for enum {@link FindFlag} */ public static final class FindFlags extends QFlags implements Comparable { private static final long serialVersionUID = 0xd99302055005fdf3L; static { QtJambi_LibraryUtilities.initialize(); } /** * Creates a new FindFlags where the flags in args are set. * @param args enum entries */ public FindFlags(@Nullable FindFlag @NonNull... args){ super(args); } /** * Creates a new FindFlags with given value. * @param value */ public FindFlags(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new FindFlags */ @Override public final @NonNull FindFlags combined(@StrictNonNull FindFlag e){ return new FindFlags(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final @NonNull FindFlags setFlag(@Nullable FindFlag e){ return setFlag(e, true); } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ public final @NonNull FindFlags setFlag(@Nullable FindFlag e, boolean on){ if (on) { setValue(value() | e.value()); }else { setValue(value() & ~e.value()); } return this; } /** * Returns an array of flag objects represented by this FindFlags. * @return array of enum entries */ @Override public final @NonNull FindFlag @NonNull[] flags(){ return super.flags(FindFlag.values()); } /** * {@inheritDoc} */ @Override public final @NonNull FindFlags clone(){ return new FindFlags(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(@StrictNonNull FindFlags other){ return Integer.compare(value(), other.value()); } } /** *

Java wrapper for Qt enum QTextDocument::MarkdownFeature

* * @see MarkdownFeatures */ public enum MarkdownFeature implements QtFlagEnumerator { /** *

Representing QTextDocument::MarkdownNoHTML

*/ MarkdownNoHTML(96), /** *

Representing QTextDocument::MarkdownDialectCommonMark

*/ MarkdownDialectCommonMark(0), /** *

Representing QTextDocument::MarkdownDialectGitHub

*/ MarkdownDialectGitHub(20236); static { QtJambi_LibraryUtilities.initialize(); } private MarkdownFeature(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public @NonNull MarkdownFeatures asFlags() { return new MarkdownFeatures(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull MarkdownFeatures combined(@NonNull MarkdownFeature e) { return asFlags().setFlag(e, true); } /** * Excludes other enum entry from a flag of this entry. * @param e enum entry * @return new flag */ public @NonNull MarkdownFeatures cleared(@NonNull MarkdownFeature e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link MarkdownFeatures} from the entries. * @param values entries * @return new flag */ public static @NonNull MarkdownFeatures flags(@Nullable MarkdownFeature @NonNull... values) { return new MarkdownFeatures(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull MarkdownFeature resolve(int value) { switch (value) { case 96: return MarkdownNoHTML; case 0: return MarkdownDialectCommonMark; case 20236: return MarkdownDialectGitHub; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** * {@link QFlags} type for enum {@link MarkdownFeature} */ public static final class MarkdownFeatures extends QFlags implements Comparable { private static final long serialVersionUID = 0xc8bc15abf8edf9f7L; static { QtJambi_LibraryUtilities.initialize(); } /** * Creates a new MarkdownFeatures where the flags in args are set. * @param args enum entries */ public MarkdownFeatures(@Nullable MarkdownFeature @NonNull... args){ super(args); } /** * Creates a new MarkdownFeatures with given value. * @param value */ public MarkdownFeatures(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new MarkdownFeatures */ @Override public final @NonNull MarkdownFeatures combined(@StrictNonNull MarkdownFeature e){ return new MarkdownFeatures(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final @NonNull MarkdownFeatures setFlag(@Nullable MarkdownFeature e){ return setFlag(e, true); } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ public final @NonNull MarkdownFeatures setFlag(@Nullable MarkdownFeature e, boolean on){ if (on) { setValue(value() | e.value()); }else { setValue(value() & ~e.value()); } return this; } /** * Returns an array of flag objects represented by this MarkdownFeatures. * @return array of enum entries */ @Override public final @NonNull MarkdownFeature @NonNull[] flags(){ return super.flags(MarkdownFeature.values()); } /** * {@inheritDoc} */ @Override public final @NonNull MarkdownFeatures clone(){ return new MarkdownFeatures(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(@StrictNonNull MarkdownFeatures other){ return Integer.compare(value(), other.value()); } } /** *

Java wrapper for Qt enum QTextDocument::MetaInformation

*/ @QtUnlistedEnum public enum MetaInformation implements QtEnumerator { /** *

Representing QTextDocument::DocumentTitle

*/ DocumentTitle(0), /** *

Representing QTextDocument::DocumentUrl

*/ DocumentUrl(1), /** *

Representing QTextDocument::CssMedia

*/ CssMedia(2); static { QtJambi_LibraryUtilities.initialize(); } private MetaInformation(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull MetaInformation resolve(int value) { switch (value) { case 0: return DocumentTitle; case 1: return DocumentUrl; case 2: return CssMedia; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QTextDocument::ResourceType

*/ public enum ResourceType implements QtEnumerator { /** *

Representing QTextDocument::UnknownResource

*/ UnknownResource(0), /** *

Representing QTextDocument::HtmlResource

*/ HtmlResource(1), /** *

Representing QTextDocument::ImageResource

*/ ImageResource(2), /** *

Representing QTextDocument::StyleSheetResource

*/ StyleSheetResource(3), /** *

Representing QTextDocument::MarkdownResource

*/ MarkdownResource(4), /** *

Representing QTextDocument::UserResource

*/ UserResource(100); static { QtJambi_LibraryUtilities.initialize(); } private ResourceType(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull ResourceType resolve(int value) { switch (value) { case 0: return UnknownResource; case 1: return HtmlResource; case 2: return ImageResource; case 3: return StyleSheetResource; case 4: return MarkdownResource; case 100: return UserResource; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QTextDocument::Stacks

*/ @QtUnlistedEnum public enum Stacks implements QtEnumerator { /** *

Representing QTextDocument::UndoStack

*/ UndoStack(1), /** *

Representing QTextDocument::RedoStack

*/ RedoStack(2), /** *

Representing QTextDocument::UndoAndRedoStacks

*/ UndoAndRedoStacks(3); static { QtJambi_LibraryUtilities.initialize(); } private Stacks(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Stacks resolve(int value) { switch (value) { case 1: return UndoStack; case 2: return RedoStack; case 3: return UndoAndRedoStacks; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt callable QTextDocument::ResourceProvider

*/ @FunctionalInterface public interface ResourceProvider extends QtObjectInterface, java.util.function.Function { @Override public java.lang.Object apply(io.qt.core.@NonNull QUrl arg__1); /** * @hidden *

Implementor class for interface {@link ResourceProvider}

*/ public static abstract class Impl extends QtObject implements ResourceProvider{ static { QtJambi_LibraryUtilities.initialize(); } public Impl(){ super((QPrivateConstructor)null); initialize_native(this); } protected Impl(QPrivateConstructor p){ super(p); } private static native void initialize_native(ResourceProvider instance); @NativeAccess private final static class ConcreteWrapper extends Impl { private ConcreteWrapper(QPrivateConstructor c){ super(c); } @Override public java.lang.Object apply(io.qt.core.@NonNull QUrl arg__1){ return apply_native(QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } private native java.lang.Object apply_native(long arg__1); } } } /** *

See QTextDocument::baseUrlChanged(QUrl)

*/ @QtPropertyNotify(name="baseUrl") public final @NonNull Signal1 baseUrlChanged = new Signal1<>(); /** *

See QTextDocument::blockCountChanged(int)

*/ public final @NonNull Signal1 blockCountChanged = new Signal1<>(); /** *

See QTextDocument::contentsChange(int,int,int)

*/ public final @NonNull Signal3 contentsChange = new Signal3<>(); /** *

See QTextDocument::contentsChanged()

*/ public final @NonNull Signal0 contentsChanged = new Signal0(); /** *

See QTextDocument::cursorPositionChanged(QTextCursor)

*/ public final @NonNull Signal1 cursorPositionChanged = new Signal1<>(); /** *

See QTextDocument::documentLayoutChanged()

*/ public final @NonNull Signal0 documentLayoutChanged = new Signal0(); /** *

See QTextDocument::modificationChanged(bool)

*/ public final @NonNull Signal1 modificationChanged = new Signal1<>(); /** *

See QTextDocument::redoAvailable(bool)

*/ public final @NonNull Signal1 redoAvailable = new Signal1<>(); /** *

See QTextDocument::undoAvailable(bool)

*/ public final @NonNull Signal1 undoAvailable = new Signal1<>(); /** *

See QTextDocument::undoCommandAdded()

*/ public final @NonNull Signal0 undoCommandAdded = new Signal0(); /** *

See QTextDocument::QTextDocument(QObject*)

*/ public QTextDocument(io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QTextDocument instance, io.qt.core.QObject parent); /** *

See QTextDocument::QTextDocument(QString,QObject*)

*/ public QTextDocument(java.lang.@NonNull String text, io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, text, parent); } private native static void initialize_native(QTextDocument instance, java.lang.String text, io.qt.core.QObject parent); /** *

See QTextDocument::addResource(int,QUrl,QVariant)

*/ @QtUninvokable public final void addResource(int type, io.qt.core.@NonNull QUrl name, java.lang.Object resource){ addResource_native_int_cref_QUrl_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), type, QtJambi_LibraryUtilities.internal.checkedNativeId(name), resource); } @QtUninvokable private native void addResource_native_int_cref_QUrl_cref_QVariant(long __this__nativeId, int type, long name, java.lang.Object resource); /** *

See QTextDocument::adjustSize()

*/ @QtUninvokable public final void adjustSize(){ adjustSize_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void adjustSize_native(long __this__nativeId); /** *

See QTextDocument::allFormats()const

*/ @QtUninvokable public final io.qt.core.@NonNull QList allFormats(){ return allFormats_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList allFormats_native_constfct(long __this__nativeId); /** *

See QTextDocument::appendUndoItem(QAbstractUndoItem*)

*/ public final void appendUndoItem(io.qt.gui.@Nullable QAbstractUndoItem arg__1){ appendUndoItem_native_QAbstractUndoItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } private native void appendUndoItem_native_QAbstractUndoItem_ptr(long __this__nativeId, long arg__1); /** *

See QTextDocument::availableRedoSteps()const

*/ @QtUninvokable public final int availableRedoSteps(){ return availableRedoSteps_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int availableRedoSteps_native_constfct(long __this__nativeId); /** *

See QTextDocument::availableUndoSteps()const

*/ @QtUninvokable public final int availableUndoSteps(){ return availableUndoSteps_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int availableUndoSteps_native_constfct(long __this__nativeId); /** *

See QTextDocument::baseUrl()const

*/ @QtPropertyReader(name="baseUrl") @QtUninvokable public final io.qt.core.@NonNull QUrl baseUrl(){ return baseUrl_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QUrl baseUrl_native_constfct(long __this__nativeId); /** *

See QTextDocument::baselineOffset()const

*/ @QtUninvokable public final double baselineOffset(){ return baselineOffset_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double baselineOffset_native_constfct(long __this__nativeId); /** *

See QTextDocument::begin()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextBlock begin(){ return begin_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QTextBlock begin_native_constfct(long __this__nativeId); /** *

See QTextDocument::blockCount()const

*/ @QtPropertyReader(name="blockCount") @QtUninvokable public final int blockCount(){ return blockCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int blockCount_native_constfct(long __this__nativeId); /** *

See QTextDocument::characterAt(int)const

*/ @QtUninvokable public final char characterAt(int pos){ return characterAt_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), pos); } @QtUninvokable private native char characterAt_native_int_constfct(long __this__nativeId, int pos); /** *

See QTextDocument::characterCount()const

*/ @QtUninvokable public final int characterCount(){ return characterCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int characterCount_native_constfct(long __this__nativeId); /** *

See QTextDocument::clearUndoRedoStacks(QTextDocument::Stacks)

*/ @QtUninvokable public final void clearUndoRedoStacks(io.qt.gui.QTextDocument.@NonNull Stacks historyToClear){ clearUndoRedoStacks_native_QTextDocument_Stacks(QtJambi_LibraryUtilities.internal.nativeId(this), historyToClear.value()); } @QtUninvokable private native void clearUndoRedoStacks_native_QTextDocument_Stacks(long __this__nativeId, int historyToClear); /** *

See QTextDocument::clone(QObject*)const

*/ @QtUninvokable public final io.qt.gui.@Nullable QTextDocument clone(io.qt.core.@Nullable QObject parent){ return clone_native_QObject_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent)); } @QtUninvokable private native io.qt.gui.QTextDocument clone_native_QObject_ptr_constfct(long __this__nativeId, long parent); /** *

See QTextDocument::defaultCursorMoveStyle()const

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull CursorMoveStyle defaultCursorMoveStyle(){ return io.qt.core.Qt.CursorMoveStyle.resolve(defaultCursorMoveStyle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int defaultCursorMoveStyle_native_constfct(long __this__nativeId); /** *

See QTextDocument::defaultFont()const

*/ @QtPropertyReader(name="defaultFont") @QtUninvokable public final io.qt.gui.@NonNull QFont defaultFont(){ return defaultFont_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QFont defaultFont_native_constfct(long __this__nativeId); /** *

See QTextDocument::defaultStyleSheet()const

*/ @QtPropertyReader(name="defaultStyleSheet") @QtUninvokable public final java.lang.@NonNull String defaultStyleSheet(){ return defaultStyleSheet_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String defaultStyleSheet_native_constfct(long __this__nativeId); /** *

See QTextDocument::defaultTextOption()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextOption defaultTextOption(){ return defaultTextOption_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QTextOption defaultTextOption_native_constfct(long __this__nativeId); /** *

See QTextDocument::documentLayout()const

*/ @QtUninvokable public final io.qt.gui.@Nullable QAbstractTextDocumentLayout documentLayout(){ return documentLayout_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QAbstractTextDocumentLayout documentLayout_native_constfct(long __this__nativeId); /** *

See QTextDocument::documentMargin()const

*/ @QtPropertyReader(name="documentMargin") @QtUninvokable public final double documentMargin(){ return documentMargin_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double documentMargin_native_constfct(long __this__nativeId); /** *

See QTextDocument::drawContents(QPainter*,QRectF)

*/ @QtUninvokable public final void drawContents(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRectF rect){ drawContents_native_QPainter_ptr_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(rect)); } @QtUninvokable private native void drawContents_native_QPainter_ptr_cref_QRectF(long __this__nativeId, long painter, long rect); /** *

See QTextDocument::end()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextBlock end(){ return end_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QTextBlock end_native_constfct(long __this__nativeId); /** *

See QTextDocument::find(QRegularExpression,QTextCursor,QTextDocument::FindFlags)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCursor find(io.qt.core.@NonNull QRegularExpression expr, io.qt.gui.@NonNull QTextCursor cursor, io.qt.gui.QTextDocument.@NonNull FindFlags options){ return find_native_cref_QRegularExpression_cref_QTextCursor_QTextDocument_FindFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(expr), QtJambi_LibraryUtilities.internal.checkedNativeId(cursor), options.value()); } @QtUninvokable private native io.qt.gui.QTextCursor find_native_cref_QRegularExpression_cref_QTextCursor_QTextDocument_FindFlags_constfct(long __this__nativeId, long expr, long cursor, int options); /** *

See QTextDocument::find(QRegularExpression,int,QTextDocument::FindFlags)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCursor find(io.qt.core.@NonNull QRegularExpression expr, int from, io.qt.gui.QTextDocument.@NonNull FindFlags options){ return find_native_cref_QRegularExpression_int_QTextDocument_FindFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(expr), from, options.value()); } @QtUninvokable private native io.qt.gui.QTextCursor find_native_cref_QRegularExpression_int_QTextDocument_FindFlags_constfct(long __this__nativeId, long expr, int from, int options); /** *

See QTextDocument::find(QString,QTextCursor,QTextDocument::FindFlags)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCursor find(java.lang.@NonNull String subString, io.qt.gui.@NonNull QTextCursor cursor, io.qt.gui.QTextDocument.@NonNull FindFlags options){ return find_native_cref_QString_cref_QTextCursor_QTextDocument_FindFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), subString, QtJambi_LibraryUtilities.internal.checkedNativeId(cursor), options.value()); } @QtUninvokable private native io.qt.gui.QTextCursor find_native_cref_QString_cref_QTextCursor_QTextDocument_FindFlags_constfct(long __this__nativeId, java.lang.String subString, long cursor, int options); /** *

See QTextDocument::find(QString,int,QTextDocument::FindFlags)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCursor find(java.lang.@NonNull String subString, int from, io.qt.gui.QTextDocument.@NonNull FindFlags options){ return find_native_cref_QString_int_QTextDocument_FindFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), subString, from, options.value()); } @QtUninvokable private native io.qt.gui.QTextCursor find_native_cref_QString_int_QTextDocument_FindFlags_constfct(long __this__nativeId, java.lang.String subString, int from, int options); /** *

See QTextDocument::findBlock(int)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextBlock findBlock(int pos){ return findBlock_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), pos); } @QtUninvokable private native io.qt.gui.QTextBlock findBlock_native_int_constfct(long __this__nativeId, int pos); /** *

See QTextDocument::findBlockByLineNumber(int)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextBlock findBlockByLineNumber(int blockNumber){ return findBlockByLineNumber_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), blockNumber); } @QtUninvokable private native io.qt.gui.QTextBlock findBlockByLineNumber_native_int_constfct(long __this__nativeId, int blockNumber); /** *

See QTextDocument::findBlockByNumber(int)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextBlock findBlockByNumber(int blockNumber){ return findBlockByNumber_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), blockNumber); } @QtUninvokable private native io.qt.gui.QTextBlock findBlockByNumber_native_int_constfct(long __this__nativeId, int blockNumber); /** *

See QTextDocument::firstBlock()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextBlock firstBlock(){ return firstBlock_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QTextBlock firstBlock_native_constfct(long __this__nativeId); /** *

See QTextDocument::frameAt(int)const

*/ @QtUninvokable public final io.qt.gui.@Nullable QTextFrame frameAt(int pos){ return frameAt_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), pos); } @QtUninvokable private native io.qt.gui.QTextFrame frameAt_native_int_constfct(long __this__nativeId, int pos); /** *

See QTextDocument::idealWidth()const

*/ @QtUninvokable public final double idealWidth(){ return idealWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double idealWidth_native_constfct(long __this__nativeId); /** *

See QTextDocument::indentWidth()const

*/ @QtPropertyReader(name="indentWidth") @QtUninvokable public final double indentWidth(){ return indentWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double indentWidth_native_constfct(long __this__nativeId); /** *

See QTextDocument::isEmpty()const

*/ @QtUninvokable public final boolean isEmpty(){ return isEmpty_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isEmpty_native_constfct(long __this__nativeId); /** *

See QTextDocument::isLayoutEnabled()const

*/ @QtPropertyReader(name="layoutEnabled") @QtUninvokable public final boolean isLayoutEnabled(){ return isLayoutEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isLayoutEnabled_native_constfct(long __this__nativeId); /** *

See QTextDocument::isModified()const

*/ @QtPropertyReader(name="modified") @QtPropertyDesignable("false") @QtUninvokable public final boolean isModified(){ return isModified_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isModified_native_constfct(long __this__nativeId); /** *

See QTextDocument::isRedoAvailable()const

*/ @QtUninvokable public final boolean isRedoAvailable(){ return isRedoAvailable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isRedoAvailable_native_constfct(long __this__nativeId); /** *

See QTextDocument::isUndoAvailable()const

*/ @QtUninvokable public final boolean isUndoAvailable(){ return isUndoAvailable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isUndoAvailable_native_constfct(long __this__nativeId); /** *

See QTextDocument::isUndoRedoEnabled()const

*/ @QtPropertyReader(name="undoRedoEnabled") @QtUninvokable public final boolean isUndoRedoEnabled(){ return isUndoRedoEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isUndoRedoEnabled_native_constfct(long __this__nativeId); /** *

See QTextDocument::lastBlock()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextBlock lastBlock(){ return lastBlock_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QTextBlock lastBlock_native_constfct(long __this__nativeId); /** *

See QTextDocument::lineCount()const

*/ @QtUninvokable public final int lineCount(){ return lineCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int lineCount_native_constfct(long __this__nativeId); /** *

See QTextDocument::markContentsDirty(int,int)

*/ @QtUninvokable public final void markContentsDirty(int from, int length){ markContentsDirty_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), from, length); } @QtUninvokable private native void markContentsDirty_native_int_int(long __this__nativeId, int from, int length); /** *

See QTextDocument::maximumBlockCount()const

*/ @QtPropertyReader(name="maximumBlockCount") @QtUninvokable public final int maximumBlockCount(){ return maximumBlockCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int maximumBlockCount_native_constfct(long __this__nativeId); /** *

See QTextDocument::metaInformation(QTextDocument::MetaInformation)const

*/ @QtUninvokable public final java.lang.@NonNull String metaInformation(io.qt.gui.QTextDocument.@NonNull MetaInformation info){ return metaInformation_native_QTextDocument_MetaInformation_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), info.value()); } @QtUninvokable private native java.lang.String metaInformation_native_QTextDocument_MetaInformation_constfct(long __this__nativeId, int info); /** *

See QTextDocument::object(int)const

*/ @QtUninvokable public final io.qt.gui.@Nullable QTextObject object(int objectIndex){ return object_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), objectIndex); } @QtUninvokable private native io.qt.gui.QTextObject object_native_int_constfct(long __this__nativeId, int objectIndex); /** *

See QTextDocument::objectForFormat(QTextFormat)const

*/ @QtUninvokable public final io.qt.gui.@Nullable QTextObject objectForFormat(io.qt.gui.@NonNull QTextFormat arg__1){ return objectForFormat_native_cref_QTextFormat_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native io.qt.gui.QTextObject objectForFormat_native_cref_QTextFormat_constfct(long __this__nativeId, long arg__1); /** *

See QTextDocument::pageCount()const

*/ @QtUninvokable public final int pageCount(){ return pageCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int pageCount_native_constfct(long __this__nativeId); /** *

See QTextDocument::pageSize()const

*/ @QtPropertyReader(name="pageSize") @QtUninvokable public final io.qt.core.@NonNull QSizeF pageSize(){ return pageSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSizeF pageSize_native_constfct(long __this__nativeId); /** *

See QTextDocument::print(QPagedPaintDevice*)const

*/ @QtUninvokable public final void print(io.qt.gui.@Nullable QPagedPaintDevice printer){ print_native_QPagedPaintDevice_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(printer)); } @QtUninvokable private native void print_native_QPagedPaintDevice_ptr_constfct(long __this__nativeId, long printer); /** *

See QTextDocument::redo()

*/ public final void redo(){ redo_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void redo_native(long __this__nativeId); /** *

See QTextDocument::redo(QTextCursor*)

*/ @QtUninvokable public final void redo(io.qt.gui.@Nullable QTextCursor cursor){ redo_native_QTextCursor_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(cursor)); } @QtUninvokable private native void redo_native_QTextCursor_ptr(long __this__nativeId, long cursor); /** *

See QTextDocument::resource(int,QUrl)const

*/ @QtUninvokable public final java.lang.Object resource(int type, io.qt.core.@NonNull QUrl name){ return resource_native_int_cref_QUrl_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), type, QtJambi_LibraryUtilities.internal.checkedNativeId(name)); } @QtUninvokable private native java.lang.Object resource_native_int_cref_QUrl_constfct(long __this__nativeId, int type, long name); /** *

See QTextDocument::resourceProvider()const

*/ @QtUninvokable public final io.qt.gui.QTextDocument.@Nullable ResourceProvider resourceProvider(){ return resourceProvider_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QTextDocument.ResourceProvider resourceProvider_native_constfct(long __this__nativeId); /** *

See QTextDocument::revision()const

*/ @QtUninvokable public final int revision(){ return revision_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int revision_native_constfct(long __this__nativeId); /** *

See QTextDocument::rootFrame()const

*/ @QtUninvokable public final io.qt.gui.@Nullable QTextFrame rootFrame(){ return rootFrame_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QTextFrame rootFrame_native_constfct(long __this__nativeId); /** *

See QTextDocument::setBaseUrl(QUrl)

*/ @QtPropertyWriter(name="baseUrl") @QtUninvokable public final void setBaseUrl(io.qt.core.@NonNull QUrl url){ setBaseUrl_native_cref_QUrl(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(url)); } @QtUninvokable private native void setBaseUrl_native_cref_QUrl(long __this__nativeId, long url); /** *

See QTextDocument::setBaselineOffset(qreal)

*/ @QtUninvokable public final void setBaselineOffset(double baseline){ setBaselineOffset_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), baseline); } @QtUninvokable private native void setBaselineOffset_native_qreal(long __this__nativeId, double baseline); /** *

See QTextDocument::setDefaultCursorMoveStyle(Qt::CursorMoveStyle)

*/ @QtUninvokable public final void setDefaultCursorMoveStyle(io.qt.core.Qt.@NonNull CursorMoveStyle style){ setDefaultCursorMoveStyle_native_Qt_CursorMoveStyle(QtJambi_LibraryUtilities.internal.nativeId(this), style.value()); } @QtUninvokable private native void setDefaultCursorMoveStyle_native_Qt_CursorMoveStyle(long __this__nativeId, int style); /** *

See QTextDocument::setDefaultFont(QFont)

*/ @QtPropertyWriter(name="defaultFont") @QtUninvokable public final void setDefaultFont(io.qt.gui.@NonNull QFont font){ setDefaultFont_native_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(font)); } @QtUninvokable private native void setDefaultFont_native_cref_QFont(long __this__nativeId, long font); /** *

See QTextDocument::setDefaultStyleSheet(QString)

*/ @QtPropertyWriter(name="defaultStyleSheet") @QtUninvokable public final void setDefaultStyleSheet(java.lang.@NonNull String sheet){ setDefaultStyleSheet_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), sheet); } @QtUninvokable private native void setDefaultStyleSheet_native_cref_QString(long __this__nativeId, java.lang.String sheet); /** *

See QTextDocument::setDefaultTextOption(QTextOption)

*/ @QtUninvokable public final void setDefaultTextOption(io.qt.gui.@NonNull QTextOption option){ setDefaultTextOption_native_cref_QTextOption(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option)); } @QtUninvokable private native void setDefaultTextOption_native_cref_QTextOption(long __this__nativeId, long option); /** *

See QTextDocument::setDocumentLayout(QAbstractTextDocumentLayout*)

*/ @QtUninvokable public final void setDocumentLayout(io.qt.gui.@Nullable QAbstractTextDocumentLayout layout){ setDocumentLayout_native_QAbstractTextDocumentLayout_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(layout)); } @QtUninvokable private native void setDocumentLayout_native_QAbstractTextDocumentLayout_ptr(long __this__nativeId, long layout); /** *

See QTextDocument::setDocumentMargin(qreal)

*/ @QtPropertyWriter(name="documentMargin") @QtUninvokable public final void setDocumentMargin(double margin){ setDocumentMargin_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), margin); } @QtUninvokable private native void setDocumentMargin_native_qreal(long __this__nativeId, double margin); /** *

See QTextDocument::setHtml(QString)

*/ @QtUninvokable public final void setHtml(java.lang.@NonNull String html){ setHtml_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), html); } @QtUninvokable private native void setHtml_native_cref_QString(long __this__nativeId, java.lang.String html); /** *

See QTextDocument::setIndentWidth(qreal)

*/ @QtPropertyWriter(name="indentWidth") @QtUninvokable public final void setIndentWidth(double width){ setIndentWidth_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), width); } @QtUninvokable private native void setIndentWidth_native_qreal(long __this__nativeId, double width); /** *

See QTextDocument::setLayoutEnabled(bool)

*/ @QtPropertyWriter(name="layoutEnabled") @QtUninvokable public final void setLayoutEnabled(boolean b){ setLayoutEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), b); } @QtUninvokable private native void setLayoutEnabled_native_bool(long __this__nativeId, boolean b); /** *

See QTextDocument::setMarkdown(QString,QTextDocument::MarkdownFeatures)

*/ @QtUninvokable public final void setMarkdown(java.lang.@NonNull String markdown, io.qt.gui.QTextDocument.@NonNull MarkdownFeatures features){ setMarkdown_native_cref_QString_QTextDocument_MarkdownFeatures(QtJambi_LibraryUtilities.internal.nativeId(this), markdown, features.value()); } @QtUninvokable private native void setMarkdown_native_cref_QString_QTextDocument_MarkdownFeatures(long __this__nativeId, java.lang.String markdown, int features); /** *

See QTextDocument::setMaximumBlockCount(int)

*/ @QtPropertyWriter(name="maximumBlockCount") @QtUninvokable public final void setMaximumBlockCount(int maximum){ setMaximumBlockCount_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), maximum); } @QtUninvokable private native void setMaximumBlockCount_native_int(long __this__nativeId, int maximum); /** *

See QTextDocument::setMetaInformation(QTextDocument::MetaInformation,QString)

*/ @QtUninvokable public final void setMetaInformation(io.qt.gui.QTextDocument.@NonNull MetaInformation info, java.lang.@NonNull String arg__2){ setMetaInformation_native_QTextDocument_MetaInformation_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), info.value(), arg__2); } @QtUninvokable private native void setMetaInformation_native_QTextDocument_MetaInformation_cref_QString(long __this__nativeId, int info, java.lang.String arg__2); /** *

See QTextDocument::setModified(bool)

*/ @QtPropertyWriter(name="modified") public final void setModified(boolean m){ setModified_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), m); } private native void setModified_native_bool(long __this__nativeId, boolean m); /** *

See QTextDocument::setPageSize(QSizeF)

*/ @QtPropertyWriter(name="pageSize") @QtUninvokable public final void setPageSize(io.qt.core.@NonNull QSizeF size){ setPageSize_native_cref_QSizeF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size)); } @QtUninvokable private native void setPageSize_native_cref_QSizeF(long __this__nativeId, long size); /** *

See QTextDocument::setPlainText(QString)

*/ @QtUninvokable public final void setPlainText(java.lang.@NonNull String text){ setPlainText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text); } @QtUninvokable private native void setPlainText_native_cref_QString(long __this__nativeId, java.lang.String text); /** *

See QTextDocument::setResourceProvider(QTextDocument::ResourceProvider)

*/ @QtUninvokable public final void setResourceProvider(io.qt.gui.QTextDocument.@Nullable ResourceProvider provider){ setResourceProvider_native_cref_QTextDocument_ResourceProvider(QtJambi_LibraryUtilities.internal.nativeId(this), provider); } @QtUninvokable private native void setResourceProvider_native_cref_QTextDocument_ResourceProvider(long __this__nativeId, io.qt.gui.QTextDocument.ResourceProvider provider); /** *

See QTextDocument::setSubScriptBaseline(qreal)

*/ @QtUninvokable public final void setSubScriptBaseline(double baseline){ setSubScriptBaseline_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), baseline); } @QtUninvokable private native void setSubScriptBaseline_native_qreal(long __this__nativeId, double baseline); /** *

See QTextDocument::setSuperScriptBaseline(qreal)

*/ @QtUninvokable public final void setSuperScriptBaseline(double baseline){ setSuperScriptBaseline_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), baseline); } @QtUninvokable private native void setSuperScriptBaseline_native_qreal(long __this__nativeId, double baseline); /** *

See QTextDocument::setTextWidth(qreal)

*/ @QtPropertyWriter(name="textWidth") @QtUninvokable public final void setTextWidth(double width){ setTextWidth_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), width); } @QtUninvokable private native void setTextWidth_native_qreal(long __this__nativeId, double width); /** *

See QTextDocument::setUndoRedoEnabled(bool)

*/ @QtPropertyWriter(name="undoRedoEnabled") @QtUninvokable public final void setUndoRedoEnabled(boolean enable){ setUndoRedoEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable); } @QtUninvokable private native void setUndoRedoEnabled_native_bool(long __this__nativeId, boolean enable); /** *

See QTextDocument::setUseDesignMetrics(bool)

*/ @QtPropertyWriter(name="useDesignMetrics") @QtUninvokable public final void setUseDesignMetrics(boolean b){ setUseDesignMetrics_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), b); } @QtUninvokable private native void setUseDesignMetrics_native_bool(long __this__nativeId, boolean b); /** *

See QTextDocument::size()const

*/ @QtPropertyReader(name="size") @QtUninvokable public final io.qt.core.@NonNull QSizeF size(){ return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSizeF size_native_constfct(long __this__nativeId); /** *

See QTextDocument::subScriptBaseline()const

*/ @QtUninvokable public final double subScriptBaseline(){ return subScriptBaseline_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double subScriptBaseline_native_constfct(long __this__nativeId); /** *

See QTextDocument::superScriptBaseline()const

*/ @QtUninvokable public final double superScriptBaseline(){ return superScriptBaseline_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double superScriptBaseline_native_constfct(long __this__nativeId); /** *

See QTextDocument::textWidth()const

*/ @QtPropertyReader(name="textWidth") @QtUninvokable public final double textWidth(){ return textWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double textWidth_native_constfct(long __this__nativeId); /** *

See QTextDocument::toHtml()const

*/ @QtUninvokable public final java.lang.@NonNull String toHtml(){ return toHtml_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String toHtml_native_constfct(long __this__nativeId); /** *

See QTextDocument::toMarkdown(QTextDocument::MarkdownFeatures)const

*/ @QtUninvokable public final java.lang.@NonNull String toMarkdown(io.qt.gui.QTextDocument.@NonNull MarkdownFeatures features){ return toMarkdown_native_QTextDocument_MarkdownFeatures_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), features.value()); } @QtUninvokable private native java.lang.String toMarkdown_native_QTextDocument_MarkdownFeatures_constfct(long __this__nativeId, int features); /** *

See QTextDocument::toPlainText()const

*/ @QtUninvokable public final java.lang.@NonNull String toPlainText(){ return toPlainText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String toPlainText_native_constfct(long __this__nativeId); /** *

See QTextDocument::toRawText()const

*/ @QtUninvokable public final java.lang.@NonNull String toRawText(){ return toRawText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String toRawText_native_constfct(long __this__nativeId); /** *

See QTextDocument::undo()

*/ public final void undo(){ undo_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void undo_native(long __this__nativeId); /** *

See QTextDocument::undo(QTextCursor*)

*/ @QtUninvokable public final void undo(io.qt.gui.@Nullable QTextCursor cursor){ undo_native_QTextCursor_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(cursor)); } @QtUninvokable private native void undo_native_QTextCursor_ptr(long __this__nativeId, long cursor); /** *

See QTextDocument::useDesignMetrics()const

*/ @QtPropertyReader(name="useDesignMetrics") @QtUninvokable public final boolean useDesignMetrics(){ return useDesignMetrics_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean useDesignMetrics_native_constfct(long __this__nativeId); /** *

See QTextDocument::clear()

*/ @QtUninvokable public void clear(){ clear_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void clear_native(long __this__nativeId); /** *

See QTextDocument::createObject(QTextFormat)

*/ @QtUninvokable protected io.qt.gui.@Nullable QTextObject createObject(io.qt.gui.@NonNull QTextFormat f){ return createObject_native_cref_QTextFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(f)); } @QtUninvokable private native io.qt.gui.QTextObject createObject_native_cref_QTextFormat(long __this__nativeId, long f); /** *

See QTextDocument::loadResource(int,QUrl)

*/ protected java.lang.Object loadResource(int type, io.qt.core.@NonNull QUrl name){ return loadResource_native_int_cref_QUrl(QtJambi_LibraryUtilities.internal.nativeId(this), type, QtJambi_LibraryUtilities.internal.checkedNativeId(name)); } private native java.lang.Object loadResource_native_int_cref_QUrl(long __this__nativeId, int type, long name); /** *

See QTextDocument::defaultResourceProvider()

*/ public native static io.qt.gui.QTextDocument.@Nullable ResourceProvider defaultResourceProvider(); /** *

See QTextDocument::setDefaultResourceProvider(QTextDocument::ResourceProvider)

*/ public native static void setDefaultResourceProvider(io.qt.gui.QTextDocument.@Nullable ResourceProvider provider); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QTextDocument(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QTextDocument(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QTextDocument instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QTextDocument(io.qt.core.QObject)} * with parent = null.

*/ public QTextDocument() { this((io.qt.core.QObject)null); } /** *

Overloaded constructor for {@link #QTextDocument(java.lang.String, io.qt.core.QObject)} * with parent = null.

*/ public QTextDocument(java.lang.@NonNull String text) { this(text, (io.qt.core.QObject)null); } /** *

Overloaded function for {@link #addResource(int, io.qt.core.QUrl, java.lang.Object)}.

*/ @QtUninvokable public final void addResource(int type, java.lang.@NonNull String name, java.lang.Object resource) { addResource(type, new io.qt.core.QUrl(name), resource); } /** * @hidden *

Kotlin property getter. In Java use {@link #baseUrl()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QUrl getBaseUrl() { return baseUrl(); } /** * @hidden *

Kotlin property getter. In Java use {@link #blockCount()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getBlockCount() { return blockCount(); } /** *

Overloaded function for {@link #clearUndoRedoStacks(io.qt.gui.QTextDocument.Stacks)} * with historyToClear = io.qt.gui.QTextDocument.Stacks.UndoAndRedoStacks.

*/ @QtUninvokable public final void clearUndoRedoStacks() { clearUndoRedoStacks(io.qt.gui.QTextDocument.Stacks.UndoAndRedoStacks); } /** *

Overloaded function for {@link #clone(io.qt.core.QObject)} * with parent = null.

*/ @QtUninvokable public final io.qt.gui.@Nullable QTextDocument clone() { return clone((io.qt.core.QObject)null); } /** * @hidden *

Kotlin property getter. In Java use {@link #defaultFont()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.gui.@NonNull QFont getDefaultFont() { return defaultFont(); } /** * @hidden *

Kotlin property getter. In Java use {@link #defaultStyleSheet()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final java.lang.@NonNull String getDefaultStyleSheet() { return defaultStyleSheet(); } /** * @hidden *

Kotlin property getter. In Java use {@link #documentMargin()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getDocumentMargin() { return documentMargin(); } /** *

Overloaded function for {@link #drawContents(io.qt.gui.QPainter, io.qt.core.QRectF)} * with rect = new io.qt.core.QRectF().

*/ @QtUninvokable public final void drawContents(io.qt.gui.@Nullable QPainter painter) { drawContents(painter, new io.qt.core.QRectF()); } /** *

Overloaded function for {@link #drawContents(io.qt.gui.QPainter, io.qt.core.QRectF)}.

*/ @QtUninvokable public final void drawContents(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRect rect) { drawContents(painter, new io.qt.core.QRectF(rect)); } /** *

Overloaded function for {@link #find(io.qt.core.QRegularExpression, io.qt.gui.QTextCursor, io.qt.gui.QTextDocument.FindFlags)} * with options = new io.qt.gui.QTextDocument.FindFlags(0).

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCursor find(io.qt.core.@NonNull QRegularExpression expr, io.qt.gui.@NonNull QTextCursor cursor) { return find(expr, cursor, new io.qt.gui.QTextDocument.FindFlags(0)); } /** *

Overloaded function for {@link #find(io.qt.core.QRegularExpression, io.qt.gui.QTextCursor, io.qt.gui.QTextDocument.FindFlags)}.

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCursor find(io.qt.core.@NonNull QRegularExpression expr, io.qt.gui.@NonNull QTextCursor cursor, io.qt.gui.QTextDocument.@NonNull FindFlag @NonNull... options) { return find(expr, cursor, new io.qt.gui.QTextDocument.FindFlags(options)); } /** *

Overloaded function for {@link #find(io.qt.core.QRegularExpression, int, io.qt.gui.QTextDocument.FindFlags)} * with options = new io.qt.gui.QTextDocument.FindFlags(0).

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCursor find(io.qt.core.@NonNull QRegularExpression expr, int from) { return find(expr, from, new io.qt.gui.QTextDocument.FindFlags(0)); } /** *

Overloaded function for {@link #find(io.qt.core.QRegularExpression, int, io.qt.gui.QTextDocument.FindFlags)}

*

with:

    *
  • from = 0
  • *
  • options = new io.qt.gui.QTextDocument.FindFlags(0)
  • *
*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCursor find(io.qt.core.@NonNull QRegularExpression expr) { return find(expr, (int)0, new io.qt.gui.QTextDocument.FindFlags(0)); } /** *

Overloaded function for {@link #find(io.qt.core.QRegularExpression, int, io.qt.gui.QTextDocument.FindFlags)}.

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCursor find(io.qt.core.@NonNull QRegularExpression expr, int from, io.qt.gui.QTextDocument.@NonNull FindFlag @NonNull... options) { return find(expr, from, new io.qt.gui.QTextDocument.FindFlags(options)); } /** *

Overloaded function for {@link #find(java.lang.String, io.qt.gui.QTextCursor, io.qt.gui.QTextDocument.FindFlags)} * with options = new io.qt.gui.QTextDocument.FindFlags(0).

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCursor find(java.lang.@NonNull String subString, io.qt.gui.@NonNull QTextCursor cursor) { return find(subString, cursor, new io.qt.gui.QTextDocument.FindFlags(0)); } /** *

Overloaded function for {@link #find(java.lang.String, io.qt.gui.QTextCursor, io.qt.gui.QTextDocument.FindFlags)}.

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCursor find(java.lang.@NonNull String subString, io.qt.gui.@NonNull QTextCursor cursor, io.qt.gui.QTextDocument.@NonNull FindFlag @NonNull... options) { return find(subString, cursor, new io.qt.gui.QTextDocument.FindFlags(options)); } /** *

Overloaded function for {@link #find(java.lang.String, int, io.qt.gui.QTextDocument.FindFlags)} * with options = new io.qt.gui.QTextDocument.FindFlags(0).

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCursor find(java.lang.@NonNull String subString, int from) { return find(subString, from, new io.qt.gui.QTextDocument.FindFlags(0)); } /** *

Overloaded function for {@link #find(java.lang.String, int, io.qt.gui.QTextDocument.FindFlags)}

*

with:

    *
  • from = 0
  • *
  • options = new io.qt.gui.QTextDocument.FindFlags(0)
  • *
*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCursor find(java.lang.@NonNull String subString) { return find(subString, (int)0, new io.qt.gui.QTextDocument.FindFlags(0)); } /** *

Overloaded function for {@link #find(java.lang.String, int, io.qt.gui.QTextDocument.FindFlags)}.

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCursor find(java.lang.@NonNull String subString, int from, io.qt.gui.QTextDocument.@NonNull FindFlag @NonNull... options) { return find(subString, from, new io.qt.gui.QTextDocument.FindFlags(options)); } /** * @hidden *

Kotlin property getter. In Java use {@link #indentWidth()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getIndentWidth() { return indentWidth(); } /** * @hidden *

Kotlin property getter. In Java use {@link #isLayoutEnabled()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getLayoutEnabled() { return isLayoutEnabled(); } /** * @hidden *

Kotlin property getter. In Java use {@link #isModified()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getModified() { return isModified(); } /** * @hidden *

Kotlin property getter. In Java use {@link #isUndoRedoEnabled()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getUndoRedoEnabled() { return isUndoRedoEnabled(); } /** * @hidden *

Kotlin property getter. In Java use {@link #maximumBlockCount()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getMaximumBlockCount() { return maximumBlockCount(); } /** * @hidden *

Kotlin property getter. In Java use {@link #pageSize()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QSizeF getPageSize() { return pageSize(); } /** *

Overloaded function for {@link #resource(int, io.qt.core.QUrl)}.

*/ @QtUninvokable public final java.lang.Object resource(int type, java.lang.@NonNull String name) { return resource(type, new io.qt.core.QUrl(name)); } /** *

Overloaded function for {@link #setBaseUrl(io.qt.core.QUrl)}.

*/ @QtUninvokable public final void setBaseUrl(java.lang.@NonNull String url) { setBaseUrl(new io.qt.core.QUrl(url)); } /** *

Overloaded function for {@link #setDefaultFont(io.qt.gui.QFont)}.

*/ @QtUninvokable public final void setDefaultFont(java.lang.@NonNull String font) { setDefaultFont(new io.qt.gui.QFont(font)); } /** *

Overloaded function for {@link #setDefaultTextOption(io.qt.gui.QTextOption)}.

*/ @QtUninvokable public final void setDefaultTextOption(io.qt.core.Qt.@NonNull Alignment option) { setDefaultTextOption(new io.qt.gui.QTextOption(option)); } /** *

Overloaded function for {@link #setMarkdown(java.lang.String, io.qt.gui.QTextDocument.MarkdownFeatures)} * with features = new io.qt.gui.QTextDocument.MarkdownFeatures(20236).

*/ @QtUninvokable public final void setMarkdown(java.lang.@NonNull String markdown) { setMarkdown(markdown, new io.qt.gui.QTextDocument.MarkdownFeatures(20236)); } /** *

Overloaded function for {@link #setMarkdown(java.lang.String, io.qt.gui.QTextDocument.MarkdownFeatures)}.

*/ @QtUninvokable public final void setMarkdown(java.lang.@NonNull String markdown, io.qt.gui.QTextDocument.@NonNull MarkdownFeature @NonNull... features) { setMarkdown(markdown, new io.qt.gui.QTextDocument.MarkdownFeatures(features)); } /** *

Overloaded function for {@link #setModified(boolean)} * with m = true.

*/ public final void setModified() { setModified((boolean)true); } /** *

Overloaded function for {@link #setPageSize(io.qt.core.QSizeF)}.

*/ @QtUninvokable public final void setPageSize(io.qt.core.@NonNull QSize size) { setPageSize(new io.qt.core.QSizeF(size)); } /** * @hidden *

Kotlin property getter. In Java use {@link #size()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QSizeF getSize() { return size(); } /** * @hidden *

Kotlin property getter. In Java use {@link #textWidth()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final double getTextWidth() { return textWidth(); } /** *

Overloaded function for {@link #toMarkdown(io.qt.gui.QTextDocument.MarkdownFeatures)} * with features = new io.qt.gui.QTextDocument.MarkdownFeatures(20236).

*/ @QtUninvokable public final java.lang.@NonNull String toMarkdown() { return toMarkdown(new io.qt.gui.QTextDocument.MarkdownFeatures(20236)); } /** *

Overloaded function for {@link #toMarkdown(io.qt.gui.QTextDocument.MarkdownFeatures)}.

*/ @QtUninvokable public final java.lang.@NonNull String toMarkdown(io.qt.gui.QTextDocument.@NonNull MarkdownFeature @NonNull... features) { return toMarkdown(new io.qt.gui.QTextDocument.MarkdownFeatures(features)); } /** * @hidden *

Kotlin property getter. In Java use {@link #useDesignMetrics()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getUseDesignMetrics() { return useDesignMetrics(); } /** *

Overloaded function for {@link #loadResource(int, io.qt.core.QUrl)}.

*/ protected final java.lang.Object loadResource(int type, java.lang.@NonNull String name) { return loadResource(type, new io.qt.core.QUrl(name)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy