Skip to main content

QTextDocumentFragment

Struct QTextDocumentFragment 

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

C++ class: QTextDocumentFragment.

Implementations§

Source§

impl QTextDocumentFragment

Source

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

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

Source

pub unsafe fn from_html_1a( html: impl CastInto<Ref<QString>>, ) -> CppBox<QTextDocumentFragment>

Calls C++ function: static QTextDocumentFragment QTextDocumentFragment::fromHtml(const QString& html).

Source

pub unsafe fn from_html_2a( html: impl CastInto<Ref<QString>>, resource_provider: impl CastInto<Ptr<QTextDocument>>, ) -> CppBox<QTextDocumentFragment>

Calls C++ function: static QTextDocumentFragment QTextDocumentFragment::fromHtml(const QString& html, const QTextDocument* resourceProvider).

Source

pub unsafe fn from_plain_text( plain_text: impl CastInto<Ref<QString>>, ) -> CppBox<QTextDocumentFragment>

Calls C++ function: static QTextDocumentFragment QTextDocumentFragment::fromPlainText(const QString& plainText).

Source

pub unsafe fn is_empty(&self) -> bool

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

Source

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

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

Source

pub unsafe fn from_q_text_document( document: impl CastInto<Ptr<QTextDocument>>, ) -> CppBox<QTextDocumentFragment>

Calls C++ function: [constructor] void QTextDocumentFragment::QTextDocumentFragment(const QTextDocument* document).

Source

pub unsafe fn from_q_text_cursor( range: impl CastInto<Ref<QTextCursor>>, ) -> CppBox<QTextDocumentFragment>

Calls C++ function: [constructor] void QTextDocumentFragment::QTextDocumentFragment(const QTextCursor& range).

Source

pub unsafe fn new_copy( rhs: impl CastInto<Ref<QTextDocumentFragment>>, ) -> CppBox<QTextDocumentFragment>

Calls C++ function: [constructor] void QTextDocumentFragment::QTextDocumentFragment(const QTextDocumentFragment& rhs).

Source

pub unsafe fn to_html_1a( &self, encoding: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QString>

Calls C++ function: QString QTextDocumentFragment::toHtml(const QByteArray& encoding = …) const.

Source

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

Calls C++ function: QString QTextDocumentFragment::toHtml() const.

Source

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

Calls C++ function: QString QTextDocumentFragment::toPlainText() const.

Trait Implementations§

Source§

impl CppDeletable for QTextDocumentFragment

Source§

unsafe fn delete(&self)

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

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