KLayout 0.29.8 (2024-11-26 926dac96c) [master]

API reference - Class QPaintEngine

Notation used in Ruby API documentation

Module: QtGui

Description: Binding of QPaintEngine

Class hierarchy: QPaintEngine

Sub-classes: DirtyFlag, QFlags_DirtyFlag, PaintEngineFeature, QFlags_PaintEngineFeature, Type, QFlags_Type

Public constructors

new QPaintEnginenew(QPaintEngine_QFlags_PaintEngineFeature features = 0)Constructor QPaintEngine::QPaintEngine(QFlags<QPaintEngine::PaintEngineFeature> features)

Public methods

[const]QPaintEngine ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
[const]boolactiveMethod bool QPaintEngine::isActive()
voidactive=(bool newState)Method void QPaintEngine::setActive(bool newState)
boolbegin(QPaintDevice ptr pdev)Virtual method bool QPaintEngine::begin(QPaintDevice *pdev)
voidclearDirty(QPaintEngine_QFlags_DirtyFlag df)Method void QPaintEngine::clearDirty(QFlags<QPaintEngine::DirtyFlag> df)
[const]QPointcoordinateOffsetVirtual method QPoint QPaintEngine::coordinateOffset()
voiddrawEllipse(const QRectF r)Virtual method void QPaintEngine::drawEllipse(const QRectF &r)
voiddrawEllipse(const QRect r)Virtual method void QPaintEngine::drawEllipse(const QRect &r)
voiddrawImage(const QRectF r,
const QImage pm,
const QRectF sr,
Qt_QFlags_ImageConversionFlag flags)
Virtual method void QPaintEngine::drawImage(const QRectF &r, const QImage &pm, const QRectF &sr, QFlags<Qt::ImageConversionFlag> flags)
voiddrawPath(const QPainterPath path)Virtual method void QPaintEngine::drawPath(const QPainterPath &path)
voiddrawPixmap(const QRectF r,
const QPixmap pm,
const QRectF sr)
Virtual method void QPaintEngine::drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr)
voiddrawTextItem(const QPointF p,
const QTextItem textItem)
Virtual method void QPaintEngine::drawTextItem(const QPointF &p, const QTextItem &textItem)
voiddrawTiledPixmap(const QRectF r,
const QPixmap pixmap,
const QPointF s)
Virtual method void QPaintEngine::drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s)
boolendVirtual method bool QPaintEngine::end()
[const]boolhasFeature(QPaintEngine_QFlags_PaintEngineFeature feature)Method bool QPaintEngine::hasFeature(QFlags<QPaintEngine::PaintEngineFeature> feature)
[const]boolisActive?Method bool QPaintEngine::isActive()
[const]boolisExtended?Method bool QPaintEngine::isExtended()
[const]QPaintDevice ptrpaintDeviceMethod QPaintDevice *QPaintEngine::paintDevice()
voidpaintDevice=(QPaintDevice ptr device)Method void QPaintEngine::setPaintDevice(QPaintDevice *device)
[const]QPainter ptrpainterMethod QPainter *QPaintEngine::painter()
voidsetActive(bool newState)Method void QPaintEngine::setActive(bool newState)
voidsetDirty(QPaintEngine_QFlags_DirtyFlag df)Method void QPaintEngine::setDirty(QFlags<QPaintEngine::DirtyFlag> df)
voidsetPaintDevice(QPaintDevice ptr device)Method void QPaintEngine::setPaintDevice(QPaintDevice *device)
voidsetSystemClip(const QRegion baseClip)Method void QPaintEngine::setSystemClip(const QRegion &baseClip)
voidsetSystemRect(const QRect rect)Method void QPaintEngine::setSystemRect(const QRect &rect)
voidsyncStateMethod void QPaintEngine::syncState()
[const]QRegionsystemClipMethod QRegion QPaintEngine::systemClip()
voidsystemClip=(const QRegion baseClip)Method void QPaintEngine::setSystemClip(const QRegion &baseClip)
[const]QRectsystemRectMethod QRect QPaintEngine::systemRect()
voidsystemRect=(const QRect rect)Method void QPaintEngine::setSystemRect(const QRect &rect)
booltestDirty(QPaintEngine_QFlags_DirtyFlag df)Method bool QPaintEngine::testDirty(QFlags<QPaintEngine::DirtyFlag> df)
[const]QPaintEngine_TypetypeVirtual method QPaintEngine::Type QPaintEngine::type()
voidupdateState(const QPaintEngineState state)Virtual method void QPaintEngine::updateState(const QPaintEngineState &state)

Public static methods and constants

[static,const]QPaintEngine_DirtyFlagAllDirtyEnum constant QPaintEngine::AllDirty
[static,const]QPaintEngine_PaintEngineFeatureAllFeaturesEnum constant QPaintEngine::AllFeatures
[static,const]QPaintEngine_PaintEngineFeatureAlphaBlendEnum constant QPaintEngine::AlphaBlend
[static,const]QPaintEngine_PaintEngineFeatureAntialiasingEnum constant QPaintEngine::Antialiasing
[static,const]QPaintEngine_PaintEngineFeatureBlendModesEnum constant QPaintEngine::BlendModes
[static,const]QPaintEngine_PaintEngineFeatureBrushStrokeEnum constant QPaintEngine::BrushStroke
[static,const]QPaintEngine_PaintEngineFeatureConicalGradientFillEnum constant QPaintEngine::ConicalGradientFill
[static,const]QPaintEngine_PaintEngineFeatureConstantOpacityEnum constant QPaintEngine::ConstantOpacity
[static,const]QPaintEngine_TypeCoreGraphicsEnum constant QPaintEngine::CoreGraphics
[static,const]QPaintEngine_TypeDirect3DEnum constant QPaintEngine::Direct3D
[static,const]QPaintEngine_DirtyFlagDirtyBackgroundEnum constant QPaintEngine::DirtyBackground
[static,const]QPaintEngine_DirtyFlagDirtyBackgroundModeEnum constant QPaintEngine::DirtyBackgroundMode
[static,const]QPaintEngine_DirtyFlagDirtyBrushEnum constant QPaintEngine::DirtyBrush
[static,const]QPaintEngine_DirtyFlagDirtyBrushOriginEnum constant QPaintEngine::DirtyBrushOrigin
[static,const]QPaintEngine_DirtyFlagDirtyClipEnabledEnum constant QPaintEngine::DirtyClipEnabled
[static,const]QPaintEngine_DirtyFlagDirtyClipPathEnum constant QPaintEngine::DirtyClipPath
[static,const]QPaintEngine_DirtyFlagDirtyClipRegionEnum constant QPaintEngine::DirtyClipRegion
[static,const]QPaintEngine_DirtyFlagDirtyCompositionModeEnum constant QPaintEngine::DirtyCompositionMode
[static,const]QPaintEngine_DirtyFlagDirtyFontEnum constant QPaintEngine::DirtyFont
[static,const]QPaintEngine_DirtyFlagDirtyHintsEnum constant QPaintEngine::DirtyHints
[static,const]QPaintEngine_DirtyFlagDirtyOpacityEnum constant QPaintEngine::DirtyOpacity
[static,const]QPaintEngine_DirtyFlagDirtyPenEnum constant QPaintEngine::DirtyPen
[static,const]QPaintEngine_DirtyFlagDirtyTransformEnum constant QPaintEngine::DirtyTransform
[static,const]QPaintEngine_PaintEngineFeatureLinearGradientFillEnum constant QPaintEngine::LinearGradientFill
[static,const]QPaintEngine_TypeMacPrinterEnum constant QPaintEngine::MacPrinter
[static,const]QPaintEngine_PaintEngineFeatureMaskedBrushEnum constant QPaintEngine::MaskedBrush
[static,const]QPaintEngine_TypeMaxUserEnum constant QPaintEngine::MaxUser
[static,const]QPaintEngine_PaintEngineFeatureObjectBoundingModeGradientsEnum constant QPaintEngine::ObjectBoundingModeGradients
[static,const]QPaintEngine_TypeOpenGLEnum constant QPaintEngine::OpenGL
[static,const]QPaintEngine_TypeOpenGL2Enum constant QPaintEngine::OpenGL2
[static,const]QPaintEngine_TypeOpenVGEnum constant QPaintEngine::OpenVG
[static,const]QPaintEngine_TypePaintBufferEnum constant QPaintEngine::PaintBuffer
[static,const]QPaintEngine_PaintEngineFeaturePaintOutsidePaintEventEnum constant QPaintEngine::PaintOutsidePaintEvent
[static,const]QPaintEngine_PaintEngineFeaturePainterPathsEnum constant QPaintEngine::PainterPaths
[static,const]QPaintEngine_PaintEngineFeaturePatternBrushEnum constant QPaintEngine::PatternBrush
[static,const]QPaintEngine_PaintEngineFeaturePatternTransformEnum constant QPaintEngine::PatternTransform
[static,const]QPaintEngine_TypePdfEnum constant QPaintEngine::Pdf
[static,const]QPaintEngine_PaintEngineFeaturePerspectiveTransformEnum constant QPaintEngine::PerspectiveTransform
[static,const]QPaintEngine_TypePictureEnum constant QPaintEngine::Picture
[static,const]QPaintEngine_PaintEngineFeaturePixmapTransformEnum constant QPaintEngine::PixmapTransform
[static,const]QPaintEngine_PaintEngineFeaturePorterDuffEnum constant QPaintEngine::PorterDuff
[static,const]QPaintEngine_TypePostScriptEnum constant QPaintEngine::PostScript
[static,const]QPaintEngine_PaintEngineFeaturePrimitiveTransformEnum constant QPaintEngine::PrimitiveTransform
[static,const]QPaintEngine_TypeQWindowSystemEnum constant QPaintEngine::QWindowSystem
[static,const]QPaintEngine_TypeQuickDrawEnum constant QPaintEngine::QuickDraw
[static,const]QPaintEngine_PaintEngineFeatureRadialGradientFillEnum constant QPaintEngine::RadialGradientFill
[static,const]QPaintEngine_TypeRasterEnum constant QPaintEngine::Raster
[static,const]QPaintEngine_PaintEngineFeatureRasterOpModesEnum constant QPaintEngine::RasterOpModes
[static,const]QPaintEngine_TypeSVGEnum constant QPaintEngine::SVG
[static,const]QPaintEngine_TypeUserEnum constant QPaintEngine::User
[static,const]QPaintEngine_TypeWindowsEnum constant QPaintEngine::Windows
[static,const]QPaintEngine_TypeX11Enum constant QPaintEngine::X11

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

AllDirty

Signature: [static,const] QPaintEngine_DirtyFlag AllDirty

Description: Enum constant QPaintEngine::AllDirty

Python specific notes:
The object exposes a readable attribute 'AllDirty'. This is the getter.

AllFeatures

Signature: [static,const] QPaintEngine_PaintEngineFeature AllFeatures

Description: Enum constant QPaintEngine::AllFeatures

Python specific notes:
The object exposes a readable attribute 'AllFeatures'. This is the getter.

AlphaBlend

Signature: [static,const] QPaintEngine_PaintEngineFeature AlphaBlend

Description: Enum constant QPaintEngine::AlphaBlend

Python specific notes:
The object exposes a readable attribute 'AlphaBlend'. This is the getter.

Antialiasing

Signature: [static,const] QPaintEngine_PaintEngineFeature Antialiasing

Description: Enum constant QPaintEngine::Antialiasing

Python specific notes:
The object exposes a readable attribute 'Antialiasing'. This is the getter.

BlendModes

Signature: [static,const] QPaintEngine_PaintEngineFeature BlendModes

Description: Enum constant QPaintEngine::BlendModes

Python specific notes:
The object exposes a readable attribute 'BlendModes'. This is the getter.

BrushStroke

Signature: [static,const] QPaintEngine_PaintEngineFeature BrushStroke

Description: Enum constant QPaintEngine::BrushStroke

Python specific notes:
The object exposes a readable attribute 'BrushStroke'. This is the getter.

ConicalGradientFill

Signature: [static,const] QPaintEngine_PaintEngineFeature ConicalGradientFill

Description: Enum constant QPaintEngine::ConicalGradientFill

Python specific notes:
The object exposes a readable attribute 'ConicalGradientFill'. This is the getter.

ConstantOpacity

Signature: [static,const] QPaintEngine_PaintEngineFeature ConstantOpacity

Description: Enum constant QPaintEngine::ConstantOpacity

Python specific notes:
The object exposes a readable attribute 'ConstantOpacity'. This is the getter.

CoreGraphics

Signature: [static,const] QPaintEngine_Type CoreGraphics

Description: Enum constant QPaintEngine::CoreGraphics

Python specific notes:
The object exposes a readable attribute 'CoreGraphics'. This is the getter.

Direct3D

Signature: [static,const] QPaintEngine_Type Direct3D

Description: Enum constant QPaintEngine::Direct3D

Python specific notes:
The object exposes a readable attribute 'Direct3D'. This is the getter.

DirtyBackground

Signature: [static,const] QPaintEngine_DirtyFlag DirtyBackground

Description: Enum constant QPaintEngine::DirtyBackground

Python specific notes:
The object exposes a readable attribute 'DirtyBackground'. This is the getter.

DirtyBackgroundMode

Signature: [static,const] QPaintEngine_DirtyFlag DirtyBackgroundMode

Description: Enum constant QPaintEngine::DirtyBackgroundMode

Python specific notes:
The object exposes a readable attribute 'DirtyBackgroundMode'. This is the getter.

DirtyBrush

Signature: [static,const] QPaintEngine_DirtyFlag DirtyBrush

Description: Enum constant QPaintEngine::DirtyBrush

Python specific notes:
The object exposes a readable attribute 'DirtyBrush'. This is the getter.

DirtyBrushOrigin

Signature: [static,const] QPaintEngine_DirtyFlag DirtyBrushOrigin

Description: Enum constant QPaintEngine::DirtyBrushOrigin

Python specific notes:
The object exposes a readable attribute 'DirtyBrushOrigin'. This is the getter.

DirtyClipEnabled

Signature: [static,const] QPaintEngine_DirtyFlag DirtyClipEnabled

Description: Enum constant QPaintEngine::DirtyClipEnabled

Python specific notes:
The object exposes a readable attribute 'DirtyClipEnabled'. This is the getter.

DirtyClipPath

Signature: [static,const] QPaintEngine_DirtyFlag DirtyClipPath

Description: Enum constant QPaintEngine::DirtyClipPath

Python specific notes:
The object exposes a readable attribute 'DirtyClipPath'. This is the getter.

DirtyClipRegion

Signature: [static,const] QPaintEngine_DirtyFlag DirtyClipRegion

Description: Enum constant QPaintEngine::DirtyClipRegion

Python specific notes:
The object exposes a readable attribute 'DirtyClipRegion'. This is the getter.

DirtyCompositionMode

Signature: [static,const] QPaintEngine_DirtyFlag DirtyCompositionMode

Description: Enum constant QPaintEngine::DirtyCompositionMode

Python specific notes:
The object exposes a readable attribute 'DirtyCompositionMode'. This is the getter.

DirtyFont

Signature: [static,const] QPaintEngine_DirtyFlag DirtyFont

Description: Enum constant QPaintEngine::DirtyFont

Python specific notes:
The object exposes a readable attribute 'DirtyFont'. This is the getter.

DirtyHints

Signature: [static,const] QPaintEngine_DirtyFlag DirtyHints

Description: Enum constant QPaintEngine::DirtyHints

Python specific notes:
The object exposes a readable attribute 'DirtyHints'. This is the getter.

DirtyOpacity

Signature: [static,const] QPaintEngine_DirtyFlag DirtyOpacity

Description: Enum constant QPaintEngine::DirtyOpacity

Python specific notes:
The object exposes a readable attribute 'DirtyOpacity'. This is the getter.

DirtyPen

Signature: [static,const] QPaintEngine_DirtyFlag DirtyPen

Description: Enum constant QPaintEngine::DirtyPen

Python specific notes:
The object exposes a readable attribute 'DirtyPen'. This is the getter.

DirtyTransform

Signature: [static,const] QPaintEngine_DirtyFlag DirtyTransform

Description: Enum constant QPaintEngine::DirtyTransform

Python specific notes:
The object exposes a readable attribute 'DirtyTransform'. This is the getter.

LinearGradientFill

Signature: [static,const] QPaintEngine_PaintEngineFeature LinearGradientFill

Description: Enum constant QPaintEngine::LinearGradientFill

Python specific notes:
The object exposes a readable attribute 'LinearGradientFill'. This is the getter.

MacPrinter

Signature: [static,const] QPaintEngine_Type MacPrinter

Description: Enum constant QPaintEngine::MacPrinter

Python specific notes:
The object exposes a readable attribute 'MacPrinter'. This is the getter.

MaskedBrush

Signature: [static,const] QPaintEngine_PaintEngineFeature MaskedBrush

Description: Enum constant QPaintEngine::MaskedBrush

Python specific notes:
The object exposes a readable attribute 'MaskedBrush'. This is the getter.

MaxUser

Signature: [static,const] QPaintEngine_Type MaxUser

Description: Enum constant QPaintEngine::MaxUser

Python specific notes:
The object exposes a readable attribute 'MaxUser'. This is the getter.

ObjectBoundingModeGradients

Signature: [static,const] QPaintEngine_PaintEngineFeature ObjectBoundingModeGradients

Description: Enum constant QPaintEngine::ObjectBoundingModeGradients

Python specific notes:
The object exposes a readable attribute 'ObjectBoundingModeGradients'. This is the getter.

OpenGL

Signature: [static,const] QPaintEngine_Type OpenGL

Description: Enum constant QPaintEngine::OpenGL

Python specific notes:
The object exposes a readable attribute 'OpenGL'. This is the getter.

OpenGL2

Signature: [static,const] QPaintEngine_Type OpenGL2

Description: Enum constant QPaintEngine::OpenGL2

Python specific notes:
The object exposes a readable attribute 'OpenGL2'. This is the getter.

OpenVG

Signature: [static,const] QPaintEngine_Type OpenVG

Description: Enum constant QPaintEngine::OpenVG

Python specific notes:
The object exposes a readable attribute 'OpenVG'. This is the getter.

PaintBuffer

Signature: [static,const] QPaintEngine_Type PaintBuffer

Description: Enum constant QPaintEngine::PaintBuffer

Python specific notes:
The object exposes a readable attribute 'PaintBuffer'. This is the getter.

PaintOutsidePaintEvent

Signature: [static,const] QPaintEngine_PaintEngineFeature PaintOutsidePaintEvent

Description: Enum constant QPaintEngine::PaintOutsidePaintEvent

Python specific notes:
The object exposes a readable attribute 'PaintOutsidePaintEvent'. This is the getter.

PainterPaths

Signature: [static,const] QPaintEngine_PaintEngineFeature PainterPaths

Description: Enum constant QPaintEngine::PainterPaths

Python specific notes:
The object exposes a readable attribute 'PainterPaths'. This is the getter.

PatternBrush

Signature: [static,const] QPaintEngine_PaintEngineFeature PatternBrush

Description: Enum constant QPaintEngine::PatternBrush

Python specific notes:
The object exposes a readable attribute 'PatternBrush'. This is the getter.

PatternTransform

Signature: [static,const] QPaintEngine_PaintEngineFeature PatternTransform

Description: Enum constant QPaintEngine::PatternTransform

Python specific notes:
The object exposes a readable attribute 'PatternTransform'. This is the getter.

Pdf

Signature: [static,const] QPaintEngine_Type Pdf

Description: Enum constant QPaintEngine::Pdf

Python specific notes:
The object exposes a readable attribute 'Pdf'. This is the getter.

PerspectiveTransform

Signature: [static,const] QPaintEngine_PaintEngineFeature PerspectiveTransform

Description: Enum constant QPaintEngine::PerspectiveTransform

Python specific notes:
The object exposes a readable attribute 'PerspectiveTransform'. This is the getter.

Picture

Signature: [static,const] QPaintEngine_Type Picture

Description: Enum constant QPaintEngine::Picture

Python specific notes:
The object exposes a readable attribute 'Picture'. This is the getter.

PixmapTransform

Signature: [static,const] QPaintEngine_PaintEngineFeature PixmapTransform

Description: Enum constant QPaintEngine::PixmapTransform

Python specific notes:
The object exposes a readable attribute 'PixmapTransform'. This is the getter.

PorterDuff

Signature: [static,const] QPaintEngine_PaintEngineFeature PorterDuff

Description: Enum constant QPaintEngine::PorterDuff

Python specific notes:
The object exposes a readable attribute 'PorterDuff'. This is the getter.

PostScript

Signature: [static,const] QPaintEngine_Type PostScript

Description: Enum constant QPaintEngine::PostScript

Python specific notes:
The object exposes a readable attribute 'PostScript'. This is the getter.

PrimitiveTransform

Signature: [static,const] QPaintEngine_PaintEngineFeature PrimitiveTransform

Description: Enum constant QPaintEngine::PrimitiveTransform

Python specific notes:
The object exposes a readable attribute 'PrimitiveTransform'. This is the getter.

QWindowSystem

Signature: [static,const] QPaintEngine_Type QWindowSystem

Description: Enum constant QPaintEngine::QWindowSystem

Python specific notes:
The object exposes a readable attribute 'QWindowSystem'. This is the getter.

QuickDraw

Signature: [static,const] QPaintEngine_Type QuickDraw

Description: Enum constant QPaintEngine::QuickDraw

Python specific notes:
The object exposes a readable attribute 'QuickDraw'. This is the getter.

RadialGradientFill

Signature: [static,const] QPaintEngine_PaintEngineFeature RadialGradientFill

Description: Enum constant QPaintEngine::RadialGradientFill

Python specific notes:
The object exposes a readable attribute 'RadialGradientFill'. This is the getter.

Raster

Signature: [static,const] QPaintEngine_Type Raster

Description: Enum constant QPaintEngine::Raster

Python specific notes:
The object exposes a readable attribute 'Raster'. This is the getter.

RasterOpModes

Signature: [static,const] QPaintEngine_PaintEngineFeature RasterOpModes

Description: Enum constant QPaintEngine::RasterOpModes

Python specific notes:
The object exposes a readable attribute 'RasterOpModes'. This is the getter.

SVG

Signature: [static,const] QPaintEngine_Type SVG

Description: Enum constant QPaintEngine::SVG

Python specific notes:
The object exposes a readable attribute 'SVG'. This is the getter.

User

Signature: [static,const] QPaintEngine_Type User

Description: Enum constant QPaintEngine::User

Python specific notes:
The object exposes a readable attribute 'User'. This is the getter.

Windows

Signature: [static,const] QPaintEngine_Type Windows

Description: Enum constant QPaintEngine::Windows

Python specific notes:
The object exposes a readable attribute 'Windows'. This is the getter.

X11

Signature: [static,const] QPaintEngine_Type X11

Description: Enum constant QPaintEngine::X11

Python specific notes:
The object exposes a readable attribute 'X11'. This is the getter.

_const_cast

Signature: [const] QPaintEngine ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

active

Signature: [const] bool active

Description: Method bool QPaintEngine::isActive()

Python specific notes:
The object exposes a readable attribute 'active'. This is the getter.

active=

Signature: void active= (bool newState)

Description: Method void QPaintEngine::setActive(bool newState)

Python specific notes:
The object exposes a writable attribute 'active'. This is the setter.

begin

Signature: bool begin (QPaintDevice ptr pdev)

Description: Virtual method bool QPaintEngine::begin(QPaintDevice *pdev)

This method can be reimplemented in a derived class.

clearDirty

Signature: void clearDirty (QPaintEngine_QFlags_DirtyFlag df)

Description: Method void QPaintEngine::clearDirty(QFlags<QPaintEngine::DirtyFlag> df)

coordinateOffset

Signature: [const] QPoint coordinateOffset

Description: Virtual method QPoint QPaintEngine::coordinateOffset()

This method can be reimplemented in a derived class.

create

Signature: void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

destroy

Signature: void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

destroyed?

Signature: [const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

Use of this method is deprecated. Use _destroyed? instead

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

drawEllipse

(1) Signature: void drawEllipse (const QRectF r)

Description: Virtual method void QPaintEngine::drawEllipse(const QRectF &r)

This method can be reimplemented in a derived class.

(2) Signature: void drawEllipse (const QRect r)

Description: Virtual method void QPaintEngine::drawEllipse(const QRect &r)

This method can be reimplemented in a derived class.

drawImage

Signature: void drawImage (const QRectF r, const QImage pm, const QRectF sr, Qt_QFlags_ImageConversionFlag flags)

Description: Virtual method void QPaintEngine::drawImage(const QRectF &r, const QImage &pm, const QRectF &sr, QFlags<Qt::ImageConversionFlag> flags)

This method can be reimplemented in a derived class.

drawPath

Signature: void drawPath (const QPainterPath path)

Description: Virtual method void QPaintEngine::drawPath(const QPainterPath &path)

This method can be reimplemented in a derived class.

drawPixmap

Signature: void drawPixmap (const QRectF r, const QPixmap pm, const QRectF sr)

Description: Virtual method void QPaintEngine::drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr)

This method can be reimplemented in a derived class.

drawTextItem

Signature: void drawTextItem (const QPointF p, const QTextItem textItem)

Description: Virtual method void QPaintEngine::drawTextItem(const QPointF &p, const QTextItem &textItem)

This method can be reimplemented in a derived class.

drawTiledPixmap

Signature: void drawTiledPixmap (const QRectF r, const QPixmap pixmap, const QPointF s)

Description: Virtual method void QPaintEngine::drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s)

This method can be reimplemented in a derived class.

end

Signature: bool end

Description: Virtual method bool QPaintEngine::end()

This method can be reimplemented in a derived class.

hasFeature

Signature: [const] bool hasFeature (QPaintEngine_QFlags_PaintEngineFeature feature)

Description: Method bool QPaintEngine::hasFeature(QFlags<QPaintEngine::PaintEngineFeature> feature)

isActive?

Signature: [const] bool isActive?

Description: Method bool QPaintEngine::isActive()

Python specific notes:
The object exposes a readable attribute 'active'. This is the getter.

isExtended?

Signature: [const] bool isExtended?

Description: Method bool QPaintEngine::isExtended()

is_const_object?

Signature: [const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

Use of this method is deprecated. Use _is_const_object? instead

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

new

Signature: [static] new QPaintEngine new (QPaintEngine_QFlags_PaintEngineFeature features = 0)

Description: Constructor QPaintEngine::QPaintEngine(QFlags<QPaintEngine::PaintEngineFeature> features)

This method creates an object of class QPaintEngine.

Python specific notes:
This method is the default initializer of the object.

paintDevice

Signature: [const] QPaintDevice ptr paintDevice

Description: Method QPaintDevice *QPaintEngine::paintDevice()

Python specific notes:
The object exposes a readable attribute 'paintDevice'. This is the getter.

paintDevice=

Signature: void paintDevice= (QPaintDevice ptr device)

Description: Method void QPaintEngine::setPaintDevice(QPaintDevice *device)

Python specific notes:
The object exposes a writable attribute 'paintDevice'. This is the setter.

painter

Signature: [const] QPainter ptr painter

Description: Method QPainter *QPaintEngine::painter()

setActive

Signature: void setActive (bool newState)

Description: Method void QPaintEngine::setActive(bool newState)

Python specific notes:
The object exposes a writable attribute 'active'. This is the setter.

setDirty

Signature: void setDirty (QPaintEngine_QFlags_DirtyFlag df)

Description: Method void QPaintEngine::setDirty(QFlags<QPaintEngine::DirtyFlag> df)

setPaintDevice

Signature: void setPaintDevice (QPaintDevice ptr device)

Description: Method void QPaintEngine::setPaintDevice(QPaintDevice *device)

Python specific notes:
The object exposes a writable attribute 'paintDevice'. This is the setter.

setSystemClip

Signature: void setSystemClip (const QRegion baseClip)

Description: Method void QPaintEngine::setSystemClip(const QRegion &baseClip)

Python specific notes:
The object exposes a writable attribute 'systemClip'. This is the setter.

setSystemRect

Signature: void setSystemRect (const QRect rect)

Description: Method void QPaintEngine::setSystemRect(const QRect &rect)

Python specific notes:
The object exposes a writable attribute 'systemRect'. This is the setter.

syncState

Signature: void syncState

Description: Method void QPaintEngine::syncState()

systemClip

Signature: [const] QRegion systemClip

Description: Method QRegion QPaintEngine::systemClip()

Python specific notes:
The object exposes a readable attribute 'systemClip'. This is the getter.

systemClip=

Signature: void systemClip= (const QRegion baseClip)

Description: Method void QPaintEngine::setSystemClip(const QRegion &baseClip)

Python specific notes:
The object exposes a writable attribute 'systemClip'. This is the setter.

systemRect

Signature: [const] QRect systemRect

Description: Method QRect QPaintEngine::systemRect()

Python specific notes:
The object exposes a readable attribute 'systemRect'. This is the getter.

systemRect=

Signature: void systemRect= (const QRect rect)

Description: Method void QPaintEngine::setSystemRect(const QRect &rect)

Python specific notes:
The object exposes a writable attribute 'systemRect'. This is the setter.

testDirty

Signature: bool testDirty (QPaintEngine_QFlags_DirtyFlag df)

Description: Method bool QPaintEngine::testDirty(QFlags<QPaintEngine::DirtyFlag> df)

type

Signature: [const] QPaintEngine_Type type

Description: Virtual method QPaintEngine::Type QPaintEngine::type()

This method can be reimplemented in a derived class.

updateState

Signature: void updateState (const QPaintEngineState state)

Description: Virtual method void QPaintEngine::updateState(const QPaintEngineState &state)

This method can be reimplemented in a derived class.