KStyles
OxygenStyle Class Reference
#include <oxygen.h>

Public Types | |
| enum | StyleOption { Sunken = 0x1, Focus = 0x2, Hover = 0x4, Disabled = 0x8, NoFill = 0x10 } |
Public Member Functions | |
| virtual void | drawComplexControl (ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget) const |
| virtual void | drawControl (ControlElement element, const QStyleOption *option, QPainter *p, const QWidget *widget) const |
| virtual void | drawKStylePrimitive (WidgetType widgetType, int primitive, const QStyleOption *opt, const QRect &r, const QPalette &pal, State flags, QPainter *p, const QWidget *widget=0, Option *kOpt=0) const |
| OxygenStyle () | |
| virtual int | pixelMetric (PixelMetric m, const QStyleOption *opt, const QWidget *widget) const |
| virtual void | polish (QWidget *widget) |
| virtual QSize | sizeFromContents (ContentsType type, const QStyleOption *option, const QSize &contentsSize, const QWidget *widget) const |
| virtual int | styleHint (StyleHint hint, const QStyleOption *option=0, const QWidget *widget=0, QStyleHintReturn *returnData=0) const |
| virtual QRect | subControlRect (ComplexControl control, const QStyleOptionComplex *option, SubControl subControl, const QWidget *widget) const |
| virtual QRect | subElementRect (SubElement sr, const QStyleOption *opt, const QWidget *widget) const |
| virtual void | unpolish (QWidget *widget) |
| virtual | ~OxygenStyle () |
Protected Types | |
| enum | ColorType { ButtonContour, DragButtonContour, DragButtonSurface, PanelContour, PanelLight, PanelLight2, PanelDark, PanelDark2, MouseOverHighlight, FocusHighlight, CheckMark } |
| enum | TabPosition { First = 0, Middle, Last, Single } |
Protected Slots | |
| void | globalSettingsChange (int type, int arg) |
| void | progressBarDestroyed (QObject *bar) |
| virtual QIcon | standardIconImplementation (StandardPixmap standardIcon, const QStyleOption *option, const QWidget *widget) const |
| void | updateProgressPos () |
Protected Member Functions | |
| bool | eventFilter (QObject *, QEvent *) |
| void | renderCheckBox (QPainter *p, const QRect &r, const QPalette &pal, bool enabled, bool hasFocus, bool mouseOver, int checkPrimitive, bool sunken=false) const |
| void | renderDot (QPainter *p, const QPointF &point, const QColor &baseColor) const |
| void | renderHole (QPainter *p, const QColor &, const QRect &r, bool focus=false, bool hover=false, TileSet::Tiles posFlags=TileSet::Ring) const |
| void | renderRadioButton (QPainter *p, const QRect &r, const QPalette &pal, bool enabled, bool hasFocus, bool mouseOver, int radioPrimitive, bool drawButton=true) const |
| void | renderScrollBarHandle (QPainter *p, const QRect &r, const QPalette &pal, Qt::Orientation orientation, bool hover) const |
| void | renderScrollBarHole (QPainter *p, const QRect &r, const QColor &color, Qt::Orientation orientation, TileSet::Tiles=TileSet::Full) const |
| void | renderSlab (QPainter *, QRect, const QColor &, StyleOptions=0, TileSet::Tiles tiles=TileSet::Ring) const |
| void | renderTab (QPainter *p, const QRect &r, const QPalette &pal, bool mouseOver, const bool selected, const QStyleOptionTabV2 *tabOpt, const bool reverseLayout) const |
| void | renderWindowIcon (QPainter *p, const QRectF &r, int &type) const |
Detailed Description
Definition at line 73 of file oxygen.h.
Member Enumeration Documentation
enum OxygenStyle::ColorType [protected] |
enum OxygenStyle::TabPosition [protected] |
Constructor & Destructor Documentation
| OxygenStyle::OxygenStyle | ( | ) |
Definition at line 95 of file oxygen.cpp.
| OxygenStyle::~OxygenStyle | ( | ) | [virtual] |
Definition at line 289 of file oxygen.cpp.
Member Function Documentation
| void OxygenStyle::drawComplexControl | ( | ComplexControl | control, | |
| const QStyleOptionComplex * | option, | |||
| QPainter * | painter, | |||
| const QWidget * | widget | |||
| ) | const [virtual] |
Definition at line 293 of file oxygen.cpp.
| void OxygenStyle::drawControl | ( | ControlElement | element, | |
| const QStyleOption * | option, | |||
| QPainter * | p, | |||
| const QWidget * | widget | |||
| ) | const [virtual] |
Definition at line 319 of file oxygen.cpp.
| virtual void OxygenStyle::drawKStylePrimitive | ( | WidgetType | widgetType, | |
| int | primitive, | |||
| const QStyleOption * | opt, | |||
| const QRect & | r, | |||
| const QPalette & | pal, | |||
| State | flags, | |||
| QPainter * | p, | |||
| const QWidget * | widget = 0, |
|||
| Option * | kOpt = 0 | |||
| ) | const [virtual] |
Definition at line 3374 of file oxygen.cpp.
| void OxygenStyle::globalSettingsChange | ( | int | type, | |
| int | arg | |||
| ) | [protected, slot] |
Definition at line 2331 of file oxygen.cpp.
| int OxygenStyle::pixelMetric | ( | PixelMetric | m, | |
| const QStyleOption * | opt, | |||
| const QWidget * | widget | |||
| ) | const [virtual] |
Definition at line 3009 of file oxygen.cpp.
| void OxygenStyle::polish | ( | QWidget * | widget | ) | [virtual] |
Definition at line 2161 of file oxygen.cpp.
| void OxygenStyle::progressBarDestroyed | ( | QObject * | bar | ) | [protected, slot] |
Definition at line 2325 of file oxygen.cpp.
| void OxygenStyle::renderCheckBox | ( | QPainter * | p, | |
| const QRect & | r, | |||
| const QPalette & | pal, | |||
| bool | enabled, | |||
| bool | hasFocus, | |||
| bool | mouseOver, | |||
| int | checkPrimitive, | |||
| bool | sunken = false | |||
| ) | const [protected] |
Definition at line 2493 of file oxygen.cpp.
| void OxygenStyle::renderDot | ( | QPainter * | p, | |
| const QPointF & | point, | |||
| const QColor & | baseColor | |||
| ) | const [protected] |
Definition at line 2610 of file oxygen.cpp.
| void OxygenStyle::renderHole | ( | QPainter * | p, | |
| const QColor & | base, | |||
| const QRect & | r, | |||
| bool | focus = false, |
|||
| bool | hover = false, |
|||
| TileSet::Tiles | posFlags = TileSet::Ring | |||
| ) | const [protected] |
Definition at line 2392 of file oxygen.cpp.
| void OxygenStyle::renderRadioButton | ( | QPainter * | p, | |
| const QRect & | r, | |||
| const QPalette & | pal, | |||
| bool | enabled, | |||
| bool | hasFocus, | |||
| bool | mouseOver, | |||
| int | radioPrimitive, | |||
| bool | drawButton = true | |||
| ) | const [protected] |
Definition at line 2557 of file oxygen.cpp.
| void OxygenStyle::renderScrollBarHandle | ( | QPainter * | p, | |
| const QRect & | r, | |||
| const QPalette & | pal, | |||
| Qt::Orientation | orientation, | |||
| bool | hover | |||
| ) | const [protected] |
Definition at line 2416 of file oxygen.cpp.
| void OxygenStyle::renderScrollBarHole | ( | QPainter * | p, | |
| const QRect & | r, | |||
| const QColor & | color, | |||
| Qt::Orientation | orientation, | |||
| TileSet::Tiles | tiles = TileSet::Full | |||
| ) | const [protected] |
Definition at line 2408 of file oxygen.cpp.
| void OxygenStyle::renderSlab | ( | QPainter * | p, | |
| QRect | r, | |||
| const QColor & | color, | |||
| StyleOptions | opts = 0, |
|||
| TileSet::Tiles | tiles = TileSet::Ring | |||
| ) | const [protected] |
Definition at line 2340 of file oxygen.cpp.
| void OxygenStyle::renderTab | ( | QPainter * | p, | |
| const QRect & | r, | |||
| const QPalette & | pal, | |||
| bool | mouseOver, | |||
| const bool | selected, | |||
| const QStyleOptionTabV2 * | tabOpt, | |||
| const bool | reverseLayout | |||
| ) | const [protected] |
Definition at line 2625 of file oxygen.cpp.
Definition at line 3328 of file oxygen.cpp.
| QSize OxygenStyle::sizeFromContents | ( | ContentsType | type, | |
| const QStyleOption * | option, | |||
| const QSize & | contentsSize, | |||
| const QWidget * | widget | |||
| ) | const [virtual] |
Definition at line 3032 of file oxygen.cpp.
| QIcon OxygenStyle::standardIconImplementation | ( | StandardPixmap | standardIcon, | |
| const QStyleOption * | option, | |||
| const QWidget * | widget | |||
| ) | const [protected, virtual, slot] |
Definition at line 3599 of file oxygen.cpp.
| int OxygenStyle::styleHint | ( | StyleHint | hint, | |
| const QStyleOption * | option = 0, |
|||
| const QWidget * | widget = 0, |
|||
| QStyleHintReturn * | returnData = 0 | |||
| ) | const [virtual] |
Definition at line 2978 of file oxygen.cpp.
| QRect OxygenStyle::subControlRect | ( | ComplexControl | control, | |
| const QStyleOptionComplex * | option, | |||
| SubControl | subControl, | |||
| const QWidget * | widget | |||
| ) | const [virtual] |
Definition at line 3096 of file oxygen.cpp.
| QRect OxygenStyle::subElementRect | ( | SubElement | sr, | |
| const QStyleOption * | opt, | |||
| const QWidget * | widget | |||
| ) | const [virtual] |
Definition at line 3187 of file oxygen.cpp.
| void OxygenStyle::unpolish | ( | QWidget * | widget | ) | [virtual] |
Definition at line 2250 of file oxygen.cpp.
| void OxygenStyle::updateProgressPos | ( | ) | [protected, slot] |
Definition at line 256 of file oxygen.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference