Main Page | Class Hierarchy | Class List | File List | Class Members

Canvas::Rectangle Class Reference

A solid rectangle. More...

#include <canvas.h>

Inheritance diagram for Canvas::Rectangle:

Inheritance graph
[legend]
Collaboration diagram for Canvas::Rectangle:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Rectangle (const QColor &color, QSize size, Abstract *canvas=NULL)
 Rectangle (Abstract *canvas=NULL)
QColor color () const
void setColor (const QColor &color)
void setSize (QSize size)
virtual void paint (QPainter *p)
virtual QRect rect () const

Detailed Description

A solid rectangle.

A Pixmap is a pixmap that can be put in the canvas.


Constructor & Destructor Documentation

Canvas::Rectangle::Rectangle const QColor &  color,
QSize  size,
Abstract canvas = NULL
 

Constructor, specifying the pixmap and the parameters to use

Canvas::Rectangle::Rectangle Abstract canvas = NULL  ) 
 

Constructor, creating with an empty pixmap


Member Function Documentation

QColor Canvas::Rectangle::color  )  const [inline]
 

Returns the color

void Canvas::Rectangle::paint QPainter *  p  )  [virtual]
 

Override this function to draw the item with the painter

Implements Canvas::Item.

QRect Canvas::Rectangle::rect  )  const [virtual]
 

Override this function to return the rect the item will be drawn into

Implements Canvas::Item.

void Canvas::Rectangle::setColor const QColor &  color  ) 
 

Sets the color

void Canvas::Rectangle::setSize QSize  size  ) 
 

Sets the size


The documentation for this class was generated from the following files:
Generated on Thu Aug 10 03:19:36 2006 for kboard by  doxygen 1.4.3-20050530