• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KStyles

OxygenHelper Class Reference

#include <helper.h>

Inheritance diagram for OxygenHelper:

Inheritance graph
[legend]

List of all members.


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

QColor OxygenHelper::alphaColor ( QColor  color,
double  alpha 
) [static]

Definition at line 117 of file lib/helper.cpp.

QColor OxygenHelper::backgroundBottomColor ( const QColor &  color  )  const

Definition at line 141 of file lib/helper.cpp.

QColor OxygenHelper::backgroundColor ( const QColor &  color,
int  height,
int  y 
)

Definition at line 171 of file lib/helper.cpp.

QColor OxygenHelper::backgroundRadialColor ( const QColor &  color  )  const

Definition at line 125 of file lib/helper.cpp.

QColor OxygenHelper::backgroundTopColor ( const QColor &  color  )  const

Definition at line 133 of file lib/helper.cpp.

QColor OxygenHelper::calcDarkColor ( const QColor &  color  )  const

Definition at line 156 of file lib/helper.cpp.

QColor OxygenHelper::calcLightColor ( const QColor &  color  )  const

Definition at line 151 of file lib/helper.cpp.

QColor OxygenHelper::calcShadowColor ( const QColor &  color  )  const

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.

void OxygenHelper::drawFloatFrame ( QPainter *  p,
const QRect  r,
const QColor &  color 
) const

Definition at line 380 of file lib/helper.cpp.

void OxygenHelper::drawShadow ( QPainter &  p,
const QColor &  color,
int  size 
) const [protected]

Definition at line 239 of file lib/helper.cpp.

QPixmap OxygenHelper::glow ( const QColor &  color,
int  size,
int  rsize 
) [static, protected]

Definition at line 342 of file lib/helper.cpp.

void OxygenHelper::invalidateCaches (  )  [virtual]

Reimplemented in OxygenStyleHelper.

Definition at line 105 of file lib/helper.cpp.

bool OxygenHelper::lowThreshold ( const QColor &  color  )  [static]

Definition at line 111 of file lib/helper.cpp.

QPixmap OxygenHelper::radialGradient ( const QColor &  color,
int  width 
)

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.

QPixmap OxygenHelper::verticalGradient ( const QColor &  color,
int  height 
)

Definition at line 184 of file lib/helper.cpp.

QPixmap OxygenHelper::windecoButton ( const QColor &  color,
bool  pressed,
int  size = 21 
)

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:
  • lib/helper.h
  • lib/helper.cpp

KStyles

Skip menu "KStyles"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KCMShell
  • KNotify
  • KStyles
  • Nepomuk Daemons
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal