42 #ifndef QDECORATION_QWS_H 43 #define QDECORATION_QWS_H 45 #include <QtGui/qregion.h> 46 #include <QtGui/qwidget.h> 47 #include <QtGui/qaction.h> 66 #endif // QT_NO_ACTION 88 None = 0x0000000000, All = 0x7fffffff,
89 TopLeft = 0x0000000001,
Top = 0x0000000002, TopRight = 0x0000000004,
91 BottomLeft = 0x0000000020,
Bottom = 0x0000000040, BottomRight = 0x0000000080,
92 Borders = 0x00000000ff,
93 Menu = 0x0000000100, Title = 0x0000000200, Help = 0x0000000400,
94 Minimize = 0x0000000800, Maximize = 0x0000001000, Normalize = 0x0000002000,
95 Close = 0x0000004000, Move = 0x0000008000, Resize = 0x0000010000
100 virtual QRegion region(
const QWidget *w,
const QRect &rect,
int decorationRegion = All ) = 0;
102 {
return region(w, w->
rect(), decorationRegion); }
106 virtual void regionDoubleClicked(
QWidget *widget,
int region);
112 static void startMove(
QWidget *widget);
113 static void startResize(
QWidget *widget);
115 virtual bool paint(
QPainter *p,
const QWidget *w,
int decorationRegion = All,
124 #endif // QDECORATION_QWS_H The QPainter class performs low-level painting on widgets and other paint devices.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
QRegion region(const QWidget *w, int decorationRegion=All)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QDecoration()
Constructs a decoration object.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
virtual ~QDecoration()
Destroys this decoration object.
The QDecoration class is a base class for window decorations in Qt for Embedded Linux.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRegion class specifies a clip region for a painter.
QDecorationAction(const QString &text, QObject *parent, int region)
QMenu * menu() const
Returns the menu contained by this action.
QObject * parent() const
Returns a pointer to the parent object.
The QPoint class defines a point in the plane using integer precision.
The QRect class defines a rectangle in the plane using integer precision.
DecorationState
This enum describes the various states of a decoration region.
The QAction class provides an abstract user interface action that can be inserted into widgets...
DecorationRegion
This enum describes the various regions of the window decoration.