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

Canvas::Picture Class Reference

A picture, ie a collection of paint operations. More...

#include <canvas.h>

Inheritance diagram for Canvas::Picture:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Picture (const QPicture &picture, Abstract *canvas=NULL)
 Picture (Abstract *canvas=NULL)
QPicture picture () const
void setPicture (const QPicture &picture)
virtual void paint (QPainter *p)
virtual QRect rect () const

Detailed Description

A picture, ie a collection of paint operations.

A Picture is a picture that can be replayed on the canvas.


Constructor & Destructor Documentation

Canvas::Picture::Picture const QPicture &  picture,
Abstract canvas = NULL
 

Constructor, specifying the picture to use

Canvas::Picture::Picture Abstract canvas = NULL  ) 
 

Constructor, creating with an empty picture


Member Function Documentation

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

Override this function to draw the item with the painter

Implements Canvas::Item.

QPicture Canvas::Picture::picture  )  const [inline]
 

Returns the picture

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

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

Implements Canvas::Item.

void Canvas::Picture::setPicture const QPicture &  picture  ) 
 

Sets the picture of the sprite


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