Eneboo - Documentación para desarrolladores
src/qt/include/qdrawutil.h
Ir a la documentación de este archivo.
00001 /****************************************************************************
00002 ** $Id: qt/qdrawutil.h   3.3.8   edited Jan 11 14:38 $
00003 **
00004 ** Definition of draw utilities
00005 **
00006 ** Created : 950920
00007 **
00008 ** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
00009 **
00010 ** This file is part of the kernel module of the Qt GUI Toolkit.
00011 **
00012 ** This file may be distributed under the terms of the Q Public License
00013 ** as defined by Trolltech ASA of Norway and appearing in the file
00014 ** LICENSE.QPL included in the packaging of this file.
00015 **
00016 ** This file may be distributed and/or modified under the terms of the
00017 ** GNU General Public License version 2 as published by the Free Software
00018 ** Foundation and appearing in the file LICENSE.GPL included in the
00019 ** packaging of this file.
00020 **
00021 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
00022 ** licenses may use this file in accordance with the Qt Commercial License
00023 ** Agreement provided with the Software.
00024 **
00025 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00026 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00027 **
00028 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00029 **   information about Qt Commercial License Agreements.
00030 ** See http://www.trolltech.com/qpl/ for QPL licensing information.
00031 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00032 **
00033 ** Contact info@trolltech.com if any conditions of this licensing are
00034 ** not clear to you.
00035 **
00036 **********************************************************************/
00037 
00038 #ifndef QDRAWUTIL_H
00039 #define QDRAWUTIL_H
00040 
00041 #ifndef QT_H
00042 #include "qnamespace.h"
00043 #include "qstring.h" // char*->QString conversion
00044 #endif // QT_H
00045 
00046 class QPainter;
00047 class QColorGroup;
00048 class QPoint;
00049 class QBrush;
00050 class QRect;
00051 class QPixmap;
00052 
00053 #ifndef QT_NO_DRAWUTIL
00054 //
00055 // Standard shade drawing
00056 //
00057 
00058 Q_EXPORT void qDrawShadeLine( QPainter *p, int x1, int y1, int x2, int y2,
00059                               const QColorGroup &g, bool sunken = TRUE,
00060                               int lineWidth = 1, int midLineWidth = 0 );
00061 
00062 Q_EXPORT void qDrawShadeLine( QPainter *p, const QPoint &p1, const QPoint &p2,
00063                               const QColorGroup &g, bool sunken = TRUE,
00064                               int lineWidth = 1, int midLineWidth = 0 );
00065 
00066 Q_EXPORT void qDrawShadeRect( QPainter *p, int x, int y, int w, int h,
00067                               const QColorGroup &, bool sunken=FALSE,
00068                               int lineWidth = 1, int midLineWidth = 0,
00069                               const QBrush *fill = 0 );
00070 
00071 Q_EXPORT void qDrawShadeRect( QPainter *p, const QRect &r,
00072                               const QColorGroup &, bool sunken=FALSE,
00073                               int lineWidth = 1, int midLineWidth = 0,
00074                               const QBrush *fill = 0 );
00075 
00076 Q_EXPORT void qDrawShadePanel( QPainter *p, int x, int y, int w, int h,
00077                                const QColorGroup &, bool sunken=FALSE,
00078                                int lineWidth = 1, const QBrush *fill = 0 );
00079 
00080 Q_EXPORT void qDrawShadePanel( QPainter *p, const QRect &r,
00081                                const QColorGroup &, bool sunken=FALSE,
00082                                int lineWidth = 1, const QBrush *fill = 0 );
00083 
00084 Q_EXPORT void qDrawWinButton( QPainter *p, int x, int y, int w, int h,
00085                               const QColorGroup &g, bool sunken = FALSE,
00086                               const QBrush *fill = 0 );
00087 
00088 Q_EXPORT void qDrawWinButton( QPainter *p, const QRect &r,
00089                               const QColorGroup &g, bool sunken = FALSE,
00090                               const QBrush *fill = 0 );
00091 
00092 Q_EXPORT void qDrawWinPanel( QPainter *p, int x, int y, int w, int h,
00093                              const QColorGroup &, bool sunken=FALSE,
00094                              const QBrush *fill = 0 );
00095 
00096 Q_EXPORT void qDrawWinPanel( QPainter *p, const QRect &r,
00097                              const QColorGroup &, bool sunken=FALSE,
00098                              const QBrush *fill = 0 );
00099 
00100 Q_EXPORT void qDrawPlainRect( QPainter *p, int x, int y, int w, int h, const QColor &,
00101                               int lineWidth = 1, const QBrush *fill = 0 );
00102 
00103 Q_EXPORT void qDrawPlainRect( QPainter *p, const QRect &r, const QColor &,
00104                               int lineWidth = 1, const QBrush *fill = 0 );
00105 
00106 
00107 //
00108 // Other obsolete drawing functions.
00109 // Use QStyle::itemRect(), QStyle::drawItem() and QStyle::drawArrow() instead.
00110 //
00111 Q_EXPORT QRect qItemRect( QPainter *p, Qt::GUIStyle gs, int x, int y, int w, int h,
00112                           int flags, bool enabled,
00113                           const QPixmap *pixmap, const QString& text, int len=-1 );
00114 
00115 Q_EXPORT void qDrawItem( QPainter *p, Qt::GUIStyle gs, int x, int y, int w, int h,
00116                          int flags, const QColorGroup &g, bool enabled,
00117                          const QPixmap *pixmap, const QString& text,
00118                          int len=-1, const QColor* penColor = 0 );
00119 
00120 Q_EXPORT void qDrawArrow( QPainter *p, Qt::ArrowType type, Qt::GUIStyle style, bool down,
00121                           int x, int y, int w, int h,
00122                           const QColorGroup &g, bool enabled );
00123 
00124 #endif // QT_NO_DRAWUTIL
00125 #endif // QDRAWUTIL_H
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'