KStyles
OxygenHelper Class Reference
#include <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, bool drawUglyShadow=true, bool isActive=false, const QColor &frameColor=QColor()) const |
void | drawSeparator (QPainter *p, const QRect &r, const QColor &color, Qt::Orientation orientation) 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, int y_shift=-23) |
QPixmap | verticalGradient (const QColor &color, int height) |
QPixmap | windecoButton (const QColor &color, bool pressed, int size=21) |
QPixmap | windecoButtonGlow (const QColor &color, 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 |
QCache< quint64, QPixmap > | m_windecoButtonGlowCache |
Static Protected Attributes | |
static const double | _shadowGain = 1.5 |
Detailed Description
Definition at line 36 of file lib/helper.h.
Constructor & Destructor Documentation
OxygenHelper::OxygenHelper | ( | const QByteArray & | componentName | ) | [explicit] |
Definition at line 39 of file lib/helper.cpp.
virtual OxygenHelper::~OxygenHelper | ( | ) | [inline, virtual] |
Definition at line 40 of file lib/helper.h.
Member Function Documentation
Definition at line 120 of file lib/helper.cpp.
Definition at line 144 of file lib/helper.cpp.
Definition at line 174 of file lib/helper.cpp.
Definition at line 128 of file lib/helper.cpp.
Definition at line 136 of file lib/helper.cpp.
Definition at line 159 of file lib/helper.cpp.
Definition at line 154 of file lib/helper.cpp.
Definition at line 167 of file lib/helper.cpp.
KSharedConfigPtr OxygenHelper::config | ( | ) | const |
Definition at line 51 of file lib/helper.cpp.
QLinearGradient OxygenHelper::decoGradient | ( | const QRect & | r, | |
const QColor & | color | |||
) |
Definition at line 259 of file lib/helper.cpp.
void OxygenHelper::drawFloatFrame | ( | QPainter * | p, | |
const QRect | r, | |||
const QColor & | color, | |||
bool | drawUglyShadow = true , |
|||
bool | isActive = false , |
|||
const QColor & | frameColor = QColor() | |||
) | const |
Definition at line 427 of file lib/helper.cpp.
void OxygenHelper::drawSeparator | ( | QPainter * | p, | |
const QRect & | r, | |||
const QColor & | color, | |||
Qt::Orientation | orientation | |||
) | const |
Definition at line 486 of file lib/helper.cpp.
Definition at line 242 of file lib/helper.cpp.
Definition at line 389 of file lib/helper.cpp.
void OxygenHelper::invalidateCaches | ( | ) | [virtual] |
bool OxygenHelper::lowThreshold | ( | const QColor & | color | ) | [static] |
Definition at line 114 of file lib/helper.cpp.
Definition at line 211 of file lib/helper.cpp.
void OxygenHelper::reloadConfig | ( | ) |
Definition at line 56 of file lib/helper.cpp.
void OxygenHelper::renderWindowBackground | ( | QPainter * | p, | |
const QRect & | clipRect, | |||
const QWidget * | widget, | |||
const QPalette & | pal, | |||
int | y_shift = -23 | |||
) |
Definition at line 67 of file lib/helper.cpp.
Definition at line 187 of file lib/helper.cpp.
Definition at line 288 of file lib/helper.cpp.
Definition at line 347 of file lib/helper.cpp.
Member Data Documentation
qreal OxygenHelper::_bgcontrast [protected] |
Definition at line 83 of file lib/helper.h.
KComponentData OxygenHelper::_componentData [protected] |
Definition at line 80 of file lib/helper.h.
KSharedConfigPtr OxygenHelper::_config [protected] |
Definition at line 81 of file lib/helper.h.
qreal OxygenHelper::_contrast [protected] |
Definition at line 82 of file lib/helper.h.
const double OxygenHelper::_shadowGain = 1.5 [static, protected] |
Definition at line 78 of file lib/helper.h.
QCache<quint64, QPixmap> OxygenHelper::m_backgroundCache [protected] |
Definition at line 85 of file lib/helper.h.
QCache<quint64, QPixmap> OxygenHelper::m_windecoButtonCache [protected] |
Definition at line 86 of file lib/helper.h.
QCache<quint64, QPixmap> OxygenHelper::m_windecoButtonGlowCache [protected] |
Definition at line 87 of file lib/helper.h.
The documentation for this class was generated from the following files: