00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 #ifndef __KDRAWUTIL_H
00019 #define __KDRAWUTIL_H
00020 
00021 #include <qnamespace.h>
00022 #include <qpainter.h>
00023 #include <qbitmap.h>
00024 #include <qpalette.h>
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00046 void kDrawNextButton(QPainter *p, const QRect &r, const QColorGroup &g,
00047                      bool sunken=false, const QBrush *fill=0);
00048 
00053 void kDrawNextButton(QPainter *p, int x, int y, int w, int h,
00054                      const QColorGroup &g, bool sunken=false, 
00055                      const QBrush *fill=0);
00056 
00070 void kDrawBeButton(QPainter *p, QRect &r, const QColorGroup &g,
00071                    bool sunken=false, const QBrush *fill=0);
00072 
00078 void kDrawBeButton(QPainter *p, int x, int y, int w, int h,
00079                    const QColorGroup &g, bool sunken=false, 
00080                    const QBrush *fill=0);
00081 
00094 void kDrawRoundButton(QPainter *p, const QRect &r, const QColorGroup &g,
00095                       bool sunken=false);
00096 
00101 void kDrawRoundButton(QPainter *p, int x, int y, int w, int h,
00102                       const QColorGroup &g, bool sunken=false);
00103 
00119 void kRoundMaskRegion(QRegion &r, int x, int y, int w, int h);
00120 
00136 void kDrawRoundMask(QPainter *p, int x, int y, int w, int h, bool clear=false);
00137 
00162 void kColorBitmaps(QPainter *p, const QColorGroup &g, int x, int y,
00163                    QBitmap *lightColor=0, QBitmap *midColor=0,
00164                    QBitmap *midlightColor=0, QBitmap *darkColor=0,
00165                    QBitmap *blackColor=0, QBitmap *whiteColor=0);
00166 
00172  void kColorBitmaps(QPainter *p, const QColorGroup &g, int x, int y, int w,
00173                    int h, bool isXBitmaps=true, const uchar *lightColor = 0,
00174                    const uchar *midColor=0, const uchar *midlightColor=0,
00175                    const uchar *darkColor=0, const uchar *blackColor=0,
00176                    const uchar *whiteColor=0);
00177 
00178 #endif