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

libkdegames

KGameCanvasWidget Class Reference

#include <KGameCanvas>

Inheritance diagram for KGameCanvasWidget:

Inheritance graph
[legend]

List of all members.


Detailed Description

Container widget.

A KGameCanvasWidget is a widget that can contain many KGameCanvasItem (images, rectangles, lines, etc). Portions of the widget are automatically redrawn to update the changes made to the items.

Definition at line 534 of file kgamecanvas.h.


Public Member Functions

virtual QPoint canvasPosition () const
 KGameCanvasWidget (QWidget *parent=NULL)
int mSecs ()
void setAnimationDelay (int d)
KGameCanvasWidget * topLevelCanvas ()
virtual ~KGameCanvasWidget ()

Constructor & Destructor Documentation

KGameCanvasWidget::KGameCanvasWidget ( QWidget *  parent = NULL  ) 

The constructor.

Definition at line 104 of file kgamecanvas.cpp.

KGameCanvasWidget::~KGameCanvasWidget (  )  [virtual]

Definition at line 111 of file kgamecanvas.cpp.


Member Function Documentation

QPoint KGameCanvasWidget::canvasPosition (  )  const [virtual]

Returns:
0

Implements KGameCanvasAbstract.

Definition at line 227 of file kgamecanvas.cpp.

int KGameCanvasWidget::mSecs (  ) 

Return the number of millisecons from the creation of the canvas (see also KGameCanvasItem::advance).

Definition at line 219 of file kgamecanvas.cpp.

void KGameCanvasWidget::setAnimationDelay ( int  d  ) 

Set the delay of the animation, in milliseconds.

Definition at line 215 of file kgamecanvas.cpp.

KGameCanvasWidget * KGameCanvasWidget::topLevelCanvas (  )  [virtual]

returns 'this'

Implements KGameCanvasAbstract.

Definition at line 223 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