• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkdegames

KGameCanvasPicture Class Reference

#include <kgamecanvas.h>

Inheritance diagram for KGameCanvasPicture:

Inheritance graph
[legend]

List of all members.


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.


Public Member Functions

 KGameCanvasPicture (const QPicture &picture, KGameCanvasAbstract *canvas=NULL)
 KGameCanvasPicture (KGameCanvasAbstract *canvas=NULL)
virtual ~KGameCanvasPicture ()
QPicture picture () const
void setPicture (const QPicture &picture)
virtual void paint (QPainter *p)
virtual QRect rect () const

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.

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.

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.


The documentation for this class was generated from the following files:
  • kgamecanvas.h
  • kgamecanvas.cpp

libkdegames

Skip menu "libkdegames"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal