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