KGameCanvasPicture Class Reference

#include <kgamecanvas.h>

Inheritance diagram for KGameCanvasPicture:

Inheritance graph
[legend]
Collaboration diagram for KGameCanvasPicture:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 KGameCanvasPicture (const QPicture &picture, KGameCanvasAbstract *canvas=NULL)
 Constructor, specifying the picture to use.
 KGameCanvasPicture (KGameCanvasAbstract *canvas=NULL)
 Constructor, creating with an empty picture.
virtual ~KGameCanvasPicture ()
QPicture picture () const
 Returns the picture.
void setPicture (const QPicture &picture)
 Sets the picture of the sprite.
virtual void paint (QPainter *p)
 Override this function to draw the item with the painter.
virtual QRect rect () const
 Override this function to return the rect the item will be drawn into.


Detailed Description

A picture, ie a collection of paint operations.

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

Definition at line 303 of file kgamecanvas.h.


Constructor & Destructor Documentation

KGameCanvasPicture::KGameCanvasPicture ( const QPicture &  picture,
KGameCanvasAbstract canvas = NULL 
)

Constructor, specifying the picture to use.

Definition at line 931 of file kgamecanvas.cpp.

KGameCanvasPicture::KGameCanvasPicture ( KGameCanvasAbstract canvas = NULL  ) 

Constructor, creating with an empty picture.

Definition at line 937 of file kgamecanvas.cpp.

KGameCanvasPicture::~KGameCanvasPicture (  )  [virtual]

Definition at line 943 of file kgamecanvas.cpp.


Member Function Documentation

QPicture KGameCanvasPicture::picture (  )  const [inline]

Returns the picture.

Definition at line 318 of file kgamecanvas.h.

void KGameCanvasPicture::setPicture ( const QPicture &  picture  ) 

Sets the picture of the sprite.

Definition at line 948 of file kgamecanvas.cpp.

References KGameCanvasItem::canvas(), KGameCanvasItem::changed(), and KGameCanvasItem::visible().

Here is the call graph for this function:

void KGameCanvasPicture::paint ( QPainter *  p  )  [virtual]

Override this function to draw the item with the painter.

Implements KGameCanvasItem.

Definition at line 956 of file kgamecanvas.cpp.

References KGameCanvasItem::pos().

Here is the call graph for this function:

QRect KGameCanvasPicture::rect (  )  const [virtual]

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

Implements KGameCanvasItem.

Definition at line 961 of file kgamecanvas.cpp.

References KGameCanvasItem::pos().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 08:03:15 2008 for Libkdegames by  doxygen 1.5.3