• Skip to content
  • Skip to link menu
KDE 4.2 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.


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.

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

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

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

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

void OxygenHelper::invalidateCaches (  )  [virtual]

Reimplemented in OxygenStyleHelper.

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

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

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

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

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.

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

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

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

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

QPixmap OxygenHelper::windecoButtonGlow ( const QColor &  color,
int  size = 21 
)

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:
  • 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.7
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