46 inline uint
qHash(
const QSize &
s) {
return uint(s.width() | s.height()); }
63 const QString & szName,
64 const QSize & scaleOnLoad = QSize());
90 inline const QString &
localPath() {
return m_szLocalPath; }
98 inline const QString &
name() {
return m_szName; }
175 #endif //_KVI_AVATAR_H_
bool m_bRemote
Definition: KviAvatar.h:74
Definition: KviAnimatedPixmap.h:67
Definition: KviHeapObject.h:124
QString m_szLocalPath
Definition: KviAvatar.h:72
bool isRemote()
Returns true, if avatar is remote.
Definition: KviAvatar.h:84
m_pPixmap
Definition: KvsObject_pixmap.cpp:112
KviAnimatedPixmap * forSize(unsigned int uWidth, unsigned int uHeight)
Returns animated pixmap, scaled to the requisted size.
Definition: KviAvatar.h:163
QHash< QSize, KviAnimatedPixmap * > m_scaledPixmapsCache
Definition: KviAvatar.h:77
bool isValid()
Returns true if pixmap has at least one loaded frame.
Definition: KviAvatar.h:124
uint qHash(const QSize &s)
Returns an hash based on avatar dimensions.
Definition: KviAvatar.h:46
Avatar class.
Definition: KviAvatar.h:52
char s char s s
Definition: KviIrcNumericCodes.h:391
KviAnimatedPixmap * animatedPixmap()
Returns original animated pixmap.
Definition: KviAvatar.h:130
const QSize & size()
Returns original pixmap's size.
Definition: KviAvatar.h:110
bool isAnimated()
Returns true, if underlying pixmap contains more then one frame.
Definition: KviAvatar.h:104
const QString & name()
Returns fiename.
Definition: KviAvatar.h:98
QPixmap * pixmap()
Returns unscaled original frame.
Definition: KviAvatar.h:116
const QString & identificationString()
Returns the string that uniquely identifies this avatar.
Definition: KviAvatar.h:172
QString m_szName
Definition: KviAvatar.h:73
This file contains compile time settings.
#define KVILIB_API
Definition: kvi_settings.h:125
KviAnimatedPixmap * m_pPixmap
Definition: KviAvatar.h:76
const QString & localPath()
Returns filepath.
Definition: KviAvatar.h:90