- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QTextImageFormat
,QTextTableCellFormat
Formatting information for characters in a QTextDocument
Java wrapper for Qt class QTextCharFormat
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQTextCharFormat::FontPropertiesInheritanceBehavior
static enum
Java wrapper for Qt enumQTextCharFormat::UnderlineStyle
static enum
Java wrapper for Qt enumQTextCharFormat::VerticalAlignment
Nested classes/interfaces inherited from class io.qt.gui.QTextFormat
QTextFormat.FormatType, QTextFormat.ObjectTypes, QTextFormat.PageBreakFlag, QTextFormat.PageBreakFlags, QTextFormat.Property
-
Field Summary
Fields inherited from class io.qt.gui.QTextFormat
staticMetaObject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
final QStringList
final double
clone()
Creates and returns a copy of this object.final QFont
font()
final QFont.Capitalization
final Object
final String
Deprecated.final boolean
final QFont.HintingPreference
final boolean
final boolean
final double
final QFont.SpacingType
final boolean
final double
final int
final boolean
final QFont.StyleHint
final Object
final QFont.StyleStrategy
final boolean
final int
final double
final boolean
isAnchor()
boolean
isValid()
void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QTextCharFormat&) final void
setAnchor
(boolean anchor) final void
setAnchorHref
(String value) final void
setAnchorNames
(Collection<String> names) final void
setBaselineOffset
(double baseline) final void
Overloaded function forsetFont(io.qt.gui.QFont, io.qt.gui.QTextCharFormat.FontPropertiesInheritanceBehavior)
withbehavior = io.qt.gui.QTextCharFormat.FontPropertiesInheritanceBehavior.FontPropertiesAll
.final void
setFont
(QFont font, QTextCharFormat.FontPropertiesInheritanceBehavior behavior) final void
Overloaded function forsetFont(java.lang.String, io.qt.gui.QTextCharFormat.FontPropertiesInheritanceBehavior)
withbehavior = io.qt.gui.QTextCharFormat.FontPropertiesInheritanceBehavior.FontPropertiesAll
.final void
setFont
(String font, QTextCharFormat.FontPropertiesInheritanceBehavior behavior) Overloaded function forsetFont(io.qt.gui.QFont, io.qt.gui.QTextCharFormat.FontPropertiesInheritanceBehavior)
.final void
setFontCapitalization
(QFont.Capitalization capitalization) final void
setFontFamilies
(Collection<String> families) final void
setFontFamily
(String family) Deprecated.UsesetFontFamilies(java.util.Collection)
insteadfinal void
setFontFixedPitch
(boolean fixedPitch) final void
setFontHintingPreference
(QFont.HintingPreference hintingPreference) final void
setFontItalic
(boolean italic) final void
setFontKerning
(boolean enable) final void
setFontLetterSpacing
(double spacing) final void
setFontLetterSpacingType
(QFont.SpacingType letterSpacingType) final void
setFontOverline
(boolean overline) final void
setFontPointSize
(double size) final void
setFontStretch
(int factor) final void
setFontStrikeOut
(boolean strikeOut) final void
Overloaded function forsetFontStyleHint(io.qt.gui.QFont.StyleHint, io.qt.gui.QFont.StyleStrategy)
withstrategy = io.qt.gui.QFont.StyleStrategy.PreferDefault
.final void
setFontStyleHint
(QFont.StyleHint hint, QFont.StyleStrategy strategy) final void
setFontStyleName
(String styleName) final void
setFontStyleStrategy
(QFont.StyleStrategy strategy) final void
setFontUnderline
(boolean underline) final void
setFontWeight
(int weight) final void
setFontWordSpacing
(double spacing) final void
setSubScriptBaseline
(double baseline) final void
setSuperScriptBaseline
(double baseline) final void
setTableCellColumnSpan
(int tableCellColumnSpan) SeeQTextCharFormat::
setTableCellColumnSpan(int) final void
setTableCellRowSpan
(int tableCellRowSpan) SeeQTextCharFormat::
setTableCellRowSpan(int) final void
Overloaded function forsetTextOutline(io.qt.gui.QPen)
.final void
setTextOutline
(QColor pen) Overloaded function forsetTextOutline(io.qt.gui.QPen)
.final void
setTextOutline
(QPen pen) final void
setToolTip
(String tip) final void
setUnderlineColor
(Qt.GlobalColor color) Overloaded function forsetUnderlineColor(io.qt.gui.QColor)
.final void
setUnderlineColor
(QColor color) final void
setUnderlineColor
(QRgba64 color) Overloaded function forsetUnderlineColor(io.qt.gui.QColor)
.final void
setUnderlineColor
(String color) Overloaded function forsetUnderlineColor(io.qt.gui.QColor)
.final void
final void
final double
final double
final void
swap
(QTextCharFormat value2) Seeswap(QTextCharFormat&,
QTextCharFormat&) final int
SeeQTextCharFormat::
tableCellColumnSpan()const final int
SeeQTextCharFormat::
tableCellRowSpan()const final QPen
final String
toolTip()
final QColor
void
writeTo
(QDataStream arg__1) Methods inherited from class io.qt.gui.QTextFormat
assign, background, boolProperty, brushProperty, clearBackground, clearForeground, clearProperty, colorProperty, doubleProperty, equals, equals, foreground, hashCode, hasProperty, intProperty, isBlockFormat, isCharFormat, isEmpty, isFrameFormat, isImageFormat, isListFormat, isTableCellFormat, isTableFormat, layoutDirection, lengthProperty, lengthVectorProperty, merge, objectIndex, objectType, penProperty, properties, property, propertyCount, setBackground, setBackground, setBackground, setBackground, setBackground, setBackground, setBackground, setForeground, setForeground, setForeground, setForeground, setForeground, setForeground, setForeground, setLayoutDirection, setObjectIndex, setObjectType, setProperty, setProperty, stringProperty, swap, toBlockFormat, toCharFormat, toFrameFormat, toImageFormat, toListFormat, toString, toTableCellFormat, toTableFormat, type
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QTextCharFormat
public QTextCharFormat() -
QTextCharFormat
-
QTextCharFormat
-
-
Method Details
-
anchorHref
-
anchorNames
-
baselineOffset
-
font
-
fontCapitalization
-
fontFamilies
-
fontFamily
Deprecated.UsefontFamilies()
insteadSee
QTextCharFormat::
fontFamily()const -
fontFixedPitch
-
fontHintingPreference
-
fontItalic
-
fontKerning
-
fontLetterSpacing
-
fontLetterSpacingType
-
fontOverline
-
fontPointSize
-
fontStretch
-
fontStrikeOut
-
fontStyleHint
-
fontStyleName
-
fontStyleStrategy
-
fontUnderline
-
fontWeight
-
fontWordSpacing
-
isAnchor
-
isValid
- Overrides:
isValid
in classQTextFormat
-
writeTo
- Overrides:
writeTo
in classQTextFormat
-
readFrom
See
operator>>(QDataStream&,
QTextCharFormat&) - Overrides:
readFrom
in classQTextFormat
-
setAnchor
-
setAnchorHref
-
setAnchorNames
-
setBaselineOffset
-
setFont
@QtUninvokable public final void setFont(QFont font, QTextCharFormat.FontPropertiesInheritanceBehavior behavior) -
setFontCapitalization
-
setFontFamilies
-
setFontFamily
Deprecated.UsesetFontFamilies(java.util.Collection)
insteadSee
QTextCharFormat::
setFontFamily(QString) -
setFontFixedPitch
-
setFontHintingPreference
@QtUninvokable public final void setFontHintingPreference(QFont.HintingPreference hintingPreference) -
setFontItalic
-
setFontKerning
-
setFontLetterSpacing
-
setFontLetterSpacingType
-
setFontOverline
-
setFontPointSize
-
setFontStretch
-
setFontStrikeOut
-
setFontStyleHint
@QtUninvokable public final void setFontStyleHint(QFont.StyleHint hint, QFont.StyleStrategy strategy) -
setFontStyleName
-
setFontStyleStrategy
-
setFontUnderline
-
setFontWeight
-
setFontWordSpacing
-
setSubScriptBaseline
-
setSuperScriptBaseline
-
setTableCellColumnSpan
See
QTextCharFormat::
setTableCellColumnSpan(int) -
setTableCellRowSpan
See
QTextCharFormat::
setTableCellRowSpan(int) -
setTextOutline
-
setToolTip
-
setUnderlineColor
-
setUnderlineStyle
-
setVerticalAlignment
-
subScriptBaseline
-
superScriptBaseline
-
swap
See
swap(QTextCharFormat&,
QTextCharFormat&) -
tableCellColumnSpan
See
QTextCharFormat::
tableCellColumnSpan()const -
tableCellRowSpan
See
QTextCharFormat::
tableCellRowSpan()const -
textOutline
-
toolTip
-
underlineColor
-
underlineStyle
-
verticalAlignment
-
clone
Creates and returns a copy of this object.
- Overrides:
clone
in classQTextFormat
-
setFont
Overloaded function for
setFont(io.qt.gui.QFont, io.qt.gui.QTextCharFormat.FontPropertiesInheritanceBehavior)
withbehavior = io.qt.gui.QTextCharFormat.FontPropertiesInheritanceBehavior.FontPropertiesAll
. -
setFont
Overloaded function for
setFont(java.lang.String, io.qt.gui.QTextCharFormat.FontPropertiesInheritanceBehavior)
withbehavior = io.qt.gui.QTextCharFormat.FontPropertiesInheritanceBehavior.FontPropertiesAll
. -
setFont
@QtUninvokable public final void setFont(String font, QTextCharFormat.FontPropertiesInheritanceBehavior behavior) Overloaded function for
setFont(io.qt.gui.QFont, io.qt.gui.QTextCharFormat.FontPropertiesInheritanceBehavior)
. -
setFontStyleHint
Overloaded function for
setFontStyleHint(io.qt.gui.QFont.StyleHint, io.qt.gui.QFont.StyleStrategy)
withstrategy = io.qt.gui.QFont.StyleStrategy.PreferDefault
. -
setTextOutline
Overloaded function for
setTextOutline(io.qt.gui.QPen)
. -
setTextOutline
Overloaded function for
setTextOutline(io.qt.gui.QPen)
. -
setUnderlineColor
Overloaded function for
setUnderlineColor(io.qt.gui.QColor)
. -
setUnderlineColor
Overloaded function for
setUnderlineColor(io.qt.gui.QColor)
. -
setUnderlineColor
Overloaded function for
setUnderlineColor(io.qt.gui.QColor)
.
-
fontFamilies()
instead