KStyles
OxygenHelper Class Reference
#include <helper.h>

Detailed Description
Definition at line 35 of file lib/helper.h.
Public Member Functions | |
QColor | backgroundBottomColor (const QColor &color) const |
QColor | backgroundColor (const QColor &color, int height, int y) |
QColor | backgroundRadialColor (const QColor &color) const |
QColor | backgroundTopColor (const QColor &color) const |
QColor | calcDarkColor (const QColor &color) const |
QColor | calcLightColor (const QColor &color) const |
QColor | calcShadowColor (const QColor &color) const |
KSharedConfigPtr | config () const |
QLinearGradient | decoGradient (const QRect &r, const QColor &color) |
void | drawFloatFrame (QPainter *p, const QRect r, const QColor &color) const |
virtual void | invalidateCaches () |
OxygenHelper (const QByteArray &componentName) | |
QPixmap | radialGradient (const QColor &color, int width) |
void | reloadConfig () |
void | renderWindowBackground (QPainter *p, const QRect &clipRect, const QWidget *widget, const QPalette &pal) |
QPixmap | verticalGradient (const QColor &color, int height) |
QPixmap | windecoButton (const QColor &color, bool pressed, int size=21) |
virtual | ~OxygenHelper () |
Static Public Member Functions | |
static QColor | alphaColor (QColor color, double alpha) |
static bool | lowThreshold (const QColor &color) |
Protected Member Functions | |
void | drawShadow (QPainter &, const QColor &, int size) const |
Static Protected Member Functions | |
static QPixmap | glow (const QColor &, int size, int rsize) |
Protected Attributes | |
qreal | _bgcontrast |
KComponentData | _componentData |
KSharedConfigPtr | _config |
qreal | _contrast |
QCache< quint64, QPixmap > | m_backgroundCache |
QCache< quint64, QPixmap > | m_windecoButtonCache |
Static Protected Attributes | |
static const double | _shadowGain = 1.5 |
Constructor & Destructor Documentation
OxygenHelper::OxygenHelper | ( | const QByteArray & | componentName | ) | [explicit] |
Definition at line 38 of file lib/helper.cpp.
virtual OxygenHelper::~OxygenHelper | ( | ) | [inline, virtual] |
Definition at line 39 of file lib/helper.h.
Member Function Documentation
Definition at line 117 of file lib/helper.cpp.
Definition at line 141 of file lib/helper.cpp.
Definition at line 171 of file lib/helper.cpp.
Definition at line 125 of file lib/helper.cpp.
Definition at line 133 of file lib/helper.cpp.
Definition at line 156 of file lib/helper.cpp.
Definition at line 151 of file lib/helper.cpp.
Definition at line 164 of file lib/helper.cpp.
KSharedConfigPtr OxygenHelper::config | ( | ) | const |
Definition at line 49 of file lib/helper.cpp.
QLinearGradient OxygenHelper::decoGradient | ( | const QRect & | r, | |
const QColor & | color | |||
) |
Definition at line 256 of file lib/helper.cpp.
Definition at line 380 of file lib/helper.cpp.
Definition at line 239 of file lib/helper.cpp.
Definition at line 342 of file lib/helper.cpp.
void OxygenHelper::invalidateCaches | ( | ) | [virtual] |
bool OxygenHelper::lowThreshold | ( | const QColor & | color | ) | [static] |
Definition at line 111 of file lib/helper.cpp.
Definition at line 208 of file lib/helper.cpp.
void OxygenHelper::reloadConfig | ( | ) |
Definition at line 54 of file lib/helper.cpp.
void OxygenHelper::renderWindowBackground | ( | QPainter * | p, | |
const QRect & | clipRect, | |||
const QWidget * | widget, | |||
const QPalette & | pal | |||
) |
Definition at line 65 of file lib/helper.cpp.
Definition at line 184 of file lib/helper.cpp.
Definition at line 285 of file lib/helper.cpp.
Member Data Documentation
qreal OxygenHelper::_bgcontrast [protected] |
Definition at line 79 of file lib/helper.h.
KComponentData OxygenHelper::_componentData [protected] |
Definition at line 76 of file lib/helper.h.
KSharedConfigPtr OxygenHelper::_config [protected] |
Definition at line 77 of file lib/helper.h.
qreal OxygenHelper::_contrast [protected] |
Definition at line 78 of file lib/helper.h.
const double OxygenHelper::_shadowGain = 1.5 [static, protected] |
Definition at line 74 of file lib/helper.h.
QCache<quint64, QPixmap> OxygenHelper::m_backgroundCache [protected] |
Definition at line 81 of file lib/helper.h.
QCache<quint64, QPixmap> OxygenHelper::m_windecoButtonCache [protected] |
Definition at line 82 of file lib/helper.h.
The documentation for this class was generated from the following files: