java.lang.Object
io.qt.QtObject
io.qt.gui.QTextFormat
io.qt.gui.QTextCharFormat
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QTextImageFormat
,QTextTableCellFormat
Formatting information for characters in a QTextDocument
Java wrapper for Qt's class QTextCharFormat
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QTextCharFormat::FontPropertiesInheritanceBehaviorstatic enum
Java wrapper for Qt enum QTextCharFormat::UnderlineStylestatic enum
Java wrapper for Qt enum QTextCharFormat::VerticalAlignmentNested classes/interfaces inherited from class io.qt.gui.QTextFormat
QTextFormat.FormatType, QTextFormat.ObjectTypes, QTextFormat.PageBreakFlag, QTextFormat.PageBreakFlags, QTextFormat.Property
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Fields inherited from class io.qt.gui.QTextFormat
staticMetaObject
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal String
final QStringList
final double
clone()
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()
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
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) final void
setTableCellRowSpan
(int tableCellRowSpan) final void
setTextOutline
(QPen pen) final void
setToolTip
(String tip) final void
setUnderlineColor
(QColor color) final void
final void
final double
final double
final int
final int
final QPen
final String
toolTip()
final QColor
Methods inherited from class io.qt.gui.QTextFormat
background, boolProperty, brushProperty, clearBackground, clearForeground, clearProperty, colorProperty, doubleProperty, equals, foreground, hashCode, hasProperty, intProperty, isBlockFormat, isCharFormat, isEmpty, isFrameFormat, isImageFormat, isListFormat, isTableCellFormat, isTableFormat, layoutDirection, lengthProperty, lengthVectorProperty, merge, objectIndex, objectType, penProperty, properties, property, propertyCount, readFrom, setBackground, setForeground, setLayoutDirection, setObjectIndex, setObjectType, setProperty, setProperty, stringProperty, swap, toBlockFormat, toCharFormat, toFrameFormat, toImageFormat, toListFormat, toString, toTableCellFormat, toTableFormat, type, writeTo
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QTextCharFormat
public QTextCharFormat() -
QTextCharFormat
-
QTextCharFormat
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
anchorHref
-
anchorNames
-
baselineOffset
-
font
-
fontCapitalization
-
fontFamilies
-
fontFamily
Deprecated.UsefontFamilies()
instead -
fontFixedPitch
-
fontHintingPreference
-
fontItalic
-
fontKerning
-
fontLetterSpacing
-
fontLetterSpacingType
-
fontOverline
-
fontPointSize
-
fontStretch
-
fontStrikeOut
-
fontStyleHint
-
fontStyleName
-
fontStyleStrategy
-
fontUnderline
-
fontWeight
-
fontWordSpacing
-
isAnchor
-
isValid
- Overrides:
isValid
in classQTextFormat
-
setAnchor
-
setAnchorHref
-
setAnchorNames
-
setBaselineOffset
-
setFont
Overloaded function for
setFont(io.qt.gui.QFont, io.qt.gui.QTextCharFormat.FontPropertiesInheritanceBehavior)
withbehavior = io.qt.gui.QTextCharFormat.FontPropertiesInheritanceBehavior.FontPropertiesAll
. -
setFont
@QtUninvokable public final void setFont(QFont font, QTextCharFormat.FontPropertiesInheritanceBehavior behavior) -
setFontCapitalization
-
setFontFamilies
-
setFontFamily
Deprecated.UsesetFontFamilies(java.util.Collection)
instead -
setFontFixedPitch
-
setFontHintingPreference
@QtUninvokable public final void setFontHintingPreference(QFont.HintingPreference hintingPreference) -
setFontItalic
-
setFontKerning
-
setFontLetterSpacing
-
setFontLetterSpacingType
-
setFontOverline
-
setFontPointSize
-
setFontStretch
-
setFontStrikeOut
-
setFontStyleHint
Overloaded function for
setFontStyleHint(io.qt.gui.QFont.StyleHint, io.qt.gui.QFont.StyleStrategy)
withstrategy = io.qt.gui.QFont.StyleStrategy.PreferDefault
. -
setFontStyleHint
@QtUninvokable public final void setFontStyleHint(QFont.StyleHint hint, QFont.StyleStrategy strategy) -
setFontStyleName
-
setFontStyleStrategy
-
setFontUnderline
-
setFontWeight
-
setFontWordSpacing
-
setSubScriptBaseline
-
setSuperScriptBaseline
-
setTableCellColumnSpan
-
setTableCellRowSpan
-
setTextOutline
-
setToolTip
-
setUnderlineColor
-
setUnderlineStyle
-
setVerticalAlignment
-
subScriptBaseline
-
superScriptBaseline
-
tableCellColumnSpan
-
tableCellRowSpan
-
textOutline
-
toolTip
-
underlineColor
-
underlineStyle
-
verticalAlignment
-
clone
- Overrides:
clone
in classQTextFormat
-
fontFamilies()
instead