KDeclarative
11 #include <QQuickPaintedItem> 18 Q_PROPERTY(
QImage image READ image WRITE setImage NOTIFY imageChanged RESET resetImage)
19 Q_PROPERTY(
bool smooth READ smooth WRITE setSmooth)
20 Q_PROPERTY(
int nativeWidth READ nativeWidth NOTIFY nativeWidthChanged)
21 Q_PROPERTY(
int nativeHeight READ nativeHeight NOTIFY nativeHeightChanged)
22 Q_PROPERTY(
int paintedWidth READ paintedWidth NOTIFY paintedWidthChanged)
23 Q_PROPERTY(
int paintedHeight READ paintedHeight NOTIFY paintedHeightChanged)
24 Q_PROPERTY(FillMode fillMode READ fillMode WRITE setFillMode NOTIFY fillModeChanged)
25 Q_PROPERTY(
bool null READ isNull NOTIFY nullChanged)
38 explicit QImageItem(
QQuickItem *parent=
nullptr);
39 ~QImageItem() override;
41 void setImage(const
QImage &image);
45 void setSmooth(const
bool smooth);
48 int nativeWidth() const;
49 int nativeHeight() const;
51 int paintedWidth() const;
52 int paintedHeight() const;
54 FillMode fillMode() const;
55 void setFillMode(FillMode mode);
57 void paint(
QPainter *painter) override;
62 void nativeWidthChanged();
63 void nativeHeightChanged();
64 void fillModeChanged();
67 void paintedWidthChanged();
68 void paintedHeightChanged();
71 void geometryChanged(const
QRectF & newGeometry, const
QRectF & oldGeometry) override;
80 void updatePaintedRect();
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 22:44:28 by
doxygen 1.8.11 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.