/**************************************************************************** ** $Id: qdrawutil.h,v 2.8.2.2 1998/08/25 12:38:21 hanord Exp $ ** ** Definition of draw utilities ** ** Created : 950920 ** ** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved. ** ** This file is part of Troll Tech's internal development tree for Qt. ** ** This header text will be replaced by an appropriate text by the ** mkdist script which generates external distributions. ** ** If you are using the Qt Professional Edition or the Qt Free Edition, ** please notify Troll Tech at <info@troll.no> if you see this text. ** ** To Troll Tech developers: This header was generated by the script ** fixcopyright-int. It has the same number of text lines as the free ** and professional editions to avoid line number inconsistency. ** *****************************************************************************/ #ifndef QDRAWUTIL_H #define QDRAWUTIL_H #ifndef QT_H #include "qpainter.h" #include "qpalette.h" #endif // QT_H // // Standard shade drawing // Q_EXPORT void qDrawShadeLine( QPainter *p, int x1, int y1, int x2, int y2, const QColorGroup &g, bool sunken = TRUE, int lineWidth = 1, int midLineWidth = 0 ); Q_EXPORT void qDrawShadeLine( QPainter *p, const QPoint &p1, const QPoint &p2, const QColorGroup &g, bool sunken = TRUE, int lineWidth = 1, int midLineWidth = 0 ); Q_EXPORT void qDrawShadeRect( QPainter *p, int x, int y, int w, int h, const QColorGroup &, bool sunken=FALSE, int lineWidth = 1, int midLineWidth = 0, const QBrush *fill = 0 ); Q_EXPORT void qDrawShadeRect( QPainter *p, const QRect &r, const QColorGroup &, bool sunken=FALSE, int lineWidth = 1, int midLineWidth = 0, const QBrush *fill = 0 ); Q_EXPORT void qDrawShadePanel( QPainter *p, int x, int y, int w, int h, const QColorGroup &, bool sunken=FALSE, int lineWidth = 1, const QBrush *fill = 0 ); Q_EXPORT void qDrawShadePanel( QPainter *p, const QRect &r, const QColorGroup &, bool sunken=FALSE, int lineWidth = 1, const QBrush *fill = 0 ); Q_EXPORT void qDrawWinButton( QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken = FALSE, const QBrush *fill = 0 ); Q_EXPORT void qDrawWinButton( QPainter *p, const QRect &r, const QColorGroup &g, bool sunken = FALSE, const QBrush *fill = 0 ); Q_EXPORT void qDrawWinPanel( QPainter *p, int x, int y, int w, int h, const QColorGroup &, bool sunken=FALSE, const QBrush *fill = 0 ); Q_EXPORT void qDrawWinPanel( QPainter *p, const QRect &r, const QColorGroup &, bool sunken=FALSE, const QBrush *fill = 0 ); Q_EXPORT void qDrawPlainRect( QPainter *p, int x, int y, int w, int h, const QColor &, int lineWidth = 1, const QBrush *fill = 0 ); Q_EXPORT void qDrawPlainRect( QPainter *p, const QRect &r, const QColor &, int lineWidth = 1, const QBrush *fill = 0 ); // // Other useful drawing functions // Q_EXPORT QRect qItemRect( QPainter *p, GUIStyle gs, int x, int y, int w, int h, int flags, bool enabled, const QPixmap *pixmap, const char *text, int len=-1 ); Q_EXPORT void qDrawItem( QPainter *p, GUIStyle gs, int x, int y, int w, int h, int flags, const QColorGroup &g, bool enabled, const QPixmap *pixmap, const char *text, int len=-1 ); enum ArrowType { UpArrow, DownArrow, LeftArrow, RightArrow }; Q_EXPORT void qDrawArrow( QPainter *p, ArrowType type, GUIStyle style, bool down, int x, int y, int w, int h, const QColorGroup &g, bool enabled ); #endif // QDRAWUTIL_H
Copyright © 1998 Troll Tech | Trademarks | Qt version 1.41
|