Skip to main content

QStaticText

Struct QStaticText 

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

C++ class: QStaticText.

Implementations§

Source§

impl QStaticText

Source

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

Calls C++ function: QStaticText& QStaticText::operator=(const QStaticText& arg1).

Source

pub unsafe fn new_0a() -> CppBox<QStaticText>

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

Source

pub unsafe fn new_1a(text: impl CastInto<Ref<QString>>) -> CppBox<QStaticText>

Calls C++ function: [constructor] void QStaticText::QStaticText(const QString& text).

Source

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

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

Source

pub unsafe fn performance_hint(&self) -> PerformanceHint

Calls C++ function: QStaticText::PerformanceHint QStaticText::performanceHint() const.

Source

pub unsafe fn prepare_2a( &self, matrix: impl CastInto<Ref<QTransform>>, font: impl CastInto<Ref<QFont>>, )

Calls C++ function: void QStaticText::prepare(const QTransform& matrix = …, const QFont& font = …).

Source

pub unsafe fn prepare_1a(&self, matrix: impl CastInto<Ref<QTransform>>)

Calls C++ function: void QStaticText::prepare(const QTransform& matrix = …).

Source

pub unsafe fn prepare_0a(&self)

Calls C++ function: void QStaticText::prepare().

Source

pub unsafe fn set_performance_hint(&self, performance_hint: PerformanceHint)

Calls C++ function: void QStaticText::setPerformanceHint(QStaticText::PerformanceHint performanceHint).

Source

pub unsafe fn set_text(&self, text: impl CastInto<Ref<QString>>)

Calls C++ function: void QStaticText::setText(const QString& text).

Source

pub unsafe fn set_text_format(&self, text_format: TextFormat)

Calls C++ function: void QStaticText::setTextFormat(Qt::TextFormat textFormat).

Source

pub unsafe fn set_text_option( &self, text_option: impl CastInto<Ref<QTextOption>>, )

Calls C++ function: void QStaticText::setTextOption(const QTextOption& textOption).

Source

pub unsafe fn set_text_width(&self, text_width: c_double)

Calls C++ function: void QStaticText::setTextWidth(double textWidth).

Source

pub unsafe fn size(&self) -> CppBox<QSizeF>

Calls C++ function: QSizeF QStaticText::size() const.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QStaticText>>)

Calls C++ function: void QStaticText::swap(QStaticText& other).

Source

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

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

Source

pub unsafe fn text_format(&self) -> TextFormat

Calls C++ function: Qt::TextFormat QStaticText::textFormat() const.

Source

pub unsafe fn text_option(&self) -> CppBox<QTextOption>

Calls C++ function: QTextOption QStaticText::textOption() const.

Source

pub unsafe fn text_width(&self) -> c_double

Calls C++ function: double QStaticText::textWidth() const.

Trait Implementations§

Source§

impl CppDeletable for QStaticText

Source§

unsafe fn delete(&self)

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

Source§

impl PartialEq<Ref<QStaticText>> for QStaticText

Source§

fn eq(&self, arg1: &Ref<QStaticText>) -> bool

Calls C++ function: bool QStaticText::operator==(const QStaticText& arg1) 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.
Source§

impl Size for QStaticText

Source§

unsafe fn size(&self) -> usize

Calls C++ function: QSizeF QStaticText::size() const.

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.