Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QWSDecoration class allows the appearance of the Qt/Embedded Window Manager to be customized. More...
#include <QWSDecoration>
The QWSDecoration class allows the appearance of the Qt/Embedded Window Manager to be customized.
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.
This class is non-portable. It is available only in Qt/Embedded.
See also QApplication::qwsSetDecoration().
This enum describes the regions in the window decorations.
QWSDecoration::All | the entire region used by the window decoration. |
QWSDecoration::Title | displays the window title and allows the window to be moved by dragging. |
QWSDecoration::Top | allows the top of the window to be resized. |
QWSDecoration::Bottom | allows the bottom of the window to be resized. |
QWSDecoration::Left | allows the left edge of the window to be resized. |
QWSDecoration::Right | allows the right edge of the window to be resized. |
QWSDecoration::TopLeft | allows the top-left of the window to be resized. |
QWSDecoration::TopRight | allows the top-right of the window to be resized. |
QWSDecoration::BottomLeft | allows the bottom-left of the window to be resized. |
QWSDecoration::BottomRight | allows the bottom-right of the window to be resized. |
QWSDecoration::Close | clicking in this region closes the window. |
QWSDecoration::Minimize | clicking in this region minimizes the window. |
QWSDecoration::Maximize | clicking in this region maximizes the window. |
QWSDecoration::Normalize | returns a maximized window to its previous size. |
QWSDecoration::Menu | clicking in this region opens the window operations (system) menu. |
Constructs a decorator.
Destroys a decorator.
Called when the user clicks in the Close region.
widget is the widget to be closed.
The default behavior is to close the widget.
Called when the user clicks in the Maximize region.
widget is the widget to be maximized.
The default behavior is to resize the widget to be full-screen. This method can be overridden e.g. to allow room for launch panels.
Called when the user clicks in the Minimize region.
widget is the widget to be minimized.
The default behavior is to ignore this action.
Override to paint the border and title decoration around widget using painter.
Override to paint a button of type type using painter.
widget is the widget whose button is to be drawn. state is the state of the button. It can be a combination of the following OR-ed together:
Returns the requested region type which will contain widget with geometry rect.
Copyright © 2004 Trolltech. | Trademarks | Qt 4.0.0-tp1 |