KStyles
HighColorStyle Class Reference
#include <highcolor.h>

Public Types | |
enum | StyleType { HighColor = 0, Default, B3 } |
Public Member Functions | |
void | drawComplexControl (ComplexControl control, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, SCFlags controls=SC_All, SCFlags active=SC_None, const QStyleOption &=QStyleOption::Default) const |
void | drawComplexControlMask (ComplexControl control, QPainter *p, const QWidget *widget, const QRect &r, const QStyleOption &=QStyleOption::Default) const |
void | drawControl (ControlElement element, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) const |
void | drawControlMask (ControlElement element, QPainter *p, const QWidget *widget, const QRect &r, const QStyleOption &=QStyleOption::Default) const |
void | drawItem (QPainter *p, const QRect &r, int flags, const QColorGroup &cg, bool enabled, const QPixmap *pixmap, const QString &text, int len=-1, const QColor *penColor=0) const |
void | drawKStylePrimitive (KStylePrimitive kpe, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) const |
void | drawPrimitive (PrimitiveElement pe, QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) const |
HighColorStyle (StyleType) | |
int | pixelMetric (PixelMetric m, const QWidget *widget=0) const |
void | polish (QWidget *widget) |
void | renderMenuBlendPixmap (KPixmap &pix, const QColorGroup &cg, const QMenu *popup) const |
QSize | sizeFromContents (ContentsType contents, const QWidget *widget, const QSize &contentSize, const QStyleOption &opt) const |
QPixmap | stylePixmap (StylePixmap stylepixmap, const QWidget *widget=0, const QStyleOption &=QStyleOption::Default) const |
QRect | subRect (SubRect r, const QWidget *widget) const |
void | unPolish (QWidget *widget) |
virtual | ~HighColorStyle () |
Protected Member Functions | |
bool | eventFilter (QObject *object, QEvent *event) |
void | renderGradient (QPainter *p, const QRect &r, QColor clr, bool horizontal, int px=0, int py=0, int pwidth=-1, int pheight=-1) const |
Protected Attributes | |
bool | highcolor |
QWidget * | hoverWidget |
bool | selectionBackground |
StyleType | type |
Detailed Description
Definition at line 55 of file highcolor.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
HighColorStyle::HighColorStyle | ( | StyleType | styleType | ) |
Definition at line 173 of file highcolor.cpp.
HighColorStyle::~HighColorStyle | ( | ) | [virtual] |
Definition at line 184 of file highcolor.cpp.
Member Function Documentation
void HighColorStyle::drawComplexControl | ( | ComplexControl | control, | |
QPainter * | p, | |||
const QWidget * | widget, | |||
const QRect & | r, | |||
const QColorGroup & | cg, | |||
SFlags | flags = Style_Default , |
|||
SCFlags | controls = SC_All , |
|||
SCFlags | active = SC_None , |
|||
const QStyleOption & | opt = QStyleOption::Default | |||
) | const |
Definition at line 1514 of file highcolor.cpp.
void HighColorStyle::drawComplexControlMask | ( | ComplexControl | control, | |
QPainter * | p, | |||
const QWidget * | widget, | |||
const QRect & | r, | |||
const QStyleOption & | opt = QStyleOption::Default | |||
) | const |
Definition at line 1703 of file highcolor.cpp.
void HighColorStyle::drawControl | ( | ControlElement | element, | |
QPainter * | p, | |||
const QWidget * | widget, | |||
const QRect & | r, | |||
const QColorGroup & | cg, | |||
SFlags | flags = Style_Default , |
|||
const QStyleOption & | opt = QStyleOption::Default | |||
) | const |
Definition at line 1095 of file highcolor.cpp.
void HighColorStyle::drawControlMask | ( | ControlElement | element, | |
QPainter * | p, | |||
const QWidget * | widget, | |||
const QRect & | r, | |||
const QStyleOption & | opt = QStyleOption::Default | |||
) | const |
Definition at line 1488 of file highcolor.cpp.
void HighColorStyle::drawItem | ( | QPainter * | p, | |
const QRect & | r, | |||
int | flags, | |||
const QColorGroup & | cg, | |||
bool | enabled, | |||
const QPixmap * | pixmap, | |||
const QString & | text, | |||
int | len = -1 , |
|||
const QColor * | penColor = 0 | |||
) | const |
Definition at line 1730 of file highcolor.cpp.
void HighColorStyle::drawKStylePrimitive | ( | KStylePrimitive | kpe, | |
QPainter * | p, | |||
const QWidget * | widget, | |||
const QRect & | r, | |||
const QColorGroup & | cg, | |||
SFlags | flags = Style_Default , |
|||
const QStyleOption & | opt = QStyleOption::Default | |||
) | const |
Definition at line 916 of file highcolor.cpp.
void HighColorStyle::drawPrimitive | ( | PrimitiveElement | pe, | |
QPainter * | p, | |||
const QRect & | r, | |||
const QColorGroup & | cg, | |||
SFlags | flags = Style_Default , |
|||
const QStyleOption & | opt = QStyleOption::Default | |||
) | const |
Definition at line 246 of file highcolor.cpp.
Definition at line 1943 of file highcolor.cpp.
int HighColorStyle::pixelMetric | ( | PixelMetric | m, | |
const QWidget * | widget = 0 | |||
) | const |
Definition at line 1784 of file highcolor.cpp.
void HighColorStyle::polish | ( | QWidget * | widget | ) |
Definition at line 189 of file highcolor.cpp.
void HighColorStyle::renderGradient | ( | QPainter * | p, | |
const QRect & | r, | |||
QColor | clr, | |||
bool | horizontal, | |||
int | px = 0 , |
|||
int | py = 0 , |
|||
int | pwidth = -1 , |
|||
int | pheight = -1 | |||
) | const [protected] |
Definition at line 2023 of file highcolor.cpp.
void HighColorStyle::renderMenuBlendPixmap | ( | KPixmap & | pix, | |
const QColorGroup & | cg, | |||
const QMenu * | popup | |||
) | const |
Definition at line 230 of file highcolor.cpp.
QSize HighColorStyle::sizeFromContents | ( | ContentsType | contents, | |
const QWidget * | widget, | |||
const QSize & | contentSize, | |||
const QStyleOption & | opt | |||
) | const |
Definition at line 1822 of file highcolor.cpp.
QPixmap HighColorStyle::stylePixmap | ( | StylePixmap | stylepixmap, | |
const QWidget * | widget = 0 , |
|||
const QStyleOption & | opt = QStyleOption::Default | |||
) | const |
Definition at line 1926 of file highcolor.cpp.
Definition at line 1757 of file highcolor.cpp.
void HighColorStyle::unPolish | ( | QWidget * | widget | ) |
Definition at line 211 of file highcolor.cpp.
Member Data Documentation
bool HighColorStyle::highcolor [protected] |
Definition at line 156 of file highcolor.h.
QWidget* HighColorStyle::hoverWidget [protected] |
Definition at line 154 of file highcolor.h.
bool HighColorStyle::selectionBackground [mutable, protected] |
Definition at line 157 of file highcolor.h.
StyleType HighColorStyle::type [protected] |
Definition at line 155 of file highcolor.h.
The documentation for this class was generated from the following files: