[][src]Struct qt_gui::QTextBlockGroup

#[repr(C)]
pub struct QTextBlockGroup { /* fields omitted */ }

The QTextBlockGroup class provides a container for text blocks within a QTextDocument.

C++ class: QTextBlockGroup.

C++ documentation:

The QTextBlockGroup class provides a container for text blocks within a QTextDocument.

Block groups can be used to organize blocks of text within a document. They maintain an up-to-date list of the text blocks that belong to them, even when text blocks are being edited.

Each group has a parent document which is specified when the group is constructed.

Text blocks can be inserted into a group with blockInserted(), and removed with blockRemoved(). If a block's format is changed, blockFormatChanged() is called.

The list of blocks in the group is returned by blockList(). Note that the blocks in the list are not necessarily adjacent elements in the document; for example, the top-level items in a multi-level list will be separated by the items in lower levels of the list.

Methods

impl QTextBlockGroup[src]

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QTextBlockGroup::metaObject() const.

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int QTextBlockGroup::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* QTextBlockGroup::qt_metacast(const char* arg1).

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tr(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QTextBlockGroup::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QTextBlockGroup::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QTextObject>

pub unsafe fn document(&self) -> MutPtr<QTextDocument>[src]

Returns the document this object belongs to.

Calls C++ function: QTextDocument* QTextObject::document() const.

C++ documentation:

Returns the document this object belongs to.

See also format().

pub unsafe fn format(&self) -> CppBox<QTextFormat>[src]

Returns the text object's format.

Calls C++ function: QTextFormat QTextObject::format() const.

C++ documentation:

Returns the text object's format.

See also setFormat() and document().

pub unsafe fn format_index(&self) -> c_int[src]

Returns the index of the object's format in the document's internal list of formats.

Calls C++ function: int QTextObject::formatIndex() const.

C++ documentation:

Returns the index of the object's format in the document's internal list of formats.

See also QTextDocument::allFormats().

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QTextObject::metaObject() const.

pub unsafe fn object_index(&self) -> c_int[src]

Returns the object index of this object. This can be used together with QTextFormat::setObjectIndex().

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

C++ documentation:

Returns the object index of this object. This can be used together with QTextFormat::setObjectIndex().

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int QTextObject::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* QTextObject::qt_metacast(const char* arg1).

Trait Implementations

impl Deref for QTextBlockGroup[src]

type Target = QTextObject

The resulting type after dereferencing.

fn deref(&self) -> &QTextObject[src]

Calls C++ function: QTextObject* static_cast<QTextObject*>(QTextBlockGroup* ptr).

impl DerefMut for QTextBlockGroup[src]

fn deref_mut(&mut self) -> &mut QTextObject[src]

Calls C++ function: QTextObject* static_cast<QTextObject*>(QTextBlockGroup* ptr).

impl DynamicCast<QTextBlockGroup> for QTextObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QTextObject>) -> Ptr<QTextBlockGroup>[src]

Calls C++ function: QTextBlockGroup* dynamic_cast<QTextBlockGroup*>(QTextObject* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QTextObject>) -> MutPtr<QTextBlockGroup>[src]

Calls C++ function: QTextBlockGroup* dynamic_cast<QTextBlockGroup*>(QTextObject* ptr).

impl DynamicCast<QTextBlockGroup> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QTextBlockGroup>[src]

Calls C++ function: QTextBlockGroup* dynamic_cast<QTextBlockGroup*>(QObject* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QTextBlockGroup>[src]

Calls C++ function: QTextBlockGroup* dynamic_cast<QTextBlockGroup*>(QObject* ptr).

impl DynamicCast<QTextList> for QTextBlockGroup[src]

unsafe fn dynamic_cast(ptr: Ptr<QTextBlockGroup>) -> Ptr<QTextList>[src]

Calls C++ function: QTextList* dynamic_cast<QTextList*>(QTextBlockGroup* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QTextBlockGroup>) -> MutPtr<QTextList>[src]

Calls C++ function: QTextList* dynamic_cast<QTextList*>(QTextBlockGroup* ptr).

impl StaticDowncast<QTextBlockGroup> for QTextObject[src]

unsafe fn static_downcast(ptr: Ptr<QTextObject>) -> Ptr<QTextBlockGroup>[src]

Calls C++ function: QTextBlockGroup* static_cast<QTextBlockGroup*>(QTextObject* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QTextObject>
) -> MutPtr<QTextBlockGroup>
[src]

Calls C++ function: QTextBlockGroup* static_cast<QTextBlockGroup*>(QTextObject* ptr).

impl StaticDowncast<QTextBlockGroup> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QTextBlockGroup>[src]

Calls C++ function: QTextBlockGroup* static_cast<QTextBlockGroup*>(QObject* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QTextBlockGroup>[src]

Calls C++ function: QTextBlockGroup* static_cast<QTextBlockGroup*>(QObject* ptr).

impl StaticDowncast<QTextList> for QTextBlockGroup[src]

unsafe fn static_downcast(ptr: Ptr<QTextBlockGroup>) -> Ptr<QTextList>[src]

Calls C++ function: QTextList* static_cast<QTextList*>(QTextBlockGroup* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QTextBlockGroup>) -> MutPtr<QTextList>[src]

Calls C++ function: QTextList* static_cast<QTextList*>(QTextBlockGroup* ptr).

impl StaticUpcast<QObject> for QTextBlockGroup[src]

unsafe fn static_upcast(ptr: Ptr<QTextBlockGroup>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QTextBlockGroup* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QTextBlockGroup>) -> MutPtr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QTextBlockGroup* ptr).

impl StaticUpcast<QTextBlockGroup> for QTextList[src]

unsafe fn static_upcast(ptr: Ptr<QTextList>) -> Ptr<QTextBlockGroup>[src]

Calls C++ function: QTextBlockGroup* static_cast<QTextBlockGroup*>(QTextList* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QTextList>) -> MutPtr<QTextBlockGroup>[src]

Calls C++ function: QTextBlockGroup* static_cast<QTextBlockGroup*>(QTextList* ptr).

impl StaticUpcast<QTextObject> for QTextBlockGroup[src]

unsafe fn static_upcast(ptr: Ptr<QTextBlockGroup>) -> Ptr<QTextObject>[src]

Calls C++ function: QTextObject* static_cast<QTextObject*>(QTextBlockGroup* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QTextBlockGroup>) -> MutPtr<QTextObject>[src]

Calls C++ function: QTextObject* static_cast<QTextObject*>(QTextBlockGroup* ptr).

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.