[][src]Struct qt_gui::q_painter::RenderHint

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

Renderhints are used to specify flags to QPainter that may or may not be respected by any given engine.

C++ enum: QPainter::RenderHint.

C++ documentation:

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.

Methods

impl RenderHint[src]

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

impl RenderHint[src]

pub const Antialiasing: RenderHint[src]

Indicates that the engine should antialias edges of primitives if possible. (C++ enum variant: Antialiasing = 1)

pub const TextAntialiasing: RenderHint[src]

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)

pub const SmoothPixmapTransform: RenderHint[src]

Indicates that the engine should use a smooth pixmap transformation algorithm (such as bilinear) rather than nearest neighbor. (C++ enum variant: SmoothPixmapTransform = 4)

pub const HighQualityAntialiasing: RenderHint[src]

This value is obsolete and will be ignored, use the Antialiasing render hint instead. (C++ enum variant: HighQualityAntialiasing = 8)

pub const NonCosmeticDefaultPen: RenderHint[src]

This value is obsolete, the default for QPen is now non-cosmetic. (C++ enum variant: NonCosmeticDefaultPen = 16)

pub const Qt4CompatiblePainting: RenderHint[src]

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)

pub const LosslessImageRendering: RenderHint[src]

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

impl Eq for RenderHint[src]

impl Clone for RenderHint[src]

impl PartialEq<RenderHint> for RenderHint[src]

impl From<i32> for RenderHint[src]

impl From<RenderHint> for c_int[src]

impl From<RenderHint> for QFlags<RenderHint>[src]

impl Copy for RenderHint[src]

impl<T: Into<QFlags<RenderHint>>> BitOr<T> for RenderHint[src]

type Output = QFlags<RenderHint>

The resulting type after applying the | operator.

impl Debug for RenderHint[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

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

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