kblackbox
KBBGraphicsItemSet Class Reference
#include <kbbgraphicsitemset.h>
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 | ( | ) |
| void KBBGraphicsItemSet::clear | ( | ) |
| 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 |
| 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 | |||
| ) |
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:
KDE 4.2 API Reference