- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Font metrics information
Java wrapper for Qt class QFontMetrics
-
Constructor Summary
ConstructorDescriptionQFontMetrics
(QFont arg__1) QFontMetrics
(QFontMetrics arg__1) QFontMetrics
(QFont font, QPaintDevice pd) QFontMetrics
(String arg__1) Overloaded constructor forQFontMetrics(io.qt.gui.QFont)
.QFontMetrics
(String font, QPaintDevice pd) Overloaded constructor forQFontMetrics(io.qt.gui.QFont, io.qt.gui.QPaintDevice)
. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
ascent()
final void
assign
(QFontMetrics arg__1) final int
final QRect
boundingRect
(char arg__1) final QRect
boundingRect
(int x, int y, int w, int h, int flags, String text) Overloaded function forboundingRect(int, int, int, int, int, java.lang.String, int, int[])
final QRect
boundingRect
(int x, int y, int w, int h, int flags, String text, int tabstops) Overloaded function forboundingRect(int, int, int, int, int, java.lang.String, int, int[])
withtabarray = null
.final QRect
boundingRect
(int x, int y, int w, int h, int flags, String text, int tabstops, int[] tabarray) final QRect
boundingRect
(QRect r, int flags, String text) Overloaded function forboundingRect(io.qt.core.QRect, int, java.lang.String, int, int[])
final QRect
boundingRect
(QRect r, int flags, String text, int tabstops) Overloaded function forboundingRect(io.qt.core.QRect, int, java.lang.String, int, int[])
withtabarray = null
.final QRect
boundingRect
(QRect r, int flags, String text, int tabstops, int[] tabarray) final QRect
boundingRect
(String text) final QRect
boundingRect
(String text, Qt.Alignment textOption) Overloaded function forboundingRect(java.lang.String, io.qt.gui.QTextOption)
.final QRect
boundingRect
(String text, QTextOption textOption) final int
clone()
Creates and returns a copy of this object.final int
descent()
final String
elidedText
(String text, Qt.TextElideMode mode, int width) Overloaded function forelidedText(java.lang.String, io.qt.core.Qt.TextElideMode, int, int)
withflags = 0
.final String
elidedText
(String text, Qt.TextElideMode mode, int width, int flags) final boolean
equals
(QFontMetrics other) boolean
final double
fontDpi()
int
hashCode()
Returns the objects's hash code computed byqHash(QFontMetrics)
.final int
height()
final int
horizontalAdvance
(char arg__1) final int
horizontalAdvance
(String arg__1) Overloaded function forhorizontalAdvance(java.lang.String, int)
withlen = -1
.final int
horizontalAdvance
(String arg__1, int len) final int
horizontalAdvance
(String arg__1, Qt.Alignment textOption) Overloaded function forhorizontalAdvance(java.lang.String, io.qt.gui.QTextOption)
.final int
horizontalAdvance
(String arg__1, QTextOption textOption) final boolean
inFont
(char arg__1) final boolean
inFontUcs4
(int ucs4) final int
leading()
final int
leftBearing
(char arg__1) final int
final int
final int
maxWidth()
final int
final int
final int
final int
rightBearing
(char arg__1) final QSize
Overloaded function forsize(int, java.lang.String, int, int[])
final QSize
Overloaded function forsize(int, java.lang.String, int, int[])
withtabarray = null
.final QSize
final int
final void
swap
(QFontMetrics other) final QRect
tightBoundingRect
(String text) final QRect
tightBoundingRect
(String text, Qt.Alignment textOption) Overloaded function fortightBoundingRect(java.lang.String, io.qt.gui.QTextOption)
.final QRect
tightBoundingRect
(String text, QTextOption textOption) final int
final int
xHeight()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QFontMetrics
-
QFontMetrics
-
QFontMetrics
-
QFontMetrics
Overloaded constructor for
QFontMetrics(io.qt.gui.QFont)
. -
QFontMetrics
Overloaded constructor for
QFontMetrics(io.qt.gui.QFont, io.qt.gui.QPaintDevice)
.
-
-
Method Details
-
ascent
-
averageCharWidth
-
boundingRect
-
boundingRect
@QtUninvokable public final QRect boundingRect(QRect r, int flags, String text, int tabstops, int[] tabarray) -
boundingRect
-
boundingRect
See
QFontMetrics::
boundingRect(QString, QTextOption)const This function was introduced in Qt 6.3.
-
boundingRect
@QtUninvokable public final QRect boundingRect(int x, int y, int w, int h, int flags, String text, int tabstops, int[] tabarray) -
capHeight
-
descent
-
elidedText
@QtUninvokable public final String elidedText(String text, Qt.TextElideMode mode, int width, int flags) -
fontDpi
-
height
-
horizontalAdvance
-
horizontalAdvance
See
QFontMetrics::
horizontalAdvance(QString, QTextOption)const This function was introduced in Qt 6.3.
-
horizontalAdvance
-
inFont
-
inFontUcs4
-
leading
-
leftBearing
-
lineSpacing
-
lineWidth
-
maxWidth
-
minLeftBearing
-
minRightBearing
-
assign
-
equals
-
overlinePos
-
rightBearing
-
size
-
strikeOutPos
-
swap
-
tightBoundingRect
-
tightBoundingRect
See
QFontMetrics::
tightBoundingRect(QString, QTextOption)const This function was introduced in Qt 6.3.
-
underlinePos
-
xHeight
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QFontMetrics)
. -
clone
Creates and returns a copy of this object.
-
boundingRect
Overloaded function for
boundingRect(io.qt.core.QRect, int, java.lang.String, int, int[])
withtabarray = null
. -
boundingRect
Overloaded function for
boundingRect(io.qt.core.QRect, int, java.lang.String, int, int[])
with:
tabstops = 0
tabarray = null
-
boundingRect
Overloaded function for
boundingRect(java.lang.String, io.qt.gui.QTextOption)
. -
boundingRect
@QtUninvokable public final QRect boundingRect(int x, int y, int w, int h, int flags, String text, int tabstops) Overloaded function for
boundingRect(int, int, int, int, int, java.lang.String, int, int[])
withtabarray = null
. -
boundingRect
Overloaded function for
boundingRect(int, int, int, int, int, java.lang.String, int, int[])
with:
tabstops = 0
tabarray = null
-
elidedText
Overloaded function for
elidedText(java.lang.String, io.qt.core.Qt.TextElideMode, int, int)
withflags = 0
. -
horizontalAdvance
Overloaded function for
horizontalAdvance(java.lang.String, io.qt.gui.QTextOption)
. -
horizontalAdvance
Overloaded function for
horizontalAdvance(java.lang.String, int)
withlen = -1
. -
size
Overloaded function for
size(int, java.lang.String, int, int[])
withtabarray = null
. -
size
-
tightBoundingRect
Overloaded function for
tightBoundingRect(java.lang.String, io.qt.gui.QTextOption)
.
-