• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

kblackbox

Public Member Functions | Static Public Attributes | List of all members
KBBGraphicsItemSet Class Reference

#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
itemItem 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
positionPosition of the item.

Definition at line 116 of file kbbgraphicsitemset.cpp.

void KBBGraphicsItemSet::remove ( int  position)

Remove item at given position.

Parameters
positionPosition 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
This file is part of the KDE documentation.
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.

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