45 #include <QtCore/qnamespace.h> 46 #include <QtCore/qstring.h> 47 #include <QtCore/qmargins.h> 48 #include <QtGui/qpixmap.h> 70 const QPalette &pal,
bool sunken =
true,
71 int lineWidth = 1,
int midLineWidth = 0);
74 const QPalette &pal,
bool sunken =
true,
75 int lineWidth = 1,
int midLineWidth = 0);
78 const QPalette &pal,
bool sunken =
false,
79 int lineWidth = 1,
int midLineWidth = 0,
83 const QPalette &pal,
bool sunken =
false,
84 int lineWidth = 1,
int midLineWidth = 0,
88 const QPalette &pal,
bool sunken =
false,
89 int lineWidth = 1,
const QBrush *fill = 0);
92 const QPalette &pal,
bool sunken =
false,
93 int lineWidth = 1,
const QBrush *fill = 0);
96 const QPalette &pal,
bool sunken =
false,
100 const QPalette &pal,
bool sunken =
false,
104 const QPalette &pal,
bool sunken =
false,
108 const QPalette &pal,
bool sunken =
false,
112 int lineWidth = 1,
const QBrush *fill = 0);
115 int lineWidth = 1,
const QBrush *fill = 0);
129 int len=-1,
const QColor* penColor = 0);
132 int x,
int y,
int w,
int h,
148 namespace QDrawBorderPixmap
152 OpaqueTopLeft = 0x0001,
154 OpaqueTopRight = 0x0004,
156 OpaqueCenter = 0x0010,
157 OpaqueRight = 0x0020,
158 OpaqueBottomLeft = 0x0040,
159 OpaqueBottom = 0x0080,
160 OpaqueBottomRight = 0x0100,
161 OpaqueCorners = OpaqueTopLeft | OpaqueTopRight | OpaqueBottomLeft | OpaqueBottomRight,
162 OpaqueEdges = OpaqueTop | OpaqueLeft | OpaqueRight | OpaqueBottom,
163 OpaqueFrame = OpaqueCorners | OpaqueEdges,
164 OpaqueAll = OpaqueCenter | OpaqueFrame
172 const QRect &targetRect,
175 const QRect &sourceRect,
179 , QDrawBorderPixmap::DrawingHints hints = 0
195 #endif // QDRAWUTIL_H The QPainter class performs low-level painting on widgets and other paint devices.
The QColor class provides colors based on RGB, HSV or CMYK values.
Q_GUI_EXPORT void qDrawBorderPixmap(QPainter *painter, const QRect &targetRect, const QMargins &targetMargins, const QPixmap &pixmap, const QRect &sourceRect, const QMargins &sourceMargins, const QTileRules &rules=QTileRules())
#define QT_END_NAMESPACE
This macro expands to.
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule)
Constructs a QTileRules with the given horizontalRule and verticalRule.
QTileRules(Qt::TileRule rule=Qt::StretchTile)
Constructs a QTileRules with the given rule used for both the horizontal rule and the vertical rule...
The QString class provides a Unicode character string.
Q_GUI_EXPORT void qDrawShadePanel(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken=false, int lineWidth=1, const QBrush *fill=0)
Q_GUI_EXPORT void qDrawShadeRect(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken=false, int lineWidth=1, int midLineWidth=0, const QBrush *fill=0)
#define QT_BEGIN_NAMESPACE
This macro expands to.
Q_GUI_EXPORT void qDrawWinPanel(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken=false, const QBrush *fill=0)
Q_GUI_EXPORT void qDrawPlainRect(QPainter *p, int x, int y, int w, int h, const QColor &, int lineWidth=1, const QBrush *fill=0)
The QBrush class defines the fill pattern of shapes drawn by QPainter.
int y() const
Returns the y-coordinate of the rectangle's top edge.
Holds the rules used to draw a pixmap or image split into nine segments, similar to [CSS3 border-imag...
int x() const
Returns the x-coordinate of the rectangle's left edge.
The QPoint class defines a point in the plane using integer precision.
The QRect class defines a rectangle in the plane using integer precision.
The QColorGroup class contains color groups for each widget state.
QRect rect() const
Returns the pixmap's enclosing rectangle.
The QPixmap class is an off-screen image representation that can be used as a paint device...
The QMargins class defines the four margins of a rectangle.
Q_GUI_EXPORT void qDrawWinButton(QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken=false, const QBrush *fill=0)
Q_GUI_EXPORT void qDrawShadeLine(QPainter *p, int x1, int y1, int x2, int y2, const QPalette &pal, bool sunken=true, int lineWidth=1, int midLineWidth=0)
The QPalette class contains color groups for each widget state.