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

kblackbox

KBBGraphicsItemSet Class Reference

#include <kbbgraphicsitemset.h>

List of all members.


Detailed Description

Set of graphic items with positions.

Definition at line 46 of file kbbgraphicsitemset.h.


Public Member Functions

int anyItemPosition ()
void clear ()
bool containsVisible (int position)
int count () const
void insert (KBBItemWithPosition *item)
KBBItemWithPosition * item (int position)
 KBBGraphicsItemSet (QGraphicsScene *scene)
void remove (int position)
void setVisible (const int position, const bool visible)
 ~KBBGraphicsItemSet ()

Static Public Attributes

static const int NO_INDEX = -1

Constructor & Destructor Documentation

KBBGraphicsItemSet::KBBGraphicsItemSet ( QGraphicsScene *  scene  ) 

Definition at line 46 of file kbbgraphicsitemset.cpp.

KBBGraphicsItemSet::~KBBGraphicsItemSet (  ) 

Definition at line 52 of file kbbgraphicsitemset.cpp.


Member Function Documentation

int KBBGraphicsItemSet::anyItemPosition (  ) 

A position of an item (anyone of them).

Definition at line 63 of file kbbgraphicsitemset.cpp.

void KBBGraphicsItemSet::clear (  ) 

Remove all items.

Definition at line 78 of file kbbgraphicsitemset.cpp.

bool KBBGraphicsItemSet::containsVisible ( int  position  ) 

If an element is not visible, it is not contained.

Returns:
false if the element is not contained or contained but not visible.

Definition at line 92 of file kbbgraphicsitemset.cpp.

int KBBGraphicsItemSet::count (  )  const

Number of items.

Definition at line 72 of file kbbgraphicsitemset.cpp.

void KBBGraphicsItemSet::insert ( KBBItemWithPosition *  item  ) 

Insert an item in the list.

Parameters:
item Item to insert. It must have a position: a box position or a border position.

Definition at line 106 of file kbbgraphicsitemset.cpp.

KBBItemWithPosition * KBBGraphicsItemSet::item ( int  position  ) 

Return the item at the given position.

Parameters:
position Position of the item.

Definition at line 116 of file kbbgraphicsitemset.cpp.

void KBBGraphicsItemSet::remove ( int  position  ) 

Remove item at given position.

Parameters:
position Position of the item to be removed.

Definition at line 127 of file kbbgraphicsitemset.cpp.

void KBBGraphicsItemSet::setVisible ( const int  position,
const bool  visible 
)

Change the visibility of an element.

Definition at line 139 of file kbbgraphicsitemset.cpp.


Member Data Documentation

const int KBBGraphicsItemSet::NO_INDEX = -1 [static]

Definition at line 53 of file kbbgraphicsitemset.h.


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

kblackbox

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

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