[−][src]Struct qt_gui::q_painter::RenderHint
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.
Methods
impl RenderHint
[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]
fn clone(&self) -> RenderHint
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<RenderHint> for RenderHint
[src]
fn eq(&self, other: &RenderHint) -> bool
[src]
fn ne(&self, other: &RenderHint) -> bool
[src]
impl From<i32> for RenderHint
[src]
impl From<RenderHint> for c_int
[src]
fn from(value: RenderHint) -> Self
[src]
impl From<RenderHint> for QFlags<RenderHint>
[src]
fn from(value: RenderHint) -> Self
[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.
fn bitor(self, rhs: T) -> QFlags<RenderHint>
[src]
impl Debug for RenderHint
[src]
Auto Trait Implementations
impl Send for RenderHint
impl Unpin for RenderHint
impl Sync for RenderHint
impl UnwindSafe for RenderHint
impl RefUnwindSafe for RenderHint
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,