KDECore
KIcon Class Reference
One icon as found by KIconTheme. More...
#include <kicontheme.h>
Public Types | |
enum | Context { Any, Action, Application, Device, FileSystem, MimeType, Animation, Category, Emblem, Emote, International, Place, StatusIcon } |
enum | Group { NoGroup = -1, Desktop = 0, FirstGroup = 0, Toolbar, MainToolbar, Small, Panel, LastGroup, User } |
enum | MatchType { MatchExact, MatchBest } |
enum | Overlays { LockOverlay = 0x100, ZipOverlay = 0x200, LinkOverlay = 0x400, HiddenOverlay = 0x800, ShareOverlay = 0x1000, OverlayMask = ~0xff } |
enum | States { DefaultState, ActiveState, DisabledState, LastState } |
enum | StdSizes { SizeSmall = 16, SizeSmallMedium = 22, SizeMedium = 32, SizeLarge = 48, SizeHuge = 64, SizeEnormous = 128 } |
enum | Type { Fixed, Scalable, Threshold } |
Public Member Functions | |
bool | isValid () const |
KIcon () | |
Public Attributes | |
Context | context |
QString | path |
int | size |
int | threshold |
Type | type |
Detailed Description
One icon as found by KIconTheme.Also serves as a namespace containing icon related constants.
- See also:
- KIconEffect
Definition at line 35 of file kicontheme.h.
Member Enumeration Documentation
enum KIcon::Context |
Defines the context of the icon.
- Enumerator:
Definition at line 48 of file kicontheme.h.
enum KIcon::Group |
The group of the icon.
- Enumerator:
Definition at line 87 of file kicontheme.h.
enum KIcon::MatchType |
The type of a match.
- Enumerator:
-
MatchExact Only try to find an exact match. MatchBest Take the best match if there is no exact match.
Definition at line 76 of file kicontheme.h.
enum KIcon::Overlays |
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.
- Enumerator:
-
LockOverlay a file is locked ZipOverlay a file is zipped LinkOverlay a file is a link HiddenOverlay a file is hidden ShareOverlay a file is shared OverlayMask
Definition at line 140 of file kicontheme.h.
enum KIcon::States |
Defines the possible states of an icon.
- Enumerator:
-
DefaultState The default state. ActiveState Icon is active. DisabledState Icon is disabled. LastState Last state (last constant).
Definition at line 129 of file kicontheme.h.
enum KIcon::StdSizes |
These are the standard sizes for icons.
- Enumerator:
Definition at line 111 of file kicontheme.h.
enum KIcon::Type |
Constructor & Destructor Documentation
KIcon::KIcon | ( | ) | [inline] |
Definition at line 38 of file kicontheme.h.
Member Function Documentation
bool KIcon::isValid | ( | ) | const [inline] |
Member Data Documentation
int KIcon::size |
int KIcon::threshold |
The documentation for this class was generated from the following file: