.BI "virtual void \fBpaintButton\fR ( QPainter * painter, const QWidget * widget, Region type, int state ) = 0"
.br
.in -1c
.SH DESCRIPTION
The QWSDecoration class allows the appearance of the Qt/Embedded Window Manager to be customized.
.PP
Qt/Embedded provides window management to top level windows. The appearance of the borders and buttons (the decoration) around the managed windows can be customized by creating your own class derived from QWSDecoration and overriding a few methods.
.PP
This class is non-portable. It is available \fIonly\fR in Qt/Embedded.
.PP
See also QApplication::qwsSetDecoration() and Qt/Embedded.
.SS "Member Type Documentation"
.SH "QWSDecoration::Region"
This enum describes the regions in the window decorations.
.TP
\fCQWSDecoration::None\fR - used internally.
.TP
\fCQWSDecoration::All\fR - the entire region used by the window decoration.
.TP
\fCQWSDecoration::Title\fR - Displays the window title and allows the window to be moved by dragging.
.TP
\fCQWSDecoration::Top\fR - allows the top of the window to be resized.
.TP
\fCQWSDecoration::Bottom\fR - allows the bottom of the window to be resized.
.TP
\fCQWSDecoration::Left\fR - allows the left edge of the window to be resized.
.TP
\fCQWSDecoration::Right\fR - allows the right edge of the window to be resized.
.TP
\fCQWSDecoration::TopLeft\fR - allows the top-left of the window to be resized.
.TP
\fCQWSDecoration::TopRight\fR - allows the top-right of the window to be resized.
.TP
\fCQWSDecoration::BottomLeft\fR - allows the bottom-left of the window to be resized.
.TP
\fCQWSDecoration::BottomRight\fR - allows the bottom-right of the window to be resized.
.TP
\fCQWSDecoration::Close\fR - clicking in this region closes the window.
.TP
\fCQWSDecoration::Minimize\fR - clicking in this region minimizes the window.
.TP
\fCQWSDecoration::Maximize\fR - clicking in this region maximizes the window.
.TP
\fCQWSDecoration::Normalize\fR - returns a maximized window to its previous size.
.TP
\fCQWSDecoration::Menu\fR - clicking in this region opens the window operations (system) menu.
Override to paint the border and title decoration around \fIwidget\fR using \fIpainter\fR.
.SH "void QWSDecoration::paintButton ( QPainter * painter, const QWidget * widget, Region type, int state )\fC [pure virtual]\fR"
Override to paint a button of type \fItype\fR using \fIpainter\fR.
.PP
\fIwidget\fR is the widget whose button is to be drawn. \fIstate\fR is the state of the button. It can be a combination of the following OR-ed together:
.TP
\fCQWSButton::MouseOver\fR
.TP
\fCQWSButton::Clicked\fR
.TP
\fCQWSButton::On\fR
.SH "QRegion QWSDecoration::region ( const QWidget * widget, const QRect & rect, Region type = All )\fC [pure virtual]\fR"
Returns the requested region \fItype\fR which will contain \fIwidget\fR
with geometry \fIrect\fR.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qwsdecoration.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If you find a bug in Qt, please report it as described in