GUI::Canvas::HoldingObject Class Reference

Keeps info about current holding object (when moving objects on the scene). More...

List of all members.

Static Public Member Functions

static void SetHoldingObject (Matrix::SizeType xIndex, Matrix::SizeType yIndex)
 Sets new x and y coordinates of the holding object.
static bool IsHoldingSomething ()
 Returns true if there currently is some holding object.
static void SetNotHoldingObject ()
 Sets holding flag to false (object was put or holding was canceled).
static Matrix::SizeType GetX ()
 Returns x-index of the holding object.
static Matrix::SizeType GetY ()
 Returns y-index of the holding object.

Private Member Functions

 HoldingObject ()
 ~HoldingObject ()
 HoldingObject (const HoldingObject &)
HoldingObjectoperator= (const HoldingObject &)

Static Private Attributes

static bool isHolding
 Are we holding something?
static Matrix::SizeType x
 x-index of the holding object
static Matrix::SizeType y
 y-index of the holding object


Detailed Description

Keeps info about current holding object (when moving objects on the scene).

This class contains only static methods/attributes - kind of Singleton without object instance.


Constructor & Destructor Documentation

GUI::Canvas::HoldingObject::HoldingObject (  )  [private]

GUI::Canvas::HoldingObject::~HoldingObject (  )  [private]

GUI::Canvas::HoldingObject::HoldingObject ( const HoldingObject  )  [private]


Member Function Documentation

static Matrix::SizeType GUI::Canvas::HoldingObject::GetX (  )  [inline, static]

Returns x-index of the holding object.

static Matrix::SizeType GUI::Canvas::HoldingObject::GetY (  )  [inline, static]

Returns y-index of the holding object.

static bool GUI::Canvas::HoldingObject::IsHoldingSomething (  )  [inline, static]

Returns true if there currently is some holding object.

HoldingObject& GUI::Canvas::HoldingObject::operator= ( const HoldingObject  )  [private]

static void GUI::Canvas::HoldingObject::SetHoldingObject ( Matrix::SizeType  xIndex,
Matrix::SizeType  yIndex 
) [inline, static]

Sets new x and y coordinates of the holding object.

Parameters:
xIndex First index
yIndex Second index

static void GUI::Canvas::HoldingObject::SetNotHoldingObject (  )  [inline, static]

Sets holding flag to false (object was put or holding was canceled).


Member Data Documentation

bool GUI::Canvas::HoldingObject::isHolding [static, private]

Are we holding something?

Matrix::SizeType GUI::Canvas::HoldingObject::x [static, private]

x-index of the holding object

Matrix::SizeType GUI::Canvas::HoldingObject::y [static, private]

y-index of the holding object


The documentation for this class was generated from the following files:
Generated on Sun Apr 29 11:46:11 2007 for IPP/ICP2007 by  doxygen 1.4.7