Skip to main content

QTextListFormat

Struct QTextListFormat 

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

C++ class: QTextListFormat.

Implementations§

Source§

impl QTextListFormat

Source

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

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

Source

pub unsafe fn indent(&self) -> c_int

Calls C++ function: int QTextListFormat::indent() const.

Source

pub unsafe fn is_valid(&self) -> bool

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

Source

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

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

Source

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

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

Source

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

Calls C++ function: QString QTextListFormat::numberPrefix() const.

Source

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

Calls C++ function: QString QTextListFormat::numberSuffix() const.

Source

pub unsafe fn set_indent(&self, indent: c_int)

Calls C++ function: void QTextListFormat::setIndent(int indent).

Source

pub unsafe fn set_number_prefix( &self, number_prefix: impl CastInto<Ref<QString>>, )

Calls C++ function: void QTextListFormat::setNumberPrefix(const QString& numberPrefix).

Source

pub unsafe fn set_number_suffix( &self, number_suffix: impl CastInto<Ref<QString>>, )

Calls C++ function: void QTextListFormat::setNumberSuffix(const QString& numberSuffix).

Source

pub unsafe fn set_style(&self, style: Style)

Calls C++ function: void QTextListFormat::setStyle(QTextListFormat::Style style).

Source

pub unsafe fn style(&self) -> Style

Calls C++ function: QTextListFormat::Style QTextListFormat::style() 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 QTextListFormat

Source§

unsafe fn delete(&self)

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

Source§

impl Deref for QTextListFormat

Source§

fn deref(&self) -> &QTextFormat

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

Source§

type Target = QTextFormat

The resulting type after dereferencing.
Source§

impl StaticDowncast<QTextListFormat> for QTextFormat

Source§

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

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

Source§

impl StaticUpcast<QTextFormat> for QTextListFormat

Source§

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

Calls C++ function: QTextFormat* static_cast<QTextFormat*>(QTextListFormat* 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.