[][src]Struct qt_gui::q_static_text::PerformanceHint

#[repr(transparent)]
pub struct PerformanceHint(_);

This enum the different performance hints that can be set on the QStaticText. These hints can be used to indicate that the QStaticText should use additional caches, if possible, to improve performance at the expense of memory. In particular, setting the performance hint AggressiveCaching on the QStaticText will improve performance when using the OpenGL graphics system or when drawing to a QOpenGLWidget.

C++ enum: QStaticText::PerformanceHint.

C++ documentation:

This enum the different performance hints that can be set on the QStaticText. These hints can be used to indicate that the QStaticText should use additional caches, if possible, to improve performance at the expense of memory. In particular, setting the performance hint AggressiveCaching on the QStaticText will improve performance when using the OpenGL graphics system or when drawing to a QOpenGLWidget.

Methods

impl PerformanceHint[src]

pub fn to_int(&self) -> c_int[src]

impl PerformanceHint[src]

pub const ModerateCaching: PerformanceHint[src]

Do basic caching for high performance at a low memory cost. (C++ enum variant: ModerateCaching = 0)

pub const AggressiveCaching: PerformanceHint[src]

Use additional caching when available. This may improve performance at a higher memory cost. (C++ enum variant: AggressiveCaching = 1)

Trait Implementations

impl Clone for PerformanceHint[src]

impl Copy for PerformanceHint[src]

impl Debug for PerformanceHint[src]

impl Eq for PerformanceHint[src]

impl From<PerformanceHint> for c_int[src]

impl From<i32> for PerformanceHint[src]

impl PartialEq<PerformanceHint> for PerformanceHint[src]

impl StructuralEq for PerformanceHint[src]

impl StructuralPartialEq for PerformanceHint[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.