- 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
clone()
Creates and returns a copy of this object.final QFont
font()
final QFont.Capitalization
final Object
final String
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
final void
setFont
(QFont font, QTextCharFormat.FontPropertiesInheritanceBehavior behavior) final void
Overloaded function forsetFont(io.qt.gui.QFont)
.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) final 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
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 void
swap
(QTextCharFormat value2) Seeswap(QTextCharFormat&,
QTextCharFormat&) final int
SeeQTextCharFormat::
tableCellColumnSpan()const final int
SeeQTextCharFormat::
tableCellRowSpan()const final QPen
final String
toolTip()
final QColor
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, readFrom, 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, writeTo
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:
- Since:
- This function was introduced in Qt 4.3.
-
font
- Returns:
-
fontCapitalization
- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
fontFamilies
- Returns:
- Since:
- This function was introduced in Qt 5.13.
-
fontFamily
- Returns:
-
fontFixedPitch
- Returns:
-
fontHintingPreference
- Returns:
- Since:
- This function was introduced in Qt 4.8.
-
fontItalic
- Returns:
-
fontKerning
- Returns:
- Since:
- This function was introduced in Qt 4.5.
-
fontLetterSpacing
- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
fontLetterSpacingType
- Returns:
- Since:
- This function was introduced in Qt 5.0.
-
fontOverline
- Returns:
-
fontPointSize
- Returns:
-
fontStretch
- Returns:
- Since:
- This function was introduced in Qt 5.0.
-
fontStrikeOut
- Returns:
-
fontStyleHint
- Returns:
- Since:
- This function was introduced in Qt 4.5.
-
fontStyleName
- Returns:
- Since:
- This function was introduced in Qt 5.13.
-
fontStyleStrategy
- Returns:
- Since:
- This function was introduced in Qt 4.5.
-
fontUnderline
- Returns:
-
fontWeight
- Returns:
-
fontWordSpacing
- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
isAnchor
- Returns:
-
isValid
- Overrides:
isValid
in classQTextFormat
- Returns:
-
setAnchor
- Parameters:
anchor
-
-
setAnchorHref
- Parameters:
value
-
-
setAnchorNames
- Parameters:
names
-- Since:
- This function was introduced in Qt 4.3.
-
setFont
- Parameters:
font
-
-
setFont
@QtUninvokable public final void setFont(QFont font, QTextCharFormat.FontPropertiesInheritanceBehavior behavior) - Parameters:
font
-behavior
-- Since:
- This function was introduced in Qt 5.3.
-
setFontCapitalization
- Parameters:
capitalization
-- Since:
- This function was introduced in Qt 4.4.
-
setFontFamilies
- Parameters:
families
-- Since:
- This function was introduced in Qt 5.13.
-
setFontFamily
- Parameters:
family
-
-
setFontFixedPitch
- Parameters:
fixedPitch
-
-
setFontHintingPreference
@QtUninvokable public final void setFontHintingPreference(QFont.HintingPreference hintingPreference) - Parameters:
hintingPreference
-- Since:
- This function was introduced in Qt 4.8.
-
setFontItalic
- Parameters:
italic
-
-
setFontKerning
- Parameters:
enable
-- Since:
- This function was introduced in Qt 4.5.
-
setFontLetterSpacing
- Parameters:
spacing
-- Since:
- This function was introduced in Qt 4.4.
-
setFontLetterSpacingType
- Parameters:
letterSpacingType
-- Since:
- This function was introduced in Qt 5.0.
-
setFontOverline
- Parameters:
overline
-
-
setFontPointSize
- Parameters:
size
-
-
setFontStretch
- Parameters:
factor
-- Since:
- This function was introduced in Qt 5.0.
-
setFontStrikeOut
- Parameters:
strikeOut
-
-
setFontStyleHint
@QtUninvokable public final void setFontStyleHint(QFont.StyleHint hint, QFont.StyleStrategy strategy) - Parameters:
hint
-strategy
-- Since:
- This function was introduced in Qt 4.5.
-
setFontStyleName
- Parameters:
styleName
-- Since:
- This function was introduced in Qt 5.13.
-
setFontStyleStrategy
- Parameters:
strategy
-- Since:
- This function was introduced in Qt 4.5.
-
setFontUnderline
- Parameters:
underline
-
-
setFontWeight
- Parameters:
weight
-
-
setFontWordSpacing
- Parameters:
spacing
-- Since:
- This function was introduced in Qt 4.4.
-
setTableCellColumnSpan
See
QTextCharFormat::
setTableCellColumnSpan(int) - Parameters:
tableCellColumnSpan
-
-
setTableCellRowSpan
See
QTextCharFormat::
setTableCellRowSpan(int) - Parameters:
tableCellRowSpan
-
-
setTextOutline
- Parameters:
pen
-
-
setToolTip
- Parameters:
tip
-- Since:
- This function was introduced in Qt 4.3.
-
setUnderlineColor
- Parameters:
color
-
-
setUnderlineStyle
- Parameters:
style
-- Since:
- This function was introduced in Qt 4.2.
-
setVerticalAlignment
- Parameters:
alignment
-
-
swap
See
swap(QTextCharFormat&,
QTextCharFormat&) - Parameters:
value2
-
-
tableCellColumnSpan
See
QTextCharFormat::
tableCellColumnSpan()const - Returns:
-
tableCellRowSpan
See
QTextCharFormat::
tableCellRowSpan()const - Returns:
-
textOutline
- Returns:
-
toolTip
- Returns:
- Since:
- This function was introduced in Qt 4.3.
-
underlineColor
- Returns:
-
underlineStyle
- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
verticalAlignment
- Returns:
-
clone
Creates and returns a copy of this object.
- Overrides:
clone
in classQTextFormat
-
setFont
Overloaded function for
setFont(io.qt.gui.QFont)
. -
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)
.
-