Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |
The QDecoration class allows the appearance of the Qtopia Core Window Manager to be customized. More...
#include <QDecoration>
The QDecoration class allows the appearance of the Qtopia Core Window Manager to be customized.
Qtopia Core 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 Qtopia Core.
See also QApplication::qwsSetDecoration().
This enum describes the regions in the window decorations.
Constant | Value | Description |
---|---|---|
QDecoration::All | 0x7fffffff | The entire region used by the window decoration. |
QDecoration::Top | 0x0000000002 | The top border is used to vertically resize the window. |
QDecoration::Bottom | 0x0000000040 | The bottom border is used to vertically resize the window. |
QDecoration::Left | 0x0000000008 | The left border is used to horizontally resize the window. |
QDecoration::Right | 0x0000000010 | The right border is used to horizontally resize the window. |
QDecoration::TopLeft | 0x0000000001 | The top-left corner of the window is used to resize the window both horizontally and vertically. |
QDecoration::TopRight | 0x0000000004 | The top-right corner of the window is used to resize the window both horizontally and vertically. |
QDecoration::BottomLeft | 0x0000000020 | The bottom-left corner of the window is used to resize the window both horizontally and vertically. |
QDecoration::BottomRight | 0x0000000080 | The bottom-right corner of the window is used to resize the window both horizontally and vertically. |
QDecoration::Borders | 0x00000000ff | All of the regions used to describe the window border. |
QDecoration::Title | 0x0000000200 | The region containing the window title that can be used to move the window by dragging with the mouse cursor. |
QDecoration::Close | 0x0000004000 | The region occupied by the close button. Clicking in this region closes the window. |
QDecoration::Minimize | 0x0000000800 | The region occupied by the minimize button. Clicking in this region minimizes the window. |
QDecoration::Maximize | 0x0000001000 | The region occupied by the maximize button. Clicking in this region maximizes the window. |
QDecoration::Normalize | 0x0000002000 | The region occupied by a button used to restore a window's normal size. Clicking in this region restores a maximized window to its previous size. This region used for this button is often also the maximize region. |
QDecoration::Menu | 0x0000000100 | The region occupied by the window's menu button. Clicking in this region opens the window operations (system) menu. |
QDecoration::Help | 0x0000000400 | The region occupied by the window's help button. Clicking in this region causes the context-sensitive help function to be enabled. |
QDecoration::Resize | 0x0000010000 | The region that the user can click to resize the window. |
QDecoration::Move | 0x0000008000 | The region that the user can click to move the window. |
QDecoration::None | 0x0000000000 |
Constant | Value |
---|---|
QDecoration::Normal | 0x04 |
QDecoration::Disabled | 0x08 |
QDecoration::Hover | 0x01 |
QDecoration::Pressed | 0x02 |
Constructs a decorator.
Destroys a decorator.
Builds the system menu for the TLW widget.
This function is called whenever an action in a menu is triggered for a top level widget.
Override to paint the border and title decoration around widget using painter. decorationRegion is the number of the decoration region. state specifies how to render the region.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Returns the requested region decorationRegion which will contain widget.
Returns the first region within widget which contains point. If none of the regions contain the point, returns None.
This function is called whenever a region in a top level widget is clicked. The widget and region are specified by widget and reg.
The default implementation performs the action for when a region is clicked, and it is used to handle clicks on items in the system menu.
This function is called whenever a region in a top level widget is double clicked. The widget and region are specified by widget and reg.
The default implementation responds to a double click on the widget's title, toggling its size between the maximum and its normal size.
Initiates move mode for the top level widget specified by widget that is TLW handled by QWSManager.
Initiates resize mode for the top level widget specified by widget that is handled by QWSManager.
Copyright © 2005 Trolltech | Trademarks | Qt 4.1.0 |