Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QCocoaFileIconEngine Class Reference
+ Inheritance diagram for QCocoaFileIconEngine:
+ Collaboration diagram for QCocoaFileIconEngine:

Public Member Functions

 QCocoaFileIconEngine (const QFileInfo &info, QPlatformTheme::IconOptions opts)
 
QList< QSizeavailableSizes (QIcon::Mode=QIcon::Normal, QIcon::State=QIcon::Off) override
 
- Public Member Functions inherited from QAbstractFileIconEngine
 QAbstractFileIconEngine (const QFileInfo &info, QPlatformTheme::IconOptions opts)
 
QPixmap pixmap (const QSize &size, QIcon::Mode mode, QIcon::State) override
 Returns the icon as a pixmap with the required size, mode, and state.
 
QPixmap scaledPixmap (const QSize &size, QIcon::Mode mode, QIcon::State, qreal scale) override
 
QSize actualSize (const QSize &size, QIcon::Mode mode, QIcon::State state) override
 Returns the actual size of the icon the engine provides for the requested size, mode and state.
 
QFileInfo fileInfo () const
 
QPlatformTheme::IconOptions options () const
 
- Public Member Functions inherited from QPixmapIconEngine
 QPixmapIconEngine ()
 
 QPixmapIconEngine (const QPixmapIconEngine &)
 
 ~QPixmapIconEngine ()
 
void paint (QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state) override
 Uses the given painter to paint the icon with the required mode and state into the rectangle rect.
 
QPixmap pixmap (const QSize &size, QIcon::Mode mode, QIcon::State state) override
 Returns the icon as a pixmap with the required size, mode, and state.
 
QPixmap scaledPixmap (const QSize &size, QIcon::Mode mode, QIcon::State state, qreal scale) override
 
QPixmapIconEngineEntrybestMatch (const QSize &size, qreal scale, QIcon::Mode mode, QIcon::State state, bool sizeOnly)
 
QSize actualSize (const QSize &size, QIcon::Mode mode, QIcon::State state) override
 Returns the actual size of the icon the engine provides for the requested size, mode and state.
 
QList< QSizeavailableSizes (QIcon::Mode mode, QIcon::State state) override
 
void addPixmap (const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state) override
 Called by QIcon::addPixmap().
 
void addFile (const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state) override
 Called by QIcon::addFile().
 
QString key () const override
 \variable QIconEngine::ScaledPixmapArgument::size
 
QIconEngineclone () const override
 Reimplement this method to return a clone of this icon engine.
 
bool read (QDataStream &in) override
 Reads icon engine contents from the QDataStream in.
 
bool write (QDataStream &out) const override
 Writes the contents of this engine to the QDataStream out.
 
- Public Member Functions inherited from QIconEngine
 QIconEngine ()
 
virtual ~QIconEngine ()
 Destroys the icon engine.
 
virtual void paint (QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state)=0
 Uses the given painter to paint the icon with the required mode and state into the rectangle rect.
 
virtual QSize actualSize (const QSize &size, QIcon::Mode mode, QIcon::State state)
 Returns the actual size of the icon the engine provides for the requested size, mode and state.
 
virtual QPixmap pixmap (const QSize &size, QIcon::Mode mode, QIcon::State state)
 Returns the icon as a pixmap with the required size, mode, and state.
 
virtual void addPixmap (const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state)
 Called by QIcon::addPixmap().
 
virtual void addFile (const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state)
 Called by QIcon::addFile().
 
virtual QString key () const
 \variable QIconEngine::ScaledPixmapArgument::size
 
virtual QIconEngineclone () const =0
 Reimplement this method to return a clone of this icon engine.
 
virtual bool read (QDataStream &in)
 Reads icon engine contents from the QDataStream in.
 
virtual bool write (QDataStream &out) const
 Writes the contents of this engine to the QDataStream out.
 
virtual QList< QSizeavailableSizes (QIcon::Mode mode=QIcon::Normal, QIcon::State state=QIcon::Off)
 
virtual QString iconName ()
 
virtual bool isNull ()
 
virtual QPixmap scaledPixmap (const QSize &size, QIcon::Mode mode, QIcon::State state, qreal scale)
 
virtual void virtual_hook (int id, void *data)
 

Static Public Member Functions

static QList< QSizeavailableIconSizes ()
 
- Static Public Member Functions inherited from QAbstractFileIconEngine
template<class It >
static QList< QSizetoSizeList (It i1, It i2)
 

Protected Member Functions

QPixmap filePixmap (const QSize &size, QIcon::Mode, QIcon::State) override
 
- Protected Member Functions inherited from QAbstractFileIconEngine
virtual QPixmap filePixmap (const QSize &size, QIcon::Mode mode, QIcon::State)=0
 
virtual QString cacheKey () const
 
- Protected Member Functions inherited from QIconEngine
 QIconEngine (const QIconEngine &other)
 

Additional Inherited Members

- Public Types inherited from QIconEngine
enum  IconEngineHook { IsNullHook = 3 , ScaledPixmapHook }
 

Detailed Description

Definition at line 400 of file qcocoatheme.mm.

Constructor & Destructor Documentation

◆ QCocoaFileIconEngine()

QCocoaFileIconEngine::QCocoaFileIconEngine ( const QFileInfo info,
QPlatformTheme::IconOptions  opts 
)
inlineexplicit

Definition at line 403 of file qcocoatheme.mm.

Member Function Documentation

◆ availableIconSizes()

static QList< QSize > QCocoaFileIconEngine::availableIconSizes ( )
inlinestatic

Definition at line 407 of file qcocoatheme.mm.

References qGuiApp, qRound(), and QAbstractFileIconEngine::toSizeList().

Referenced by availableSizes(), and QCocoaTheme::themeHint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ availableSizes()

QList< QSize > QCocoaFileIconEngine::availableSizes ( QIcon::Mode  mode = QIcon::Normal,
QIcon::State  state = QIcon::Off 
)
inlineoverridevirtual
Since
4.5

Returns sizes of all images that are contained in the engine for the specific mode and state.

Reimplemented from QIconEngine.

Definition at line 418 of file qcocoatheme.mm.

References availableIconSizes().

+ Here is the call graph for this function:

◆ filePixmap()

QPixmap QCocoaFileIconEngine::filePixmap ( const QSize size,
QIcon::Mode  ,
QIcon::State   
)
inlineoverrideprotectedvirtual

Implements QAbstractFileIconEngine.

Definition at line 422 of file qcocoatheme.mm.

References QFileInfo::canonicalFilePath(), QAbstractFileIconEngine::fileInfo(), and pool.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: