Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PolishedDecoration Class Reference

#include </home/clem/local/src/opie/noncore/decorations/polished/polished.h>

Inheritance diagram for PolishedDecoration:

Inheritance graph
[legend]
Collaboration diagram for PolishedDecoration:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PolishedDecoration ()
virtual ~PolishedDecoration ()
virtual int metric (Metric m, const WindowData *) const
virtual void drawArea (Area a, QPainter *, const WindowData *) const
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
virtual QString name () const
virtual QPixmap icon () const
QRESULT queryInterface (const QUuid &, QUnknownInterface **)

Protected Member Functions

void drawBlend (QPainter *, const QRect &r, const QColor &c1, const QColor &c2) const

Constructor & Destructor Documentation

PolishedDecoration::PolishedDecoration  ) 
 

Definition at line 25 of file polished.cpp.

PolishedDecoration::~PolishedDecoration  )  [virtual]
 

Definition at line 29 of file polished.cpp.


Member Function Documentation

void PolishedDecoration::drawArea Area  a,
QPainter *  p,
const WindowData *  wd
const [virtual]
 

draw the Area specefic in a to the QPainter

Reimplemented from WindowDecorationInterface.

Definition at line 57 of file polished.cpp.

References Qt::AlignVCenter, WindowDecorationInterface::Border, WindowDecorationInterface::BottomBorder, WindowDecorationInterface::drawArea(), drawBlend(), WindowDecorationInterface::HelpWidth, WindowDecorationInterface::LeftBorder, metric(), WindowDecorationInterface::RightBorder, WindowDecorationInterface::Title, WindowDecorationInterface::TitleHeight, WindowDecorationInterface::TitleText, and WindowDecorationInterface::TopBorder.

void PolishedDecoration::drawBlend QPainter *  ,
const QRect &  r,
const QColor &  c1,
const QColor &  c2
const [protected]
 

Definition at line 131 of file polished.cpp.

Referenced by drawArea().

void PolishedDecoration::drawButton Button  b,
QPainter *  p,
const WindowData *  wd,
int  x,
int  y,
int  w,
int  h,
QWSButton::State  state
const [virtual]
 

Parameters:
b The Button to be drawn
p The painter to draw at
d The Window Data
x The X position of the button
y The Y position of the button
w The width of the button
h The height of the button
s The state of the button

Reimplemented from WindowDecorationInterface.

Definition at line 111 of file polished.cpp.

References WindowDecorationInterface::drawButton().

QPixmap PolishedDecoration::icon  )  const [virtual]
 

Implements WindowDecorationInterface.

Definition at line 126 of file polished.cpp.

QRegion PolishedDecoration::mask const WindowData *  wd  )  const [virtual]
 

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;

Reimplemented from WindowDecorationInterface.

Definition at line 116 of file polished.cpp.

References WindowDecorationInterface::mask().

int PolishedDecoration::metric Metric  m,
const WindowData * 
const [virtual]
 

Reimplemented from WindowDecorationInterface.

Definition at line 33 of file polished.cpp.

References WindowDecorationInterface::BottomBorder, height, WindowDecorationInterface::LeftBorder, WindowDecorationInterface::metric(), WindowDecorationInterface::RightBorder, WindowDecorationInterface::TitleHeight, and WindowDecorationInterface::TopBorder.

Referenced by drawArea().

QString PolishedDecoration::name  )  const [virtual]
 

Implements WindowDecorationInterface.

Definition at line 121 of file polished.cpp.

References qApp.

QRESULT PolishedDecoration::queryInterface const QUuid ,
QUnknownInterface ** 
[virtual]
 

Implements QUnknownInterface.

Definition at line 154 of file polished.cpp.

References IID_QUnknown, IID_WindowDecoration, QS_FALSE, and QS_OK.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:45:05 2005 for OPIE by  doxygen 1.4.2