kdrawutil.h
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 1999 Daniel M. Duley <mosfet@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 #ifndef __KDRAWUTIL_H 00019 #define __KDRAWUTIL_H 00020 00021 #include <tqnamespace.h> 00022 #include <tqpainter.h> 00023 #include <tqbitmap.h> 00024 #include <tqpalette.h> 00025 00026 #include <kdelibs_export.h> 00027 00028 /* 00029 * Various drawing routines. Also see Qt's tqdrawutil.h for some more routines 00030 * contained in Qt. 00031 * 00032 * (C) Daniel M. Duley <mosfet@kde.org> 00033 */ 00034 00048 KDEFX_EXPORT void kDrawNextButton(TQPainter *p, const TQRect &r, const TQColorGroup &g, 00049 bool sunken=false, const TQBrush *fill=0); 00050 00055 KDEFX_EXPORT void kDrawNextButton(TQPainter *p, int x, int y, int w, int h, 00056 const TQColorGroup &g, bool sunken=false, 00057 const TQBrush *fill=0); 00058 00072 KDEFX_EXPORT void kDrawBeButton(TQPainter *p, TQRect &r, const TQColorGroup &g, 00073 bool sunken=false, const TQBrush *fill=0); 00074 00080 KDEFX_EXPORT void kDrawBeButton(TQPainter *p, int x, int y, int w, int h, 00081 const TQColorGroup &g, bool sunken=false, 00082 const TQBrush *fill=0); 00083 00096 KDEFX_EXPORT void kDrawRoundButton(TQPainter *p, const TQRect &r, const TQColorGroup &g, 00097 bool sunken=false); 00098 00103 KDEFX_EXPORT void kDrawRoundButton(TQPainter *p, int x, int y, int w, int h, 00104 const TQColorGroup &g, bool sunken=false); 00105 00121 KDEFX_EXPORT void kRoundMaskRegion(TQRegion &r, int x, int y, int w, int h); 00122 00138 KDEFX_EXPORT void kDrawRoundMask(TQPainter *p, int x, int y, int w, int h, bool clear=false); 00139 00164 KDEFX_EXPORT void kColorBitmaps(TQPainter *p, const TQColorGroup &g, int x, int y, 00165 TQBitmap *lightColor=0, TQBitmap *midColor=0, 00166 TQBitmap *midlightColor=0, TQBitmap *darkColor=0, 00167 TQBitmap *blackColor=0, TQBitmap *whiteColor=0); 00168 00174 KDEFX_EXPORT void kColorBitmaps(TQPainter *p, const TQColorGroup &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