Struct qt_gui::q_paint_engine::PaintEngineFeature
source · pub struct PaintEngineFeature(/* private fields */);
Expand description
This enum is used to describe the features or capabilities that the paint engine has. If a feature is not supported by the engine, QPainter will do a best effort to emulate that feature through other means and pass on an alpha blended QImage to the engine with the emulated results. Some features cannot be emulated: AlphaBlend and PorterDuff.
C++ enum: QPaintEngine::PaintEngineFeature
.
This enum is used to describe the features or capabilities that the paint engine has. If a feature is not supported by the engine, QPainter will do a best effort to emulate that feature through other means and pass on an alpha blended QImage to the engine with the emulated results. Some features cannot be emulated: AlphaBlend and PorterDuff.
The PaintEngineFeatures type is a typedef for QFlags<PaintEngineFeature>. It stores an OR combination of PaintEngineFeature values.
Implementations§
source§impl PaintEngineFeature
impl PaintEngineFeature
sourcepub const PrimitiveTransform: PaintEngineFeature = _
pub const PrimitiveTransform: PaintEngineFeature = _
The engine has support for transforming drawing primitives. (C++ enum variant: PrimitiveTransform = 1
)
sourcepub const PatternTransform: PaintEngineFeature = _
pub const PatternTransform: PaintEngineFeature = _
The engine has support for transforming brush patterns. (C++ enum variant: PatternTransform = 2
)
sourcepub const PixmapTransform: PaintEngineFeature = _
pub const PixmapTransform: PaintEngineFeature = _
The engine can transform pixmaps, including rotation and shearing. (C++ enum variant: PixmapTransform = 4
)
sourcepub const PatternBrush: PaintEngineFeature = _
pub const PatternBrush: PaintEngineFeature = _
The engine is capable of rendering brushes with the brush patterns specified in Qt::BrushStyle. (C++ enum variant: PatternBrush = 8
)
sourcepub const LinearGradientFill: PaintEngineFeature = _
pub const LinearGradientFill: PaintEngineFeature = _
The engine supports linear gradient fills. (C++ enum variant: LinearGradientFill = 16
)
sourcepub const RadialGradientFill: PaintEngineFeature = _
pub const RadialGradientFill: PaintEngineFeature = _
The engine supports radial gradient fills. (C++ enum variant: RadialGradientFill = 32
)
sourcepub const ConicalGradientFill: PaintEngineFeature = _
pub const ConicalGradientFill: PaintEngineFeature = _
The engine supports conical gradient fills. (C++ enum variant: ConicalGradientFill = 64
)
sourcepub const AlphaBlend: PaintEngineFeature = _
pub const AlphaBlend: PaintEngineFeature = _
The engine can alpha blend primitives. (C++ enum variant: AlphaBlend = 128
)
sourcepub const PorterDuff: PaintEngineFeature = _
pub const PorterDuff: PaintEngineFeature = _
The engine supports Porter-Duff operations (C++ enum variant: PorterDuff = 256
)
sourcepub const PainterPaths: PaintEngineFeature = _
pub const PainterPaths: PaintEngineFeature = _
The engine has path support. (C++ enum variant: PainterPaths = 512
)
sourcepub const Antialiasing: PaintEngineFeature = _
pub const Antialiasing: PaintEngineFeature = _
The engine can use antialising to improve the appearance of rendered primitives. (C++ enum variant: Antialiasing = 1024
)
sourcepub const BrushStroke: PaintEngineFeature = _
pub const BrushStroke: PaintEngineFeature = _
The engine supports drawing strokes that contain brushes as fills, not just solid colors (e.g. a dashed gradient line of width 2). (C++ enum variant: BrushStroke = 2048
)
sourcepub const ConstantOpacity: PaintEngineFeature = _
pub const ConstantOpacity: PaintEngineFeature = _
The engine supports the feature provided by QPainter::setOpacity(). (C++ enum variant: ConstantOpacity = 4096
)
sourcepub const MaskedBrush: PaintEngineFeature = _
pub const MaskedBrush: PaintEngineFeature = _
The engine is capable of rendering brushes that has a texture with an alpha channel or a mask. (C++ enum variant: MaskedBrush = 8192
)
sourcepub const PerspectiveTransform: PaintEngineFeature = _
pub const PerspectiveTransform: PaintEngineFeature = _
The engine has support for performing perspective transformations on primitives. (C++ enum variant: PerspectiveTransform = 16384
)
sourcepub const BlendModes: PaintEngineFeature = _
pub const BlendModes: PaintEngineFeature = _
The engine supports blending modes. (C++ enum variant: BlendModes = 32768
)
sourcepub const ObjectBoundingModeGradients: PaintEngineFeature = _
pub const ObjectBoundingModeGradients: PaintEngineFeature = _
The engine has native support for gradients with coordinate mode QGradient::ObjectBoundingMode. Otherwise, if QPaintEngine::PatternTransform is supported, object bounding mode gradients are converted to gradients with coordinate mode QGradient::LogicalMode and a brush transform for the coordinate mapping. (C++ enum variant: ObjectBoundingModeGradients = 65536
)
sourcepub const RasterOpModes: PaintEngineFeature = _
pub const RasterOpModes: PaintEngineFeature = _
The engine supports bitwise raster operations. (C++ enum variant: RasterOpModes = 131072
)
sourcepub const PaintOutsidePaintEvent: PaintEngineFeature = _
pub const PaintOutsidePaintEvent: PaintEngineFeature = _
The engine is capable of painting outside of paint events. (C++ enum variant: PaintOutsidePaintEvent = 536870912
)
sourcepub const AllFeatures: PaintEngineFeature = _
pub const AllFeatures: PaintEngineFeature = _
All of the above features. This enum value is usually used as a bit mask. (C++ enum variant: AllFeatures = -1
)
Trait Implementations§
source§impl<T: Into<QFlags<PaintEngineFeature>>> BitOr<T> for PaintEngineFeature
impl<T: Into<QFlags<PaintEngineFeature>>> BitOr<T> for PaintEngineFeature
§type Output = QFlags<PaintEngineFeature>
type Output = QFlags<PaintEngineFeature>
|
operator.source§impl Clone for PaintEngineFeature
impl Clone for PaintEngineFeature
source§fn clone(&self) -> PaintEngineFeature
fn clone(&self) -> PaintEngineFeature
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PaintEngineFeature
impl Debug for PaintEngineFeature
source§impl From<PaintEngineFeature> for QFlags<PaintEngineFeature>
impl From<PaintEngineFeature> for QFlags<PaintEngineFeature>
source§fn from(value: PaintEngineFeature) -> Self
fn from(value: PaintEngineFeature) -> Self
source§impl From<PaintEngineFeature> for c_int
impl From<PaintEngineFeature> for c_int
source§fn from(value: PaintEngineFeature) -> Self
fn from(value: PaintEngineFeature) -> Self
source§impl From<i32> for PaintEngineFeature
impl From<i32> for PaintEngineFeature
source§impl PartialEq for PaintEngineFeature
impl PartialEq for PaintEngineFeature
source§fn eq(&self, other: &PaintEngineFeature) -> bool
fn eq(&self, other: &PaintEngineFeature) -> bool
self
and other
values to be equal, and is used
by ==
.