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>

Part of the QtGui module.

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.

ConstantValueDescription
QDecoration::All0x7fffffffthe entire region used by the window decoration.
QDecoration::Title0x0000000200displays the window title and allows the window to be moved by dragging.
QDecoration::Top0x0000000002allows the top of the window to be resized.
QDecoration::Bottom0x0000000040allows the bottom of the window to be resized.
QDecoration::Left0x0000000008allows the left edge of the window to be resized.
QDecoration::Right0x0000000010allows the right edge of the window to be resized.
QDecoration::TopLeft0x0000000001allows the top-left of the window to be resized.
QDecoration::TopRight0x0000000004allows the top-right of the window to be resized.
QDecoration::BottomLeft0x0000000020allows the bottom-left of the window to be resized.
QDecoration::BottomRight0x0000000080allows the bottom-right of the window to be resized.
QDecoration::Close0x0000004000clicking in this region closes the window.
QDecoration::Minimize0x0000000800clicking in this region minimizes the window.
QDecoration::Maximize0x0000001000clicking in this region maximizes the window.
QDecoration::Normalize0x0000002000returns a maximized window to its previous size.
QDecoration::Menu0x0000000100clicking in this region opens the window operations (system) menu.
QDecoration::Help0x0000000400clicking 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 * widget, const QRect & rect, int type = All )   [pure virtual]

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

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 © 2005 Trolltech Trademarks
Qt 4.0.0-b2