java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QStaticText
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QStaticText extends QtObject implements Cloneable
Enables optimized drawing of text when the text and its layout is updated rarely
Java wrapper for Qt class QStaticText
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QStaticText.PerformanceHint
Java wrapper for Qt enum QStaticText::PerformanceHint -
Constructor Summary
Constructors Modifier Constructor Description QStaticText()
QStaticText(QStaticText other)
protected
QStaticText(QtObject.QPrivateConstructor p)
Constructor for internal use only.QStaticText(String text)
-
Method Summary
Modifier and Type Method Description QStaticText
clone()
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.int
hashCode()
QStaticText.PerformanceHint
performanceHint()
void
prepare()
Overloaded function forprepare(io.qt.gui.QTransform, io.qt.gui.QFont)
void
prepare(QTransform matrix)
Overloaded function forprepare(io.qt.gui.QTransform, io.qt.gui.QFont)
withfont = new io.qt.gui.QFont()
.void
prepare(QTransform matrix, QFont font)
void
setPerformanceHint(QStaticText.PerformanceHint performanceHint)
void
setText(String text)
void
setTextFormat(Qt.TextFormat textFormat)
void
setTextOption(QTextOption textOption)
void
setTextWidth(double textWidth)
QSizeF
size()
void
swap(QStaticText other)
String
text()
Qt.TextFormat
textFormat()
QTextOption
textOption()
double
textWidth()
-
Constructor Details
-
QStaticText
public QStaticText() -
QStaticText
-
QStaticText
-
QStaticText
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
performanceHint
-
prepare
Overloaded function for
prepare(io.qt.gui.QTransform, io.qt.gui.QFont)
withfont = new io.qt.gui.QFont()
. -
prepare
Overloaded function for
prepare(io.qt.gui.QTransform, io.qt.gui.QFont)
with:
matrix = new io.qt.gui.QTransform()
font = new io.qt.gui.QFont()
-
prepare
-
setPerformanceHint
-
setText
-
setTextFormat
-
setTextOption
-
setTextWidth
-
size
-
swap
-
text
-
textFormat
-
textOption
-
textWidth
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
clone
-