KIcon Class Reference
One icon as found by KIconTheme. More...
#include <kicontheme.h>
Public Types | |
enum | Context { Any, Action, Application, Device, FileSystem, MimeType } |
Defines the context of the icon. More... | |
enum | Type { Fixed, Scalable, Threshold } |
The type of the icon. More... | |
enum | MatchType { MatchExact, MatchBest } |
The type of a match. More... | |
enum | Group |
The group an an icon. More... | |
enum | StdSizes { SizeSmall = 16, SizeMedium = 32, SizeLarge = 48 } |
These are the standard sizes for icons. More... | |
enum | States { DefaultState, ActiveState, DisabledState, LastState } |
Defines the possible states of an icon. More... | |
enum | Overlays { LockOverlay = 0x100, ZipOverlay = 0x200, LinkOverlay = 0x400, HiddenOverlay = 0x800, ShareOverlay = 0x1000 } |
This defines an overlay, a semi-transparent image that is projected onto the icon. More... | |
Public Methods | |
bool | isValid () const |
Return true if this icon is valid, false otherwise. | |
Public Attributes | |
int | size |
The size in pixels of the icon. | |
Context | context |
The context of the icon. | |
Type | type |
The type of the icon: Fixed, Scalable or Threshold. | |
int | threshold |
The threshold in case type == Threshold. | |
QString | path |
The full path of the icon. |
Detailed Description
One icon as found by KIconTheme.Also serves as a namespace containing icon related constants.
- See also:
- KIconEffect , KIconTheme , KIconLoader
Definition at line 36 of file kicontheme.h.
Member Enumeration Documentation
|
Defines the context of the icon.
Definition at line 49 of file kicontheme.h. Referenced by KIconTheme::queryIcons(), KIconLoader::queryIcons(), KIconTheme::queryIconsByContext(), and KIconLoader::queryIconsByContext(). |
|
The type of the icon.
Definition at line 61 of file kicontheme.h. |
|
The type of a match.
Definition at line 70 of file kicontheme.h. Referenced by KIconTheme::iconPath(). |
|
The group an an icon.
Definition at line 81 of file kicontheme.h. Referenced by KIconLoader::alphaBlending(), KIconLoader::currentSize(), KIconTheme::defaultSize(), KIconLoader::loadAnimated(), KIconLoader::loadIcon(), KIconLoader::loadIconSet(), KIconLoader::loadMovie(), KIconLoader::moviePath(), and KIconTheme::querySizes(). |
|
These are the standard sizes for icons.
Definition at line 87 of file kicontheme.h. |
|
Defines the possible states of an icon.
Definition at line 98 of file kicontheme.h. |
|
This defines an overlay, a semi-transparent image that is projected onto the icon. They are used to show that the file represented by the icon is, for example, locked, zipped or hidden.
Definition at line 109 of file kicontheme.h. |
Member Function Documentation
|
Return true if this icon is valid, false otherwise.
Definition at line 44 of file kicontheme.h. References size. Referenced by KIconLoader::iconPath(), KIconLoader::loadAnimated(), KIconLoader::loadIcon(), and KIconLoader::moviePath(). |
Member Data Documentation
|
The size in pixels of the icon.
Definition at line 121 of file kicontheme.h. Referenced by KIconTheme::iconPath(), and isValid(). |
|
The context of the icon.
Definition at line 126 of file kicontheme.h. Referenced by KIconTheme::iconPath(), and KIconLoader::loadIcon(). |
|
The type of the icon: Fixed, Scalable or Threshold.
Definition at line 131 of file kicontheme.h. Referenced by KIconTheme::iconPath(), and KIconLoader::loadIcon(). |
|
The threshold in case type == Threshold.
Definition at line 136 of file kicontheme.h. Referenced by KIconTheme::iconPath(), and KIconLoader::loadIcon(). |
|
The full path of the icon.
Definition at line 141 of file kicontheme.h. Referenced by KIconTheme::iconPath(), KIconLoader::iconPath(), KIconLoader::loadAnimated(), KIconLoader::loadIcon(), and KIconLoader::moviePath(). |
The documentation for this class was generated from the following file: