Skip to main content

QTextImageFormat

Struct QTextImageFormat 

Source
pub struct QTextImageFormat { /* private fields */ }
Expand description

C++ class: QTextImageFormat.

Implementations§

Source§

impl QTextImageFormat

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QTextImageFormat>>, ) -> Ref<QTextImageFormat>

Calls C++ function: QTextImageFormat& QTextImageFormat::operator=(const QTextImageFormat& other).

Source

pub unsafe fn height(&self) -> c_double

Calls C++ function: double QTextImageFormat::height() const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QTextImageFormat::isValid() const.

Source

pub unsafe fn name(&self) -> CppBox<QString>

Calls C++ function: QString QTextImageFormat::name() const.

Source

pub unsafe fn new() -> CppBox<QTextImageFormat>

Calls C++ function: [constructor] void QTextImageFormat::QTextImageFormat().

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QTextImageFormat>>, ) -> CppBox<QTextImageFormat>

Calls C++ function: [constructor] void QTextImageFormat::QTextImageFormat(const QTextImageFormat& other).

Source

pub unsafe fn quality(&self) -> c_int

Calls C++ function: int QTextImageFormat::quality() const.

Source

pub unsafe fn set_height(&self, height: c_double)

Calls C++ function: void QTextImageFormat::setHeight(double height).

Source

pub unsafe fn set_name(&self, name: impl CastInto<Ref<QString>>)

Calls C++ function: void QTextImageFormat::setName(const QString& name).

Source

pub unsafe fn set_quality_1a(&self, quality: c_int)

Calls C++ function: void QTextImageFormat::setQuality(int quality = …).

Source

pub unsafe fn set_quality_0a(&self)

Calls C++ function: void QTextImageFormat::setQuality().

Source

pub unsafe fn set_width(&self, width: c_double)

Calls C++ function: void QTextImageFormat::setWidth(double width).

Source

pub unsafe fn width(&self) -> c_double

Calls C++ function: double QTextImageFormat::width() const.

Methods from Deref<Target = QTextCharFormat>§

Source

pub unsafe fn anchor_href(&self) -> CppBox<QString>

Calls C++ function: QString QTextCharFormat::anchorHref() const.

Source

pub unsafe fn anchor_name(&self) -> CppBox<QString>

Calls C++ function: QString QTextCharFormat::anchorName() const.

Source

pub unsafe fn anchor_names(&self) -> CppBox<QStringList>

Calls C++ function: QStringList QTextCharFormat::anchorNames() const.

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QTextCharFormat>>, ) -> Ref<QTextCharFormat>

Calls C++ function: QTextCharFormat& QTextCharFormat::operator=(const QTextCharFormat& other).

Source

pub unsafe fn font(&self) -> CppBox<QFont>

Calls C++ function: QFont QTextCharFormat::font() const.

Source

pub unsafe fn font_capitalization(&self) -> Capitalization

Calls C++ function: QFont::Capitalization QTextCharFormat::fontCapitalization() const.

Source

pub unsafe fn font_families(&self) -> CppBox<QVariant>

Calls C++ function: QVariant QTextCharFormat::fontFamilies() const.

Source

pub unsafe fn font_family(&self) -> CppBox<QString>

Calls C++ function: QString QTextCharFormat::fontFamily() const.

Source

pub unsafe fn font_fixed_pitch(&self) -> bool

Calls C++ function: bool QTextCharFormat::fontFixedPitch() const.

Source

pub unsafe fn font_hinting_preference(&self) -> HintingPreference

Calls C++ function: QFont::HintingPreference QTextCharFormat::fontHintingPreference() const.

Source

pub unsafe fn font_italic(&self) -> bool

Calls C++ function: bool QTextCharFormat::fontItalic() const.

Source

pub unsafe fn font_kerning(&self) -> bool

Calls C++ function: bool QTextCharFormat::fontKerning() const.

Source

pub unsafe fn font_letter_spacing(&self) -> c_double

Calls C++ function: double QTextCharFormat::fontLetterSpacing() const.

Source

pub unsafe fn font_letter_spacing_type(&self) -> SpacingType

Calls C++ function: QFont::SpacingType QTextCharFormat::fontLetterSpacingType() const.

Source

pub unsafe fn font_overline(&self) -> bool

Calls C++ function: bool QTextCharFormat::fontOverline() const.

Source

pub unsafe fn font_point_size(&self) -> c_double

Calls C++ function: double QTextCharFormat::fontPointSize() const.

Source

pub unsafe fn font_stretch(&self) -> c_int

Calls C++ function: int QTextCharFormat::fontStretch() const.

Source

pub unsafe fn font_strike_out(&self) -> bool

Calls C++ function: bool QTextCharFormat::fontStrikeOut() const.

Source

pub unsafe fn font_style_hint(&self) -> StyleHint

Calls C++ function: QFont::StyleHint QTextCharFormat::fontStyleHint() const.

Source

pub unsafe fn font_style_name(&self) -> CppBox<QVariant>

Calls C++ function: QVariant QTextCharFormat::fontStyleName() const.

Source

pub unsafe fn font_style_strategy(&self) -> StyleStrategy

Calls C++ function: QFont::StyleStrategy QTextCharFormat::fontStyleStrategy() const.

Source

pub unsafe fn font_underline(&self) -> bool

Calls C++ function: bool QTextCharFormat::fontUnderline() const.

Source

pub unsafe fn font_weight(&self) -> c_int

Calls C++ function: int QTextCharFormat::fontWeight() const.

Source

pub unsafe fn font_word_spacing(&self) -> c_double

Calls C++ function: double QTextCharFormat::fontWordSpacing() const.

Source

pub unsafe fn is_anchor(&self) -> bool

Calls C++ function: bool QTextCharFormat::isAnchor() const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QTextCharFormat::isValid() const.

Source

pub unsafe fn set_anchor(&self, anchor: bool)

Calls C++ function: void QTextCharFormat::setAnchor(bool anchor).

Source

pub unsafe fn set_anchor_href(&self, value: impl CastInto<Ref<QString>>)

Calls C++ function: void QTextCharFormat::setAnchorHref(const QString& value).

Source

pub unsafe fn set_anchor_name(&self, name: impl CastInto<Ref<QString>>)

Calls C++ function: void QTextCharFormat::setAnchorName(const QString& name).

Source

pub unsafe fn set_anchor_names(&self, names: impl CastInto<Ref<QStringList>>)

Calls C++ function: void QTextCharFormat::setAnchorNames(const QStringList& names).

Source

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).

Source

pub unsafe fn set_font_1a(&self, font: impl CastInto<Ref<QFont>>)

Calls C++ function: void QTextCharFormat::setFont(const QFont& font).

Source

pub unsafe fn set_font_capitalization(&self, capitalization: Capitalization)

Calls C++ function: void QTextCharFormat::setFontCapitalization(QFont::Capitalization capitalization).

Source

pub unsafe fn set_font_families( &self, families: impl CastInto<Ref<QStringList>>, )

Calls C++ function: void QTextCharFormat::setFontFamilies(const QStringList& families).

Source

pub unsafe fn set_font_family(&self, family: impl CastInto<Ref<QString>>)

Calls C++ function: void QTextCharFormat::setFontFamily(const QString& family).

Source

pub unsafe fn set_font_fixed_pitch(&self, fixed_pitch: bool)

Calls C++ function: void QTextCharFormat::setFontFixedPitch(bool fixedPitch).

Source

pub unsafe fn set_font_hinting_preference( &self, hinting_preference: HintingPreference, )

Calls C++ function: void QTextCharFormat::setFontHintingPreference(QFont::HintingPreference hintingPreference).

Source

pub unsafe fn set_font_italic(&self, italic: bool)

Calls C++ function: void QTextCharFormat::setFontItalic(bool italic).

Source

pub unsafe fn set_font_kerning(&self, enable: bool)

Calls C++ function: void QTextCharFormat::setFontKerning(bool enable).

Source

pub unsafe fn set_font_letter_spacing(&self, spacing: c_double)

Calls C++ function: void QTextCharFormat::setFontLetterSpacing(double spacing).

Source

pub unsafe fn set_font_letter_spacing_type( &self, letter_spacing_type: SpacingType, )

Calls C++ function: void QTextCharFormat::setFontLetterSpacingType(QFont::SpacingType letterSpacingType).

Source

pub unsafe fn set_font_overline(&self, overline: bool)

Calls C++ function: void QTextCharFormat::setFontOverline(bool overline).

Source

pub unsafe fn set_font_point_size(&self, size: c_double)

Calls C++ function: void QTextCharFormat::setFontPointSize(double size).

Source

pub unsafe fn set_font_stretch(&self, factor: c_int)

Calls C++ function: void QTextCharFormat::setFontStretch(int factor).

Source

pub unsafe fn set_font_strike_out(&self, strike_out: bool)

Calls C++ function: void QTextCharFormat::setFontStrikeOut(bool strikeOut).

Source

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 = …).

Source

pub unsafe fn set_font_style_hint_1a(&self, hint: StyleHint)

Calls C++ function: void QTextCharFormat::setFontStyleHint(QFont::StyleHint hint).

Source

pub unsafe fn set_font_style_name( &self, style_name: impl CastInto<Ref<QString>>, )

Calls C++ function: void QTextCharFormat::setFontStyleName(const QString& styleName).

Source

pub unsafe fn set_font_style_strategy(&self, strategy: StyleStrategy)

Calls C++ function: void QTextCharFormat::setFontStyleStrategy(QFont::StyleStrategy strategy).

Source

pub unsafe fn set_font_underline(&self, underline: bool)

Calls C++ function: void QTextCharFormat::setFontUnderline(bool underline).

Source

pub unsafe fn set_font_weight(&self, weight: c_int)

Calls C++ function: void QTextCharFormat::setFontWeight(int weight).

Source

pub unsafe fn set_font_word_spacing(&self, spacing: c_double)

Calls C++ function: void QTextCharFormat::setFontWordSpacing(double spacing).

Source

pub unsafe fn set_table_cell_column_span(&self, table_cell_column_span: c_int)

Calls C++ function: void QTextCharFormat::setTableCellColumnSpan(int tableCellColumnSpan).

Source

pub unsafe fn set_table_cell_row_span(&self, table_cell_row_span: c_int)

Calls C++ function: void QTextCharFormat::setTableCellRowSpan(int tableCellRowSpan).

Source

pub unsafe fn set_text_outline(&self, pen: impl CastInto<Ref<QPen>>)

Calls C++ function: void QTextCharFormat::setTextOutline(const QPen& pen).

Source

pub unsafe fn set_tool_tip(&self, tip: impl CastInto<Ref<QString>>)

Calls C++ function: void QTextCharFormat::setToolTip(const QString& tip).

Source

pub unsafe fn set_underline_color(&self, color: impl CastInto<Ref<QColor>>)

Calls C++ function: void QTextCharFormat::setUnderlineColor(const QColor& color).

Source

pub unsafe fn set_underline_style(&self, style: UnderlineStyle)

Calls C++ function: void QTextCharFormat::setUnderlineStyle(QTextCharFormat::UnderlineStyle style).

Source

pub unsafe fn set_vertical_alignment(&self, alignment: VerticalAlignment)

Calls C++ function: void QTextCharFormat::setVerticalAlignment(QTextCharFormat::VerticalAlignment alignment).

Source

pub unsafe fn table_cell_column_span(&self) -> c_int

Calls C++ function: int QTextCharFormat::tableCellColumnSpan() const.

Source

pub unsafe fn table_cell_row_span(&self) -> c_int

Calls C++ function: int QTextCharFormat::tableCellRowSpan() const.

Source

pub unsafe fn text_outline(&self) -> CppBox<QPen>

Calls C++ function: QPen QTextCharFormat::textOutline() const.

Source

pub unsafe fn tool_tip(&self) -> CppBox<QString>

Calls C++ function: QString QTextCharFormat::toolTip() const.

Source

pub unsafe fn underline_color(&self) -> CppBox<QColor>

Calls C++ function: QColor QTextCharFormat::underlineColor() const.

Source

pub unsafe fn underline_style(&self) -> UnderlineStyle

Calls C++ function: QTextCharFormat::UnderlineStyle QTextCharFormat::underlineStyle() const.

Source

pub unsafe fn vertical_alignment(&self) -> VerticalAlignment

Calls C++ function: QTextCharFormat::VerticalAlignment QTextCharFormat::verticalAlignment() const.

Methods from Deref<Target = QTextFormat>§

Source

pub unsafe fn background(&self) -> CppBox<QBrush>

Calls C++ function: QBrush QTextFormat::background() const.

Source

pub unsafe fn bool_property(&self, property_id: c_int) -> bool

Calls C++ function: bool QTextFormat::boolProperty(int propertyId) const.

