Qt 4.8
|
#include <qdecorationwindows_qws.h>
Public Functions | |
bool | paint (QPainter *painter, const QWidget *widget, int decorationRegion=All, DecorationState state=Normal) |
Paints the border and title decoration for the top-level widget using the painter provided and the decoration state. More... | |
QDecorationWindows () | |
QRegion | region (const QWidget *widget, const QRect &rect, int decorationRegion=All) |
Returns the region specified by decorationRegion for the top-level widget. More... | |
virtual | ~QDecorationWindows () |
Public Functions inherited from QDecorationDefault | |
QDecorationDefault () | |
Default constructor. More... | |
virtual | ~QDecorationDefault () |
The constructor deletes the static pixmaps. More... | |
Public Functions inherited from QDecoration | |
virtual void | buildSysMenu (QWidget *widget, QMenu *menu) |
Builds the system menu for the given top level widget, adding Restore, Move, Size, Minimize, Maximize and Close actions to the given menu. More... | |
void | menuTriggered (QWidget *widget, QAction *action) |
This function is called whenever an action in a top level widget's menu is triggered, and simply calls the regionClicked() function passing the widget and action parameters as arguments. More... | |
QDecoration () | |
Constructs a decoration object. More... | |
QRegion | region (const QWidget *w, int decorationRegion=All) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
virtual int | regionAt (const QWidget *w, const QPoint &point) |
Returns the type of the first region of the specified top level widget containing the given point. More... | |
virtual void | regionClicked (QWidget *widget, int region) |
Handles the event that the specified region in the given top level widget is activated by a single click (the region parameter is described using the DecorationRegion enum). More... | |
virtual void | regionDoubleClicked (QWidget *widget, int region) |
Handles the event that the specified region in the given top level widget is activated by a double click (the region parameter is described using the DecorationRegion enum). More... | |
virtual | ~QDecoration () |
Destroys this decoration object. More... | |
Protected Functions | |
void | paintButton (QPainter *painter, const QWidget *widget, int buttonRegion, DecorationState state, const QPalette &pal) |
Paints a region of the top-level widget. More... | |
const char ** | xpmForRegion (int reg) |
Returns a pointer to the X pixmap for the icon specified by region. More... | |
Protected Functions inherited from QDecorationDefault | |
virtual QPixmap | pixmapFor (const QWidget *widget, int decorationRegion, int &xoff, int &yoff) |
Returns a pointer to the QPixmap for the widget specified by widget and decorationRegion. More... | |
virtual int | titleBarHeight (const QWidget *widget) |
Returns the title bar height in pixels for the given widget. More... | |
QString | windowTitleFor (const QWidget *widget) const |
Additional Inherited Members | |
Public Types inherited from QDecoration | |
enum | DecorationRegion { None = 0x0000000000, All = 0x7fffffff, TopLeft = 0x0000000001, Top = 0x0000000002, TopRight = 0x0000000004, Left = 0x0000000008, Right = 0x0000000010, BottomLeft = 0x0000000020, Bottom = 0x0000000040, BottomRight = 0x0000000080, Borders = 0x00000000ff, Menu = 0x0000000100, Title = 0x0000000200, Help = 0x0000000400, Minimize = 0x0000000800, Maximize = 0x0000001000, Normalize = 0x0000002000, Close = 0x0000004000, Move = 0x0000008000, Resize = 0x0000010000 } |
This enum describes the various regions of the window decoration. More... | |
enum | DecorationState { Normal = 0x04, Disabled = 0x08, Hover = 0x01, Pressed = 0x02 } |
This enum describes the various states of a decoration region. More... | |
Static Public Functions inherited from QDecoration | |
static void | startMove (QWidget *widget) |
Starts to move the given top level widget by making its Title region active and grabbing the mouse input. More... | |
static void | startResize (QWidget *widget) |
Starts to resize the given top level widget by making its BottomRight region active and grabbing the mouse input. More... | |
Protected Variables inherited from QDecorationDefault | |
int | close_width |
int | help_width |
int | maximize_width |
int | menu_width |
int | minimize_width |
int | normalize_width |
Definition at line 55 of file qdecorationwindows_qws.h.
QDecorationWindows::QDecorationWindows | ( | ) |
Definition at line 172 of file qdecorationwindows_qws.cpp.
|
virtual |
Definition at line 182 of file qdecorationwindows_qws.cpp.
|
virtual |
Paints the border and title decoration for the top-level widget using the painter provided and the decoration state.
The value of decorationRegion is a combination of the bitmask values of enum DecorationRegion.
Note that Qt for Embedded Linux expects this function to return true if any of the widget's decorations are repainted; otherwise it returns false.
Reimplemented from QDecorationDefault.
Definition at line 319 of file qdecorationwindows_qws.cpp.
|
protectedvirtual |
Paints a region of the top-level widget.
The region is painted in the specified decoration state using the painter and palette provided. The region to be painted is specified by buttonRegion, which is a combination of the bitmask values of DecorationRegion. If the value of buttonRegion is one of Help, Menu, Close, Minimize, Maximize, and Normalize, the button pixmap for that region is painted.
Reimplemented from QDecorationDefault.
Definition at line 361 of file qdecorationwindows_qws.cpp.
|
virtual |
Returns the region specified by decorationRegion for the top-level widget.
rect specifies the rectangle the decoration wraps. The value of decorationRegion is a combination of the bitmask values of enum DecorationRegion.
Reimplemented from QDecorationDefault.
Definition at line 210 of file qdecorationwindows_qws.cpp.
|
protectedvirtual |
Returns a pointer to the X pixmap for the icon specified by region.
An X pixmap is an ASCII-text-based image. The value of region must be one of a subset of the values of enum DecorationRegion. The supported values are Help, Menu, Close, Minimize, Maximize, and Normalize. Other values of region cause zero to be returned.
Reimplemented from QDecorationDefault.
Definition at line 186 of file qdecorationwindows_qws.cpp.