QtGui/qdecoration_qws.h Source File
Go to the documentation of this file.
42 #ifndef QDECORATION_QWS_H
43 #define QDECORATION_QWS_H
66 #endif // QT_NO_ACTION
88 None = 0x0000000000, All = 0x7fffffff,
89 TopLeft = 0x0000000001, Top = 0x0000000002, TopRight = 0x0000000004,
90 Left = 0x0000000008, Right = 0x0000000010,
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
98 enum DecorationState { Normal = 0x04, Disabled = 0x08, Hover = 0x01, Pressed = 0x02 };
102 {
return region(w, w->
rect(), decorationRegion); }
105 virtual void regionClicked(
QWidget *widget,
int region);
106 virtual void regionDoubleClicked(
QWidget *widget,
int region);
108 virtual void buildSysMenu(
QWidget *widget, QMenu *menu);
112 static void startMove(
QWidget *widget);
113 static void startResize(
QWidget *widget);
116 DecorationState state = Normal) = 0;
124 #endif // QDECORATION_QWS_H
QDecorationAction(const QString &text, QObject *parent, int region)
#define QT_BEGIN_NAMESPACE
QRegion region(const QWidget *w, int decorationRegion=All)
GLubyte GLubyte GLubyte GLubyte w