• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

kblackbox

Public Member Functions | List of all members
KBBBallsGraphicWidget Class Reference

#include <kbbballsgraphicwidget.h>

Inheritance diagram for KBBBallsGraphicWidget:
Inheritance graph
[legend]

Public Member Functions

 KBBBallsGraphicWidget (KBBThemeManager *themeManager)
 
 ~KBBBallsGraphicWidget ()
 
void resizeEvent (QResizeEvent *)
 
void setBallsToPlace (const int ballsToPlace)
 
void setPlacedBalls (const int placedBalls)
 

Detailed Description

Widget displaying the number of balls to place on the black box.

This is always the number of balls remaining to be placed. If this number is negative because the player placed too many balls, the widget displays how many balls the player should remove from the black box.

Definition at line 48 of file kbbballsgraphicwidget.h.

Constructor & Destructor Documentation

KBBBallsGraphicWidget::KBBBallsGraphicWidget ( KBBThemeManager *  themeManager)
explicit

Constructor.

Parameters
themeManagerPointer to the theme manager to display the right graphic items.

Definition at line 44 of file kbbballsgraphicwidget.cpp.

KBBBallsGraphicWidget::~KBBBallsGraphicWidget ( )

Destructor Remove all items displayed on the scene.

Definition at line 58 of file kbbballsgraphicwidget.cpp.

Member Function Documentation

void KBBBallsGraphicWidget::resizeEvent ( QResizeEvent *  )

Event: widget has been resized This happens for instance when the main window has been resized.

Definition at line 70 of file kbbballsgraphicwidget.cpp.

void KBBBallsGraphicWidget::setBallsToPlace ( const int  ballsToPlace)

Define the number of balls to place on the black box.

This defines also the maximum number of balls (or items) to display on this widget.

Parameters
ballsToPlaceNumber of balls to place

Definition at line 76 of file kbbballsgraphicwidget.cpp.

void KBBBallsGraphicWidget::setPlacedBalls ( const int  placedBalls)

Define the number of balls the player already placed on the board.

So the number of balls to display on this widget is "Number of balls to place" - this. (if >=0).

Parameters
placedBallsNumber of balls placed on the black box.

Definition at line 93 of file kbbballsgraphicwidget.cpp.


The documentation for this class was generated from the following files:
  • kbbballsgraphicwidget.h
  • kbbballsgraphicwidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kblackbox

Skip menu "kblackbox"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal