# class KStyle | Extends the QStyle class with virtual methods to draw KDE widgets. More...
Definition | `#include <kstyle.h>`
Inherits | QPlatinumStyle (qt) [public ]
Inherited by | KDEStyle
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Types

- enum KToolButtonType {Icon=0, IconTextRight, Text, IconTextBottom}
- enum KToolBarPos {Top=0, Left, Right, Bottom, Floating, Flat}

#### Public Methods

- KStyle ()
- virtual void drawKToolBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, KToolBarPos type, QBrush *fill=NULL)
- virtual void drawKBarHandle (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, KToolBarPos type, QBrush *fill=NULL)
- virtual void drawKToolBarButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=false, bool raised = true, bool enabled = true, bool popup = false, KToolButtonType icontext = Icon, const QString& btext=QString::null, const QPixmap *icon=NULL, QFont *font=NULL, QWidget *btn=NULL)
- virtual void drawKMenuBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool macMode, QBrush *fill=NULL)
- virtual void drawKMenuItem (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool active, QMenuItem *item, QBrush *fill=NULL)
- virtual void drawKProgressBlock (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill)
- virtual void getKProgressBackground (const QColorGroup &g, QBrush &bg)
- virtual void drawKickerHandle (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill=NULL)
- virtual void drawKickerAppletHandle (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill=NULL)
- virtual void drawKickerTaskButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, const QString &title, bool active, QPixmap *icon=NULL, QBrush *fill=NULL)
- virtual void getKickerBackground (int w, int h, Orientation orient, const QColorGroup &g, QBrush &bg)

## Detailed Description

Extends the QStyle class with virtual methods to draw KDE widgets.

To create a new KStyle, reimplement the virtual functions which draw the GUI elements.

enum KToolButtonType {Icon=0, IconTextRight, Text, IconTextBottom} | ### KToolButtonType

enum KToolBarPos {Top=0, Left, Right, Bottom, Floating, Flat} | ### KToolBarPos

KStyle () | ### KStyle

void drawKToolBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, KToolBarPos type, QBrush *fill=NULL) | ### drawKToolBar

[virtual]

Draw a toolbar (without buttons, etc.)

`x`, `y`, `w`, and `h` tell in which rectangle to draw the toolbar.

void drawKBarHandle (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, KToolBarPos type, QBrush *fill=NULL) | ### drawKBarHandle

[virtual]

Draw a toolbar handle.

Parameters:

fill | The QBrush to fill the handle with.

void drawKToolBarButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=false, bool raised = true, bool enabled = true, bool popup = false, KToolButtonType icontext = Icon, const QString& btext=QString::null, const QPixmap *icon=NULL, QFont *font=NULL, QWidget *btn=NULL) | ### drawKToolBarButton

[virtual]

Draw a toolbar button.

void drawKMenuBar (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool macMode, QBrush *fill=NULL) | ### drawKMenuBar

[virtual]

Draw a menubar (without menus).

Parameters:

fill | The QBrush to fill the menubar with.

void drawKMenuItem (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool active, QMenuItem *item, QBrush *fill=NULL) | ### drawKMenuItem

[virtual]

Draw a menu item (ex, "&File").

void drawKProgressBlock (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill) | ### drawKProgressBlock

[virtual]

Draw one block on a progress bar.

void getKProgressBackground (const QColorGroup &g, QBrush &bg) | ### getKProgressBackground

[virtual]

Retrieve the color used to the background of a progress bar.

This isn't a drawXXX method due to KProgress implementation.

void drawKickerHandle (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill=NULL) | ### drawKickerHandle

[virtual]

void drawKickerAppletHandle (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, QBrush *fill=NULL) | ### drawKickerAppletHandle

[virtual]

void drawKickerTaskButton (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, const QString &title, bool active, QPixmap *icon=NULL, QBrush *fill=NULL) | ### drawKickerTaskButton

[virtual]

void getKickerBackground (int w, int h, Orientation orient, const QColorGroup &g, QBrush &bg) | ### getKickerBackground

[virtual]

- Author: Daniel M. Duley <mosfet@kde.org>
- Generated: root@sparc.ports.openbsd.org on Wed May 2 09:34:58 2001, using kdoc 2.0a53.