eric5.UI.PixmapCache
Module implementing a pixmap cache for icons.
Global Attributes
Classes
PixmapCache |
Class implementing a pixmap cache for icons. |
Functions
addSearchPath |
Module function to add a path to the search path. |
getIcon |
Module function to retrieve an icon. |
getPixmap |
Module function to retrieve a pixmap. |
getSymlinkIcon |
Module function to retrieve a symbolic link icon. |
PixmapCache
Class implementing a pixmap cache for icons.
Derived from
object
Class Attributes
Class Methods
Methods
Static Methods
PixmapCache (Constructor)
PixmapCache()
Constructor
PixmapCache.addSearchPath
addSearchPath(path)
Public method to add a path to the search path.
- path
-
path to add (string)
PixmapCache.getPixmap
getPixmap(key)
Public method to retrieve a pixmap.
- key
-
name of the wanted pixmap (string)
- Returns:
-
the requested pixmap (QPixmap)
addSearchPath
addSearchPath(path, cache=pixCache)
Module function to add a path to the search path.
- path
-
path to add (string)
- cache
-
reference to the pixmap cache object (PixmapCache)
getIcon
getIcon(key, cache=pixCache)
Module function to retrieve an icon.
- key
-
name of the wanted icon (string)
- cache
-
reference to the pixmap cache object (PixmapCache)
- Returns:
-
the requested icon (QIcon)
getPixmap
getPixmap(key, cache=pixCache)
Module function to retrieve a pixmap.
- key
-
name of the wanted pixmap (string)
- cache
-
reference to the pixmap cache object (PixmapCache)
- Returns:
-
the requested pixmap (QPixmap)
getSymlinkIcon
getSymlinkIcon(key, cache=pixCache)
Module function to retrieve a symbolic link icon.
- key
-
name of the wanted icon (string)
- cache
-
reference to the pixmap cache object (PixmapCache)
- Returns:
-
the requested icon (QIcon)