pub struct QTextListFormat { /* private fields */ }Expand description
C++ class: QTextListFormat.
Implementations§
Source§impl QTextListFormat
impl QTextListFormat
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QTextListFormat>>,
) -> Ref<QTextListFormat>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QTextListFormat>>, ) -> Ref<QTextListFormat>
Calls C++ function: QTextListFormat& QTextListFormat::operator=(const QTextListFormat& other).
Sourcepub unsafe fn is_valid(&self) -> bool
pub unsafe fn is_valid(&self) -> bool
Calls C++ function: bool QTextListFormat::isValid() const.
Sourcepub unsafe fn new() -> CppBox<QTextListFormat>
pub unsafe fn new() -> CppBox<QTextListFormat>
Calls C++ function: [constructor] void QTextListFormat::QTextListFormat().
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QTextListFormat>>,
) -> CppBox<QTextListFormat>
pub unsafe fn new_copy( other: impl CastInto<Ref<QTextListFormat>>, ) -> CppBox<QTextListFormat>
Calls C++ function: [constructor] void QTextListFormat::QTextListFormat(const QTextListFormat& other).
Sourcepub unsafe fn number_prefix(&self) -> CppBox<QString>
pub unsafe fn number_prefix(&self) -> CppBox<QString>
Calls C++ function: QString QTextListFormat::numberPrefix() const.
Sourcepub unsafe fn number_suffix(&self) -> CppBox<QString>
pub unsafe fn number_suffix(&self) -> CppBox<QString>
Calls C++ function: QString QTextListFormat::numberSuffix() const.
Sourcepub unsafe fn set_indent(&self, indent: c_int)
pub unsafe fn set_indent(&self, indent: c_int)
Calls C++ function: void QTextListFormat::setIndent(int indent).
Sourcepub unsafe fn set_number_prefix(
&self,
number_prefix: impl CastInto<Ref<QString>>,
)
pub unsafe fn set_number_prefix( &self, number_prefix: impl CastInto<Ref<QString>>, )
Calls C++ function: void QTextListFormat::setNumberPrefix(const QString& numberPrefix).
Sourcepub unsafe fn set_number_suffix(
&self,
number_suffix: impl CastInto<Ref<QString>>,
)
pub unsafe fn set_number_suffix( &self, number_suffix: impl CastInto<Ref<QString>>, )
Calls C++ function: void QTextListFormat::setNumberSuffix(const QString& numberSuffix).
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 QTextListFormat
impl CppDeletable for QTextListFormat
Source§impl Deref for QTextListFormat
impl Deref for QTextListFormat
Source§fn deref(&self) -> &QTextFormat
fn deref(&self) -> &QTextFormat
Calls C++ function: QTextFormat* static_cast<QTextFormat*>(QTextListFormat* ptr).
Source§type Target = QTextFormat
type Target = QTextFormat
Source§impl StaticDowncast<QTextListFormat> for QTextFormat
impl StaticDowncast<QTextListFormat> for QTextFormat
Source§unsafe fn static_downcast(ptr: Ptr<QTextFormat>) -> Ptr<QTextListFormat>
unsafe fn static_downcast(ptr: Ptr<QTextFormat>) -> Ptr<QTextListFormat>
Calls C++ function: QTextListFormat* static_cast<QTextListFormat*>(QTextFormat* ptr).
Source§impl StaticUpcast<QTextFormat> for QTextListFormat
impl StaticUpcast<QTextFormat> for QTextListFormat
Source§unsafe fn static_upcast(ptr: Ptr<QTextListFormat>) -> Ptr<QTextFormat>
unsafe fn static_upcast(ptr: Ptr<QTextListFormat>) -> Ptr<QTextFormat>
Calls C++ function: QTextFormat* static_cast<QTextFormat*>(QTextListFormat* ptr).