11#include <QQuickPaintedItem>
18 Q_PROPERTY(
QImage image READ image WRITE setImage NOTIFY imageChanged RESET resetImage)
19 Q_PROPERTY(
int nativeWidth READ nativeWidth NOTIFY nativeWidthChanged)
20 Q_PROPERTY(
int nativeHeight READ nativeHeight NOTIFY nativeHeightChanged)
21 Q_PROPERTY(
int paintedWidth READ paintedWidth NOTIFY paintedWidthChanged)
22 Q_PROPERTY(
int paintedHeight READ paintedHeight NOTIFY paintedHeightChanged)
23 Q_PROPERTY(
int verticalPadding READ verticalPadding NOTIFY verticalPaddingChanged)
24 Q_PROPERTY(
int horizontalPadding READ horizontalPadding NOTIFY horizontalPaddingChanged)
25 Q_PROPERTY(FillMode fillMode READ fillMode WRITE setFillMode NOTIFY fillModeChanged)
26 Q_PROPERTY(
bool null READ isNull NOTIFY nullChanged)
40 ~ImageItem()
override =
default;
42 void setImage(
const QImage &image);
46 int nativeWidth()
const;
47 int nativeHeight()
const;
49 int paintedWidth()
const;
50 int paintedHeight()
const;
51 int verticalPadding()
const;
52 int horizontalPadding()
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();
69 void verticalPaddingChanged();
70 void horizontalPaddingChanged();
73 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry)
override;
82 void updatePaintedRect();
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:50:40 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.