Source

pub unsafe fn brush_property(&self, property_id: c_int) -> CppBox<QBrush>

Calls C++ function: QBrush QTextFormat::brushProperty(int propertyId) const.

Source

pub unsafe fn clear_background(&self)

Calls C++ function: void QTextFormat::clearBackground().

Source

pub unsafe fn clear_foreground(&self)

Calls C++ function: void QTextFormat::clearForeground().

Source

pub unsafe fn clear_property(&self, property_id: c_int)

Calls C++ function: void QTextFormat::clearProperty(int propertyId).

Source

pub unsafe fn color_property(&self, property_id: c_int) -> CppBox<QColor>

Calls C++ function: QColor QTextFormat::colorProperty(int propertyId) const.

Source

pub unsafe fn copy_from( &self, rhs: impl CastInto<Ref<QTextFormat>>, ) -> Ref<QTextFormat>

Calls C++ function: QTextFormat& QTextFormat::operator=(const QTextFormat& rhs).

Source

pub unsafe fn double_property(&self, property_id: c_int) -> c_double

Calls C++ function: double QTextFormat::doubleProperty(int propertyId) const.

Source

pub unsafe fn foreground(&self) -> CppBox<QBrush>

Calls C++ function: QBrush QTextFormat::foreground() const.

Source

pub unsafe fn has_property(&self, property_id: c_int) -> bool

Calls C++ function: bool QTextFormat::hasProperty(int propertyId) const.

Source

pub unsafe fn int_property(&self, property_id: c_int) -> c_int

Calls C++ function: int QTextFormat::intProperty(int propertyId) const.

Source

pub unsafe fn is_block_format(&self) -> bool

Calls C++ function: bool QTextFormat::isBlockFormat() const.

Source

pub unsafe fn is_char_format(&self) -> bool

Calls C++ function: bool QTextFormat::isCharFormat() const.

Source

pub unsafe fn is_empty(&self) -> bool

Calls C++ function: bool QTextFormat::isEmpty() const.

Source

pub unsafe fn is_frame_format(&self) -> bool

Calls C++ function: bool QTextFormat::isFrameFormat() const.

Source

pub unsafe fn is_image_format(&self) -> bool

Calls C++ function: bool QTextFormat::isImageFormat() const.

Source

pub unsafe fn is_list_format(&self) -> bool

Calls C++ function: bool QTextFormat::isListFormat() const.

Source

pub unsafe fn is_table_cell_format(&self) -> bool

Calls C++ function: bool QTextFormat::isTableCellFormat() const.

Source

pub unsafe fn is_table_format(&self) -> bool

Calls C++ function: bool QTextFormat::isTableFormat() const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QTextFormat::isValid() const.

Source

pub unsafe fn layout_direction(&self) -> LayoutDirection

Calls C++ function: Qt::LayoutDirection QTextFormat::layoutDirection() const.

Source

pub unsafe fn length_property(&self, property_id: c_int) -> CppBox<QTextLength>

Calls C++ function: QTextLength QTextFormat::lengthProperty(int propertyId) const.

Source

pub unsafe fn length_vector_property( &self, property_id: c_int, ) -> CppBox<QVectorOfQTextLength>

Calls C++ function: QVector<QTextLength> QTextFormat::lengthVectorProperty(int propertyId) const.

Source

pub unsafe fn merge(&self, other: impl CastInto<Ref<QTextFormat>>)

Calls C++ function: void QTextFormat::merge(const QTextFormat& other).

Source

pub unsafe fn object_index(&self) -> c_int

Calls C++ function: int QTextFormat::objectIndex() const.

Source

pub unsafe fn object_type(&self) -> c_int

Calls C++ function: int QTextFormat::objectType() const.

Source

pub unsafe fn pen_property(&self, property_id: c_int) -> CppBox<QPen>

Calls C++ function: QPen QTextFormat::penProperty(int propertyId) const.

Source

pub unsafe fn properties(&self) -> CppBox<QMapOfIntQVariant>

Calls C++ function: QMap<int, QVariant> QTextFormat::properties() const.

Source

pub unsafe fn property(&self, property_id: c_int) -> CppBox<QVariant>

Calls C++ function: QVariant QTextFormat::property(int propertyId) const.

Source

pub unsafe fn property_count(&self) -> c_int

Calls C++ function: int QTextFormat::propertyCount() const.

Source

pub unsafe fn set_background(&self, brush: impl CastInto<Ref<QBrush>>)

Calls C++ function: void QTextFormat::setBackground(const QBrush& brush).

Source

pub unsafe fn set_foreground(&self, brush: impl CastInto<Ref<QBrush>>)

Calls C++ function: void QTextFormat::setForeground(const QBrush& brush).

Source

pub unsafe fn set_layout_direction(&self, direction: LayoutDirection)

Calls C++ function: void QTextFormat::setLayoutDirection(Qt::LayoutDirection direction).

Source

pub unsafe fn set_object_index(&self, object: c_int)

Calls C++ function: void QTextFormat::setObjectIndex(int object).

Source

pub unsafe fn set_object_type(&self, type_: c_int)

Calls C++ function: void QTextFormat::setObjectType(int type).

Source

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).

Source

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).

Source

pub unsafe fn string_property(&self, property_id: c_int) -> CppBox<QString>

Calls C++ function: QString QTextFormat::stringProperty(int propertyId) const.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QTextFormat>>)

Calls C++ function: void QTextFormat::swap(QTextFormat& other).

Source

pub unsafe fn to_block_format(&self) -> CppBox<QTextBlockFormat>

Calls C++ function: QTextBlockFormat QTextFormat::toBlockFormat() const.

Source

pub unsafe fn to_char_format(&self) -> CppBox<QTextCharFormat>

Calls C++ function: QTextCharFormat QTextFormat::toCharFormat() const.

Source

pub unsafe fn to_frame_format(&self) -> CppBox<QTextFrameFormat>

Calls C++ function: QTextFrameFormat QTextFormat::toFrameFormat() const.

Source

pub unsafe fn to_image_format(&self) -> CppBox<QTextImageFormat>

Calls C++ function: QTextImageFormat QTextFormat::toImageFormat() const.

Source

pub unsafe fn to_list_format(&self) -> CppBox<QTextListFormat>

Calls C++ function: QTextListFormat QTextFormat::toListFormat() const.

Source

pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>

Calls C++ function: QVariant QTextFormat::operator QVariant() const.

Source

pub unsafe fn to_table_cell_format(&self) -> CppBox<QTextTableCellFormat>

Calls C++ function: QTextTableCellFormat QTextFormat::toTableCellFormat() const.

Source

pub unsafe fn to_table_format(&self) -> CppBox<QTextTableFormat>

Calls C++ function: QTextTableFormat QTextFormat::toTableFormat() const.

Source

pub unsafe fn type_(&self) -> c_int

Calls C++ function: int QTextFormat::type() const.

Trait Implementations§

Source§

impl CppDeletable for QTextImageFormat

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QTextImageFormat::~QTextImageFormat().

Source§

impl Deref for QTextImageFormat

Source§

fn deref(&self) -> &QTextCharFormat

Calls C++ function: QTextCharFormat* static_cast<QTextCharFormat*>(QTextImageFormat* ptr).

Source§

type Target = QTextCharFormat

The resulting type after dereferencing.
Source§

impl StaticDowncast<QTextImageFormat> for QTextCharFormat

Source§

unsafe fn static_downcast(ptr: Ptr<QTextCharFormat>) -> Ptr<QTextImageFormat>

Calls C++ function: QTextImageFormat* static_cast<QTextImageFormat*>(QTextCharFormat* ptr).

Source§

impl StaticDowncast<QTextImageFormat> for QTextFormat

Source§

unsafe fn static_downcast(ptr: Ptr<QTextFormat>) -> Ptr<QTextImageFormat>

Calls C++ function: QTextImageFormat* static_cast<QTextImageFormat*>(QTextFormat* ptr).

Source§

impl StaticUpcast<QTextCharFormat> for QTextImageFormat

Source§

unsafe fn static_upcast(ptr: Ptr<QTextImageFormat>) -> Ptr<QTextCharFormat>

Calls C++ function: QTextCharFormat* static_cast<QTextCharFormat*>(QTextImageFormat* ptr).

Source§

impl StaticUpcast<QTextFormat> for QTextImageFormat

Source§

unsafe fn static_upcast(ptr: Ptr<QTextImageFormat>) -> Ptr<QTextFormat>

Calls C++ function: QTextFormat* static_cast<QTextFormat*>(QTextImageFormat* ptr).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.