Struct qt_gui::q_painter::RenderHint
source · pub struct RenderHint(/* private fields */);
Expand description
Renderhints are used to specify flags to QPainter that may or may not be respected by any given engine.
C++ enum: QPainter::RenderHint
.
Renderhints are used to specify flags to QPainter that may or may not be respected by any given engine.
The RenderHints type is a typedef for QFlags<RenderHint>. It stores an OR combination of RenderHint values.
See also renderHints(), setRenderHint(), Rendering Quality, and Concentric Circles Example.
Implementations§
source§impl RenderHint
impl RenderHint
sourcepub const Antialiasing: RenderHint = _
pub const Antialiasing: RenderHint = _
Indicates that the engine should antialias edges of primitives if possible. (C++ enum variant: Antialiasing = 1
)
sourcepub const TextAntialiasing: RenderHint = _
pub const TextAntialiasing: RenderHint = _
Indicates that the engine should antialias text if possible. To forcibly disable antialiasing for text, do not use this hint. Instead, set QFont::NoAntialias on your font’s style strategy. (C++ enum variant: TextAntialiasing = 2
)
sourcepub const SmoothPixmapTransform: RenderHint = _
pub const SmoothPixmapTransform: RenderHint = _
Indicates that the engine should use a smooth pixmap transformation algorithm (such as bilinear) rather than nearest neighbor. (C++ enum variant: SmoothPixmapTransform = 4
)
sourcepub const HighQualityAntialiasing: RenderHint = _
pub const HighQualityAntialiasing: RenderHint = _
This value is obsolete and will be ignored, use the Antialiasing render hint instead. (C++ enum variant: HighQualityAntialiasing = 8
)
sourcepub const NonCosmeticDefaultPen: RenderHint = _
pub const NonCosmeticDefaultPen: RenderHint = _
This value is obsolete, the default for QPen is now non-cosmetic. (C++ enum variant: NonCosmeticDefaultPen = 16
)
sourcepub const Qt4CompatiblePainting: RenderHint = _
pub const Qt4CompatiblePainting: RenderHint = _
Compatibility hint telling the engine to use the same X11 based fill rules as in Qt 4, where aliased rendering is offset by slightly less than half a pixel. Also will treat default constructed pens as cosmetic. Potentially useful when porting a Qt 4 application to Qt 5. (C++ enum variant: Qt4CompatiblePainting = 32
)
sourcepub const LosslessImageRendering: RenderHint = _
pub const LosslessImageRendering: RenderHint = _
Use a lossless image rendering, whenever possible. Currently, this hint is only used when QPainter is employed to output a PDF file through QPrinter or QPdfWriter, where drawImage()/drawPixmap() calls will encode images using a lossless compression algorithm instead of lossy JPEG compression. This value was added in Qt 5.13. (C++ enum variant: LosslessImageRendering = 64
)
Trait Implementations§
source§impl<T: Into<QFlags<RenderHint>>> BitOr<T> for RenderHint
impl<T: Into<QFlags<RenderHint>>> BitOr<T> for RenderHint
§type Output = QFlags<RenderHint>
type Output = QFlags<RenderHint>
|
operator.source§impl Clone for RenderHint
impl Clone for RenderHint
source§fn clone(&self) -> RenderHint
fn clone(&self) -> RenderHint
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RenderHint
impl Debug for RenderHint
source§impl From<RenderHint> for QFlags<RenderHint>
impl From<RenderHint> for QFlags<RenderHint>
source§fn from(value: RenderHint) -> Self
fn from(value: RenderHint) -> Self
source§impl From<RenderHint> for c_int
impl From<RenderHint> for c_int
source§fn from(value: RenderHint) -> Self
fn from(value: RenderHint) -> Self
source§impl From<i32> for RenderHint
impl From<i32> for RenderHint
source§impl PartialEq for RenderHint
impl PartialEq for RenderHint
source§fn eq(&self, other: &RenderHint) -> bool
fn eq(&self, other: &RenderHint) -> bool
self
and other
values to be equal, and is used
by ==
.