Skip to main content

QTextInlineObject

Struct QTextInlineObject 

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

C++ class: QTextInlineObject.

Implementations§

Source§

impl QTextInlineObject

Source

pub unsafe fn ascent(&self) -> c_double

Calls C++ function: double QTextInlineObject::ascent() const.

Source

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

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

Source

pub unsafe fn descent(&self) -> c_double

Calls C++ function: double QTextInlineObject::descent() const.

Source

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

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

Source

pub unsafe fn format_index(&self) -> c_int

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

Source

pub unsafe fn height(&self) -> c_double

Calls C++ function: double QTextInlineObject::height() const.

Source

pub unsafe fn is_valid(&self) -> bool

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

Source

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

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

Source

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

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

Source

pub unsafe fn rect(&self) -> CppBox<QRectF>

Calls C++ function: QRectF QTextInlineObject::rect() const.

Source

pub unsafe fn set_ascent(&self, a: c_double)

Calls C++ function: void QTextInlineObject::setAscent(double a).

Source

pub unsafe fn set_descent(&self, d: c_double)

Calls C++ function: void QTextInlineObject::setDescent(double d).

Source

pub unsafe fn set_width(&self, w: c_double)

Calls C++ function: void QTextInlineObject::setWidth(double w).

Source

pub unsafe fn text_direction(&self) -> LayoutDirection

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

Source

pub unsafe fn text_position(&self) -> c_int

Calls C++ function: int QTextInlineObject::textPosition() const.

Source

pub unsafe fn width(&self) -> c_double

Calls C++ function: double QTextInlineObject::width() const.

Trait Implementations§

Source§

impl CppDeletable for QTextInlineObject

Source§

unsafe fn delete(&self)

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

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.