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

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

The newest version!
package io.qt.gui;


/**
 * 

Enables optimized drawing of text when the text and its layout is updated rarely

*

Java wrapper for Qt class QStaticText

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

Java wrapper for Qt enum QStaticText::PerformanceHint

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

See QStaticText::QStaticText()

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

See QStaticText::QStaticText(QStaticText)

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

See QStaticText::QStaticText(QString)

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

See QStaticText::operator==(QStaticText)const

*/ @io.qt.QtUninvokable private final boolean operator_equal(io.qt.gui.QStaticText arg__1){ return operator_equal_native_cref_QStaticText_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QStaticText_constfct(long __this__nativeId, long arg__1); /** *

See QStaticText::performanceHint()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QStaticText.PerformanceHint performanceHint(){ return io.qt.gui.QStaticText.PerformanceHint.resolve(performanceHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int performanceHint_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #prepare(io.qt.gui.QTransform, io.qt.gui.QFont)} * with font = new io.qt.gui.QFont().

*/ @io.qt.QtUninvokable public final void prepare(io.qt.gui.QTransform matrix) { prepare(matrix, new io.qt.gui.QFont()); } /** *

Overloaded function for {@link #prepare(io.qt.gui.QTransform, io.qt.gui.QFont)}

*

with:

    *
  • matrix = new io.qt.gui.QTransform()
  • *
  • font = new io.qt.gui.QFont()
  • *
*/ @io.qt.QtUninvokable public final void prepare() { prepare(new io.qt.gui.QTransform(), new io.qt.gui.QFont()); } /** *

See QStaticText::prepare(QTransform,QFont)

*/ @io.qt.QtUninvokable public final void prepare(io.qt.gui.QTransform matrix, io.qt.gui.QFont font){ prepare_native_cref_QTransform_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(matrix), QtJambi_LibraryUtilities.internal.checkedNativeId(font)); } @io.qt.QtUninvokable private native void prepare_native_cref_QTransform_cref_QFont(long __this__nativeId, long matrix, long font); /** *

See QStaticText::setPerformanceHint(QStaticText::PerformanceHint)

*/ @io.qt.QtUninvokable public final void setPerformanceHint(io.qt.gui.QStaticText.PerformanceHint performanceHint){ setPerformanceHint_native_QStaticText_PerformanceHint(QtJambi_LibraryUtilities.internal.nativeId(this), performanceHint.value()); } @io.qt.QtUninvokable private native void setPerformanceHint_native_QStaticText_PerformanceHint(long __this__nativeId, int performanceHint); /** *

See QStaticText::setText(QString)

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

See QStaticText::setTextFormat(Qt::TextFormat)

*/ @io.qt.QtUninvokable public final void setTextFormat(io.qt.core.Qt.TextFormat textFormat){ setTextFormat_native_Qt_TextFormat(QtJambi_LibraryUtilities.internal.nativeId(this), textFormat.value()); } @io.qt.QtUninvokable private native void setTextFormat_native_Qt_TextFormat(long __this__nativeId, int textFormat); /** *

See QStaticText::setTextOption(QTextOption)

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

See QStaticText::setTextWidth(qreal)

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

See QStaticText::size()const

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

See QStaticText::swap(QStaticText&)

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

See QStaticText::text()const

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

See QStaticText::textFormat()const

*/ @io.qt.QtUninvokable public final io.qt.core.Qt.TextFormat textFormat(){ return io.qt.core.Qt.TextFormat.resolve(textFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int textFormat_native_constfct(long __this__nativeId); /** *

See QStaticText::textOption()const

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

See QStaticText::textWidth()const

*/ @io.qt.QtUninvokable public final double textWidth(){ return textWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double textWidth_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QStaticText(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QStaticText) { return operator_equal((io.qt.gui.QStaticText) other); } return false; } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); @Override public QStaticText clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QStaticText clone_native(long __this_nativeId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy