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

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

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

import io.qt.*;


/**
 * 

Offers an API to access and modify QTextDocuments

*

Java wrapper for Qt class QTextCursor

*/ public class QTextCursor extends QtObject implements java.lang.Comparable, java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QTextCursor::MoveMode

*/ public enum MoveMode implements QtEnumerator { /** *

Representing QTextCursor::MoveAnchor

*/ MoveAnchor(0), /** *

Representing QTextCursor::KeepAnchor

*/ KeepAnchor(1); static { QtJambi_LibraryUtilities.initialize(); } private MoveMode(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 MoveMode resolve(int value) { switch (value) { case 0: return MoveAnchor; case 1: return KeepAnchor; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QTextCursor::MoveOperation

*/ public enum MoveOperation implements QtEnumerator { /** *

Representing QTextCursor::NoMove

*/ NoMove(0), /** *

Representing QTextCursor::Start

*/ Start(1), /** *

Representing QTextCursor::Up

*/ Up(2), /** *

Representing QTextCursor::StartOfLine

*/ StartOfLine(3), /** *

Representing QTextCursor::StartOfBlock

*/ StartOfBlock(4), /** *

Representing QTextCursor::StartOfWord

*/ StartOfWord(5), /** *

Representing QTextCursor::PreviousBlock

*/ PreviousBlock(6), /** *

Representing QTextCursor::PreviousCharacter

*/ PreviousCharacter(7), /** *

Representing QTextCursor::PreviousWord

*/ PreviousWord(8), /** *

Representing QTextCursor::Left

*/ Left(9), /** *

Representing QTextCursor::WordLeft

*/ WordLeft(10), /** *

Representing QTextCursor::End

*/ End(11), /** *

Representing QTextCursor::Down

*/ Down(12), /** *

Representing QTextCursor::EndOfLine

*/ EndOfLine(13), /** *

Representing QTextCursor::EndOfWord

*/ EndOfWord(14), /** *

Representing QTextCursor::EndOfBlock

*/ EndOfBlock(15), /** *

Representing QTextCursor::NextBlock

*/ NextBlock(16), /** *

Representing QTextCursor::NextCharacter

*/ NextCharacter(17), /** *

Representing QTextCursor::NextWord

*/ NextWord(18), /** *

Representing QTextCursor::Right

*/ Right(19), /** *

Representing QTextCursor::WordRight

*/ WordRight(20), /** *

Representing QTextCursor::NextCell

*/ NextCell(21), /** *

Representing QTextCursor::PreviousCell

*/ PreviousCell(22), /** *

Representing QTextCursor::NextRow

*/ NextRow(23), /** *

Representing QTextCursor::PreviousRow

*/ PreviousRow(24); static { QtJambi_LibraryUtilities.initialize(); } private MoveOperation(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 MoveOperation resolve(int value) { switch (value) { case 0: return NoMove; case 1: return Start; case 2: return Up; case 3: return StartOfLine; case 4: return StartOfBlock; case 5: return StartOfWord; case 6: return PreviousBlock; case 7: return PreviousCharacter; case 8: return PreviousWord; case 9: return Left; case 10: return WordLeft; case 11: return End; case 12: return Down; case 13: return EndOfLine; case 14: return EndOfWord; case 15: return EndOfBlock; case 16: return NextBlock; case 17: return NextCharacter; case 18: return NextWord; case 19: return Right; case 20: return WordRight; case 21: return NextCell; case 22: return PreviousCell; case 23: return NextRow; case 24: return PreviousRow; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QTextCursor::SelectionType

*/ public enum SelectionType implements QtEnumerator { /** *

Representing QTextCursor::WordUnderCursor

*/ WordUnderCursor(0), /** *

Representing QTextCursor::LineUnderCursor

*/ LineUnderCursor(1), /** *

Representing QTextCursor::BlockUnderCursor

*/ BlockUnderCursor(2), /** *

Representing QTextCursor::Document

*/ Document(3); static { QtJambi_LibraryUtilities.initialize(); } private SelectionType(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 SelectionType resolve(int value) { switch (value) { case 0: return WordUnderCursor; case 1: return LineUnderCursor; case 2: return BlockUnderCursor; case 3: return Document; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QTextCursor::QTextCursor()

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

See QTextCursor::QTextCursor(QTextBlock)

*/ public QTextCursor(io.qt.gui.@NonNull QTextBlock block){ super((QPrivateConstructor)null); initialize_native(this, block); } private native static void initialize_native(QTextCursor instance, io.qt.gui.QTextBlock block); /** *

See QTextCursor::QTextCursor(QTextCursor)

*/ public QTextCursor(io.qt.gui.@NonNull QTextCursor cursor){ super((QPrivateConstructor)null); initialize_native(this, cursor); } private native static void initialize_native(QTextCursor instance, io.qt.gui.QTextCursor cursor); /** *

See QTextCursor::QTextCursor(QTextDocument*)

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

See QTextCursor::QTextCursor(QTextFrame*)

*/ public QTextCursor(io.qt.gui.@Nullable QTextFrame frame){ super((QPrivateConstructor)null); initialize_native(this, frame); } private native static void initialize_native(QTextCursor instance, io.qt.gui.QTextFrame frame); /** *

See QTextCursor::anchor()const

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

See QTextCursor::atBlockEnd()const

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

See QTextCursor::atBlockStart()const

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

See QTextCursor::atEnd()const

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

See QTextCursor::atStart()const

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

See QTextCursor::beginEditBlock()

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

See QTextCursor::block()const

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

See QTextCursor::blockCharFormat()const

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

See QTextCursor::blockFormat()const

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

See QTextCursor::blockNumber()const

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

See QTextCursor::charFormat()const

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

See QTextCursor::clearSelection()

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

See QTextCursor::columnNumber()const

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

See QTextCursor::createList(QTextListFormat)

*/ @QtUninvokable public final io.qt.gui.@Nullable QTextList createList(io.qt.gui.@NonNull QTextListFormat format){ return createList_native_cref_QTextListFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } @QtUninvokable private native io.qt.gui.QTextList createList_native_cref_QTextListFormat(long __this__nativeId, long format); /** *

See QTextCursor::createList(QTextListFormat::Style)

*/ @QtUninvokable public final io.qt.gui.@Nullable QTextList createList(io.qt.gui.QTextListFormat.@NonNull Style style){ return createList_native_QTextListFormat_Style(QtJambi_LibraryUtilities.internal.nativeId(this), style.value()); } @QtUninvokable private native io.qt.gui.QTextList createList_native_QTextListFormat_Style(long __this__nativeId, int style); /** *

See QTextCursor::currentFrame()const

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

See QTextCursor::currentList()const

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

See QTextCursor::currentTable()const

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

See QTextCursor::deleteChar()

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

See QTextCursor::deletePreviousChar()

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

See QTextCursor::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 QTextCursor::endEditBlock()

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

See QTextCursor::hasComplexSelection()const

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

See QTextCursor::hasSelection()const

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

See QTextCursor::insertBlock()

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

See QTextCursor::insertBlock(QTextBlockFormat)

*/ @QtUninvokable public final void insertBlock(io.qt.gui.@NonNull QTextBlockFormat format){ insertBlock_native_cref_QTextBlockFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } @QtUninvokable private native void insertBlock_native_cref_QTextBlockFormat(long __this__nativeId, long format); /** *

See QTextCursor::insertBlock(QTextBlockFormat,QTextCharFormat)

*/ @QtUninvokable public final void insertBlock(io.qt.gui.@NonNull QTextBlockFormat format, io.qt.gui.@NonNull QTextCharFormat charFormat){ insertBlock_native_cref_QTextBlockFormat_cref_QTextCharFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format), QtJambi_LibraryUtilities.internal.checkedNativeId(charFormat)); } @QtUninvokable private native void insertBlock_native_cref_QTextBlockFormat_cref_QTextCharFormat(long __this__nativeId, long format, long charFormat); /** *

See QTextCursor::insertFragment(QTextDocumentFragment)

*/ @QtUninvokable public final void insertFragment(io.qt.gui.@NonNull QTextDocumentFragment fragment){ insertFragment_native_cref_QTextDocumentFragment(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(fragment)); } @QtUninvokable private native void insertFragment_native_cref_QTextDocumentFragment(long __this__nativeId, long fragment); /** *

See QTextCursor::insertFrame(QTextFrameFormat)

*/ @QtUninvokable public final io.qt.gui.@Nullable QTextFrame insertFrame(io.qt.gui.@NonNull QTextFrameFormat format){ return insertFrame_native_cref_QTextFrameFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } @QtUninvokable private native io.qt.gui.QTextFrame insertFrame_native_cref_QTextFrameFormat(long __this__nativeId, long format); /** *

See QTextCursor::insertHtml(QString)

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

See QTextCursor::insertImage(QImage,QString)

*/ @QtUninvokable public final void insertImage(io.qt.gui.@NonNull QImage image, java.lang.@NonNull String name){ insertImage_native_cref_QImage_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(image), name); } @QtUninvokable private native void insertImage_native_cref_QImage_cref_QString(long __this__nativeId, long image, java.lang.String name); /** *

See QTextCursor::insertImage(QString)

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

See QTextCursor::insertImage(QTextImageFormat)

*/ @QtUninvokable public final void insertImage(io.qt.gui.@NonNull QTextImageFormat format){ insertImage_native_cref_QTextImageFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } @QtUninvokable private native void insertImage_native_cref_QTextImageFormat(long __this__nativeId, long format); /** *

See QTextCursor::insertImage(QTextImageFormat,QTextFrameFormat::Position)

*/ @QtUninvokable public final void insertImage(io.qt.gui.@NonNull QTextImageFormat format, io.qt.gui.QTextFrameFormat.@NonNull Position alignment){ insertImage_native_cref_QTextImageFormat_QTextFrameFormat_Position(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format), alignment.value()); } @QtUninvokable private native void insertImage_native_cref_QTextImageFormat_QTextFrameFormat_Position(long __this__nativeId, long format, int alignment); /** *

See QTextCursor::insertList(QTextListFormat)

*/ @QtUninvokable public final io.qt.gui.@Nullable QTextList insertList(io.qt.gui.@NonNull QTextListFormat format){ return insertList_native_cref_QTextListFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } @QtUninvokable private native io.qt.gui.QTextList insertList_native_cref_QTextListFormat(long __this__nativeId, long format); /** *

See QTextCursor::insertList(QTextListFormat::Style)

*/ @QtUninvokable public final io.qt.gui.@Nullable QTextList insertList(io.qt.gui.QTextListFormat.@NonNull Style style){ return insertList_native_QTextListFormat_Style(QtJambi_LibraryUtilities.internal.nativeId(this), style.value()); } @QtUninvokable private native io.qt.gui.QTextList insertList_native_QTextListFormat_Style(long __this__nativeId, int style); /** *

See QTextCursor::insertMarkdown(QString,QTextDocument::MarkdownFeatures)

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

See QTextCursor::insertTable(int,int)

*/ @QtUninvokable public final io.qt.gui.@Nullable QTextTable insertTable(int rows, int cols){ return insertTable_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), rows, cols); } @QtUninvokable private native io.qt.gui.QTextTable insertTable_native_int_int(long __this__nativeId, int rows, int cols); /** *

See QTextCursor::insertTable(int,int,QTextTableFormat)

*/ @QtUninvokable public final io.qt.gui.@Nullable QTextTable insertTable(int rows, int cols, io.qt.gui.@NonNull QTextTableFormat format){ return insertTable_native_int_int_cref_QTextTableFormat(QtJambi_LibraryUtilities.internal.nativeId(this), rows, cols, QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } @QtUninvokable private native io.qt.gui.QTextTable insertTable_native_int_int_cref_QTextTableFormat(long __this__nativeId, int rows, int cols, long format); /** *

See QTextCursor::insertText(QString)

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

See QTextCursor::insertText(QString,QTextCharFormat)

*/ @QtUninvokable public final void insertText(java.lang.@NonNull String text, io.qt.gui.@NonNull QTextCharFormat format){ insertText_native_cref_QString_cref_QTextCharFormat(QtJambi_LibraryUtilities.internal.nativeId(this), text, QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } @QtUninvokable private native void insertText_native_cref_QString_cref_QTextCharFormat(long __this__nativeId, java.lang.String text, long format); /** *

See QTextCursor::isCopyOf(QTextCursor)const

*/ @QtUninvokable public final boolean isCopyOf(io.qt.gui.@NonNull QTextCursor other){ return isCopyOf_native_cref_QTextCursor_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native boolean isCopyOf_native_cref_QTextCursor_constfct(long __this__nativeId, long other); /** *

See QTextCursor::isNull()const

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

See QTextCursor::joinPreviousEditBlock()

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

See QTextCursor::keepPositionOnInsert()const

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

See QTextCursor::mergeBlockCharFormat(QTextCharFormat)

*/ @QtUninvokable public final void mergeBlockCharFormat(io.qt.gui.@NonNull QTextCharFormat modifier){ mergeBlockCharFormat_native_cref_QTextCharFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(modifier)); } @QtUninvokable private native void mergeBlockCharFormat_native_cref_QTextCharFormat(long __this__nativeId, long modifier); /** *

See QTextCursor::mergeBlockFormat(QTextBlockFormat)

*/ @QtUninvokable public final void mergeBlockFormat(io.qt.gui.@NonNull QTextBlockFormat modifier){ mergeBlockFormat_native_cref_QTextBlockFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(modifier)); } @QtUninvokable private native void mergeBlockFormat_native_cref_QTextBlockFormat(long __this__nativeId, long modifier); /** *

See QTextCursor::mergeCharFormat(QTextCharFormat)

*/ @QtUninvokable public final void mergeCharFormat(io.qt.gui.@NonNull QTextCharFormat modifier){ mergeCharFormat_native_cref_QTextCharFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(modifier)); } @QtUninvokable private native void mergeCharFormat_native_cref_QTextCharFormat(long __this__nativeId, long modifier); /** *

See QTextCursor::movePosition(QTextCursor::MoveOperation,QTextCursor::MoveMode,int)

*/ @QtUninvokable public final boolean movePosition(io.qt.gui.QTextCursor.@NonNull MoveOperation op, io.qt.gui.QTextCursor.@NonNull MoveMode arg__2, int n){ return movePosition_native_QTextCursor_MoveOperation_QTextCursor_MoveMode_int(QtJambi_LibraryUtilities.internal.nativeId(this), op.value(), arg__2.value(), n); } @QtUninvokable private native boolean movePosition_native_QTextCursor_MoveOperation_QTextCursor_MoveMode_int(long __this__nativeId, int op, int arg__2, int n); /** *

See QTextCursor::operator<(QTextCursor)const

*/ @QtUninvokable private final boolean operator_less(io.qt.gui.@NonNull QTextCursor rhs){ return operator_less_native_cref_QTextCursor_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @QtUninvokable private native boolean operator_less_native_cref_QTextCursor_constfct(long __this__nativeId, long rhs); /** *

See QTextCursor::operator=(QTextCursor)

*/ @QtUninvokable public final void assign(io.qt.gui.@NonNull QTextCursor other){ assign_native_cref_QTextCursor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void assign_native_cref_QTextCursor(long __this__nativeId, long other); /** *

See QTextCursor::operator==(QTextCursor)const

*/ @QtUninvokable public final boolean equals(io.qt.gui.@NonNull QTextCursor rhs){ return equals_native_cref_QTextCursor_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @QtUninvokable private native boolean equals_native_cref_QTextCursor_constfct(long __this__nativeId, long rhs); /** *

See QTextCursor::position()const

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

See QTextCursor::positionInBlock()const

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

See QTextCursor::removeSelectedText()

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

See QTextCursor::select(QTextCursor::SelectionType)

*/ @QtUninvokable public final void select(io.qt.gui.QTextCursor.@NonNull SelectionType selection){ select_native_QTextCursor_SelectionType(QtJambi_LibraryUtilities.internal.nativeId(this), selection.value()); } @QtUninvokable private native void select_native_QTextCursor_SelectionType(long __this__nativeId, int selection); /** *

See QTextCursor::selectedTableCells(int*,int*,int*,int*)const

*/ @QtUninvokable public final io.qt.gui.QTextCursor.@StrictNonNull SelectedTableCells selectedTableCells(){ return selectedTableCells_native_int_ptr_int_ptr_int_ptr_int_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QTextCursor.SelectedTableCells selectedTableCells_native_int_ptr_int_ptr_int_ptr_int_ptr_constfct(long __this__nativeId); /** *

See QTextCursor::selectedText()const

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

See QTextCursor::selection()const

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

See QTextCursor::selectionEnd()const

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

See QTextCursor::selectionStart()const

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

See QTextCursor::setBlockCharFormat(QTextCharFormat)

*/ @QtUninvokable public final void setBlockCharFormat(io.qt.gui.@NonNull QTextCharFormat format){ setBlockCharFormat_native_cref_QTextCharFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } @QtUninvokable private native void setBlockCharFormat_native_cref_QTextCharFormat(long __this__nativeId, long format); /** *

See QTextCursor::setBlockFormat(QTextBlockFormat)

*/ @QtUninvokable public final void setBlockFormat(io.qt.gui.@NonNull QTextBlockFormat format){ setBlockFormat_native_cref_QTextBlockFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } @QtUninvokable private native void setBlockFormat_native_cref_QTextBlockFormat(long __this__nativeId, long format); /** *

See QTextCursor::setCharFormat(QTextCharFormat)

*/ @QtUninvokable public final void setCharFormat(io.qt.gui.@NonNull QTextCharFormat format){ setCharFormat_native_cref_QTextCharFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } @QtUninvokable private native void setCharFormat_native_cref_QTextCharFormat(long __this__nativeId, long format); /** *

See QTextCursor::setKeepPositionOnInsert(bool)

*/ @QtUninvokable public final void setKeepPositionOnInsert(boolean b){ setKeepPositionOnInsert_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), b); } @QtUninvokable private native void setKeepPositionOnInsert_native_bool(long __this__nativeId, boolean b); /** *

See QTextCursor::setPosition(int,QTextCursor::MoveMode)

*/ @QtUninvokable public final void setPosition(int pos, io.qt.gui.QTextCursor.@NonNull MoveMode mode){ setPosition_native_int_QTextCursor_MoveMode(QtJambi_LibraryUtilities.internal.nativeId(this), pos, mode.value()); } @QtUninvokable private native void setPosition_native_int_QTextCursor_MoveMode(long __this__nativeId, int pos, int mode); /** *

See QTextCursor::setVerticalMovementX(int)

*/ @QtUninvokable public final void setVerticalMovementX(int x){ setVerticalMovementX_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), x); } @QtUninvokable private native void setVerticalMovementX_native_int(long __this__nativeId, int x); /** *

See QTextCursor::setVisualNavigation(bool)

*/ @QtUninvokable public final void setVisualNavigation(boolean b){ setVisualNavigation_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), b); } @QtUninvokable private native void setVisualNavigation_native_bool(long __this__nativeId, boolean b); /** *

See QTextCursor::swap(QTextCursor&)

*/ @QtUninvokable public final void swap(io.qt.gui.@StrictNonNull QTextCursor other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QTextCursor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void swap_native_ref_QTextCursor(long __this__nativeId, long other); /** *

See QTextCursor::verticalMovementX()const

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

See QTextCursor::visualNavigation()const

*/ @QtUninvokable public final boolean visualNavigation(){ return visualNavigation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean visualNavigation_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QTextCursor(QPrivateConstructor p) { super(p); } /** *

See QTextCursor::operator==(QTextCursor)const

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QTextCursor) { return equals((io.qt.gui.QTextCursor) other); } return false; } /** *

See QTextCursor::operator<(QTextCursor)const

*/ /** * {@inheritDoc} */ @QtUninvokable public int compareTo(io.qt.gui.@StrictNonNull QTextCursor other) { if (equals(other)) return 0; else if (operator_less(other)) return -1; else return 1; } /** * Returns the objects's hash code computed by qHash(QTextCursor). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** * Result type for {@link QTextCursor#selectedTableCells()}. */ public final static class SelectedTableCells { private SelectedTableCells(int firstRow, int numRows, int firstColumn, int numColumns) { this.firstRow = firstRow; this.numRows = numRows; this.firstColumn = firstColumn; this.numColumns = numColumns; } public final int firstRow; public final int numRows; public final int firstColumn; public final int numColumns; } /** *

Creates and returns a copy of this object.

See QTextCursor::QTextCursor(QTextCursor)

*/ @QtUninvokable @Override public QTextCursor clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QTextCursor clone_native(long __this_nativeId); /** *

Overloaded function for {@link #insertImage(io.qt.gui.QImage, java.lang.String)} * with name = (String)null.

*/ @QtUninvokable public final void insertImage(io.qt.gui.@NonNull QImage image) { insertImage(image, (String)null); } /** *

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

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

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

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

Overloaded function for {@link #movePosition(io.qt.gui.QTextCursor.MoveOperation, io.qt.gui.QTextCursor.MoveMode, int)} * with n = 1.

*/ @QtUninvokable public final boolean movePosition(io.qt.gui.QTextCursor.@NonNull MoveOperation op, io.qt.gui.QTextCursor.@NonNull MoveMode arg__2) { return movePosition(op, arg__2, (int)1); } /** *

Overloaded function for {@link #movePosition(io.qt.gui.QTextCursor.MoveOperation, io.qt.gui.QTextCursor.MoveMode, int)}

*

with:

    *
  • arg__2 = io.qt.gui.QTextCursor.MoveMode.MoveAnchor
  • *
  • n = 1
  • *
*/ @QtUninvokable public final boolean movePosition(io.qt.gui.QTextCursor.@NonNull MoveOperation op) { return movePosition(op, io.qt.gui.QTextCursor.MoveMode.MoveAnchor, (int)1); } /** *

Overloaded function for {@link #setPosition(int, io.qt.gui.QTextCursor.MoveMode)} * with mode = io.qt.gui.QTextCursor.MoveMode.MoveAnchor.

*/ @QtUninvokable public final void setPosition(int pos) { setPosition(pos, io.qt.gui.QTextCursor.MoveMode.MoveAnchor); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy