Skip to main content

QTextBlock

Struct QTextBlock 

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

C++ class: QTextBlock.

Implementations§

Source§

impl QTextBlock

Source

pub unsafe fn begin(&self) -> CppBox<Iterator>

Calls C++ function: QTextBlock::iterator QTextBlock::begin() const.

Source

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

Calls C++ function: QTextBlockFormat QTextBlock::blockFormat() const.

Source

pub unsafe fn block_format_index(&self) -> c_int

Calls C++ function: int QTextBlock::blockFormatIndex() const.

Source

pub unsafe fn block_number(&self) -> c_int

Calls C++ function: int QTextBlock::blockNumber() const.

Source

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

Calls C++ function: QTextCharFormat QTextBlock::charFormat() const.

Source

pub unsafe fn char_format_index(&self) -> c_int

Calls C++ function: int QTextBlock::charFormatIndex() const.

Source

pub unsafe fn clear_layout(&self)

Calls C++ function: void QTextBlock::clearLayout().

Source

pub unsafe fn contains(&self, position: c_int) -> bool

Calls C++ function: bool QTextBlock::contains(int position) const.

Source

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

Calls C++ function: QTextBlock& QTextBlock::operator=(const QTextBlock& o).

Source

pub unsafe fn document(&self) -> QPtr<QTextDocument>

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

Source

pub unsafe fn end(&self) -> CppBox<Iterator>

Calls C++ function: QTextBlock::iterator QTextBlock::end() const.

Source

pub unsafe fn first_line_number(&self) -> c_int

Calls C++ function: int QTextBlock::firstLineNumber() const.

Source

pub unsafe fn fragment_index(&self) -> c_int

Calls C++ function: int QTextBlock::fragmentIndex() const.

Source

pub unsafe fn is_valid(&self) -> bool

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

Source

pub unsafe fn is_visible(&self) -> bool

Calls C++ function: bool QTextBlock::isVisible() const.

Source

pub unsafe fn layout(&self) -> Ptr<QTextLayout>

Calls C++ function: QTextLayout* QTextBlock::layout() const.

Source

pub unsafe fn length(&self) -> c_int

Calls C++ function: int QTextBlock::length() const.

Source

pub unsafe fn line_count(&self) -> c_int

Calls C++ function: int QTextBlock::lineCount() const.

Source

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

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

Source

pub unsafe fn new_copy(o: impl CastInto<Ref<QTextBlock>>) -> CppBox<QTextBlock>

Calls C++ function: [constructor] void QTextBlock::QTextBlock(const QTextBlock& o).

Source

pub unsafe fn next(&self) -> CppBox<QTextBlock>

Calls C++ function: QTextBlock QTextBlock::next() const.

Source

pub unsafe fn position(&self) -> c_int

Calls C++ function: int QTextBlock::position() const.

Source

pub unsafe fn previous(&self) -> CppBox<QTextBlock>

Calls C++ function: QTextBlock QTextBlock::previous() const.

Source

pub unsafe fn revision(&self) -> c_int

Calls C++ function: int QTextBlock::revision() const.

Source

pub unsafe fn set_line_count(&self, count: c_int)

Calls C++ function: void QTextBlock::setLineCount(int count).

Source

pub unsafe fn set_revision(&self, rev: c_int)

Calls C++ function: void QTextBlock::setRevision(int rev).

Source

pub unsafe fn set_user_data(&self, data: impl CastInto<Ptr<QTextBlockUserData>>)

Calls C++ function: void QTextBlock::setUserData(QTextBlockUserData* data).

Source

pub unsafe fn set_user_state(&self, state: c_int)

Calls C++ function: void QTextBlock::setUserState(int state).

Source

pub unsafe fn set_visible(&self, visible: bool)

Calls C++ function: void QTextBlock::setVisible(bool visible).

Source

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

Calls C++ function: QString QTextBlock::text() const.

Source

pub unsafe fn text_direction(&self) -> LayoutDirection

Calls C++ function: Qt::LayoutDirection QTextBlock::textDirection() const.

Source

pub unsafe fn text_formats(&self) -> CppBox<QVectorOfFormatRange>

Calls C++ function: QVector<QTextLayout::FormatRange> QTextBlock::textFormats() const.

Source

pub unsafe fn text_list(&self) -> QPtr<QTextList>

Calls C++ function: QTextList* QTextBlock::textList() const.

Source

pub unsafe fn user_data(&self) -> Ptr<QTextBlockUserData>

Calls C++ function: QTextBlockUserData* QTextBlock::userData() const.

Source

pub unsafe fn user_state(&self) -> c_int

Calls C++ function: int QTextBlock::userState() const.

Trait Implementations§

Source§

impl Begin for QTextBlock

Source§

unsafe fn begin(&self) -> CppBox<Iterator>

Calls C++ function: QTextBlock::iterator QTextBlock::begin() const.

Source§

type Output = CppBox<Iterator>

Output type.
Source§

impl CppDeletable for QTextBlock

Source§

unsafe fn delete(&self)

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

Source§

impl End for QTextBlock

Source§

unsafe fn end(&self) -> CppBox<Iterator>

Calls C++ function: QTextBlock::iterator QTextBlock::end() const.

Source§

type Output = CppBox<Iterator>

Output type.
Source§

impl Lt<Ref<QTextBlock>> for QTextBlock

Source§

unsafe fn lt(&self, o: &Ref<QTextBlock>) -> bool

Calls C++ function: bool QTextBlock::operator<(const QTextBlock& o) const.

Source§

impl PartialEq<Ref<QTextBlock>> for QTextBlock

Source§

fn eq(&self, o: &Ref<QTextBlock>) -> bool

Calls C++ function: bool QTextBlock::operator==(const QTextBlock& o) const.

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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.