Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QDecoration Class Reference

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

#include <QDecoration>

Public Types

Public Functions

Static Public Members


Detailed Description

The QDecoration 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 QDecoration and overriding a few methods.

This class is non-portable. It is available only in Qt/Embedded.

See also QApplication::qwsSetDecoration().


Member Type Documentation

enum QDecoration::DecorationRegion

This enum describes the regions in the window decorations.

QDecoration::Allthe entire region used by the window decoration.
QDecoration::Titledisplays the window title and allows the window to be moved by dragging.
QDecoration::Topallows the top of the window to be resized.
QDecoration::Bottomallows the bottom of the window to be resized.
QDecoration::Leftallows the left edge of the window to be resized.
QDecoration::Rightallows the right edge of the window to be resized.
QDecoration::TopLeftallows the top-left of the window to be resized.
QDecoration::TopRightallows the top-right of the window to be resized.
QDecoration::BottomLeftallows the bottom-left of the window to be resized.
QDecoration::BottomRightallows the bottom-right of the window to be resized.
QDecoration::Closeclicking in this region closes the window.
QDecoration::Minimizeclicking in this region minimizes the window.
QDecoration::Maximizeclicking in this region maximizes the window.
QDecoration::Normalizereturns a maximized window to its previous size.
QDecoration::Menuclicking in this region opens the window operations (system) menu.
QDecoration::Helpclicking in this region provides context-sensitive help.

enum QDecoration::DecorationState


Member Function Documentation

QDecoration::QDecoration ()

Constructs a decorator.

QDecoration::~QDecoration ()   [virtual]

Destroys a decorator.

void QDecoration::buildSysMenu ( QWidget * widget, QMenu * menu )   [virtual]

Builds the system menu for the TLW widget.

void QDecoration::menuTriggered ( QWidget * widget, QAction * action )

bool QDecoration::paint ( QPainter * painter, const QWidget * widget, int decorationRegion = All, DecorationState state = Normal )   [pure virtual]

)

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

QRegion QDecoration::region ( const QWidget * w, const QRect & rect, int decorationRegion = All )   [pure virtual]

QRegion QDecoration::region ( const QWidget * w, int decorationRegion = All )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

int QDecoration::regionAt ( const QWidget * w, const QPoint & point )   [virtual]

Returns first region which contains point. If none of the regions contain the point it returns None.

void QDecoration::regionClicked ( QWidget * widget, int reg )   [virtual]

Performs the action for when region is clicked. Also used for items clicked in the system menu.

void QDecoration::regionDoubleClicked ( QWidget * widget, int region )   [virtual]

void QDecoration::startMove ( QWidget * widget )   [static]

Initiates move mode for the TLW handled by QWSManager.

void QDecoration::startResize ( QWidget * widget )   [static]

Initiates resize mode for the TLW handled by QWSManager.


Copyright © 2004 Trolltech Trademarks
Qt 4.0.0-b1