[−][src]Struct qt_gui::QTextItem
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.
Methods
impl QTextItem
[src]
pub unsafe fn ascent(&self) -> c_double
[src]
Corresponds to the ascent of the piece of text that is drawn.
Calls C++ function: double QTextItem::ascent() const
.
Corresponds to the ascent of the piece of text that is drawn.
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QTextItem>>
) -> MutRef<QTextItem>
[src]
&mut self,
other: impl CastInto<Ref<QTextItem>>
) -> MutRef<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.
pub unsafe fn descent(&self) -> c_double
[src]
Corresponds to the descent of the piece of text that is drawn.
Calls C++ function: double QTextItem::descent() const
.
Corresponds to the descent of the piece of text that is drawn.
pub unsafe fn font(&self) -> CppBox<QFont>
[src]
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.
pub unsafe fn new() -> CppBox<QTextItem>
[src]
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.
pub unsafe fn new_copy(
other: impl CastInto<Ref<QTextItem>>
) -> CppBox<QTextItem>
[src]
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.
pub unsafe fn render_flags(&self) -> QFlags<RenderFlag>
[src]
Returns the render flags used.
Calls C++ function: QFlags<QTextItem::RenderFlag> QTextItem::renderFlags() const
.
Returns the render flags used.
pub unsafe fn text(&self) -> CppBox<QString>
[src]
Returns the text that should be drawn.
Calls C++ function: QString QTextItem::text() const
.
Returns the text that should be drawn.
pub unsafe fn width(&self) -> c_double
[src]
Specifies the total width of the text to be drawn.
Calls C++ function: double QTextItem::width() const
.
Specifies the total width of the text to be drawn.
Trait Implementations
impl CppDeletable for QTextItem
[src]
unsafe fn delete(&mut self)
[src]
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.
Auto Trait Implementations
impl RefUnwindSafe for QTextItem
impl Send for QTextItem
impl Sync for QTextItem
impl Unpin for QTextItem
impl UnwindSafe for QTextItem
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,