kdrawutil.h
/* This file is part of the KDE libraries
Copyright (C) 1999 Daniel M. Duley <mosfet@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __KDRAWUTIL_H
#define __KDRAWUTIL_H
#include <qnamespace.h>
#include <qpainter.h>
#include <qbitmap.h>
#include <qpalette.h>
#include <kdelibs_export.h>
/*
* Various drawing routines. Also see Qt's qdrawutil.h for some more routines
* contained in Qt.
*
* (C) Daniel M. Duley <mosfet@kde.org>
*/
KDEFX_EXPORT void kDrawNextButton(QPainter *p, const QRect &r, const QColorGroup &g,
bool sunken=false, const QBrush *fill=0);
KDEFX_EXPORT void kDrawNextButton(QPainter *p, int x, int y, int w, int h,
const QColorGroup &g, bool sunken=false,
const QBrush *fill=0);
KDEFX_EXPORT void kDrawBeButton(QPainter *p, QRect &r, const QColorGroup &g,
bool sunken=false, const QBrush *fill=0);
KDEFX_EXPORT void kDrawBeButton(QPainter *p, int x, int y, int w, int h,
const QColorGroup &g, bool sunken=false,
const QBrush *fill=0);
KDEFX_EXPORT void kDrawRoundButton(QPainter *p, const QRect &r, const QColorGroup &g,
bool sunken=false);
KDEFX_EXPORT void kDrawRoundButton(QPainter *p, int x, int y, int w, int h,
const QColorGroup &g, bool sunken=false);
KDEFX_EXPORT void kRoundMaskRegion(QRegion &r, int x, int y, int w, int h);
KDEFX_EXPORT void kDrawRoundMask(QPainter *p, int x, int y, int w, int h, bool clear=false);
KDEFX_EXPORT void kColorBitmaps(QPainter *p, const QColorGroup &g, int x, int y,
QBitmap *lightColor=0, QBitmap *midColor=0,
QBitmap *midlightColor=0, QBitmap *darkColor=0,
QBitmap *blackColor=0, QBitmap *whiteColor=0);
KDEFX_EXPORT void kColorBitmaps(QPainter *p, const QColorGroup &g, int x, int y, int w,
int h, bool isXBitmaps=true, const uchar *lightColor = 0,
const uchar *midColor=0, const uchar *midlightColor=0,
const uchar *darkColor=0, const uchar *blackColor=0,
const uchar *whiteColor=0);
#endif
KStyle::kDrawRoundButton
KDEFX_EXPORT void kDrawRoundButton(QPainter *p, const QRect &r, const QColorGroup &g, bool sunken=false)
Definition: kdrawutil.cpp:99
KStyle::kDrawNextButton
KDEFX_EXPORT void kDrawNextButton(QPainter *p, const QRect &r, const QColorGroup &g, bool sunken=false, const QBrush *fill=0)
Definition: kdrawutil.cpp:43
KStyle::kRoundMaskRegion
KDEFX_EXPORT void kRoundMaskRegion(QRegion &r, int x, int y, int w, int h)
Definition: kdrawutil.cpp:197
KStyle::kColorBitmaps
KDEFX_EXPORT void kColorBitmaps(QPainter *p, const QColorGroup &g, int x, int y, QBitmap *lightColor=0, QBitmap *midColor=0, QBitmap *midlightColor=0, QBitmap *darkColor=0, QBitmap *blackColor=0, QBitmap *whiteColor=0)
Definition: kdrawutil.cpp:217
KStyle::kDrawRoundMask
KDEFX_EXPORT void kDrawRoundMask(QPainter *p, int x, int y, int w, int h, bool clear=false)
Definition: kdrawutil.cpp:148
KStyle::kDrawBeButton
KDEFX_EXPORT void kDrawBeButton(QPainter *p, QRect &r, const QColorGroup &g, bool sunken=false, const QBrush *fill=0)
Definition: kdrawutil.cpp:93

KDE Home | KDE Accessibility Home | Description of Access Keys