Struct qt_gui::q_static_text::PerformanceHint
source · pub struct PerformanceHint(/* private fields */);
Expand description
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
.
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.
Implementations§
source§impl PerformanceHint
impl PerformanceHint
sourcepub const ModerateCaching: PerformanceHint = _
pub const ModerateCaching: PerformanceHint = _
Do basic caching for high performance at a low memory cost. (C++ enum variant: ModerateCaching = 0
)
sourcepub const AggressiveCaching: PerformanceHint = _
pub const AggressiveCaching: PerformanceHint = _
Use additional caching when available. This may improve performance at a higher memory cost. (C++ enum variant: AggressiveCaching = 1
)
Trait Implementations§
source§impl Clone for PerformanceHint
impl Clone for PerformanceHint
source§fn clone(&self) -> PerformanceHint
fn clone(&self) -> PerformanceHint
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PerformanceHint
impl Debug for PerformanceHint
source§impl From<PerformanceHint> for c_int
impl From<PerformanceHint> for c_int
source§fn from(value: PerformanceHint) -> Self
fn from(value: PerformanceHint) -> Self
source§impl From<i32> for PerformanceHint
impl From<i32> for PerformanceHint
source§impl PartialEq for PerformanceHint
impl PartialEq for PerformanceHint
source§fn eq(&self, other: &PerformanceHint) -> bool
fn eq(&self, other: &PerformanceHint) -> bool
self
and other
values to be equal, and is used
by ==
.