kblackbox
#include <kbbballsgraphicwidget.h>
![Inheritance graph](classKBBBallsGraphicWidget__inherit__graph.png)
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
|
explicit |
Constructor.
- Parameters
-
themeManager Pointer 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
-
ballsToPlace Number 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
-
placedBalls Number 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:
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.