- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QFontMetrics extends QtObject implements Cloneable
Font metrics information
Java wrapper for Qt class QFontMetrics
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QFontMetrics(QFont arg__1)
QFontMetrics(QFontMetrics arg__1)
QFontMetrics(QFont font, QPaintDevice pd)
protected
QFontMetrics(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description int
ascent()
int
averageCharWidth()
QRect
boundingRect(char arg__1)
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[])
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
.QRect
boundingRect(int x, int y, int w, int h, int flags, String text, int tabstops, int[] tabarray)
QRect
boundingRect(QRect r, int flags, String text)
Overloaded function forboundingRect(io.qt.core.QRect, int, java.lang.String, int, int[])
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
.QRect
boundingRect(QRect r, int flags, String text, int tabstops, int[] tabarray)
QRect
boundingRect(String text)
int
capHeight()
int
charWidth(String str, int pos)
Deprecated.QFontMetrics
clone()
int
descent()
String
elidedText(String text, Qt.TextElideMode mode, int width)
Overloaded function forelidedText(java.lang.String, io.qt.core.Qt.TextElideMode, int, int)
withflags = 0
.String
elidedText(String text, Qt.TextElideMode mode, int width, int flags)
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.double
fontDpi()
int
hashCode()
int
height()
int
horizontalAdvance(char arg__1)
int
horizontalAdvance(String arg__1)
Overloaded function forhorizontalAdvance(java.lang.String, int)
withlen = -1
.int
horizontalAdvance(String arg__1, int len)
boolean
inFont(char arg__1)
boolean
inFontUcs4(int ucs4)
int
leading()
int
leftBearing(char arg__1)
int
lineSpacing()
int
lineWidth()
int
maxWidth()
int
minLeftBearing()
int
minRightBearing()
int
overlinePos()
int
rightBearing(char arg__1)
QSize
size(int flags, String str)
Overloaded function forsize(int, java.lang.String, int, int[])
QSize
size(int flags, String str, int tabstops)
Overloaded function forsize(int, java.lang.String, int, int[])
withtabarray = null
.QSize
size(int flags, String str, int tabstops, int[] tabarray)
int
strikeOutPos()
void
swap(QFontMetrics other)
QRect
tightBoundingRect(String text)
int
underlinePos()
int
width(char arg__1)
Deprecated.UsehorizontalAdvance(char)
insteadint
width(String arg__1)
Deprecated.UsehorizontalAdvance(char)
insteadint
width(String arg__1, int len)
Deprecated.UsehorizontalAdvance(char)
insteadint
width(String arg__1, int len, int flags)
Deprecated.UsehorizontalAdvance(char)
insteadint
xHeight()
-
Constructor Details
-
QFontMetrics
-
QFontMetrics
-
QFontMetrics
-
QFontMetrics
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
ascent
-
averageCharWidth
-
boundingRect
-
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 QRect boundingRect(QRect r, int flags, String text, int tabstops, int[] tabarray) -
boundingRect
-
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
-
boundingRect
@QtUninvokable public final QRect boundingRect(int x, int y, int w, int h, int flags, String text, int tabstops, int[] tabarray) -
capHeight
-
charWidth
Deprecated. -
descent
-
elidedText
Overloaded function for
elidedText(java.lang.String, io.qt.core.Qt.TextElideMode, int, int)
withflags = 0
. -
elidedText
@QtUninvokable public final String elidedText(String text, Qt.TextElideMode mode, int width, int flags) -
fontDpi
-
height
-
horizontalAdvance
-
horizontalAdvance
Overloaded function for
horizontalAdvance(java.lang.String, int)
withlen = -1
. -
horizontalAdvance
-
inFont
-
inFontUcs4
-
leading
-
leftBearing
-
lineSpacing
-
lineWidth
-
maxWidth
-
minLeftBearing
-
minRightBearing
-
overlinePos
-
rightBearing
-
size
Overloaded function for
size(int, java.lang.String, int, int[])
withtabarray = null
. -
size
-
size
-
strikeOutPos
-
swap
-
tightBoundingRect
-
underlinePos
-
width
Deprecated.UsehorizontalAdvance(char)
instead -
width
Deprecated.UsehorizontalAdvance(char)
insteadOverloaded function for
width(java.lang.String, int)
withlen = -1
. -
width
Deprecated.UsehorizontalAdvance(char)
instead -
width
Deprecated.UsehorizontalAdvance(char)
instead -
xHeight
-
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
-