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

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

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


/**
 * 

Represents a line of text inside a QTextLayout

*

Java wrapper for Qt class QTextLine

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

Java wrapper for Qt enum QTextLine::CursorPosition

*/ public enum CursorPosition implements io.qt.QtEnumerator { CursorBetweenCharacters(0), CursorOnCharacter(1); private CursorPosition(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 CursorPosition resolve(int value) { switch (value) { case 0: return CursorBetweenCharacters; case 1: return CursorOnCharacter; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QTextLine::Edge

*/ public enum Edge implements io.qt.QtEnumerator { Leading(0), Trailing(1); private Edge(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 Edge resolve(int value) { switch (value) { case 0: return Leading; case 1: return Trailing; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QTextLine::QTextLine()

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

See QTextLine::ascent()const

*/ @io.qt.QtUninvokable public final double ascent(){ return ascent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double ascent_native_constfct(long __this__nativeId); /** *

See QTextLine::descent()const

*/ @io.qt.QtUninvokable public final double descent(){ return descent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double descent_native_constfct(long __this__nativeId); /** *

See QTextLine::draw(QPainter*,QPointF)const

*/ @io.qt.QtUninvokable public final void draw(io.qt.gui.QPainter painter, io.qt.core.QPointF position){ draw_native_QPainter_ptr_cref_QPointF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(position)); } @io.qt.QtUninvokable private native void draw_native_QPainter_ptr_cref_QPointF_constfct(long __this__nativeId, long painter, long position); /** *

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

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

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

*

with:

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

See QTextLine::glyphRuns(int,int)const

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

See QTextLine::height()const

*/ @io.qt.QtUninvokable public final double height(){ return height_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double height_native_constfct(long __this__nativeId); /** *

See QTextLine::horizontalAdvance()const

*/ @io.qt.QtUninvokable public final double horizontalAdvance(){ return horizontalAdvance_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double horizontalAdvance_native_constfct(long __this__nativeId); /** *

See QTextLine::isValid()const

*/ @io.qt.QtUninvokable public final boolean isValid(){ return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isValid_native_constfct(long __this__nativeId); /** *

See QTextLine::leading()const

*/ @io.qt.QtUninvokable public final double leading(){ return leading_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double leading_native_constfct(long __this__nativeId); /** *

See QTextLine::leadingIncluded()const

*/ @io.qt.QtUninvokable public final boolean leadingIncluded(){ return leadingIncluded_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean leadingIncluded_native_constfct(long __this__nativeId); /** *

See QTextLine::lineNumber()const

*/ @io.qt.QtUninvokable public final int lineNumber(){ return lineNumber_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int lineNumber_native_constfct(long __this__nativeId); /** *

See QTextLine::naturalTextRect()const

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

See QTextLine::naturalTextWidth()const

*/ @io.qt.QtUninvokable public final double naturalTextWidth(){ return naturalTextWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double naturalTextWidth_native_constfct(long __this__nativeId); /** *

See QTextLine::position()const

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

See QTextLine::rect()const

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

See QTextLine::setLeadingIncluded(bool)

*/ @io.qt.QtUninvokable public final void setLeadingIncluded(boolean included){ setLeadingIncluded_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), included); } @io.qt.QtUninvokable private native void setLeadingIncluded_native_bool(long __this__nativeId, boolean included); /** *

See QTextLine::setLineWidth(qreal)

*/ @io.qt.QtUninvokable public final void setLineWidth(double width){ setLineWidth_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), width); } @io.qt.QtUninvokable private native void setLineWidth_native_qtjambireal(long __this__nativeId, double width); /** *

See QTextLine::setNumColumns(int)

*/ @io.qt.QtUninvokable public final void setNumColumns(int columns){ setNumColumns_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), columns); } @io.qt.QtUninvokable private native void setNumColumns_native_int(long __this__nativeId, int columns); /** *

See QTextLine::setNumColumns(int,qreal)

*/ @io.qt.QtUninvokable public final void setNumColumns(int columns, double alignmentWidth){ setNumColumns_native_int_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), columns, alignmentWidth); } @io.qt.QtUninvokable private native void setNumColumns_native_int_qtjambireal(long __this__nativeId, int columns, double alignmentWidth); /** *

See QTextLine::setPosition(QPointF)

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

See QTextLine::textLength()const

*/ @io.qt.QtUninvokable public final int textLength(){ return textLength_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int textLength_native_constfct(long __this__nativeId); /** *

See QTextLine::textStart()const

*/ @io.qt.QtUninvokable public final int textStart(){ return textStart_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int textStart_native_constfct(long __this__nativeId); /** *

See QTextLine::width()const

*/ @io.qt.QtUninvokable public final double width(){ return width_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double width_native_constfct(long __this__nativeId); /** *

See QTextLine::x()const

*/ @io.qt.QtUninvokable public final double x(){ return x_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double x_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #xToCursor(double, io.qt.gui.QTextLine.CursorPosition)} * with arg__2 = io.qt.gui.QTextLine.CursorPosition.CursorBetweenCharacters.

*/ @io.qt.QtUninvokable public final int xToCursor(double x) { return xToCursor(x, io.qt.gui.QTextLine.CursorPosition.CursorBetweenCharacters); } /** *

See QTextLine::xToCursor(qreal,QTextLine::CursorPosition)const

*/ @io.qt.QtUninvokable public final int xToCursor(double x, io.qt.gui.QTextLine.CursorPosition arg__2){ return xToCursor_native_qtjambireal_QTextLine_CursorPosition_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), x, arg__2.value()); } @io.qt.QtUninvokable private native int xToCursor_native_qtjambireal_QTextLine_CursorPosition_constfct(long __this__nativeId, double x, int arg__2); /** *

See QTextLine::y()const

*/ @io.qt.QtUninvokable public final double y(){ return y_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double y_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QTextLine(QPrivateConstructor p) { super(p); } @Override public QTextLine clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QTextLine clone_native(long __this_nativeId); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy