KIO
thumbnailcreator.h
58 explicit ThumbnailRequest(const QUrl &url, const QSize &targetSize, const QString &mimeType, qreal dpr, float sequenceIndex);
196 * kcoreaddons_add_plugin(foothumbnail SOURCES foothumbnail.cpp INSTALL_NAMESPACE "kf6/thumbcreator")
virtual ThumbnailResult create(const ThumbnailRequest &request)=0
Creates a thumbnail for a given request.
Encapsulates the input data for a thumbnail request.
Definition thumbnailcreator.h:38
ThumbnailRequest(const QUrl &url, const QSize &targetSize, const QString &mimeType, qreal dpr, float sequenceIndex)
Contruct a new ThumbnailRequest for a given file.
Definition thumbnailcreator.cpp:40
qreal devicePixelRatio() const
The device Pixel Ratio used for thumbnail creation.
Definition thumbnailcreator.cpp:65
float sequenceIndex() const
If the thumb-creator can create a sequence of thumbnails, it should use this to decide what sequence ...
Definition thumbnailcreator.cpp:70
Encapsulates the output of a thumbnail request.
Definition thumbnailcreator.h:114
float sequenceIndexWraparoundPoint() const
Returns the point at which this thumb-creator's sequence indices will wrap around (loop).
Definition thumbnailcreator.cpp:115
void setSequenceIndexWraparoundPoint(float wraparoundPoint)
Sets the point at which this thumb-creator's sequence indices will wrap around.
Definition thumbnailcreator.cpp:120
static ThumbnailResult pass(const QImage &image)
Create a successful result with a given image.
Definition thumbnailcreator.cpp:101
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.