WindowDecorationInterface Struct Reference
Interface class for Window Decorations. More...Public Types | |
| enum | Metric { TitleHeight, LeftBorder, RightBorder, TopBorder, BottomBorder, OKWidth, CloseWidth, HelpWidth, MaximizeWidth, CornerGrabSize } |
| enum | Area { Border, Title, TitleText } |
| enum | Button { OK, Close, Help, Maximize } |
Public Member Functions | |
| virtual int | metric (Metric m, const WindowData *) const |
| virtual void | drawArea (Area a, QPainter *, const WindowData *) const |
| draw the Area specefic in a to the QPainter | |
| virtual void | drawButton (Button b, QPainter *, const WindowData *, int x, int y, int w, int h, QWSButton::State) const |
| virtual QRegion | mask (const WindowData *) const |
| The mask of the Decoration. | |
| virtual QString | name () const=0 |
| virtual QPixmap | icon () const=0 |
Detailed Description
Interface class for Window Decorations.Yu need to implement metric and drawing functions.
Definition at line 37 of file windowdecorationinterface.h.
Member Function Documentation
|
||||||||||||||||
|
draw the Area specefic in a to the QPainter
|
|
||||||||||||||||||||||||||||||||||||
|
|
|
|
The mask of the Decoration.
int th = metric(TitleHeight,wd); QRect rect( wd->rect ); QRect r(rect.left() - metric(LeftBorder,wd), rect.top() - th - metric(TopBorder,wd), rect.width() + metric(LeftBorder,wd) + metric(RightBorder,wd), rect.height() + th + metric(TopBorder,wd) + metric(BottomBorder,wd)); return QRegion(r) - rect; |
The documentation for this struct was generated from the following files:
