HomeHome

ClassesAnnotated - TreeFunctionsHomeStructure

QWSDecoration Class Reference


The QWSDecoration class allows the appearance of the Qt/Embedded Window Manager to be customized. More...

#include <qwsmanager_qws.h>

Inherited by QWSDefaultDecoration.

List of all member functions.

Public Members


Detailed Description

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().


Member Type Documentation

QWSDecoration::Region

This enum describes the regions in the window decorations.


Member Function Documentation

QWSDecoration::QWSDecoration ()

Constructs a decorator.

QWSDecoration::~QWSDecoration () [virtual]

Destructs a decorator.

void QWSDecoration::close ( QWidget * widget ) [virtual]

Called when the user clicks in the Close region.

widget is the QWidget to be closed.

The default behaviour is to close the widget.

void QWSDecoration::maximize ( QWidget * widget ) [virtual]

Called when the user clicks in the Maximize region.

widget is the QWidget to be maximized.

The default behaviour is to resize the widget to be full-screen. This method can be overridden to, e.g. avoid launch panels.

QPopupMenu * QWSDecoration::menu ( const QWidget *, const QPoint & ) [virtual]

Called to create a QPopupMenu containing the valid menu operations.

The default implementation adds all possible window operations.

void QWSDecoration::minimize ( QWidget * ) [virtual]

Called when the user clicks in the Minimize region.

widget is the QWidget to be minimized.

The default behaviour is to ignore this action.

void QWSDecoration::paint ( QPainter * painter, const QWidget * widget ) [virtual]

Override to paint the border and title decoration around widget using painter.

void QWSDecoration::paintButton ( QPainter * painter, const QWidget * widget, Region type, int state )

Override to paint a button 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 ORed together:

QRegion QWSDecoration::region ( const QWidget * widget, const QRect & rect, Region type=All )

Returns the requested region type which will contain widget with geometry rect.


Search the documentation, FAQ, qt-interest archive and more (uses www.trolltech.com):


This file is part of the Qt toolkit, copyright © 1995-2000 Trolltech, all rights reserved.


Copyright © 2000 TrolltechTrademarks
Qt version 2.2.1