| # kdefx Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# 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., 59 Temple Place - Suite 330,
    00016    Boston, MA 02111-1307, USA.
    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  * Various drawing routines. Also see Qt's qdrawutil.h for some more routines
    00028  * contained in Qt.
    00029  *
    00030  * (C) Daniel M. Duley <mosfet@kde.org>
    00031  */
    00032
    00037 void kDrawNextButton(QPainter *p, const QRect &r, const QColorGroup &g,
    00038                      bool sunken=false, const QBrush *fill=0);
    00039
    00040 void kDrawNextButton(QPainter *p, int x, int y, int w, int h,
    00041                      const QColorGroup &g, bool sunken=false,
    00042                      const QBrush *fill=0);
    00043
    00047 void kDrawBeButton(QPainter *p, QRect &r, const QColorGroup &g,
    00048                    bool sunken=false, const QBrush *fill=0);
    00049
    00050 void kDrawBeButton(QPainter *p, int x, int y, int w, int h,
    00051                    const QColorGroup &g, bool sunken=false,
    00052                    const QBrush *fill=0);
    00053
    00058 void kDrawRoundButton(QPainter *p, const QRect &r, const QColorGroup &g,
    00059                       bool sunken=false);
    00060
    00061 void kDrawRoundButton(QPainter *p, int x, int y, int w, int h,
    00062                       const QColorGroup &g, bool sunken=false);
    00063
    00068 void kRoundMaskRegion(QRegion &r, int x, int y, int w, int h);
    00069
    00074 void kDrawRoundMask(QPainter *p, int x, int y, int w, int h, bool clear=false);
    00075
    00082 void kColorBitmaps(QPainter *p, const QColorGroup &g, int x, int y,
    00083                    QBitmap *lightColor=0, QBitmap *midColor=0,
    00084                    QBitmap *midlightColor=0, QBitmap *darkColor=0,
    00085                    QBitmap *blackColor=0, QBitmap *whiteColor=0);
    00086
    00087 void kColorBitmaps(QPainter *p, const QColorGroup &g, int x, int y, int w,
    00088                    int h, bool isXBitmaps=true, const uchar *lightColor = 0,
    00089                    const uchar *midColor=0, const uchar *midlightColor=0,
    00090                    const uchar *darkColor=0, const uchar *blackColor=0,
    00091                    const uchar *whiteColor=0);
    00092
    00093 #endif

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 12:44:19 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001