pub struct QTextItem { /* private fields */ }Expand description
The QTextItem class provides all the information required to draw text in a custom paint engine.
C++ class: QTextItem.
The QTextItem class provides all the information required to draw text in a custom paint engine.
When you reimplement your own paint engine, you must reimplement QPaintEngine::drawTextItem(), a function that takes a QTextItem as one of its arguments.
Implementations§
Source§impl QTextItem
impl QTextItem
Sourcepub unsafe fn ascent(&self) -> c_double
pub unsafe fn ascent(&self) -> c_double
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QTextItem>>,
) -> Ref<QTextItem>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QTextItem>>, ) -> Ref<QTextItem>
The QTextItem class provides all the information required to draw text in a custom paint engine.
Calls C++ function: QTextItem& QTextItem::operator=(const QTextItem& other).
The QTextItem class provides all the information required to draw text in a custom paint engine.
When you reimplement your own paint engine, you must reimplement QPaintEngine::drawTextItem(), a function that takes a QTextItem as one of its arguments.
Sourcepub unsafe fn descent(&self) -> c_double
pub unsafe fn descent(&self) -> c_double
Sourcepub unsafe fn font(&self) -> CppBox<QFont>
pub unsafe fn font(&self) -> CppBox<QFont>
Returns the font that should be used to draw the text.
Calls C++ function: QFont QTextItem::font() const.
Returns the font that should be used to draw the text.
Sourcepub unsafe fn new() -> CppBox<QTextItem>
pub unsafe fn new() -> CppBox<QTextItem>
The QTextItem class provides all the information required to draw text in a custom paint engine.
Calls C++ function: [constructor] void QTextItem::QTextItem().
The QTextItem class provides all the information required to draw text in a custom paint engine.
When you reimplement your own paint engine, you must reimplement QPaintEngine::drawTextItem(), a function that takes a QTextItem as one of its arguments.
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QTextItem>>,
) -> CppBox<QTextItem>
pub unsafe fn new_copy( other: impl CastInto<Ref<QTextItem>>, ) -> CppBox<QTextItem>
The QTextItem class provides all the information required to draw text in a custom paint engine.
Calls C++ function: [constructor] void QTextItem::QTextItem(const QTextItem& other).
The QTextItem class provides all the information required to draw text in a custom paint engine.
When you reimplement your own paint engine, you must reimplement QPaintEngine::drawTextItem(), a function that takes a QTextItem as one of its arguments.
Sourcepub unsafe fn render_flags(&self) -> QFlags<RenderFlag>
pub unsafe fn render_flags(&self) -> QFlags<RenderFlag>
Returns the render flags used.
Calls C++ function: QFlags<QTextItem::RenderFlag> QTextItem::renderFlags() const.
Returns the render flags used.
Sourcepub unsafe fn text(&self) -> CppBox<QString>
pub unsafe fn text(&self) -> CppBox<QString>
Returns the text that should be drawn.
Calls C++ function: QString QTextItem::text() const.
Returns the text that should be drawn.
Trait Implementations§
Source§impl CppDeletable for QTextItem
impl CppDeletable for QTextItem
Source§unsafe fn delete(&self)
unsafe fn delete(&self)
The QTextItem class provides all the information required to draw text in a custom paint engine.
Calls C++ function: [destructor] void QTextItem::~QTextItem().
The QTextItem class provides all the information required to draw text in a custom paint engine.
When you reimplement your own paint engine, you must reimplement QPaintEngine::drawTextItem(), a function that takes a QTextItem as one of its arguments.