pub struct QTextImageFormat { /* private fields */ }Expand description
C++ class: QTextImageFormat.
Implementations§
Source§impl QTextImageFormat
impl QTextImageFormat
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QTextImageFormat>>,
) -> Ref<QTextImageFormat>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QTextImageFormat>>, ) -> Ref<QTextImageFormat>
Calls C++ function: QTextImageFormat& QTextImageFormat::operator=(const QTextImageFormat& other).
Sourcepub unsafe fn height(&self) -> c_double
pub unsafe fn height(&self) -> c_double
Calls C++ function: double QTextImageFormat::height() const.
Sourcepub unsafe fn is_valid(&self) -> bool
pub unsafe fn is_valid(&self) -> bool
Calls C++ function: bool QTextImageFormat::isValid() const.
Sourcepub unsafe fn name(&self) -> CppBox<QString>
pub unsafe fn name(&self) -> CppBox<QString>
Calls C++ function: QString QTextImageFormat::name() const.
Sourcepub unsafe fn new() -> CppBox<QTextImageFormat>
pub unsafe fn new() -> CppBox<QTextImageFormat>
Calls C++ function: [constructor] void QTextImageFormat::QTextImageFormat().
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QTextImageFormat>>,
) -> CppBox<QTextImageFormat>
pub unsafe fn new_copy( other: impl CastInto<Ref<QTextImageFormat>>, ) -> CppBox<QTextImageFormat>
Calls C++ function: [constructor] void QTextImageFormat::QTextImageFormat(const QTextImageFormat& other).
Sourcepub unsafe fn quality(&self) -> c_int
pub unsafe fn quality(&self) -> c_int
Calls C++ function: int QTextImageFormat::quality() const.
Sourcepub unsafe fn set_height(&self, height: c_double)
pub unsafe fn set_height(&self, height: c_double)
Calls C++ function: void QTextImageFormat::setHeight(double height).
Sourcepub unsafe fn set_name(&self, name: impl CastInto<Ref<QString>>)
pub unsafe fn set_name(&self, name: impl CastInto<Ref<QString>>)
Calls C++ function: void QTextImageFormat::setName(const QString& name).
Sourcepub unsafe fn set_quality_1a(&self, quality: c_int)
pub unsafe fn set_quality_1a(&self, quality: c_int)
Calls C++ function: void QTextImageFormat::setQuality(int quality = …).
Sourcepub unsafe fn set_quality_0a(&self)
pub unsafe fn set_quality_0a(&self)
Calls C++ function: void QTextImageFormat::setQuality().
Methods from Deref<Target = QTextCharFormat>§
Sourcepub unsafe fn anchor_href(&self) -> CppBox<QString>
pub unsafe fn anchor_href(&self) -> CppBox<QString>
Calls C++ function: QString QTextCharFormat::anchorHref() const.
Sourcepub unsafe fn anchor_name(&self) -> CppBox<QString>
pub unsafe fn anchor_name(&self) -> CppBox<QString>
Calls C++ function: QString QTextCharFormat::anchorName() const.
Sourcepub unsafe fn anchor_names(&self) -> CppBox<QStringList>
pub unsafe fn anchor_names(&self) -> CppBox<QStringList>
Calls C++ function: QStringList QTextCharFormat::anchorNames() const.
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QTextCharFormat>>,
) -> Ref<QTextCharFormat>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QTextCharFormat>>, ) -> Ref<QTextCharFormat>
Calls C++ function: QTextCharFormat& QTextCharFormat::operator=(const QTextCharFormat& other).
Sourcepub unsafe fn font(&self) -> CppBox<QFont>
pub unsafe fn font(&self) -> CppBox<QFont>
Calls C++ function: QFont QTextCharFormat::font() const.
Sourcepub unsafe fn font_capitalization(&self) -> Capitalization
pub unsafe fn font_capitalization(&self) -> Capitalization
Calls C++ function: QFont::Capitalization QTextCharFormat::fontCapitalization() const.
Sourcepub unsafe fn font_families(&self) -> CppBox<QVariant>
pub unsafe fn font_families(&self) -> CppBox<QVariant>
Calls C++ function: QVariant QTextCharFormat::fontFamilies() const.
Sourcepub unsafe fn font_family(&self) -> CppBox<QString>
pub unsafe fn font_family(&self) -> CppBox<QString>
Calls C++ function: QString QTextCharFormat::fontFamily() const.
Sourcepub unsafe fn font_fixed_pitch(&self) -> bool
pub unsafe fn font_fixed_pitch(&self) -> bool
Calls C++ function: bool QTextCharFormat::fontFixedPitch() const.
Sourcepub unsafe fn font_hinting_preference(&self) -> HintingPreference
pub unsafe fn font_hinting_preference(&self) -> HintingPreference
Calls C++ function: QFont::HintingPreference QTextCharFormat::fontHintingPreference() const.
Sourcepub unsafe fn font_italic(&self) -> bool
pub unsafe fn font_italic(&self) -> bool
Calls C++ function: bool QTextCharFormat::fontItalic() const.
Sourcepub unsafe fn font_kerning(&self) -> bool
pub unsafe fn font_kerning(&self) -> bool
Calls C++ function: bool QTextCharFormat::fontKerning() const.
Sourcepub unsafe fn font_letter_spacing(&self) -> c_double
pub unsafe fn font_letter_spacing(&self) -> c_double
Calls C++ function: double QTextCharFormat::fontLetterSpacing() const.
Sourcepub unsafe fn font_letter_spacing_type(&self) -> SpacingType
pub unsafe fn font_letter_spacing_type(&self) -> SpacingType
Calls C++ function: QFont::SpacingType QTextCharFormat::fontLetterSpacingType() const.
Sourcepub unsafe fn font_overline(&self) -> bool
pub unsafe fn font_overline(&self) -> bool
Calls C++ function: bool QTextCharFormat::fontOverline() const.
Sourcepub unsafe fn font_point_size(&self) -> c_double
pub unsafe fn font_point_size(&self) -> c_double
Calls C++ function: double QTextCharFormat::fontPointSize() const.
Sourcepub unsafe fn font_stretch(&self) -> c_int
pub unsafe fn font_stretch(&self) -> c_int
Calls C++ function: int QTextCharFormat::fontStretch() const.
Sourcepub unsafe fn font_strike_out(&self) -> bool
pub unsafe fn font_strike_out(&self) -> bool
Calls C++ function: bool QTextCharFormat::fontStrikeOut() const.
Sourcepub unsafe fn font_style_hint(&self) -> StyleHint
pub unsafe fn font_style_hint(&self) -> StyleHint
Calls C++ function: QFont::StyleHint QTextCharFormat::fontStyleHint() const.
Sourcepub unsafe fn font_style_name(&self) -> CppBox<QVariant>
pub unsafe fn font_style_name(&self) -> CppBox<QVariant>
Calls C++ function: QVariant QTextCharFormat::fontStyleName() const.
Sourcepub unsafe fn font_style_strategy(&self) -> StyleStrategy
pub unsafe fn font_style_strategy(&self) -> StyleStrategy
Calls C++ function: QFont::StyleStrategy QTextCharFormat::fontStyleStrategy() const.
Sourcepub unsafe fn font_underline(&self) -> bool
pub unsafe fn font_underline(&self) -> bool
Calls C++ function: bool QTextCharFormat::fontUnderline() const.
Sourcepub unsafe fn font_weight(&self) -> c_int
pub unsafe fn font_weight(&self) -> c_int
Calls C++ function: int QTextCharFormat::fontWeight() const.
Sourcepub unsafe fn font_word_spacing(&self) -> c_double
pub unsafe fn font_word_spacing(&self) -> c_double
Calls C++ function: double QTextCharFormat::fontWordSpacing() const.
Sourcepub unsafe fn is_anchor(&self) -> bool
pub unsafe fn is_anchor(&self) -> bool
Calls C++ function: bool QTextCharFormat::isAnchor() const.
Sourcepub unsafe fn is_valid(&self) -> bool
pub unsafe fn is_valid(&self) -> bool
Calls C++ function: bool QTextCharFormat::isValid() const.
Sourcepub unsafe fn set_anchor(&self, anchor: bool)
pub unsafe fn set_anchor(&self, anchor: bool)
Calls C++ function: void QTextCharFormat::setAnchor(bool anchor).
Sourcepub unsafe fn set_anchor_href(&self, value: impl CastInto<Ref<QString>>)
pub unsafe fn set_anchor_href(&self, value: impl CastInto<Ref<QString>>)
Calls C++ function: void QTextCharFormat::setAnchorHref(const QString& value).
Sourcepub unsafe fn set_anchor_name(&self, name: impl CastInto<Ref<QString>>)
pub unsafe fn set_anchor_name(&self, name: impl CastInto<Ref<QString>>)
Calls C++ function: void QTextCharFormat::setAnchorName(const QString& name).
Sourcepub unsafe fn set_anchor_names(&self, names: impl CastInto<Ref<QStringList>>)
pub unsafe fn set_anchor_names(&self, names: impl CastInto<Ref<QStringList>>)
Calls C++ function: void QTextCharFormat::setAnchorNames(const QStringList& names).
Sourcepub unsafe fn set_font_2a(
&self,
font: impl CastInto<Ref<QFont>>,
behavior: FontPropertiesInheritanceBehavior,
)
pub unsafe fn set_font_2a( &self, font: impl CastInto<Ref<QFont>>, behavior: FontPropertiesInheritanceBehavior, )
Calls C++ function: void QTextCharFormat::setFont(const QFont& font, QTextCharFormat::FontPropertiesInheritanceBehavior behavior).
Sourcepub unsafe fn set_font_1a(&self, font: impl CastInto<Ref<QFont>>)
pub unsafe fn set_font_1a(&self, font: impl CastInto<Ref<QFont>>)
Calls C++ function: void QTextCharFormat::setFont(const QFont& font).
Sourcepub unsafe fn set_font_capitalization(&self, capitalization: Capitalization)
pub unsafe fn set_font_capitalization(&self, capitalization: Capitalization)
Calls C++ function: void QTextCharFormat::setFontCapitalization(QFont::Capitalization capitalization).
Sourcepub unsafe fn set_font_families(
&self,
families: impl CastInto<Ref<QStringList>>,
)
pub unsafe fn set_font_families( &self, families: impl CastInto<Ref<QStringList>>, )
Calls C++ function: void QTextCharFormat::setFontFamilies(const QStringList& families).
Sourcepub unsafe fn set_font_family(&self, family: impl CastInto<Ref<QString>>)
pub unsafe fn set_font_family(&self, family: impl CastInto<Ref<QString>>)
Calls C++ function: void QTextCharFormat::setFontFamily(const QString& family).
Sourcepub unsafe fn set_font_fixed_pitch(&self, fixed_pitch: bool)
pub unsafe fn set_font_fixed_pitch(&self, fixed_pitch: bool)
Calls C++ function: void QTextCharFormat::setFontFixedPitch(bool fixedPitch).
Sourcepub unsafe fn set_font_hinting_preference(
&self,
hinting_preference: HintingPreference,
)
pub unsafe fn set_font_hinting_preference( &self, hinting_preference: HintingPreference, )
Calls C++ function: void QTextCharFormat::setFontHintingPreference(QFont::HintingPreference hintingPreference).
Sourcepub unsafe fn set_font_italic(&self, italic: bool)
pub unsafe fn set_font_italic(&self, italic: bool)
Calls C++ function: void QTextCharFormat::setFontItalic(bool italic).
Sourcepub unsafe fn set_font_kerning(&self, enable: bool)
pub unsafe fn set_font_kerning(&self, enable: bool)
Calls C++ function: void QTextCharFormat::setFontKerning(bool enable).
Sourcepub unsafe fn set_font_letter_spacing(&self, spacing: c_double)
pub unsafe fn set_font_letter_spacing(&self, spacing: c_double)
Calls C++ function: void QTextCharFormat::setFontLetterSpacing(double spacing).
Sourcepub unsafe fn set_font_letter_spacing_type(
&self,
letter_spacing_type: SpacingType,
)
pub unsafe fn set_font_letter_spacing_type( &self, letter_spacing_type: SpacingType, )
Calls C++ function: void QTextCharFormat::setFontLetterSpacingType(QFont::SpacingType letterSpacingType).
Sourcepub unsafe fn set_font_overline(&self, overline: bool)
pub unsafe fn set_font_overline(&self, overline: bool)
Calls C++ function: void QTextCharFormat::setFontOverline(bool overline).
Sourcepub unsafe fn set_font_point_size(&self, size: c_double)
pub unsafe fn set_font_point_size(&self, size: c_double)
Calls C++ function: void QTextCharFormat::setFontPointSize(double size).
Sourcepub unsafe fn set_font_stretch(&self, factor: c_int)
pub unsafe fn set_font_stretch(&self, factor: c_int)
Calls C++ function: void QTextCharFormat::setFontStretch(int factor).
Sourcepub unsafe fn set_font_strike_out(&self, strike_out: bool)
pub unsafe fn set_font_strike_out(&self, strike_out: bool)
Calls C++ function: void QTextCharFormat::setFontStrikeOut(bool strikeOut).
Sourcepub unsafe fn set_font_style_hint_2a(
&self,
hint: StyleHint,
strategy: StyleStrategy,
)
pub unsafe fn set_font_style_hint_2a( &self, hint: StyleHint, strategy: StyleStrategy, )
Calls C++ function: void QTextCharFormat::setFontStyleHint(QFont::StyleHint hint, QFont::StyleStrategy strategy = …).
Sourcepub unsafe fn set_font_style_hint_1a(&self, hint: StyleHint)
pub unsafe fn set_font_style_hint_1a(&self, hint: StyleHint)
Calls C++ function: void QTextCharFormat::setFontStyleHint(QFont::StyleHint hint).
Sourcepub unsafe fn set_font_style_name(
&self,
style_name: impl CastInto<Ref<QString>>,
)
pub unsafe fn set_font_style_name( &self, style_name: impl CastInto<Ref<QString>>, )
Calls C++ function: void QTextCharFormat::setFontStyleName(const QString& styleName).
Sourcepub unsafe fn set_font_style_strategy(&self, strategy: StyleStrategy)
pub unsafe fn set_font_style_strategy(&self, strategy: StyleStrategy)
Calls C++ function: void QTextCharFormat::setFontStyleStrategy(QFont::StyleStrategy strategy).
Sourcepub unsafe fn set_font_underline(&self, underline: bool)
pub unsafe fn set_font_underline(&self, underline: bool)
Calls C++ function: void QTextCharFormat::setFontUnderline(bool underline).
Sourcepub unsafe fn set_font_weight(&self, weight: c_int)
pub unsafe fn set_font_weight(&self, weight: c_int)
Calls C++ function: void QTextCharFormat::setFontWeight(int weight).
Sourcepub unsafe fn set_font_word_spacing(&self, spacing: c_double)
pub unsafe fn set_font_word_spacing(&self, spacing: c_double)
Calls C++ function: void QTextCharFormat::setFontWordSpacing(double spacing).
Sourcepub unsafe fn set_table_cell_column_span(&self, table_cell_column_span: c_int)
pub unsafe fn set_table_cell_column_span(&self, table_cell_column_span: c_int)
Calls C++ function: void QTextCharFormat::setTableCellColumnSpan(int tableCellColumnSpan).
Sourcepub unsafe fn set_table_cell_row_span(&self, table_cell_row_span: c_int)
pub unsafe fn set_table_cell_row_span(&self, table_cell_row_span: c_int)
Calls C++ function: void QTextCharFormat::setTableCellRowSpan(int tableCellRowSpan).
Sourcepub unsafe fn set_text_outline(&self, pen: impl CastInto<Ref<QPen>>)
pub unsafe fn set_text_outline(&self, pen: impl CastInto<Ref<QPen>>)
Calls C++ function: void QTextCharFormat::setTextOutline(const QPen& pen).
Sourcepub unsafe fn set_tool_tip(&self, tip: impl CastInto<Ref<QString>>)
pub unsafe fn set_tool_tip(&self, tip: impl CastInto<Ref<QString>>)
Calls C++ function: void QTextCharFormat::setToolTip(const QString& tip).
Sourcepub unsafe fn set_underline_color(&self, color: impl CastInto<Ref<QColor>>)
pub unsafe fn set_underline_color(&self, color: impl CastInto<Ref<QColor>>)
Calls C++ function: void QTextCharFormat::setUnderlineColor(const QColor& color).
Sourcepub unsafe fn set_underline_style(&self, style: UnderlineStyle)
pub unsafe fn set_underline_style(&self, style: UnderlineStyle)
Calls C++ function: void QTextCharFormat::setUnderlineStyle(QTextCharFormat::UnderlineStyle style).
Sourcepub unsafe fn set_vertical_alignment(&self, alignment: VerticalAlignment)
pub unsafe fn set_vertical_alignment(&self, alignment: VerticalAlignment)
Calls C++ function: void QTextCharFormat::setVerticalAlignment(QTextCharFormat::VerticalAlignment alignment).
Sourcepub unsafe fn table_cell_column_span(&self) -> c_int
pub unsafe fn table_cell_column_span(&self) -> c_int
Calls C++ function: int QTextCharFormat::tableCellColumnSpan() const.
Sourcepub unsafe fn table_cell_row_span(&self) -> c_int
pub unsafe fn table_cell_row_span(&self) -> c_int
Calls C++ function: int QTextCharFormat::tableCellRowSpan() const.
Sourcepub unsafe fn text_outline(&self) -> CppBox<QPen>
pub unsafe fn text_outline(&self) -> CppBox<QPen>
Calls C++ function: QPen QTextCharFormat::textOutline() const.
Sourcepub unsafe fn tool_tip(&self) -> CppBox<QString>
pub unsafe fn tool_tip(&self) -> CppBox<QString>
Calls C++ function: QString QTextCharFormat::toolTip() const.
Sourcepub unsafe fn underline_color(&self) -> CppBox<QColor>
pub unsafe fn underline_color(&self) -> CppBox<QColor>
Calls C++ function: QColor QTextCharFormat::underlineColor() const.
Sourcepub unsafe fn underline_style(&self) -> UnderlineStyle
pub unsafe fn underline_style(&self) -> UnderlineStyle
Calls C++ function: QTextCharFormat::UnderlineStyle QTextCharFormat::underlineStyle() const.
Sourcepub unsafe fn vertical_alignment(&self) -> VerticalAlignment
pub unsafe fn vertical_alignment(&self) -> VerticalAlignment
Calls C++ function: QTextCharFormat::VerticalAlignment QTextCharFormat::verticalAlignment() const.
Methods from Deref<Target = QTextFormat>§
Sourcepub unsafe fn background(&self) -> CppBox<QBrush>
pub unsafe fn background(&self) -> CppBox<QBrush>
Calls C++ function: QBrush QTextFormat::background() const.
Sourcepub unsafe fn bool_property(&self, property_id: c_int) -> bool
pub unsafe fn bool_property(&self, property_id: c_int) -> bool
Calls C++ function: bool QTextFormat::boolProperty(int propertyId) const.
Sourcepub unsafe fn brush_property(&self, property_id: c_int) -> CppBox<QBrush>
pub unsafe fn brush_property(&self, property_id: c_int) -> CppBox<QBrush>
Calls C++ function: QBrush QTextFormat::brushProperty(int propertyId) const.
Sourcepub unsafe fn clear_background(&self)
pub unsafe fn clear_background(&self)
Calls C++ function: void QTextFormat::clearBackground().
Sourcepub unsafe fn clear_foreground(&self)
pub unsafe fn clear_foreground(&self)
Calls C++ function: void QTextFormat::clearForeground().
Sourcepub unsafe fn clear_property(&self, property_id: c_int)
pub unsafe fn clear_property(&self, property_id: c_int)
Calls C++ function: void QTextFormat::clearProperty(int propertyId).
Sourcepub unsafe fn color_property(&self, property_id: c_int) -> CppBox<QColor>
pub unsafe fn color_property(&self, property_id: c_int) -> CppBox<QColor>
Calls C++ function: QColor QTextFormat::colorProperty(int propertyId) const.
Sourcepub unsafe fn copy_from(
&self,
rhs: impl CastInto<Ref<QTextFormat>>,
) -> Ref<QTextFormat>
pub unsafe fn copy_from( &self, rhs: impl CastInto<Ref<QTextFormat>>, ) -> Ref<QTextFormat>
Calls C++ function: QTextFormat& QTextFormat::operator=(const QTextFormat& rhs).
Sourcepub unsafe fn double_property(&self, property_id: c_int) -> c_double
pub unsafe fn double_property(&self, property_id: c_int) -> c_double
Calls C++ function: double QTextFormat::doubleProperty(int propertyId) const.
Sourcepub unsafe fn foreground(&self) -> CppBox<QBrush>
pub unsafe fn foreground(&self) -> CppBox<QBrush>
Calls C++ function: QBrush QTextFormat::foreground() const.
Sourcepub unsafe fn has_property(&self, property_id: c_int) -> bool
pub unsafe fn has_property(&self, property_id: c_int) -> bool
Calls C++ function: bool QTextFormat::hasProperty(int propertyId) const.
Sourcepub unsafe fn int_property(&self, property_id: c_int) -> c_int
pub unsafe fn int_property(&self, property_id: c_int) -> c_int
Calls C++ function: int QTextFormat::intProperty(int propertyId) const.
Sourcepub unsafe fn is_block_format(&self) -> bool
pub unsafe fn is_block_format(&self) -> bool
Calls C++ function: bool QTextFormat::isBlockFormat() const.
Sourcepub unsafe fn is_char_format(&self) -> bool
pub unsafe fn is_char_format(&self) -> bool
Calls C++ function: bool QTextFormat::isCharFormat() const.
Sourcepub unsafe fn is_frame_format(&self) -> bool
pub unsafe fn is_frame_format(&self) -> bool
Calls C++ function: bool QTextFormat::isFrameFormat() const.
Sourcepub unsafe fn is_image_format(&self) -> bool
pub unsafe fn is_image_format(&self) -> bool
Calls C++ function: bool QTextFormat::isImageFormat() const.
Sourcepub unsafe fn is_list_format(&self) -> bool
pub unsafe fn is_list_format(&self) -> bool
Calls C++ function: bool QTextFormat::isListFormat() const.
Sourcepub unsafe fn is_table_cell_format(&self) -> bool
pub unsafe fn is_table_cell_format(&self) -> bool
Calls C++ function: bool QTextFormat::isTableCellFormat() const.
Sourcepub unsafe fn is_table_format(&self) -> bool
pub unsafe fn is_table_format(&self) -> bool
Calls C++ function: bool QTextFormat::isTableFormat() const.
Sourcepub unsafe fn layout_direction(&self) -> LayoutDirection
pub unsafe fn layout_direction(&self) -> LayoutDirection
Calls C++ function: Qt::LayoutDirection QTextFormat::layoutDirection() const.
Sourcepub unsafe fn length_property(&self, property_id: c_int) -> CppBox<QTextLength>
pub unsafe fn length_property(&self, property_id: c_int) -> CppBox<QTextLength>
Calls C++ function: QTextLength QTextFormat::lengthProperty(int propertyId) const.
Sourcepub unsafe fn length_vector_property(
&self,
property_id: c_int,
) -> CppBox<QVectorOfQTextLength>
pub unsafe fn length_vector_property( &self, property_id: c_int, ) -> CppBox<QVectorOfQTextLength>
Calls C++ function: QVector<QTextLength> QTextFormat::lengthVectorProperty(int propertyId) const.
Sourcepub unsafe fn merge(&self, other: impl CastInto<Ref<QTextFormat>>)
pub unsafe fn merge(&self, other: impl CastInto<Ref<QTextFormat>>)
Calls C++ function: void QTextFormat::merge(const QTextFormat& other).
Sourcepub unsafe fn object_index(&self) -> c_int
pub unsafe fn object_index(&self) -> c_int
Calls C++ function: int QTextFormat::objectIndex() const.
Sourcepub unsafe fn object_type(&self) -> c_int
pub unsafe fn object_type(&self) -> c_int
Calls C++ function: int QTextFormat::objectType() const.
Sourcepub unsafe fn pen_property(&self, property_id: c_int) -> CppBox<QPen>
pub unsafe fn pen_property(&self, property_id: c_int) -> CppBox<QPen>
Calls C++ function: QPen QTextFormat::penProperty(int propertyId) const.
Sourcepub unsafe fn properties(&self) -> CppBox<QMapOfIntQVariant>
pub unsafe fn properties(&self) -> CppBox<QMapOfIntQVariant>
Calls C++ function: QMap<int, QVariant> QTextFormat::properties() const.
Sourcepub unsafe fn property(&self, property_id: c_int) -> CppBox<QVariant>
pub unsafe fn property(&self, property_id: c_int) -> CppBox<QVariant>
Calls C++ function: QVariant QTextFormat::property(int propertyId) const.
Sourcepub unsafe fn property_count(&self) -> c_int
pub unsafe fn property_count(&self) -> c_int
Calls C++ function: int QTextFormat::propertyCount() const.
Sourcepub unsafe fn set_background(&self, brush: impl CastInto<Ref<QBrush>>)
pub unsafe fn set_background(&self, brush: impl CastInto<Ref<QBrush>>)
Calls C++ function: void QTextFormat::setBackground(const QBrush& brush).
Sourcepub unsafe fn set_foreground(&self, brush: impl CastInto<Ref<QBrush>>)
pub unsafe fn set_foreground(&self, brush: impl CastInto<Ref<QBrush>>)
Calls C++ function: void QTextFormat::setForeground(const QBrush& brush).
Sourcepub unsafe fn set_layout_direction(&self, direction: LayoutDirection)
pub unsafe fn set_layout_direction(&self, direction: LayoutDirection)
Calls C++ function: void QTextFormat::setLayoutDirection(Qt::LayoutDirection direction).
Sourcepub unsafe fn set_object_index(&self, object: c_int)
pub unsafe fn set_object_index(&self, object: c_int)
Calls C++ function: void QTextFormat::setObjectIndex(int object).
Sourcepub unsafe fn set_object_type(&self, type_: c_int)
pub unsafe fn set_object_type(&self, type_: c_int)
Calls C++ function: void QTextFormat::setObjectType(int type).
Sourcepub unsafe fn set_property_int_q_variant(
&self,
property_id: c_int,
value: impl CastInto<Ref<QVariant>>,
)
pub unsafe fn set_property_int_q_variant( &self, property_id: c_int, value: impl CastInto<Ref<QVariant>>, )
Calls C++ function: void QTextFormat::setProperty(int propertyId, const QVariant& value).
Sourcepub unsafe fn set_property_int_q_vector_of_q_text_length(
&self,
property_id: c_int,
lengths: impl CastInto<Ref<QVectorOfQTextLength>>,
)
pub unsafe fn set_property_int_q_vector_of_q_text_length( &self, property_id: c_int, lengths: impl CastInto<Ref<QVectorOfQTextLength>>, )
Calls C++ function: void QTextFormat::setProperty(int propertyId, const QVector<QTextLength>& lengths).
Sourcepub unsafe fn string_property(&self, property_id: c_int) -> CppBox<QString>
pub unsafe fn string_property(&self, property_id: c_int) -> CppBox<QString>
Calls C++ function: QString QTextFormat::stringProperty(int propertyId) const.
Sourcepub unsafe fn swap(&self, other: impl CastInto<Ref<QTextFormat>>)
pub unsafe fn swap(&self, other: impl CastInto<Ref<QTextFormat>>)
Calls C++ function: void QTextFormat::swap(QTextFormat& other).
Sourcepub unsafe fn to_block_format(&self) -> CppBox<QTextBlockFormat>
pub unsafe fn to_block_format(&self) -> CppBox<QTextBlockFormat>
Calls C++ function: QTextBlockFormat QTextFormat::toBlockFormat() const.
Sourcepub unsafe fn to_char_format(&self) -> CppBox<QTextCharFormat>
pub unsafe fn to_char_format(&self) -> CppBox<QTextCharFormat>
Calls C++ function: QTextCharFormat QTextFormat::toCharFormat() const.
Sourcepub unsafe fn to_frame_format(&self) -> CppBox<QTextFrameFormat>
pub unsafe fn to_frame_format(&self) -> CppBox<QTextFrameFormat>
Calls C++ function: QTextFrameFormat QTextFormat::toFrameFormat() const.
Sourcepub unsafe fn to_image_format(&self) -> CppBox<QTextImageFormat>
pub unsafe fn to_image_format(&self) -> CppBox<QTextImageFormat>
Calls C++ function: QTextImageFormat QTextFormat::toImageFormat() const.
Sourcepub unsafe fn to_list_format(&self) -> CppBox<QTextListFormat>
pub unsafe fn to_list_format(&self) -> CppBox<QTextListFormat>
Calls C++ function: QTextListFormat QTextFormat::toListFormat() const.
Sourcepub unsafe fn to_q_variant(&self) -> CppBox<QVariant>
pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>
Calls C++ function: QVariant QTextFormat::operator QVariant() const.
Sourcepub unsafe fn to_table_cell_format(&self) -> CppBox<QTextTableCellFormat>
pub unsafe fn to_table_cell_format(&self) -> CppBox<QTextTableCellFormat>
Calls C++ function: QTextTableCellFormat QTextFormat::toTableCellFormat() const.
Sourcepub unsafe fn to_table_format(&self) -> CppBox<QTextTableFormat>
pub unsafe fn to_table_format(&self) -> CppBox<QTextTableFormat>
Calls C++ function: QTextTableFormat QTextFormat::toTableFormat() const.
Trait Implementations§
Source§impl CppDeletable for QTextImageFormat
impl CppDeletable for QTextImageFormat
Source§impl Deref for QTextImageFormat
impl Deref for QTextImageFormat
Source§fn deref(&self) -> &QTextCharFormat
fn deref(&self) -> &QTextCharFormat
Calls C++ function: QTextCharFormat* static_cast<QTextCharFormat*>(QTextImageFormat* ptr).
Source§type Target = QTextCharFormat
type Target = QTextCharFormat
Source§impl StaticDowncast<QTextImageFormat> for QTextCharFormat
impl StaticDowncast<QTextImageFormat> for QTextCharFormat
Source§unsafe fn static_downcast(ptr: Ptr<QTextCharFormat>) -> Ptr<QTextImageFormat>
unsafe fn static_downcast(ptr: Ptr<QTextCharFormat>) -> Ptr<QTextImageFormat>
Calls C++ function: QTextImageFormat* static_cast<QTextImageFormat*>(QTextCharFormat* ptr).
Source§impl StaticDowncast<QTextImageFormat> for QTextFormat
impl StaticDowncast<QTextImageFormat> for QTextFormat
Source§unsafe fn static_downcast(ptr: Ptr<QTextFormat>) -> Ptr<QTextImageFormat>
unsafe fn static_downcast(ptr: Ptr<QTextFormat>) -> Ptr<QTextImageFormat>
Calls C++ function: QTextImageFormat* static_cast<QTextImageFormat*>(QTextFormat* ptr).
Source§impl StaticUpcast<QTextCharFormat> for QTextImageFormat
impl StaticUpcast<QTextCharFormat> for QTextImageFormat
Source§unsafe fn static_upcast(ptr: Ptr<QTextImageFormat>) -> Ptr<QTextCharFormat>
unsafe fn static_upcast(ptr: Ptr<QTextImageFormat>) -> Ptr<QTextCharFormat>
Calls C++ function: QTextCharFormat* static_cast<QTextCharFormat*>(QTextImageFormat* ptr).
Source§impl StaticUpcast<QTextFormat> for QTextImageFormat
impl StaticUpcast<QTextFormat> for QTextImageFormat
Source§unsafe fn static_upcast(ptr: Ptr<QTextImageFormat>) -> Ptr<QTextFormat>
unsafe fn static_upcast(ptr: Ptr<QTextImageFormat>) -> Ptr<QTextFormat>
Calls C++ function: QTextFormat* static_cast<QTextFormat*>(QTextImageFormat* ptr).