• 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
KBBGraphicsItemLaser Class Reference

#include <kbbgraphicsitemlaser.h>

Inheritance diagram for KBBGraphicsItemLaser:
Inheritance graph
[legend]

Public Member Functions

 KBBGraphicsItemLaser (KBBScalableGraphicWidget *parent, KBBThemeManager *themeManager, const int borderPosition, const int columns, const int rows)
 
int position ()
 
- Public Member Functions inherited from KBBGraphicsItemBorder
 KBBGraphicsItemBorder (int borderPosition, int columns, int rows, float offset)
 
void setSize (int borderPosition, int columns, int rows)
 
- Public Member Functions inherited from KBBGraphicsItem
 KBBGraphicsItem (KBBScalableGraphicWidget::itemType itemType, QGraphicsScene *scene, KBBThemeManager *themeManager)
 
- Public Member Functions inherited from KBBItemWithPosition
virtual ~KBBItemWithPosition ()
 
virtual void cleanDelete ()
 
virtual void highlight (bool)
 
virtual void highlightBoth (bool)
 
virtual void setPause (bool state)
 

Additional Inherited Members

- Protected Member Functions inherited from KBBGraphicsItemBorder
void centerCoordinate (int borderPosition, float &centerX, float &centerY, float offset)
 
float centerX () const
 
float centerY () const
 
int rotationAngle ()
 
void setBorderPosition (int borderPosition)
 
- Protected Attributes inherited from KBBGraphicsItemBorder
int m_borderPosition
 
float m_centerX
 
float m_centerY
 
int m_columns
 
float m_offset
 
int m_rows
 

Detailed Description

Laser element of the scalable graphic widget.

The laser is used to shoot a laser ray into the black box.

Note: The laser size should be so defined: width = width of a single box of the black box (RATIO), height = twice the size of single box of the black box (2*RATIO). The laser size is independent of the board border size.

Definition at line 51 of file kbbgraphicsitemlaser.h.

Constructor & Destructor Documentation

KBBGraphicsItemLaser::KBBGraphicsItemLaser ( KBBScalableGraphicWidget *  parent,
KBBThemeManager *  themeManager,
const int  borderPosition,
const int  columns,
const int  rows 
)

Constructor.

Parameters
parentScalable graphic widget
themeManagerTheme manager
borderPositionPosition of the laser around the border. Each laser has a different border position.
columnsWidth of the Black Box
rowsHeight of the Black Box

Definition at line 49 of file kbbgraphicsitemlaser.cpp.

Member Function Documentation

int KBBGraphicsItemLaser::position ( )
virtual

Get the border position.

Implements KBBItemWithPosition.

Definition at line 71 of file kbbgraphicsitemlaser.cpp.


The documentation for this class was generated from the following files:
  • kbbgraphicsitemlaser.h
  • kbbgraphicsitemlaser.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