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

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

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

import io.qt.*;


/**
 * 

Used to lay out and render text

*

Java wrapper for Qt class QTextLayout

*/ public class QTextLayout extends QtObject { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QTextLayout::CursorMode

*/ public enum CursorMode implements QtEnumerator { /** *

Representing QTextLayout::SkipCharacters

*/ SkipCharacters(0), /** *

Representing QTextLayout::SkipWords

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

Java wrapper for Qt enum QTextLayout::GlyphRunRetrievalFlag

* * @see GlyphRunRetrievalFlags */ public enum GlyphRunRetrievalFlag implements QtShortFlagEnumerator { /** *

Representing QTextLayout::RetrieveGlyphIndexes

*/ RetrieveGlyphIndexes((short)1), /** *

Representing QTextLayout::RetrieveGlyphPositions

*/ RetrieveGlyphPositions((short)2), /** *

Representing QTextLayout::RetrieveStringIndexes

*/ RetrieveStringIndexes((short)4), /** *

Representing QTextLayout::RetrieveString

*/ RetrieveString((short)8), /** *

Representing QTextLayout::DefaultRetrievalFlags

*/ DefaultRetrievalFlags((short)3), /** *

Representing QTextLayout::RetrieveAll

*/ RetrieveAll((short)-1); static { QtJambi_LibraryUtilities.initialize(); } private GlyphRunRetrievalFlag(short value) { this.value = value; } /** * {@inheritDoc} */ public short value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public @NonNull GlyphRunRetrievalFlags asFlags() { return new GlyphRunRetrievalFlags(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull GlyphRunRetrievalFlags combined(@NonNull GlyphRunRetrievalFlag 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 GlyphRunRetrievalFlags cleared(@NonNull GlyphRunRetrievalFlag e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link GlyphRunRetrievalFlags} from the entries. * @param values entries * @return new flag */ public static @NonNull GlyphRunRetrievalFlags flags(@Nullable GlyphRunRetrievalFlag @NonNull... values) { return new GlyphRunRetrievalFlags(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull GlyphRunRetrievalFlag resolve(short value) { switch (value) { case 1: return RetrieveGlyphIndexes; case 2: return RetrieveGlyphPositions; case 4: return RetrieveStringIndexes; case 8: return RetrieveString; case 3: return DefaultRetrievalFlags; case -1: return RetrieveAll; default: throw new QNoSuchEnumValueException(value); } } private final short value; } /** * {@link QFlags} type for enum {@link GlyphRunRetrievalFlag} */ public static final class GlyphRunRetrievalFlags extends QFlags implements Comparable { private static final long serialVersionUID = 0x992db551dd4c1e71L; static { QtJambi_LibraryUtilities.initialize(); } /** * Creates a new GlyphRunRetrievalFlags where the flags in args are set. * @param args enum entries */ public GlyphRunRetrievalFlags(@Nullable GlyphRunRetrievalFlag @NonNull... args){ super(args); } /** * Creates a new GlyphRunRetrievalFlags with given value. * @param value */ public GlyphRunRetrievalFlags(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new GlyphRunRetrievalFlags */ @Override public final @NonNull GlyphRunRetrievalFlags combined(@StrictNonNull GlyphRunRetrievalFlag e){ return new GlyphRunRetrievalFlags(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final @NonNull GlyphRunRetrievalFlags setFlag(@Nullable GlyphRunRetrievalFlag 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 GlyphRunRetrievalFlags setFlag(@Nullable GlyphRunRetrievalFlag 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 GlyphRunRetrievalFlags. * @return array of enum entries */ @Override public final @NonNull GlyphRunRetrievalFlag @NonNull[] flags(){ return super.flags(GlyphRunRetrievalFlag.values()); } /** * {@inheritDoc} */ @Override public final @NonNull GlyphRunRetrievalFlags clone(){ return new GlyphRunRetrievalFlags(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(@StrictNonNull GlyphRunRetrievalFlags other){ return Integer.compare(value(), other.value()); } } /** *

QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's content

*

Java wrapper for Qt class QTextLayout::FormatRange

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

See QTextLayout::FormatRange::FormatRange()

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

See QTextLayout::FormatRange::FormatRange(QTextLayout::FormatRange)

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

See QTextLayout::FormatRange::FormatRange{int,int,QTextCharFormat}

*/ public FormatRange(int start, int length, io.qt.gui.@NonNull QTextCharFormat format){ super((QPrivateConstructor)null); initialize_native(this, start, length, format); } private native static void initialize_native(FormatRange instance, int start, int length, io.qt.gui.QTextCharFormat format); /** *

See operator==(QTextLayout::FormatRange,QTextLayout::FormatRange)

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

See QTextLayout::FormatRange::format

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

See QTextLayout::FormatRange::format

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

See QTextLayout::FormatRange::length

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

See QTextLayout::FormatRange::length

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

See QTextLayout::FormatRange::start

*/ @QtUninvokable public final void setStart(int start){ setStart_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), start); } @QtUninvokable private native void setStart_native_int(long __this__nativeId, int start); /** *

See QTextLayout::FormatRange::start

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

See operator==(QTextLayout::FormatRange,QTextLayout::FormatRange)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QTextLayout.FormatRange) { return equals((io.qt.gui.QTextLayout.FormatRange) other); } return false; } /** * Returns the objects's hash code computed by qHash(QTextLayout::FormatRange). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QTextLayout::FormatRange::FormatRange(QTextLayout::FormatRange)

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

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

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextCharFormat getFormat() { return format(); } /** * @hidden *

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

*/ @QtUninvokable public final int getLength() { return length(); } /** * @hidden *

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

*/ @QtUninvokable public final int getStart() { return start(); } } /** *

See QTextLayout::QTextLayout()

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

See QTextLayout::QTextLayout(QString)

*/ public QTextLayout(java.lang.@NonNull String text){ super((QPrivateConstructor)null); initialize_native(this, text); } private native static void initialize_native(QTextLayout instance, java.lang.String text); /** *

See QTextLayout::QTextLayout(QString,QFont,const QPaintDevice*)

*/ public QTextLayout(java.lang.@NonNull String text, io.qt.gui.@NonNull QFont font, io.qt.gui.@Nullable QPaintDevice paintdevice){ super((QPrivateConstructor)null); initialize_native(this, text, font, paintdevice); } private native static void initialize_native(QTextLayout instance, java.lang.String text, io.qt.gui.QFont font, io.qt.gui.QPaintDevice paintdevice); /** *

See QTextLayout::QTextLayout(QTextBlock)

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

See QTextLayout::beginLayout()

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

See QTextLayout::boundingRect()const

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

See QTextLayout::cacheEnabled()const

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

See QTextLayout::clearFormats()

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

See QTextLayout::clearLayout()

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

See QTextLayout::createLine()

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

See QTextLayout::cursorMoveStyle()const

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

See QTextLayout::draw(QPainter*,QPointF,QList<QTextLayout::FormatRange>,QRectF)const

*/ @QtUninvokable private final void draw(io.qt.gui.@Nullable QPainter p, io.qt.core.@NonNull QPointF pos, java.util.@NonNull Collection selections, io.qt.core.@NonNull QRectF clip){ draw_native_QPainter_ptr_cref_QPointF_cref_QList_cref_QRectF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p), QtJambi_LibraryUtilities.internal.checkedNativeId(pos), selections, QtJambi_LibraryUtilities.internal.checkedNativeId(clip)); } @QtUninvokable private native void draw_native_QPainter_ptr_cref_QPointF_cref_QList_cref_QRectF_constfct(long __this__nativeId, long p, long pos, java.util.Collection selections, long clip); /** *

See QTextLayout::drawCursor(QPainter*,QPointF,int)const

*/ @QtUninvokable public final void drawCursor(io.qt.gui.@Nullable QPainter p, io.qt.core.@NonNull QPointF pos, int cursorPosition){ drawCursor_native_QPainter_ptr_cref_QPointF_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p), QtJambi_LibraryUtilities.internal.checkedNativeId(pos), cursorPosition); } @QtUninvokable private native void drawCursor_native_QPainter_ptr_cref_QPointF_int_constfct(long __this__nativeId, long p, long pos, int cursorPosition); /** *

See QTextLayout::drawCursor(QPainter*,QPointF,int,int)const

*/ @QtUninvokable public final void drawCursor(io.qt.gui.@Nullable QPainter p, io.qt.core.@NonNull QPointF pos, int cursorPosition, int width){ drawCursor_native_QPainter_ptr_cref_QPointF_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p), QtJambi_LibraryUtilities.internal.checkedNativeId(pos), cursorPosition, width); } @QtUninvokable private native void drawCursor_native_QPainter_ptr_cref_QPointF_int_int_constfct(long __this__nativeId, long p, long pos, int cursorPosition, int width); /** *

See QTextLayout::endLayout()

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

See QTextLayout::font()const

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

See QTextLayout::formats()const

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

See QTextLayout::glyphRuns(int,int)const

*/ @QtUninvokable public final io.qt.core.@NonNull QList glyphRuns(int from, int length){ return glyphRuns_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), from, length); } @QtUninvokable private native io.qt.core.QList glyphRuns_native_int_int_constfct(long __this__nativeId, int from, int length); /** *

See QTextLayout::glyphRuns(int,int,QTextLayout::GlyphRunRetrievalFlags)const

*/ @QtUninvokable public final io.qt.core.@NonNull QList glyphRuns(int from, int length, io.qt.gui.QTextLayout.@NonNull GlyphRunRetrievalFlags flags){ return glyphRuns_native_int_int_QTextLayout_GlyphRunRetrievalFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), from, length, flags.value()); } @QtUninvokable private native io.qt.core.QList glyphRuns_native_int_int_QTextLayout_GlyphRunRetrievalFlags_constfct(long __this__nativeId, int from, int length, int flags); /** *

See QTextLayout::isValidCursorPosition(int)const

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

See QTextLayout::leftCursorPosition(int)const

*/ @QtUninvokable public final int leftCursorPosition(int oldPos){ return leftCursorPosition_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), oldPos); } @QtUninvokable private native int leftCursorPosition_native_int_constfct(long __this__nativeId, int oldPos); /** *

See QTextLayout::lineAt(int)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextLine lineAt(int i){ return lineAt_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), i); } @QtUninvokable private native io.qt.gui.QTextLine lineAt_native_int_constfct(long __this__nativeId, int i); /** *

See QTextLayout::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 QTextLayout::lineForTextPosition(int)const

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

See QTextLayout::maximumWidth()const

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

See QTextLayout::minimumWidth()const

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

See QTextLayout::nextCursorPosition(int,QTextLayout::CursorMode)const

*/ @QtUninvokable public final int nextCursorPosition(int oldPos, io.qt.gui.QTextLayout.@NonNull CursorMode mode){ return nextCursorPosition_native_int_QTextLayout_CursorMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), oldPos, mode.value()); } @QtUninvokable private native int nextCursorPosition_native_int_QTextLayout_CursorMode_constfct(long __this__nativeId, int oldPos, int mode); /** *

See QTextLayout::position()const

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

See QTextLayout::preeditAreaPosition()const

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

See QTextLayout::preeditAreaText()const

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

See QTextLayout::previousCursorPosition(int,QTextLayout::CursorMode)const

*/ @QtUninvokable public final int previousCursorPosition(int oldPos, io.qt.gui.QTextLayout.@NonNull CursorMode mode){ return previousCursorPosition_native_int_QTextLayout_CursorMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), oldPos, mode.value()); } @QtUninvokable private native int previousCursorPosition_native_int_QTextLayout_CursorMode_constfct(long __this__nativeId, int oldPos, int mode); /** *

See QTextLayout::rightCursorPosition(int)const

*/ @QtUninvokable public final int rightCursorPosition(int oldPos){ return rightCursorPosition_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), oldPos); } @QtUninvokable private native int rightCursorPosition_native_int_constfct(long __this__nativeId, int oldPos); /** *

See QTextLayout::setCacheEnabled(bool)

*/ @QtUninvokable public final void setCacheEnabled(boolean enable){ setCacheEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable); } @QtUninvokable private native void setCacheEnabled_native_bool(long __this__nativeId, boolean enable); /** *

See QTextLayout::setCursorMoveStyle(Qt::CursorMoveStyle)

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

See QTextLayout::setFlags(int)

*/ @QtUninvokable public final void setFlags(int flags){ setFlags_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), flags); } @QtUninvokable private native void setFlags_native_int(long __this__nativeId, int flags); /** *

See QTextLayout::setFont(QFont)

*/ @QtUninvokable public final void setFont(io.qt.gui.@NonNull QFont f){ setFont_native_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(f)); } @QtUninvokable private native void setFont_native_cref_QFont(long __this__nativeId, long f); /** *

See QTextLayout::setFormats(QList<QTextLayout::FormatRange>)

*/ @QtUninvokable public final void setFormats(java.util.@NonNull Collection overrides){ setFormats_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), overrides); } @QtUninvokable private native void setFormats_native_cref_QList(long __this__nativeId, java.util.Collection overrides); /** *

See QTextLayout::setPosition(QPointF)

*/ @QtUninvokable public final void setPosition(io.qt.core.@NonNull QPointF p){ setPosition_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p)); } @QtUninvokable private native void setPosition_native_cref_QPointF(long __this__nativeId, long p); /** *

See QTextLayout::setPreeditArea(int,QString)

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

See QTextLayout::setRawFont(QRawFont)

*/ @QtUninvokable public final void setRawFont(io.qt.gui.@NonNull QRawFont rawFont){ setRawFont_native_cref_QRawFont(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rawFont)); } @QtUninvokable private native void setRawFont_native_cref_QRawFont(long __this__nativeId, long rawFont); /** *

See QTextLayout::setText(QString)

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

See QTextLayout::setTextOption(QTextOption)

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

See QTextLayout::text()const

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

See QTextLayout::textOption()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTextOption textOption(){ return textOption_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QTextOption textOption_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QTextLayout(QPrivateConstructor p) { super(p); } /** *

Overloaded constructor for {@link #QTextLayout(java.lang.String, io.qt.gui.QFont, io.qt.gui.QPaintDevice)} * with paintdevice = null.

*/ public QTextLayout(java.lang.@NonNull String text, io.qt.gui.@NonNull QFont font) { this(text, font, (io.qt.gui.QPaintDevice)null); } /** *

Overloaded constructor for {@link #QTextLayout(java.lang.String, java.lang.String, io.qt.gui.QPaintDevice)} * with paintdevice = null.

*/ public QTextLayout(java.lang.@NonNull String text, java.lang.@NonNull String font) { this(text, font, (io.qt.gui.QPaintDevice)null); } /** *

Overloaded constructor for {@link #QTextLayout(java.lang.String, io.qt.gui.QFont, io.qt.gui.QPaintDevice)}.

*/ public QTextLayout(java.lang.@NonNull String text, java.lang.@NonNull String font, io.qt.gui.@Nullable QPaintDevice paintdevice) { this(text, new io.qt.gui.QFont(font), paintdevice); } /** *

Overloaded function for {@link #draw(io.qt.gui.QPainter, io.qt.core.QPointF, java.util.Collection, io.qt.core.QRectF)} * with clip = new io.qt.core.QRectF().

*/ @QtUninvokable private final void draw(io.qt.gui.@Nullable QPainter p, io.qt.core.@NonNull QPointF pos, java.util.@NonNull Collection selections) { draw(p, pos, selections, new io.qt.core.QRectF()); } /** *

Overloaded function for {@link #draw(io.qt.gui.QPainter, io.qt.core.QPointF, java.util.Collection, io.qt.core.QRectF)}

*

with:

    *
  • selections = java.util.Collections.emptyList()
  • *
  • clip = new io.qt.core.QRectF()
  • *
*/ @QtUninvokable private final void draw(io.qt.gui.@Nullable QPainter p, io.qt.core.@NonNull QPointF pos) { draw(p, pos, java.util.Collections.emptyList(), new io.qt.core.QRectF()); } /** *

Overloaded function for {@link #draw(io.qt.gui.QPainter, io.qt.core.QPoint, java.util.Collection, io.qt.core.QRectF)} * with clip = new io.qt.core.QRectF().

*/ @QtUninvokable private final void draw(io.qt.gui.@Nullable QPainter p, io.qt.core.@NonNull QPoint pos, java.util.@NonNull Collection selections) { draw(p, pos, selections, new io.qt.core.QRectF()); } /** *

Overloaded function for {@link #draw(io.qt.gui.QPainter, io.qt.core.QPoint, java.util.Collection, io.qt.core.QRectF)}

*

with:

    *
  • selections = java.util.Collections.emptyList()
  • *
  • clip = new io.qt.core.QRectF()
  • *
*/ @QtUninvokable private final void draw(io.qt.gui.@Nullable QPainter p, io.qt.core.@NonNull QPoint pos) { draw(p, pos, java.util.Collections.emptyList(), new io.qt.core.QRectF()); } /** *

Overloaded function for {@link #draw(io.qt.gui.QPainter, io.qt.core.QPointF, java.util.Collection, io.qt.core.QRectF)}.

*/ @QtUninvokable private final void draw(io.qt.gui.@Nullable QPainter p, io.qt.core.@NonNull QPoint pos, java.util.@NonNull Collection selections, io.qt.core.@NonNull QRectF clip) { draw(p, new io.qt.core.QPointF(pos), selections, clip); } /** *

Overloaded function for {@link #draw(io.qt.gui.QPainter, io.qt.core.QPointF, java.util.Collection, io.qt.core.QRectF)}.

*/ @QtUninvokable private final void draw(io.qt.gui.@Nullable QPainter p, io.qt.core.@NonNull QPointF pos, java.util.@NonNull Collection selections, io.qt.core.@NonNull QRect clip) { draw(p, pos, selections, new io.qt.core.QRectF(clip)); } /** *

Overloaded function for {@link #draw(io.qt.gui.QPainter, io.qt.core.QPointF, java.util.Collection, io.qt.core.QRectF)}.

*/ @QtUninvokable private final void draw(io.qt.gui.@Nullable QPainter p, io.qt.core.@NonNull QPoint pos, java.util.@NonNull Collection selections, io.qt.core.@NonNull QRect clip) { draw(p, new io.qt.core.QPointF(pos), selections, new io.qt.core.QRectF(clip)); } /** *

Overloaded function for {@link #drawCursor(io.qt.gui.QPainter, io.qt.core.QPointF, int)}.

*/ @QtUninvokable public final void drawCursor(io.qt.gui.@Nullable QPainter p, io.qt.core.@NonNull QPoint pos, int cursorPosition) { drawCursor(p, new io.qt.core.QPointF(pos), cursorPosition); } /** *

Overloaded function for {@link #drawCursor(io.qt.gui.QPainter, io.qt.core.QPointF, int, int)}.

*/ @QtUninvokable public final void drawCursor(io.qt.gui.@Nullable QPainter p, io.qt.core.@NonNull QPoint pos, int cursorPosition, int width) { drawCursor(p, new io.qt.core.QPointF(pos), cursorPosition, width); } /** *

Overloaded function for {@link #glyphRuns(int, int)} * with length = -1.

*/ @QtUninvokable public final io.qt.core.@NonNull QList glyphRuns(int from) { return glyphRuns(from, (int)-1); } /** *

Overloaded function for {@link #glyphRuns(int, int)}

*

with:

    *
  • from = -1
  • *
  • length = -1
  • *
*/ @QtUninvokable public final io.qt.core.@NonNull QList glyphRuns() { return glyphRuns((int)-1, (int)-1); } /** *

Overloaded function for {@link #glyphRuns(int, int, io.qt.gui.QTextLayout.GlyphRunRetrievalFlags)}.

*/ @QtUninvokable public final io.qt.core.@NonNull QList glyphRuns(int from, int length, io.qt.gui.QTextLayout.@NonNull GlyphRunRetrievalFlag @NonNull... flags) { return glyphRuns(from, length, new io.qt.gui.QTextLayout.GlyphRunRetrievalFlags(flags)); } /** *

Overloaded function for {@link #nextCursorPosition(int, io.qt.gui.QTextLayout.CursorMode)} * with mode = io.qt.gui.QTextLayout.CursorMode.SkipCharacters.

*/ @QtUninvokable public final int nextCursorPosition(int oldPos) { return nextCursorPosition(oldPos, io.qt.gui.QTextLayout.CursorMode.SkipCharacters); } /** *

Overloaded function for {@link #previousCursorPosition(int, io.qt.gui.QTextLayout.CursorMode)} * with mode = io.qt.gui.QTextLayout.CursorMode.SkipCharacters.

*/ @QtUninvokable public final int previousCursorPosition(int oldPos) { return previousCursorPosition(oldPos, io.qt.gui.QTextLayout.CursorMode.SkipCharacters); } /** *

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

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

Overloaded function for {@link #setPosition(io.qt.core.QPointF)}.

*/ @QtUninvokable public final void setPosition(io.qt.core.@NonNull QPoint p) { setPosition(new io.qt.core.QPointF(p)); } /** *

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy