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

Canvas::Pixmap Class Reference

A pixmap (sprite). More...

#include <canvas.h>

Inheritance diagram for Canvas::Pixmap:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Pixmap (const QPixmap &pixmap, Abstract *canvas=NULL)
 Pixmap (Abstract *canvas=NULL)
QPixmap pixmap () const
void setPixmap (const QPixmap &pixmap)
virtual void paint (QPainter *p)
virtual QRect rect () const

Detailed Description

A pixmap (sprite).

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


Constructor & Destructor Documentation

Canvas::Pixmap::Pixmap const QPixmap &  pixmap,
Abstract canvas = NULL
 

Constructor, specifying the pixmap to use

Canvas::Pixmap::Pixmap Abstract canvas = NULL  ) 
 

Constructor, creating with an empty pixmap


Member Function Documentation

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

Override this function to draw the item with the painter

Implements Canvas::Item.

QPixmap Canvas::Pixmap::pixmap  )  const [inline]
 

Returns the pixmap

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

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

Implements Canvas::Item.

void Canvas::Pixmap::setPixmap const QPixmap &  pixmap  ) 
 

Sets the pixmap of the sprite


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