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 #include <kdelibs_export.h>
00027
00028
00029
00030
00031
00032
00033
00034
00048 KDEFX_EXPORT void kDrawNextButton(QPainter *p, const QRect &r, const QColorGroup &g,
00049 bool sunken=false, const QBrush *fill=0);
00050
00055 KDEFX_EXPORT void kDrawNextButton(QPainter *p, int x, int y, int w, int h,
00056 const QColorGroup &g, bool sunken=false,
00057 const QBrush *fill=0);
00058
00072 KDEFX_EXPORT void kDrawBeButton(QPainter *p, QRect &r, const QColorGroup &g,
00073 bool sunken=false, const QBrush *fill=0);
00074
00080 KDEFX_EXPORT void kDrawBeButton(QPainter *p, int x, int y, int w, int h,
00081 const QColorGroup &g, bool sunken=false,
00082 const QBrush *fill=0);
00083
00096 KDEFX_EXPORT void kDrawRoundButton(QPainter *p, const QRect &r, const QColorGroup &g,
00097 bool sunken=false);
00098
00103 KDEFX_EXPORT void kDrawRoundButton(QPainter *p, int x, int y, int w, int h,
00104 const QColorGroup &g, bool sunken=false);
00105
00121 KDEFX_EXPORT void kRoundMaskRegion(QRegion &r, int x, int y, int w, int h);
00122
00138 KDEFX_EXPORT void kDrawRoundMask(QPainter *p, int x, int y, int w, int h, bool clear=false);
00139
00164 KDEFX_EXPORT void kColorBitmaps(QPainter *p, const QColorGroup &g, int x, int y,
00165 QBitmap *lightColor=0, QBitmap *midColor=0,
00166 QBitmap *midlightColor=0, QBitmap *darkColor=0,
00167 QBitmap *blackColor=0, QBitmap *whiteColor=0);
00168
00174 KDEFX_EXPORT void kColorBitmaps(QPainter *p, const QColorGroup &g, int x, int y, int w,
00175 int h, bool isXBitmaps=true, const uchar *lightColor = 0,
00176 const uchar *midColor=0, const uchar *midlightColor=0,
00177 const uchar *darkColor=0, const uchar *blackColor=0,
00178 const uchar *whiteColor=0);
00179
00180 #endif