- 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)
instead@param familyfinal 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) Seeoperator<<(QDataStream&,
QTextCharFormat) 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
- Parameters:
other
-
-
QTextCharFormat
- Parameters:
fmt
-
-
-
Method Details
-
anchorHref
- Returns:
-
anchorNames
- Returns:
-
baselineOffset
- Returns:
- Since:
- This function was introduced in Qt 6.0.
-
font
- Returns:
-
fontCapitalization
- Returns:
-
fontFamilies
- Returns:
-
fontFamily
Deprecated.UsefontFamilies()
instead@returnSee
QTextCharFormat::
fontFamily()const -
fontFixedPitch
- Returns:
-
fontHintingPreference
- Returns:
-
fontItalic
- Returns:
-
fontKerning
- Returns:
-
fontLetterSpacing
- Returns:
-
fontLetterSpacingType
- Returns:
-
fontOverline
- Returns:
-
fontPointSize
- Returns:
-
fontStretch
- Returns:
-
fontStrikeOut
- Returns:
-
fontStyleHint
- Returns:
-
fontStyleName
- Returns:
-
fontStyleStrategy
- Returns:
-
fontUnderline
- Returns:
-
fontWeight
- Returns:
-
fontWordSpacing
- Returns:
-
isAnchor
- Returns:
-
isValid
- Overrides:
isValid
in classQTextFormat
- Returns:
-
writeTo
See
operator<<(QDataStream&,
QTextCharFormat) - Overrides:
writeTo
in classQTextFormat
- Parameters:
arg__1
-
-
readFrom
See
operator>>(QDataStream&,
QTextCharFormat&) - Overrides:
readFrom
in classQTextFormat
- Parameters:
arg__1
-
-
setAnchor
- Parameters:
anchor
-
-
setAnchorHref
- Parameters:
value
-
-
setAnchorNames
- Parameters:
names
-
-
setBaselineOffset
- Parameters:
baseline
-- Since:
- This function was introduced in Qt 6.0.
-
setFont
@QtUninvokable public final void setFont(QFont font, QTextCharFormat.FontPropertiesInheritanceBehavior behavior) - Parameters:
font
-behavior
-
-
setFontCapitalization
- Parameters:
capitalization
-
-
setFontFamilies
- Parameters:
families
-
-
setFontFamily
Deprecated.UsesetFontFamilies(java.util.Collection)
instead@param familySee
QTextCharFormat::
setFontFamily(QString) -
setFontFixedPitch
- Parameters:
fixedPitch
-
-
setFontHintingPreference
@QtUninvokable public final void setFontHintingPreference(QFont.HintingPreference hintingPreference) - Parameters:
hintingPreference
-
-
setFontItalic
- Parameters:
italic
-
-
setFontKerning
- Parameters:
enable
-
-
setFontLetterSpacing
- Parameters:
spacing
-
-
setFontLetterSpacingType
- Parameters:
letterSpacingType
-
-
setFontOverline
- Parameters:
overline
-
-
setFontPointSize
- Parameters:
size
-
-
setFontStretch
- Parameters:
factor
-
-
setFontStrikeOut
- Parameters:
strikeOut
-
-
setFontStyleHint
@QtUninvokable public final void setFontStyleHint(QFont.StyleHint hint, QFont.StyleStrategy strategy) - Parameters:
hint
-strategy
-
-
setFontStyleName
- Parameters:
styleName
-
-
setFontStyleStrategy
- Parameters:
strategy
-
-
setFontUnderline
- Parameters:
underline
-
-
setFontWeight
- Parameters:
weight
-
-
setFontWordSpacing
- Parameters:
spacing
-
-
setSubScriptBaseline
- Parameters:
baseline
-- Since:
- This function was introduced in Qt 6.0.
-
setSuperScriptBaseline
- Parameters:
baseline
-- Since:
- This function was introduced in Qt 6.0.
-
setTableCellColumnSpan
See
QTextCharFormat::
setTableCellColumnSpan(int) - Parameters:
tableCellColumnSpan
-
-
setTableCellRowSpan
See
QTextCharFormat::
setTableCellRowSpan(int) - Parameters:
tableCellRowSpan
-
-
setTextOutline
- Parameters:
pen
-
-
setToolTip
- Parameters:
tip
-
-
setUnderlineColor
- Parameters:
color
-
-
setUnderlineStyle
- Parameters:
style
-
-
setVerticalAlignment
- Parameters:
alignment
-
-
subScriptBaseline
- Returns:
- Since:
- This function was introduced in Qt 6.0.
-
superScriptBaseline
- Returns:
- Since:
- This function was introduced in Qt 6.0.
-
swap
See
swap(QTextCharFormat&,
QTextCharFormat&) - Parameters:
value2
-
-
tableCellColumnSpan
See
QTextCharFormat::
tableCellColumnSpan()const - Returns:
-
tableCellRowSpan
See
QTextCharFormat::
tableCellRowSpan()const - Returns:
-
textOutline
- Returns:
-
toolTip
- Returns:
-
underlineColor
- Returns:
-
underlineStyle
- Returns:
-
verticalAlignment
- Returns:
-
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@return