kblackbox
#include <kbbgraphicsitemset.h>
Public Member Functions | |
| KBBGraphicsItemSet (QGraphicsScene *scene) | |
| ~KBBGraphicsItemSet () | |
| int | anyItemPosition () |
| void | clear () |
| bool | containsVisible (int position) |
| int | count () const |
| void | insert (KBBItemWithPosition *item) |
| KBBItemWithPosition * | item (int position) |
| void | remove (int position) |
| void | setVisible (const int position, const bool visible) |
Static Public Attributes | |
| static const int | NO_INDEX = -1 |
Detailed Description
Set of graphic items with positions.
Definition at line 46 of file kbbgraphicsitemset.h.
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
|
static |
Definition at line 53 of file kbbgraphicsitemset.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference